A compound represented by general formula: wherein: represents Ring 1 represents a 5- to 6-membered monocyclic aromatic ring or a 9- to 10-membered bicyclic aromatic ring that may be partially saturated; R 1 represents a halogen, an oxo group, a hydroxyl group, a cyano group, NR 4 R 5, a Cl-4 alkyl group, or a C1-4 alkoxy group, said C1-4 alkyl group or C1-4 alkoxy group may be substituted with a halogen; R 4 and R 5 each independently represent a hydrogen atom, a C1-4 alkyl group, or a C1-4 acyl group; p represents an integer of 0 to 7; R 3 represents a C1-4 alkyl group, a C2-4 alkenyl group, a C2-4 alkynyl group, a (C3-6 cycloalkyl)-(CH 2) r -group, or a (3- to 6-membered saturated heterocycle)-(CH 2) s -group, said R 3 may be substituted with a halogen; r represents an integer of 0 to 4; s represents an integer of 0 to 4; Ring 2 represents a 5- to 6-membered monocyclic aromatic ring or a 9- to 10-membered bicyclic aromatic ring that may be partially saturated; R 2 represents a halogen, an oxo group, a hydroxyl group, a cyano group, C R 6, SO 2 R 7, a C1-4 alkyl group, or a C1-4 alkoxy group, said C1-4 alkyl group or C1-4 alkoxy group may be substituted with a substituent selected from the group consisting of a halogen, a hydroxyl group, a cyano group, C R 8, NR 9 R 10, and SO 2 R 11; R 6 represents a hydroxyl group, a C1-4 alkyl group, a C1-4 alkoxy group, or NR 12 R 13; R 7 and R 11 each independently represent a hydroxyl group, a C1-4 alkyl group, or a C3-6 cycloalkyl group, said C1-4 alkyl group may be substituted with a halogen or CO 2 R 14; R 8 represents a hydroxyl group, a C1-4 alkoxy group, or NR 15 R 16; R 9, R 10, R 12, and R 13 each independently represent a hydrogen atom, a C1-4 acyl group, or a C1-4 alkyl group that may be substituted with NR 15 R 16; R 9 and R 10, as well as R 12 and R 13, taken together with the nitrogen atom to which they are attached, may form a 5- to 6-membered saturated cyclic amine; R 14 represents a hydrogen atom or a C1-4 alkyl group; R 15 or R 16 each independently represents a hydrogen atom, a C1-4 alkyl, or a C1-4 acyl group; R 15 and R 16, taken together with the nitrogen atom to which they are attached, may form a 5- to 6-membered saturated cyclic amine; q represents an integer of 0 to 7; provided that when p and q each represent an integer of 2 or more, R 1 and R 2 each independently may be the same or different; a salt thereof, a solvate thereof, or an N-oxide thereof. Ring 1 represents a 5- to 6-membered monocyclic aromatic ring or a 9- to 10-membered bicyclic aromatic ring that may be partially saturated; R 1 represents a halogen, an oxo group, a hydroxyl group, a cyano group, NR 4 R 5, a Cl-4 alkyl group, or a C1-4 alkoxy group, said C1-4 alkyl group or C1-4 alkoxy group may be substituted with a halogen; R 4 and R 5 each independently represent a hydrogen atom, a C1-4 alkyl group, or a C1-4 acyl group; p represents an integer of 0 to 7; R 3 represents a C1-4 alkyl group, a C2-4 alkenyl group, a C2-4 alkynyl group, a (C3-6 cycloalkyl)-(CH 2) r -group, or a (3- to 6-membered saturated heterocycle)-(CH 2) s -group, said R 3 may be substituted with a halogen; r represents an integer of 0 to 4; s represents an integer of 0 to 4; Ring 2 represents a 5- to 6-membered monocyclic aromatic ring or a 9- to 10-membered bicyclic aromatic ring that may be partially saturated; R 2 represents a halogen, an oxo group, a hydroxyl group, a cyano group, C R 6, SO 2 R 7, a C1-4 alkyl group, or a C1-4 alkoxy group, said C1-4 alkyl group or C1-4 alkoxy group may be substituted with a substituent selected from the group consisting of a halogen, a hydroxyl group, a cyano group, C R 8, NR 9 R 10, and SO 2 R 11; R 6 represents a hydroxyl group, a C1-4 alkyl group, a C1-4 alkoxy group, or NR 12 R 13; R 7 and R 11 each independently represent a hydroxyl group, a C1-4 alkyl group, or a C3-6 cycloalkyl group, said C1-4 alkyl group may be substituted with a halogen or CO 2 R 14; R 8 represents a hydroxyl group, a C1-4 alkoxy group, or NR 15 R 16; R 9, R 10, R 12, and R 13 each independently represent a hydrogen atom, a C1-4 acyl group, or a C1-4 alkyl group that may be substituted with NR 15 R 16; R 9 and R 10, as well as R 12 and R 13, taken together with the nitrogen atom to which they are attached, may form a 5- to 6-membered saturated cyclic amine; R 14 represents a hydrogen atom or a C1-4 alkyl group; R 15 or R 16 each independently represents a hydrogen atom, a C1-4 alkyl, or a C1-4 acyl group; R 15 and R 16, taken together with the nitrogen atom to which they are attached, may form a 5- to 6-membered saturated cyclic amine; q represents an integer of 0 to 7; provided that when p and q each represent an integer of 2 or more, R 1 and R 2 each independently may be the same or different; a salt thereof, a solvate thereof, or an N-oxide thereof.