The Taliban officials came to Japan at the invitation of the nonprofit Nippon Foundation.