
/* =====================================================================
   トップページ 統合版（2026-11-29 代表の採用判断に基づく。比較課題⑤ Claude Code案＝CC／Codex案＝CX）
   ヘッダー CX／FV 現行のまま／実績 CC／ミッション CC／事例 CX／サービス CX／選ばれる理由 CC／
   資料・研究 CX／会社概要 CX／セミナー・お知らせ CC／パートナー募集 CX／お問い合わせ・資料請求 CC／フッター CX
   ページ全体で統一したもの: 幅（base.css の .w＝1200px）・12列の格子（列間40px。2段目の基準線＝4列目）・配色（base.css のトークン）・
   書体（見出し 小塚ゴシック／本文 IBM Plex Sans JP＋Inter）・見出しの階層（主要 46px／補助 36px）・ボタン（FVと同じ 60px・17px）・
   罫線（1px）・セクションの上下の余白（120px／スマホ 72px）・文字リンク（「↗」）・hover・切り替え幅（ナビ 1180px／配置 900px）
   ===================================================================== */

/* ---------- FV（2026-11-29 原田さん「FVはClaude Code案を採用します」。比較課題⑤ CC案の FV をそのまま写した） ----------
   画像・動画・見出し・副題・ボタンの文言は現行と同じ。高さを画面に合わせ（640〜800px）、画像を右に寄せて置く。PC は動画、スマホは画像が先・16:9（確定） */
.fv { position: relative; background: var(--fv-ground); overflow: hidden; }
.fv__media { position: absolute; inset: 0 0 0 auto; height: 100%; aspect-ratio: 1536 / 1024; max-width: none; }
.fv__media img, .fv__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fv__media video { position: absolute; inset: 0; }
.fv .w { position: relative; min-height: clamp(640px, calc(100svh - 88px), 800px); display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
.fv__co { font-size: 14px; color: var(--ink-2); margin: 0 0 28px; letter-spacing: .04em; }
.fv h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 1.12; letter-spacing: -0.035em; margin-bottom: 28px; }
.fv__sub { font-family: var(--f-head); font-size: 22px; font-weight: 500; margin: 0 0 44px; }
.fv__act { align-self: flex-start; }
@media (max-width: 900px) {
  .fv__media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .fv__media img { object-position: 78% 50%; }
  .fv__media video { display: none; }
  .fv .w { min-height: 0; padding-block: 28px 44px; }
  .fv__co { font-size: 12.5px; margin-bottom: 14px; }
  .fv h1 { font-size: 40px; margin-bottom: 16px; }
  .fv__sub { font-size: 17px; margin-bottom: 28px; }
}
html { word-break: auto-phrase; }
:root { --ease: cubic-bezier(0.4, 0.4, 0, 1); }
.btn { transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.fv__act, .acts { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; align-items: stretch; }
.fv__act .btn, .acts .btn { min-height: 60px; padding: 0 32px; font-size: 17px; justify-content: center; }
@media (max-width: 600px) { .fv__act, .acts { grid-auto-flow: row; width: 100%; } }
.ib { display: inline-block; }
.nw { white-space: nowrap; }
/* ---------- FV ここまで ---------- */

/* ---------- 共通（統合で統一した規則） ---------- */
:root { --sec: 120px; --gap: 40px; --h2: 46px; --h2-sub: 28px; --h3: 36px; } /* 補助セクションの見出し28px・h3 36px（2026-11-29 原田さん） */ /* h3 の見出しは28px（2026-11-29 原田さん「h3 見出しは28pxに。他もです」） */
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.c-all { grid-column: 1 / 13; min-width: 0; }
.c-head { grid-column: 1 / 4; min-width: 0; }
.c-body { grid-column: 4 / 13; min-width: 0; }
.num { font-family: "Inter", var(--f-head); font-variant-numeric: tabular-nums; }
.sec { padding-block: var(--sec); }
.sec--surface { background: var(--surface); }
.sec--dark { background: var(--structure); color: var(--on-dark); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 見出し（主要セクション）: 見出しを左、一覧へのリンクを右、下に罫線（CX の見出しの形。線は CC・現行の動き＝スクロールで左から引く） */
.sh { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 8px; margin-bottom: 40px; } /* 2026-11-29 原田さん: 見出しの下の罫線は Codex案どおり細く薄く（1px・罫線の色・見出しのすぐ下）。全セクション共通 */
.sh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); transform-origin: left center; }
.sec--dark .sh::after { background: var(--rule-dark); }
.sh h2 { font-size: var(--h2); line-height: 1.3; letter-spacing: -0.02em; }
.sh--label { padding-bottom: 18px; }
.sh--label p { font-family: var(--f-head); font-weight: 700; font-size: 15px; margin: 0; }
/* 見出し（補助セクション: 会社概要・セミナー/お知らせ・パートナー募集）: 左の3列に置く（CX の rail）。主要より一段小さく、視覚的な優先度を下げる */
.rail h2, .rail .sh h2 { font-size: var(--h2-sub); line-height: 1.35; letter-spacing: -0.02em; }
.rail .c-head .more { margin-top: 16px; }

/* 文字リンク（CX の「↗」。hover で下線が左から伸びる＝現行・CC） */
.more { display: inline-flex; align-items: center; gap: 14px; min-height: 40px; font-family: var(--f-head); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.more:hover { background-size: 100% 1px; }
/* ---------- 03 実績（CC: 暗い構造色の全幅・大きな数字・強弱・細い縦罫線・直後に取引先ロゴ） ---------- */
.nums { display: grid; grid-template-columns: 1.25fr .95fr 1.1fr 1.3fr 1.15fr; }
.nums div { padding: 8px 24px 8px; border-left: 1px solid var(--rule-dark); }
.nums div:first-child { padding-left: 0; border-left: 0; }
.nums b { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
.nums div:first-child b { font-size: clamp(64px, 8vw, 116px); }
.nums b small { font-family: var(--f-head); font-weight: 700; font-size: 16px; letter-spacing: 0; margin-left: 6px; }
.nums > div > span { display: block; margin-top: 18px; font-size: 15px; line-height: 1.6; }
.nums__note { margin: 28px 0 0; font-size: 12px; color: var(--on-dark-2); }
.logos-sec { padding-block: 72px; }
.logos-sec .g12 { align-items: center; }
.logos-sec h3 { font-size: var(--h3); line-height: 1.35; letter-spacing: -0.02em; } /* 2026-11-29 原田さん「H3見出しぐらいに」: 同じ左列の見出し「検証記事」と同じ36px */
.logos-sec .c-head .more { margin-top: 16px; } /* 2026-11-29 原田さん「下に 事例一覧を見る を追加」 */
.logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 36px 24px; /* 2026-11-29 原田さん「A案 16社・2行（1行8社）採用」: フレッシュネスバーガー・レインズインターナショナルを外し、8列×2行 */ align-items: center; justify-items: center; }
.logos img { display: block; width: auto; max-width: 100%; height: var(--h, 32px); object-fit: contain; }

/* ---------- 04 ミッション（CC: 白地・大きな見出し・期待値の概念図・4つの手順） ---------- */
.mission__text { font-family: var(--f-head); font-weight: 700; font-size: clamp(28px, 2.9vw, 40px); line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 56px; } /* 2026-11-29 原田さん「見出しの大きさが小さすぎる。他と揃える」: 見出し「ミッション」を46pxにし、文は見出しより一段小さく */
.mission__lead { grid-column: 1 / 7; grid-row: 1; }
.mission__def { font-size: 18px; line-height: 2; margin: 0; }
.mission__def strong { font-weight: 700; }
.ev { grid-column: 7 / 13; grid-row: 1; margin: 0; } /* 2026-11-29 原田さん「上に余白ができたので、上に詰めて」: 図を文の高さから始める */ /* 2026-11-29 原田さん「左の余白不要」: ミッションの文・説明・4つの手順を1列目から */
.ev__fig { background: var(--surface); padding: 28px 28px 20px; }
.ev__fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.ev figcaption { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.ev figcaption b { font-family: var(--f-head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.ev .ax { font-family: var(--f-head); font-size: 12px; font-weight: 700; fill: var(--ink-2); }
.ev .iso { fill: none; stroke: var(--structure); stroke-width: 1; opacity: .35; }
.ev .iso.hi { opacity: .9; stroke-width: 1.25; }
.ev .pt { fill: var(--paper); stroke: var(--structure); stroke-width: 1.5; }
.ev .pt.on { fill: var(--structure); }
/* 点と注記は SVG の animateMotion で高い曲線に沿って動かす（2026-11-30: CSS offset-path は Retina〔倍率2〕の Chrome で点が座標の1/2の位置に描かれたため置き換え）。動きを減らす設定・JSなしは静止。 */
.ev .lab { font-family: var(--f-head); font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.ev .lab2 { font-size: 11.5px; fill: var(--ink-2); }
.loop { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--structure); }
.loop li { padding: 20px 24px 0 0; }
.loop li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.loop .num { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.loop h3 { font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
.loop p { font-size: 14px; line-height: 1.8; color: var(--ink-2); margin: 0; }

/* ---------- 05 事例（CX: 化学メーカーを大きく＋3件の一覧・各事例の詳細へ） ---------- */
.case-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); }
.case-shot { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border-radius: 2px; }
.case-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: scale .4s var(--ease); }
.lead-case { display: block; align-self: start; text-decoration: none; }
.lead-case > .case-shot { aspect-ratio: 1.94; margin-bottom: 18px; }
.lead-case h3 { font-size: clamp(23px, 2.05vw, 32px); line-height: 1.4; margin: 4px 0 10px; transition: color .3s var(--ease); }
.lead-case p, .case-item p { font-size: 15px; line-height: 1.8; margin: 0; }
.case-decision { font-family: var(--f-head); font-weight: 700; margin-bottom: 4px !important; }
.lead-case .ar { margin-top: 14px; font-size: 22px; }
.service-name .ar { font-size: 16px; }
.publication .ar { font-size: 16px; }
.mobile-nav .ar { font-size: 15px; }
.case-list { display: grid; gap: 22px; align-content: start; }
.case-item { display: grid; grid-template-columns: minmax(130px, 27%) minmax(0, 1fr) 20px; gap: 24px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.case-item:last-child { padding-bottom: 0; border-bottom: 0; }
.case-item h3 { font-size: 21px; line-height: 1.45; margin: 2px 0 8px; transition: color .3s var(--ease); }
.case-item .ar { align-self: start; font-size: 25px; }
.case-meta { font-size: 12px; color: var(--ink-2); margin: 0; }
/* 事例のサービスはラベル・業種はハッシュタグ（現行サイトの事例カードと同じ。2026-11-29 原田さん） */
.cases .tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.cases .tags li { font-family: var(--f-head); font-weight: 700; font-size: 12px; line-height: 1.4; padding: 3px 8px; background: var(--structure); color: var(--paper); }
.cases .ind { font-size: 12px; color: var(--ink-2); margin: 10px 0 0 !important; }
.lead-case:hover h3, .case-item:hover h3 { color: var(--accent); }
.lead-case:hover .case-shot img, .case-item:hover .case-shot img { scale: 1.04; }
.case-consult { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; gap: 24px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.case-consult p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- 06 サービス（CX: 流入の設計→見込み客獲得・顧客育成→貴社の商談・受注、5つのサービスの表） ---------- */
.service-lead { font-size: var(--h3); line-height: 1.36; letter-spacing: -0.02em; margin: 0 0 32px; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0 0 48px; }
.flow > div { position: relative; background: var(--surface); padding: 22px clamp(16px, 2vw, 30px) 24px; }
.flow > div:last-child { background: var(--paper); border: 1px solid var(--rule); }
.flow > div:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 38px; width: 23px; height: 23px; line-height: 23px; text-align: center; font-family: "WDArrow", "Inter", sans-serif; font-size: 18px; background: var(--paper); z-index: 1; }
.flow small { display: block; font-size: 12px; color: var(--ink-2); }
.flow strong { display: block; font-family: var(--f-head); font-size: 21px; line-height: 1.4; margin: 4px 0 10px; }
.flow p { font-size: 14px; margin: 0; }
.table-head, .service-row { display: grid; grid-template-columns: 1.15fr .8fr 1fr; align-items: center; gap: 32px; }
.table-head { font-size: 12px; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding: 10px 0; }
.service-row { position: relative; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.service-row:last-child { border-bottom: 0; }
.service-row h3 { font-size: 21px; line-height: 1.45; }
.service-name { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; text-decoration: none; transition: color .3s var(--ease); }
.service-name::after { content: ""; position: absolute; inset: 0; } /* 行のどこを押しても詳細へ（2026-11-23 原田さん「どこにホバーしても反応、クリックで遷移」） */
.service-name small { display: block; font-size: 13px; }
.service-name small.rp { display: inline; } /* 2026-11-29 原田さん「（AIO/LLMO）を小さく」: 言い換えの括弧は小さく（全社ルール 2026-11-27）。Web広告運用の括弧と同じ13px */
.service-row:hover .service-name { color: var(--accent); }
.service-row:hover .ar { transform: rotate(45deg); }
.service-row p { font-size: 15px; margin: 0; }
.inline-cta { background: var(--surface); margin-top: 32px; padding: 24px clamp(20px, 2.4vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.inline-cta p { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.6; margin: 0; }

/* ---------- 07 選ばれる理由（CC: 淡い灰色の全幅・01/02・細い罫線・強弱・余白） ---------- */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.why li { padding-top: 0; } /* 2026-11-29 原田さん「上の罫線を外す」（01・02 とも） */
.why .num { display: block; font-size: 56px; font-weight: 400; line-height: 1; color: var(--structure); margin-bottom: 28px; letter-spacing: -0.04em; }
.why h3 { font-size: 26px; line-height: 1.45; margin-bottom: 16px; }
.why p { font-size: 16px; line-height: 1.95; color: var(--ink-2); margin: 0; }

/* ---------- 08 資料・研究（CX: 資料の表紙・検証記事の中身の抜粋） ---------- */
.papers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.paper { display: grid; grid-template-columns: 1fr 22px; gap: 14px 10px; align-content: start; text-decoration: none; }
.paper > .paper__img { grid-column: 1 / -1; overflow: hidden; border-radius: 2px; }
.paper > .paper__img img { display: block; width: 100%; aspect-ratio: 2.24 / 1; object-fit: cover; transition: scale .4s var(--ease); }
.paper h3 { font-size: 21px; line-height: 1.45; margin: 6px 0 8px; transition: color .3s var(--ease); }
.paper p { font-size: 15px; margin: 0; max-width: 35em; }
.paper .ar { font-size: 25px; align-self: start; }
.paper:hover h3 { color: var(--accent); }
.paper:hover .paper__img img { scale: 1.03; }
.blog { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--ink); row-gap: 20px; }
.blog .c-head h3 { font-size: var(--h3); line-height: 1.35; letter-spacing: -0.02em; } /* 2026-11-29 原田さん: Codex案（rail の見出し 約37px）に合わせ、補助の見出し36pxに統一 */
.analysis-note { padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.analysis-note time, .publication time { font-family: "Inter", sans-serif; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.analysis-note h4 { font-size: 23px; line-height: 1.5; margin: 4px 0 12px; }
.analysis-note p { font-size: 15px; max-width: 50em; margin: 0; }
.analysis-note table { border-collapse: collapse; margin: 18px 0; width: 100%; font-variant-numeric: tabular-nums; }
.analysis-note caption { text-align: left; font-family: var(--f-head); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.analysis-note th, .analysis-note td { text-align: right; padding: 9px 13px; line-height: 1.6; }
.analysis-note th:first-child { text-align: left; }
.analysis-note thead th { font-size: 13px; background: var(--surface); font-weight: 500; }
.analysis-note tbody th, .analysis-note td { font-size: 15px; font-weight: 500; }
.analysis-note tbody tr + tr > * { border-top: 1px solid var(--rule); }
.analysis-note .more { margin-top: 12px; }
.publication { display: grid; grid-template-columns: 95px minmax(0, 1fr) 18px; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.publication:last-child { border-bottom: 0; }
.publication strong { display: block; font-family: var(--f-head); font-size: 16px; line-height: 1.55; transition: color .3s var(--ease); }
.publication small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-2); }
.publication:hover strong { color: var(--accent); }

/* ---------- 09 会社概要（CX: 基本情報・会社案内の画像と請求・開く地図） ---------- */
.profile-sample { display: block; max-width: 275px; margin-top: 24px; text-decoration: none; }
.profile-sample img { display: block; width: 100%; aspect-ratio: 2.3; object-fit: cover; }
.profile-sample span { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-head); font-size: 15px; font-weight: 700; margin-top: 10px; }
.profile-sample small { font-size: 12px; color: var(--ink-2); }
.profile-sample:hover span { color: var(--accent); }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-top: 1px solid var(--rule); }
.facts > div:first-child { border-top-color: var(--ink); }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { font-size: 15px; margin: 0; }
.map { margin-top: 8px; } /* 2026-11-29 原田さん「（法人番号の）下の罫線は不要」 */
.map summary { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-family: var(--f-head); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; margin-top: 10px; border-bottom: 1px solid var(--ink); }
.map summary::-webkit-details-marker { display: none; }
.map summary::after { content: "＋"; }
.map[open] summary::after { content: "−"; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; margin-top: 16px; }

/* ---------- 10 セミナー・イベント／お知らせ（CC: 淡い灰色・2列。主要な情報より優先度を下げる） ---------- */
.lists { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.lists > div:first-child { grid-column: 1 / 7; }
.lists > div:last-child { grid-column: 8 / 13; }
.lists h3 { font-size: 15px; margin-bottom: 14px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--structure); }
.list a { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.list li:last-child a { border-bottom: 0; }
.list time { font-family: "Inter", sans-serif; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.list b { display: block; font-weight: 500; font-size: 15px; line-height: 1.65; transition: color .3s var(--ease); }
.list span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.list a:hover b { color: var(--accent); }
.lists .more { margin-top: 18px; }

/* ---------- 11 パートナー募集（CX: 独立したセクション・営業・協業の窓口へ） ---------- */
.partner p { font-size: 15px; margin: 0 0 12px; }

/* ---------- 12 お問い合わせ・資料請求（CC: 暗い構造色の全幅・大きな見出し・2つの導線） ---------- */
.fin { background: var(--structure); color: var(--on-dark); padding-block: 120px; }
.fin .g12 { align-items: end; }
.fin__txt { grid-column: 1 / 8; }
.fin__txt h2 { font-size: 52px; line-height: 1.25; letter-spacing: -0.025em; }
.fin__txt p { margin: 18px 0 0; color: var(--on-dark-2); }
.fin .acts { grid-column: 8 / 13; justify-self: end; }
.fin .btn:not(.btn--primary) { background: transparent; border-color: var(--on-dark-2); color: var(--on-dark); }
.fin .btn:not(.btn--primary):hover { background: rgba(255, 255, 255, .08); }
.fin .btn--primary:hover { background: #24479C; border-color: #24479C; }
.fin :focus-visible { outline-color: var(--on-dark); }

/* ---------- 動き（2026-11-26 原田さん「1、2、4採用」: 文字は最初から表示／見出しの線を左から引く／画像のカードが少し上がる） ---------- */
.js-motion .sh.ln::after { transform: scaleX(0); transition: transform .8s var(--ease); }
.js-motion .sh.ln.in::after { transform: scaleX(1); }
.js-motion .rise { transform: translateY(40px); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js-motion .rise.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js-motion .rise { transform: none !important; transition: none !important; } .js-motion .sh.ln::after { transform: none !important; } }

/* ======================= タブレット・スマートフォン（900px 以下） ======================= */
@media (max-width: 1080px) {
  .case-item { grid-template-columns: 96px minmax(0, 1fr) 16px; gap: 16px; }
  .case-item h3 { font-size: 18px; }
}
@media (max-width: 900px) {
  :root { --sec: 72px; --gap: 20px; --h2: 32px; --h2-sub: 26px; --h3: 26px; }
  .g12, .lists { display: block; }
  .sh { padding-bottom: 6px; margin-bottom: 24px; align-items: center; }
  .rail .c-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
  .rail .c-head .more { margin-top: 0; }

  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums div, .nums div:first-child { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule-dark); }
  .nums div:first-child { grid-column: 1 / -1; }
  .nums div:first-child b { font-size: 76px; }
  .nums div:nth-child(3), .nums div:nth-child(5) { padding-left: 16px; border-left: 1px solid var(--rule-dark); }
  .nums b { font-size: 40px; }
  .nums b small { font-size: 13px; margin-left: 3px; }
  .nums > div > span { font-size: 13px; margin-top: 10px; }
  .logos-sec { padding-block: 48px 56px; }
  .logos-sec .c-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
  .logos-sec .c-head .more { margin-top: 0; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .logos img { height: calc(var(--h, 32px) * .82); }

  .mission__text { font-size: 24px; margin-bottom: 28px; }
  .mission__def { font-size: 16px; margin-bottom: 36px; }
  .ev__fig { padding: 18px 14px 10px; }
  .loop { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .loop li, .loop li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .loop li:last-child { border-bottom: 0; }
  .loop .num { display: inline; margin: 0 10px 0 0; }
  .loop h3 { display: inline; font-size: 17px; }
  .loop p { margin-top: 6px; }

  .case-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lead-case > .case-shot { aspect-ratio: 2.1; }
  .lead-case h3 { font-size: 22px; }
  .lead-case p, .case-item p { font-size: 14px; }
  .case-item { grid-template-columns: 77px minmax(0, 1fr) 14px; gap: 12px; align-items: start; padding-bottom: 16px; }
  .case-item .case-shot { margin-top: 5px; aspect-ratio: 1.25; }
  .case-item h3 { font-size: 17px; }
  .case-item .ar { font-size: 17px; }
  .case-consult { display: block; margin-top: 24px; }
  .case-consult p { font-size: 13px; margin-bottom: 4px; }

  .service-lead { margin-bottom: 20px; }
  .service-lead br { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
  .flow > div { padding: 14px 17px; }
  .flow strong { font-size: 18px; margin: 2px 0 4px; }
  .flow p { font-size: 13px; }
  .flow > div:not(:last-child)::after { content: "↓"; right: 16px; top: auto; bottom: -12px; font-size: 15px; }
  .table-head { display: none; }
  .service-row { grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 16px 0; align-items: start; border-top: 1px solid var(--rule); border-bottom: 0; }
  .service-row h3 { grid-column: 1 / -1; font-size: 18px; }
  .service-name br { display: none; }
  .service-name small { display: inline; font-size: 12px; }
  .service-row p { font-size: 13px; line-height: 1.65; }
  .service-row p::before { content: attr(data-label); display: block; font-size: 11px; color: var(--ink-2); margin-bottom: 2px; }
  .inline-cta { display: block; padding: 18px 16px; margin-top: 16px; }
  .inline-cta p { font-size: 15px; margin-bottom: 14px; }

  .why { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .why .num { font-size: 44px; margin-bottom: 16px; }
  .why h3 { font-size: 21px; }
  .why p { font-size: 15px; }

  .papers { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .paper > .paper__img img { aspect-ratio: 2.5; }
  .paper h3 { font-size: 19px; }
  .paper p { font-size: 14px; }
  .blog { margin-top: 40px; padding-top: 20px; }
  .analysis-note h4 { font-size: 19px; }
  .analysis-note p { font-size: 14px; }
  .analysis-note thead th { font-size: 12px; }
  .analysis-note th, .analysis-note td { padding: 7px 5px; }
  .analysis-note tbody th, .analysis-note td { font-size: 14px; }
  .publication { grid-template-columns: minmax(0, 1fr) 15px; gap: 3px 9px; padding: 14px 0; }
  .publication time, .publication > div { grid-column: 1; }
  .publication .ar { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .publication strong { font-size: 15px; }

  .company .c-head { flex-wrap: wrap; }
  .profile-sample { flex: 1 0 100%; max-width: none; margin: 4px 0 0; display: grid; grid-template-columns: 96px 1fr; gap: 0 14px; align-items: center; }
  .profile-sample img { grid-row: 1 / 3; aspect-ratio: 1.68; }
  .profile-sample span { margin: 0; align-self: end; }
  .facts > div { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
  .facts dd { font-size: 14px; }
  .facts dt { font-size: 12px; }
  .map iframe { height: 260px; }

  .lists > div:last-child { margin-top: 44px; }
  .list a { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }

  .fin { padding-block: 72px; }
  .fin__txt h2 { font-size: 30px; }
  .fin .acts { margin-top: 32px; }

}
@media (max-width: 600px) {
  .inline-cta .acts, .fin .acts { width: 100%; }
}
/* 統合時の調整: 901〜1180px で実績の5つの数字が横に収まらない（1024px で 9px はみ出し）ため、数字を一段小さく */
@media (min-width: 901px) and (max-width: 1180px) { .nums div { padding-inline: 16px; } .nums b { font-size: 3.9vw; } .nums div:first-child b { font-size: 6.6vw; } }
/* 320px で「1,500本以上」がはみ出すため */
@media (max-width: 360px) { .nums b { font-size: 34px; } }
/* 押しやすさ（ロゴ・フッターのリンクの押せる高さを 24px 以上に） */
/* ボタンにも Codex案と同じ右上の矢印（2026-11-29 原田さん「お問い合わせ・資料ダウンロードにも矢印。他の箇所でも同様」）: 文字は左、矢印は右 */
.btn .ar { font-size: 17px; }
.fv__act .btn, .acts .btn { justify-content: space-between; gap: 16px; }
.fv__act .btn, .acts .btn { padding: 0 22px; min-width: 188px; }
/* 実績の数字のカウントアップ（2026-11-29 原田さんの要望）: 見えたときに1回だけ、0から確定値まで約1.4秒。
   HTML には確定値を書いておく（スクリプトが動かない・動きを減らす設定・検索エンジンでは確定値のまま）。桁が増えても横にずれないよう、確定値の幅を先に確保する */
.cnt { display: inline-flex; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.cnt__d { display: inline-block; height: 1em; overflow: hidden; }
.cnt__s { display: flex; flex-direction: column; will-change: transform; }
.cnt__s > span { height: 1em; line-height: 1; }
