/* =========================================================
   ハヤトク — スワイプサイト (vertical scroll-snap, mobile-first)
   ========================================================= */

:root {
  /* color tokens */
  --base: #131418;
  --base-2: #1B1D22;
  --base-3: #23262C;
  --cream: #FAF7F0;
  --cream-2: #E8E2D4;
  --cream-3: #C8C2B6;
  --rule: rgba(250, 247, 240, 0.14);
  --rule-strong: rgba(250, 247, 240, 0.28);
  --red: #E63946;
  --gold: #F4B942;
  --gold-soft: #d09a2c;

  /* typography
     - 見出し: Zen Kaku Gothic New（編集デザイン的、Noto より字面が締まる）
     - 本文: Noto Sans JP Regular〜Medium（可読性）
     - 欧文・数字: Inter（中性的・数字が美しい・tracking が伸びる）
  */
  --ff-jp-display: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴ ProN", sans-serif;
  --ff-jp: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴ ProN", sans-serif;
  --ff-en: "Inter", "Noto Sans JP", system-ui, sans-serif;

  /* spacing — env(safe-area-inset-*) で iOS notch / home indicator 領域も加算 */
  --pad-x: clamp(24px, 6.6vw, 48px);
  --safe-top: max(88px, calc(env(safe-area-inset-top, 0px) + 80px));
  --safe-bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 78px));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--base);
  color: var(--cream);
  font-family: var(--ff-jp);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-size: 14px;
  line-height: 1.78;
  letter-spacing: 0.024em;
  text-wrap: pretty;
  position: fixed;
  inset: 0;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ------------ Snap container ------------ */
.swipe {
  position: fixed;
  inset: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}
.swipe::-webkit-scrollbar { display: none; }

.panel {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* dvh = 動的 viewport。 URL bar 状態に追従。 svh は URL bar 隠れた時に panel<viewport
     で底見切れの体感を生むため不採用 */
  height: 100dvh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--safe-top) var(--pad-x) var(--safe-bottom);
  isolation: isolate;
}

/* background image layer — light blur for legibility while keeping image quality */
.panel__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px) saturate(0.98) brightness(0.94);
  transform: scale(1.02);
}
.panel__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(140% 80% at 50% 35%, rgba(19,20,24,0.18) 0%, rgba(19,20,24,0.55) 100%),
    linear-gradient(180deg, rgba(19,20,24,0.30) 0%, rgba(19,20,24,0.20) 50%, rgba(19,20,24,0.55) 100%);
}

/* ------------ Brand logo (fixed top-left) — bar 中央線と完全揃え ------------ */
.brand-fixed {
  position: fixed;
  top: 8px;       /* (76-60)/2 = 8px → bar 中央線(38px)に合わせる */
  left: var(--pad-x);
  z-index: 60;
  display: block;
  width: 60px;
  height: 60px;
  pointer-events: auto;
  mix-blend-mode: screen;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 220ms ease;
}
.brand-fixed:hover { transform: scale(1.06); }
.brand-fixed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);  /* 黒ロゴ+白背景PNGを反転して 白ロゴ+黒背景に → screenで黒背景同化 */
}

/* ------------ Top progress bar ------------ */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(19,20,24,0.9), rgba(19,20,24,0));
  pointer-events: none;
}
.dots {
  display: flex;
  gap: 5px;
  pointer-events: auto;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(250,247,240,0.22);
  transition: background 200ms ease, transform 200ms ease;
}
.dot.is-active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ------------ Bottom hint (per panel) ------------ */
.hint {
  position: absolute;
  left: 0; right: 0;
  bottom: max(36px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-en);
  font-size: 9px;
  letter-spacing: 0.36em;
  color: var(--cream-3);
  font-weight: 500;
  z-index: 5;
  pointer-events: none;
}
.hint__icon {
  color: var(--cream-2);
  opacity: 0.7;
  width: 12px;
  height: 18px;
}
.hint__dot {
  animation: hint-dot 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.hint span {
  animation: hint-text 1.8s ease-in-out infinite;
}
@keyframes hint-dot {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  60%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(8px); opacity: 0; }
}
@keyframes hint-text {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ------------ Solution arrow (Lottie風 SVG draw-on) ------------ */
.solution__arrow {
  width: clamp(110px, 32vw, 150px);
  height: auto;
  margin: 14px 0 4px;
  color: var(--gold);
  display: block;
}
.solution__line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.solution__head {
  opacity: 0;
  transform-origin: right center;
}
.is-active .solution__line {
  animation: line-draw 1100ms cubic-bezier(0.4, 0, 0.2, 1) 280ms forwards;
}
.is-active .solution__head {
  animation: head-fade 600ms ease-out 1200ms forwards;
}
@keyframes line-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes head-fade {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ------------ Flow: 縦罫線は数字と被るため削除済み（番号でフロー表現） ------------ */

/* ------------ Common typography ------------ */
.eyebrow {
  font-family: var(--ff-en);
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 32px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-2px);
}

.h1 {
  font-family: var(--ff-jp-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 5.2vw, 1.6rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-family: var(--ff-jp-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 4.4vw, 1.38rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.h2--nowrap {
  white-space: nowrap;
  font-size: clamp(0.95rem, 3.9vw, 1.22rem);
  letter-spacing: -0.01em;
}
.lead {
  font-family: var(--ff-jp);
  font-weight: 400;
  font-size: clamp(0.78rem, 2.95vw, 0.88rem);
  line-height: 1.72;
  letter-spacing: 0.022em;
  color: var(--cream-2);
  text-wrap: pretty;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
.h1, .h2 {
  word-break: auto-phrase;
}
.tiny {
  font-family: var(--ff-en);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--cream-3);
  text-transform: uppercase;
  font-weight: 500;
}
em.acc-red { color: var(--red); font-weight: 700; font-style: normal; }
em.acc-gold { color: var(--gold); font-weight: 700; font-style: normal; }

/* ------------ CTA ------------ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--gold);
  color: #1A1410;
  font-family: var(--ff-jp-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
  outline: 1px solid rgba(255,255,255,0.06);
}
.cta:hover { transform: translateY(-2px); background: #FFD370; }
.cta--ghost {
  background: transparent;
  color: var(--cream);
  outline: 1.5px solid var(--rule-strong);
}
.cta--ghost:hover { background: rgba(250,247,240,0.06); }
.cta__arrow { font-family: var(--ff-en); font-size: 15px; font-weight: 500; }

/* =========================================================
   panel-specific layouts
   ========================================================= */

/* ---- s1 hero ---- */
/* panel default(flex-start)を踏襲。brand-stamp が eyebrow 位置から開始 */
.s-hero .h1 {
  font-size: clamp(0.92rem, 3.7vw, 1.25rem);
  letter-spacing: -0.018em;
  line-height: 1.45;
  white-space: nowrap;
  max-width: 100%;
}
.s-hero .h1 em { color: var(--gold); }
.s-hero__brand-stamp {
  font-family: var(--ff-en);
  font-size: clamp(26px, 8.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 10px;
  display: block;
  line-height: 1;
  font-feature-settings: "tnum";
}
.s-hero__lead {
  margin-top: 18px;
  max-width: 28em;
}
/* Hero price block — 編集デザイン的タイポ主役 */
.s-hero__price {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 14px;
  margin-top: clamp(22px, 5.5vw, 38px);
  padding-top: 12px;
  border-top: 1px solid var(--rule-strong);
  width: max-content;
}
.s-hero__price-label {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
  align-self: start;
  padding-top: 4px;
}
.s-hero__price-main {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--cream);
  font-family: var(--ff-en);
}
.s-hero__price-yen {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.s-hero__price-num {
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.s-hero__price-suffix {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  font-family: var(--ff-jp);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream-3);
  padding-bottom: 4px;
}
.s-hero__sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  padding: 4px 10px;
  border: 1px dashed rgba(244,185,66,0.4);
  border-radius: 999px;
  font-family: var(--ff-jp);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--cream-2);
  font-weight: 500;
}
.s-hero__sub-chip svg { color: var(--gold); flex-shrink: 0; }

/* ---- s2 problem ---- */
/* 背景画像(bg-problem.png)に底辺の赤ラインが焼き込まれているため、強 blur + 底濃 veil で消す */
.s-problem .panel__bg {
  filter: blur(14px) saturate(0.6) brightness(0.55);
  transform: scale(1.08);
}
.s-problem .panel__veil {
  background:
    radial-gradient(140% 80% at 50% 35%, rgba(19,20,24,0.40) 0%, rgba(19,20,24,0.86) 100%),
    linear-gradient(180deg, rgba(19,20,24,0.55) 0%, rgba(19,20,24,0.65) 60%, rgba(19,20,24,0.95) 100%);
}
.s-problem__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.s-problem__list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(0.74rem, 2.7vw, 0.82rem);
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--cream-2);
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-problem__list li > * {
  min-width: 0;
}
.s-problem__list li::before {
  content: "—";
  color: var(--gold);
  font-family: var(--ff-en);
  font-weight: 600;
}
.s-problem__close {
  margin-top: 28px;
  font-family: var(--ff-jp-display);
  font-size: clamp(0.88rem, 3.4vw, 0.95rem);
  line-height: 1.7;
  color: var(--cream);
  font-weight: 500;
  text-wrap: balance;
}
.s-problem__close em { color: var(--gold); font-weight: 700; font-style: normal; }

/* ---- s3 solution ---- */
.s-solution__big {
  font-family: var(--ff-jp-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 5.9vw, 2.05rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
  color: var(--cream);
  text-align: left;
  align-self: flex-start;
}
.s-solution__big-sub {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.36em;
  color: var(--gold);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.s-solution__lead { max-width: 28em; margin-top: 6px; }

/* ---- s4 / s5 features ---- */
.s-feat__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.s-feat__num {
  font-family: var(--ff-en);
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--cream);
  opacity: 0.92;
  margin: 0;
  font-feature-settings: "tnum";
}
.s-feat__num em { color: var(--gold); font-style: normal; }
.s-feat__head .h2 {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--rule-strong);
}
.s-feat__tag {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.s-feat__lead { max-width: 26em; }
.s-feat__points {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--rule);
}
.s-feat__points li {
  font-family: var(--ff-jp);
  font-size: clamp(0.74rem, 2.7vw, 0.82rem);
  line-height: 1.65;
  color: var(--cream-2);
  letter-spacing: 0.02em;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.s-feat__points li:last-child { margin-bottom: 0; }
.s-feat__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
}

/* ---- s6 pricing ---- */
.s-pricing__head { margin-bottom: 22px; width: 100%; }
.s-pricing__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 5px 11px;
  border: 1px dashed rgba(244,185,66,0.45);
  border-radius: 999px;
  font-family: var(--ff-jp);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cream-2);
  font-weight: 500;
}
.s-pricing__badge svg { color: var(--gold); flex-shrink: 0; }
.s-pricing__cards {
  display: grid;
  gap: 12px;
  margin: 4px 0 10px;
  width: 100%;
}
.price-card {
  background: rgba(27, 29, 34, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 16px 13px;
}
.price-card--primary { border-color: var(--gold); background: rgba(35, 27, 18, 0.86); }
.price-card__label {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--cream-3);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.price-card__label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.price-card__name {
  font-family: var(--ff-jp);
  font-size: 11px;
  font-weight: 500;
  color: var(--cream-2);
  margin-bottom: 8px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
}
.price-card__yen {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 15px;
  color: var(--cream);
}
.price-card__num {
  font-family: var(--ff-en);
  font-weight: 800;
  font-size: clamp(1.6rem, 6.8vw, 2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
  font-feature-settings: "tnum";
}
.price-card--primary .price-card__num { color: var(--gold); }
.price-card__unit {
  font-family: var(--ff-jp);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--cream-3);
}
.price-card__notes {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px dashed var(--rule);
}
.price-card__notes li {
  font-family: var(--ff-jp);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--cream-2);
  padding-left: 14px;
  position: relative;
  margin-bottom: 2px;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
.price-card__notes li:last-child { margin-bottom: 0; }
.price-card__notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-family: var(--ff-en);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.95;
}
.price-card__notes li::before {
  content: "·";
  color: var(--gold);
  position: absolute; left: 4px; top: -4px;
  font-size: 18px;
}
.s-pricing__cta {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}
.s-pricing__cta .cta {
  min-width: 200px;
  justify-content: center;
}

/* ---- s7 flow ---- */
/* 背景画像(bg-flow.png)に縦線が含まれており本文と干渉するため、s7 だけ強 blur + 濃 veil */
.s-flow .panel__bg {
  filter: blur(16px) saturate(0.7) brightness(0.5);
  transform: scale(1.08);
}
.s-flow .panel__veil {
  background:
    radial-gradient(140% 80% at 50% 35%, rgba(19,20,24,0.40) 0%, rgba(19,20,24,0.86) 100%),
    linear-gradient(180deg, rgba(19,20,24,0.62) 0%, rgba(19,20,24,0.50) 50%, rgba(19,20,24,0.86) 100%);
}
.s-flow__list {
  list-style: none;
  counter-reset: f;
  margin: 24px 0 0;
  padding: 0;
  width: 100%;
}
.s-flow__list li {
  counter-increment: f;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.s-flow__list li:last-child { border-bottom: none; }
.s-flow__list li::before {
  content: counter(f, decimal-leading-zero);
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-feature-settings: "tnum";
  line-height: 1;
  grid-row: span 2;
  grid-column: 1;
  align-self: center;
  text-align: left;
}
.s-flow__list h3 {
  font-family: var(--ff-jp-display);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--cream);
  letter-spacing: 0.005em;
  grid-column: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.s-flow__list p {
  font-family: var(--ff-jp);
  font-size: 11px;
  line-height: 1.6;
  color: var(--cream-3);
  margin: 0;
  grid-column: 2;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
.s-flow__list li.is-key h3 { color: var(--gold); }
.s-flow__list li.is-key h3::after {
  content: "あなたが触るところ";
  font-family: var(--ff-en), var(--ff-jp);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- s8 apply ---- */
.s-apply {
  align-items: stretch;
  justify-content: space-between; /* top と bottom を上下端に分配し下半分の空白を消す */
  text-align: center;
}
.s-apply__top,
.s-apply__bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.s-apply__top > *,
.s-apply__bottom > * { width: 100%; }
.s-apply__chips {
  list-style: none;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.s-apply__chips li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-right: 1px solid var(--rule);
  font-family: var(--ff-jp);
  line-height: 1.3;
}
.s-apply__chips li:last-child { border-right: none; }
.s-apply__chips li span {
  font-family: var(--ff-en);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--cream-3);
  text-transform: uppercase;
  font-weight: 600;
}
.s-apply__chips li strong {
  font-family: var(--ff-en);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  line-height: 1;
  margin: 2px 0;
}
.s-apply__chips li em {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  color: var(--cream-2);
  letter-spacing: 0.02em;
}
.s-apply__contact {
  margin-top: 18px;
  font-family: var(--ff-jp);
  font-size: 11px;
  color: var(--cream-3);
  letter-spacing: 0.04em;
}
.s-apply__contact a {
  color: var(--gold);
  font-family: var(--ff-en);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(244,185,66,0.4);
  padding-bottom: 1px;
}
.s-apply__contact a:hover { border-bottom-color: var(--gold); }
.s-apply .h1 em { color: var(--gold); }
.s-apply .eyebrow {
  display: inline-flex;
  align-items: center;
}
.s-apply__lead {
  margin-top: 16px;
  max-width: 26em;
  text-align: center;
}
.s-apply__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px auto 0;
  width: 100%;
  max-width: 320px;
  align-items: center;
}
.s-apply__buttons .cta {
  width: 100%;
  justify-content: center;
}
.s-apply__note {
  margin-top: 18px;
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: 10px;
  color: var(--cream-3);
  letter-spacing: 0.06em;
  text-align: center;
}

/* =========================================================
   Reveal-on-snap animation
   ========================================================= */
.panel .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.panel.is-active .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Desktop framing (>=1024px) — phone chassis style
   ========================================================= */
@media (min-width: 1024px) {
  html, body {
    overflow: hidden;
    position: fixed;
    inset: 0;
    height: 100%;
  }
  body {
    background:
      radial-gradient(1200px 600px at 20% 10%, rgba(244,185,66,0.06), transparent 60%),
      radial-gradient(900px 600px at 80% 80%, rgba(230,57,70,0.05), transparent 60%),
      var(--base);
  }

  /* swipe screen with phone chassis (HTMLラッパなし、outlineと擬似要素で表現)
     ⚠ inset: auto は必ず left/top の前に置く（後だと shorthand が left/top を auto で上書きする） */
  .swipe {
    position: fixed;
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 392px;
    height: min(820px, 92vh);
    margin: 0;
    border-radius: 36px;
    outline: 12px solid #0b0c0f;
    outline-offset: 0;
    box-shadow: 0 0 0 1px rgba(250,247,240,0.06); /* ベゼルのハイライト1線（原則禁止の例外運用） */
    overflow: hidden;
    overflow-y: scroll;
  }

  /* スマホノッチ（Dynamic Island風）— body擬似要素で常に画面に固定 */
  body::before {
    content: "";
    position: fixed;
    top: calc(50% - min(820px, 92vh) / 2 + 18px);
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 14px;
    z-index: 100;
    outline: 1px solid rgba(250,247,240,0.06);
    pointer-events: none;
  }
  /* ホームインジケータ */
  body::after {
    content: "";
    position: fixed;
    bottom: calc(50% - min(820px, 92vh) / 2 + 14px);
    left: 50%;
    transform: translateX(-50%);
    width: 124px;
    height: 4px;
    background: var(--cream);
    opacity: 0.6;
    border-radius: 999px;
    z-index: 100;
    pointer-events: none;
  }

  .bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    border-radius: 36px 36px 0 0;
    padding-top: 50px; /* ノッチ分逃がす */
    background: linear-gradient(180deg, rgba(19,20,24,0.9), rgba(19,20,24,0));
  }
  .panel { border-radius: 0; padding-top: calc(var(--safe-top) + 14px); }
  .panel:first-of-type { border-radius: 36px 36px 0 0; }
  .panel:last-of-type { border-radius: 0 0 36px 36px; padding-bottom: calc(var(--safe-bottom) + 28px); }

  /* 左右カラム：中央スワイプの中心軸（50%）を基準に、
     スマホフレーム半幅(196) + ギャップ(48) を取って絶対に重ならない位置に固定。
     これで中央スワイプが「左にのめり込む」現象は発生しない。 */
  .desk-meta, .desk-side-r {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: var(--cream-3);
    width: clamp(180px, 16vw, 240px);
    text-align: left; /* 両カラムとも左寄せ統一（ユーザー指示） */
  }
  .desk-meta {
    left: max(36px, 4vw);    /* 画面端寄せで中央スワイプから離す */
    right: auto;
  }
  .desk-side-r {
    right: max(36px, 4vw);   /* 画面端寄せで中央スワイプから離す */
    left: auto;
  }
  /* 画面幅が狭くて左右カラムが入らない場合は隠す（中央スワイプ優先） */
  @media (max-width: 1180px) {
    .desk-meta, .desk-side-r { display: none; }
  }
  .desk-meta__brand {
    font-family: var(--ff-jp-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--cream);
    margin: 0 0 6px;
    line-height: 1;
  }
  .desk-meta__sub {
    font-family: var(--ff-en);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.34em;
    color: var(--gold);
    margin: 0 0 20px;
    text-transform: uppercase;
  }
  .desk-meta__copy {
    font-family: var(--ff-jp);
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.95;
    letter-spacing: 0.024em;
    color: var(--cream-2);
    margin: 0 0 20px;
  }
  .desk-meta__hint {
    font-family: var(--ff-en);
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: 0.34em;
    color: var(--cream-3);
    text-transform: uppercase;
    margin: 0;
  }
  /* 右カラムのリスト：左カラムの「.desk-meta__brand」相当の高さから始める */
  .desk-side-r__list {
    list-style: none; padding: 0; margin: 0;
    font-family: var(--ff-en);
    font-weight: 500;
    font-size: 9.5px;
    letter-spacing: 0.34em;
    line-height: 2.2;
    text-transform: uppercase;
  }
  /* 右カラムの「INDEX」見出しを足して、左の「ハヤトク」見出しと
     同じy基準にする */
  .desk-side-r::before {
    content: "INDEX";
    display: block;
    font-family: var(--ff-en);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.34em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .desk-side-r__list li {
    color: var(--cream-3);
    transition: color 240ms ease;
  }
  .desk-side-r__list li.is-on { color: var(--cream); }
  .desk-side-r__list li.is-on::before {
    content: "— ";
    color: var(--gold);
  }
}
@media (min-width: 1280px) {
  .desk-meta, .desk-side-r { width: clamp(200px, 16vw, 260px); }
}
@media (max-width: 1023px) {
  .desk-meta, .desk-side-r { display: none; }
}

/* =========================================================
   Ember glow (右下にぼんやり燃える光) — pure CSS Lottie 風
   ========================================================= */
.ember {
  position: fixed;
  right: max(8px, 2.4vw);
  bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  width: clamp(110px, 22vw, 160px);
  height: clamp(110px, 22vw, 160px);
  pointer-events: auto;
  z-index: 4;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.ember:hover { transform: scale(1.08); }
.ember:active { transform: scale(0.96); }
.ember__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--cream);
  text-shadow: 0 0 12px rgba(26, 20, 16, 0.9);
  z-index: 2;
  text-transform: uppercase;
  pointer-events: none;
}

@media (min-width: 1024px) {
  /* デスクトップではスマホフレームの内側右下に配置 */
  .ember {
    width: 130px;
    height: 130px;
    right: auto;
    bottom: auto;
    left: calc(50% + 196px - 140px);
    top: calc(50% + min(820px, 92vh) / 2 - 140px);
  }
}
.ember__halo,
.ember__glow,
.ember__core {
  position: absolute;
  border-radius: 50%;
  inset: 0;
  mix-blend-mode: screen;
}
.ember__halo {
  background: radial-gradient(
    circle at 50% 55%,
    rgba(244, 185, 66, 0.30) 0%,
    rgba(230, 57, 70, 0.15) 45%,
    transparent 70%
  );
  filter: blur(36px);
  animation: ember-halo 6.8s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}
.ember__glow {
  inset: 14%;
  background: radial-gradient(
    circle at 50% 55%,
    rgba(255, 220, 140, 0.55) 0%,
    rgba(244, 185, 66, 0.45) 35%,
    rgba(230, 57, 70, 0.25) 65%,
    transparent 80%
  );
  filter: blur(18px);
  animation: ember-glow 4.2s cubic-bezier(0.45, 0, 0.4, 0.9) infinite;
}
.ember__core {
  inset: 32%;
  background: radial-gradient(
    circle at 48% 58%,
    rgba(255, 240, 200, 0.95) 0%,
    rgba(255, 200, 110, 0.75) 30%,
    rgba(244, 130, 60, 0.55) 60%,
    rgba(230, 57, 70, 0.30) 80%,
    transparent 95%
  );
  filter: blur(7px);
  animation: ember-flicker 2.6s cubic-bezier(0.4, 0.2, 0.4, 0.8) infinite;
}
@keyframes ember-halo {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.85; }
  30% { transform: scale(1.08) translate(-8px, -4px); opacity: 1; }
  55% { transform: scale(0.95) translate(6px, 6px); opacity: 0.7; }
  78% { transform: scale(1.04) translate(-3px, 4px); opacity: 0.92; }
}
@keyframes ember-glow {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.9; }
  25% { transform: scale(1.1) translate(-4px, -3px); opacity: 1; }
  55% { transform: scale(0.92) translate(3px, 4px); opacity: 0.8; }
  80% { transform: scale(1.06) translate(2px, -2px); opacity: 0.95; }
}
@keyframes ember-flicker {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.95; }
  18% { transform: scale(0.94) translate(-2px, 1px); opacity: 0.8; }
  42% { transform: scale(1.08) translate(2px, -2px); opacity: 1; }
  64% { transform: scale(0.92) translate(-1px, 3px); opacity: 0.85; }
  82% { transform: scale(1.10) translate(3px, -1px); opacity: 1; }
}

/* =========================================================
   Phone status bar (デスクトップ ≥1024px のスマホ筐体表現時のみ)
   ========================================================= */
.phone-status { display: none; }

@media (min-width: 1024px) {
  .phone-status {
    display: flex;
    position: fixed;
    top: calc(50% - min(820px, 92vh) / 2 + 18px);
    left: 50%;
    transform: translateX(-50%);
    width: 392px;
    height: 28px;
    padding: 0 26px;
    justify-content: space-between;
    align-items: center;
    z-index: 95;
    pointer-events: none;
    color: var(--cream);
    font-family: var(--ff-en);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-feature-settings: "tnum";
  }
  .phone-status__left,
  .phone-status__right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 92px;
  }
  .phone-status__right {
    justify-content: flex-end;
    gap: 6px;
  }
  .phone-status__bat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .phone-status__bat-shell {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 11px;
    border: 1px solid var(--cream);
    border-radius: 3px;
    padding: 1px;
    box-sizing: border-box;
  }
  .phone-status__bat-shell::after {
    content: "";
    position: absolute;
    top: 3px; right: -3px;
    width: 1.5px; height: 5px;
    background: var(--cream);
    border-radius: 0 1px 1px 0;
  }
  .phone-status__bat-fill {
    display: block;
    width: 87%;
    height: 100%;
    background: var(--gold);
    border-radius: 1px;
  }
  .phone-status__bat-bolt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .phone-status__bat-pct {
    font-size: 9.5px;
    color: var(--cream-2);
    letter-spacing: 0.02em;
  }
}

/* =========================================================
   Custom cursor (hover: hover + pointer: fine 環境のみ)
   ========================================================= */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .cursor__ring {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(244, 185, 66, 0.85);
    border-radius: 50%;
    transition:
      transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1),
      border-color 220ms ease,
      opacity 220ms ease;
    box-sizing: border-box;
  }
  .cursor__dot {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    transition: transform 140ms ease;
  }
  /* ホバー時の拡大 */
  .cursor.is-hover .cursor__ring {
    transform: scale(1.85);
    border-color: rgba(244, 185, 66, 1);
  }
  .cursor.is-hover .cursor__dot {
    transform: scale(0);
  }
  /* クリック時の縮小 */
  .cursor.is-down .cursor__ring {
    transform: scale(0.8);
  }
  /* 画面外時にフェードアウト */
  .cursor.is-out {
    opacity: 0;
  }
  /* PCはネイティブカーソル非表示（カスタムに置換） */
  body, a, button { cursor: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hint span, .hint__dot { animation: none; }
  .swipe { scroll-behavior: auto; }
  .solution__line { stroke-dashoffset: 0; animation: none; }
  .solution__head { opacity: 1; animation: none; }
  .s-flow__list::before { transform: scaleY(1); animation: none; }
  .ember__halo, .ember__glow, .ember__core { animation: none; }
}
