I read somewhere that this was something that the allies put in place after the war. Beforehand women could inherit- need to check my sources though
The post-war changes limited the succession to male descendants of then Emperor Hirohito's father, but the change to allow only males to inherit happened earlier in the mid-1800s.
The post-war reforms introduced by the allies did include women's suffrage, however.