The present invention provides: a bicyclic heterocyclic amide derivative that is represented by formula (1), that shows excellent cancer cell sphere forming ability suppressing effect, and that is useful as an orally administrable antitumor agent; and a pharmaceutically acceptable salt thereof. [In the formula: ring Q1 represents an optionally substituted C6-10 aryl group or the like; R1 and R2 independently represent a hydrogen atom or the like; W1 represents an optionally substituted C1-4 alkylene group; W2 represents -NR3aC(O)- or the like (wherein, R3a represents a hydrogen atom or a C1-6 alkyl group); Cy1 represents a group represented by formula (11) or the like; ring Q2 represents an optionally substituted benzene ring or the like; n and m each independently represent 0, 1, or 2; n and m are not simultaneously 0; X represents NR5 or the like; R5 represents a hydrogen atom or the like; p represents 1, 2, 3, 4, or 5; and R4 represents, independently when more than one thereof exists, a hydrogen atom or the like.]