To provide compounds useful as preventives or remedies for circular systemdisorders, nervous system disorders, metabolic disorders, reproduction systemdisorders,digestive system disorders, neoplasm, infectious diseases, etc., or asherbicides.A long-chain fatty acyl elongase inhibitor comprising, as the activeingredient thereof, a compound or a pharmaceutically-active salt thereof of aformula (I):[Chemical Formula 1](see formula I)[wherein W represents a hydrogen atom, a C1-6 alkyl, etc.; X represents anaryl, a heteroaryl, etc.;n indicates 0 or 1; Z represents a hydrogen atom, a C1-6 alkyl, etc.; A1, A2,A3 and A4 eachindependently represent CH or N].