A connector a circuit terminal part to be attached to a circuit board on which an imaging element is mounted, the circuit board being housed in such a manner as to be displaceable within a case, and the circuit terminal part including a terminal to be connected to the imaging element; a planar connector housing disposed in such a manner as to face, in a thickness direction of the circuit board, a surface of the circuit board to which the circuit terminal part is attached, the planar connector housing constituting one wall portion of the case; and a connector terminal being a conductive rodlike body installed through the planar connector housing, the connector terminal being in contact with the circuit terminal part at an end surface of the connector terminal on a circuit board side, wherein: the case includes a boxlike front case and a boxlike rear case closing an opening in the boxlike front case, wherein: the planar connector housing is formed as a rear surface portion of the boxlike rear case, the circuit terminal part includes a contact part urged by an urging force of an elastic deformation portion (166, 167) of the circuit terminal part in a direction of the planar connector housing so as to be displaceable in the thickness direction of the circuit board, the thickness direction being the direction along an optical axis of an optical system, and the contact part is in contact with the end surface of the connector terminal while pressing the end surface in the direction of the planar connector housing, characterized in that a holding part for holding the optical system including a lens is housed in the boxlike front case, and the contact part electrically connects the circuit board to the connector terminal while holding the circuit board in a floating state in such a manner as to allow the circuit board to freely move in the thickness direction of the circuit board and along the directions (X, Y) orthogonal to the thickness direction, at a position spaced apart from the internal circumferential surface of the case and between the holding part and the planar connector housing in the case. a circuit terminal part to be attached to a circuit board on which an imaging element is mounted, the circuit board being housed in such a manner as to be displaceable within a case, and the circuit terminal part including a terminal to be connected to the imaging element; a planar connector housing disposed in such a manner as to face, in a thickness direction of the circuit board, a surface of the circuit board to which the circuit terminal part is attached, the planar connector housing constituting one wall portion of the case; and a connector terminal being a conductive rodlike body installed through the planar connector housing, the connector terminal being in contact with the circuit terminal part at an end surface of the connector terminal on a circuit board side, wherein: the case includes a boxlike front case and a boxlike rear case closing an opening in the boxlike front case, wherein: the planar connector housing is formed as a rear surface portion of the boxlike rear case, the circuit terminal part includes a contact part urged by an urging force of an elastic deformation portion (166, 167) of the circuit terminal part in a direction of the planar connector housing so as to be displaceable in the thickness direction of the circuit board, the thickness direction being the direction along an optical axis of an optical system, and the contact part is in contact with the end surface of the connector terminal while pressing the end surface in the direction of the planar connector housing, characterized in that a holding part for holding the optical system including a lens is housed in the boxlike front case, and the contact part electrically connects the circuit board to the connector terminal while holding the circuit board in a floating state in such a manner as to allow the circuit board to freely move in the thickness direction of the circuit board and along the directions (X, Y) orthogonal to the thickness direction, at a position spaced apart from the internal circumferential surface of the case and between the holding part and the planar connector housing in the case. the planar connector housing is formed as a rear surface portion of the boxlike rear case, the circuit terminal part includes a contact part urged by an urging force of an elastic deformation portion (166, 167) of the circuit terminal part in a direction of the planar connector housing so as to be displaceable in the thickness direction of the circuit board, the thickness direction being the direction along an optical axis of an optical system, and the contact part is in contact with the end surface of the connector terminal while pressing the end surface in the direction of the planar connector housing, characterized in that a holding part for holding the optical system including a lens is housed in the boxlike front case, and the contact part electrically connects the circuit board to the connector terminal while holding the circuit board in a floating state in such a manner as to allow the circuit board to freely move in the thickness direction of the circuit board and along the directions (X, Y) orthogonal to the thickness direction, at a position spaced apart from the internal circumferential surface of the case and between the holding part and the planar connector housing in the case.