An input device comprising: a sensor unit having a support base member , a light-transmitting electrode unit that is provided in a sensing region (SA) on a first surface of the support base member , and a terminal part that is conductive with the light-transmitting electrode unit and is provided outside the sensing region (SA) on the first surface of the support base member ; an optical layer that is superimposed on the sensor unit in a first direction; and a flexible wiring substrate having a connection region (CA) that is connected to the terminal part and is held between the optical layer and the support base member , wherein the flexible wiring substrate has a flexible base member (41; 42) on which an electrode layer is provided and a wiring end that is an end of the electrode layer and is connected to the terminal part so as to be conductive with the terminal part with use of a conductive joining member in the connection region (CA), and the wiring end is located at a position set back from an end of the flexible base member (41; 42) on a sensing region (SA) side, so that the flexible base member (41; 42) has a protruding part on which the electrode layer is not stacked and that protrudes toward the sensing region (SA) side beyond the wiring end , characterized in that the input device further comprises an air bubble region (A) formed between the optical layer and the sensor unit , a part (RA) of the air bubble region (A) into which the conductive joining member does not stick out is present on the sensing region (SA) side of the conductive joining member relative to a front end of the protruding part , and the protruding part is provided so as to become closer to the support base member in a protruding direction. a sensor unit having a support base member , a light-transmitting electrode unit that is provided in a sensing region (SA) on a first surface of the support base member , and a terminal part that is conductive with the light-transmitting electrode unit and is provided outside the sensing region (SA) on the first surface of the support base member ; an optical layer that is superimposed on the sensor unit in a first direction; and a flexible wiring substrate having a connection region (CA) that is connected to the terminal part and is held between the optical layer and the support base member , wherein the flexible wiring substrate has a flexible base member (41; 42) on which an electrode layer is provided and a wiring end that is an end of the electrode layer and is connected to the terminal part so as to be conductive with the terminal part with use of a conductive joining member in the connection region (CA), and the wiring end is located at a position set back from an end of the flexible base member (41; 42) on a sensing region (SA) side, so that the flexible base member (41; 42) has a protruding part on which the electrode layer is not stacked and that protrudes toward the sensing region (SA) side beyond the wiring end , characterized in that the input device further comprises an air bubble region (A) formed between the optical layer and the sensor unit , a part (RA) of the air bubble region (A) into which the conductive joining member does not stick out is present on the sensing region (SA) side of the conductive joining member relative to a front end of the protruding part , and the protruding part is provided so as to become closer to the support base member in a protruding direction. <EOS>