What country is shintoism a religion?

Shintoism became Japan's main religion before.