A condensed heterocyclic compound represented by formula (II), in which Q represents a group represented by formula Q-1 or a group represented by formula Q-2, has an excellent control effect on arthropod pests (wherein, Z represents a nitrogen atom or CX2, X1 and X2 each independently represent a hydrogen atom, a C1-C6 chain hydrocarbon group optionally having one or more substituent selected from group B, a phenyl group optionally having one or more substituent selected from group C, or the like, A1 represents NH, NCH3, or the like, A2 represents a nitrogen atom or CH, A3 represents a nitrogen atom or CR4, R1 represents a C1-C5 perfluoroalkyl group or the like, and n, p, q, and r each independently represent 0, 1, or 2).