Formula I [wherein m, n, p, q, r, A, X1, X2, X3, X4, X5, X6, Y, Z, G, R1a, R2a, R1b, R2b, R3, R4, R5 and R6 is as defined herein] or a pharmaceutically acceptable salt thereof. Also disclosed are methods for producing compounds for the treatment of inflammatory diseases such as arthritis and methods for using the compounds.式I[式中、m、n、p、q、r、A、X1、X2、X3、X4、X5、X6、Y、Z、G、R1a、R2a、R1b、R2b、R3、R4、R5及びR6は、本明細書で定義されるとおりである]で示される化合物又はその薬学的に許容し得る塩。また、関節炎のような炎症性疾患の処置用の化合物の製造方法及び該化合物の使用方法が開示されている。