A connector has a first connector and a second connector in which a sliding distance between a first terminal and a second terminal is within a range of contact area in a contact portion between the first terminal and a contact portion of the second terminal in a state where the second connector and the first connector are securely fitted together by contacting the contact portion of the second terminal with the first terminal.