Japanese labor law does not allow it. But Japanese labor law is often not upheld. Japanese law does not allow the education system to systematically downgrade the results of female students to stop them becoming doctors either, which has gone on for years.