The following expression:(x is an alkyl group, an aryl group, a heterocyclic group, etc. q is a group represented by - CH2 -, - co -, - O - or - CH (or 7) - etc. (in this equation, R7 is hydrogen atom, alkyl group, etc.) n is an integer of 0 or 5 R1 and R2 are hydrogen atom, alkyl group, etc. B is any of the following groups:(in Formula 3, R3, R4, R5, and R6 are hydrogen atoms, halogen atoms, alkoxy groups, etc. m is 1 or 2Shows aromatic heterocycles. A new compound that acts as a ligand for the sigma receptor \/ binding site represented by the drug and medicines containing them as effective components.下記式(I):[式中、Xはアルキル基、アリール基、複素環基等Qは-CH2-、-CO-、-O-、又は-CH(OR7)-等で表される基(式中、R7は水素原子、アルキル基等)nは0ないし5のいずれかの整数R1及びR2は水素原子、アルキル基等Bは下記のいずれかの基:(式中、R3、R4、R5、及びR6は水素原子、ハロゲン原子、アルコキシ基等)mは1又は2は芳香族複素環)を示す。]で表されるシグマレセプター/結合部位に対してリガンドとして作用する新規化合物及びそれらを有効成分として含む医薬。