Coherent-anomaly method in zero-temperature phase transitions in quantum spin systems