Provided is an agricultural fungicide that contains at least one selected from the group consisting of a novel nitrogen-containing heterocyclic compound represented by Formula (I), a salt thereof, or an N-oxide compound thereof In Formula (I), R represents a group represented by CR"R1R1 or a cyano group. R" to R1 each independently represents a hydrogen atom, an unsubstituted or substituted Ci.g alkyl group, an unsubstituted or substituted hydroxyl group, or the like. R4 or R5 represents a halogeno group or the like. Y or Z represents a carbon atom or the like, and A or D represents a benzene ring or the like. X represents an oxygen atom or a nitrogen atom or the like.