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.本發明提供一種較抑制恆常型MMP-2之產生更能抑制誘導型MMPs、尤其是MMP-9之產生的新穎低分子化合物,同時提供一種自體免疫疾病或變形性關節炎之預防藥/治療藥。上述低分子化合物及預防藥/治療藥為下述式(I)所示之醯胺衍生物、其藥理學上所容許之鹽:(式中之各記號如說明書中所定義)。