Japan hit by 7.4 magnitude quake, leaving thousands without power