/* ==========================================================================
   Swooo H design system — pages
   version 2026-05-26
   --------------------------------------------------------------------------
   1〜2 ファイルだけで使われるページ固有スタイル。
   base は swooo-h.css 側。両ファイルを併読する前提。
   ========================================================================== */

/* ==========================================================================
   TOP (27-g-refined) — HERO / WHY / SVC / CASES (main) / INSIGHTS / NEWS
   ========================================================================== */

/* ---------- HERO (TOP 専用：中央 1 カラム / FV) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  padding: clamp(48px, 8vh, 96px) 0 clamp(40px, 6vh, 72px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: center;
}
.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;
  background-position: 14px 14px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 75%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 124, 58, 0.10) 0%, rgba(166, 124, 58, 0) 70%);
  pointer-events: none;
}
.hero__editorial {
  position: absolute;
  top: 96px; left: 32px;
  z-index: 1;
  writing-mode: vertical-rl;
  font-family: "Fraunces", serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--sub-2);
  display: flex; align-items: center; gap: 14px;
}
.hero__editorial::after {
  content: ""; width: 1px; height: 60px;
  background: var(--line-2);
}
@media (max-width: 1100px) { .hero__editorial { display: none; } }
.hero__corner {
  position: absolute;
  bottom: 48px; right: 56px;
  width: 96px; height: 96px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) { .hero__corner { display: none; } }
.hero__inner {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
  width: 100%;
}
.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);
  text-transform: none;
}
.hero__kicker::before {
  content: ""; width: 36px; height: 1px;
  background: var(--brass); display: inline-block;
}
.hero__kicker .code { color: var(--sub-2); font-weight: 400; letter-spacing: 0.1em; }
.hero__title {
  font-family: "Noto Serif JP", "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}
.hero__title .line { display: block; white-space: nowrap; }
@media (max-width: 720px) {
  /* auto-phrase は iOS Safari 非対応で語中改行になる。keep-all + 文中の <wbr> で改行位置を制御 */
  .hero__title .line { white-space: normal; word-break: keep-all; }
}
.hero__lead {
  max-width: 100%;
  margin: 0 auto var(--sp-5);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 2;
  color: var(--sub);
}
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__lead .lead-line { display: block; white-space: nowrap; }
@media (max-width: 900px) {
  .hero__lead .lead-line { white-space: normal; word-break: keep-all; }
}
/* 日本語の文節境界で折り返し、語中・助詞での分断（例:「整理から」→「整理か/ら」、「条件」→「条/件」）を全幅で防ぐ */
.sec__lead, .sec__title, .page-hero__lead, .page-hero__title, .page-hero__kicker, .final__lead, .final__title,
.why-card__head, .svc-card__head, .case__title, .case__name, .step__head, .deli__head,
.article-card__title, .work-card__title, .faq-item__q, .faq-item__a,
.phase__name, .phase__body, .phase__list li,
.why-card__body, .svc-card__body, .case__body, .step__body, .deli__body { word-break: auto-phrase; }
.hero__cta {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  margin-bottom: var(--sp-5);
  justify-content: center;
}
.hero__cta-note {
  font-size: 12px; color: var(--sub-2);
  letter-spacing: 0.04em; margin-bottom: var(--sp-5);
}
.hero__cta-note a {
  color: var(--ink); border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px; margin-left: 6px;
  transition: border-color 200ms;
}
.hero__cta-note a:hover { border-color: var(--ink); }

/* ---------- COUNTER (TOP + About) ---------- */
.counter {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  padding-top: var(--sp-5);
  margin-top: clamp(28px, 4vh, 56px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  position: relative; z-index: 1;
}
@media (max-width: 800px) { .counter { grid-template-columns: repeat(2, 1fr); } }
.counter__cell {
  padding-left: var(--sp-3);
  border-left: 1px solid var(--line);
  text-align: left;
}
.counter__cell:first-child { border-left: none; padding-left: 0; }
/* SP は 2 列なので左列（3 番目＝50社+ 等）の縦線も消す */
@media (max-width: 800px) {
  .counter__cell:nth-child(odd) { border-left: none; padding-left: 0; }
}
.counter__num {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  line-height: 1; color: var(--ink);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.counter__num .suffix {
  font-size: 0.48em; font-weight: 500;
  color: var(--brass); margin-left: 6px;
  font-family: "Noto Sans JP", sans-serif;
  font-variation-settings: normal;
  vertical-align: 0.15em;
  letter-spacing: 0.04em;
}
.counter__label {
  font-size: 12px; color: var(--sub);
  letter-spacing: 0.04em;
  line-height: 1.55;
}
.counter__sub {
  font-size: 10px; color: var(--sub-2); letter-spacing: 0.08em;
  margin-top: 2px; text-transform: uppercase;
}

/* ---------- WHY (TOP 反転章) ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--ink);
  padding: var(--sp-5) var(--sp-4) var(--sp-5);
  position: relative;
  transition: background 400ms;
}
.why-card:hover { background: #1A1A1F; }
.why-card__num {
  font-family: "Fraunces", serif;
  font-size: 12px; font-weight: 400; font-style: italic;
  color: var(--brass-2);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
  display: flex; align-items: center; gap: 12px;
}
.why-card__num::after {
  content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.12);
}
.why-card__bignum {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 300; line-height: 1.05;
  color: var(--paper);
  font-variation-settings: "SOFT" 100;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.why-card__bignum .suffix {
  font-size: 0.36em; color: var(--brass-2);
  font-family: "Noto Sans JP", sans-serif;
  margin-left: 6px; vertical-align: 0.35em;
  font-variation-settings: normal;
}
.why-card__head {
  font-family: "Noto Serif JP", serif;
  font-size: 18px; font-weight: 700;
  color: var(--paper); margin-bottom: var(--sp-3);
  line-height: 1.55;
}
.why-card__body {
  font-size: 13px; color: rgba(250, 250, 248, 0.7);
  line-height: 1.95;
}
.why-chips {
  margin-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  align-items: center;
}
.why-chips__label {
  font-size: 10px; color: var(--brass-2);
  letter-spacing: 0.2em; margin-right: var(--sp-3);
}
.chip {
  font-size: 11px; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(250,250,248,0.78);
  letter-spacing: 0.04em;
}

/* ---------- SERVICES (TOP) ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--sp-5) var(--sp-4) var(--sp-5);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.svc-card__num {
  font-family: "Fraunces", serif;
  font-size: 12px; font-style: italic; color: var(--sub-2);
  letter-spacing: 0.06em; margin-bottom: var(--sp-3);
}
.svc-card__head {
  font-family: "Noto Serif JP", serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
  line-height: 1.4;
}
.svc-card__head .verb {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--sub-2); font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.svc-card__body {
  font-size: 13.5px; color: var(--sub);
  line-height: 1.95;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.svc-card__tier {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-3);
}
.svc-card__tier li {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--sub);
}
.svc-card__tier li:last-child { border-bottom: none; }
.svc-card__tier strong { color: var(--ink); font-weight: 600; }
.svc-card__tier .price {
  color: var(--brass); font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: "Fraunces", "Noto Serif JP", serif;
  letter-spacing: 0;
  white-space: nowrap; /* 「500〜2,000万円」が「万/円」等で分断されるのを防ぐ。ラベルは 1fr 側で折返す */
}
.svc-card__tier--single li {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; align-items: baseline;
  padding: 12px 0;
  border-bottom: none;
}
.svc-card__tier--single .price { font-size: 16px; }
.svc-card__points {
  list-style: none;
  margin-top: 4px;
  padding: 0;
}
.svc-card__points li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.7;
}
.svc-card__points li::before {
  content: "—";
  position: absolute; left: 0; top: 6px;
  color: var(--brass);
  font-family: "Fraunces", serif;
}
.svc-card__link {
  margin-top: auto; padding-top: var(--sp-4);
  font-size: 13px; color: var(--ink); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-3);
}
.svc-card__link::after {
  content: "→"; transition: transform 250ms;
}
.svc-card:hover .svc-card__link::after { transform: translateX(4px); }
/* カード全体をクリック可能に（stretched link。矢印は ::after なので ::before を使う） */
.svc-card { cursor: pointer; }
.svc-card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- CASES (TOP: 1枚目強調) ---------- */
/* cases-grid__main の name/head 拡大は撤回（featured でもコンテンツ縦位置を揃える：CLAUDE.md デザイン原則）。強調が要る場合は overlay/枠で行う。 */

/* ---------- CTABAR (TOP の反転バリアント) ---------- */
.ctabar--ink {
  background: var(--ink);
  border-color: rgba(255,255,255,0.08);
  color: var(--paper);
}
.ctabar--ink .ctabar__kicker { color: var(--brass-2); }
.ctabar--ink .ctabar__head { color: var(--paper); }
.ctabar--ink .ctabar__head em { color: var(--brass-2); }
.ctabar--ink .btn--solid { background: var(--paper); color: var(--ink); }
.ctabar--ink .btn--solid:hover { background: var(--brass-2); }

/* ---------- INSIGHTS / NEWS (TOP) ---------- */
.insights {
  background: var(--paper-2);
  padding: var(--sp-5) 0;
}
.insights-block + .insights-block {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.insights-block__head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: var(--sp-4);
}
.insights-block__en {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-style: italic; font-weight: 400;
  color: var(--ink);
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.005em;
}
.insights-block__ja {
  font-size: 13px; font-weight: 600;
  color: var(--sub-2);
  letter-spacing: 0.08em;
}
.insights-block__more {
  margin-left: auto;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
}
.insights-block__more::after { content: " →"; color: var(--brass); margin-left: 6px; }

.insights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .insights-grid { grid-template-columns: 1fr; } }

/* ブログ一覧などのページネーション（the_posts_pagination 出力。class は archive-pagination） */
.archive-pagination, .pagination { margin-top: var(--sp-6); }
.archive-pagination .nav-links, .pagination .nav-links {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px;
}
.archive-pagination .page-numbers, .pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 2px;
  color: var(--ink); font-family: "Fraunces", serif; font-size: 15px;
  background: var(--paper);
  text-decoration: none; transition: border-color 200ms, background 200ms, color 200ms;
}
.archive-pagination .page-numbers:hover, .pagination .page-numbers:hover {
  border-color: var(--ink); background: var(--paper-2);
}
.archive-pagination .page-numbers.current, .pagination .page-numbers.current {
  background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600;
}
.archive-pagination .page-numbers.dots, .pagination .page-numbers.dots {
  border-color: transparent; background: transparent; min-width: 24px; padding: 0;
}
.archive-pagination .page-numbers.prev, .archive-pagination .page-numbers.next,
.pagination .page-numbers.prev, .pagination .page-numbers.next {
  font-family: "Noto Sans JP", sans-serif; font-size: 13px; font-weight: 600; gap: 6px;
}
.insights-grid--scroll {
  display: flex; overflow-x: auto;
  gap: var(--sp-4);
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  margin-right: calc(var(--pad) * -1);
  padding-right: var(--pad);
  scrollbar-width: thin;
  scrollbar-color: var(--brass-2) transparent;
}
.insights-grid--scroll::-webkit-scrollbar { height: 6px; }
.insights-grid--scroll::-webkit-scrollbar-track { background: transparent; }
.insights-grid--scroll::-webkit-scrollbar-thumb { background: var(--brass-2); border-radius: 3px; }
.insights-grid--scroll > .article-card {
  flex: 0 0 calc((100% - var(--sp-4) * 2) / 3);
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .insights-grid--scroll > .article-card { flex: 0 0 80%; }
}

.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color 280ms, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  overflow: hidden;
}
.article-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.article-card__thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 28% 30%, rgba(166, 124, 58, 0.22), transparent 55%),
    linear-gradient(135deg, #161616 0%, #232323 60%, #1a1a1a 100%);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.article-card__thumb::after {
  content: "Swooo";
  position: absolute; bottom: 14px; right: 16px;
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: rgba(250, 250, 248, 0.35);
  font-variation-settings: "SOFT" 100;
  line-height: 1;
  letter-spacing: -0.02em;
  z-index: 2;
}
/* mark 数字（01/02/03 等）が data-mark で指定された場合は Swooo を上書き */
.article-card__thumb[data-mark]::after {
  content: attr(data-mark);
  font-style: normal;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 248, 0.18);
  font-size: clamp(28px, 3vw, 38px);
}
.article-card__body {
  padding: var(--sp-4);
  flex: 1;
  display: flex; flex-direction: column;
}
.article-card__meta {
  font-size: 11px;
  color: var(--sub-2);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
  display: flex; gap: 12px; align-items: center;
}
.article-card__cat {
  color: var(--sub);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-card__date {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  color: var(--sub-2);
}
.article-card__title {
  font-family: "Noto Serif JP", serif;
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  line-height: 1.65;
  flex: 1;
  /* 全カードのタイトル領域を 3 行に制限して Y 軸を揃える */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-card--ranked .article-card__thumb::after {
  content: attr(data-rank);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 400;
  color: var(--brass);
  opacity: 0.7;
  font-style: italic;
  bottom: 6px; right: 14px;
}
/* 実アイキャッチがある場合の表示。プレースホルダの大ナンバーは隠し、
   カテゴリラベルだけチップとして残す。ランキングは画像上に残す（編集的演出）。 */
.article-card__thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.article-card__thumb--has-image { background: none; }
.article-card__thumb--has-image::after { display: none; }
.article-card__thumb[data-mark].article-card__thumb--has-image::after { display: none; }
/* 画像 thumb 上のカテゴリチップは body meta と重複するため非表示 */
.article-card__thumb--has-image::before { display: none; }
.article-card--ranked .article-card__thumb--has-image::after {
  display: block;
  color: var(--paper);
  opacity: 0.95;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55), 0 0 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.news-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.news-list a {
  display: grid;
  grid-template-columns: 110px 110px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  transition: background 200ms;
}
.news-list a:hover { background: rgba(166, 124, 58, 0.04); }
@media (max-width: 700px) {
  .news-list a {
    grid-template-columns: 1fr auto;
    gap: 4px;
  }
  .news-list .news-cat { grid-column: 1; grid-row: 1; }
  .news-list .news-date { grid-column: 2; grid-row: 1; }
  .news-list .news-title { grid-column: 1 / -1; grid-row: 2; }
  .news-list .news-arrow { display: none; }
}
.news-date {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--sub-2);
  letter-spacing: 0.02em;
}
.news-cat {
  font-size: 10.5px; font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  justify-self: start;
  text-transform: uppercase;
}
.news-title {
  font-family: "Noto Serif JP", serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}
.news-arrow {
  font-size: 13px;
  color: var(--brass);
  transition: transform 200ms;
}
.news-list a:hover .news-arrow { transform: translateX(4px); }

/* ---------- TOP: footer SNS / list ext ---------- */
.footer__address div + div { margin-top: 1px; }
.footer__sns {
  display: flex; gap: 8px;
  margin-top: var(--sp-2);
}
.footer__sns a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  color: rgba(250,250,248,0.6);
  transition: color 220ms, border-color 220ms, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.footer__sns a:hover {
  color: var(--paper);
  border-color: var(--brass-2);
  transform: translateY(-2px) scale(1.06);
}
.footer__sns svg { width: 14px; height: 14px; }
.footer__list .ext {
  display: inline-block; vertical-align: middle;
  margin-right: 4px;
}
.footer__list .ext svg { width: 10px; height: 10px; opacity: 0.7; }
.footer__list a { line-height: 1.55; }
.footer__list .sub { letter-spacing: 0.02em; }

/* ---------- TOP: footer / final bottom 微差分 ---------- */
.footer { border-top: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 700px) { .footer__top { gap: var(--sp-4); } }
.footer__bottom { align-items: center; }

/* ---------- TOP: 細部の差分 ---------- */
/* TOP の .sec--ink は元の挙動：sec の padding を sp-7 に強める（base と同じ） */
.sec--ink .sub-text { color: rgba(250, 250, 248, 0.66); }

/* TOP の .case は base から padding / タイトル font-size が違う */
.page-top .case__body { padding: var(--sp-4); }
.page-top .case__meta { letter-spacing: 0.1em; margin-bottom: var(--sp-3); }
.page-top .case__title { font-size: 17px; }

.case__metrics {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin: var(--sp-3) 0 var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case__metric-num {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: 22px; font-weight: 500;
  color: var(--ink); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "SOFT" 100;
}
.case__metric-num .unit {
  font-size: 0.55em; color: var(--brass);
  margin-left: 3px; font-family: "Noto Sans JP", sans-serif;
  font-weight: 500; vertical-align: 0.18em;
  font-variation-settings: normal;
}
.case__metric-label {
  font-size: 10.5px; color: var(--sub-2);
  letter-spacing: 0.04em; margin-top: 2px;
  line-height: 1.4;
  /* ラベルは全カード 1 行に統一。1 行ぶんの高さで Y を揃える（2 行予約だと箱が間延びする） */
  min-height: calc(10.5px * 1.4 * 1);
}
.case__body p {
  font-size: 13px; color: var(--sub); line-height: 1.85;
  margin-bottom: var(--sp-3);
}
.case__link {
  margin-top: auto;
  font-size: 12px; color: var(--ink); font-weight: 600;
  letter-spacing: 0.04em;
}
.case__link::after { content: " →"; color: var(--brass); }
/* カード全体クリック（front CASES。case__link を持つカードのみ） */
.case:has(.case__link) { cursor: pointer; }
.case__link::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* TOP セクション footer 共通 (→ 記号付きリンク) */
.cases__footer,
.process__footer {
  margin-top: var(--sp-5); text-align: right;
  border-top: 1px solid var(--line); padding-top: var(--sp-3);
}
.process__footer { margin-top: var(--sp-4); }
.cases__footer a,
.process__footer a {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.cases__footer a::after,
.process__footer a::after {
  content: " →"; color: var(--brass); margin-left: 6px;
}
.faq__footer {
  margin-top: var(--sp-4); text-align: right;
  padding-top: var(--sp-3);
}
.faq__footer a { font-size: 13px; font-weight: 600; color: var(--ink); }
.faq__footer a::after { content: " →"; color: var(--brass); margin-left: 6px; }

/* TOP : process-track の margin-bottom が base (sp-4) と違う */
.page-top .process-track { margin-bottom: var(--sp-5); }

/* TOP : final__cta の margin-bottom が base (sp-5) と違う */
.page-top .final__cta { margin-bottom: var(--sp-6); }

/* ==========================================================================
   ABOUT (27-about) — WHO / CREDENTIALS / MV / VALUES / COMPANY / DEPT / ECO
   ========================================================================== */

/* ---------- WHO WE ARE ---------- */
.who-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; gap: var(--sp-4); } }
.who-text {
  font-family: "Noto Serif JP", serif;
  font-size: 15.5px; line-height: 2.05;
  color: var(--sub);
  padding-left: 22px;
  border-left: 2px solid var(--ink);
}
.who-text strong { color: var(--ink); font-weight: 700; }
.who-text p + p { margin-top: var(--sp-3); }

/* ---------- CREDENTIALS ---------- */
.cred-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: var(--sp-3);
}
@media (max-width: 1024px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cred-grid { grid-template-columns: 1fr; } }
.cred {
  background: var(--paper);
  padding: var(--sp-4) var(--sp-3);
  display: flex; flex-direction: column;
  transition: background 280ms;
}
.cred:hover { background: var(--paper-2); }
.cred__num {
  font-family: "Fraunces", serif;
  font-size: 11px; font-style: italic;
  color: var(--sub-2);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}
.cred__big {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.cred__big .unit {
  font-size: 0.45em; font-weight: 500;
  color: var(--brass);
  margin-left: 6px;
  font-family: "Noto Sans JP", sans-serif;
  vertical-align: 0.15em;
  font-variation-settings: normal;
}
.cred__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);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.cred__body {
  font-size: 12px; color: var(--sub);
  line-height: 1.85;
  flex: 1;
}
.cred-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: var(--sp-3);
}
.cred-chip {
  font-size: 11px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  color: var(--sub);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---------- MISSION + VALUES ---------- */
.mv-mission {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--sp-5) var(--sp-4);
  margin-bottom: var(--sp-4);
  position: relative;
}
.mv-mission::before {
  content: "MISSION";
  position: absolute; top: -10px; left: 24px;
  background: var(--paper-2);
  padding: 0 12px;
  font-size: 10.5px; font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.22em;
}
.mv-mission__text {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}
.mv-mission__text em {
  font-style: italic;
  color: var(--brass);
  font-family: "Fraunces", serif;
  font-weight: 400;
}
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  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);
}
.value:hover { border-color: var(--ink); transform: translateY(-2px); }
.value__num {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 300; color: var(--brass);
  font-variation-settings: "SOFT" 100;
  line-height: 1;
  margin-bottom: var(--sp-3);
  font-variant-numeric: tabular-nums;
}
.value__head {
  font-family: "Noto Serif JP", serif;
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  line-height: 1.5;
}
.value__body {
  font-size: 13px; color: var(--sub);
  line-height: 2;
}

/* ---------- COMPANY table ---------- */
.co-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; gap: var(--sp-4); } }
.co-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
}
.co-table caption {
  text-align: left;
  font-size: 11px; font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.22em;
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.co-table th, .co-table td {
  text-align: left;
  padding: 12px var(--sp-3);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.co-table tr:last-child th,
.co-table tr:last-child td { border-bottom: none; }
.co-table th {
  width: 38%;
  font-weight: 600;
  color: var(--sub);
  background: var(--paper-2);
}
.co-table td { color: var(--ink); font-weight: 500; }
.co-table td.placeholder { color: var(--sub-2); font-style: italic; }

/* ---------- SI DEPT ---------- */
.dept-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .dept-grid { grid-template-columns: 1fr; } }
.dept {
  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);
  text-decoration: none;
}
.dept:hover { border-color: var(--ink); transform: translateY(-2px); }
.dept__cat {
  font-size: 10.5px; font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
}
.dept__head {
  font-family: "Noto Serif JP", serif;
  font-size: 18px; font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: var(--sp-3);
}
.dept__body {
  font-size: 13px; color: var(--sub);
  line-height: 2;
  margin-bottom: var(--sp-3);
  flex: 1;
}
.dept__link {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 200ms;
}
.dept__arrow {
  color: var(--brass);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dept:hover .dept__arrow { transform: translateX(4px); color: var(--brass-2); }

/* ---------- PARTNER ECOSYSTEM ---------- */
.eco-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .eco-grid { grid-template-columns: 1fr; } }
.eco {
  display: flex; flex-direction: column;
  gap: var(--sp-3);
}
.eco__head {
  font-family: "Noto Serif JP", serif;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--ink);
}
.eco__head small {
  display: block;
  font-family: "Fraunces", serif;
  font-style: italic; font-size: 11px;
  color: var(--brass);
  margin-bottom: 4px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.eco__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.eco__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.7;
}
.eco__list li strong {
  color: var(--ink); font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   AI-OPERATIONS (27-ai-operations) — PHASES--3 modifier
   ========================================================================== */
.phases-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .phases-grid--3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   AI-TRAINING (27-ai-training) — page-hero title override
   --------------------------------------------------------------------------
   ai-training は HERO タイトルだけ font-size / white-space が違うため、
   body に `.page-ai-training` を付けてスコープ。
   ========================================================================== */
.page-ai-training .page-hero__title {
  font-size: clamp(28px, 3.6vw, 50px);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .page-ai-training .page-hero__title {
    white-space: normal;
    font-size: clamp(26px, 6vw, 36px);
  }
}

/* =================================================================
   PAGE: SINGLE (個別記事) — エディトリアル記事レイアウト
   ================================================================= */

/* ===== HERO ===== */
.is-editorial .article-hero {
  padding: var(--sp-5) 0 0;
  background: var(--paper);
}
.is-editorial .article-hero__inner {
  max-width: var(--max); /* 本文コンテナ(1280)と左端を揃える。920中央寄せだと breadcrumb とズレていた */
  margin: 0 auto;
  padding: 0 var(--pad);
}
.is-editorial .article-hero__meta {
  display: flex; flex-wrap: wrap;
  gap: 14px 18px; align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--sub-2);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.is-editorial .article-hero__cat-en {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--brass-text);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.is-editorial .article-hero__cat-ja {
  color: var(--sub);
  font-weight: 600;
  text-transform: uppercase;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.is-editorial .article-hero__date,
.is-editorial .article-hero__read {
  font-family: "Fraunces", serif;
  font-variant-numeric: tabular-nums;
  color: var(--sub-2);
  font-size: 12.5px;
}
.is-editorial .article-hero__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  max-width: 22em; /* タイトルの計測幅を抑え、2 行程度に収める */
  text-wrap: pretty;
  word-break: auto-phrase; /* 日本語を文節単位で改行（対応ブラウザ）。ガチャつき軽減 */
}
.is-editorial .article-hero__lead {
  font-size: 16px;
  line-height: 1.95;
  max-width: 46em; /* 読みやすい行長に制限 */
  color: var(--sub);
  margin-bottom: var(--sp-4);
  max-width: 720px;
}
.is-editorial .article-hero__byline {
  font-size: 12px;
  color: var(--sub);
  letter-spacing: 0.04em;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.is-editorial .article-hero__byline strong { color: var(--ink); font-weight: 700; }
.is-editorial .article-hero__byline .pipe { margin: 0 10px; color: var(--brass-text); }
.is-editorial .article-hero__byline-sub { color: var(--sub-2); font-size: 11.5px; }
.is-editorial .article-hero__figure {
  max-width: 1200px;
  margin: var(--sp-4) auto 0;
  padding: 0 var(--pad);
}
.is-editorial .article-hero__img {
  display: block;
  width: 100%; height: auto;
  border: 1px solid var(--line);
}
/* works 個別の CASE STUDY ヒーローは figure 幅を抑え、画面を占有しないサイズに留める */
.page-works-single .article-hero__figure { max-width: 880px; }

/* ===== BODY 2-COLUMN ===== */
.is-editorial .article-section {
  background: var(--paper);
  padding: var(--sp-6) 0 var(--sp-6);
}
.is-editorial .article-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 1024px) {
  .is-editorial .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }
}

/* ===== TOC SIDEBAR ===== */
.is-editorial .article-toc-wrap {
  position: sticky; top: 88px;
  align-self: start;
  display: flex; flex-direction: column;
  gap: var(--sp-3);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
@media (max-width: 1024px) {
  .is-editorial .article-toc-wrap {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
.is-editorial .article-toc {
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-2);
}
.is-editorial .article-toc__head {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 12px;
  color: var(--brass-text);
  letter-spacing: 0.16em;
  margin-bottom: var(--sp-2);
}
.is-editorial .article-toc__ol {
  list-style: none;
  counter-reset: tocnum;
  font-size: 12.5px;
  line-height: 1.7;
}
.is-editorial .article-toc__li {
  counter-increment: tocnum;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.is-editorial .article-toc__li::before {
  content: counter(tocnum, decimal-leading-zero);
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--brass-text);
  margin-right: 8px;
  font-size: 11px;
}
.is-editorial .article-toc__li--sub {
  padding: 4px 0 4px 22px;
  border-bottom: 0;
  counter-increment: none;
  font-size: 12px;
}
.is-editorial .article-toc__li--sub::before {
  content: "—";
  color: var(--sub-2);
  margin-right: 6px;
}
.is-editorial .article-toc__li a {
  color: var(--sub);
  transition: color 200ms;
}
.is-editorial .article-toc__li a:hover { color: var(--ink); }
/* スクロールスパイ: 現在地の見出しをハイライト（下線＋強調） */
.is-editorial .article-toc__li a.is-active {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brass-text);
  text-decoration-thickness: 1.5px;
}
@media (max-width: 1024px) {
  .is-editorial .article-toc { display: none; }
}

/* ===== SIDE CTA CARD ===== */
.is-editorial .article-side-cta {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-4);
  border-left: 3px solid var(--brass);
}
.is-editorial .article-side-cta__kicker {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--brass-2); /* 暗背景(ink)上なので明るめゴールド(--brass-2)で AA 確保 */
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.is-editorial .article-side-cta__head {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: var(--sp-3);
  color: var(--paper);
}
.is-editorial .article-side-cta__btn {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 200ms, color 200ms;
}
.is-editorial .article-side-cta__btn:hover {
  background: var(--brass);
  color: var(--paper);
}
.is-editorial .article-side-cta__arrow {
  font-family: "Fraunces", serif;
  font-style: italic;
  margin-left: 10px;
}
@media (max-width: 1024px) {
  .is-editorial .article-side-cta { display: none; }
}

/* ===== PROSE ===== */
.is-editorial .article-prose {
  max-width: 720px;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--ink);
}
@media (max-width: 1024px) {
  .is-editorial .article-prose { margin: 0 auto; }
}
.is-editorial .article-prose h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.55;
  color: var(--ink);
  margin: var(--sp-5) 0 var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 2px solid var(--ink);
  position: relative;
}
.is-editorial .article-prose h2::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 64px; height: 2px;
  background: var(--brass);
}
.is-editorial .article-prose h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--ink);
  margin: var(--sp-4) 0 var(--sp-2);
}
.is-editorial .article-prose h4 {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin: var(--sp-3) 0 var(--sp-2);
}
.is-editorial .article-prose p {
  margin-bottom: var(--sp-3);
  word-break: break-word;
}
.is-editorial .article-prose a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(transparent calc(100% - 1px), var(--line) calc(100% - 1px));
  padding-bottom: 2px;
  transition: background-image 220ms, color 220ms;
}
.is-editorial .article-prose a:hover {
  color: var(--brass);
  background-image: linear-gradient(transparent calc(100% - 1px), var(--brass) calc(100% - 1px));
}
/* リスト項目内のリンクは矢印を補助表示（一覧の認識を高める） */
.is-editorial .article-prose ul > li > a:only-child,
.is-editorial .article-prose ol > li > a:only-child {
  display: inline-flex; align-items: baseline; gap: 8px;
  background-image: none;
  border-bottom: 1px solid transparent;
}
.is-editorial .article-prose ul > li > a:only-child::after,
.is-editorial .article-prose ol > li > a:only-child::after {
  content: "→";
  font-family: "Fraunces", serif; font-style: italic;
  color: var(--brass); opacity: 0.7;
  transition: transform 200ms;
}
.is-editorial .article-prose ul > li > a:only-child:hover,
.is-editorial .article-prose ol > li > a:only-child:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.is-editorial .article-prose ul > li > a:only-child:hover::after,
.is-editorial .article-prose ol > li > a:only-child:hover::after {
  transform: translateX(4px); opacity: 1;
}
/* prose 内に置いた .btn は本文リンク装飾(下線グラデ/ink文字)を受けず、ボタンとして表示する。
   .is-editorial .article-prose a (0,2,1) に勝つよう詳細度を上げ、bootstrap .btn のパディングも上書き。 */
.is-editorial .article-prose a.btn {
  background-image: none;
  text-decoration: none;
  padding: 22px 38px;
  padding-bottom: 22px;
}
.is-editorial .article-prose a.btn.btn--solid,
.is-editorial .article-prose a.btn.btn--solid:hover {
  color: var(--paper);
  background: var(--ink);
}
.is-editorial .article-prose a.btn.btn--ghost,
.is-editorial .article-prose a.btn.btn--ghost:hover {
  color: var(--ink);
}
.is-editorial .article-prose ul,
.is-editorial .article-prose ol {
  margin: var(--sp-3) 0;
  padding-left: 1.4em;
}
.is-editorial .article-prose li { margin-bottom: 6px; }
.is-editorial .article-prose ul li::marker { color: var(--brass); }
.is-editorial .article-prose ol li::marker {
  color: var(--brass);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-variant-numeric: tabular-nums;
}
.is-editorial .article-prose strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(166, 124, 58, 0.20) 62%);
  padding: 0 2px;
}
.is-editorial .article-prose em {
  font-style: italic;
  color: var(--ink);
}
.is-editorial .article-prose blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper-2);
  border-left: 3px solid var(--brass);
  font-size: 15px;
  font-style: italic;
  color: var(--sub);
  line-height: 1.85;
}
.is-editorial .article-prose img,
.is-editorial .article-prose figure img {
  max-width: 100%; height: auto;
  display: block;
  margin: var(--sp-4) auto;
  border: 1px solid var(--line);
}
.is-editorial .article-prose figure { margin: var(--sp-4) 0; }
.is-editorial .article-prose figcaption {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: var(--sub-2);
  text-align: center;
  margin-top: 8px;
}
.is-editorial .article-prose code {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 14px;
  background: var(--paper-2);
  padding: 2px 6px;
  border: 1px solid var(--line);
}
.is-editorial .article-prose pre {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3);
  overflow-x: auto;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 13px;
  line-height: 1.7;
  margin: var(--sp-4) 0;
}
.is-editorial .article-prose pre code {
  background: none; border: 0; color: inherit; padding: 0;
}
.is-editorial .article-prose hr {
  border: 0; height: 1px;
  background: var(--line);
  margin: var(--sp-5) 0;
}
.is-editorial .article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-3) 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
}
.is-editorial .article-prose th {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.is-editorial .article-prose td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

/* TOC plus プラグインの本文内 TOC をデスクトップでは隠す（sidebar TOC を使う） */
.is-editorial .article-prose #toc_container { display: none; }
@media (max-width: 1024px) {
  /* SP では sidebar が無いので、プラグイン TOC を編集デザインで残す */
  .is-editorial .article-prose #toc_container {
    display: block;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brass);
    padding: var(--sp-3);
    margin-bottom: var(--sp-4);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13.5px;
    line-height: 1.85;
  }
  .is-editorial .article-prose #toc_container .toc_title {
    font-family: "Fraunces", serif;
    font-style: italic;
    color: var(--brass);
    font-size: 12px;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
  }
  .is-editorial .article-prose #toc_container ul {
    list-style: none; margin: 0; padding: 0;
  }
  .is-editorial .article-prose #toc_container > ul > li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
  }
  .is-editorial .article-prose #toc_container > ul > li:last-child { border-bottom: 0; }
  /* 入れ子の小見出しはインデント（タブレットで字下げが効かない問題） */
  .is-editorial .article-prose #toc_container ul ul {
    list-style: none; margin: 4px 0 0; padding-left: 1.25em;
  }
  .is-editorial .article-prose #toc_container ul ul li { padding: 4px 0; border: 0; }
  .is-editorial .article-prose #toc_container ul ul li::before {
    content: "—"; color: var(--sub-2); margin-right: 6px;
  }
  /* TOC リンクは本文リンクの下線グラデを外す（hover 時の 2 重下線を解消） */
  .is-editorial .article-prose #toc_container a {
    color: var(--ink); background-image: none; padding-bottom: 0; text-decoration: none;
  }
  .is-editorial .article-prose #toc_container a:hover { color: var(--brass); background-image: none; text-decoration: none; }
}

/* RELATED は INSIGHTS と同じ insights-grid を流用 */
.is-editorial .article-related { padding: var(--sp-6) 0; }

/* =================================================================
   PAGE: CONTACT (お問い合わせ) — sairu-inspired 2 カラム
   ================================================================= */

.page-contact .contact-section {
  background: var(--paper);
  padding: var(--sp-5) 0 var(--sp-6);
}
.page-contact .contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  align-items: start;
}
@media (max-width: 1024px) {
  .page-contact .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }
}

/* ===== LEFT: イントロ ===== */
.page-contact .contact-intro__kicker {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--brass);
  letter-spacing: 0.16em;
  margin-bottom: var(--sp-3);
}
.page-contact .contact-intro__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  text-wrap: pretty;
}
.page-contact .contact-intro__title em {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}
.page-contact .contact-intro__lead {
  font-size: 15px;
  color: var(--sub);
  line-height: 2;
  margin-bottom: var(--sp-5);
  max-width: 540px;
}
.page-contact .contact-intro__lead strong { color: var(--ink); font-weight: 700; }

/* 信用 (運営会社) */
.page-contact .contact-trust {
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.page-contact .contact-trust__head {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11.5px;
  color: var(--brass);
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-2);
}
.page-contact .contact-trust__body {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: var(--sp-3);
}
.page-contact .contact-trust__body strong { font-weight: 700; }
.page-contact .contact-trust__list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.page-contact .contact-trust__list li {
  font-size: 13px;
  color: var(--sub);
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.page-contact .contact-trust__list .num {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  min-width: 80px;
}

/* 領域別の案内 */
.page-contact .contact-routes {
  margin-bottom: var(--sp-5);
}
.page-contact .contact-routes__head {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11.5px;
  color: var(--brass);
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 2px solid var(--ink);
}
.page-contact .contact-routes__list {
  list-style: none;
}
.page-contact .contact-routes__list li {
  border-bottom: 1px solid var(--line);
}
.page-contact .contact-routes__list a {
  display: block;
  padding: var(--sp-3) 0;
  transition: background 200ms;
}
.page-contact .contact-routes__list a:hover {
  background: var(--paper-2);
  padding-left: 8px;
}
.page-contact .contact-routes__cat {
  display: block;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.page-contact .contact-routes__name {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.page-contact .contact-routes__sub {
  display: block;
  font-size: 12px;
  color: var(--sub-2);
  line-height: 1.65;
}

/* 別窓口 */
.page-contact .contact-other__head {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11.5px;
  color: var(--brass);
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 2px solid var(--ink);
}
.page-contact .contact-other__list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.page-contact .contact-other__list li {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.85;
}
.page-contact .contact-other__list strong {
  color: var(--ink);
  font-weight: 700;
}
.page-contact .contact-other__list a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-contact .contact-other__list a:hover { color: var(--ink); }

/* ===== RIGHT: フォームカード ===== */
.page-contact .contact-form-wrap {
  position: sticky;
  top: 88px;
  align-self: start;
}
@media (max-width: 1024px) {
  .page-contact .contact-form-wrap {
    position: static;
  }
}
.page-contact .contact-form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: var(--sp-4);
}
.page-contact .contact-form-card__head {
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.page-contact .contact-form-card__kicker {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.page-contact .contact-form-card__title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.5;
}
.page-contact .contact-form-card__note {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.75;
}
.page-contact .contact-form-card__assure {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--sub-2);
  line-height: 1.7;
}
.page-contact .contact-form-card__assure strong {
  color: var(--ink);
  font-weight: 700;
}

/* ===== FORM FIELDS ===== */
.page-contact .contact-form { display: grid; gap: var(--sp-3); }
.page-contact .contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 600px) {
  .page-contact .contact-form__grid { grid-template-columns: 1fr; }
}
.page-contact .contact-form__row { display: grid; gap: 8px; }
.page-contact .contact-form__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.page-contact .contact-form__label .req {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  padding: 2px 6px;
  letter-spacing: 0.08em;
}
.page-contact .contact-form__input,
.page-contact .contact-form__select,
.page-contact .contact-form__textarea {
  width: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  transition: border-color 200ms, background 200ms;
}
.page-contact .contact-form__input:focus,
.page-contact .contact-form__select:focus,
.page-contact .contact-form__textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper-3);
}
.page-contact .contact-form__textarea {
  resize: vertical;
  line-height: 1.75;
  min-height: 120px;
}
.page-contact .contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23A67C3A' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  padding-right: 36px;
}
.page-contact .contact-form__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .page-contact .contact-form__checks { grid-template-columns: 1fr; }
}
.page-contact .contact-form__checks label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--sub);
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}
.page-contact .contact-form__checks label:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.page-contact .contact-form__checks input[type="checkbox"] {
  accent-color: var(--brass);
}
.page-contact .contact-form__consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.7;
  margin-top: 4px;
}
.page-contact .contact-form__consent input { accent-color: var(--brass); margin-top: 3px; }
.page-contact .contact-form__consent a {
  color: var(--brass-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-contact .contact-form__consent a:hover { color: var(--ink); }
.page-contact .contact-form__submit {
  margin-top: var(--sp-2);
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 16px 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 220ms;
}
.page-contact .contact-form__submit:hover { background: var(--brass); }
.page-contact .contact-form__arrow {
  font-family: "Fraunces", serif;
  font-style: italic;
}
.page-contact .contact-form__note {
  font-size: 11px;
  color: var(--sub-2);
  line-height: 1.65;
  margin-top: 4px;
}

/* CF7 出力の最低限の整形（CF7 wiring 時の保険） */
.page-contact .contact-form-card__cf7 .wpcf7-form-control {
  width: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: var(--paper);
}
.page-contact .contact-form-card__cf7 .wpcf7-submit {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 16px 24px;
  font-weight: 700;
  cursor: pointer;
}

/* page-contact の process-track は 4 step なので 4 列に */
.page-contact .process-track {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) { .page-contact .process-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .page-contact .process-track { grid-template-columns: 1fr; } }

/* 単一カラム（TOC 無し）レイアウト — single-news / single-works / page / 404 で利用 */
.is-editorial .article-layout--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
  margin: 0 auto;
}

/* thanks: editorial の 920 中央寄せだとヒーロー(1280 左寄せ)と本文がズレ、
   720 左寄せだと右が大きく空く。本文をヒーローと同じコンテナ幅に広げ、
   2 カラム（左=30分相談 / 右=お返事までの間に）で横幅を使い切る。 */
.page-thanks .article-section { padding-top: var(--sp-4); }
/* 本文を全幅2カラムにしたので、ヒーローのリードも 720 キャップを外して幅を揃える */
.page-thanks .article-hero__lead { max-width: none; }
.page-thanks .article-layout--single {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.page-thanks .thanks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5) var(--sp-6);
  align-items: start;
}
.page-thanks .thanks-grid__col { max-width: none; }
@media (max-width: 860px) {
  .page-thanks .thanks-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ai-operations: CASES は 2 枚なので 2 列・中央寄せ */
.page-ai-operations .cases-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .page-ai-operations .cases-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   ARCHIVE: works / news / blog 共通 - is-archive スコープ
   ================================================================= */
.is-archive .archive-hero {
  padding: var(--sp-5) 0 var(--sp-4);
  background: var(--paper);
}
.is-archive .archive-hero__inner {
  max-width: 920px; margin: 0 auto;
  padding: 0 var(--pad);
}
.is-archive .archive-hero__kicker {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--brass);
  letter-spacing: 0.16em;
  margin-bottom: var(--sp-3);
}
.is-archive .archive-hero__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  text-wrap: pretty;
}
.is-archive .archive-hero__title em {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}
.is-archive .archive-hero__lead {
  font-size: 15px;
  line-height: 1.95;
  color: var(--sub);
  max-width: 720px;
}
.is-archive .archive-section {
  background: var(--paper);
  padding: var(--sp-5) 0 var(--sp-6);
}
.is-archive .archive-layout {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
}

/* ========== WORKS GRID ========== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 768px) { .works-grid { grid-template-columns: 1fr; } }
.work-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: border-color 280ms, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.work-card__thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 28% 30%, rgba(166, 124, 58, 0.22), transparent 55%),
    linear-gradient(135deg, #161616 0%, #232323 60%, #1a1a1a 100%);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* data-cat-en ("CASE") の装飾ラベルは廃止し、記事一覧(.article-card__thumb)の NoImage と統一。 */
.work-card__thumb::after {
  content: "Swooo";
  position: absolute; bottom: 14px; right: 16px;
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-style: italic; font-weight: 400;
  font-variation-settings: "SOFT" 100;
  color: rgba(250, 250, 248, 0.35);
  z-index: 2;
}
.work-card__thumb--has-image { background: none; }
.work-card__thumb--has-image::after { display: none; }
.work-card__thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.work-card__body {
  padding: var(--sp-4);
  display: flex; flex-direction: column;
  flex: 1;
}
.work-card__company {
  font-size: 11.5px;
  color: var(--sub-2);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.work-card__title {
  font-family: "Noto Serif JP", serif;
  font-size: 19px; font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--sp-2);
}
.work-card__desc {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.85;
  margin-bottom: var(--sp-2);
}
.work-card__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: var(--sp-2);
}
.work-card__tag {
  font-size: 10.5px;
  color: var(--sub-2);
  padding: 3px 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.work-card__logos {
  display: flex; flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}
.work-card__logo {
  max-height: 24px;
  width: auto;
  opacity: 0.7;
}
.work-card__more {
  margin-top: var(--sp-2);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
}
.work-card__arrow {
  font-family: "Fraunces", serif;
  font-style: italic;
  transition: transform 220ms;
}
.work-card:hover .work-card__arrow { transform: translateX(4px); }
.works-empty {
  text-align: center;
  padding: var(--sp-6) 0;
  color: var(--sub);
  font-size: 14px;
}
.works-empty a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* contact フォームのバリデーションエラー */
.page-contact .contact-form__error {
  padding: 12px 16px;
  background: rgba(166, 124, 58, 0.08);
  border: 1px solid var(--brass);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}
.page-contact .contact-form__error strong { color: var(--brass); }

/* =================================================================
   PAGE: CONTACT 下部「領域別の案内」カード + submit-row + scroll 改善
   ================================================================= */

/* 下部に置いた領域別案内カード（CREATE / TRANSFORM / EDUCATE） */
.page-contact .contact-areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (max-width: 900px) { .page-contact .contact-areas { grid-template-columns: 1fr; } }
.page-contact .contact-area {
  display: flex; flex-direction: column;
  padding: var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color 280ms, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.page-contact .contact-area:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.page-contact .contact-area__cat {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--brass);
  letter-spacing: 0.16em;
  margin-bottom: var(--sp-2);
}
.page-contact .contact-area__name {
  font-family: "Noto Serif JP", serif;
  font-size: 18px; font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: var(--sp-2);
}
.page-contact .contact-area__desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--sub);
  margin-bottom: var(--sp-3);
  flex: 1;
}
.page-contact .contact-area__more {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brass);
  display: inline-flex; align-items: center; gap: 6px;
}
.page-contact .contact-area__arrow {
  font-family: "Fraunces", serif;
  font-style: italic;
  transition: transform 220ms;
}
.page-contact .contact-area:hover .contact-area__arrow { transform: translateX(4px); }

/* その他のお問い合わせ（contact 下部） */
.page-contact .contact-other {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  max-width: 920px;
}
.page-contact .contact-other__head {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 11.5px;
  color: var(--brass);
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-3);
}
.page-contact .contact-other__list {
  list-style: none;
  display: grid; gap: 12px;
}
.page-contact .contact-other__list li {
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.85;
}
.page-contact .contact-other__list strong {
  color: var(--ink); font-weight: 700;
  margin-right: 6px;
}
.page-contact .contact-other__list a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-contact .contact-other__list a:hover { color: var(--ink); }

/* contact フォーム コンパクト化：1 画面に収めるための調整 */
.page-contact .contact-form { gap: var(--sp-2); }
.page-contact .contact-form__grid { gap: var(--sp-2); }
.page-contact .contact-form__input,
.page-contact .contact-form__select,
.page-contact .contact-form__textarea {
  padding: 10px 12px;
  font-size: 13.5px;
}
.page-contact .contact-form__textarea { min-height: 96px; line-height: 1.7; }
.page-contact .contact-form__label { font-size: 11.5px; }
.page-contact .contact-form-card { padding: var(--sp-3) var(--sp-4); }
.page-contact .contact-form-card__head {
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-2);
}
.page-contact .contact-form-card__title { font-size: 19px; margin-bottom: 6px; }
.page-contact .contact-form-card__kicker { margin-bottom: 6px; }
.page-contact .contact-form-card__note { font-size: 11.5px; }
.page-contact .contact-form-card__assure { font-size: 10.5px; padding-top: var(--sp-2); margin-top: var(--sp-2); }

/* submit + 同意を 1 行に */
.page-contact .contact-form__submit-row {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: 6px;
  flex-wrap: wrap;
}
.page-contact .contact-form__submit-row .contact-form__consent { flex: 1; min-width: 200px; margin-top: 0; }
.page-contact .contact-form__submit {
  margin-top: 0;
  padding: 12px 22px;
  font-size: 13px;
}
@media (max-width: 600px) {
  .page-contact .contact-form__submit-row { flex-direction: column; align-items: stretch; }
  .page-contact .contact-form__submit { width: 100%; }
}

/* Popular 横スクロール（10件想定）— カードを少し小さめに */
.insights-grid--scroll > .article-card {
  flex: 0 0 calc((100% - var(--sp-4) * 3) / 4);
}
@media (max-width: 1200px) {
  .insights-grid--scroll > .article-card { flex: 0 0 calc((100% - var(--sp-4) * 2.4) / 3); }
}
@media (max-width: 900px) {
  .insights-grid--scroll > .article-card { flex: 0 0 70%; }
}
/* 右端の fade で「もっと続く」のヒント */
.insights-block:has(.insights-grid--scroll) {
  position: relative;
}
/* 右端の白フェード（半透明カーテン）は撤去。横スクロールは scrollbar で示す。 */

/* =================================================================
   SINGLE article-prose 内のレガシー WP コンテンツの横溢れ防止
   ================================================================= */
.is-editorial .article-prose {
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.is-editorial .article-prose * {
  max-width: 100%;
  box-sizing: border-box;
}
.is-editorial .article-prose img,
.is-editorial .article-prose iframe,
.is-editorial .article-prose video,
.is-editorial .article-prose embed,
.is-editorial .article-prose object {
  max-width: 100%; height: auto;
}
/* 動画埋め込み(YouTube/Vimeo)は 16:9 レスポンシブ。lazyload で 720×150 に潰れる問題を解消 */
.is-editorial .article-prose iframe[src*="youtube"],
.is-editorial .article-prose iframe[src*="youtu.be"],
.is-editorial .article-prose iframe[src*="vimeo"],
.is-editorial .article-prose .wp-block-embed.is-type-video iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  display: block;
}
/* WP 記事埋め込みカード(blogcard)は 150px だと内容が切れるため高さを確保 */
.is-editorial .article-prose .wp-block-embed.is-type-wp-embed iframe,
.is-editorial .article-prose iframe.wp-embedded-content {
  width: 100% !important;
  min-height: 210px;
}
/* TOC plus プラグイン以外の埋め込みブロック（チャット・吹き出し・table 等） */
.is-editorial .article-prose .wp-block-table,
.is-editorial .article-prose figure.wp-block-table {
  overflow-x: auto;
  display: block;
  width: 100%;
}
/* 広い比較表はラッパー(.wp-block-table)を横スクロールさせ、表自体は内容幅を保つ。
   width:100% 固定だとモバイルで列が 1 文字幅に潰れて読めなくなるため max-content に。 */
.is-editorial .article-prose .wp-block-table table {
  width: max-content;
  min-width: 100%;
  max-width: none;
}
.is-editorial .article-prose .wp-block-table th,
.is-editorial .article-prose .wp-block-table td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  min-width: 6em;
}
/* 記事内 WP ボタン（wp-block-button）: WP 既定の暗背景(#32373c)＋本文リンクの暗文字で
   不可視になる問題を解消。サイトのソリッド CTA（ink 背景 + paper 文字）に統一。 */
.is-editorial .article-prose .wp-block-button__link,
.is-editorial .article-prose .wp-element-button {
  background-color: var(--ink);
  background-image: none;
  color: var(--paper);
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  padding: 14px 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: opacity 200ms;
}
.is-editorial .article-prose .wp-block-button__link:hover,
.is-editorial .article-prose .wp-element-button:hover {
  background-color: var(--ink);
  color: var(--paper);
  opacity: 0.88;
}
/* legacy chat balloon パターン（kaiwa / chat / balloon) 等は折り返し許可 */
.is-editorial .article-prose [class*="balloon"],
.is-editorial .article-prose [class*="chat"],
.is-editorial .article-prose [class*="kaiwa"],
.is-editorial .article-prose [class*="hukidashi"] {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}
.is-editorial .article-prose [class*="balloon"] *,
.is-editorial .article-prose [class*="chat"] *,
.is-editorial .article-prose [class*="kaiwa"] *,
.is-editorial .article-prose [class*="hukidashi"] * {
  max-width: 100% !important;
  word-break: break-word;
}

/* article-prose の grid blowout 対策 + vk_balloon プラグインの強制レスポンシブ化 */
.is-editorial .article-prose {
  min-width: 0;
  width: 100%;
}
.is-editorial .article-prose .vk_balloon,
.is-editorial .article-prose .wp-block-vk-blocks-balloon {
  width: 100% !important;
  max-width: 100% !important;
  align-items: center; /* アバターと吹き出しを上下中央に揃える */
}
.is-editorial .article-prose .vk_balloon_content_outer,
.is-editorial .article-prose .vk_balloon_content {
  max-width: 100% !important;
  width: auto !important;
}
/* vk-blocks alert（記事内の要点まとめ箱等）— Bootstrap配色（success緑/info青/warning黄/danger赤）が
   H editorial のパレットから浮くため、blockquote と同じ紙色＋brass左罫の囲みに統一する */
.is-editorial .article-prose .vk_alert {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 0;
  color: var(--ink);
}
.is-editorial .article-prose .vk_alert p,
.is-editorial .article-prose .vk_alert strong {
  color: var(--ink);
}
.is-editorial .article-prose .vk_alert p {
  margin-bottom: 0;
  line-height: 2.1;
}
.is-editorial .article-prose .vk_alert a {
  text-decoration: none; /* ブラウザ標準下線を外し、article-prose a のグラデ下線だけ残す（二重下線解消） */
  font-weight: 600;
}

/* ============================================================
   PAGE: /flow/  進め方 (page-flow / H design)
   既存 H 共通クラス（.page-hero / .sec / .label / .process-track
   / .step / .deli / .trust-strip / .ctabar / .final）を流用し、
   このページ固有の 4 フェーズ / METHODOLOGY / 8 ステップ /
   契約形態のレイアウトだけをここで補う。
   並列カードは横軸要素の Y 座標を完全に揃える。
============================================================ */

/* hero 直下の注記 */
.page-flow .page-flow__hero-note {
  margin-top: var(--sp-3);
  font-size: 12px;
  color: var(--sub-2);
  line-height: 1.8;
}
.page-flow .page-flow__hero-note a {
  color: var(--brass-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- 4 フェーズ概要（process-track を 4 列に） ---- */
.page-flow .process-track--4 {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 0;
}
@media (max-width: 1024px) { .page-flow .process-track--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .page-flow .process-track--4 { grid-template-columns: 1fr; } }
/* phase overview の step__head は英日併記なので 2 行を許容しても Y 揃え維持 */
.page-flow .process-track--4 .step__head { min-height: 2.6em; }
@media (max-width: 600px) { .page-flow .process-track--4 .step__head { min-height: 0; } }

/* ---- AI METHODOLOGY 見出しの改行制御 ---- */
.page-flow .sec__title { text-wrap: pretty; }

/* ---- AI METHODOLOGY 4 カード（deli-grid を 4 列に） ---- */
.page-flow .page-flow__method-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) { .page-flow .page-flow__method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .page-flow .page-flow__method-grid { grid-template-columns: 1fr; } }
.page-flow .page-flow__method-card {
  display: flex;
  flex-direction: column;
}
.page-flow .page-flow__method-label {
  font-family: "Fraunces", serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--brass);
  margin-bottom: 6px;
}
/* 横並びカードの h3 / 本文 / リストの縦位置を揃える */
.page-flow .page-flow__method-card .deli__head { min-height: 1.6em; }
.page-flow .page-flow__method-card .deli__body { flex: 1; margin-bottom: var(--sp-3); }
.page-flow .page-flow__method-list {
  list-style: none;
  margin: 0;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}
.page-flow .page-flow__method-list li {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  color: var(--sub);
  line-height: 1.7;
  padding: 3px 0;
}
.page-flow .page-flow__method-list li strong {
  flex: 0 0 5.5em;
  color: var(--brass);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.page-flow .page-flow__method-note {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.9;
}
.page-flow .page-flow__method-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-weight: 600;
}

/* ---- 8 ステップ詳細（縦並び・番号を左に揃える） ---- */
.page-flow .page-flow__steps {
  border-top: 1px solid var(--line);
}
.page-flow .page-flow__step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) {
  .page-flow .page-flow__step { grid-template-columns: 1fr; gap: var(--sp-2); }
}
.page-flow .page-flow__step-num {
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 300;
  font-variation-settings: "SOFT" 100;
  line-height: 1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.page-flow .page-flow__step-phase {
  font-family: "Fraunces", serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--sub-2);
  margin-bottom: 6px;
}
.page-flow .page-flow__step-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: var(--sp-2);
}
.page-flow .page-flow__step-desc {
  font-size: 13.5px;
  color: var(--sub);
  line-height: 1.95;
  margin-bottom: var(--sp-3);
  max-width: 920px;
}
.page-flow .page-flow__step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
/* ステップ 01/02（無償相談）の問い合わせ導線 */
.page-flow .page-flow__step-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--brass-text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: border-color 200ms;
}
.page-flow .page-flow__step-cta:hover { border-color: var(--brass-text); }
.page-flow .page-flow__step-cta-arrow { transition: transform 200ms; }
.page-flow .page-flow__step-cta:hover .page-flow__step-cta-arrow { transform: translateX(3px); }
.page-flow .page-flow__step-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11.5px;
  color: var(--sub);
  padding: 5px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.page-flow .page-flow__step-meta strong {
  color: var(--brass);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

/* ---- 契約形態 3 カード（Y 軸完全揃え） ---- */
.page-flow .page-flow__engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 900px) { .page-flow .page-flow__engage-grid { grid-template-columns: 1fr; } }
.page-flow .page-flow__engage {
  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);
}
.page-flow .page-flow__engage:hover { border-color: var(--ink); transform: translateY(-2px); }
.page-flow .page-flow__engage-head {
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.page-flow .page-flow__engage-type {
  font-family: "Fraunces", serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--brass);
  margin-bottom: 8px;
}
.page-flow .page-flow__engage-title {
  font-family: "Noto Serif JP", serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  text-wrap: pretty;
  /* 3 枚とも 2 行構成。見出しの縦位置を揃える */
  min-height: 2.9em;
}
@media (max-width: 900px) { .page-flow .page-flow__engage-title { min-height: 0; } }
.page-flow .page-flow__engage-desc {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.95;
  margin-bottom: var(--sp-3);
  flex: 1;
}
.page-flow .page-flow__engage-use {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.85;
}
.page-flow .page-flow__engage-use strong {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

/* =================================================================
   旧 G → H 移行ページの inline 固定グリッドをモバイルで段組み解除。
   inline style（高詳細度）に勝つため media query 内で !important。
   ※ H ネイティブのページはグリッドをクラスで定義しており、ここには該当しない。
   ================================================================= */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(5,1fr)"],
  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* asset version: 2026-06-09 QA pass (cache-busting) */

/* 研修カリキュラムの「ワーク例」をカード下端に揃える（3カードでY軸一致） */
.process-track--3 .step { display: flex; flex-direction: column; }
.process-track--3 .step__body { flex: 0 0 auto; }
.step__work {
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--sub); line-height: 1.75;
  min-height: calc(var(--sp-2) + 12px * 1.75 * 2 + 1px);
  box-sizing: border-box;
}
.step__work-label {
  display: inline-block; margin-right: 8px;
  font-family: "Fraunces", serif; font-style: italic;
  color: var(--brass); font-size: 11px; letter-spacing: 0.04em;
}

/* ===== 記事カードの NoImage プレースホルダ（画像なし時は Swooo ワードマークを中央に） ===== */
.article-card__thumb:not(.article-card__thumb--has-image)::after {
  content: "Swooo";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", "Noto Serif JP", serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  color: rgba(250, 250, 248, 0.42);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ===== 吹き出しアバター画像に角丸（R値） ===== */
.is-editorial .article-prose [class*="balloon"] img,
.is-editorial .article-prose .vk_balloon_icon_image {
  border-radius: 12px;
}

/* ===== Google マップ埋め込みの高さ確保（潰れ防止） ===== */
.is-editorial .article-prose iframe[src*="google.com/maps"],
.is-editorial .article-prose iframe[src*="/maps/embed"],
.is-editorial .article-prose iframe[src*="maps.google"],
.is-editorial .article-prose .wp-block-embed.is-provider-google-maps iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  display: block;
}
