A tropical storm that battered southern and western Japan headed toward the Korean Peninsula on Sunday, losing steam as it churned north but threatening continued heavy rains.

Namtheum, downgraded Saturday from a typhoon, had sustained winds of up to 65 kph, the Meteorological Agency said.

The storm was located in the Sea of Japan, about 190 km off Hagi, Yamaguchi Prefecture, as of 6 p.m. Sunday.

Although the storm had mostly passed through Japan, the agency warned of more heavy rain, flooding and landslides through Monday.

On Saturday, the storm disrupted hundreds of domestic flights and halted local train and ferry services. Dozens in western Japan fled their homes to take refuge in public shelters. Two people were injured, one seriously, officials said.