Next, Step 14 is performed. A resist mask is formed not only in a region where the transistor 100 is formed but also in the region where the transistor 200J is formed. When the resist mask is used as a mask, a portion of each of the semiconductor layer 184a, the semiconductor layer 184b, the conductive layer 188, and the layer 186 is selectively removed, so that the semiconductor layer 109_1a, the semiconductor layer 109_1b, the electrode 110_1a, the electrode 110_1b, the layer 129_1a, the layer 129_1b, the semiconductor layer 109_2a1, the semiconductor layer 109_2b1, the semiconductor layer 109_2a2, and the semiconductor layer 109_2b2 are formed (see