On the other hand, in the semiconductor device according to the first embodiment, materials to be used for the side insulating films are not limited to these materials, and a combination of insulating films mainly made of silicon oxynitride, tantalum oxide, titanium oxide, aluminum oxide, or the like, which satisfies the above condition may be used as the sidewall insulating film IS.