[Problem] To provide a compound that is useful as an inhibitor of EGFR T790M mutation kinase activity. [Solution] The inventors studied compounds having an inhibiting effect against EGFR T790M mutation kinase and perfected the invention upon confirming that a pyrazine carboxamide compound has an inhibiting effect against EGFR T790M mutation kinase. The pyrazine carboxamide compound of the invention has an inhibiting effect against the EGFR T790M mutation kinase and can be used as a prophylactic and/or therapeutic agent for EGFR T790M mutation-positive cancer, EGFR T790M mutation-positive lung cancer, EGFR T790M mutation-positive non-small cell lung cancer, EGFR T790M mutation protein-positive cancer, and EGFR T90M mutation protein-positive lung cancer.