The two shrines, an upper and a lower, lie in a corner of the old capital which was known as the "devil's gate" (鬼門, kimon) due to traditional geomancy beliefs that the north-east corner brought misfortune.
Kedua kuil tersebut, bagian atas dan bawah, terletak di sudut ibu kota lama yang dikenal dengan nama "gerbang iblis" (鬼門, kimon) karena kepercayaan geomansi tradisional bahwa sudut timur laut membawa kemalangan.