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