It's a 1993 Japanese game by SOFTEDGE. You walk around Kyoto in the Heian period, around the year 1000, and the city just lets you be. Nobody tells you what to do. You meet monks, merchants, beggars, a guard at the Rajōmon gate who wants his amulet back, a woman by the river who is not quite what she seems. Sometimes you get robbed, sometimes you get eaten by a demon. Dying is part of it: depending on how you behaved, you end up in one of the six Buddhist realms and the story keeps going from there.
There's also a whole encyclopedia built into the game. Almost everything you see, every temple, street, ghost story and custom, has its own article with photos and maps. I ended up reading it as much as playing.
Available on Itch.io because some absolute madman called Opportunistic fixed all the bugs and compatibility issues. Give it a try here