Provided are heterocyclic amide compounds represented by formula (I), and an agricultural chemical, specincally a herbicide, which contains said compounds (in formula (1), Q represents an aromatic heterocycle indicated by any o f Q l to Q5, W represents an aromatic heterocycle indicated b y W-1, W-2, or W-3, X represents an oxygen atom, or the like, R1a represents a hydrogen atom, a halogen atom, or a C1-C6 alkyl, or the like, R1b represents a hydrogen atom, or the like, R1c represents a C 1-C6 alkyl, R 2a represents a halogen atom, or a C1-C6 alkyl, or the like, R 2c represents a C1-C6 haloalkyl, R 3 represents a hydrogen atom, or the like, R4a represents a hydrogen atom, or a Ci-C6 alkyl, or the like, R4b represents a hydrogen atom, or a Ci- C 6 alkyl, or the like, R4c represents a hydrogen atom, or a C 1-C6 alkyl, or the like, R 4d represents a hydrogen atom, or a C 1-C6 alkyl, or the like, R5a and R5b each in dependently represent a hydrogen atom, or a Ci -C6 alkyl, or the like, R5c represents a hydrogen atom, or a Ci-C6 alkyl, or the like, and n represents the integer 0 , 1, 2 , or 3).