The present invention relates to a compound represented by the following general formula (I), which has a P2X4 receptor antagonistic activity (in the formula, R1, R2 and R3 represent hydrogen atom, an alkyl group having 1 to 8 carbon atoms, an alkoxy group having 1 to 8 carbon atoms, a halogen atom, and the like, X represents C or N, Y represents N or C(=O), provided that when X is C, Y represents N, and when X is N, Y represents C(=O), the double line consisting of the solid line and the broken line represents a single bond or double bond, n represents an integer of 0 to 6, Z represents O, S, or an atomic bond, and A represents benzene ring, pyridine ring, and the like).