Japan is rebuilding its coastal cities to protect people from the biggest tsunamis.