To provide novel pesticides, especially insecticides or acaricides. A condensed heterocyclic compound represented by the formula (1) or its salt, or N-oxide thereof: 5 wherein Q is a structure represented by Q1, Q2 or the like, D substituted with -S(O) n R1 is a structure represented by D1 or D2, A 1 is N(A 1 a ) or the like, A 1 a is C 1 -C6 alkyl or the like, A 4 is a nitrogen atom or C(R 4 ), A 5 is a nitrogen atom or C(R 5 ), R1 is C1 -C6 alkyl or the like, each of R 2 , R 5 and R 6 is independently a hydrogen 10 atom or C 1 -C6 alkyl, each of R 3 , R 4 , Y1, Y2, Y3 and Y4 is independently a halogen atom, halo (C 1 -C6 ) alkyl or the like, and n is an integer of 0, 1 or 2.