[Problem to be Solved]It is intended to provide a compound having PDE10A inhibitory activity and having a novel structure, or an isotope thereof or a pharmaceutically acceptable salt thereof, and a pharmaceutical composition comprising the same as an active ingredient.[Solution]The present invention provides a compound represented by the general formula (I) or a pharmaceutically acceptable salt thereof.