Provided is a novel low molecular weight compound which inhibits the production of inducible MMPs in particular MMP 9 rather than the production of constitutive MMP 2. Also provided is a prophylactic and/or therapeutic agent for an autoimmune disease or arthrosis deformans. An amide derivative represented by formula (I) [wherein each symbol is as defined in the specification] or a pharmacologically acceptable salt thereof.