/* ============================================================
   Itopaso — style.css
   Design System: LEDGER v1.0
   外部CDN参照なし。全フォント・アイコンはstatic/から配信。
   ============================================================ */

/* ============================================================
   1. @font-face
   ============================================================ */
@font-face {
  font-family: "Noto Sans JP";
  src: url("/fonts/NotoSansJP-Regular-2300d892bbe99b40a0dc77664bcc4e9c.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans JP";
  src: url("/fonts/NotoSansJP-Bold-3e8c2288884ab7e8854a78b35d1a3909.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Noto Serif JP Bold — ¥0モニュメントと価格数字のみに使用 */
@font-face {
  font-family: "Noto Serif JP";
  src: url("/fonts/NotoSerifJP-Bold-latin-d19ef4c2ad65079fe526af13918edc06.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Serif JP";
  src: url("/fonts/NotoSerifJP-Bold-114-963188013c62ed6b642850591253d47d.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3e, U+3005, U+4e0d, U+4e88, U+4ecb, U+4ee3, U+4ef6,
    U+4fdd, U+4fe1, U+500b, U+50cf, U+5186, U+5316, U+53d7, U+540c, U+544a,
    U+54e1, U+5728, U+58f2, U+5973, U+5b89, U+5c71, U+5e02, U+5e97, U+5f15,
    U+5fc3, U+5fdc, U+601d, U+611b, U+611f, U+671f, U+6728, U+6765, U+683c,
    U+6b21, U+6ce8, U+6d3b, U+6d77, U+7530, U+7740, U+7acb, U+7d50, U+826f,
    U+8f09, U+8fbc, U+9001, U+9053, U+91ce, U+9762, U+98df;
}

@font-face {
  font-family: "Noto Serif JP";
  src: url("/fonts/NotoSerifJP-Bold-119-f09ead07090d4f4fc61757c239677386.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+2027, U+3001-3002, U+3041-307f, U+3081-308f,
    U+3091-3093, U+3099-309a, U+309d-309e, U+30a1-30e1, U+30e3-30ed,
    U+30ef-30f0, U+30f2-30f4, U+30fb-30fe, U+ff0c, U+ff0e;
}

/* ============================================================
   2. デザイントークン
   ============================================================ */
:root {
  /* ── Ink（インク） ── */
  --ink-900: #1c2333;
  --ink-700: #2f3d52;
  --ink-500: #4d5769;
  --ink-300: #606b7a;
  --ink-100: #c5cdd8;

  /* ── Paper（紙） ── */
  --paper-0:   #ffffff;
  --paper-50:  #f7f6f3;
  --paper-100: #edecea;
  --paper-200: #e3e1dd;

  /* ── Accent（唯一の彩色 — CTA・¥0・推奨行のみ） ── */
  --accent:       #ff6b35;
  --accent-deep:  #e55820;
  --accent-alpha: rgba(255, 107, 53, 0.14);

  /* ── セマンティック ── */
  --color-bg:         var(--paper-50);
  --color-bg-alt:     var(--paper-100);
  --color-bg-dark:    var(--ink-900);
  --color-bg-surface: var(--paper-0);
  --color-heading:    var(--ink-900);
  --color-body:       var(--ink-500);
  --color-subtle:     var(--ink-300);
  --color-border:     var(--paper-200);
  --color-cta:        var(--accent);
  --color-cta-hover:  var(--accent-deep);
  --color-danger:     #d94a2e;

  /* ── タイポグラフィ ── */
  --font-display: "Noto Serif JP", "Noto Serif", "Hiragino Mincho ProN",
    "Yu Mincho", "YuMincho", Georgia, serif;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;

  /* ── タイプスケール ── */
  --text-2xs:    0.6875rem;
  --text-xs:     0.75rem;
  --text-sm:     0.875rem;
  --text-base:   1rem;
  --text-lg:     1.125rem;
  --text-xl:     1.375rem;
  --text-2xl:    1.75rem;
  --text-3xl:    clamp(1.75rem, 3.5vw, 2.5rem);
  --text-4xl:    clamp(2.25rem, 5vw, 3.5rem);
  --text-price:  clamp(2rem, 4vw, 2.75rem);
  --text-monument: clamp(5rem, 16vw, 10rem);

  /* ── 行間 ── */
  --leading-tight:   1.2;
  --leading-snug:    1.4;
  --leading-normal:  1.75;
  --leading-relaxed: 1.9;

  /* ── 字間 ── */
  --tracking-label:  0.12em;
  --tracking-tight:  -0.02em;
  --tracking-wide:   0.03em;

  /* ── スペーシング ── */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;

  --gap-inner:      var(--sp-6);
  --gap-card:       var(--sp-5);
  --pad-card-sm:    var(--sp-6);
  --pad-card-md:    var(--sp-8);
  --pad-card-lg:    var(--sp-10);
  --section-py:     clamp(80px, 10vw, 120px);
  --section-head-mb: clamp(40px, 6vw, 64px);
  --container-max:  1100px;
  --container-px:   clamp(20px, 5vw, 48px);
  --header-h:       60px;

  /* ── シェイプ ── */
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* ── 影 ── */
  --shadow-sm: 0 1px 2px rgba(28, 35, 51, 0.05);
  --shadow-md: 0 1px 3px rgba(28, 35, 51, 0.06), 0 6px 16px rgba(28, 35, 51, 0.05);
  --shadow-lg: 0 4px 8px rgba(28, 35, 51, 0.08), 0 16px 40px rgba(28, 35, 51, 0.08);
  --shadow-focus: 0 0 0 3px rgba(255, 107, 53, 0.22);
}

/* ============================================================
   3. リセット・ベース
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: var(--leading-snug);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-base);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* ============================================================
   4. レイアウトユーティリティ
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__head {
  margin-bottom: var(--section-head-mb);
}

.section__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-subtle);
  margin-bottom: var(--sp-4);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--color-heading);
}

.section__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-body);
  max-width: 600px;
  margin-top: var(--sp-5);
}

/* ============================================================
   5. ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 52px;
  padding: 0 var(--sp-8);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 150ms ease, color 150ms ease,
    border-color 150ms ease, transform 100ms ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  background-color: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--ink-900);
  color: #fff;
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background-color: #fff;
  color: var(--ink-900);
  border-color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-900);
  transition: color 150ms;
}

.text-link::after {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("/icons/arrow-right-cf75fa6178758c9ba9929b3b33070045.svg") no-repeat center / contain;
  mask: url("/icons/arrow-right-cf75fa6178758c9ba9929b3b33070045.svg") no-repeat center / contain;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.text-link:hover {
  color: var(--accent);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ============================================================
   6. ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--paper-50);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}

/* デスクトップナビ */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.site-nav__link {
  font-size: var(--text-sm);
  color: var(--ink-500);
  transition: color 150ms;
}

.site-nav__link:hover {
  color: var(--ink-900);
}

.site-nav__cta {
  height: 36px;
  padding: 0 var(--sp-5);
  font-size: var(--text-sm);
}

/* ハンバーガーボタン */
.site-header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-900);
  border-radius: var(--radius);
}

.site-header__menu-btn:hover {
  background-color: var(--paper-100);
}

.site-header__menu-btn img {
  width: 24px;
  height: 24px;
}

/* モバイルナビ */
.site-nav--mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background-color: var(--paper-50);
  flex-direction: column;
  padding: var(--sp-6) var(--container-px);
  gap: 0;
  border-top: 1px solid var(--color-border);
  overflow-y: auto;
}

.site-nav--mobile.is-open {
  display: flex;
}

.site-nav--mobile .site-nav__link {
  display: block;
  padding: var(--sp-4) 0;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-border);
  color: var(--ink-500);
}

.site-nav--mobile .site-nav__cta {
  margin-top: var(--sp-6);
  height: 48px;
  width: 100%;
  font-size: var(--text-base);
}

.site-header__menu-btn .icon-menu  { display: block; }
.site-header__menu-btn .icon-close { display: none;  }
.site-header__menu-btn.is-open .icon-menu  { display: none;  }
.site-header__menu-btn.is-open .icon-close { display: block; }

@media (max-width: 767px) {
  .site-nav--desktop { display: none; }
  .site-header__menu-btn { display: flex; }
}

/* ============================================================
   7. フッター
   ============================================================ */
.site-footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--sp-12) var(--sp-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.site-footer__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-2);
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--leading-normal);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.site-footer__nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color 150ms;
}

.site-footer__nav a:hover {
  color: #fff;
}

.site-footer__bottom {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copy {
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: var(--sp-10);
    align-items: flex-start;
  }

  .site-footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-6);
  }
}

/* ============================================================
   8. ヒーロー
   ============================================================ */
.hero {
  background-color: var(--ink-900);
  background-image:
    radial-gradient(ellipse 70% 65% at 6% 55%, rgba(255, 107, 53, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 98% 8%, rgba(255, 107, 53, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(47, 61, 82, 0.6) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: auto, auto, auto, 40px 40px, 40px 40px;
  padding-block: clamp(88px, 12vw, 140px);
  position: relative;
}

/* Hero 内グリッド */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(var(--sp-10), 6vw, var(--sp-16));
    align-items: center;
    text-align: left;
  }
}

.hero__prestrike {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero__strike {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-full);
}

.hero__arrow {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.25);
}

/* h1 コンテナ */
.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.hero__headline-prefix {
  display: block;
  font-family: var(--font-base);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.18em;
}

/* ¥0モニュメント — ページの「主張」 */
.hero__headline-accent {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-monument);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.hero__headline-accent.is-visible {
  opacity: 1;
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.62);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.hero__note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.28);
}

/* デスクトップ: テキストブロックを左揃えに */
@media (min-width: 900px) {
  .hero__prestrike { justify-content: flex-start; }
  .hero__headline  { align-items: flex-start; }
  .hero__sub       { margin-inline: 0; }
  .hero__cta       { justify-content: flex-start; }
}

/* ヒーロー内テキストリンク（暗背景対応） */
.hero .text-link {
  color: rgba(255, 255, 255, 0.72);
}
.hero .text-link:hover {
  color: var(--accent);
}

/* ビジュアルカード（右カラム）*/
.hero__visual {
  display: none;
}

@media (min-width: 900px) {
  .hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-5);
    padding: var(--pad-card-lg);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.hero__cost-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.hero__cost-before {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: line-through;
  text-decoration-color: rgba(217, 74, 46, 0.6);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.hero__cost-source {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1.4;
  max-width: 180px;
  text-align: center;
}

.hero__cost-divider {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.hero__cost-after {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

/* ============================================================
   9. PROBLEM（ハードル破壊）
   ============================================================ */
.problem__lead {
  font-size: var(--text-lg);
  color: var(--ink-500);
  line-height: var(--leading-normal);
  font-style: italic;
  margin-bottom: var(--sp-10);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--paper-200);
  max-width: 640px;
}

/* 衝撃ステートメント */
.problem__shock {
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--pad-card-md);
  text-align: center;
  margin-bottom: var(--sp-8);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.problem__shock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(28, 35, 51, 0.03) 100%);
  pointer-events: none;
}

.problem__shock-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: var(--sp-6);
}

.problem__shock-cost {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: var(--sp-5);
}

.problem__shock-note {
  font-size: var(--text-sm);
  color: var(--ink-300);
  line-height: var(--leading-normal);
}

/* 遷移矢印 */
.problem__transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.problem__transition-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--color-border), var(--accent));
}

.problem__transition-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* 3列比較テーブル */
.compare-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  text-align: right;
  vertical-align: middle;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
}

/* ヘッダー行 */
.compare-table thead th {
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.compare-table thead th:first-child {
  background: var(--paper-100);
  color: var(--ink-300);
  width: 28%;
}

/* 一般的な開発ヘッダー */
.compare-table__col-before {
  background: var(--paper-200);
  color: var(--ink-400, var(--ink-300));
}

/* Itopasoヘッダー（際立たせる） */
.compare-table__col-after {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.85);
  border-top: 3px solid var(--accent);
}

/* データ行 */
.compare-table tbody td {
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--text-sm);
  border-top: 1px solid var(--color-border);
}

/* 項目列 */
.compare-table tbody td:first-child {
  color: var(--ink-500);
  background: var(--paper-50);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 一般的な開発列: 薄く・ネガティブ */
.compare-table__val-before {
  color: var(--ink-300);
  background: var(--paper-100);
}

/* Itopaso列: 明確・正直 */
.compare-table__val-after {
  color: var(--ink-700);
  background: var(--paper-0);
  font-weight: 700;
}

/* アクセント数値 */
.compare-table__accent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15em;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
}

/* 合計行 */
.compare-table__row-total td {
  border-top: 2px solid var(--paper-200);
  padding-block: var(--sp-5);
}

.compare-table__row-total td:first-child {
  color: var(--ink-700);
}

.compare-table__row-total .compare-table__val-before {
  color: var(--ink-500);
}

/* 合計行サブテキスト */
.compare-table__sub {
  font-size: var(--text-2xs);
  font-weight: 400;
  color: var(--ink-300);
  display: block;
  margin-top: var(--sp-1);
}

/* モバイル: 項目列を非表示、2列でシンプル比較 */
@media (max-width: 639px) {
  .compare-table thead th:first-child,
  .compare-table tbody td:first-child {
    display: none;
  }

  .compare-table thead th {
    width: 50%;
  }
}

.problem__footnote {
  font-size: var(--text-xs);
  color: var(--ink-300);
  margin-bottom: var(--sp-10);
}

.problem__cta {
  text-align: center;
}

/* ============================================================
   9b. COST MARKET（システム別 開発費用相場）
   ============================================================ */
.cost-market {
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--pad-card-md);
  margin-bottom: var(--sp-8);
  box-shadow: var(--shadow-md);
}

.cost-market__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: var(--sp-3);
}

.cost-market__heading {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-2);
}

.cost-market__sub {
  font-size: var(--text-sm);
  color: var(--ink-300);
  margin-bottom: var(--sp-8);
  line-height: var(--leading-normal);
}

/* ============================================================
   COST CAROUSEL（システム種別費用カルーセル）
   ============================================================ */
.cost-carousel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}

.cost-carousel__viewport {
  flex: 1;
  overflow: hidden;
}

.cost-carousel__track {
  display: flex;
  gap: 16px;
  will-change: transform;
  user-select: none;
}

.cost-carousel-card {
  flex-shrink: 0;
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--paper-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s;
}

.cost-carousel-card__name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-300);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-5);
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cost-carousel-card__avg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-4);
}

.cost-carousel-card__range {
  display: inline-block;
  font-size: var(--text-2xs);
  color: var(--ink-300);
  background: var(--paper-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px var(--sp-4);
  line-height: var(--leading-normal);
}

.cost-carousel__nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--paper-0);
  color: var(--ink-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  box-shadow: var(--shadow-sm);
}

.cost-carousel__nav:hover {
  background: var(--paper-100);
  border-color: var(--ink-100);
  color: var(--ink-900);
}

.cost-carousel__nav:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* 無音ジャンプ時のopacity即時切替 */
.cc-no-transition .cost-carousel-card {
  transition: none !important;
}

/* ============================================================
   COST TOTAL（総コスト図解）
   ============================================================ */
.cost-total {
  background: var(--paper-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  margin-bottom: var(--sp-6);
  text-align: center;
}

.cost-total__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: var(--sp-2);
}

.cost-total__heading {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-6);
}

.cost-total__formula {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.cost-total__item {
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  flex: 1;
  min-width: 140px;
  max-width: 200px;
}

.cost-total__item-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-2);
}

.cost-total__item-desc {
  font-size: var(--text-xs);
  color: var(--ink-300);
  line-height: var(--leading-normal);
}

.cost-total__op {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-300);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-1);
  flex-shrink: 0;
  align-self: center;
}

.cost-total__arrow {
  font-size: 1.75rem;
  color: var(--ink-100);
  line-height: 1;
  margin: var(--sp-3) 0;
}

.cost-total__result {
  display: inline-block;
  background: var(--ink-900);
  color: var(--paper-0);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-10);
}

.cost-total__result-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-1);
}

.cost-total__result-note {
  font-size: var(--text-xs);
  color: var(--paper-200);
  line-height: var(--leading-normal);
}

.cost-market__note {
  font-size: var(--text-2xs);
  color: var(--ink-300);
  line-height: var(--leading-normal);
}

@media (max-width: 767px) {
  .cost-market__heading {
    font-size: var(--text-lg);
  }
  .cost-market__sub {
    font-size: var(--text-xs);
    margin-bottom: var(--sp-5);
  }
  .cost-carousel-card {
    padding: var(--sp-5) var(--sp-4);
  }
  .cost-carousel-card__name {
    font-size: var(--text-2xs);
    min-height: 2.2em;
    margin-bottom: var(--sp-3);
  }
  .cost-carousel-card__avg {
    font-size: clamp(1.125rem, 5vw, 1.5rem);
    margin-bottom: var(--sp-3);
  }
  .cost-total__formula {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
  }
  .cost-total__item {
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: var(--sp-4);
  }
  .cost-total__op {
    font-size: var(--text-base);
    justify-content: center;
    padding: 0;
  }
  .cost-total__result {
    padding: var(--sp-4) var(--sp-6);
    width: 100%;
  }
  .cost-carousel__nav {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   9d. PRICE COMPARE（価格比較カード）
   ============================================================ */
.price-compare {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: var(--sp-4);
  align-items: center;
  margin-bottom: var(--sp-5);
}

@media (max-width: 680px) {
  .price-compare {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.price-compare__card {
  border-radius: var(--radius-lg);
  padding: var(--pad-card-md);
  position: relative;
  overflow: hidden;
}

.price-compare__card--before {
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.price-compare__card--after {
  background: var(--ink-900);
  border: 1px solid rgba(255, 107, 53, 0.25);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 107, 53, 0.12);
}

.price-compare__card--after::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.price-compare__card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.price-compare__card--before .price-compare__card-label {
  color: var(--ink-300);
}

.price-compare__card--after .price-compare__card-label {
  color: rgba(255, 255, 255, 0.4);
}

.price-compare__main {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
}

.price-compare__card--before .price-compare__main {
  border-bottom: 1px solid var(--color-border);
}

.price-compare__card--after .price-compare__main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-compare__main-note {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}

.price-compare__card--before .price-compare__main-note {
  color: var(--ink-300);
}

.price-compare__card--after .price-compare__main-note {
  color: rgba(255, 255, 255, 0.38);
}

.price-compare__main-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}

.price-compare__main-val--zero {
  font-size: clamp(3rem, 8vw, 4.5rem);
  color: var(--accent);
  line-height: 1;
}

.price-compare__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.price-compare__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: var(--text-sm);
}

.price-compare__card--before .price-compare__list li {
  color: var(--ink-500);
}

.price-compare__card--after .price-compare__list li {
  color: rgba(255, 255, 255, 0.55);
}

.price-compare__list-val {
  font-weight: 700;
  color: var(--ink-700);
  text-align: right;
  flex-shrink: 0;
}

.price-compare__list-val--accent {
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  flex-shrink: 0;
}

.price-compare__monthly {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-compare__monthly-note {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: var(--sp-2);
  display: block;
}

.price-compare__monthly-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  display: block;
}

/* 比較矢印 */
.price-compare__arrow {
  text-align: center;
  font-size: var(--text-2xl);
  color: var(--ink-300);
  line-height: 1;
}

@media (max-width: 680px) {
  .price-compare__arrow {
    padding: var(--sp-5) 0;
    display: block;
    transform: rotate(90deg);
  }
}

/* ============================================================
   10. PRICING（料金カード）
   ============================================================ */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  align-items: stretch;
}

@media (max-width: 700px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing-card {
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--pad-card-md);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card--featured {
  background: var(--ink-900);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 107, 53, 0.15);
  transform: translateY(-6px);
}

.pricing-card--featured:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 107, 53, 0.28);
  transform: translateY(-8px);
}

.pricing-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.pricing-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-2xs);
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px var(--sp-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
  align-self: flex-start;
}

.pricing-card__tier {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.pricing-card:not(.pricing-card--featured) .pricing-card__tier {
  color: var(--ink-300);
}

.pricing-card--featured .pricing-card__tier {
  color: rgba(255, 255, 255, 0.4);
}

.pricing-card__headcount {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}

.pricing-card:not(.pricing-card--featured) .pricing-card__headcount {
  color: var(--ink-900);
}

.pricing-card--featured .pricing-card__headcount {
  color: #fff;
}

.pricing-card__divider {
  height: 1px;
  margin-bottom: var(--sp-5);
}

.pricing-card:not(.pricing-card--featured) .pricing-card__divider {
  background: var(--color-border);
}

.pricing-card--featured .pricing-card__divider {
  background: rgba(255, 255, 255, 0.12);
}

.pricing-card__price-row {
  margin-bottom: var(--sp-5);
}

.pricing-card__price-note {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}

.pricing-card:not(.pricing-card--featured) .pricing-card__price-note {
  color: var(--ink-300);
}

.pricing-card--featured .pricing-card__price-note {
  color: rgba(255, 255, 255, 0.38);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}

.pricing-card:not(.pricing-card--featured) .pricing-card__price {
  color: var(--ink-700);
}

.pricing-card--featured .pricing-card__price {
  color: var(--accent);
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: auto;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
}

.pricing-card__features li::before {
  content: "✓";
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-card:not(.pricing-card--featured) .pricing-card__features li {
  color: var(--ink-500);
}

.pricing-card--featured .pricing-card__features li {
  color: rgba(255, 255, 255, 0.65);
}

/* 共通特徴タグ */
.pricing-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  justify-content: center;
}

.pricing-feature-tag {
  font-size: var(--text-sm);
  color: var(--ink-500);
  background-color: var(--paper-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-4);
}

@media (max-width: 640px) {
  .pricing-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
  }

  .pricing-feature-tag {
    text-align: center;
  }

  .pricing-feature-tag:last-child:nth-child(odd) {
    grid-column: span 2;
    justify-self: center;
    width: calc(50% - var(--sp-1));
  }
}

.pricing__rule {
  font-size: var(--text-sm);
  color: var(--ink-500);
  text-align: center;
  padding: var(--sp-4) var(--sp-6);
  background: var(--paper-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--sp-8);
  line-height: var(--leading-normal);
}

.pricing__footnote {
  font-size: var(--text-xs);
  color: var(--ink-300);
  line-height: var(--leading-normal);
}

/* ============================================================
   11. FLOW（導入フロー）
   ============================================================ */
.flow__header {
  margin-bottom: var(--section-head-mb);
}

.flow__header .section__label {
  margin-bottom: var(--sp-4);
}

.flow__title-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.flow__title-lead {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
}

.flow__title-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

/* 番号付きカードグリッド */
.flow__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-card);
  position: relative;
}

@media (min-width: 640px) {
  .flow__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .flow__cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-card {
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--pad-card-md);
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* デスクトップ: カード間の矢印 */
@media (min-width: 900px) {
  .flow-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: calc(var(--gap-card) * -1 - 7px);
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--ink-100);
    border-right: 2px solid var(--ink-100);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }
}

.flow-card__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.flow-card__duration {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-500);
  background: var(--paper-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

.flow-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-3);
  line-height: var(--leading-snug);
}

.flow-card__body {
  font-size: var(--text-sm);
  color: var(--ink-500);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   11b. FLOW TIMELINE（5ステップ・タイムライン形式）
   ============================================================ */
.flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  flex-direction: row;
  gap: var(--sp-5);
  position: relative;
}

.flow-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}

.flow-step__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper-0);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.flow-step__circle--done {
  border-color: var(--accent);
  background: var(--accent-alpha);
}

/* モバイル: マーカーの縦接続線 */
.flow-step__marker::after {
  content: "";
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-border), var(--paper-200));
  margin-top: var(--sp-2);
  min-height: var(--sp-8);
}

.flow-step:last-child .flow-step__marker::after {
  display: none;
}

.flow-step__body {
  padding-top: var(--sp-1);
  padding-bottom: var(--sp-8);
}

.flow-step:last-child .flow-step__body {
  padding-bottom: 0;
}

.flow-step__num {
  display: block;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.flow-step__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-2);
}

.flow-step__duration {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-500);
  background: var(--paper-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-3);
  letter-spacing: 0.02em;
}

.flow-step__desc {
  font-size: var(--text-sm);
  color: var(--ink-500);
  line-height: var(--leading-relaxed);
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-2);
  box-shadow: var(--shadow-sm);
}

/* デスクトップ: 横並びタイムライン */
@media (min-width: 900px) {
  .flow-timeline {
    flex-direction: row;
    align-items: stretch;
    position: relative;
  }

  /* 横の接続線（全ステップをまたぐ） */
  .flow-timeline::before {
    content: "";
    position: absolute;
    top: 23px; /* 48px サークルの中心 */
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--paper-200), var(--ink-100), var(--paper-200));
    z-index: 0;
    pointer-events: none;
  }

  .flow-step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 var(--sp-3);
    gap: var(--sp-4);
  }

  .flow-step__marker {
    width: auto;
    flex-direction: column;
  }

  /* モバイルの縦線を非表示 */
  .flow-step__marker::after {
    display: none;
  }

  .flow-step__body {
    padding: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .flow-step:last-child .flow-step__body {
    padding-bottom: 0;
  }

  .flow-step__duration {
    display: inline-flex;
  }

  .flow-step__desc {
    flex: 1;
  }
}

/* ============================================================
   12. WORKS（開発事例）
   ============================================================ */
.works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-card);
}

@media (min-width: 640px) {
  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .works__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  --cat-color: var(--color-border);
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--cat-color);
  border-radius: var(--radius);
  background-color: var(--paper-0);
  overflow: hidden;
  text-align: left;
  transition: border-color 180ms ease, transform 200ms ease, box-shadow 200ms ease;
  width: 100%;
  display: block;
}

.work-card--cat-crm     { --cat-color: var(--accent); }
.work-card--cat-ops     { --cat-color: #0891b2; }
.work-card--cat-finance { --cat-color: #059669; }
.work-card--cat-data    { --cat-color: #4f46e5; }

.work-card:hover,
.work-card:focus-visible {
  border-color: var(--cat-color);
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-md);
  outline: none;
}

/* カテゴリタグ（pill badge） */
.work-card__tag {
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 3px var(--sp-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-3);
}

.work-card__tag--crm {
  background: var(--accent-alpha);
  color: var(--accent-deep);
}
.work-card__tag--ops {
  background: rgba(8, 145, 178, 0.10);
  color: #0369a1;
}
.work-card__tag--finance {
  background: rgba(5, 150, 105, 0.10);
  color: #047857;
}
.work-card__tag--data {
  background: rgba(79, 70, 229, 0.10);
  color: #4338ca;
}

.work-card:focus-visible {
  box-shadow: var(--shadow-focus);
}

.work-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--paper-100);
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.work-card:hover .work-card__img,
.work-card:focus-visible .work-card__img {
  transform: scale(1.03);
}

.work-card__body {
  padding: var(--pad-card-sm);
}

/* コピー（解決文）が主役 */
.work-card__copy {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-3);
}

/* システム名はサブ */
.work-card__title {
  font-size: var(--text-sm);
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color 180ms;
}

.work-card__title::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("/icons/arrow-right-cf75fa6178758c9ba9929b3b33070045.svg") no-repeat center / contain;
  mask: url("/icons/arrow-right-cf75fa6178758c9ba9929b3b33070045.svg") no-repeat center / contain;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.work-card:hover .work-card__title,
.work-card:focus-visible .work-card__title {
  color: var(--accent);
}

.work-card:hover .work-card__title::after,
.work-card:focus-visible .work-card__title::after {
  transform: translateX(3px);
}

/* ============================================================
   13. モーダル
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(28, 35, 51, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--paper-0);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--pad-card-md);
  position: relative;
  transform: translateY(16px);
  transition: transform 220ms ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--ink-300);
  transition: background-color 150ms;
}

.modal__close:hover {
  background-color: var(--paper-100);
  color: var(--ink-900);
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-6);
  padding-right: var(--sp-10);
  line-height: var(--leading-snug);
}

.modal__section {
  margin-bottom: var(--sp-5);
}

.modal__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: var(--sp-2);
  display: block;
}

.modal__text {
  font-size: var(--text-sm);
  color: var(--ink-500);
  line-height: var(--leading-relaxed);
}

.modal__features {
  font-size: var(--text-sm);
  color: var(--ink-500);
  line-height: var(--leading-relaxed);
  list-style: none;
}

.modal__features li {
  display: flex;
  gap: var(--sp-2);
}

.modal__features li::before {
  content: "–";
  color: var(--ink-100);
  flex-shrink: 0;
}

.modal__footer {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-border);
}

.modal__footer .btn {
  width: 100%;
  height: 52px;
}

/* ============================================================
   14. FAQ
   ============================================================ */
.faq__list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-base);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-900);
  line-height: var(--leading-snug);
}

.faq-item__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

/* Q. テキストプレフィックス（SVGアイコンの代替） */
.faq-item__qmark {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  line-height: var(--leading-snug);
}

.faq-item__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ink-300);
  transition: transform 200ms ease;
}

.faq-item__btn[aria-expanded="true"] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease;
}

.faq-item__panel.is-open {
  max-height: 500px;
}

.faq-item__answer {
  font-size: var(--text-base);
  color: var(--ink-500);
  line-height: var(--leading-relaxed);
  padding: 0 0 var(--sp-6) calc(var(--text-lg) + var(--sp-3));
}

@media (max-width: 480px) {
  .faq-item__answer {
    padding-left: 0;
  }
}

/* ============================================================
   15. お問い合わせ
   ============================================================ */
.section--contact {
  background-color: var(--color-bg-dark);
}

.section--contact .section__label {
  color: rgba(255, 255, 255, 0.4);
}

.section--contact .section__title {
  color: #fff;
}

.contact__lead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-normal);
  margin-top: var(--sp-5);
  max-width: 600px;
}

/* 2カラムレイアウト */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
}

@media (min-width: 900px) {
  .contact__layout {
    grid-template-columns: 1fr 1fr;
    gap: clamp(var(--sp-12), 6vw, var(--sp-20));
    align-items: start;
  }
}

/* 安心ポイント */
.contact__assurance {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__assurance-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--leading-snug);
}

.contact__assurance-item::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact__form-wrap {
  max-width: none;
}

.contact__form {
  background-color: var(--paper-0);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--pad-card-sm);
  margin-top: var(--sp-10);
}

@media (min-width: 640px) {
  .contact__form {
    padding: var(--pad-card-lg);
  }
}

.form__group {
  margin-bottom: var(--sp-6);
}

.form__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-2);
}

.form__badge {
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-alpha);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--ink-700);
  background-color: var(--paper-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 150ms, box-shadow 150ms;
  appearance: none;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}

.form__input.is-invalid,
.form__textarea.is-invalid {
  border-color: var(--color-danger);
}

.form__textarea {
  min-height: 148px;
  resize: vertical;
  line-height: var(--leading-normal);
}

.form__error {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-danger);
}

.form__hint {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--ink-300);
}

.form__global-error {
  background-color: rgba(217, 74, 46, 0.06);
  border: 1px solid rgba(217, 74, 46, 0.3);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--color-danger);
  margin-bottom: var(--sp-6);
}

.form__submit {
  width: 100%;
  height: 56px;
  margin-top: var(--sp-2);
  font-size: var(--text-lg);
}

/* ハニーポット */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   15b. お問い合わせ完了ページ
   ============================================================ */
.complete-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--sp-10) var(--container-px);
}

.complete-card {
  background: var(--paper-0);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--pad-card-lg);
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.complete-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--accent-alpha);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.complete-card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: 0;
}

.complete-card__body {
  font-size: var(--text-base);
  color: var(--ink-500);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.complete-card__btn {
  margin-top: var(--sp-3);
  min-width: 180px;
}

/* ============================================================
   16. 会社情報・エラーページ
   ============================================================ */
.company-dl {
  width: 100%;
  border-top: 1px solid var(--color-border);
}

.company-dl__row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .company-dl__row {
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
  }
}

.company-dl__term {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-300);
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .company-dl__term {
    width: 200px;
    padding-top: 2px;
  }
}

.company-dl__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--ink-700);
}

.page-cta {
  background-color: var(--paper-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--pad-card-md);
  text-align: center;
  margin-top: var(--sp-16);
}

.page-cta__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-6);
}

.page-cta--dark {
  background-color: var(--color-bg-dark);
}

.page-cta--dark .page-cta__title {
  color: #fff;
  margin-bottom: var(--sp-3);
}

.page-cta__sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--leading-normal);
  margin-bottom: var(--sp-6);
}

/* 自社情報ページ */
.section--company {
  padding-block-start: clamp(40px, 5vw, 56px);
}

.company-dl__link {
  color: var(--ink-700);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  transition: color 150ms, text-decoration-color 150ms;
}

.company-dl__link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
}

.tech-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-700);
  background: var(--paper-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--sp-1) var(--sp-4);
  letter-spacing: 0.02em;
}

.works-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-6);
  margin-bottom: var(--sp-4);
}

.works-list li {
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: var(--leading-normal);
  padding-left: var(--sp-4);
  position: relative;
}

.works-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-300);
}

.works-list__note {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-alpha);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-3) var(--sp-5);
  line-height: var(--leading-normal);
  margin-top: var(--sp-2);
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 96px 80px;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--paper-200);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.error-page__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--sp-3);
}

.error-page__body {
  font-size: var(--text-sm);
  color: var(--ink-300);
  margin-bottom: var(--sp-8);
  line-height: var(--leading-normal);
}

/* ============================================================
   17. アニメーション（スクロールreveal）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* スタガードreveal: 子要素を順番に登場 */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay:   0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay:  80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 640ms; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* ============================================================
   18. 立体感・ホバー演出
   ============================================================ */

/* Works セクション: 微妙なグラデーションで奥行き */
#works.section--alt {
  background: linear-gradient(180deg, var(--paper-100) 0%, var(--paper-50) 100%);
}

/* Works カード: 強化されたホバー */
.work-card:hover {
  border-color: var(--cat-color);
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 8px 36px rgba(28, 35, 51, 0.14), 0 2px 8px rgba(28, 35, 51, 0.06);
}

.work-card:focus-visible {
  border-color: var(--cat-color);
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-focus);
  outline: none;
}

/* pricing-wrap に奥行き */
.pricing-wrap {
  box-shadow: var(--shadow-md);
}

/* Flow カード強化 */
.flow-card {
  box-shadow: var(--shadow-sm);
}

/* Hero と Problem の境界に微妙なグロー */
.hero + * {
  position: relative;
}
.hero + *::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--paper-200), transparent);
  pointer-events: none;
}

/* pricing-table 行ホバー */
.pricing-table tbody tr {
  transition: background-color 150ms ease;
}

.pricing-table tbody tr:hover td {
  background-color: var(--paper-50);
}

.pricing-table__row--featured:hover td {
  background-color: var(--paper-0);
}

/* compare-table 行ホバー */
.compare-table tbody tr {
  cursor: default;
  transition: none;
}

.compare-table tbody tr:hover .compare-table__val-before {
  background-color: var(--paper-200);
}

.compare-table tbody tr:hover .compare-table__val-after {
  background-color: var(--paper-50);
}

/* FAQ: ホバーで質問文が右にスライド */
.faq-item__btn {
  transition: padding-left 160ms ease;
}

.faq-item__btn:hover {
  padding-left: var(--sp-3);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__headline-accent {
    opacity: 1;
    transition: none;
  }

  .modal,
  .modal-overlay,
  .faq-item__chevron,
  .faq-item__panel,
  .faq-item__btn,
  .text-link::after,
  .work-card,
  .work-card__img,
  .flow-card,
  .btn {
    transition: none;
  }

  .btn:hover,
  .work-card:hover,
  .work-card:focus-visible,
  .flow-card:hover {
    transform: translateY(0) scale(1);
  }

  .work-card:hover .work-card__img,
  .work-card:focus-visible .work-card__img {
    transform: none;
  }

  .faq-item__btn:hover {
    padding-left: 0;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   19. デスクトップ 中央寄せ補正（料金プラン・導入の流れ・開発事例）
   ============================================================ */
@media (min-width: 768px) {
  #pricing .section__head,
  #flow .section__head,
  #works .section__head {
    text-align: center;
  }

  #pricing .section__lead,
  #flow .section__lead,
  #works .section__lead {
    margin-inline: auto;
  }

  #pricing .pricing__footnote {
    text-align: center;
  }
}
