The calculated distance (air line) between Hōryūji and Kobe is approximately 32 miles respectively 51 kilometers.
By car or train, the actual journey to Kobe is certainly longer, as only the direct route (as the crow flies) between Hōryūji and Kobe has been calculated here.