Provided is a compound having EP1 receptor antagonistic action and being represented by formula (I), or pharmaceutical acceptable salt thereof. (wherein A represents a pyridine ring and the like, Y1 represents a C1-6 alkylene group and the like, Y2 represents a single bond and the like, R1 represents a hydrogen atom and the like, R2 represents a C1-6 alkyl group and the like, R3 represents a hydrogen atom and the like, R4 represents a hydrogen atom and the like, R5 represents a hydrogen atom, halogen atom, C1-6 alkyl group and the like, R6 represents a C1-6 alkyl group, C3-6 cycloalkyl group and the like, R7 represents a hydrogen atom and the like, X represents a methylene group, Q represents a single bond and the like.) Further, the compound (I) of the invention can be used as a therapeutics or prophylaxis of lower urinary tract symptoms (LUTS), especially the symptoms of overactive bladder (OAB).本發明係提供具有EP1受體拮抗作用之本發明通式(I)表示之化合物或其藥理學上可容許之鹽[式中,A為吡啶環等,Y1為C1-6伸烷基等,Y2為單鍵等,R1為氫原子等,R2為C1-6烷基,R3為氫原子等,R4為氫原子等,R5為氫原子、鹵素原子、C1-6烷基等,R6為C1-6烷基、C3-6環烷基等,R7為氫原子等,X為亞甲基,Q為單鍵等]。另,本發明之化合物(I)可利用作為LUTS,尤其是OABs諸症狀之治療藥或預防藥。