The encounter of Japan with the community of civilized nations