/* 固定CTA: 初期状態は画面外に隠しておく */
.fixed-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  width: min(calc(100% - 24px), 268px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
  transition:
    transform 0.32s ease,
    opacity 0.32s ease;
}

/* 固定CTA: 一定スクロール後に下からせり上げる */
.fixed-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* 固定CTA: ボタン本体 */
.fixed-cta__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 66px;
  padding: 0 20px;
  border: 3px solid var(--brand-orange);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(42, 42, 42, 0.18);
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  font-family: var(--font-gothic);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 固定CTA: 1行ずつ中央揃えで見せる */
.fixed-cta__line {
  display: block;
}

@media (hover: hover) {
  .fixed-cta__link {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .fixed-cta__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(42, 42, 42, 0.22);
  }
}

@media (min-width: 960px) {
  .fixed-cta {
    width: 412px;
    bottom: 24px;
  }

  .fixed-cta__link {
    height: 80px;
    padding: 0 28px;
    font-size: 16px;
  }
}
