A pyrazolopyridine derivative represented by the following formula (I) or a pharmacologically acceptable salt thereof exhibits a strong EP1 receptor antagonistic effect. Thus, the derivative or the pharmacologically acceptable salt is useful as a therapeutic agent for lower urinary tract symptoms (LUTS), particularly, overactive bladder syndrome (OABs), or a prophylactic agent therefor and furthermore, is also useful in the treatment, prevention, or suppression of various pathological conditions in which the EP1 receptor is involved, such as inflammatory disease, pain disease, osteoporosis, and cancer.[A is a benzene ring or the like, Y1 is C1-6 alkylene, R1 is -C(=O)-OZ1 or the like, Z1 is H or the like, R2 is a branched C3-6 alkyl group or the like, R3 is H or the like, R4 is a hydrogen atom or the like, and R5 is a hydrogen atom or the like].