Moreover, the tail portion 201 of the electron wave function WF1 of the p-type semiconductor layer 20 is contracted, and electron overflow from the first well layer 31a is efficiently suppressed.
injection efficiency of the holes into the mqw can be improved.