Damn taking japanese laws to the illogical extreme, in that gay marriage isn't allowed but you can transition and then marry someone of your birth sex after family register is updated post transition.
Yeah I know they're no longer on earth, but y'know.