When the first hard mask layer 14A is formed of silicon oxide, an etching gas is composed of a combination of CF gas (fluorocarbon gas) such as CF4, C4F8, and C5F8, CHF gas (carbon fluorohydride gas) such as CHF3, and CH2F2, an inert gas such as Ar and He, O2 gas, and CO gas.