1. A non-contact three-dimensional surface measurement method in which a grating pattern projected onto an object being measured, while a phase of the pattern is being shifted, is observed in a different direction from a projection direction to analyze contrast of a grating image deformed in accordance with a shape of the object and thereby obtain the shape thereof, wherein focuses of the projection and imaging sides are shifted successively to enlarge a measurement range in a direction of depth.