The present invention aims to provide a prophylactic or therapeutic agent for schizophrenia and the like, containing the compound of the present invention having a GPR52 agonist activity. A compound represented by the following formula (I) or a salt thereof:
wherein,
A is -CONH or the like,
B is a hydrogen atom or a substituent,
ring Cy1 is a benzene ring or the like,
X1, X2 and X3 are each independently -CH= or -N= or the like, ring Cy2 is a carbon ring or the like,
Z is a carbon atom or a nitrogen atom,
L is a bond or the like,
n is 1 or 2,
Rb is a hydrogen atom or a substituent, and
ring Cy3 is a benzene ring or the like.