the villages of Shirakawa-go and Gokayama are home to treasures of traditional Japanese architecture: thatched cottages with sloping roofs, designed to withstand the rigours of time and climate.