A compound of formula I, or a pharmaceutically acceptable salt thereof, wherein m, n, p, q, Ar, A, W, X1, X2, X3, X4, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10 and R11 are as defined herein). Also disclosed are methods of preparing the compounds and methods of using the compounds for the treatment of inflammatory diseases such as arthritis.式Iで示される化合物、又はその薬学的に許容し得る塩(式中、m、n、p、q、Ar、A、W、X1、X2、X3、X4、R1、R2、R3、R4、R5、R6、R7、R8、R9、R10及びR11は本明細書に定義されたとおりである)。該化合物を調製する方法及び関節炎等の炎症性疾患の治療のために該化合物を使用する方法も開示される。