Kotohira-gu was originally a buddhist temple, later became the shrine. That is why this shrine has temple like structures.