Thank you all for your answers and for the links provided. I am looking at them right now.
It seems going to Kyoto the day after is more convenient than going back to Tokyo the same day.
Are buses to Hida running frequently? I just found this inn
Welcome To Hida Takayama INN MINSHUKU-SUMIRESO not sure about the distance.