Disclosed is a compound represented by General formula (I), a pharmaceutically acceptable salt thereof, or a solvate of the compound or the pharmaceutically acceptable salt, which has an inhibitory activity of the production of Aβ or a BACE1-inhibiting activity, and is therefore useful as a prophylactic or therapeutic agent for Aβ-induced neurodegenerative diseases typified by Alzheimer-type dementia. Wherein the ring A represents a C
6-14
aryl group or the like; L represents —NR
e
CO— [wherein R
e
represents a hydrogen atom or the like] or the like; the ring B represents a C
6-14
aryl group or the like; X represents a C
1-3
alkylene group or the like; Y represents a single bond or the like; Z represents a C
1-3
alkylene group or the like; R
1
and R
2
independently represent a hydrogen atom or the like; and R
3
, R
4
, R
5
and R
6
independently represent a hydrogen atom, a halogen atom or the like.