Royals get one homer among five hits in 3-1 loss to Giants