Medieval Japan

How did the geography affect their interaction with other cultures?