The present invention relates to a compound represented by the formula: wherein R1, R2, R3, R4, R5, R6, R7, m, n, p, X and Y are as defined in the specification, or Provided is a therapeutic agent useful for the treatment and / or prevention of diseases caused by increased OPN production, including cancer, including pharmaceutically acceptable salts thereof.本発明は、式:[式中、R1、R2、R3、R4、R5、R6、R7、m、n、p、XおよびYは、明細書に定義の通りである]で表される化合物またはその医薬的に許容される塩を含む、癌を含む、OPN産生亢進に起因する疾患の治療および/または予防に有用な治療剤を提供する。