@charset "UTF-8";

/* =========================================================
   導入事例（一覧 / 詳細）

   LP本体（../styles.css）のトークンとヘッダー・フッターをそのまま使い、
   このファイルには事例ページ固有のパーツだけを置く。
   設計方針もLPに合わせる：影を使わない／装飾のグラデーションを使わない／
   面の区切りは1pxのヘアラインと余白で作る。

   1. 共通（パンくず・ページヘッダー・タグ）
   2. 一覧ページ
   3. 詳細ページ
   4. 詳細ページ（一問一答のインタビュー形式）
   5. 末尾CTA
   6. レスポンシブ
   ========================================================= */

/* ---------- 1. 共通 ---------- */

/* 事例ページはヒーローを持たない。ヘッダー直下から本文が始まると
   ロゴと見出しが詰まって見えるので、薄い面をページヘッダーとして敷く */
.cs-head {
  padding: clamp(30px, 4vw, 52px) 0 clamp(34px, 4.4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-faint);
}

.cs-breadcrumb {
  margin: 0 0 clamp(18px, 2.2vw, 26px);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.cs-breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cs-breadcrumb li { display: flex; align-items: center; gap: 6px; }
/* 区切りは文字として置かず擬似要素にする。読み上げに「スラッシュ」が混ざらない */
.cs-breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.cs-breadcrumb a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
/* 現在地は記事タイトルそのままで長くなる。1行に丸めて折り返させない */
.cs-breadcrumb [aria-current] {
  max-width: min(52vw, 460px);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* 業種などのラベル。LPの .eyebrow と違って複数並ぶので、面を持たせて粒として見せる */
.cs-tags { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tags li {
  padding: 5px 13px; border-radius: var(--pill);
  background: var(--green-tint); color: var(--green-dark);
  font-size: 12px; font-weight: 600; line-height: 1.5;
}

/* ---------- 2. 一覧ページ ---------- */
.cs-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.02em; }
.cs-head__lead { margin: 16px 0 0; max-width: 720px; font-size: 15px; }

/* 導入企業のロゴを横並びで見せる帯。事例が増えるほど信頼感を伝えやすくなるため、
   1社の現状でも先に置いておく（flex-wrapで自然に複数行へ増える） */
.cs-clients { padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.cs-clients__label { margin: 0 0 18px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.cs-clients__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 4vw, 56px); }
.cs-clients__logo { height: 28px; width: auto; }

.cs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* 写真の掲載可否が事例ごとに異なるため、カードは文字だけで成立する構成にしている。
   上端の緑のヘアラインが、画像の代わりにカードの頭を作る */
.cs-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s ease;
}
.cs-card:hover { border-color: var(--green); }
.cs-card__body { flex: 1; padding: clamp(22px, 2.2vw, 28px); display: flex; flex-direction: column; }
.cs-card__company { margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.6; }
.cs-card__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.65; letter-spacing: -.01em; }
/* タイトルのリンクをカード全面に広げる。カードごと押せるほうが指で扱いやすい */
.cs-card__title a::after { content: ""; position: absolute; inset: 0; }
.cs-card__excerpt { margin: 14px 0 0; font-size: 13.5px; line-height: 1.9; }
/* ロゴは上の導入企業帯にあるため、カード内は控えめにアイコン＋社名だけ添える */
.cs-card__brand { margin: 14px 0 0; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.cs-card__brand svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cs-card__meta { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cs-card__meta li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; font-size: 12.5px; line-height: 1.7; }
.cs-card__meta b { color: var(--muted); font-weight: 500; }
.cs-card__more { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--green); font-size: 13px; font-weight: 700; }
.cs-card__more::after { content: " →"; }

/* 掲載本数が少ないうちは、次の事例を準備中であることを1枠使って伝える */
.cs-card--upcoming { border-top-color: var(--line-strong); background: var(--bg-faint); }
.cs-card--upcoming .cs-card__title { color: var(--muted); }
.cs-card--upcoming .cs-card__excerpt { color: var(--muted); }

/* ---------- 3. 詳細ページ ---------- */
.cs-article { padding: clamp(44px, 5vw, 72px) 0 clamp(48px, 5.6vw, 80px); }
.cs-article__inner { width: min(90vw, 760px); margin: 0 auto; }

.cs-article h1 { margin: 0; font-size: clamp(24px, 2.9vw, 36px); font-weight: 700; line-height: 1.55; letter-spacing: -.02em; }

/* 導入企業のロゴ＋社名。ロゴは白背景前提のJPEGなので、面を持たせず素のまま置く */
.cs-article__brand { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cs-article__logo { height: 28px; width: auto; }
.cs-article__company { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.cs-article__lead { margin: 22px 0 0; font-size: 15px; line-height: 2; }

/* 本文中に挟む写真。ポートレート写真をそのまま見せたいので、切り抜かず幅だけ絞って中央に置く */
.cs-figure { margin: clamp(28px, 3.2vw, 40px) auto 0; max-width: 420px; }
.cs-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--radius); }
.cs-figure figcaption { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; text-align: center; }

/* 「背景と課題」「効果」の2枠。ここだけ読んで離脱する読者もいるので、
   本文より先に、本文と同じ幅で置く */
.cs-summary { margin: clamp(34px, 4vw, 48px) 0 0; display: grid; gap: 16px; }
.cs-summary__box { padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-faint); }
.cs-summary__box--effect { border-color: rgba(43, 176, 40, .32); background: var(--green-tint); }
.cs-summary__box h2 { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.cs-summary__box h2::after {
  content: ""; display: block; width: 26px; height: 2px; margin-top: 10px;
  border-radius: var(--pill); background: var(--green);
}
.cs-summary__box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.cs-summary__box li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.9; }
/* 課題は点、効果はチェック。同じ形にすると2枠の役割が読み分けられない */
.cs-summary__box li::before {
  content: ""; position: absolute; left: 6px; top: .72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
}
.cs-summary__box--effect li::before {
  left: 4px; top: .62em;
  width: 10px; height: 5px; border-radius: 0; background: none;
  border-left: 1.8px solid var(--green); border-bottom: 1.8px solid var(--green);
  transform: rotate(-45deg);
}

/* 本文 */
.cs-body { margin: clamp(40px, 4.8vw, 60px) 0 0; }
.cs-body > h2 {
  margin: clamp(44px, 5vw, 62px) 0 0; padding-top: clamp(30px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
  font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; line-height: 1.6;
}
.cs-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cs-body > h3 { margin: clamp(30px, 3.2vw, 40px) 0 0; font-size: 17px; font-weight: 700; }
.cs-body p { margin: 20px 0 0; font-size: 15.5px; line-height: 2.05; }

/* 本文中の比較表。影やゼブラ縞は使わず、ヘアラインと余白だけで行を区切る */
.cs-table-wrap { margin: 26px 0 0; overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.cs-table th, .cs-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cs-table th { color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.cs-table td:first-child, .cs-table th:first-child { white-space: nowrap; }
.cs-table td { color: var(--ink); }

/* 発言の引用。カギ括弧付きの発言をそのまま置くので引用符の装飾は足さず、
   左の縦線と文字の太さだけで地の文と区別する */
.cs-body blockquote {
  margin: 26px 0 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--green);
}
.cs-body blockquote p { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 2; }
.cs-body blockquote p + p { margin-top: 14px; }

/* 企業情報 */
.cs-profile { margin: clamp(44px, 5vw, 64px) 0 0; padding-top: clamp(30px, 3.4vw, 40px); border-top: 1px solid var(--line); }
.cs-profile h2 { margin: 0 0 18px; font-size: 17px; font-weight: 700; }
.cs-profile dl { margin: 0; border-top: 1px solid var(--line); }
.cs-profile div { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.cs-profile dt { padding: 14px 16px 14px 0; color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1.8; }
.cs-profile dd { margin: 0; padding: 14px 0; color: var(--ink); font-size: 14px; line-height: 1.8; }

.cs-note { margin: 22px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }

/* 関連情報 */
.cs-related { margin: clamp(38px, 4.2vw, 54px) 0 0; padding: clamp(22px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-faint); }
.cs-related h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.cs-related ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.cs-related a { color: var(--body); font-size: 13.5px; font-weight: 500; }
.cs-related a::before { content: "→ "; color: var(--green); font-weight: 700; }
.cs-related a:hover { color: var(--green); }

/* 一覧へ戻る */
.cs-back { margin: clamp(34px, 3.8vw, 46px) 0 0; text-align: center; }
.cs-back a { color: var(--green); font-size: 14px; font-weight: 700; }
.cs-back a::before { content: "← "; }
.cs-back a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 4. 詳細ページ（一問一答のインタビュー形式） ---------- */
/* 記者が地の文で語るドキュメンタリー調に対し、取材の場をそのまま再現する形式。
   本文がほぼ全部「発言」になるため、3で使っている blockquote の緑の縦線は使わない
   （全段落に縦線が付いて記事が縞模様になる）。質問と回答の差だけで構造を見せる。 */

/* 冒頭ボックスと本編の橋渡しになる引き文。地の文はここと締めの2箇所しかない */
.cs-intro {
  margin: clamp(34px, 4vw, 46px) 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--green);
  font-size: 15.5px; font-weight: 500; line-height: 2;
}

.cs-body--qa .cs-qa { margin: clamp(30px, 3.4vw, 42px) 0 0; }

/* 質問。プロワンの「── 質問文」に当たる部分。em ダッシュを文字で置くと
   読み上げに乗るうえ字形がフォント依存になるので、緑のヘアラインで代わりに引く */
.cs-body--qa .cs-qa__q {
  position: relative;
  margin: 0; padding-left: 36px;
  color: var(--ink); font-size: 16.5px; font-weight: 700; line-height: 1.85;
}
.cs-body--qa .cs-qa__q::before {
  content: ""; position: absolute; left: 0; top: .95em;
  width: 24px; height: 2px; border-radius: var(--pill); background: var(--green);
}

/* 回答。質問と同じ左端に揃えず、少し内側に入れて「答えている」入れ子を見せる */
.cs-body--qa .cs-qa__a { margin: 0; padding-left: 36px; }
.cs-body--qa .cs-qa__a p { margin: 16px 0 0; font-size: 15.5px; line-height: 2.05; }

/* 話者名。太字だけだと本文の強調と区別がつかないので、色も変えて行頭の目印にする。
   「：」は擬似要素にせずHTML側の実テキストで持たせる（引用をコピーしたときに
   「小椋様当社は…」と地続きにならないようにするため） */
.cs-qa__speaker { color: var(--green-dark); font-weight: 700; }

/* 回答の合間に挟むサービス説明。発言ではないことが一目で分かるよう、
   「導入の効果」ボックスと同じ緑の面を使って地の文と切り分ける */
.cs-servicebox {
  margin: clamp(32px, 3.6vw, 44px) 0 0;
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid rgba(43, 176, 40, .32); border-radius: var(--radius);
  background: var(--green-tint);
}
.cs-servicebox h3 { margin: 0 0 10px; color: var(--green-dark); font-size: 15px; font-weight: 700; line-height: 1.7; }
.cs-body .cs-servicebox p { margin: 0; font-size: 14px; line-height: 1.95; }

/* 締めの自社メッセージ */
.cs-closing {
  margin: clamp(40px, 4.6vw, 56px) 0 0; padding-top: clamp(28px, 3.2vw, 36px);
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; line-height: 2;
}

/* ---------- 5. 末尾CTA ---------- */
/* LPの .contact と同じ薄グレーの面に載せる。フォームは持たせず、LP本体へ送る */
.cs-cta { padding: clamp(52px, 6vw, 84px) 0; background: var(--bg-soft); text-align: center; }
.cs-cta h2 { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.55; }
.cs-cta p { margin: 18px auto 0; max-width: 600px; font-size: 15px; }
.cs-cta .button { margin-top: 30px; }

/* ---------- 6. レスポンシブ ---------- */
@media (max-width: 1024px) {
  .cs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cs-list { grid-template-columns: 1fr; }
  .cs-article__inner { width: 90vw; }
  .cs-body p { font-size: 15px; }
  .cs-body blockquote { padding-left: 16px; }
  .cs-body blockquote p { font-size: 15.5px; }
  /* 「時期」列をnowrapのままにすると1行がはみ出し、横スクロールしないと
     隣の列がほぼ読めなくなる。狭い画面では折り返しを許可して縦に収める */
  .cs-table { font-size: 13px; table-layout: fixed; }
  .cs-table th, .cs-table td { padding: 10px 12px; }
  .cs-table th:first-child, .cs-table td:first-child { width: 34%; white-space: normal; }
  .cs-table th:not(:first-child), .cs-table td:not(:first-child) { white-space: normal; }
  /* 一問一答は左の余白を詰める。狭い画面では入れ子より1行の文字数を優先する */
  .cs-body--qa .cs-qa__q { padding-left: 30px; font-size: 16px; }
  .cs-body--qa .cs-qa__q::before { width: 20px; }
  .cs-body--qa .cs-qa__a { padding-left: 0; }
  .cs-body--qa .cs-qa__a p { font-size: 15px; }
  .cs-intro { padding-left: 16px; font-size: 15px; }
  .cs-profile div { grid-template-columns: 1fr; }
  .cs-profile dt { padding: 14px 0 0; }
  .cs-profile dd { padding: 4px 0 14px; }
  .cs-breadcrumb [aria-current] { max-width: 100%; white-space: normal; }
  .cs-cta .button { width: 100%; }
}
