Yeah of course. So yeah, it could be either xenophobia or racism (or both) in my case. I was targeted because I'm foreign, so I'd say it's both. My bad cases were actually letters. The first time, someone handed me a note that basically said I'm not welcome in Japan and I should leave. The second was very similar except I was verbally called a parasite and loads of other things in Japanese, alongside the note telling me I'm not welcome, they pay for me with taxes,etc etc. Usual racist stuff.
The thing is, after speaking to people, I know this is rare and targeted. Japanese laws basically say that whoever throws the first punch gets punished, so this type of racism/xenophobia sometimes happens due to racist stereotypes. I am 187cm (6'2) and 100kg (220lbs), so I fit the "big aggressive foreigner" stereotypes. The plan is, the racist targets big foreigners thinking they are violent, gets punched, then the foreigner gets deported. It's like poking a dog until the dog bites then the dog gets put down. I'm a big softie, so it didn't work. I just told my job and they felt really bad and reported it etc.
The only other ones are "foreigner pricing", which sucks because I get paid in yen. Also sometimes I will be sitting on a packed train and everyone will be standing shoulder to shoulder like sardines and no one will want to sit next to me... but I'm ok with that haha.