Fushimi Inari, Sanjusangendo, and Okazaki Shrine are all within walking distance from the Keihan train, making them easily accessible.
https://www.keihan.co.jp/travel/en/pdf/trains/information-for-traveler...https://www.keihan.co.jp/travel/en/trains/about-keihans-train-lines.ht...You can check the time by searching the route on Google Maps.
Fushimi Inari is about a 5-minute walk from Fushimi Inari Station
Sanjusangendo is about a 6-minute walk from Shichijo Station
Okazaki Shrine is about a 20-minute walk from Jingu Marutamachi Station.
Fushimi Inari is open 24 hours a day (although the shops are not open), so if you go early in the morning (after sunrise), there won't be many people.
I went to Fushimi Inari, but I didn't climb the stairs, so I don't know how long it would take. (Stroll around the main shrine only)
Your destination is not included in the Gion Matsuri course, so there will be no traffic jams.
On July 17th, Yamaboko will follow the route shown on the map above.
午前9時出発(Departure at 9:00 am)
http://www.gionmatsuri.or.jp/schedule/The festival is held on the west side of the Kamo River, but the Keihan Railway runs on the east side of the Kamo River.
If you want to see the festival on the way, I think it's easier to get to the Keihan train station if you look around Shijo Dori or Kyoto City Hall.
It takes about 3 minutes on foot from Kyoto City Hall to Sanjo Station. (Crossing the Kamo River)
Otagi Nenbutsuji Temple is located in Sagano, so it's quite a distance away.
Take city bus No. 93 to Nonomiya bus stop or the last stop, then transfer to Kyoto bus No. 94 bus stop and get off at Atagoji-mae bus stop.
https://www2.city.kyoto.lg.jp/kotsu/busdia/hyperdia/463022.htmhttps://www.kyotobus.jp/route/timetable/pdf/421-3.pdfOn the way back, get off at the Nonomiya bus stop and take the JR line from Saga-Arashiyama Station for easy access to Kyoto Station.
https://www.kyotobus.jp/route/timetable/pdf/6079-1.pdfOtagi Nenbutsuji Temple is open from 8:00am to 4:30pm.
If you want to visit, I think it's better to arrive about 30 minutes before.
https://www.otagiji.com/visit-enSanjusangendo is open from 8:30am to 4:30pm and can be viewed until 5:00pm.
Okazaki Shrine is also open 24 hours, and the shrine office seems to be open from 9am to 5pm.
Fushimi Inari is open 24 hours a day, so you can go the other way, but even with the street lights on, it can be a little scary at night.
If you go to the tourist information center at Kyoto station, I think you can get more detailed information.
https://tic.jnto.go.jp/eng/detail.php?id=1219