/* ==========================================================================
   Swooo H design system — base
   version 2026-05-26
   --------------------------------------------------------------------------
   5 mock 共通の base / 共通コンポーネント。
   ページ固有 (TOP / about / NBP / ai-operations / ai-training) の override は
   swooo-h-pages.css 側に置く。
   ========================================================================== */

/* ========== TOKENS ========== */
:root {
  --paper:      #FAFAF8;
  --paper-2:    #F4F2EC;
  --paper-3:    #ECE9E0;
  --ink:        #141414;
  --ink-2:      #1B1B1F;
  --sub:        #4A4A52;
  --sub-2:      #6E6E76;
  --line:       #D7D3C8;
  --line-2:     #C8C5BC;
  --brass:      #8A6420; /* 明背景の小テキストでも WCAG AA(4.5:1) を満たす深ゴールドに統一。暗背景用は --brass-2 */
  --brass-2:    #C19D5D;
  --brass-soft: #F6EFDE;
  --brass-text: #8A6420; /* paper 背景上で WCAG AA(4.5:1) を満たすリンク用ゴールド */
  /* 旧 G デザインから移行したページの inline スタイル互換エイリアス（H パレットへ写像） */
  --text:   var(--sub);
  --text-2: var(--sub-2);
  --navy:   var(--ink);
  --navy-2: var(--ink);
  --crimson: var(--brass-text);
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px;
  --sp-4: 32px; --sp-5: 48px; --sp-6: 64px;
  --sp-7: 96px; --sp-8: 130px;
  --max: 1280px;
  --pad: 56px;
}
@media (max-width: 768px) { :root { --pad: 24px; } }

/* ========== RESET / BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  font-feature-settings: "palt" 1, "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.tnum { font-variant-numeric: tabular-nums; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ========== A11Y : focus-visible ========== */
/* キーボード操作時のみフォーカスリングを表示（マウスクリックでは出さない） */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}
/* ネイティブ outline を消している箇所の保険：focus-visible 非対応ブラウザ用 */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible) { outline: none; }

/* ========== A11Y : reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== skip link ========== */
.skip-link {
  position: absolute; left: 8px; top: -48px;
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  transition: top 180ms;
}
.skip-link:focus { top: 8px; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* ========== TOPBAR ========== */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--pad);
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: center;
}
.brand {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "SOFT" 100;
}
.brand__sub {
  display: inline-block; margin-left: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--sub-2);
  transform: translateY(-3px);
}
.nav { display: flex; gap: 28px; justify-self: center; font-size: 13px; color: var(--sub); }
.nav a { transition: color 200ms; }
.nav a:hover { color: var(--ink); }
@media (max-width: 900px) { .nav { display: none; } }
.topbar__cta {
  font-size: 12px; font-weight: 600;
  padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  letter-spacing: 0.04em;
  transition: background 200ms;
}
.topbar__cta:hover { background: var(--brass); }

/* hamburger toggle — desktop hidden, shown ≤900px */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  justify-self: end;
}
.nav-toggle__bar {
  display: block; width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown panel — never on desktop, only when open ≤900px */
.nav-mobile { display: none; }

@media (max-width: 900px) {
  .topbar__cta { display: none; }
  .topbar__inner { grid-template-columns: 1fr auto; gap: 16px; }
  .nav-toggle { display: flex; }
  .nav-mobile:not([hidden]) {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--line);
    background: var(--paper);
    padding: 4px var(--pad) 20px;
  }
  .nav-mobile a {
    font-family: "Noto Serif JP", serif;
    font-size: 16px; font-weight: 500; color: var(--ink);
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav-mobile a:active { color: var(--brass); }
  .nav-mobile__cta {
    margin-top: 16px;
    border-bottom: 0 !important;
    background: var(--ink); color: var(--paper) !important;
    text-align: center; font-family: "Noto Sans JP", sans-serif !important;
    font-size: 14px !important; font-weight: 600;
    padding: 14px 18px !important;
    letter-spacing: 0.04em;
  }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: var(--sp-3) 0 0;
  font-size: 11px;
  color: var(--sub-2);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--sub); transition: color 200ms; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { margin: 0 8px; color: var(--sub-2); }

/* ========== PAGE HERO ========== */
.page-hero {
  position: relative;
  padding: var(--sp-6) 0 var(--sp-5);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20, 20, 20, 0.04) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 80%, transparent 100%);
}
.page-hero::after {
  content: ""; position: absolute;
  top: -100px; right: -120px;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 124, 58, 0.10) 0%, rgba(166, 124, 58, 0) 70%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}
.page-hero__kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: var(--sp-4);
}
.page-hero__kicker::before,
.page-hero__kicker::after {
  content: ""; width: 36px; height: 1px;
  background: var(--brass); display: inline-block;
}
.page-hero__title {
  font-family: "Noto Serif JP", "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  text-wrap: pretty;
}
.page-hero__title em {
  font-style: italic;
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--brass);
  font-variation-settings: "SOFT" 100;
}
.page-hero__lead {
  max-width: 760px;
  margin: 0 auto var(--sp-5);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 2;
  color: var(--sub);
}
.page-hero__lead strong { color: var(--ink); font-weight: 700; }
.page-hero__cta { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 22px 38px;
  font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 250ms, color 250ms, border-color 250ms, transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
}
/* モディファイアは .btn.btn--xxx（詳細度0,2,0）で定義し、vk-blocks(Bootstrap)の .btn(0,1,0) に
   !important なしで勝たせる。文脈別の反転（.final .btn--solid 等）も同0,2,0でソース順で正しく上書きされる。 */
.btn.btn--solid {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 22px -10px rgba(20,20,20,0.35);
}
.btn.btn--solid:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(20,20,20,0.28);
}
.btn.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn__arrow { font-size: 1.15em; opacity: 0.85; transition: transform 250ms; }
.btn:hover .btn__arrow { transform: translateX(4px); opacity: 1; }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ========== TRUST STRIP ========== */
.trust-strip {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-3) var(--pad);
  text-align: center;
  font-size: 11.5px;
  color: var(--sub);
  letter-spacing: 0.04em;
}
.trust-strip span { margin: 0 var(--sp-2); }
.trust-strip strong { color: var(--ink); font-weight: 600; }
.trust-strip .pipe { color: var(--brass); }

/* ========== SECTION ========== */
.sec { padding: var(--sp-6) 0; position: relative; }
.sec--paper-2 { background: var(--paper-2); }
.sec--ink { background: var(--ink); color: var(--paper); padding: var(--sp-7) 0; }
.sec--ink .label { color: var(--brass-2); }
/* 暗背景では番号(label__num)も明色に（--sub だと暗地に沈むため） */
.sec--ink .label__num { color: rgba(250, 250, 248, 0.55); }
.sec--ink .sec__title { color: var(--paper); }
.sec--ink .sec__lead { color: rgba(250,250,248,0.7); }

.sec__head { margin-bottom: var(--sp-3); }
.sec__head > div + div { margin-top: 6px; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brass-text); /* 11px の明背景ラベルは AA(4.5:1) ゴールド。暗背景は .sec--ink .label が --brass-2 で上書き */
  margin-bottom: var(--sp-3);
}
.label__num {
  font-family: "Fraunces", serif;
  font-weight: 400; font-style: italic;
  font-size: 14px; color: var(--sub);
  letter-spacing: 0;
}
.label::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

.sec__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.4;
  letter-spacing: 0.005em;
  /* balance は行長を均等化して幅を無駄に狭く見せるため pretty に（幅を使いつつ孤立行のみ回避） */
  text-wrap: pretty;
}
.sec__lead {
  font-family: "Noto Serif JP", serif;
  font-size: 16px; line-height: 2;
  color: var(--sub);
  max-width: 100%;
}

/* ========== AUDIENCE — WHO IS THIS FOR ========== */
.audience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 1024px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .audience-grid { grid-template-columns: 1fr; } }
.aud {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--sp-4);
  transition: border-color 280ms, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.aud:hover { border-color: var(--ink); transform: translateY(-2px); }
.aud__num {
  font-family: "Fraunces", serif;
  font-size: 12px; font-style: italic;
  color: var(--brass);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-3);
}
.aud__head {
  font-family: "Noto Serif JP", serif;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
  /* h3 が 1〜2 行で揺れても区切り線の Y 座標を揃える（並列カード原則） */
  min-height: calc(1.55em * 2 + var(--sp-3));
}
.aud__list { list-style: none; }
.aud__list li {
  font-size: 12.5px; color: var(--sub);
  line-height: 1.85;
  position: relative;
  padding-left: 14px;
  padding-bottom: 8px;
}
.aud__list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 1px; background: var(--brass);
}

/* ========== PHASES (OPTIONS) ========== */
.phases-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 900px) { .phases-grid { grid-template-columns: 1fr; } }
.phase {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--sp-4);
  display: flex; flex-direction: column;
  transition: border-color 280ms, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phase:hover { border-color: var(--ink); transform: translateY(-2px); }
.phase__head {
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.phase__num {
  font-family: "Fraunces", serif;
  font-size: 11px; font-style: italic;
  color: var(--brass);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.phase__name {
  font-family: "Noto Serif JP", serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.phase__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) { .phase__meta { grid-template-columns: 1fr; } }
.phase__meta-row {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.phase__meta-label {
  font-size: 10.5px; font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.phase__meta-value {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(15px, 1.55vw, 22px);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.phase__meta-unit {
  font-size: 0.5em;
  color: var(--brass);
  margin: 0 4px;
  vertical-align: 0.15em;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-variation-settings: normal;
}
.phase__body {
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.95;
  margin-bottom: var(--sp-3);
}
.phase__list {
  list-style: none;
  margin-bottom: var(--sp-4);
  flex: 1;
}
.phase__list li {
  position: relative;
  padding-left: 18px;
  padding-bottom: 8px;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.85;
}
.phase__list li::before {
  content: "—";
  position: absolute; left: 0; top: 0;
  color: var(--brass);
  font-family: "Fraunces", serif;
}
.phase__anchor {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.phase__arrow {
  color: var(--brass);
  transition: transform 220ms;
}
.phase:hover .phase__arrow { transform: translateX(3px); }

/* ========== PRICE SINGLE (range presentation) ========== */
.price-single {
  background: var(--paper);
  border: 1px solid var(--line);
}
.price-single__head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .price-single__head { grid-template-columns: 1fr; } }
.price-single__row {
  background: var(--paper-2);
  padding: var(--sp-4) var(--sp-4);
  display: flex; flex-direction: column; gap: 6px;
}
.price-single__label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brass);
  text-transform: uppercase;
}
.price-single__value {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.price-single__sep {
  font-size: 0.55em;
  color: var(--sub-2);
  margin: 0 6px;
  vertical-align: 0.1em;
  font-weight: 400;
}
.price-single__unit {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--brass);
  margin-left: 8px;
  font-family: "Noto Sans JP", sans-serif;
  vertical-align: 0.2em;
  font-variation-settings: normal;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.price-single__lead {
  font-family: "Noto Serif JP", serif;
  font-size: 15px; line-height: 2;
  color: var(--sub);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.price-single__lead strong { color: var(--ink); font-weight: 700; }
.price-single__columns {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
@media (max-width: 800px) { .price-single__columns { grid-template-columns: 1fr; } }
.price-single__columns > div {
  background: var(--paper);
  padding: var(--sp-4);
}
.price-single__col-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--brass);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
}
.price-single__list {
  list-style: none;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.85;
}
.price-single__list li {
  position: relative;
  padding-left: 18px;
  padding-bottom: 6px;
}
.price-single__list li::before {
  content: "—";
  position: absolute; left: 0; top: 0;
  color: var(--brass);
  font-family: "Fraunces", serif;
}

.price__note {
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  border: 1px dashed var(--line-2);
  font-size: 12px;
  color: var(--sub);
  line-height: 1.85;
}

/* ========== DELIVERABLES ========== */
.deli-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .deli-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .deli-grid { grid-template-columns: 1fr; } }
.deli-grid--3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) { .deli-grid--3 { grid-template-columns: 1fr !important; } }
.deli {
  background: var(--paper);
  padding: var(--sp-4) var(--sp-3);
  transition: background 280ms;
}
.deli:hover { background: var(--paper-2); }
.deli__num {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 300;
  color: var(--ink);
  font-variation-settings: "SOFT" 100;
  line-height: 1;
  margin-bottom: var(--sp-3);
  font-variant-numeric: tabular-nums;
}
.deli__head {
  font-family: "Noto Serif JP", serif;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--sp-2);
}
.deli__body {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.85;
}

/* ========== PROCESS ========== */
.process-track {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: var(--sp-4);
}
/* 既定(5ステップ)は2列だと6セル目が空き、コンテナ線色が露出する。タブレット以下は1列に統一。
   4ステップ系(contact / flow--4)は各自の override で2列を維持する。 */
@media (max-width: 1024px) { .process-track { grid-template-columns: 1fr; } }
/* 3 ステップ用（ai-training CURRICULUM 等）。5 列ベースだと空セルにコンテナ背景が透けて隙間になるため。 */
.process-track--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .process-track--3 { grid-template-columns: 1fr; } }
.step {
  background: var(--paper);
  padding: var(--sp-4) var(--sp-3);
  display: flex; flex-direction: column;
  transition: background 280ms;
}
.step:hover { background: var(--paper-2); }
.step__num {
  font-family: "Fraunces", serif;
  font-size: 11px; font-style: italic;
  color: var(--sub-2);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
  display: flex; align-items: center; gap: 8px;
}
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step__big {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 300; line-height: 1;
  color: var(--ink);
  font-variation-settings: "SOFT" 100;
  margin-bottom: var(--sp-2);
}
.step__head {
  font-family: "Noto Serif JP", serif;
  font-size: 14.5px; font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--sp-2);
}
.step__period {
  font-size: 11px; color: var(--brass);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}
.step__body {
  font-size: 12px; color: var(--sub);
  line-height: 1.85;
  flex: 1;
}
.step__ai {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--brass);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.step__ai::before {
  content: "AI "; font-family: "Fraunces", serif;
  font-style: italic; font-weight: 400;
  color: var(--brass-2);
  margin-right: 4px;
}

/* ========== CASES ========== */
.cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: border-color 280ms;
}
.case:hover { border-color: var(--ink); }
/* 案件ヘッダー（画像プレースホルダ廃止、エディトリアル見出し化） */
.case__head {
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.case__num {
  font-family: "Fraunces", serif;
  font-size: 11px; font-style: italic;
  color: var(--brass-text); letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.case__name {
  font-family: "Noto Serif JP", serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.35;
}
.case__body {
  padding: var(--sp-3); flex: 1;
  display: flex; flex-direction: column;
}
.case__meta {
  display: flex; gap: 12px;
  font-size: 11px; color: var(--sub-2);
  letter-spacing: 0.06em; margin-bottom: var(--sp-2);
  text-transform: uppercase;
}
.case__title {
  font-family: "Noto Serif JP", serif;
  font-size: 16px; font-weight: 700;
  color: var(--ink); margin-bottom: var(--sp-3);
  line-height: 1.55;
  /* 3 枚のカードで metrics の境界線 Y を揃えるためタイトルを 2 行に固定 */
  min-height: calc(16px * 1.55 * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.case__field {
  font-size: 12px; color: var(--sub);
  line-height: 1.85;
  margin-bottom: 6px;
}
.case__field strong {
  display: block;
  font-size: 10.5px;
  color: var(--brass);
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.case__field + .case__field { margin-top: var(--sp-2); }
.case__progress {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.7;
}

/* ========== FAQ ========== */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  align-items: center;
  transition: color 200ms;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-item__q { color: var(--brass); }
.faq-item__num {
  font-family: "Fraunces", serif;
  font-size: 14px; font-style: italic;
  color: var(--brass);
  letter-spacing: 0.04em;
}
.faq-item__q {
  font-family: "Noto Serif JP", serif;
  font-size: 15.5px; font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
  transition: color 200ms;
}
.faq-item__toggle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sub-2);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: color 200ms, border-color 200ms;
}
.faq-item summary:hover .faq-item__toggle {
  color: var(--brass); border-color: var(--brass);
}
.faq-item__toggle::before { content: "+"; font-size: 16px; line-height: 1; }
.faq-item[open] .faq-item__toggle::before { content: "−"; }
.faq-item__a {
  padding: 0 0 var(--sp-4) calc(48px + var(--sp-3));
  font-size: 13.5px;
  color: var(--sub);
  line-height: 2;
}
.faq-item__a strong { color: var(--ink); font-weight: 700; }

/* ========== INLINE CTA BAR ========== */
.ctabar {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-3) 0;
}
.ctabar__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: var(--sp-4);
  justify-content: space-between;
}
@media (max-width: 800px) {
  .ctabar__inner { flex-direction: column; gap: var(--sp-3); text-align: center; }
}
.ctabar__text { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.ctabar__kicker {
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--brass); font-weight: 600;
}
.ctabar__head {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.ctabar__head em {
  font-style: normal; color: var(--brass);
  font-weight: inherit;
}
.ctabar .btn { padding: 14px 24px; font-size: 12.5px; }

/* ========== FINAL CTA ========== */
.final {
  padding: var(--sp-7) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute; bottom: -200px; left: -150px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(193, 157, 93, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.final__inner {
  max-width: 920px; margin: 0 auto;
  padding: 0 var(--pad);
  position: relative; text-align: center;
}
.final__kicker {
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--brass-2); font-weight: 600;
  margin-bottom: var(--sp-4);
}
.final__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.4;
  margin-bottom: var(--sp-4);
  color: var(--paper);
  text-wrap: pretty;
}
.final__title em {
  font-style: italic; color: var(--brass-2);
  font-family: "Fraunces", serif; font-weight: 400;
}
.final__lead {
  font-family: "Noto Serif JP", serif;
  font-size: 17px; line-height: 2;
  color: rgba(250,250,248,0.78);
  max-width: 600px; margin: 0 auto var(--sp-5);
}
.final__cta {
  display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.final .btn--solid {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 28px -10px rgba(255, 255, 255, 0.18);
}
.final .btn--solid:hover {
  background: #ffffff;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -10px rgba(255, 255, 255, 0.28);
}
.final .btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.55);
}
.final .btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-1px);
}
.final .btn:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; }
.final__reminder {
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px; color: rgba(250,250,248,0.72);
  letter-spacing: 0.04em;
  line-height: 2;
}
.final__reminder strong {
  color: var(--paper); font-weight: 600;
  display: block; margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.final__reminder .pipe { color: var(--brass-2); margin: 0 8px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--ink-2);
  color: rgba(250,250,248,0.66);
  padding: var(--sp-7) 0 var(--sp-4);
}
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 1024px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .footer__top { grid-template-columns: 1fr; } }
.footer__brand-block { grid-column: span 1; }
@media (max-width: 1024px) { .footer__brand-block { grid-column: 1 / -1; margin-bottom: var(--sp-3); } }
.footer__brand {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-weight: 600; font-size: 32px;
  color: var(--paper);
  margin-bottom: var(--sp-1);
  display: block;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.01em;
}
.footer__tagline {
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--brass-2); font-weight: 600;
  margin-bottom: var(--sp-3);
}
.footer__company { font-size: 13.5px; color: var(--paper); font-weight: 600; margin-bottom: 6px; }
.footer__address {
  font-size: 11.5px; line-height: 1.85;
  color: rgba(250,250,248,0.72);
  margin-bottom: var(--sp-3);
}
.footer__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; padding: 6px 12px;
  border: 1px solid rgba(193, 157, 93, 0.32);
  color: rgba(250,250,248,0.78);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.pill strong { color: var(--brass-2); font-weight: 600; letter-spacing: 0.04em; }
.footer__col-head {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--brass-2);
  margin-bottom: var(--sp-3);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__list { list-style: none; display: grid; gap: var(--sp-2); }
.footer__list a {
  font-size: 13.5px; color: var(--paper);
  transition: color 200ms, padding-left 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-weight: 500;
  display: block;
  position: relative;
  padding-left: 0;
}
.footer__list a::before {
  content: ""; position: absolute;
  left: -14px; top: 0.55em;
  width: 0; height: 1px;
  background: var(--brass-2);
  transition: width 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.footer__list a:hover {
  color: #ffffff;
  padding-left: 14px;
}
.footer__list a:hover::before { width: 10px; }
.footer__list .sub {
  display: block;
  font-size: 11px; color: rgba(250,250,248,0.72);
  font-weight: 400; margin-top: 2px;
}
.footer__bottom {
  padding-top: var(--sp-3);
  display: flex; justify-content: space-between; gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(250,250,248,0.7);
  letter-spacing: 0.04em;
}
.footer__bottom a { color: inherit; }
.footer__bottom a:hover { color: var(--paper); }
.footer__legal { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.footer__legal a { position: relative; padding-right: var(--sp-3); }
.footer__legal a:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 1px; height: 10px; background: rgba(255,255,255,0.16);
  transform: translateY(-50%);
}
