A coil bobbin (18A;19A) with a coil (13A;14A) comprising: a pair of flange portions (18Aa, 18Ab; 19Aa, 19Ab) sandwiching the coil (13A; 14A); a terminal attachment portion (18Ae; 19Ae) which is provided so as to protrude outward in a radial direction of the coil (13A;14A) from one of the flange portions (18Aa, 18Ab; 19Aa, 19Ab) and has a first side surface and a second side surface which are faced to each other in a circumferential direction; and a terminal (18Af; 18Ag; 19Af; 19Ag) provided on an upper surface of the terminal attachment portion (18Ae; 19Ae) and extending in a direction perpendicular to the upper surface, wherein the coil (13A; 14A) includes a winding portion formed by winding a conductive wire around the coil bobbin (18A; 19A), and a lead portion (13Aa; 14Aa) which is provided in a direction away from the winding portion radially outwardly and toward the second side surface from the first side surface, and comes in contact with the second side surface as seen from a direction along a central axis of the coil (13A; 14A), when one imaginary line that intersects a portion where the first side surface and the outer periphery of the one of the flange portions (18Aa, 18Ab; 19Aa, 19Ab) come in contact with each other, and is parallel to the extending direction of the terminal (18Af; 18Ag; 19Af; 19Ag) is defined as a first reference line, and another imaginary line orthogonal to the first reference line and coming in contact with the outer periphery of the one of the flange portions (18Aa,18Ab; 19Aa,19Ab) is defined as a second reference line, the lead portion (13Aa; 14Aa) is provided along the second reference line or is provided at a position closer to the winding portion than the second reference line, a first projecting portion (85; 86) projecting in the circumferential direction is provided on the second side surface, a second projecting portion (80A; 82A) protruding in the circumferential direction is provided on the second side surface at a radially outer side of the first projecting portion (85; 86), at a portion where an outer periphery of the one of the flange portions (18Aa,18Ab; 19Aa, 19Ab) and the second side surface come in contact with each other, a cutout portion (18Ac; 19Ac) that is recessed radially inward from the outer periphery of the one of the flange portions (18Aa, 18Ab; 19Aa, 19Ab) is provided, wherein the lead portion (13Aa; 14Aa) is connected to the terminal (18Ag; 19Ag) from between the first projecting portion (85; 86) and the cutout portion (18Ac; 19Ac) along rear surface of the first projecting portion (85; 86) and a front surface of the second projecting portion (80A; 82A), wherein a recessed portion (81; 83) recessed in a direction along the central axis of the coil (13A; 14A) is provided on the front face of the second projecting portion (80A; 82A). a pair of flange portions (18Aa, 18Ab; 19Aa, 19Ab) sandwiching the coil (13A; 14A); a terminal attachment portion (18Ae; 19Ae) which is provided so as to protrude outward in a radial direction of the coil (13A;14A) from one of the flange portions (18Aa, 18Ab; 19Aa, 19Ab) and has a first side surface and a second side surface which are faced to each other in a circumferential direction; and a terminal (18Af; 18Ag; 19Af; 19Ag) provided on an upper surface of the terminal attachment portion (18Ae; 19Ae) and extending in a direction perpendicular to the upper surface, wherein the coil (13A; 14A) includes a winding portion formed by winding a conductive wire around the coil bobbin (18A; 19A), and a lead portion (13Aa; 14Aa) which is provided in a direction away from the winding portion radially outwardly and toward the second side surface from the first side surface, and comes in contact with the second side surface as seen from a direction along a central axis of the coil (13A; 14A), when one imaginary line that intersects a portion where the first side surface and the outer periphery of the one of the flange portions (18Aa, 18Ab; 19Aa, 19Ab) come in contact with each other, and is parallel to the extending direction of the terminal (18Af; 18Ag; 19Af; 19Ag) is defined as a first reference line, and another imaginary line orthogonal to the first reference line and coming in contact with the outer periphery of the one of the flange portions (18Aa,18Ab; 19Aa,19Ab) is defined as a second reference line, the lead portion (13Aa; 14Aa) is provided along the second reference line or is provided at a position closer to the winding portion than the second reference line, a first projecting portion (85; 86) projecting in the circumferential direction is provided on the second side surface, a second projecting portion (80A; 82A) protruding in the circumferential direction is provided on the second side surface at a radially outer side of the first projecting portion (85; 86), at a portion where an outer periphery of the one of the flange portions (18Aa,18Ab; 19Aa, 19Ab) and the second side surface come in contact with each other, a cutout portion (18Ac; 19Ac) that is recessed radially inward from the outer periphery of the one of the flange portions (18Aa, 18Ab; 19Aa, 19Ab) is provided, wherein the lead portion (13Aa; 14Aa) is connected to the terminal (18Ag; 19Ag) from between the first projecting portion (85; 86) and the cutout portion (18Ac; 19Ac) along rear surface of the first projecting portion (85; 86) and a front surface of the second projecting portion (80A; 82A), wherein a recessed portion (81; 83) recessed in a direction along the central axis of the coil (13A; 14A) is provided on the front face of the second projecting portion (80A; 82A).