/* hacobune boost motion layer */
body.haco-boost-motion {
  --boost-blue: #5797EB;
  --boost-blue-deep: #134F9F;
  --boost-coral: #F06050;
  --boost-paper: rgba(255,255,255,.74);
}

.boost-cursor,
.boost-cursor-dot,
.boost-spark-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.boost-cursor {
  width: 38px;
  height: 38px;
  inset: auto;
  left: 0;
  top: 0;
  border: 1px solid rgba(87,151,235,.42);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(87,151,235,.12), rgba(87,151,235,0) 62%);
  mix-blend-mode: multiply;
  transform: translate3d(-50%,-50%,0);
  opacity: 0;
  transition: opacity .2s ease, width .18s ease, height .18s ease, border-color .18s ease;
}

.boost-cursor-dot {
  width: 7px;
  height: 7px;
  inset: auto;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: var(--boost-coral);
  box-shadow: 0 0 18px rgba(240,96,80,.42);
  transform: translate3d(-50%,-50%,0);
  opacity: 0;
}

body.haco-boost-motion.has-pointer .boost-cursor,
body.haco-boost-motion.has-pointer .boost-cursor-dot {
  opacity: 1;
}

body.haco-boost-motion.is-magnetic .boost-cursor {
  width: 62px;
  height: 62px;
  border-color: rgba(240,96,80,.48);
  background: radial-gradient(circle, rgba(240,96,80,.13), rgba(87,151,235,.06) 56%, transparent 72%);
}

.boost-spark-layer {
  overflow: hidden;
  z-index: 89;
}

.boost-spark {
  position: fixed;
  width: var(--spark-size, 8px);
  height: var(--spark-size, 8px);
  left: var(--spark-x, 50vw);
  top: var(--spark-y, 50vh);
  border-radius: 999px;
  background: var(--spark-color, var(--boost-blue));
  box-shadow: 0 0 18px color-mix(in srgb, var(--spark-color, var(--boost-blue)) 42%, transparent);
  transform: translate3d(-50%,-50%,0);
  opacity: .78;
}

.boost-ribbon {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: 100%;
  height: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--boost-blue), #7EBBFF, var(--boost-coral));
  box-shadow: 0 0 18px rgba(87,151,235,.28);
  pointer-events: none;
}

.boost-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.boost-highlight {
  position: relative;
  isolation: isolate;
}

.boost-highlight::after {
  content: none;
}

.boost-depth {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.boost-depth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(87,151,235,.10));
  opacity: 0;
  transition: opacity .2s ease;
}

.boost-depth:hover::before {
  opacity: 1;
}

.boost-section-index {
  position: absolute;
  right: clamp(20px,5vw,72px);
  top: clamp(18px,4vw,48px);
  z-index: 1;
  font-family: var(--accent-font, "Quicksand", sans-serif);
  font-size: clamp(44px,8vw,112px);
  line-height: .8;
  font-weight: 700;
  color: rgba(87,151,235,.075);
  letter-spacing: -.04em;
  pointer-events: none;
}

body.haco-boost-motion section {
  position: relative;
}

.boost-scan {
  position: relative;
  overflow: hidden;
}

.boost-scan::after {
  content: "";
  position: absolute;
  inset: -80% auto auto -60%;
  width: 46%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
  transform: rotate(20deg) translateX(-130%);
  opacity: .86;
  pointer-events: none;
}

body.haco-boost-motion .floating-contact .line,
body.haco-boost-motion .talk,
body.haco-boost-motion .btn,
body.haco-boost-motion button,
body.haco-boost-motion [class*="button"] {
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.haco-boost-motion .floating-contact .line:hover,
  body.haco-boost-motion .talk:hover,
  body.haco-boost-motion .btn:hover,
  body.haco-boost-motion button:hover,
  body.haco-boost-motion [class*="button"]:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 720px) {
  .boost-cursor,
  .boost-cursor-dot,
  .boost-spark-layer {
    display: none;
  }

  .boost-section-index {
    font-size: 54px;
    right: 18px;
    top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boost-cursor,
  .boost-cursor-dot,
  .boost-spark-layer,
  .boost-ribbon {
    display: none !important;
  }

  .boost-word,
  .boost-depth {
    transform: none !important;
  }
}
