A compound represented by formula (I) and having an mTOR inhibition activity or a pharmacologically acceptable salt of the compound.[In formula (I), A represents a 8- to 10-membered partially-saturated or aromatic dicycylic fused nitrogenated heterocyclic group having 1 to 3 nitrogen atoms; R1 represents a hydroxy group, a halogen atom, a cyano group, or the like; n represents an integer of 0 to 3; B represents a 3- to 7-membered monocyclic saturated or partially-saturated cyclic hydrocarbon group, provided that one or two oxygen atoms, sulfur atoms, nitrogen atoms and the like may be contained as a constituent or constituents of the ring; R2 represents a substituent located on a carbon atom or a nitrogen atom that constitutes B; m represents an integer of 0 to 3; Q represents a bond, or a C1-4 alkylene group; R3 and R4 independently represent a hydrogen atom, a halogen atom, a C1-4 alkyl group, or the like; and R5 and R6 independently represent a hydrogen atom, a halogen atom, a C1-4 alkyl group, or the like.]