unit, a cooling treatment unit, and a heat and cooling treatment unit. [0013] According to the present invention, the treatment gas is supplied to form the treatment film on the surface of the coating film after the step of forming the coating film and before the step of exposing the substrate, whereby the substrate can be protected from impurities such as oxygen and water vapor in an atmosphere b