We propose a novel quasi-phase-matched (QPM) device that can generate unequally spaced multiple wavelengths. Unequally spaced multiple QPM peaks can be obtained by employing the optimized phase modulation of a periodic domain structure. We fabricated a LiNbO3 waveguide device for 3.2-3.4 microm band difference frequency generation based on the design. Using the multiple mid-infrared outputs, we demonstrate the detection of multiple hydrocarbon gases, namely, methane, ethylene, and ethane.