Provided are a compound represented by general formula (1) and having a TTK inhibitory action and a medicine containing the compound. In formula (1), (X, Y, V, W) is (-N=, =CR1-, =N-, -CR7=), (-CR2=, =N-, =N-, -CR7=), etc.; A is an (un)substituted aromatic hydrocarbon ring, etc.; L is a single bond, -C(=O)-NRA-, etc.; Z is a group represented by the formula -NR3R4 or a group represented by the formula -OR5; R1 to R3, R6, and R7 each is a hydrogen atom, etc.; R4 and R5 each is an (un)substituted alkyl, etc.; and R8 is an (un)substituted cycloalkyl, etc.