To provide a heterocyclic amide compound that may have a PRS inhibitory action and is expected to be useful as a prophylactic or therapeutic agent for PRS associated diseases and the like including cancer.SOLUTION: The invention provides a compound represented by the formula (I) in the figure or a salt thereof. [In the formula, each symbol is as described in the specification.]SELECTED DRAWING: None【課題】PRS阻害作用を有し得、癌を含むPRS関連疾患等の予防または治療剤として有用であることが期待される複素環アミド化合物を提供すること。【解決手段】下式(I):〔式中、各記号は、明細書に記載の通りである。〕で表される化合物またはその塩。【選択図】なし