1. A radiographic image processing device comprising: an image acquisition section that acquires a photographic subject image which is a radiographic image captured by an imaging system that includes a radiation source that irradiates a photographic subject with radioactive rays, a shield that partially shields the radioactive rays emitted to the photographic subject, and a radiation detector that detects the radioactive rays passed through the photographic subject, the photographic subject image being detected under a predetermined imaging condition by a shielded detector portion which is a detector portion in which the radioactive rays are shielded by the shield in an irradiation direction of the radioactive rays from the radiation source and a non-shielded detector portion which is a detector portion in which the shielded detector portion is excluded in the radiation detector; an area information acquisition section that acquires area information which is information for specifying a non-shielded image area including a pixel value corresponding to each position in the non-shielded detector portion in the photographic subject image and a shielded image area including a pixel value corresponding to each position in the shielded detector portion in the photographic subject image; and a scattered ray removal section that includes a feature acquisition section that acquires virtual grid features indicating a scattered ray transmissivity and a primary ray transmissivity of a virtual grid, which are set to virtually provide a scattered ray removal effect of a scattered ray removal grid to the photographic subject image, a scattered ray information acquisition section that acquires scattered ray information indicating a scattered ray content distribution in the photographic subject image, and a removal processing section that removes a scattered ray component at each position in the non-shielded image area based on the area information, the virtual grid features, and the scattered ray information.