The present invention relates to a novel amide derivative. More specifically, the present invention provides a medicinal agent useful as a prophylactic or therapeutic agent for diseases, which relies on the production of cytokines from T cells, and which comprises an amide derivative or a pharmacologically acceptable salt thereof or a solvate of the derivative or the pharmacologically acceptable salt as an active ingredient. Provided is an amide derivative represented by general formula (I)[wherein each symbol is as defined in the description] or a pharmacologically acceptable salt thereof, or a solvate of the derivative or the pharmacologically acceptable salt.