A compound represented by the formula (I), an optically active isomer thereof, or a pharmaceutical acceptable salt thereof: wherein each R1 represents hydrogen atom or the like; X represents oxygen atom or the like; A represents a C3-C7 cycloalkyl group, a C6-C10 aryl group or a heterocyclic group; R6 represents a halogen atom or the like; s represents 0 or an integer of 1 to 5; Q represents a pyridine ring which may be substituted or pyrimidine ring; and R2 represents hydrogen atom or the like, which is used for preventive and/or therapeutic treatment of a disease caused by abnormal activity of tau protein kinase 1 such as a neurodegenerative diseases (e.g. Alzheimer disease).