TOKYO - Top national security advisers of Japan, the United States and South Korea agreed in their meeting in San Francisco to work closely together in seeking the denuclearization of North Korea, the Japanese government said Monday.