A shock-absorbing mechanism includes a shaft having a linear member wound therearound, a base having a relative position fixed to a first end of the linear member and formed with a shock-absorbing space which spreads toward the radial outside from the outer peripheral surface of the shaft, and a passage formed in the base in communication with the shock-absorbing space and the outside of the base and causing a second end of the linear member to extend to the outside of the base.