/* ============================================================
   SAIMONサブスクデザイン LP（汎用リニューアル 2026-09-29）
   scope: .sd-scope（partner LP が使う styles.css / .subsc-lp-scope とは完全に独立）
   palette: white / ink #16233b / coral #e5482a（CTA専用）/ sun #ffd66b / blue #3d5bd9
   ============================================================ */

.sd-scope {
  --ink: #16233b;
  --ink-2: #3a4a63;
  --muted: #66728a;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --line: #e2e7f0;
  --line-2: #cfd6e3;
  --coral: #e5482a; /* CTA専用。他の要素には使わない */
  --coral-hover: #cf3b1f;
  --sun: #ffd66b;
  --sun-soft: #fff4d1;
  --blue: #3d5bd9;
  --blue-light: #6c8cff;
  --blue-soft: #eef2ff;
  --mint: #1fa877;
  --ok: #1f7a4d;
  --err: #b3261e;
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-num: "Outfit", "Zen Kaku Gothic New", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt";
  line-height: 1.85;
  overflow-x: clip;
}
.sd-scope *, .sd-scope *::before, .sd-scope *::after { box-sizing: border-box; }

/* ---- 日本語折り返し品質（jp-typography-rules 準拠） ---- */
.sd-scope h1, .sd-scope h2, .sd-scope h3 {
  font-family: var(--font-head);
  text-wrap: balance;
  word-break: auto-phrase;
  letter-spacing: 0.01em;
}
.sd-scope .section-lead, .sd-scope .hero-lead, .sd-scope .large-text {
  text-wrap: pretty;
  word-break: auto-phrase;
}
.sd-scope p, .sd-scope li, .sd-scope dd, .sd-scope summary, .sd-scope figcaption, .sd-scope small {
  text-wrap: pretty;
  word-break: auto-phrase;
}
.sd-scope .no-break { white-space: nowrap; }
/* 両端揃えは幅の広いリード文のみ（狭いカード本文は左揃え＋BudouX） */
.sd-scope .section-lead, .sd-scope .large-text, .sd-scope .hero-lead { text-align: justify; }
.sd-scope .ic { width: 1.15em; height: 1.15em; flex: none; }
.sd-scope .ic-sm { width: 1em; height: 1em; }

/* ---- 基本レイアウト ---- */
.sd-scope section { position: relative; }
.sd-scope .section-block {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px;
}
.sd-scope .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.sd-scope .section-kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--sun);
}
.sd-scope h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 16px;
}
.sd-scope h3 { font-weight: 700; color: var(--ink); line-height: 1.5; }
.sd-scope .section-heading { max-width: 760px; margin-bottom: 32px; }
.sd-scope .section-heading-center { margin-inline: auto; text-align: center; }
.sd-scope .section-heading-center .section-lead { text-align: center; max-width: 600px; margin-inline: auto; }
.sd-scope .section-lead, .sd-scope .large-text { font-size: 16.5px; color: var(--ink-2); margin: 0; }
.sd-scope .terms-link { color: var(--blue); text-decoration: underline; }
.sd-scope .section-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.sd-scope .section-grid .section-heading { margin-bottom: 0; }

/* ---- CTA（コーラルはここだけで使う） ---- */
.sd-scope .primary-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.4;
  padding: 18px 32px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(229, 72, 42, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease;
}
.sd-scope .primary-cta .ic { transition: transform 0.25s var(--ease); }
.sd-scope .primary-cta:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(229, 72, 42, 0.36);
}
.sd-scope .primary-cta:hover .ic { transform: translateX(4px); }
.sd-scope .primary-cta:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sd-scope .primary-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.sd-scope .primary-cta:hover::after { left: 130%; }
.sd-scope .primary-cta:disabled { opacity: 0.7; cursor: default; transform: none; }

/* ---- スクロールリビール ---- */
.sd-scope .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.sd-scope .rv-in { opacity: 1; transform: none; }

@keyframes sd-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 168, 119, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(31, 168, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 168, 119, 0); }
}

/* ============================================================
   01 Hero（ダーク。作品が弧状の壁を流れ、中央手前で1枚ずつ組み上がる）
   ============================================================ */
.sd-scope .hero {
  --stage: #0a0e18;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #0a0e18 0%, #0d1322 55%, #121a2c 100%);
  padding: 36px 0 0;
}
.sd-scope .hero-head {
  position: relative;
  z-index: 6;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.sd-scope .hero-head > * { animation: sd-rise 0.7s var(--ease) both; }
.sd-scope .hero-head > *:nth-child(2) { animation-delay: 0.08s; }
.sd-scope .hero-head > *:nth-child(3) { animation-delay: 0.2s; }
.sd-scope .hero-head > *:nth-child(4) { animation-delay: 0.3s; }
.sd-scope .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b9c6ff;
  background: rgba(108, 140, 255, 0.14);
  border: 1px solid rgba(108, 140, 255, 0.28);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0 0 16px;
}
.sd-scope .eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: sd-pulse 2s ease-out infinite;
}
.sd-scope .hero h1 {
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 20px;
}
.sd-scope .hero h1 .hl {
  background: linear-gradient(transparent 80%, var(--sun) 80%, var(--sun) 93%, transparent 93%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: sd-marker 0.8s var(--ease) 0.6s forwards;
}
@keyframes sd-marker { to { background-size: 100% 100%; } }
.sd-scope .hero h1 .h1-sub {
  display: block;
  font-size: 0.42em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5em;
  line-height: 1.4;
}
.sd-scope .speed-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 420px;
  margin: 0;
  text-align: left;
}
.sd-scope .speed-chips > div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 12px 6px;
}
.sd-scope .speed-chips dt { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.6); margin: 0; }
.sd-scope .speed-chips dd { margin: 0; font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.sd-scope .speed-chips strong {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--sun);
  margin-right: 3px;
}
.sd-scope .speed-chips small { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, 0.55); margin-left: 3px; }
.sd-scope .hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
}
.sd-scope .hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 16px 0 0;
  padding: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.sd-scope .hero-facts li { display: inline-flex; align-items: center; gap: 2px; padding: 0 14px; white-space: nowrap; }
.sd-scope .hero-facts li + li { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.sd-scope .hero-facts strong { color: #fff; font-weight: 900; margin: 0 2px; }
.sd-scope .hero-facts-slots { gap: 7px !important; }
.sd-scope .slots-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: sd-pulse 2s ease-out infinite;
  margin-right: 4px;
}
.sd-scope .hero .primary-cta { box-shadow: 0 12px 30px rgba(229, 72, 42, 0.4); }

/* ---- 作品壁 ---- */
.sd-scope .wall {
  --h: 330px;       /* 基準カード高さ */
  --radius: 1700;   /* 弧の半径(px) */
  --gap: 34;        /* カード間隔(px) */
  --speed: 58;      /* 流れる速さ(px/秒) */
  position: relative;
  height: calc(var(--h) + 96px);
  margin-top: 0;
  perspective: 1400px;
  perspective-origin: 50% 10%;
}
.sd-scope .wall-stage {
  position: absolute;
  left: 0; right: 0;
  top: 34px;
  height: var(--h);
  transform-style: preserve-3d;
  z-index: 2;
}
/* 左右のフェードと床（映り込みを溶かす） */
.sd-scope .wall::before,
.sd-scope .wall::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.sd-scope .wall::before {
  inset: 0;
  background: linear-gradient(90deg, #0d1322 0%, rgba(13, 19, 34, 0) 16%, rgba(13, 19, 34, 0) 84%, #0d1322 100%);
}
.sd-scope .wall::after {
  left: 0; right: 0; bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(18, 26, 44, 0) 0%, #121a2c 88%);
}
.sd-scope .wall-note {
  position: absolute;
  right: 20px;
  bottom: 8px;
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 4;
}

/* 奥の作品群（ぼかして奥行きを出す） */
.sd-scope .wall-back {
  position: absolute;
  inset: 0 0 20px;
  display: grid;
  align-content: center;
  gap: 18px;
  filter: blur(3px) brightness(0.42) saturate(0.8);
  opacity: 0.85;
  z-index: 1;
}
.sd-scope .wall-back-row {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: sd-mq 90s linear infinite;
}
.sd-scope .wall-back-row-1 { animation-duration: 120s; animation-direction: reverse; margin-left: -120px; }
.sd-scope .wall-back img {
  height: 128px;
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}

/* 光の筋（スピード感） */
.sd-scope .wall-streaks { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.sd-scope .wall-streaks i {
  position: absolute;
  left: 0;
  width: 38%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  opacity: 0;
  animation: sd-streak 3.2s linear infinite;
}
.sd-scope .wall-streaks i:nth-child(1) { top: 18%; animation-delay: 0s; }
.sd-scope .wall-streaks i:nth-child(2) { top: 36%; animation-delay: 1.1s; width: 26%; background: linear-gradient(90deg, rgba(255, 214, 107, 0), rgba(255, 214, 107, 0.8), rgba(255, 214, 107, 0)); }
.sd-scope .wall-streaks i:nth-child(3) { top: 62%; animation-delay: 0.5s; width: 46%; }
.sd-scope .wall-streaks i:nth-child(4) { top: 78%; animation-delay: 2.1s; background: linear-gradient(90deg, rgba(108, 140, 255, 0), rgba(108, 140, 255, 0.85), rgba(108, 140, 255, 0)); }
.sd-scope .wall-streaks i:nth-child(5) { top: 8%; animation-delay: 1.7s; width: 20%; }
.sd-scope .wall-streaks i:nth-child(6) { top: 50%; animation-delay: 2.7s; width: 30%; }
@keyframes sd-streak {
  0% { transform: translateX(110vw); opacity: 0; }
  10% { opacity: 1; }
  60% { opacity: 0.8; }
  100% { transform: translateX(-60vw); opacity: 0; }
}

/* カード */
.sd-scope .wc {
  position: absolute;
  left: 50%;
  top: 0;
  height: calc(var(--h) * var(--s, 1));
  aspect-ratio: var(--ar);
  margin-top: calc(var(--h) * (1 - var(--s, 1)) / 2);
  border-radius: 4px;
  background: #151b2a;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  -webkit-box-reflect: below 6px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.14));
  will-change: transform, opacity;
  transform: translate3d(-50%, 0, -2000px);
  opacity: 0;
}
.sd-scope .wc-draft {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: #182033;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  transition: opacity 0.6s ease 0.55s;
}
.sd-scope .wc-draft i { position: absolute; background: rgba(255, 255, 255, 0.09); border-radius: 2px; }
.sd-scope .wc-draft i:nth-child(1) { top: 9%; left: 9%; width: 46%; height: 6%; }
.sd-scope .wc-draft i:nth-child(2) { top: 19%; left: 9%; width: 64%; height: 4%; }
.sd-scope .wc-draft i:nth-child(3) { top: 34%; left: 9%; right: 9%; bottom: 26%; border: 1px dashed rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.03); }
.sd-scope .wc-draft i:nth-child(4) { bottom: 9%; left: 9%; width: 34%; height: 8%; border-radius: 999px; }
.sd-scope .wc-body {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  container-type: inline-size;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1);
}
.sd-scope .wc.is-built .wc-body { clip-path: inset(0 0 0 0); }
.sd-scope .wc.is-built .wc-draft { opacity: 0; }
.sd-scope .wc-body > img,
.sd-scope .wc-body > video,
.sd-scope .wc-body .wc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sd-scope .wc-body .wc-photo { transform: scale(1.14); transition: transform 1.8s var(--ease); }
.sd-scope .wc.is-built .wc-photo { transform: none; }
.sd-scope .wc-copy > * {
  position: absolute;
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.sd-scope .wc.is-built .wc-copy > * { opacity: 1; transform: none; }
.sd-scope .wc.is-built .wc-copy > *:nth-child(1) { transition-delay: 0.7s; }
.sd-scope .wc.is-built .wc-copy > *:nth-child(2) { transition-delay: 0.9s; }
.sd-scope .wc.is-built .wc-copy > *:nth-child(3) { transition-delay: 1.1s; }
/* 制作中の選択枠 */
.sd-scope .wc-sel {
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--blue-light);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.sd-scope .wc-sel::after {
  content: "制作中";
  position: absolute;
  left: -1.5px;
  top: -22px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--blue-light);
  border-radius: 3px 3px 0 0;
  padding: 5px 8px;
  white-space: nowrap;
}
.sd-scope .wc-sel i {
  position: absolute;
  width: 8px; height: 8px;
  background: #fff;
  border: 1.5px solid var(--blue-light);
}
.sd-scope .wc-sel i:nth-child(1) { left: -5px; top: -5px; }
.sd-scope .wc-sel i:nth-child(2) { right: -5px; top: -5px; }
.sd-scope .wc-sel i:nth-child(3) { left: -5px; bottom: -5px; }
.sd-scope .wc-sel i:nth-child(4) { right: -5px; bottom: -5px; }
.sd-scope .wc.is-building .wc-sel { opacity: 1; }
/* 納品バッジ（組み上がった瞬間に出て、少しして消える） */
.sd-scope .wc-done {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--ink);
  background: var(--sun);
  border-radius: 999px;
  padding: 4px 10px;
  opacity: 0;
  z-index: 2;
}
.sd-scope .wc.is-pop .wc-done { animation: sd-done 2.8s var(--ease) forwards; }
@keyframes sd-done {
  0% { opacity: 0; transform: scale(0.5); }
  12% { opacity: 1; transform: scale(1.08); }
  20% { transform: scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; }
}
.sd-scope .wc.no-tr,
.sd-scope .wc.no-tr * { transition: none !important; }

/* ---- サンプル作品のタイポグラフィ（カード幅基準の cqi で拡縮） ---- */
.sd-scope .wc-copy { position: absolute; inset: 0; }
.sd-scope .f-mark {
  top: 4cqi; left: 5cqi;
  font-family: "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 27cqi;
  font-weight: 700;
  line-height: 0.85;
  color: rgba(28, 4, 4, 0.82);
}
.sd-scope .f-jp {
  top: 30cqi; left: 6cqi;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 7.6cqi;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}
.sd-scope .f-foot { bottom: 5cqi; right: 6cqi; font-size: 3.4cqi; letter-spacing: 0.22em; color: #fff; }
.sd-scope .r-brand { top: 6cqi; left: 7cqi; font-family: var(--font-num); font-size: 6cqi; font-weight: 800; letter-spacing: 0.12em; color: #fff; }
.sd-scope .r-jp { top: 17cqi; left: 7cqi; font-size: 7.4cqi; font-weight: 900; line-height: 1.4; color: #fff; text-shadow: 0 2px 10px rgba(0, 40, 90, 0.45); }
.sd-scope .r-en { bottom: 7cqi; left: 7cqi; font-family: var(--font-num); font-style: italic; font-size: 11cqi; font-weight: 800; line-height: 0.95; color: #fff; }
.sd-scope .l-brand { top: 7cqi; left: 7cqi; font-family: var(--font-num); font-size: 4.6cqi; font-weight: 800; letter-spacing: 0.16em; color: var(--ink); }
.sd-scope .l-jp { top: 15cqi; left: 7cqi; font-size: 7.2cqi; font-weight: 900; line-height: 1.4; color: var(--ink); }
.sd-scope .l-script { bottom: 7cqi; right: 7cqi; font-family: Georgia, serif; font-style: italic; font-size: 5.6cqi; color: var(--ink); }
.sd-scope .a-brand { top: 6cqi; left: 7cqi; font-family: var(--font-num); font-size: 4.6cqi; font-weight: 700; letter-spacing: 0.22em; color: var(--ink); }
.sd-scope .a-panel { left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.94); padding: 6cqi 7cqi 5cqi; }
.sd-scope .a-panel .a-jp {
  margin: 0 0 2cqi;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 6.4cqi;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.sd-scope .a-panel small { display: block; font-size: 2.8cqi; letter-spacing: 0.2em; color: var(--muted); }
.sd-scope .s-brand { top: 7cqi; left: 7cqi; font-family: var(--font-num); font-size: 4.6cqi; font-weight: 500; letter-spacing: 0.3em; color: #6b4a4a; }
.sd-scope .s-jp {
  top: 16cqi; left: 5cqi;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 7.6cqi;
  font-weight: 600;
  line-height: 1.55;
  color: #3e2626;
  background: rgba(255, 247, 243, 0.82);
  padding: 2.4cqi 4cqi;
  border-radius: 1cqi;
}
.sd-scope .s-foot { bottom: 7cqi; left: 7cqi; font-size: 3.4cqi; letter-spacing: 0.14em; color: #6b4a4a; }
/* Web（LP）サンプル */
.sd-scope .wc-web {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #f6f1ea;
  color: var(--ink);
}
.sd-scope .w-nav { display: flex; align-items: center; gap: 3cqi; padding: 4cqi 5cqi; }
.sd-scope .w-nav b { font-family: var(--font-num); font-size: 4.2cqi; font-weight: 700; letter-spacing: 0.14em; margin-right: auto; }
.sd-scope .w-nav i { width: 8cqi; height: 1cqi; border-radius: 1cqi; background: #cbbfb0; }
.sd-scope .w-main { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4cqi; padding: 2cqi 5cqi 4cqi; min-height: 0; }
.sd-scope .w-copy { align-self: center; }
.sd-scope .w-copy p {
  margin: 0 0 3cqi;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 6.4cqi;
  font-weight: 600;
  line-height: 1.5;
}
.sd-scope .w-copy span { display: block; font-size: 3cqi; color: var(--muted); margin-bottom: 4cqi; }
.sd-scope .w-copy em { font-style: normal; font-size: 2.8cqi; letter-spacing: 0.16em; border-bottom: 1px solid currentColor; padding-bottom: 0.6cqi; }
.sd-scope .w-main img { width: 100%; height: 100%; object-fit: cover; border-radius: 1cqi; min-height: 0; }
.sd-scope .w-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; padding: 0 5cqi 5cqi; }
.sd-scope .w-thumbs i { aspect-ratio: 4 / 3; border-radius: 1cqi; background: #3b2a1f; }
.sd-scope .w-thumbs i:nth-child(2) { background: #6f7f52; }
.sd-scope .w-thumbs i:nth-child(3) { background: #9b7a5c; }

@media (max-width: 960px) {
  .sd-scope .wall { --h: 270px; --radius: 1200; --speed: 50; }
  .sd-scope .speed-chips { width: min(420px, 100%); }
}
@media (max-width: 640px) {
  .sd-scope .hero { padding-top: 32px; }
  .sd-scope .hero h1 { font-size: clamp(36px, 10vw, 44px); margin-bottom: 16px; }
  .sd-scope .speed-chips { gap: 8px; margin-bottom: 18px; }
  .sd-scope .speed-chips > div { padding: 7px 9px 5px; }
  .sd-scope .speed-chips strong { font-size: 26px; }
  .sd-scope .hero-row { flex-direction: column; align-items: stretch; }
  .sd-scope .hero-facts { font-size: 12px; gap: 6px 0; }
  .sd-scope .hero-facts li { padding: 0 9px; }
  .sd-scope .hero-facts li:nth-child(3) { border-left: none; }
  .sd-scope .wall { --h: 210px; --radius: 760; --gap: 18; --speed: 42; height: calc(var(--h) + 80px); margin-top: 4px; }
  .sd-scope .wall-stage { top: 30px; }
  .sd-scope .wall-back img { height: 90px; }
  .sd-scope .wc-sel::after { font-size: 10px; top: -20px; padding: 4px 6px; }
  .sd-scope .wc-done { font-size: 10px; padding: 3px 8px; }
  .sd-scope .wall-note { right: 12px; font-size: 10px; }
}

/* ============================================================
   制作物マーキー（2段逆走）
   ============================================================ */
.sd-scope .mq {
  overflow: hidden;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: 14px 0;
  display: grid;
  gap: 6px;
}
.sd-scope .mq-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: sd-mq 44s linear infinite;
}
.sd-scope .mq-reverse { animation-direction: reverse; animation-duration: 52s; }
.sd-scope .mq-track span {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.4;
}
.sd-scope .mq-reverse span { color: transparent; -webkit-text-stroke: 1px #9aa6bd; }
.sd-scope .mq-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: none; }
.sd-scope .mq-reverse i { background: var(--blue-light); }
@keyframes sd-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   02 Problem
   ============================================================ */
.sd-scope .check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.sd-scope .check-list li {
  position: relative;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 14px 18px 14px 48px;
  font-size: 15px;
  color: var(--ink);
}
.sd-scope .check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--sun);
}
.sd-scope .check-list li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 6px; height: 10px;
  margin-top: -7px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============================================================
   03 Speed（納品までの日数レース）
   ============================================================ */
.sd-scope .speed { background: var(--bg-soft); }
.sd-scope .race {
  --dur: 346ms; /* 1営業日あたりの再生時間（JSの DUR/TOTAL と一致させる） */
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 28px 20px;
  max-width: 980px;
  margin: 0 auto;
}
.sd-scope .race-head,
.sd-scope .race-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.sd-scope .race-head { position: relative; padding-right: 44px; margin-bottom: 6px; }
.sd-scope .race-row { padding-right: 44px; margin-top: 12px; }
.sd-scope .race-clock { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sd-scope .race-clock strong {
  display: inline-block;
  min-width: 1.3em;
  text-align: right;
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sd-scope .race-scale {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.sd-scope .race-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.sd-scope .race-label small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.sd-scope .race-row-ours .race-label { color: var(--blue); }
.sd-scope .race-track {
  position: relative;
  height: 42px;
  border-radius: 6px;
  background-color: var(--bg-soft);
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 15) 100%;
}
.sd-scope .seg {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: calc(var(--from) / 15 * 100%);
  width: calc((var(--to) - var(--from)) / 15 * 100%);
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition-property: clip-path;
  transition-timing-function: linear;
  transition-duration: calc((var(--to) - var(--from)) * var(--dur));
  transition-delay: calc(var(--from) * var(--dur));
}
.sd-scope .seg-a { background: #dde2ec; color: var(--ink-2); }
.sd-scope .seg-b { background: #cfd6e3; color: var(--ink-2); }
.sd-scope .seg-c { background: #bcc5d6; color: var(--ink); }
.sd-scope .seg-ours { background: var(--blue); color: #fff; }
.sd-scope .race.is-run .seg { clip-path: inset(0 0 0 0); }
/* 経過時間の縦線（全行で同期するので1本のプレイヘッドに見える） */
.sd-scope .race-track::after {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 0;
  width: 2px;
  background: var(--ink);
  opacity: 0;
  transition: left calc(15 * var(--dur)) linear;
}
.sd-scope .race.is-run .race-track::after { left: 100%; opacity: 0.55; }
.sd-scope .race.is-end .race-track::after { opacity: 0; transition: opacity 0.3s ease; left: 100%; }
.sd-scope .race-done {
  position: absolute;
  top: 50%;
  left: calc(var(--at) / 15 * 100% + 8px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  background: var(--sun);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) scale(0.5);
  transition: opacity 0.2s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}
.sd-scope .race-row-other .race-done { left: auto; right: 6px; }
.sd-scope .race-row.is-done .race-done { opacity: 1; transform: translateY(-50%) scale(1); }
.sd-scope .race.no-anim .seg,
.sd-scope .race.no-anim .race-done { transition: none; }
.sd-scope .race-replay {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sd-scope .race-replay svg { width: 16px; height: 16px; }
.sd-scope .race-replay:hover { color: var(--blue); border-color: var(--blue-light); }
.sd-scope .race-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  line-height: 1.8;
}

.sd-scope .speed-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 28px auto 0;
}
.sd-scope .speed-stats > div { text-align: center; padding: 8px 0; }
.sd-scope .speed-stats > div + div { border-left: 1px solid var(--line-2); }
.sd-scope .speed-stats dt { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 4px; }
.sd-scope .speed-stats dd { margin: 0; font-size: 18px; font-weight: 900; color: var(--ink); font-family: var(--font-head); line-height: 1.2; }
.sd-scope .speed-stats strong {
  font-family: var(--font-num);
  font-size: 64px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-right: 4px;
}
.sd-scope .speed-stats small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; }

/* ============================================================
   04 Service（ループ図：ステップが順に点灯する）
   ============================================================ */
.sd-scope .loop-visual {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sd-scope .loop-visual li {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 20px;
  animation: sd-loop 6s ease-in-out infinite;
}
.sd-scope .loop-visual li:nth-child(2) { animation-delay: 1.5s; }
.sd-scope .loop-visual li:nth-child(3) { animation-delay: 3s; }
.sd-scope .loop-visual li:nth-child(4) { animation-delay: 4.5s; }
@keyframes sd-loop {
  0%, 24% { border-color: var(--blue-light); background: #fff; box-shadow: 0 10px 24px -10px rgba(61, 91, 217, 0.35); }
  30%, 100% { border-color: var(--line); background: var(--bg-soft); box-shadow: none; }
}
.sd-scope .loop-visual li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 10px; height: 10px;
  border: solid var(--blue);
  border-width: 2px 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}
.sd-scope .loop-step {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
}
.sd-scope .loop-return .loop-step { background: var(--sun); color: var(--ink); }
.sd-scope .loop-visual h3 { font-size: 17px; margin: 0 0 6px; }
.sd-scope .loop-visual p { margin: 0; font-size: 13.5px; color: var(--muted); }

.sd-scope .service-terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sd-scope .service-terms > div { padding: 14px 10px; text-align: center; }
.sd-scope .service-terms > div + div { border-left: 1px solid var(--line); }
.sd-scope .service-terms dt { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 2px; }
.sd-scope .service-terms dd { margin: 0; font-size: 17px; font-weight: 900; color: var(--ink); font-family: var(--font-head); }

/* ============================================================
   05 Reasons
   ============================================================ */
.sd-scope .reasons { background: var(--bg-soft); }
.sd-scope .reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sd-scope .reason-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 28px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
.sd-scope .reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(22, 35, 59, 0.25);
  border-color: var(--blue-light);
}
.sd-scope .reason-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}
.sd-scope .reason-icon .ic { width: 22px; height: 22px; }
.sd-scope .reason-card:hover .reason-icon { background: var(--sun); color: var(--ink); transform: rotate(-6deg); }
.sd-scope .reason-card h3 { font-size: 19px; margin: 0 0 10px; }
.sd-scope .reason-card p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); }
.sd-scope .reason-card em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ============================================================
   06 Works
   ============================================================ */
.sd-scope .works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 20px;
}
.sd-scope .work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.sd-scope .work-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -18px rgba(22, 35, 59, 0.3); }
.sd-scope .work-media { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.sd-scope .work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.sd-scope .work-card:hover .work-media img { transform: scale(1.06); }
.sd-scope .work-body { padding: 20px 22px 24px; }
.sd-scope .work-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 0 12px;
}
.sd-scope .work-card h3 { font-size: 17px; margin: 0 0 8px; }
.sd-scope .work-body p:last-child { margin: 0; font-size: 14px; color: var(--ink-2); }
.sd-scope .works-note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ============================================================
   コスト診断（全幅バンド）
   ============================================================ */
.sd-scope .shindan { background: var(--blue-soft); }
.sd-scope .shindan-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  max-width: 980px;
  margin: 0 auto 24px;
}
.sd-scope .shindan-field { display: grid; gap: 7px; }
.sd-scope .shindan-field > span { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.sd-scope .shindan-field em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 11.5px; }
.sd-scope .shindan-field input {
  width: 100%;
  border: 1px solid #d3dbf5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding: 11px 10px;
}
.sd-scope .shindan-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 91, 217, 0.18); }
.sd-scope .shindan-run { padding: 16px 28px; white-space: nowrap; }
.sd-scope .shindan-result { max-width: 980px; margin: 0 auto; animation: sd-rise 0.5s var(--ease) both; }
.sd-scope .shindan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.sd-scope .shindan-card {
  background: #fff;
  border: 1px solid #d3dbf5;
  border-radius: 8px;
  padding: 18px 20px;
  text-align: center;
}
.sd-scope .shindan-card-diff { background: var(--sun-soft); border-color: #f2d98b; }
.sd-scope .shindan-card-label { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; font-weight: 700; }
.sd-scope .shindan-card-value { margin: 0; font-size: 14px; color: var(--ink); font-weight: 700; }
.sd-scope .shindan-card-value strong { font-family: var(--font-num); font-size: 34px; font-weight: 800; margin: 0 2px; }
.sd-scope .shindan-card-diff .shindan-card-value strong { color: var(--blue); }
.sd-scope .shindan-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.sd-scope .shindan-plan { display: block; font-size: 11.5px; margin-top: 2px; }
.sd-scope .shindan-comment { font-size: 14px; color: var(--ink-2); max-width: 720px; margin: 0 auto 20px; text-align: left; }
.sd-scope .shindan-cta { text-align: center; margin-bottom: 14px; }
.sd-scope .shindan-note { font-size: 11.5px; color: var(--muted); text-align: left; max-width: 640px; margin: 0 auto; }

/* ============================================================
   07 Price
   ============================================================ */
.sd-scope .plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.sd-scope .plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 26px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.sd-scope .plan-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(22, 35, 59, 0.25); }
.sd-scope .plan-card-featured { border: 2px solid var(--blue); box-shadow: 0 20px 40px -20px rgba(61, 91, 217, 0.45); }
.sd-scope .plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 16px;
  white-space: nowrap;
}
.sd-scope .plan-name { font-size: 15px; font-weight: 900; color: var(--ink); margin: 0 0 6px; font-family: var(--font-head); }
.sd-scope .plan-price { margin: 0 0 6px; color: var(--ink); }
.sd-scope .plan-price strong { font-family: var(--font-num); font-size: 52px; font-weight: 800; line-height: 1.1; }
.sd-scope .plan-price span { font-size: 14px; font-weight: 700; margin-left: 4px; }
.sd-scope .plan-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.sd-scope .plan-card ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 9px; }
.sd-scope .plan-card ul li { position: relative; font-size: 14px; padding-left: 22px; }
.sd-scope .plan-card ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 8px; height: 5px;
  border: solid var(--blue);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.sd-scope .plan-card ul li.plan-na { color: var(--muted); }
.sd-scope .plan-card ul li.plan-na::before { border: none; width: 9px; height: 2px; background: var(--line-2); transform: none; top: 0.8em; }
.sd-scope .plan-note {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--sun-soft);
  border-radius: 8px;
  padding: 12px 14px;
}

.sd-scope .share-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.sd-scope .share-kicker {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 8px;
}
.sd-scope .share-panel h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; margin: 0 0 12px; }
.sd-scope .share-copy p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); }
.sd-scope .share-copy .share-caveat { font-size: 12.5px; color: var(--muted); margin: 0; }
.sd-scope .share-example {
  background: var(--sun-soft);
  border-radius: 8px;
  padding: 26px;
  text-align: center;
}
.sd-scope .share-example > p { font-size: 13px; color: var(--ink-2); font-weight: 700; margin: 0 0 10px; }
.sd-scope .share-math span { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 2px; }
.sd-scope .share-math strong { display: block; font-size: clamp(20px, 2.2vw, 25px); font-weight: 900; color: var(--ink); margin-bottom: 10px; font-family: var(--font-head); }
.sd-scope .share-example em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }

/* ============================================================
   08 Comparison
   ============================================================ */
.sd-scope .comparison { background: var(--bg-soft); }
.sd-scope .compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.sd-scope .compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.sd-scope .compare-table th,
.sd-scope .compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}
.sd-scope .compare-table thead th { background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--line); }
.sd-scope .compare-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.sd-scope .compare-table td { color: var(--muted); }
.sd-scope .compare-table .compare-ours { background: var(--blue-soft); color: var(--ink); }
.sd-scope .compare-table thead .compare-ours { background: var(--blue); color: #fff; }
.sd-scope .compare-table tbody tr:last-child th,
.sd-scope .compare-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   09 Flow
   ============================================================ */
.sd-scope .flow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}
.sd-scope .flow-steps li { position: relative; padding: 0 4px 0 0; }
.sd-scope .flow-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 14px;
}
.sd-scope .flow-num::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.sd-scope .flow-steps li:last-child .flow-num::after { display: none; }
.sd-scope .flow-steps h3 { font-size: 17px; margin: 0 0 6px; }
.sd-scope .flow-steps p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ============================================================
   10 FAQ
   ============================================================ */
.sd-scope .faq { background: var(--bg-soft); }
.sd-scope .faq-list { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.sd-scope .faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 22px; }
.sd-scope .faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 15.5px;
  padding: 18px 32px 18px 0;
  position: relative;
  list-style: none;
}
.sd-scope .faq-list summary::-webkit-details-marker { display: none; }
.sd-scope .faq-list summary::before,
.sd-scope .faq-list summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--blue);
  transition: transform 0.25s var(--ease);
}
.sd-scope .faq-list summary::after { transform: rotate(90deg); }
.sd-scope .faq-list details[open] summary::after { transform: rotate(0deg); }
.sd-scope .faq-list details p { margin: 0; padding: 0 0 20px; font-size: 14.5px; color: var(--ink-2); }

/* ============================================================
   11 CTAバンド・フォーム
   ============================================================ */
.sd-scope .cta-band {
  background: var(--sun);
  text-align: center;
  padding: 60px 24px;
}
.sd-scope .cta-band .section-kicker { color: var(--ink); }
.sd-scope .cta-band .section-kicker::before { background: var(--ink); }
.sd-scope .cta-band h2 { margin-bottom: 14px; }
.sd-scope .cta-band > p {
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 15.5px;
  text-align: left;
}

.sd-scope .contact-form-lead { font-size: 15px; color: var(--ink-2); margin: 0; text-align: left; }
.sd-scope .lead-form {
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 48px -28px rgba(22, 35, 59, 0.3);
  padding: 40px 36px;
  display: grid;
  gap: 20px;
}
.sd-scope .lead-form-row-double { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sd-scope .form-field { display: grid; gap: 7px; }
.sd-scope .form-label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.sd-scope .form-label em { color: var(--err); font-style: normal; margin-left: 3px; }
.sd-scope .form-optional { font-weight: 400; color: var(--muted); font-size: 12px; }
.sd-scope .lead-form input[type="text"],
.sd-scope .lead-form input[type="email"],
.sd-scope .lead-form input[type="tel"],
.sd-scope .lead-form textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.sd-scope .lead-form input:focus,
.sd-scope .lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 91, 217, 0.16);
  background: #fff;
}
.sd-scope .form-field-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.sd-scope .form-field-consent input { margin-top: 5px; accent-color: var(--blue); }
.sd-scope .form-field-consent a { color: var(--blue); text-decoration: underline; }
.sd-scope .form-field-consent em { color: var(--err); font-style: normal; }
.sd-scope .form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sd-scope .lead-form-actions { text-align: center; }
.sd-scope .lead-form-submit { width: 100%; max-width: 420px; }
.sd-scope .lead-form-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.sd-scope .form-feedback { margin: 0; font-size: 14px; font-weight: 700; text-align: center; min-height: 1em; }
.sd-scope .form-feedback.is-success { color: var(--ok); }
.sd-scope .form-feedback.is-error { color: var(--err); }

/* ---- モバイル追従CTA ---- */
.sd-scope .mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sd-scope .mobile-sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.sd-scope .mobile-sticky-cta .primary-cta { width: 100%; padding: 15px 20px; font-size: 15px; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 960px) {
  .sd-scope .section-grid { grid-template-columns: 1fr; gap: 24px; }
  .sd-scope .reason-grid { grid-template-columns: 1fr; }
  .sd-scope .works-grid { grid-template-columns: 1fr; max-width: 560px; }
  .sd-scope .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .sd-scope .plan-card-featured { order: -1; }
  .sd-scope .share-panel { grid-template-columns: 1fr; gap: 24px; }
  .sd-scope .loop-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-scope .loop-visual li:not(:last-child)::after { display: none; }
  .sd-scope .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .sd-scope .flow-num::after { display: none; }
  .sd-scope .shindan-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-scope .shindan-run { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 420px; }
  .sd-scope .shindan-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* 短い行長では文節折り返しが右側の空きを生むため本文は通常折り返しに戻す（大きいリード文は維持） */
  .sd-scope p, .sd-scope li, .sd-scope dd, .sd-scope summary { word-break: normal; }
  .sd-scope .hero-lead, .sd-scope .section-lead, .sd-scope .large-text { word-break: auto-phrase; }
  /* 1行が短いと justify は字間が間延びするため左揃えに戻す */
  .sd-scope .section-lead, .sd-scope .large-text, .sd-scope .hero-lead { text-align: left; }
  .sd-scope .section-heading-center { text-align: left; }
  .sd-scope .section-heading-center .section-lead { text-align: left; }

  .sd-scope .section-block { padding: 44px 20px; }
  .sd-scope .primary-cta { width: 100%; padding: 17px 20px; font-size: 16px; }
  .sd-scope .mq-track span { font-size: 17px; }

  .sd-scope .race { padding: 18px 14px 16px; }
  .sd-scope .race-head, .sd-scope .race-row { grid-template-columns: 1fr; gap: 6px; padding-right: 0; }
  .sd-scope .race-head { padding-right: 44px; margin-bottom: 0; }
  .sd-scope .race-scale { display: none; }
  .sd-scope .race-row { margin-top: 14px; }
  .sd-scope .race-label small { display: inline; margin-left: 6px; }
  .sd-scope .seg { font-size: 10.5px; padding: 0 5px; }
  .sd-scope .seg-a, .sd-scope .seg-b { font-size: 0; }
  .sd-scope .race-done { font-size: 11px; padding: 2px 8px; }
  .sd-scope .speed-stats { grid-template-columns: 1fr; gap: 0; }
  .sd-scope .speed-stats > div { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 14px 0; }
  .sd-scope .speed-stats > div + div { border-left: none; border-top: 1px solid var(--line-2); }
  .sd-scope .speed-stats dt { margin: 0; }
  .sd-scope .speed-stats strong { font-size: 44px; }
  .sd-scope .speed-stats small { display: inline; margin: 0 0 0 6px; }

  .sd-scope .loop-visual { grid-template-columns: 1fr; }
  .sd-scope .service-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-scope .service-terms > div:nth-child(3) { border-left: none; }
  .sd-scope .service-terms > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sd-scope .flow-steps { grid-template-columns: 1fr; gap: 22px; }
  .sd-scope .reason-card { padding: 24px 20px 20px; }
  .sd-scope .shindan-form { grid-template-columns: 1fr; }
  .sd-scope .lead-form { padding: 28px 20px; }
  .sd-scope .lead-form-row-double { grid-template-columns: 1fr; }
  .sd-scope .mobile-sticky-cta { display: block; }
  /* 追従CTAが最下部のコンテンツを隠さないよう余白を確保 */
  .sd-scope .contact-form-section { padding-bottom: 110px; }
}

/* ============================================================
   モーション抑制（アクセシビリティ）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sd-scope *, .sd-scope *::before, .sd-scope *::after {
    animation: none !important;
    transition: none !important;
  }
  .sd-scope .rv { opacity: 1; transform: none; }
  .sd-scope .hero h1 .hl { background-size: 100% 100%; }
}
