@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  .cursor-hover,
  [data-cursor] {
    cursor: none;
  }

  .custom-cursor {
    --cursor-progress: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    opacity: 0;
    background-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.1s ease, width 0.15s ease, height 0.15s ease;
  }

  .custom-cursor__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px var(--bg);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .custom-cursor__plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%);
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .custom-cursor__text {
    display: none;
  }

  .custom-cursor__arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    opacity: 0;
    background-color: #ffffff;
    -webkit-mask-image: var(--cursor-arrow);
    mask-image: var(--cursor-arrow);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: opacity 0.15s ease;
  }

  .custom-cursor__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) rotate(-90deg);
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .custom-cursor__ring-bg,
  .custom-cursor__ring-progress {
    fill: none;
    stroke-width: 2.5;
  }

  .custom-cursor__ring-bg {
    stroke: rgba(255, 255, 255, 0.28);
  }

  .custom-cursor__ring-progress {
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-dasharray: 169.65;
    stroke-dashoffset: calc(169.65 * (1 - var(--cursor-progress)));
    transition: stroke-dashoffset 0.12s linear;
  }

  .custom-cursor.is-visible {
    opacity: 1;
  }

  .custom-cursor.is-hover {
    background-color: #ffffff;
    border-color: #ffffff;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%) scale(1.25);
  }

  .custom-cursor.is-hover .custom-cursor__dot {
    opacity: 0;
  }

  .custom-cursor.is-click {
    transform: translate(-50%, -50%) scale(0.9);
  }

  .custom-cursor.is-arrow {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-image: var(--cursor-arrow);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: normal;
  }

  .custom-cursor.is-arrow .custom-cursor__dot {
    opacity: 0;
    box-shadow: none;
  }

  .custom-cursor.is-arrow .custom-cursor__arrow,
  .custom-cursor.is-arrow .custom-cursor__ring,
  .custom-cursor.is-arrow .custom-cursor__plus {
    opacity: 0;
  }

  .custom-cursor.is-arrow-progress {
    border: none;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: normal;
  }

  .custom-cursor.is-arrow-progress .custom-cursor__dot {
    opacity: 0;
    box-shadow: none;
  }

  .custom-cursor.is-arrow-progress .custom-cursor__arrow {
    opacity: 1;
  }

  .custom-cursor.is-arrow-progress .custom-cursor__ring {
    opacity: 1;
  }

  .custom-cursor.is-arrow-progress .custom-cursor__plus {
    opacity: 0;
  }

  .custom-cursor.is-progress {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px var(--bg);
    background: transparent;
    mix-blend-mode: normal;
  }

  .custom-cursor.is-progress .custom-cursor__dot {
    opacity: 1;
  }

  .custom-cursor.is-progress .custom-cursor__arrow,
  .custom-cursor.is-progress .custom-cursor__plus {
    opacity: 0;
  }

  .custom-cursor.is-progress .custom-cursor__ring {
    opacity: 1;
  }

  .custom-cursor.is-zoom {
    width: 38px;
    height: 38px;
    border: 2px solid #ffffff;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: normal;
  }

  .custom-cursor.is-zoom .custom-cursor__dot {
    opacity: 0;
    box-shadow: none;
  }

  .custom-cursor.is-zoom .custom-cursor__arrow,
  .custom-cursor.is-zoom .custom-cursor__ring {
    opacity: 0;
  }

  .custom-cursor.is-zoom .custom-cursor__plus {
    opacity: 1;
    font-size: 20px;
  }

  .custom-cursor.is-zoom-minus {
    width: 38px;
    height: 38px;
    border: 2px solid #ffffff;
    box-shadow: none;
    background: transparent;
    mix-blend-mode: normal;
  }

  .custom-cursor.is-zoom-minus .custom-cursor__dot {
    opacity: 0;
    box-shadow: none;
  }

  .custom-cursor.is-zoom-minus .custom-cursor__arrow,
  .custom-cursor.is-zoom-minus .custom-cursor__ring {
    opacity: 0;
  }

  .custom-cursor.is-zoom-minus .custom-cursor__plus {
    opacity: 1;
    font-size: 0;
  }

  .custom-cursor.is-zoom-minus .custom-cursor__plus::before {
    content: "-";
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
  }

  .custom-cursor.is-hide {
    opacity: 0;
  }

  .custom-cursor__media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background-image: var(--cursor-matl);
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
    transition: opacity .2s ease, transform .2s ease;
  }

  .custom-cursor.is-matl {
    width: 0;
    height: 0;
    border: none;
    box-shadow: none;
  }

  .custom-cursor.is-matl .custom-cursor__dot {
    opacity: 0;
  }

  .custom-cursor.is-matl .custom-cursor__arrow,
  .custom-cursor.is-matl .custom-cursor__ring,
  .custom-cursor.is-matl .custom-cursor__plus {
    opacity: 0;
  }

  .custom-cursor.is-matl .custom-cursor__media {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}