Himeji City is about 50 km (33 miles) west of Kobe and is most easily accessed via the JR Express (Sanyo Line), which will deposit you in JR Himejo Station after 40 minutes of travel time from Kobe (the trip from Kyoto on the same line takes an additional 15 minutes).
Love to travel?
Get FREE email communications from Fodor's Travel, covering must-see travel destinations, expert trip planning advice, and travel inspiration to fuel your passion.