This is the second visit of the prime minister to the shrine this season. He had visited it on May 3 when its gates had been reopened after the winter break.