Each of the main terminals 70 has two bent portions inside of the sealing resin body 30. Thus, the main terminal 70 has a substantially crank shape in a ZY plane. In the main terminal 70, a portion close to the tip end than the bent portion has a flat plate shape, and a part of the flat plate shaped portion projects from the sealing resin body 30. The projected portions of the main terminals 70C and 70E projecting from the sealing resin body 30, that is, the flat plate shaped portions of the main terminals 70C and 70E are located at substantially the same position in the Z direction, as shown in FIG. 3 and FIG. 4. Further, in the flat plate shaped portions, the plate thickness directions of the main terminals 70C and 70E are substantially coincide with the Z direction. As a result, the lateral surfaces of the main terminals 70C and the lateral surfaces of the main terminals 70E face each other in substantially entire areas in the Z direction. Further, the extension lengths of the flat shaped portions of the main terminals 70C and 70E are substantially the same. The main terminals 70C and the main terminal 70E are located at substantially the same positions in the Y direction. As a result, the lateral surfaces of the main terminal 70C and the lateral surfaces of the main terminals 70E face each other in substantially entire areas in the flat plate shaped portions.