Magnitude 7.1 earthquake hits off northeast Japan