Disclosed is a compound useful as a prophylactic agent or a therapeutic agent for cardiovascular diseases, nervous system diseases, metabolic diseases, genital diseases, gastrointestinal diseases, neoplasm, infectious diseases and others or an herbicide. Specifically disclosed is a long-chain fatty acid elongation enzyme inhibitor comprising a compound represented by formula (I) [wherein W represents a hydrogen atom, a C