A compound having GSK-3 inhibitory activity.A1 and A3 are a single bond, an aliphatic hydrocarbon group; A2 and A4 are a single bond, CO, COO, CONR, O, OCO, NR, NRCO, NRCOO, etc.; G1 is a single bond, an aliphatic hydrocarbon, aromatic hydrocarbon, heterocyclic; G2 is H, an aliphatic hydrocarbon, an alicyclic hydrocarbon, an aromatic hydrocarbon, heterocyclic; A5 is a single bond, NR; R2 is H, halogen, an aliphatic hydrocarbon, alicyclic hydrocarbon, aromatic hydrocarbon, heterocyclic; A6 is a single bond, NR, CO, NRCO, NRCONR, CONR, COO, O, etc.; R3 is H, halogen, nitro, saturated aliphatic hydrocarbon, alicyclic hydrocarbon, aromatic hydrocarbon, heterocyclic; and R3 may be a trimethylsilyl, formyl, acyl, carboxyl, alkoxylcarbonyl, carbamoyl, alkylcarbamoyl, or cyano group when A6 is CR═CR or C≡C, wherein R is H or an lower aliphatic hydrocarbon group.