A first wiring line and a second wiring line are extended to an upper face of a resin substrate exposed from a slit formed in at least one layer of an inorganic insulating film, a first flattening film is provided within the slit which exposes the upper face of the resin substrate between the portions to which the first wiring line and the second wiring line are extended, and the first wiring line and the second wiring line are electrically connected to each other via a third wiring line provided between an end face of the first flattening film and the upper face of the resin substrate.