Japan's northern island of Hokkaido has been hit by a powerful earthquake, triggering landslides that engulfed houses.
At least eight people have been killed and about 40 are missing, say local media reports.
The magnitude 6.7 quake cut power to around three million homes after a thermal power plant was damaged.
The earthquake comes on the heels of a deadly typhoon lashing the west of Japan over the past few days.
Jebi, the strongest typhoon in 25 years, killed at least 10 people and caused widespread damage and disruption.
The tremor struck 62km (39 miles) south-east of the regional capital Sapporo in the early hours of the morning.
It posed no tsunami risk, the country's meteorological agency said.
A nuclear plant - which was not operational - had to switch to its back-up power supply to keep spent fuel cool.
Local residents and travellers in the region have shared their shock about the quake on social media.
They also write about long lines at food stores as people stock up on supplies amid fears of more tremors.