A non-transitory computer-readable recording medium storing a program that causes, by a computer, a substrate processing apparatus to execute a method of processing a substrate, comprising:
- causing a substrate support provided in a process chamber in which a substrate is processed and capable of supporting a first substrate or a second substrate having an outer diameter smaller than that of the first substrate to support the second substrate;
- and
- causing a gas supplier including an annular first region having an inner diameter larger than the outer diameter of the second substrate, and a second region provided on an inner peripheral side of the first region, and capable of supplying gas into the process chamber from the first region and the second region to process the second substrate by supplying gas into the process chamber in a state where a suppressor suppresses supply of gas from the first region into the process chamber.