Kyoto was Japan’s capital for over a thousand years.