An X-ray imaging system includes first to third absorption gratings. Initially, the third absorption grating is disposed in a Z axis orthogonal to a detection surface of a FPD, and the position of the third absorption grating is adjusted in θx and θy directions based on a dose of X-rays having passed through the third absorption grating. Then, the first absorption grating is disposed in the Z axis so as to produce a moiré pattern. The position of the first absorption grating is adjusted in the θx and θy directions so that a frequency of the moiré pattern detected by the FPD becomes uniform. Then, the position of the first absorption grating is adjusted in a Z or θz direction so that the FPD loses the detection of the moiré pattern. After that, the second absorption grating is aligned in a like manner as the first absorption grating.