A semiconductor device includes a base substrate provided with a base wiring.
A
first substrate includes a first wiring to be electrically connected to the base
wiring and is provided above the base substrate. A first semiconductor element
includes a first electrode to be electrically connected to the first wiring and
is provided between the base substrate and the first substrate. A second substrate
includes a second wiring to be electrically connected to the base wiring and is
provided above the first substrate. A second semiconductor element includes a second
electrode to be electrically connected to the second wiring and is provided between
the first substrate and the second substrate and above the first semiconductor
element. The first substrate has a first region where the first semiconductor element
is provided below, a second region where a portion of the first wiring that connects
to the base wiring is located, and a first bent section between the first region
and the second region. The second substrate has a third region where the second
semiconductor element is provided below, a fourth region where a portion of the
second wiring that connects to the base wiring is located, and a second bent section
between the third region and the fourth region.