I believe we are interpreting hostile differently because for me it doesn't necessarily imply actively antagonistic or harmful, it can simply mean inhospitable/unfriendly and that to me is a textbook situation.
Here there are also situations where they can refuse entry/service, e.g., you're not wearing tshirt and shoes, or you're drunk and belligerent, but certainly not because of your race, sex, gender, etc.
In any case, to avoid going back and forth on the same topic, I reiterate that my personal experience (and my 2 friends from the first trip, and my partner from the second) was that although we had wonderful experiences with Japanese people that made us feel generally welcome as tourists, we were left with the impression that if we already had issues like those I wrote about what other problems someone living there permanently could encounter (maybe problems when renting, dating, etc.)
I loved visiting Japan, it's the most unique/different of all countries I've been to, but the bittersweet taste it left in me took away any desire to look for jobs there when I left Germany (not my country of origin either).