The present invention provides an antifungal agent which has excellent antifungal action, and which is also excellent in terms of its properties, and in particular its solubility in water and safety. The present invention discloses a compound represented by the following formula (I) or a salt thereof.wherein R1, R2, R3, R4, A, X, Y, and Z are defined in the specification.