Novel compounds having D3 receptor antagonistic activity are provided.A compound represented by formula (IA)’: wherein A is S or O; R1a is substituted or unsubstituted alkyloxy or the like, R2a to R2d are each independently hydrogen atoms or the like, ring B is a 4- to 8-membered non-aromatic carbocycle and the like, R3 is each independently halogen or the like, r is an integer of 0 to 4, R4 is substituted or unsubstituted aromatic heterocyclyl or the like, or a pharmaceutically acceptable salt thereof.本發明係提供具有D3受體拮抗作用之新穎化合物。一種式(IA)’所示之化合物或其製藥上可容許之鹽: (式中,A為S或O;R1a為經取代或未經取代之烷氧基等,R2a~R2d各自獨立地為氫原子等,環B為4~8員非芳香族碳環等,R3各自獨立地為鹵素等,r為0~4的整數,R4為經取代或未經取代之芳香族雜環基等)。