A grating pattern element includes peaks which are periodically arranged and valleys provided between the peaks, and at least one of the peaks and at least one of the valleys includes an adsorbing material on a surface thereof which adsorbs a target material.