Which was the capital of Japan before Tokyo?

Which was the capital of Japan before Tokyo?

ٹوکیو سے پہلے جاپان کا دارالحکومت کون سا تھا؟
Explanation

Kyoto was the capital of Japan from 794 to 1868, for over 1,000 years.

In 1868, the capital was moved to Edo, which was renamed Tokyo.

Tokyo has been the capital of Japan ever since.