The present disclosure relates to a compound of formula (I) and pharmaceutically acceptable salts thereof, wherein X, X1, M, R2, R3, R4, R5, m, n, and p are as defined herein. Which are active as modulators of the retinoid-related orphan receptor gamma t (RORγt). These compounds prevent, inhibit or suppress the action of RORγt and thus, for example, pain, inflammation, COPD, asthma, rheumatoid arthritis, colitis, multiple sclerosis, neurodegenerative diseases, and cancer Are useful for the treatment of RORγt mediated diseases, disorders, syndromes, or conditions.本開示は、式(I)の化合物及びその薬学的に許容される塩に対し、式中、X、X1、M、R2、R3、R4、R5、m、n、及びpは、本明細書で定義されるとおりであり、これらは、レチノイド関連オーファン受容体ガンマt(RORγt)のモジュレータとして活性である。これらの化合物は、RORγtの作用を防ぐか、阻害するか、または抑制し、したがって、例えば、疼痛、炎症、COPD、喘息、リウマチ性関節炎、大腸炎、多発性硬化症、神経変性疾患、及び癌等のRORγt媒介性疾患、障害、症候群、または病態の治療に有用である。