PROBLEM TO BE SOLVED: To provide a compound used for preventive and/or therapeutic treatment of a disease caused by tau protein kinase 1 hyperactivity such as a neurodegenerative disease (e.g. Alzheimer disease).SOLUTION: The present invention provides a compound represented by formula (I) or an optically active isomer thereof, or pharmaceutically acceptable salt thereof. In the formula, Rrepresents a hydrogen atom or an alkyl; Rrepresents an alkyl or a cycloalkyl; Rrepresents a halogen atom or a cyano; q represents an integer of 0 to 3; Z represents a nitrogen atom, C-H, or C-R; Rrepresents a cyano; Rrepresents a part of carbon ring; Rrepresents a substituted alkyloxy; and p represents an integer of 0 to 3.【課題】神経変性疾患(例えばアルツハイマー病)等のタウプロテインキナーゼ1の異常昂進に起因する疾患の予防及び/又は治療のために用いられる化合物の提供。【解決手段】式(I)で表される化合物もしくはその光学活性異性体、又はそれらの医薬上許容される塩。〔R2はH、アルキル等;R3はアルキル、シクロアルキル等;R20はハロゲン原子、シアノ等;qは0~3の整数;ZはN、C-H又C-R20;R4はシアノ等;R5は炭素環の一部等を表し;R6は置換アルキルオキシ等を表し;pは0~3の整数〕【選択図】なし