A powerful 6.7 magnitude earthquake rocked the northern island of Hokkaido in northern Japan early on Thursday just hours after large parts of the south of the country were battered by the biggest typhoon to hit in 25 years.