I vacationed in Japan last fall. First thing I figured out was the sign on the stalls for “western” versus pit style toilet. Most of the places I visited has half the stalls one way and half the other. Our hotel room had a real toilet of course.
I did notice how many women wore skirts over there and I bet that helps. Of course Japanese restrooms are insanely clean and well stocked with toilet paper so I didn’t encounter any other horrors that some mention.
I don’t know where you went, but Japanese public toilets are notorious for being unmopped, and it’s a good idea to take those free packets of tissues advertising loan sharks and pachinko parlors because many toilets don’t provide paper.