Of the Edo-era buildings that have survived or been restored, the most important are the main hall of Kan'eiji and the Toshogu Shrine to the first Tokugawa Shogun Ieyasu a lesser version of the great sanctum at Nikko, in the mountains of Nagano Prefecture .