The image capturing unit 211 is provided with a primary-color Bayer array color filter. A pixel group 400 represents two rows by two columns of pixels, which is the unit by which the color filter repeats. The pixel group 400 includes a pixel 400R having R (red) spectral sensitivity, pixels 400Gr and 400Gb having G (green) spectral sensitivity, and a pixel 400B having B (blue) spectral sensitivity. One microlens 401 is provided for each pixel.
To enable the image capturing unit 211 to perform focus detection using the image plane phase detection method, each of the plurality of pixels arranged two-dimensionally in the image capturing unit 211 has two photodiodes (photoelectric conversion units) 402 and 403, which share a microlens 401. The first photodiode 402 and the second photodiode 403 each functions as a sub-pixel or a focus detection pixel. In other words, one pixel functions as two focus detection pixels. By treating the first photodiode 402 and the second photodiode 403 together as a single photodiode, one pixel functions as a single image capturing pixel. Hereinafter, a signal obtained by the first photodiode 402 will be called an “A signal”, a signal obtained by the second photodiode 403 will be called a “B signal”, and a signal obtained by adding the A signal and the B signal obtained by the same pixel will be called an “A+B signal”. The A signal and the B signal will be called focus detection signals, and the A+B signal will be called a captured image signal. The A signal (or the B signal) may also be obtained by subtracting the B signal (or the A signal) from the A+B signal.