A pyrazolopyrimidine compound represented by formula (1) that inhibits the function of HSP90 as a chaperone protein and that has antitumor activity, a medicament comprising a compound represented by formula (1), a pharmaceutical composition comprising a compound represented by formula (1), and a method for treating cancer using a compound represented by formula (1).