The present invention provides a compound of formula (I): (In the formula, X 1, X 2, X 3, X 4, X 5, R 5, R 6, R 7, R 8, n, p, q, Ring A, and ring B is described in the specification compound or on a pharmaceutically acceptable salt thereof represented by the are the same meanings as defined).本発明は、式(I):(式中、X1、X2、X3、X4、X5、R5、R6、R7、R8、n、p、q、環A、および環Bは明細書に記載されている定義と同意義)で示される化合物またはその製薬上許容される塩に関する。