A compound represented by the general formula (I): or a pharmaceutically acceptable salt thereof, has an Aβ production inhibitory effect or a BACE1 inhibitory effect and is useful as a prophylactic or therapeutic agent for a neurodegenerative disease caused by Aβ and typified by Alzheimer- type dementia.