[Problem] To provide a medicinal composition for treating cancer in which at least one kinase selected from among BTK, JAK3 and ITK participates.[Solution] As the results of studies on compounds having BTK inhibiting effect, JAK3 inhibiting effect and ITK inhibiting effect, the present inventors confirmed that specific pyrazine carboxamide compounds have BTK inhibiting effect, JAK3 inhibiting effect and ITK inhibiting effect, and medicinal compositions comprising these compounds as an active ingredient have therapeutic effect on cancers in which at least one kinase selected from among BTK, JAK3 and ITK participates, cancers in which BTK is overexpressed or activated in another embodiment, cancers in which B cell receptor signals are activated in a still another embodiment, cancers in which JAK3 is activation-mutated or activated in a still another embodiment, and cancers in which ITK is activated in a still another embodiment, thereby completing the present invention.