A compound represented by the following general formula, or a salt thereof for use in prevention or treatment of an immune disease: wherein X represents a nitrogen-containing C3-C10 heterocycloalkylene which may have one or more substituents; Y represents -C(R 4)=C(R 5)(R 6) or -C≡C-R 7; W and Z each independently represent N or CH; n represents an integer from 0 to 2; R 1 represents an amino group which may have one or more substituents; R 2 and R 3, which may be identical or different, each represent a hydrogen atom, a halogen atom, a C1-C6 alkyl group which may have one or more substituents, a C1-C6 alkoxy group which may have one or more substituents, a C3-C7 cycloalkyl group which may have one or more substituents, a C6-C14 aromatic hydrocarbon group which may have one or more substituents, a 4- to 10-membered monocyclic or polycyclic unsaturated heterocyclic group containing 1 to 3 heteroatoms of the same kind or different kinds selected from the group consisting of a nitrogen atom, an oxygen atom and a sulfur atom, which may have one or more substituents, or a cyano group; and R 4, R 5, R 6 and R 7, which may be identical or different, each represent a hydrogen atom, or a C1-C6 alkyl group which may have one or more substituents, wherein the substituents are selected from the group consisting of a halogen atom, a hydroxyl group, a cyano group, a nitro group, an alkyl group, a halogenoalkyl group, a cycloalkyl group, a cycloalkyl-alkyl group, an aralkyl group, an alkenyl group, an alkynyl group, an alkoxy group, a halogenoalkoxy group, a cycloalkoxy group, a cycloalkyl-alkoxy group, an aralkyloxy group, an alkylthio group, a cycloalkyl-alkylthio group, an amino group, a mono- or dialkylamino group, a cycloalkyl-alkylamino group, an acyl group, an acyloxy group, an oxo group, a carboxyl group, an alkoxycarbonyl group, an aralkyloxycarbonyl group, a carbamoyl group, a saturated or unsaturated heterocyclic group, an aromatic hydrocarbon group, and a saturated heterocyclic oxy group, and wherein the immune disease is an allergic disease, an autoimmune disease, or an inflammatory disease. wherein X represents a nitrogen-containing C3-C10 heterocycloalkylene which may have one or more substituents; Y represents -C(R 4)=C(R 5)(R 6) or -C≡C-R 7; W and Z each independently represent N or CH; n represents an integer from 0 to 2; R 1 represents an amino group which may have one or more substituents; R 2 and R 3, which may be identical or different, each represent a hydrogen atom, a halogen atom, a C1-C6 alkyl group which may have one or more substituents, a C1-C6 alkoxy group which may have one or more substituents, a C3-C7 cycloalkyl group which may have one or more substituents, a C6-C14 aromatic hydrocarbon group which may have one or more substituents, a 4- to 10-membered monocyclic or polycyclic unsaturated heterocyclic group containing 1 to 3 heteroatoms of the same kind or different kinds selected from the group consisting of a nitrogen atom, an oxygen atom and a sulfur atom, which may have one or more substituents, or a cyano group; and R 4, R 5, R 6 and R 7, which may be identical or different, each represent a hydrogen atom, or a C1-C6 alkyl group which may have one or more substituents, wherein the substituents are selected from the group consisting of a halogen atom, a hydroxyl group, a cyano group, a nitro group, an alkyl group, a halogenoalkyl group, a cycloalkyl group, a cycloalkyl-alkyl group, an aralkyl group, an alkenyl group, an alkynyl group, an alkoxy group, a halogenoalkoxy group, a cycloalkoxy group, a cycloalkyl-alkoxy group, an aralkyloxy group, an alkylthio group, a cycloalkyl-alkylthio group, an amino group, a mono- or dialkylamino group, a cycloalkyl-alkylamino group, an acyl group, an acyloxy group, an oxo group, a carboxyl group, an alkoxycarbonyl group, an aralkyloxycarbonyl group, a carbamoyl group, a saturated or unsaturated heterocyclic group, an aromatic hydrocarbon group, and a saturated heterocyclic oxy group, and wherein the immune disease is an allergic disease, an autoimmune disease, or an inflammatory disease.