The present invention provides a 1-heterodiene derivative represented by formula (2) or salt thereof: (in formula (2), W represents hydrogen atom or the like, A represents oxygen atom or the like, R 1 represents an optionally substituted C1-6 alkyl group or the like, m represents an integer of 0 to 10, n represents an integer of 1 to 4, X 1 represents oxygen atom or the like, p represents an integer of 0 to 5, R 3 represents an optionally substituted C1-6 alkyl group or the like, r presents an integer of 0 to 5, the 1-heterodiene derivative exists in E -form, Z -form or a mixture thereof according to the carbon-carbon undefined double stereo bond in formula (2)).