The present disclosure is directed to compounds of formula (I) and pharmaceutically acceptable salts thereof, which are active as modulators of retinoid-related orphan receptor gamma t (RORγt), wherein ring A, ring B , L, R 1 , R 2 , R 3 , R 4 , R 5 , R a , R b , n, m, p and q are as defined in the present specification]. These compounds prevent, inhibit or inhibit the action of RORγt and thus RORγt mediated diseases, disorders, syndromes or conditions such as pain, inflammation, COPD, asthma, rheumatoid arthritis, colitis, multiple sclerosis It is useful in the treatment of psoriasis, neurodegenerative diseases and cancer.本開示は、レチノイド関連オーファン受容体ガンマt(RORγt)のモジュレータとして活性である、式(I)の化合物及びその薬学的に許容される塩を対象とする[式中、環A、環B、L、R1、R2、R3、R4、R5、Ra、Rb、n、m、p及びqは、本明細書において定義するとおりである]。これらの化合物は、RORγtの作用を防止、阻害、または抑制し、したがって、RORγt媒介性疾患、障害、症候群または状態、例えば、疼痛、炎症、COPD、喘息、関節リウマチ、大腸炎、多発性硬化症、乾癬、神経変性疾患及びがんなどの処置において有用である。