Earthquakes are an ever-present danger in Japan so it is important to be thoroughly prepared in the eventuality that one strikes. Although many areas in Japan publish comprehensive guides in English and other languages — see "Tokyo Bousai" ("Disaster Preparedness Tokyo") published by the Tokyo Metropolitan Government as an example — here's a few important reminders:

What to do ahead of the earthquake