A structure for preventing deteriorations of a light-emitting device and
retaining sufficient capacitor elements' (condenser) required by each
pixel is provided. A first passivation film, a second metal layer, a
flattening film, a barrier film, and a third metal layer are stacked in
this order over a transistor. A side face of a first opening provided
with the flattening film is covered by the barrier film, a second opening
is formed inside the first opening, and a third metal layer is connected
to a semiconductor via the first opening and the second opening. A
capacitor element that is formed of a lamination of a semiconductor of a
transistor, a gate insulating film, a gate electrode, the first
passivation film, and the second metal layer is provided.