A plurality of IC regions are formed on a semiconductor wafer, which is
cut into individual chips incorporating ICs, wherein wiring layers and
insulating layers are sequentially formed on a silicon substrate. In
order to reduce height differences between ICs and scribing lines, a
planar insulating layer is formed to cover the overall surface with
respect to ICs, seal rings, and scribing lines. In order to avoid
occurrence of breaks and failures in ICs, openings are formed to
partially etch insulating layers in a step-like manner so that walls
thereof are each slanted by prescribed angles ranging from 20.degree. to
80.degree.. For example, a first opening is formed with respect to a
thin-film element section, and a second opening is formed with respect to
an external-terminal connection pad.