a controller which has a function of detecting whether or not the subject is a moving body and a function of performing focus control of an image-taking optical system in a first sequence in which the first focus detector is used and in a second sequence in which the second focus detector is used,