/*
 * Eightdoor Theme — main.css
 *
 * サイト共通スタイル。
 * 各ページテンプレートの <style> タグの内容をここに集約してください。
 * WordPress の wp_enqueue_style() によって全ページで自動的に読み込まれます。
 */

/* ── Reset & Base ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
    body {
      font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
      color: oklch(14% 0.012 255);
      background-color: #fff;
      line-height: 1.8;
      overflow-x: hidden;
    }
    body.nav-mobile-open { overflow: hidden; }
    main,
    .site-header,
    .site-footer {
      max-width: 100%;
    }
    h1, h2, h3 {
      font-family: "Noto Serif JP", Georgia, serif;
      line-height: 1.2;
      color: oklch(14% 0.012 255);
      letter-spacing: -0.01em;
    }
    a { color: oklch(50.5% 0.195 255); text-decoration: none; transition: color 0.15s ease; }
    a:hover { color: oklch(43% 0.195 255); }
    img, svg { display: block; max-width: 100%; }

    /* ── Layout ── */
    .site-container {
      width: 100%;
      max-width: 1100px;
      margin-left: auto;
      margin-right: auto;
      padding-left: 2rem;
      padding-right: 2rem;
    }

    /* ── Navigation ── */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: #fff;
      border-bottom: 1px solid transparent;
      transition: border-color 0.15s ease;
      overflow-x: clip;
    }
    .site-header.scrolled { border-bottom-color: oklch(91.5% 0.006 240); }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      gap: 1.5rem;
    }
    .nav-logo {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      max-width: min(100%, 12rem);
      color: oklch(14% 0.012 255);
      font-family: Inter, sans-serif;
      font-weight: 600;
      font-size: 1.125rem;
      letter-spacing: 0.04em;
      line-height: 1;
      text-decoration: none;
    }
    .nav-links {
      display: none;
      align-items: center;
      gap: 0.25rem;
      margin-left: auto;
      justify-content: flex-end;
    }
    .nav-link {
      padding: 0.5rem 0.75rem;
      font-size: 0.9375rem;
      font-weight: 500;
      color: oklch(14% 0.012 255);
      text-decoration: none;
      border-radius: 0.375rem;
      transition: background-color 0.15s ease;
    }
    .nav-link:hover { background-color: oklch(97.3% 0.006 240); color: oklch(14% 0.012 255); }
    .nav-services-group { position: relative; }
    .nav-services-toggle {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.5rem 0.75rem;
      font-size: 0.9375rem;
      font-weight: 500;
      color: oklch(14% 0.012 255);
      background: none;
      border: none;
      border-radius: 0.375rem;
      cursor: pointer;
      transition: background-color 0.15s ease;
    }
    .nav-services-toggle:hover { background-color: oklch(97.3% 0.006 240); }
    .nav-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: #fff;
      border: 1px solid oklch(91.5% 0.006 240);
      border-radius: 0.375rem;
      box-shadow: 0 4px 16px oklch(0% 0 0 / 0.08);
      min-width: 200px;
      padding: 0.5rem 0;
      z-index: 100;
    }
    .nav-services-group.is-open .nav-dropdown { display: block; }
    .nav-dropdown a {
      display: block;
      padding: 0.625rem 1rem;
      font-size: 0.875rem;
      color: oklch(14% 0.012 255);
      text-decoration: none;
      transition: background-color 0.15s ease;
    }
    .nav-dropdown a:hover { background-color: oklch(97.3% 0.006 240); }
    .nav-cta { display: none; }
    .nav-mobile-toggle {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      width: 44px;
      height: 44px;
      padding: 0;
      border: none;
      background: none;
      cursor: pointer;
      flex-shrink: 0;
      border-radius: 0.375rem;
      transition: background-color 0.15s ease;
    }
    .nav-mobile-toggle:hover { background-color: oklch(97.3% 0.006 240); }
    .nav-mobile-toggle-bar {
      display: block;
      width: 20px;
      height: 2px;
      background-color: oklch(14% 0.012 255);
      transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .site-header.is-mobile-nav-open .nav-mobile-toggle-bar:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .site-header.is-mobile-nav-open .nav-mobile-toggle-bar:nth-child(2) {
      opacity: 0;
    }
    .site-header.is-mobile-nav-open .nav-mobile-toggle-bar:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }
    .nav-mobile-menu {
      display: none;
      flex-direction: column;
      border-top: 1px solid oklch(91.5% 0.006 240);
      padding: 0.25rem 0 1rem;
      background: #fff;
    }
    .nav-mobile-menu:not([hidden]) { display: flex; }
    .nav-mobile-link {
      display: block;
      padding: 0.875rem 0;
      font-size: 0.9375rem;
      font-weight: 500;
      color: oklch(14% 0.012 255);
      text-decoration: none;
      border-bottom: 1px solid oklch(91.5% 0.006 240);
      transition: color 0.15s ease, background-color 0.15s ease;
    }
    .nav-mobile-link:hover { color: oklch(50.5% 0.195 255); }
    .nav-mobile-link--cta {
      margin-top: 0.75rem;
      padding: 0.75rem 1rem;
      border: none;
      border-radius: 0.375rem;
      background-color: oklch(50.5% 0.195 255);
      color: #fff;
      text-align: center;
    }
    .nav-mobile-link--cta:hover {
      background-color: oklch(43% 0.195 255);
      color: #fff;
    }
    @media (max-width: 1023px) {
      .site-header .nav-links,
      .site-header .nav-cta {
        display: none !important;
      }
      .site-header .nav-dropdown {
        display: none !important;
      }
    }
    @media (min-width: 1024px) {
      .nav-links { display: flex; }
      .nav-cta { display: flex; align-items: center; }
      .nav-mobile-toggle { display: none; }
      .nav-mobile-menu { display: none !important; }
    }

    /* ── Buttons ── */
    .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.875rem 2rem;
      background-color: oklch(50.5% 0.195 255);
      color: #fff;
      font-family: "Noto Sans JP", sans-serif;
      font-size: 0.9375rem;
      font-weight: 600;
      border-radius: 0.375rem;
      border: none;
      transition: background-color 0.15s ease, box-shadow 0.15s ease;
      min-height: 48px;
      white-space: nowrap;
      letter-spacing: 0.01em;
      text-decoration: none;
      cursor: pointer;
    }
    .btn-primary:hover {
      background-color: oklch(43% 0.195 255);
      box-shadow: 0 2px 8px oklch(50.5% 0.195 255 / 0.25);
      color: #fff;
    }
    .btn-primary-sm {
      padding: 0.5rem 1.25rem;
      font-size: 0.875rem;
      min-height: 40px;
    }
    .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.875rem 2rem;
      background-color: transparent;
      color: oklch(50.5% 0.195 255);
      font-size: 0.9375rem;
      font-weight: 600;
      border-radius: 0.375rem;
      border: 1.5px solid oklch(50.5% 0.195 255);
      transition: background-color 0.15s ease, color 0.15s ease;
      min-height: 48px;
      text-decoration: none;
      cursor: pointer;
    }
    .btn-secondary:hover { background-color: oklch(92.5% 0.04 255); color: oklch(43% 0.195 255); }

    /* ── Section label ── */
    .section-label,
    .eyebrow {
      font-family: "DM Sans", sans-serif;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: oklch(50.5% 0.195 255);
      display: block;
      margin-bottom: 1.25rem;
    }

    /* ── Section padding ── */
    .section-padding {
      padding-top: 5.5rem;
      padding-bottom: 5.5rem;
    }
    @media (min-width: 1024px) {
      .section-padding { padding-top: 8rem; padding-bottom: 8rem; }
    }

    /* ── Hero ── */
    :root {
      --header-height: 64px;
    }
    .hero-padding {
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-sizing: border-box;
      padding-top: 5.5rem;
      padding-bottom: 3.5rem;
    }
    .hero--large { min-height: 65vh; }
    @media (min-width: 1024px) {
      .hero-padding { padding-top: 8rem; padding-bottom: 4rem; }
    }

    /* ── Typography ── */
    .display-heading {
      font-family: "Noto Serif JP", serif;
      font-size: 1.75rem;
      font-weight: 700;
      color: oklch(14% 0.012 255);
      line-height: 1.15;
      letter-spacing: -0.02em;
    }
    @media (min-width: 1024px) { .display-heading { font-size: 3rem; } }

    .section-heading {
      font-family: "Noto Serif JP", serif;
      font-size: 1.625rem;
      font-weight: 700;
      color: oklch(14% 0.012 255);
      line-height: 1.25;
      margin-bottom: 1.25rem;
    }
    @media (min-width: 1024px) { .section-heading { font-size: 2.25rem; } }

    .sub-heading {
      font-family: "Noto Serif JP", serif;
      font-size: 1.25rem;
      font-weight: 700;
      color: oklch(14% 0.012 255);
      line-height: 1.3;
    }
    @media (min-width: 1024px) { .sub-heading { font-size: 1.625rem; } }

    .lead-text {
      font-size: 1rem;
      color: oklch(43% 0.012 255);
      line-height: 1.85;
      max-width: 45rem;
    }
    @media (min-width: 1024px) { .lead-text { font-size: 1.125rem; } }

    .prose-text {
      font-size: 0.9375rem;
      color: oklch(43% 0.012 255);
      line-height: 1.85;
    }
    @media (min-width: 1024px) { .prose-text { font-size: 1rem; } }

    /* ── Divider & lists ── */
    :root {
      --border-soft: oklch(95.5% 0.004 240);
      --border-default: oklch(91.5% 0.006 240);
    }

    .section-spaced {
      background-color: #fff;
      padding-top: 6rem;
      padding-bottom: 6rem;
    }
    @media (max-width: 767px) {
      .section-spaced {
        padding-top: 4rem;
        padding-bottom: 4rem;
      }
    }

    .section-divider {
      display: none;
    }

    .stack-list {
      display: flex;
      flex-direction: column;
      gap: 2.5rem;
    }
    .stack-list--wide {
      gap: 2.75rem;
    }
    .stack-list--cases {
      gap: 3rem;
    }
    .stack-item {
      padding: 0;
    }
    .stack-item + .stack-item {
      border-top: none;
    }

    .challenge-list {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    .challenge-item {
      padding-bottom: 0;
      border-bottom: none;
    }

    .menu-list {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }
    .menu-item {
      padding: 0;
      border: none;
    }

    .content-aside {
      margin-top: 2.5rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border-soft);
      max-width: 54rem;
    }

    .page-service-ai main > section[style*="border-top"],
    .page-service-testing main > section[style*="border-top"],
    .page-service-consulting main > section[style*="border-top"] {
      border-top: none !important;
    }

    @media (max-width: 767px) {
      .content-aside {
        border-color: oklch(96.5% 0.003 240);
      }
      .faq-item {
        border-color: oklch(94% 0.004 240);
      }
      .stack-list {
        gap: 2rem;
      }
      .stack-list--wide {
        gap: 2.25rem;
      }
      .stack-list--cases {
        gap: 2.5rem;
      }
    }

    /* ── Footer ── */
    .site-footer {
      background-color: oklch(14% 0.012 255);
      color: oklch(55% 0.01 255);
    }
    .footer-inner {
      padding-top: 3rem;
      padding-bottom: 3rem;
    }
    @media (min-width: 1024px) {
      .footer-inner { padding-top: 4rem; padding-bottom: 4rem; }
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    @media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
    @media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; } }
    .footer-logo {
      display: inline-flex;
      align-items: center;
      max-width: min(100%, 12rem);
      color: #fff;
      font-family: Inter, sans-serif;
      font-weight: 550;
      font-size: 0.9375rem;
      letter-spacing: 0.04em;
      line-height: 1;
      text-decoration: none;
    }

    /* Logo: text now; swap in img.logo-image when ready */
    .logo-text {
      display: inline;
    }
    .logo-image {
      display: block;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      flex-shrink: 0;
    }
    .nav-logo .logo-image {
      height: clamp(1.75rem, 4vw, 2.25rem); /* 28–36px */
    }
    .footer-logo .logo-image {
      height: clamp(1.5rem, 3.5vw, 2rem); /* 24–32px */
    }
    .nav-logo:has(.logo-image) .logo-text,
    .footer-logo:has(.logo-image) .logo-text {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .nav-logo:has(.logo-image),
    .footer-logo:has(.logo-image) {
      position: relative;
    }
    .footer-col-title {
      font-family: "DM Sans", sans-serif;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #fff;
      margin-bottom: 1rem;
    }
    .footer-link {
      display: block;
      font-size: 0.875rem;
      color: oklch(50% 0.01 255);
      text-decoration: none;
      transition: color 0.15s ease;
      margin-bottom: 0.625rem;
    }
    .footer-link:hover { color: #fff; }
    .footer-bottom {
      margin-top: 2.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid oklch(22% 0.01 255);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }
    @media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
    .footer-copyright {
      font-size: 0.75rem;
      color: oklch(38% 0.01 255);
    }
    .footer-policy-link {
      font-size: 0.75rem;
      color: oklch(38% 0.01 255);
      text-decoration: none;
      transition: color 0.15s ease;
    }
    .footer-policy-link:hover { color: #fff; }
    .footer-legal-links {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 0.75rem 1.25rem;
    }
    @media (min-width: 640px) {
      .footer-legal-links { justify-content: flex-end; }
    }

    /* Management site */
    .management-site-intro {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 2.5rem;
    }
    .management-site-list {
      display: flex;
      flex-direction: column;
      gap: 0.875rem;
      max-width: 28rem;
      margin: 0 auto;
    }
    .management-site-link {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.875rem 1.5rem;
      font-size: 0.9375rem;
      font-weight: 500;
      color: oklch(14% 0.012 255);
      background: #fff;
      border: 1px solid oklch(91.5% 0.006 240);
      border-radius: 9999px;
      text-decoration: none;
      transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .management-site-link:hover {
      background-color: oklch(97.3% 0.006 240);
      border-color: oklch(80% 0.006 240);
      color: oklch(14% 0.012 255);
    }

    /* ── CTA Section ── */
    .cta-section {
      padding: 5rem 1.5rem;
      text-align: center;
    }
    .cta-inner { max-width: 760px; margin: 0 auto; }
    .cta-heading {
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      margin-bottom: 1.25rem;
      line-height: 1.4;
      color: oklch(14% 0.012 255);
    }
    .cta-body {
      font-size: 1rem;
      line-height: 1.8;
      color: #555;
      margin-bottom: 2rem;
    }

    /* ── Utilities ── */
    .bg-white { background-color: #fff; }
    .mb-2 { margin-bottom: 0.5rem; }
    .mb-4 { margin-bottom: 1rem; }
    .mb-6 { margin-bottom: 1.5rem; }
    .mb-8 { margin-bottom: 2rem; }
    .mb-10 { margin-bottom: 2.5rem; }
    .hero--small { padding-top: 4rem; padding-bottom: 3rem; }
    @media (min-width: 1024px) {
      .hero--small { padding-top: 5rem; padding-bottom: 4rem; }
    }

    @media (max-width: 767px) {
      /* 大ヒーロー: 65vh はスクロール中も高さが変わりにくい（dvh/svh は iOS でジャンプの原因） */
      .hero-padding.hero--large {
        padding-top: 5.5rem;
        padding-bottom: 3.5rem;
      }
      .hero--small {
        padding-top: 4rem;
        padding-bottom: 3rem;
      }
      .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
      }
    }

    /* ── Service page ── */
    .grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
    @media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
    .service-card {
      background-color: oklch(97.5% 0.004 255);
      border: 1px solid oklch(91.5% 0.006 240);
      border-radius: 0.5rem;
      padding: 1.5rem;
    }
    .step-number {
      font-family: "DM Sans", sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      color: oklch(50.5% 0.195 255);
      line-height: 1;
      min-width: 2rem;
    }

    /* ── FAQ ── */
    .faq-item { border-bottom: 1px solid oklch(91.5% 0.006 240); }
    .faq-question {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      padding: 1.25rem 0;
      background: none;
      border: none;
      text-align: left;
      font-family: "Noto Sans JP", sans-serif;
      font-size: 0.9375rem;
      font-weight: 600;
      color: oklch(14% 0.012 255);
      cursor: pointer;
      min-height: 44px;
      transition: color 0.15s ease;
    }
    .faq-question:hover { color: oklch(50.5% 0.195 255); }
    .faq-answer {
      padding-bottom: 1.25rem;
      font-size: 0.9375rem;
      color: oklch(43% 0.012 255);
      line-height: 1.85;
      display: none;
    }
    .faq-item.open .faq-answer { display: block; }
    .faq-icon { flex-shrink: 0; color: oklch(67% 0.01 255); transition: transform 0.2s ease; }
    .faq-item.open .faq-icon { transform: rotate(180deg); color: oklch(50.5% 0.195 255); }

    /* ── Company page ── */
    .company-info-row {
      display: grid;
      grid-template-columns: 8rem 1fr;
      gap: 0.75rem 1.25rem;
      align-items: start;
      padding: 1.375rem 0;
      border-bottom: 1px solid oklch(91.5% 0.006 240);
    }
    .company-info-label {
      font-size: 0.8125rem;
      font-weight: 600;
      color: oklch(55% 0.01 255);
      line-height: 1.6;
    }
    .company-info-value {
      font-size: 0.9375rem;
      color: oklch(18% 0.01 255);
      line-height: 1.85;
      margin: 0;
    }
    @media (max-width: 600px) {
      .company-info-row { grid-template-columns: 1fr; gap: 0.375rem; }
      .company-info-label { margin-bottom: 0.125rem; }
    }

    /* ── Cases list ── */
    .cases-inner {
      max-width: 54rem;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
    .page-cases .cases-inner .lead-text {
      max-width: none;
    }
    .cases-list-section {
      padding-top: 2rem;
      padding-bottom: 6rem;
    }
    @media (min-width: 1024px) {
      .cases-list-section { padding-bottom: 8rem; }
    }
    .case-card {
      padding-top: 2.5rem;
      padding-bottom: 2.5rem;
      border-bottom: 1px solid var(--border-default);
    }
    .case-card:first-child {
      border-top: 1px solid var(--border-default);
    }
    .case-card__meta {
      display: flex;
      gap: 1.5rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      align-items: center;
    }
    .case-card__meta .section-label {
      margin-bottom: 0;
    }
    .case-card__tag {
      font-size: 0.75rem;
      color: oklch(55% 0.01 255);
    }
    .case-card__title {
      margin-bottom: 1.5rem;
    }
    .case-card__excerpt {
      margin-bottom: 1.5rem;
    }
    .case-card__link {
      font-size: 0.8125rem;
      color: oklch(50.5% 0.195 255);
      text-decoration: none;
    }
    .case-card__link:hover {
      color: oklch(43% 0.195 255);
    }
    @media (max-width: 767px) {
      .page-cases .site-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
      }
      .page-cases .cases-inner,
      .page-cases .cases-inner .lead-text,
      .page-cases .case-card,
      .page-cases .case-card__title,
      .page-cases .case-card__excerpt {
        width: 100%;
        max-width: none;
      }
      .case-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
      }
      .case-card__title {
        font-size: 1.125rem;
        line-height: 1.45;
      }
      .cases-intro,
      .case-card__excerpt,
      .case-card__title {
        text-wrap: auto;
      }
    }

    /* ── Contact form (fallback) ── */
    .form-input {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1px solid oklch(91.5% 0.006 240);
      border-radius: 0;
      font-size: 1rem;
      color: oklch(14% 0.012 255);
      background: white;
      outline: none;
      font-family: "Noto Sans JP", sans-serif;
      transition: border-color 0.15s ease;
    }
    .form-input:focus { border-color: oklch(14% 0.012 255); }
    .form-label { font-size: 0.875rem; font-weight: 500; color: oklch(14% 0.012 255); }
    .form-required { color: oklch(50.5% 0.195 255); margin-left: 0.375rem; font-size: 0.75rem; font-weight: 400; }
    .form-optional { color: oklch(55% 0.01 255); margin-left: 0.375rem; font-size: 0.75rem; font-weight: 400; }

    /* ── Case detail ── */
    .case-section { background-color: #fff; }
    .case-header { padding-top: 5rem; padding-bottom: 3rem; }
    @media (min-width: 1024px) { .case-header { padding-top: 7rem; padding-bottom: 3.5rem; } }
    .case-header .eyebrow { font-size: 0.75rem; }
    .case-header .display-heading {
      font-size: clamp(1.5rem, 5vw, 2.25rem);
      line-height: 1.2;
    }
    .case-header-title {
      max-width: 54rem;
      width: 100%;
    }
    @media (min-width: 1024px) {
      .case-header .display-heading { font-size: 3rem; }
    }
    .case-body {
      padding-top: 2.5rem;
      padding-bottom: 5rem;
      border-top: 1px solid oklch(91.5% 0.006 240);
    }
    .case-content { max-width: 54rem; margin: 0 auto; }
    .case-content .prose-text {
      text-wrap: pretty;
    }
    @media (max-width: 767px) {
      .case-content .prose-text br {
        display: none;
      }
    }
    .case-bullet-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.625rem;
      text-wrap: pretty;
    }
    .case-bullet-list li {
      line-height: 1.85;
    }
    .case-block {
      border-top: 1px solid oklch(91.5% 0.006 240);
      padding-top: 2rem;
      margin-bottom: 2.5rem;
    }
    .case-content > .case-block:first-child {
      border-top: none;
      padding-top: 0;
    }
    .case-block-label {
      font-size: 0.75rem;
      font-weight: 600;
      font-family: "DM Sans", sans-serif;
      color: oklch(67% 0.01 255);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }
    .metric-item {
      padding: 1rem 1.25rem;
      border-left: 3px solid oklch(50.5% 0.195 255);
      background-color: oklch(97.5% 0.004 255);
      margin-bottom: 0.75rem;
    }
    .metric-label {
      font-size: 0.8125rem;
      color: oklch(43% 0.012 255);
      margin-bottom: 0.5rem;
      font-weight: 500;
    }
    .metric-before {
      font-size: 0.875rem;
      color: oklch(55% 0.01 255);
      text-decoration: line-through;
    }
    .metric-arrow { font-size: 0.8125rem; color: oklch(55% 0.01 255); }
    .metric-after {
      font-size: 0.9375rem;
      color: oklch(50.5% 0.195 255);
      font-weight: 600;
    }
    .case-nav {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding-top: 2.5rem;
      margin-top: 2.5rem;
      border-top: 1px solid oklch(91.5% 0.006 240);
      gap: 1.5rem;
    }
    .case-nav-item { flex: 1; }
    .case-nav-item--right { text-align: right; }
    .case-nav-label {
      font-size: 0.75rem;
      color: oklch(55% 0.01 255);
      display: block;
      margin-bottom: 0.35rem;
    }
    .case-nav-title {
      font-size: 0.9375rem;
      color: oklch(14% 0.012 255);
      line-height: 1.5;
      display: block;
      text-decoration: none;
    }
    .case-nav-title:hover { color: oklch(50.5% 0.195 255); }

    @media (max-width: 767px) {
      body[class*="page-case-"] .site-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
      }

      body[class*="page-case-"] .case-header-title {
        max-width: none;
      }

      body[class*="page-case-"] .case-content {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
      }

      body[class*="page-case-"] .case-content .prose-text,
      body[class*="page-case-"] .case-bullet-list {
        max-width: none;
        width: 100%;
        text-wrap: auto;
      }

      body[class*="page-case-"] .case-header .display-heading {
        text-wrap: auto;
      }

      body[class*="page-case-"] .metric-item,
      body[class*="page-case-"] .case-nav,
      body[class*="page-case-"] .case-nav-title {
        max-width: 100%;
      }

      body[class*="page-case-"] .case-nav {
        flex-wrap: wrap;
      }
    }
