Please stop thinking that Japan is some superior society where everything is perfect.
But I didn't realise women were in danger on trains. That doesn't happen here, no. Well, it does incidentally but not to the point that women-only cars are warranted, luckily. But Spain is still a pretty patriarchal society.