The epicenter was located at a depth of about 10 kilometres inland, the Japan Meteorological Agency said.