South Korea and Japan reached a landmark agreement on Monday to resolve the issue of "comfort women", as those who were forced to work in Japan's wartime brothels were euphemistically known, an issue that has long plagued ties between the neighbors.
The foreign ministers of the two countries said after a meeting in Seoul that the "comfort women" issue would be "finally and irreversibly resolved" if all conditions were met.
South Korean President Park Geun-hye and Japanese Prime Minister Shinzo Abe pledged to take the opportunity to boost bilateral ties following the agreement, in which Japan made an apology and promised about one billion yen ($8.3 million) for a fund to help former "comfort women."
The accord was welcomed by the United States, which has been keen for improved relations between its two major Asian allies in the face of an increasingly assertive China and an unpredictable North Korea.
Strains between Tokyo and Seoul have prevented the two countries from signing an agreement to share sensitive military information, so a year ago they signed a three-way pact under which Seoul routes its information to the United States, which then passes it on to Japan, and vice versa.
Park "hoped that since the two governments worked through a difficult process to reach this agreement, they can cooperate closely to start building trust and open a new relationship," her office quoted her as saying to Abe.
Abe told reporters in Tokyo that Japan has apologized and expressed its remorse, but added future Japanese generations should not have to keep on doing so.
"We should never allow this problem to drag on into the next generation," he said, echoing remarks he made marking the 70th anniversary of the end of World War Two on August 15. "From now on, Japan and South Korea will enter a new era."
Japan was "painfully aware of its responsibilities" for the affront to the women's honor and dignity, Japanese Foreign Minister Fumio Kishida told a news conference in Seoul with his South Korean counterpart.
"Prime Minister Abe expresses anew his most sincere apologies and remorse to all the women who underwent immeasurable and painful experiences."
Calling the agreement "epoch-making", Kishida told reporters later: "I believe this has set up a stage for advancement of security cooperation between Japan and South Korea, as well as among Japan, the United States and South Korea".
White House national security adviser Susan Rice said the United States supported the agreement and its full implementation.
"This comprehensive resolution is an important gesture of healing and reconciliation," she said in a statement.
A senior U.S. Department of State official said the agreement was particularly important given the threat posed by North Korea's nuclear and missile programs.
"The world simply can't afford for Japan, Korea and the U.S. to operate at anything less than full capacity in terms of our security cooperation," said the official, speaking on condition of anonymity.
"FINALLY AND IRREVERSIBLY"
Japan will work with South Korea to run a program to restore the honor and dignity of former "comfort women," Kishida said.
United Nations Secretary-General Ban Ki-moon - a former South Korean foreign minister - welcomed the agreement and said in a statement he hoped it would "contribute to improving the bilateral relationship between the two countries."
Scholars continue to debate the number of women exploited. Activists in South Korea say there may have been as many as 200,000 Korean victims, only a few of whom came forward.
Only 46 survivors remain of the 238 women in South Korea who came forward, and their average age is 89.
South Korea's Foreign Minister Yun Byung-se said he valued Japan's efforts.
"On the premise that the steps pledged by the Japanese government are earnestly carried out, the Korean government confirms that the matter (of comfort women) is finally and irreversibly resolved," Yun told the news conference.
The two countries have been trying for decades to overcome divisions over the "comfort women" issue, but past efforts have not succeeded.
Japan had been insisting South Korea state its intention to lay the issue to rest this time, since many officials resent what they see as South Korea's use of the "comfort women" issue for domestic political gain despite past steps taken by Tokyo.
South Korea, for its part, wanted a clearer statement by Japan of its responsibility for the women's suffering.
Former Japanese diplomat Kunihiko Miyake said the timing was right for the deal, since Abe wanted to resolve the dispute this year, the 70th anniversary of World War Two's end, and Park doubtless felt it was better to do so well ahead of a parliamentary election set for next year.
A powerful symbol of success would be the fate of a statue symbolizing "comfort women" that has been put up in front of the Japanese Embassy in Seoul and has been an irritant to Tokyo.
Although South Korea did not agree to remove the statue, Yun said Seoul recognizes Japan's concerns and will hold discussions with the group that erected it to address the issue.
The two countries have been pushing to improve relations since Abe met Park last month. That meeting took place partly under pressure from Washington.