to form a layer including carbon on the first layer, and forming a second layer including the element and the carbon; supplying the source gas into the process vessel under a condition where a CVD reaction is caused to additionally form a layer including the element on the second layer, and forming a third layer including the element and the carbon; and supplying a nitrogen-containing gas into the