A powerful earthquake jolted northwestern Japan late Tuesday, prompting officials to issue a tsunami warning along the coast which was lifted about 2 ½ hours later.
Thousands of families lost electrical power and bullet train services were suspended, but there were no reports of serious injuries or damage from the magnitude 6.7 quake.
Japan's Meteorological Agency said the earthquake was located off the western coast of Yamagata about 50 kilometers (30 miles) southwest of the city of Sakata.
It said the quake was fairly shallow, about 14 kilometers (9 miles) below the sea's surface. Shallow quakes tend to cause more damage.
The agency warned of a possible tsunami up to 1 meter (3.3 feet) high along the coasts of the northwestern prefectures of Yamagata, Niigata and Ishikawa. But only a minor swelling of the sea was observed in several cities about half an hour after the earthquake struck.
Chief Cabinet Secretary Yoshihide Suga said several minor injuries were reported in Niigata and Yamagata, but no serious ones. He urged residents of the affected areas to be prepared for possible aftershocks.
The shoreline closest to the epicenter is sparsely populated, but it's close to the small city of Tsuruoka.
Tsuruoka city crisis management official Takehiko Takahashi said in a televised interview that city officials were helping coastal residents evacuate to higher ground as a precaution.
More than 1,500 people took shelter at evacuation centers in Murakami city and elsewhere in Niigata. Public broadcaster NHK showed people using flattened cardboard boxes as mattresses to sleep on in a school gym. Many others, including children, were still awake and sitting against the walls.
Bullet train service was suspended in parts of the region because of power outages and for safety checks. About 9,000 households in Yamagata and Niigata lost power, according to Tohoku Electric Power Co.
All seven reactors at the Kashiwazaki-Kariwa nuclear plant in Niigata were off line and no abnormalities were reported. Two other nuclear power plants in the affected region were also intact, according to the Nuclear Regulation Authority.
An emergency response team was set up at the Prime Minister's Office to assess the extent of injuries and damage.
"We put people's lives before anything else," Prime Minister Shinzo Abe said. "We'll do our utmost in rescue operations as we closely cooperate with local authorities."
NHK showed broken glasses and dishes scattered on the floor of a bar in Tsuruoka which was empty after customers rushed out, leaving behind their half-eaten food on the counter.
Japan is one of the most earthquake- and tsunami-prone areas in the world. On March 11, 2011, a magnitude 9.0 offshore quake hit the northeast coast, causing a tsunami that took more than 18,000 lives and triggered meltdowns at the Fukushima nuclear power plant.
There was no danger of a tsunami from Tuesday's quake on the eastern coast, where the Fukushima plant is located.