Japan and South Korea agreed Wednesday to keep working together to address issues related to North Korea, but remained apart over the thorny bilateral issue of wartime labor during their foreign ministerial meeting in Brazil, according to the Japanese government.