In the active region side in the active region (1a) and the non-active region (1b), between the 1st deep layer (14) and the 1st current dispersion layer (13) and the base region (18), there is provided the 2nd deep layer (17) having the 2nd strip-shaped portion (171) in which a plurality of lines are arranged, which is connected to the base region and the 1st deep layer and is provided extending in the same direction as the length direction of the trench (21). In addition, there is provided the 2nd current dispersion layer (15) formed between the 1st current dispersion layer and the base region and arranged between the plurality of lines constituting the 2nd strip-shaped portion. Furthermore, each line constituting the 1st strip-shaped portion (141) included in the 1st deep layer includes a top end portion (141a) connected to the frame-shaped portion (142) and an inner side portion (141b) on the inner side than the top end portion, and the width of the top end portion is equal to or greater than the width of the inner side portion.