An object of the present invention is to provide a heteroaryl azole compound that is excellent in pest control activity, particularly, insecticidal activity and/or miticidal activity, is excellent in safety, and may be industrially advantageously synthesized. The compound of the present invention is a compound represented by the formula (I), an N-oxide compound, stereoisomer, tautomer or hydrate thereof or a salt of any of these compounds. In the formula (I), A represents CH or a nitrogen atom; B
1
represents CX
1
or a nitrogen atom; X
1
, X
2
and X
3
each independently represent a hydrogen atom, a substituted or unsubstituted C1-6 alkyl group, a substituted or unsubstituted C2-6 alkenyl group, or the like; R
1
represents a substituted or unsubstituted C1-6 alkylthio group, a substituted or unsubstituted C1-6 alkylsulfinyl group, or the like; R
2
represents a substituted or unsubstituted C1-6 alkyl group; and R represents a substituted or unsubstituted C1-6 alkyl group.