An anticancer agent comprising a compound represented by the formula (I) [R1 represents hydrogen atom, hydroxyl group, a C1-6alkoxy group and the like; R2 and R3 represents hydrogen atom, a halogen atom, a C1-6alkyl group and the like; R4 represents hydrogen atom, a C1-6alkyl group, a C1-6alkylsulfonyl group and the like; R5 represents hydrogen atom or a substituent; .... represents a single bond or a double bond; R6 and R7 represents hydrogen atom, a C1-6alkyl group and the like; R8 represents hydrogen atom, a C1-6alkyl group and the like; A represents -O-, -S-, or - CH2-; D represents -C= or -N=; X represents methylene group, -O-, or -CO-; Q represents -N= or -C(R8)=; and Y represents a heterocyclic group or amino group], which shows a superior inhibitory activity against pim-1 kinase.