SAPPORO - An earthquake with a preliminary magnitude of 6.7 hit Japan's northernmost main island of Hokkaido on Thursday, just days after a powerful typhoon struck the west of the country.