When the inorganic film formed by a CVD method or the like is provided on the black mask, if the second interlayer insulating film is exposed on the surface, a gas such as water or methane is generated from the organic resin, so that it is difficult to obtain an excellent silicon nitride film.