The purpose of the invention is to provide a compound or salt thereof that is useful as an agent for the prevention or treatment of epilepsy, neurodegenerative disease, and the like. The invention pertains to compounds represented by formula (I) (in the formula, each symbol is as defined in the specification) or salts thereof.