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 1 R 2 R 3 or a cyano group. R 1 to R 3 each independently represents a hydrogen atom, an unsubstituted or substituted C 1-8 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.