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