Disclosed is a 1-heterodiene derivative represented by the formula (2); or, a salt thereof. In formula (2), W represents a hydrogen atom or the like; A, an oxygen atom or the like; R, a C alkyl group or the like that is unsubstituted or that has a substituted group; m, any integer between 0-10; n, any integer between 1-4; X, an oxygen atom or the like; R, a C alkyl group or the like that is unsubstituted or that has a substituted group; p, any integer between 0-5; R, a C alkyl group or the like that is unsubstituted or that has a substituted group; r, any integer between 0-5; and in formula (2) an E-body, a Z-body, or a mixture thereof is expressed by a carbon-carbon double stereo bond.