Provided is a novel pest control agent, particularly a pesticide or a miticide. A condensed heterocyclic compound represented by formula (1), a salt of the compound, or an N-oxide of the compound or the salt. [Q represents a structure represented by Q1, Q2 or the like; D substituted by -S(O)nR1 represents a structure represented by D1 or D2; A1 represents N(A1a) or the like; A1a represents a C1-C6 alkyl group or the like; A4 represents a nitrogen atom or C(R4); A5 represents a nitrogen atom or C(R5); R1 represents a C1-C6 alkyl group or the like; R2, R5 and R6 independently represent a hydrogen atom or a C1-C6 alkyl group; R3, R4, Y1, Y2, Y3 and Y4 independently represent a halogen atom, a halo(C1-C6)-alkyl group or the like; and n represents an integer of 0, 1 or 2.]