– In the cherry-tree-studded hills a couple of hours southeast of Seoul sits a bungalow-style school building made of dark bricks. Its wooden floors are lovingly polished. The brightly colored walls are lined with books and toys. The only thing it is missing is children.

Forty years ago, in the region's heyday as a mining area, Bobal primary school had more than 300 pupils. Today it has three: one girl and two boys, looking forlorn among the empty chairs. The school is only being kept open because a handful of villagers mounted a campaign to resist the education ministry's plan to merge it with the one in the next town, 6 miles away.

Demographic shift

"Keeping the school is important for the community," said Kim Jung-hoon, whose daughter is one of the three pupils left. "How will we ever persuade families to stay if there is nowhere to go for their children?"

But the education ministry's plan, which Kim and his fellow activists see as an assault on their village, is a symptom of a wider trend. Since the early 1980s, more than 3,500 schools have closed; 28 are set to do so this year. The reason is that South Korea is running out of children.

The fertility rate, which suggests how many children the average woman will have over her lifetime, stood at just 1.05 last year, the lowest in the world and far below the "replacement rate" of about 2.1 needed to sustain a population. In Seoul, the capital, the rate is just 0.84. Though South Koreans are not as old as their Japanese neighbors, they are aging faster.

Most demographers blame a growing mismatch between traditional mores and the changing preferences of younger people. Women are now more educated than men and are keen to succeed in the workforce, despite entrenched sexism and a huge gender pay gap (the average South Korean woman makes just 63 percent of the salary of the average man).

The long hours and rigid hierarchies in South Korean businesses mean that family life is not easy to fit in, even for men. But women face more hurdles.

"Many companies still see women as temporary workers who will drop out as soon as they have children," said Lee Do-hoon of Yonsei University. "So women worry that they won't be able to return to their jobs after starting a family."

Affording a family is difficult. Unemployment among young people stands at 10.5 percent. University graduates, who make up 69 percent of those between 25 and 34, can no longer expect to walk into a lucrative job and keep it for life. Owning a house in Seoul, where most economic opportunities are, is out of reach for all but the richest.

For many, marriage is also unappealing. Men worry that they will not be able to support a family. Women complain about the outdated expectations of potential suitors. Matchmaking companies deduct points from female applicants who have serious jobs but insufficient domestic skills.

"Getting married just means that the guy expects you to stay at home and cook for him," said a woman who works for an NGO in Seoul. "Why would I want to do that?"

Yet having children outside marriage is seen as shameful.

The lack of babies threatens the strained pension system and future economic growth. It does not help that the attempts of past governments to tackle it have mostly inspired resentment.

The administration of Park Geun-hye, the previous president, suffered a backlash in 2016 when it published a "birth map" highlighting the most fertile areas of the country in bright pink in an attempt to spur others along. Unsurprisingly, women took exception to being treated like farm animals.

President Moon Jae-in seems set on a different tack. His government has announced measures to improve child care and increase support for single-parent families. That makes sense, since South Korea spends less of its GDP on family benefits than most other rich countries.

Freedom to choose

Moon has also pledged to work toward greater gender equality and less punishing hours in the workplace. The emphasis is on enhancing people's freedom to choose how to live, rather than just boosting births.

This reframing may help, said Lee: "Women don't want the government to decide whether they have babies or not. They want it to create conditions under which they might want to have them."

Still, the shift is unlikely to result in a rapid change. The government also helps to arrange marriages between rural men and "imported" brides from poorer Asian countries.

In theory, it accepts the need for foreigners not just to make babies but to do other jobs as well. But mass immigration remains a touchy subject.