This mechanism may be e.g. a mechanism which mechanically adjusts the position of a focus detector in the Z direction, or a mechanism which optically adjusts the position recognized as the best focus position by the focus detector in the Z direction, so that the optical path length is changed optically.