Naomi Hasegawa’s family sells toasted mochi out of a small, cedar-timbered shop next to a rambling old shrine in Kyoto. The family started the business to provide refreshments to weary travelers coming from across Japan to pray for pandemic relief — in the year 1000.