Provided are: a novel compound which binds to FKBP12 or a pharmaceutically acceptable salt thereof and a novel therapeutic agent which contains the compound or a pharmaceutically acceptable salt thereof and is useful for the prophylaxis or treatment of alopecia. Specifically provided is a compound which is represented by formula (1) or a pharmaceutically acceptable salt thereof. (In formula (1), R