Japanese philosophy has historically been a fusion of both indigenous Shinto and continental religions, such as Buddhism, Taoism and Confucianism. Formerly heavily influenced by both Chinese philosophy and Indian philosophy, as with Mitogaku and Zen, much modern Japanese philosophy is now also influenced by Western philosophy. Buddhism in Japan Before feudalism was firmly established in Japan, Buddhism occupied the mainstream of Japanese thought. The Buddhist culture introduced politically by Prince Shōtoku was completed as the "making a country safe" thought in the Nara period. When the Heian period (794–1185) began, in substitution for the "making a country safe thought", a form of esoteric Buddhism collectively known as mikkyō became widespread. However, in the late noble era when pessimism was popular due to the "belief that Buddhism will decline during the latter days of this world", the Pure Land movements spread out encouraging anticipation of a "future life" as a means to cope with desperation over "life in this world". During the Kamakura period (1185–1333) when government dominated by the samurai class began, a “new” Buddhism for the newly-risen class (samurai) appears. Nanto Rikushū In ancient Japan, the arrival of Buddhism closely relates to the national construction and the national centralization of power. Prince Shōtoku and the Soga family fought and overcame the Mononobe family, who had handled the ancient Japanese religion, and elaborated a plan for national governance based on the unification of the legal codes system and Buddhism. While cooperating with the Soga family, Prince Shōtoku, who was the regent of the Empress Suiko, showed a deep understanding in "foreign" Buddhism, and planned to stabilize national politics through the use of Buddhism. The thought that national peace and security came through the power of Buddhism is called the "making a country safe" thought. In the Nara period, in particular the times of Emperor Shōmu, the Kokubun-ji temples and Kokubun-ni-ji temples were erected throughout the whole country and Tōdai-ji Temple and the Daibutsu were erected in Nara.