There absolutely is a law preventing racial discrimination by landlord.
(I’d love to be proven wrong but my understanding is at the very least it’s murky and has never been tried in court)
0: https://invest-online.jp/qanda/qanda-trouble-32-16916/ among other reference you can Google using the keyword in that article.