Often-overlooked temple in one of Japan’s most best sightseeing towns was inspired by the story of a deeply devoted samurai cat.