1. A digital still camera comprising: an image-capturing unit capturing a subject image via an image-capturing lens and creating an image; a focus detecting unit detecting focus in accordance with said image created by said image-capturing unit; an image-capturing lens driving unit driving said image-capturing lens; a receiving unit receiving an instruction to capture and record an image; a controlling unit controlling said image-capturing lens driving unit to drive said image-capturing lens in a predetermined direction successively and driving said image-capturing lens to a plurality of different lens positions, controlling said image-capturing unit to capture a plurality of said subject images having different lens positions and creating a plurality of candidate images to be finally recorded, and controlling said focus detecting unit to detect focus in accordance with said candidate images, when said receiving unit receives said instruction; a judging unit judging whether a candidate image in the highest in-focus state is obtained or not in accordance with a result of the focus detection based on said candidate images; and a comparing unit comparing focus conditions of said candidate images when said judging unit judges that said candidate image in the highest in-focus state is obtained.