Himeji station is the gateway to UNESCO World Heritage Site, Himeji Castle. It is very popular day trip destination from Kobe and Osaka. You can get Himeji by JR trains, Shinkansen and Sanyo / Hanshin Railway.
Kyoto is the biggest name in Japan. Most of you will visit Kyoto. JR Kyoto station is probably the first step to Kyoto for you. There are so many trains, such as Shinkansen, Limited Express Haruka from Kansai airport, Limited Express Thuderbird to Kanazawa, commute trains to Osaka, Kobe and Nara, Kintetsu train, Kyoto city subway and many many more to depart and arrive in this station.
Now I would like to explain about Kyoto station. I will show you how to transfer among many trains there.