Provided is a compound having an agonist action on GPR52, which is useful as a prophylactic or therapeutic drug for mental diseases such as schizophrenia and the like, and the like.
A compound represented by the formula (I):
wherein each symbol is as defined in the specification, or a salt thereof.