TOKYO - Japan and Egypt agreed on Monday to cooperate in ensuring stability in Afghanistan after the Taliban took control of Kabul and other major cities in the country.