The purpose of the present invention is to provide a novel
pyrazole derivative, or a pharmaceutically acceptable salt thereof, and a pharmaceutical composition containing same and a pharmaceutical usethereof. The present invention provides a composition having a TRPM8 inhibitory activity and represented by formula (I) (in the formula, ring A is C6-10
aryl or the like, X is CR4a or the like, R1 and R2 are a
hydrogen atom or the like, R3 is a
hydrogen atom or the like, R4 is a
hydrogen atom or the like, ring B is C6-10
aryl or the like, R5 is a
hydrogen atom or the like, R6a is a hydrogen atomor the like, R7a is a
hydrogen atom or the like, R7b is a
hydrogen atom or the like, R6b is a hydrogen atom or the like, R8 is a hydrogen atom or the like, and n is 0, 1, or 2), or a pharmaceuticallyacceptable salt thereof. Furthermore, the composition of the present invention represented by formula (I) or the pharmaceutically acceptable salt thereof can be used as a therapeutic agent or prophylactic agent for diseases or conditions caused by hyperexcitability or disorders of
afferent nerves.