A compound represented by general formula: wherein: ring1 and ring2 each independently represent a C5-10 carbocycle or a 5- to 10-membered heterocycle; R 1 represents a C1-4 alkyl, a C2-4 alkenyl, a C2-4 alkynyl, a C3-6 cycloalkyl, or a 3- to 6-membered heterocycloalkyl, said C1-4 alkyl, C2-4 alkenyl, C2-4 alkynyl, C3-6 cycloalkyl, or 3- to 6-membered heterocycloalkyl may be substituted with a 1-5 halogen or a hydroxyl group; R 2 represents a halogen, a C1-4 alkyl, OR 4, NR 5 R 6, or an oxo, said C1-4 alkyl may be substituted with a 1-5 halogen; R 4 represents a hydrogen atom, a C1-4 alkyl, or a benzene ring, said C1-4 alkyl or benzene ring may be substituted with a 1-5 halogen; R 5 and R 6 each independently represent a hydrogen atom or a C1-4 alkyl; R 3 represents a halogen, a C1-4 alkyl, OR 7, NR 8 R 9, SO 2 R 1 0, COR 1 1, a benzene ring, a 4-to 6-membered heterocycle, or an oxo, said C1-4 alkyl may be substituted with 1-5 substituents which are selected from the group consisting of a halogen, a hydroxyl group, a 4-to 6-membered heterocycle, and CONR 1 2 R 1 3; R 7 represents a hydrogen atom or a C1-4 alkyl, said C1-4 alkyl may be substituted with a 1-5 halogen or NR 1 4 R 1 5; R 8 and R 9 each independently represent a hydrogen atom, a C1-4 alkyl, or acetyl; R 10 represents a C1-4 alkyl or NR 1 6 R 1 7; R 1 1 represents a hydroxyl group, a C1-4 alkyl, NR 1 8 R 1 9, or a 4- to 6-membered heterocycle, said 4- to 6-membered heterocycle may be substituted with 1-5 substituents which are selected from the group consisting of a halogen, a hydroxyl group, and a C1-4 alkyl; R 1 2, R 1 3, R 1 4, R 1 5, R 1 6 and R 1 7 each independently represent a hydrogen atom or a C1-4 alkyl; R 1 8 and R 1 9 each independently represent a hydrogen atom, a C1-4 alkyl, or a 4- to 6-membered heterocycle, said C1-4 alkyl may be substituted with a 1-5 hydroxyl group, a C1-3 alkoxy, or NR 2 0 R 2 1; R 2 0 and R 2 1 each independently represent a hydrogen atom or a C1-4 alkyl; p represents an integer of 0 to 7; q represents an integer of 0 to 7; provided that when p and q each represent an integer of 2 or more, R 2 and R 3 each independently may be the same or different; a salt thereof, an N-oxide thereof, or a solvate thereof. ring1 and ring2 each independently represent a C5-10 carbocycle or a 5- to 10-membered heterocycle; R 1 represents a C1-4 alkyl, a C2-4 alkenyl, a C2-4 alkynyl, a C3-6 cycloalkyl, or a 3- to 6-membered heterocycloalkyl, said C1-4 alkyl, C2-4 alkenyl, C2-4 alkynyl, C3-6 cycloalkyl, or 3- to 6-membered heterocycloalkyl may be substituted with a 1-5 halogen or a hydroxyl group; R 2 represents a halogen, a C1-4 alkyl, OR 4, NR 5 R 6, or an oxo, said C1-4 alkyl may be substituted with a 1-5 halogen; R 4 represents a hydrogen atom, a C1-4 alkyl, or a benzene ring, said C1-4 alkyl or benzene ring may be substituted with a 1-5 halogen; R 5 and R 6 each independently represent a hydrogen atom or a C1-4 alkyl; R 3 represents a halogen, a C1-4 alkyl, OR 7, NR 8 R 9, SO 2 R 1 0, COR 1 1, a benzene ring, a 4-to 6-membered heterocycle, or an oxo, said C1-4 alkyl may be substituted with 1-5 substituents which are selected from the group consisting of a halogen, a hydroxyl group, a 4-to 6-membered heterocycle, and CONR 1 2 R 1 3; R 7 represents a hydrogen atom or a C1-4 alkyl, said C1-4 alkyl may be substituted with a 1-5 halogen or NR 1 4 R 1 5; R 8 and R 9 each independently represent a hydrogen atom, a C1-4 alkyl, or acetyl; R 10 represents a C1-4 alkyl or NR 1 6 R 1 7; R 1 1 represents a hydroxyl group, a C1-4 alkyl, NR 1 8 R 1 9, or a 4- to 6-membered heterocycle, said 4- to 6-membered heterocycle may be substituted with 1-5 substituents which are selected from the group consisting of a halogen, a hydroxyl group, and a C1-4 alkyl; R 1 2, R 1 3, R 1 4, R 1 5, R 1 6 and R 1 7 each independently represent a hydrogen atom or a C1-4 alkyl; R 1 8 and R 1 9 each independently represent a hydrogen atom, a C1-4 alkyl, or a 4- to 6-membered heterocycle, said C1-4 alkyl may be substituted with a 1-5 hydroxyl group, a C1-3 alkoxy, or NR 2 0 R 2 1; R 2 0 and R 2 1 each independently represent a hydrogen atom or a C1-4 alkyl; p represents an integer of 0 to 7; q represents an integer of 0 to 7; provided that when p and q each represent an integer of 2 or more, R 2 and R 3 each independently may be the same or different; a salt thereof, an N-oxide thereof, or a solvate thereof.