The calculated distance (air line) between Shirahama and Himeji is approximately 87 miles respectively 139 kilometers.
By car or train, the actual journey to Himeji is certainly longer, as only the direct route (as the crow flies) between Shirahama and Himeji has been calculated here.