They have a protected intake system. Venting the exhaust isn’t a big deal.
And the Japanese thought their nuclear plants would survive a direct Tsunami hit with no problems.