/* ===== tokens ===== */
:root {
  color-scheme: light;
  --ink: #1B2135;          /* 文字 */
  --ink-deep: #171D2E;     /* 濃紺の面 */
  --on-dark: #C9CDD8;      /* 濃紺の上の文字 */
  --on-dark-muted: #A9AEBB;
  --page: #F7F5FB;         /* PC背景の地 */
  --accent: #D23B86;       /* フォーカス枠など */
  /* 白文字を載せるボタン用。白との比 7.86:1 / 5.69:1 / 5.28:1 */
  --grad-button: linear-gradient(90deg, #6A2FB3 0%, #B8306F 52%, #B9471B 100%);
}

/* ===== base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--page);
  /* PCでLPの左右に見える背景：紫・マゼンタ・オレンジの淡いにじみ（案A） */
  background-image:
    radial-gradient(42vw 42vw at 6% 20%, rgba(123, 63, 196, .24), transparent 70%),
    radial-gradient(40vw 40vw at 96% 42%, rgba(210, 59, 134, .20), transparent 70%),
    radial-gradient(44vw 44vw at 12% 95%, rgba(242, 122, 69, .22), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; line-break: strict; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  top: 0; left: 0;
}
/* 読み上げ用テキストどうしが同じ位置に重ならないよう、セクション内で置き場所を分ける */
dl.sr { top: 50%; }

/* キーボード利用者向け：フォーカスしたときだけ見える */
.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink-deep);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; outline: 3px solid var(--accent); outline-offset: 2px; }

/* ===== demo note / layout ===== */
.demo-note {
  margin: 0;
  padding: 8px 16px;
  background: var(--ink-deep);
  color: var(--on-dark);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.lp {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 40px rgba(27, 33, 53, .10);
}

.part { position: relative; margin: 0; }
.part img { display: block; width: 100%; height: auto; }

/* ===== hotspot（画像内のボタンに重ねる実リンク） ===== */
.hit {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--h);
  border-radius: 14px;
  color: transparent;
  font-size: 1px;
  overflow: hidden;
  outline-offset: 3px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.hit:hover { box-shadow: 0 10px 28px rgba(210, 59, 134, .35); transform: translateY(-1px); }
.hit:focus-visible { outline: 3px solid var(--accent); }

/* ===== footer ===== */
.foot {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 120px;
  background: var(--ink-deep);
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}
.foot p { margin: 0 0 6px; }

/* ===== sticky CTA（FVと最終CTAが見えている間は隠す） ===== */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-top: 1px solid #E3E5EB;
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky.is-on { transform: none; }
.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 528px;
  min-height: 52px;
  border-radius: 12px;
  background: var(--grad-button);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.sticky-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ===== toast ===== */
.toast {
  position: fixed;
  left: 50%; bottom: 96px;
  z-index: 20;
  width: min(92vw, 420px);
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink-deep);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* ===== motion（見せ場：FVのボタンに光が流れる。FVが画面外なら停止） ===== */
#fv .hit::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.6s ease-in-out 1.2s infinite;
}
#fv.is-paused .hit::after { animation-play-state: paused; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #fv .hit::after { animation: none; display: none; }
  .sticky, .hit { transition: none; }
}
