The present invention provides a heterocyclic compound having an IRAK-4 inhibitory effect and useful for the prevention / treatment of inflammatory diseases, autoimmune diseases, bone / joint degenerative diseases, neoplastic diseases and the like, and a medicament containing the same. . The present invention provides a compound represented by formula (I): [wherein each symbol is as defined in the specification. ] Or a salt thereof. [Selection figure] None本発明は、IRAK-4阻害作用を有し、炎症性疾患、自己免疫疾患、骨・関節変性疾患、腫瘍性疾患等の予防・治療に有用な複素環化合物及びそれを含有する医薬を提供する。本発明は、式(I):[式中、各記号は明細書中で定義した通りである。]で表される化合物またはその塩に関する。【選択図】なし