In a digital camera, a focus lens is moved at a low speed between a timing at which a shutter key is half pressed and a timing at which the shutter key is fully pressed to detect a focused position. When the shutter key is fully pressed by a user before the focus lens reaches a focused position, the focus lens is moved at a higher speed than that of a case in which the shutter key is half pressed, and a focused position is detected. Thereby, even when the shutter key is fully pressed by a user before the focus lens reaches the focused position, the digital camera can realize focusing with less delay in capturing.