Japan rocked by 7.4-magnitude quake