PROBLEM TO BE SOLVED: To provide an estrogen related receptor modulator capable of being used in treatment of metabolic diseases such as diabetes, obesity and hyperlipidemia.SOLUTION: There are provided compounds of the formula (VIII), pharmaceutically acceptable salts or base addition salts thereof, and use thereof. These compounds and pharmaceutically acceptable salts or base addition salts thereof can be used for preparing pharmaceuticals for treatments of metabolic diseases, for example hyperlipidemia, fatty liver, hyperglycemia, diabetes, obesity and the like by modulating an estrogen related receptor (ERR). Substituents of the formula are defined in the specification.【課題】 糖尿病、肥満症、高脂血症などの代謝性疾患の治療に使用が可能な、エストロゲン関連受容体モジュレーターを提供すること。【解決手段】 式(VIII)による化合物、その薬学的に受容可能な酸又は塩基添加塩、及び、それらの使用。これらの化合物、その薬学的に受容可能な酸又は塩基添加塩は、エストロゲン関連受容体(ERR)を変調して、代謝性疾患、例えば、高脂血症、脂肪肝、高血糖症、糖尿病、肥満症などの疾患を治療するための薬剤の調製のために使用することが可能である。この式の置換基は明細書の中に定義される。【選択図】なし