put some generators on roof. Generator placement in Jp was based on BWRs placement in US - underground, which is sane considering tornados and stuff. But it wasnt adapted there
The same way anyone else avoids flooding: by building it on slightly higher ground.