/* ==========================================================================
   button.css — LINEボタン（このLPの唯一の行き先）
   --------------------------------------------------------------------------
   <a class="btn-line btn-line--lg" href="LINEのURL">…</a>
   サイズ: --sm（ヘッダー） / --lg（標準） / --xl（最後の誘導）
   形　　: --bubble（吹き出し型。ファーストビュー用）
   ========================================================================== */

.btn-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.4em;
  border-radius: var(--radius-pill);
  background: var(--color-line);
  color: #fff;
  font-weight: var(--weight-heavy);
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  isolation: isolate;
  box-shadow: var(--shadow-line);
  transition:
    translate 0.25s var(--ease-spring),
    scale 0.2s ease,
    background-color 0.2s ease;
}

.btn-line:hover {
  background: var(--color-line-dark);
  translate: 0 -3px;
}

.btn-line:active {
  translate: 0 0;
  scale: 0.97;
}

/* PC：マウスに吸い寄せられる（buttons.js が --magnet-x / --magnet-y を入れる） */
.btn-line {
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
}

.btn-line:not(.is-magnet) {
  transition:
    translate 0.25s var(--ease-spring),
    scale 0.2s ease,
    background-color 0.2s ease,
    transform 0.6s var(--ease-spring);
}

/* 押した場所から広がる光の輪（buttons.js） */
.btn-line--sm {
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0) 65%);
  scale: 0;
  pointer-events: none;
  animation: btn-ripple 0.65s ease-out forwards;
}

@keyframes btn-ripple {
  to {
    scale: 1;
    opacity: 0;
  }
}

.btn-line__icon {
  flex: none;
  width: 1.35em;
  height: 1.35em;
}

/* ---- サイズ ---------------------------------------------------------- */

.btn-line--sm {
  padding: 0.6em 1.1em;
  font-size: var(--text-sm);
  box-shadow: none;
}

.btn-line--lg {
  width: 100%;
  max-width: 22rem;
  padding: 1.05em 1.5em;
  font-size: 1.125rem;
}

.btn-line--xl {
  width: 100%;
  max-width: 26rem;
  padding: 1.2em 1.5em;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
}

/* 大きいボタンは、数秒おきに光が走って目を引く */
.btn-line--lg,
.btn-line--xl,
.btn-line--bubble {
  overflow: hidden;
}

.btn-line--lg::after,
.btn-line--xl::after,
.btn-line--bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.45) 50%, transparent 65%);
  translate: -120% 0;
  animation: btn-shine 4s ease-in-out 2.5s infinite;
}

@keyframes btn-shine {
  0%,
  70% {
    translate: -120% 0;
  }

  100% {
    translate: 120% 0;
  }
}

/* ---- 吹き出し型 ------------------------------------------------------ */

.btn-line--bubble {
  overflow: visible;
  padding: 1.05em 1.8em;
  font-size: 1.125rem;
  border-radius: 2rem;
  box-shadow: 0 6px 0 var(--color-line-dark), var(--shadow-line);
}

/* しっぽ */
.btn-line--bubble::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  bottom: -0.7rem;
  width: 1.4rem;
  height: 1.2rem;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 15% 100%);
}

.btn-line--bubble::after {
  border-radius: inherit;
  overflow: hidden;
  clip-path: inset(0 round 2rem);
}

.btn-line--bubble:hover {
  translate: 0 -3px;
}

.btn-line--bubble:active {
  translate: 0 4px;
  box-shadow: 0 2px 0 var(--color-line-dark), var(--shadow-line);
}
