The present invention provides novel compounds having a P2X3 and/or P2X2/3 receptor antagonistic effect, e.g. a compound of Formula (I):whereinR2 is a hydrogen atom or the like;ring A is five- to seven-cycloalkane or the like;C is a carbon atom;Q1 and Q2 are carbon atoms or the like;R9a and R9b are carbon atoms or the like;R6 is cycloalkyl or the like;R7 is a group represented by the formula:whereinring D is benzene or the like;carbon atom a and b are carbon atoms;ring B is an aromatic carbocyclic ring or the like;s and s′ are 0 or the like;R9 and R9′ are halogen or the like,or the like,or its pharmaceutically acceptable salt.