Footage taken from an Asahi Shimbun helicopter shows the wrecked chimney of a “sento” Japanese-style public bathhouse in Hirakata, Osaka Prefecture, after the magnitude-6.1 earthquake on June 18. (Video by Nobutake Takahashi)

OSAKA--A 20-year-old university student, like millions of others in this teeming metropolis, spent a restless night June 18 after the strongest quake in decades, admitting she was very scared every time aftershocks hit.

The third-year student of Osaka University of Pharmaceutical Sciences found refuge with her sister, 23, a fifth-year-student of the university, and three other residents at the Takatsuki city-run Nanpeidai Elementary School.

Chaos still reigned as residents of this western Japan city awoke the day after. Gas and water supplies were gradually being restored, but problems remained mainly in northern Osaka Prefecture, although train services more or less were back to normal.

Countless commuters spent a weary evening trying to get home, many opting to go by foot.

Lines formed outside the Takatsuki city-run Ankouji Elementary School as residents brought containers to fill with drinking water early June 19.

Kumiko Yoshida, 75, breathed a sigh of relief as she savored fresh water, saying, “Finally, I can take my medicine.”

Yoshida had been perplexed after her reserves of bottled water ran out.

Another local resident, a 72-year-old self-employed woman, had been distraught as she couldn't get water to wash her body and had to make do without dishes to eat from.

“I just pray that the gas supply will be back on as soon as possible,” she said.

The Ministry of Health, Labor and Welfare said the magnitude-6.1 earthquake ruptured water pipes to north of the prefecture, leaving 194,000 or so people in Takatsuki and about 20,000 people in Minoo without drinking water on June 19.

Officials at the Osaka prefectural disaster-countermeasures office later said that electricity, sewerage systems and communications had been restored across the prefecture.

Gas supplies to about 112,000 households, mainly in Ibaraki and Takatsuki, remained cut off as of 9 a.m. on June 19, according to Osaka Gas Co.

As aftershocks rattled the region, attention shifted to whether buildings were sufficiently quake-resistant. The earthquake that hit at 7:58 a.m. left five people dead and more than 370 injured.

A 9-year-old girl in Takatsuki was crushed to death when a section of a 3.5-meter-high wall beside an elementary school swimming pool fell on her while she made her way to school on the morning of June 18. The fallen part of concrete block wall was spread over 40 meters, according to city government officials.

Rina Miyake, the fourth-grader of city-run Juei Elementary School, was pronounced dead around 9 a.m. that day.

The Takatsuki board of education board acknowledged that the concrete block walls violated the Building Standards Law. They were erected to replace a chain-link fence, thereby blocking the view of the swimming pool from the street.

Transport Minister Keiichi Ishii, responding to the tragedy, said June 19 that it seemed “highly likely" the structure did not satisfy safety standards in light of footage taken at the accident scene.

Education Minister Yoshimasa Hayashi pledged to call on education boards around the country to hold urgent inspections of concrete block walls at elementary and junior high schools.

The Ministry of Land, Infrastructure, Transport and Tourism dispatched inspectors to assess damage in affected areas.

The Fire and Disaster Management Agency said that as of 6:30 a.m. on June 19, four people were dead in Osaka and 376 injured.

Later on June 19, a 65-year-old man was found dead at his home in Takatsuki.

It said 328 people were injured in Osaka Prefecture; 29 in Hyogo Prefecture; 10 in Kyoto Prefecture; four in Nara Prefecture; three in Shiga Prefecture; and two in Mie Prefecture.

Officials said the earthquake partially damaged 252 homes; 183 in Osaka Prefecture; 64 in Kyoto Prefecture; three in Nara Prefecture; and two in Hyogo Prefecture.

Aftershocks continued to rattle Osaka and neighboring prefectures. The initial quake registered lower 6 on the Japanese seismic intensity scale of 7.

As of 12:30 p.m. on June 19, the Japan Meteorological Agency said it had recorded a number of aftershocks ranging in intensity from 1 to 4.

Osaka prefectural authorities said 1,785 people had been forced to evacuate to 346 shelters in affected areas as of 7:30 a.m. on June 19.