Japan has two kinds of holy place. A 神社 (jinja) is a Shintō shrine, the home of a 神様 (kami-sama), a god. An お寺 (o-tera) is a Buddhist temple. The manners are a little different in each.
To explain steps in order, Japanese uses まず (mazu), first, 次に (tsugi ni), next, and 最後に (saigo ni), last.