For 10 years, I worked for a Japanese company in San Diego. A Japanese employee who was fully bilingual in Japanese and English and who spoke English with no accent told me that in Japan, there is a tendency to see people from other countries as inferior. He said that when he visits Japan, he won't even speak Japanese and that he is disgusted with the racist aspect of Japanese culture. I've read that if a Japanese family lives here in the U.S. for a few years and their children grow up here, they are considered contaminated when they return to Japan and they experience discrimination.
I had a female Japanese coworker who was married to a black American who had lived in Japan for a few years and speaks Japanese. She told me that the Japanese are especially prejudiced against black Americans. Of course there are fair minded people in Japan who eschew racist attitudes, but nevertheless racism is a serious problem in Japan.
Obviously we have problems with racist attitudes here in the U.S., but there are racist attitudes in other countries too, including Japan.