The present invention provides an α,β-unsaturated amide compound or a pharmaceutically acceptable salt or the like thereof having anticancer activity and the like represented by the following formula (I):[wherein, “A” represents optionally substituted heterocyclic diyl,R1 represents hydrogen atom or optionally substituted lower alkyl,R2 represents optionally substituted aryl, optionally substituted cycloalkyl, optionally substituted aliphatic heterocyclic group or optionally substituted aromatic heterocyclic group,X represents —;O—;, —;S—;, —;SO2—;, —;NRX1—; (wherein, RX1 represents hydrogen atom or lower alkyl), —;CHRX2—; (wherein, RX2 represents hydrogen atom or hydroxy), —;CH═;CH—;, —;CO—; or —;NH—;CO—;, andn1 and n2 are the same or different, and each represents 0 or 1].