Iwaya-jinja Shrine is considered the inner sanctuary of this shrine (currently, an independent shrine), and is said that when Yoshio OISHI was having a secluded life in Yamashina district, he secluded himself in the Iwaya-jinja Shrine and prayed for realization of a great ambition.
岩屋神社は当社奥の院であるとしており（現在は独立の神社）、大石良雄が山科に隠棲していたとき、岩屋神社に参篭して大願成就を祈ったと伝えられる。