Accordingly, except for the region around the first gate electrode, there is formed a silicon oxide layer which is composed of the first oxide layer, the silicon oxide layer obtained by oxidizing the oxidation-resistant layer, and the second silicon oxide layer.