1. An ophthalmic apparatus having a laser irradiation optical system for irradiating a laser beam for corneal surgery onto a patient's eye, which performs alignment of a reference axis of the laser irradiation optical system so that the reference axis has a predetermined positional relationship with the patient's eye to perform irradiation of the laser beam, the apparatus comprising: movement means for changing inclination and a position of the laser irradiation optical system with respect to the patient's eye; first image-pickup means and second image-pickup means for picking up images of an anterior segment of the patient's eye, which have image-pickup optical axes arranged in different directions and arranged to have respective predetermined positional relationships with the reference axis; detection means for detecting inclination and a position of the patient's eye with respect to the reference axis by subjecting the anterior-segment images picked up by the first and second image-pickup means to image processing; and control means for controlling the movement means so that the reference axis is brought to an intended alignment state with respect to the patient's eye based on a result of detection by the detection means.