The Japan Meteorological Agency said the earthquake had a preliminary magnitude of 7.1 and depth of 10 kilometers, or just over 6 miles.