@charset "UTF-8";
/* =========================================================
   株式会社DecisionMaker  コーポレートサイト 共通スタイル
   Navy #002060 / Orange #ED7D31  (CLAUDE.md §3-29 準拠)
   モバイルファースト
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  --navy:        #002060;
  --navy-light:  #1B3B7A;
  --orange:      #ED7D31;
  --orange-dark: #C9611C;
  /* 白抜き文字を載せられる濃さのオレンジ。白とのコントラスト比 4.56:1 で
     WCAG 2.2 の AA (通常文字 4.5:1) を満たす。--orange は 2.77:1、
     --orange-dark でも 4.03:1 で届かないため、この 1 色を足している */
  --orange-deep: #B95C10;
  --orange-tint: #FDF0E4;   /* 上記オレンジ列の本文セル。墨文字とのコントラスト 15.55:1 */
  --ink:         #1A1A1A;
  --gray:        #4A4A4A;
  --gray-light:  #767676;
  --line:        #DDE2EA;
  --bg-soft:     #F2F4F8;
  --white:       #FFFFFF;

  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Meiryo UI",
          "Yu Gothic UI", "Noto Sans JP", sans-serif;

  --wrap: 1080px;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0,32,96,.07);
  --shadow-lg: 0 6px 24px rgba(0,32,96,.11);
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
ul, ol { padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; }

/* ---------- レイアウト ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding: 52px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy a { color: #BBD4FF; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.header__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px;
}
.logo { display: flex; align-items: center; text-decoration: none; min-width: 0; }
/* ロゴは 1 枚の SVG (assets/img/logo.svg = マーク + 株式会社DecisionMaker)。
   viewBox は 1380 x 152.2 なので縦横比は 9.067:1。高さだけ指定して幅は成り行きにする。
   社名は Noto Sans JP をアウトライン化したパスなので、閲覧環境の書体に左右されない。
   高さの目安: 社名の字面は画像高の 100/152.2 = 65.7% なので、
   高さ 30px でおおむね 20px (旧 .logo__mark の 1.24rem) 相当に見える。
   モバイルの 22px は、幅 199px = 旧テキストロゴとほぼ同じ footprint になる値。
   24px にすると 320px 幅でハンバーガーとの間隔が 5.4px しか残らず窮屈になる。
   ※ 幅 110px を下回ると社名がつぶれるため、それ以下ではマーク単体
      (assets/img/logo-mark.svg) に切り替えること。ここでは最小でも 199px あるので不要。 */
.logo__img { display: block; height: 22px; width: auto; }

.navToggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px;
  background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.navToggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: .22s; }
.navToggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navToggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navToggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav[data-open="true"] {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.nav__list { list-style: none; margin: 0; padding: 8px 20px 18px; }
.nav__list a {
  display: block; padding: 13px 2px; text-decoration: none;
  color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line);
}
.nav__list a[aria-current="page"] { color: var(--orange-dark); }
.nav__cta { margin-top: 14px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 700; text-decoration: none; text-align: center;
  transition: .18s; border: 2px solid transparent; line-height: 1.5;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--sm { padding: 9px 20px; font-size: .88rem; }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

/* ---------- 見出し ---------- */
.hgroup { margin-bottom: 30px; }
.hgroup__en { display: block; font-size: .72rem; letter-spacing: .16em; color: var(--orange); font-weight: 700; }
h1, h2, h3, h4 { line-height: 1.45; letter-spacing: .01em; }
h1 { font-size: 1.72rem; color: var(--navy); margin: 0 0 14px; }
h2 { font-size: 1.42rem; color: var(--navy); margin: 0 0 12px; }
h3 { font-size: 1.1rem; color: var(--navy); margin: 30px 0 10px; }
h4 { font-size: 1rem; color: var(--gray); margin: 20px 0 6px; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.lead { font-size: 1.03rem; color: var(--gray); margin: 0 0 8px; }

/* ---------- ページヘッダー (下層) ---------- */
.pagehead { background: var(--navy); color: var(--white); padding: 42px 0 38px; }
.pagehead h1 { color: var(--white); margin: 6px 0 8px; }
.pagehead p { color: #D3DCEE; margin: 0; font-size: .95rem; }
.pagehead .hgroup__en { color: var(--orange); }

/* ---------- パンくず ---------- */
.crumbs { font-size: .8rem; color: var(--gray-light); padding: 12px 0; border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }

/* ---------- ヒーロー ---------- */
.hero { background: var(--navy); color: var(--white); padding: 60px 0 56px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(237,125,49,.10); pointer-events: none;
}
.hero__tag { color: var(--orange); font-weight: 700; letter-spacing: .06em; margin: 0 0 12px; font-size: .95rem; }
/* キャッチ (社長の決断を、実現する。) — 名乗りより一段小さく置く */
.hero__catch {
  font-size: 1.55rem; font-weight: 700; color: var(--white);
  margin: 0 0 10px; line-height: 1.32; letter-spacing: .015em;
}
/* 名乗り (h1) — ヒーロー内で最大。「結局、何者なのか」に一発で答える行 */
.hero__title {
  font-size: 2.05rem; font-weight: 700; color: var(--white);
  margin: 0 0 18px; line-height: 1.28; letter-spacing: .015em; max-width: 20em;
}
.hero__sub { font-size: 1.04rem; color: #E2E8F5; margin: 0; max-width: 34em; }
.hero .btn-row { position: relative; z-index: 1; }

/* ---------- カード ---------- */
.cards { display: grid; gap: 18px; margin-top: 8px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
}
.card__num { font-size: .74rem; font-weight: 700; color: var(--orange); letter-spacing: .1em; }
.card h3 { margin: 6px 0 10px; font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.card--accent { border-top: 4px solid var(--orange); }

/* ---------- 数値バッジ ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; text-align: center;
}
.section--navy .stat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.stat__num { display: block; font-size: 1.62rem; font-weight: 700; color: var(--orange); line-height: 1.2; }
.stat__label { display: block; font-size: .8rem; color: var(--gray); margin-top: 5px; }
.section--navy .stat__label { color: #D3DCEE; }

/* ---------- チェックリスト ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li {
  background: var(--white); border-left: 4px solid var(--orange);
  padding: 15px 18px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
  font-weight: 600;
}

/* ---------- 定義リスト風 ---------- */
.deflist { display: grid; gap: 16px; margin: 0; }
.deflist dt { font-weight: 700; color: var(--navy); }
.deflist dd { margin: 4px 0 0; color: var(--gray); }

/* ---------- テーブル ---------- */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { font-size: .93rem; background: var(--white); }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--navy); color: var(--white); font-weight: 700; white-space: nowrap; }
.tbl tbody th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; width: 30%; }
.tbl--price td:first-child { white-space: nowrap; }
/* 比較表で自社の列 (最終列) を一本の帯として浮かせる。
   .tbl は他に7つあるため、修飾クラスで service.html の比較表だけに限定している
   (無条件に .tbl thead th:last-child と書くと、将来ヘッダ付きの表を足したときに
    最終列が勝手にオレンジになる) */
.tbl--compare thead th:last-child { background: var(--orange-deep); }
.tbl--compare tbody td:last-child { background: var(--orange-tint); font-weight: 700; }

/* ---------- 引用 (第三者評価) ---------- */
.quote {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: var(--shadow); margin: 0;
}
.quote p { margin: 0 0 12px; font-size: .97rem; }
/* 出典行はカード下端に寄せる (3カラムで高さが揃い、閉じ引用符とも同じ行に並ぶ)
   右側は閉じ引用符と重ならないよう空けておく。狭い画面では出典行が
   不要に折り返さないよう、確保する幅と引用符を一段小さくしている */
.quote footer { margin-top: auto; font-size: .84rem; color: var(--gray-light); padding-right: 20px; }
.quote::before { content: "“"; display: block; font-size: 2.4rem; color: var(--orange); line-height: .8; margin-bottom: 4px; }
/* 左上の開き引用符と対になる閉じ引用符を、カード右下に置く */
.quote::after {
  content: "”"; position: absolute; right: 12px; bottom: 4px;
  font-size: 1.9rem; color: var(--orange); line-height: .8; pointer-events: none;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 17px 46px 17px 18px; font-weight: 700; color: var(--navy);
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--orange); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__a { padding: 0 18px 18px; color: var(--gray); border-top: 1px solid var(--line); padding-top: 15px; }
.faq .faq__a p:first-child { margin-top: 0; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- 進め方 (ステップ) ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 20px 22px; box-shadow: var(--shadow); position: relative;
}
.step__no {
  display: inline-block; background: var(--navy); color: var(--white);
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 9px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p:last-child { margin-bottom: 0; }

/* ---------- 代表プロフィール ---------- */
.profile { display: grid; gap: 22px; }
.profile__photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 320px; margin-inline: auto; }
.profile__name { font-size: 1.16rem; font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.profile__role { font-size: .86rem; color: var(--gray-light); margin: 0 0 16px; }

/* ---------- 注記・出典 ---------- */
.note {
  font-size: .84rem; color: var(--gray); background: var(--bg-soft);
  border-left: 3px solid var(--gray-light); padding: 12px 15px; border-radius: 0 6px 6px 0;
}
.note--warn { border-left-color: var(--orange); }
.src { font-size: .8rem; color: var(--gray-light); margin-top: 10px; }

/* ---------- CTA 帯 ---------- */
.cta { background: var(--navy); color: var(--white); padding: 46px 0; text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: #D3DCEE; max-width: 34em; margin-inline: auto; }
.cta .btn-row { align-items: center; }

/* =========================================================
   お問い合わせフォーム
   規範: WCAG 2.2 (3.3.1/3.3.2/3.3.3/1.3.5) / デジタル庁デザインシステム
   ========================================================= */

/* ---------- 安心材料のリスト ---------- */
.assure {
  list-style: none; padding: 18px 20px; margin: 22px 0 0;
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--orange); border-radius: var(--radius);
  font-size: .93rem;
}
.assure li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.assure li:last-child { margin-bottom: 0; }
.assure li::before {
  content: ""; position: absolute; left: 4px; top: .48em;
  width: 9px; height: 5px; border-left: 2.4px solid var(--orange);
  border-bottom: 2.4px solid var(--orange); transform: rotate(-45deg);
}

/* ---------- フォーム本体 ---------- */
.frm {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px 28px; box-shadow: var(--shadow);
}
/* fieldset も .fld を名乗るため、:last-of-type は使わない
   (fieldset は「fieldset の中での last-of-type」に該当してしまい、
    途中の要素なのに下余白が消えるため) */
.fld { margin-bottom: 26px; border: 0; padding: 0; min-width: 0; }
.frm > .fld:last-child { margin-bottom: 0; }

/* ヘッダーが固定表示のため、エラーからジャンプした先が隠れないようにする */
.fld, .errsum, .frm input, .frm select, .frm textarea { scroll-margin-top: 86px; }

.frm label,
.frm legend {
  display: block; font-weight: 700; color: var(--navy);
  font-size: .96rem; margin-bottom: 6px; padding: 0;
}

/* 要否ラベル (デジタル庁方式: 全角の「※」から書き始める。半角アスタリスクは使わない) */
.req, .opt {
  display: inline-block; font-size: .76rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; margin-left: 6px;
  vertical-align: 2px; white-space: nowrap;
}
.req { background: #FDECEC; color: #C00000; border: 1px solid #F0C4C4; }
.opt { background: var(--bg-soft); color: var(--gray); border: 1px solid var(--line); }

/* サポートテキスト (プレースホルダは使わない) */
.hint {
  font-size: .85rem; color: var(--gray); margin: 0 0 8px; line-height: 1.65;
}

/* エラーテキスト (冒頭に全角アスタリスク。色だけに頼らない) */
.err {
  font-size: .87rem; font-weight: 700; color: #C00000;
  margin: 0 0 8px; line-height: 1.6;
}

/* 入力欄 */
.frm input[type="text"],
.frm input[type="email"],
.frm input[type="tel"],
.frm select,
.frm textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #B9C2D0;
  border-radius: 6px; padding: 11px 12px;
  -webkit-appearance: none; appearance: none;
}
.frm textarea { line-height: 1.75; resize: vertical; min-height: 150px; }
.frm select {
  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='%234A4A4A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  background-size: 12px; padding-right: 38px;
}
.frm input:focus,
.frm select:focus,
.frm textarea:focus {
  outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy);
}
.fld--err input,
.fld--err select,
.fld--err textarea { border-color: #C00000; border-width: 2px; }

/* チェックボックス */
.chks { display: flex; flex-direction: column; gap: 2px; }
.chk {
  display: flex; align-items: flex-start; gap: 11px;
  font-weight: 400 !important; color: var(--ink) !important;
  margin-bottom: 0 !important; padding: 12px 12px; border-radius: 6px;
  cursor: pointer; font-size: .95rem; line-height: 1.6;
  min-height: 44px;   /* 指でタップできる大きさを確保 */
  box-sizing: border-box;
}
.chk:hover { background: var(--bg-soft); }
.chk input[type="checkbox"] {
  width: 21px; height: 21px; margin: 1px 0 0; flex: 0 0 auto;
  accent-color: var(--navy); cursor: pointer;
}
.chk input[type="checkbox"]:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.chk--consent {
  background: var(--bg-soft); border: 1.5px solid var(--line);
  padding: 14px 15px; font-weight: 700 !important;
}
.fld--err .chk--consent { border-color: #C00000; border-width: 2px; }

/* 利用目的の明示 (個人情報保護法 21条2項。送信ボタンの手前に置く) */
.purpose {
  background: var(--bg-soft); border-left: 4px solid var(--navy);
  border-radius: var(--radius); padding: 16px 18px; margin: 30px 0 18px;
}
.purpose h3 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); }
.purpose p { margin: 0; font-size: .87rem; line-height: 1.8; color: var(--gray); }
.purpose a { color: var(--navy); }

/* エラーサマリー (GOV.UK 方式。ページ最上部に置き、フォーカスを移す) */
.errsum {
  background: #FDECEC; border: 2px solid #C00000; border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 24px;
}
.errsum:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.errsum h3 { margin: 0 0 10px; color: #C00000; font-size: 1.05rem; }
.errsum ul { margin: 0; padding-left: 1.2em; }
.errsum li { margin-bottom: 6px; font-size: .92rem; line-height: 1.6; }
.errsum li:last-child { margin-bottom: 0; }
.errsum a { color: #C00000; font-weight: 700; }

/* ハニーポット (人には見えず、支援技術からも隠す。ボットだけが埋める) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 大きい送信ボタン */
.btn--lg { font-size: 1.05rem; padding: 16px 34px; width: 100%; }

/* ---------- 送信完了ページ ---------- */
.done {
  background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--orange); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.done__lead { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-top: 0; }
.done p { line-height: 1.9; }

/* ---------- フッター ---------- */
.footer { background: #001338; color: #C6D0E4; padding: 38px 0 26px; font-size: .88rem; }
.footer a { color: #C6D0E4; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__brand { font-size: 1.05rem; font-weight: 700; color: var(--white); margin: 0 0 6px; }
/* フッターは紺地 (#001338) なので、色を置換するのではなく白ヌキ版のファイル
   (logo-kn.svg) をそのまま使う。器を持つ形のロゴは色置換では白ヌキが作れないため、
   ロゴ側でモードごとに図形が組み直されている。 */
.footer__logo { display: block; height: 26px; width: auto; margin: 0 0 10px; }
.footer__nav { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer__copy { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; color: #92A2BE; }

/* ---------- ユーティリティ ---------- */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.small { font-size: .87rem; }
.muted { color: var(--gray-light); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--white);
  padding: 10px 18px; z-index: 999;
}
.skip:focus { left: 0; }

/* =========================================================
   タブレット 768px 以上
   ========================================================= */
@media (min-width: 768px) {
  body { font-size: 16.5px; }
  .section { padding: 68px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.62rem; }
  .hero { padding: 84px 0 78px; }
  .hero__catch { font-size: 2rem; }
  .hero__title { font-size: 2.8rem; }
  .hero__sub { font-size: 1.12rem; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats--8 { grid-template-columns: repeat(4, 1fr); }
  .checklist { grid-template-columns: repeat(3, 1fr); }
  .profile { grid-template-columns: 300px 1fr; align-items: start; gap: 34px; }
  .profile__photo img { max-width: none; }
  .deflist--2 { grid-template-columns: repeat(2, 1fr); gap: 20px 34px; }
  .pagehead { padding: 58px 0 52px; }
  .cta { padding: 62px 0; }
  .logo__img { height: 27px; }
}

/* =========================================================
   デスクトップ 1024px 以上
   ========================================================= */
@media (min-width: 1024px) {
  .navToggle { display: none; }
  .nav { display: block !important; position: static; box-shadow: none; border: 0; background: none; }
  .nav__list { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; }
  .nav__list a { border: 0; padding: 8px 13px; font-size: .93rem; font-weight: 600; }
  .nav__list a[aria-current="page"] { color: var(--orange-dark); }
  .nav__cta { margin: 0 0 0 8px; }
  .header__inner { min-height: 70px; }
  .logo__img { height: 30px; }
  .hero__catch { font-size: 2.2rem; }
  .hero__title { font-size: 3.15rem; }
  .stats--8 { grid-template-columns: repeat(4, 1fr); }
  /* 幅に余裕があるので、閉じ引用符を開き引用符と同じ大きさに戻す */
  .quote footer { padding-right: 34px; }
  .quote::after { right: 18px; font-size: 2.4rem; }
}

/* ---------- フォーム: タブレット以上 ---------- */
@media (min-width: 768px) {
  .frm { padding: 34px 32px 36px; }
  .fld { margin-bottom: 28px; }
  .btn--lg { width: auto; min-width: 300px; }
  .chks { gap: 4px; }
  .assure { padding: 20px 24px; }
  .done { padding: 32px 30px; }

  /* 会社名・氏名など短い欄は幅を絞る (無闇に横長にしない) */
  .frm input[type="text"],
  .frm input[type="email"],
  .frm input[type="tel"] { max-width: 30em; }
  .frm select { max-width: 24em; }
}

/* =========================================================
   体制図の左右比較 (orgc)  service.html「既存の選択肢との違い」
   HTML要素とCSSのみで描画 (画像・SVG・JSは使わない)。
   左右で行構成を揃え、中段だけを変えて対比させている。
   左 = 専門家と部門が1対1でバラバラに縦線でつながる
   右 = 1つのノードから横一本のレールを介して5部門すべてに届く
   ========================================================= */
.orgc { margin: 18px 0 26px; }
.orgc__cap { margin: 0 0 16px; color: var(--gray); }
.orgc__grid { display: grid; gap: 16px; }

.orgc__panel {
  min-width: 0;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 14px 16px;
}
/* DecisionMaker側を主役に (既存 .card--accent と同じ流儀) */
.orgc__panel--dm { border-top: 4px solid var(--orange); }
.orgc__panel h4 { margin: 0 0 4px; font-size: .98rem; color: var(--navy); font-weight: 700; }
.orgc__panel-sub { margin: 0 0 14px; font-size: .82rem; color: var(--gray); line-height: 1.7; }

/* ノード (社長・チーム・代表) */
.orgc__node {
  min-width: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  padding: 9px 10px; text-align: center;
  font-size: .84rem; font-weight: 700; line-height: 1.5; color: var(--ink);
}
.orgc__node small {
  display: block; margin-top: 2px;
  font-size: .74rem; font-weight: 400; color: var(--gray); line-height: 1.5;
}
.orgc__node--ceo { background: var(--navy); border-color: var(--navy); color: var(--white); }
.orgc__node--ceo small { color: #D3DCEE; }
.orgc__node--team { background: var(--bg-soft); }
.orgc__node--dm { border: 2px solid var(--orange); color: var(--navy); box-shadow: var(--shadow); }

/* つなぎ線 (装飾。意味はテキスト側で担保し、aria-hidden にしてある) */
.orgc__stem { width: 1px; height: 14px; margin: 0 auto; background: var(--gray-light); }
.orgc__panel--dm .orgc__stem { width: 2px; background: var(--orange); }
/* 左パネルの「社長直下」と「部門ごとの専門家」は繋がらない。線を引かず余白で示す */
.orgc__gap { height: 14px; }

/* 5部門へ分岐する縦線。部門グリッドと同じ5列なので座標計算が要らない */
.orgc__ties { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.orgc__ties span { width: 1px; height: 12px; justify-self: center; background: var(--gray-light); }
.orgc__panel--dm .orgc__ties span { width: 2px; background: var(--orange); }

/* 1つの窓口ですべてに届くことを示す横一本のレール */
.orgc__rail {
  margin: 0; padding: 8px 10px; text-align: center;
  border: 2px solid var(--orange); border-radius: 999px; background: var(--white);
  color: var(--navy); font-size: .78rem; font-weight: 700; line-height: 1.5;
}

/* 行ラベル。チップ側から「部門」「コンサル」を落として文字を大きく保つための受け皿 */
.orgc__rowlabel {
  margin: 10px 0 5px; font-size: .74rem; font-weight: 700;
  color: var(--gray-light); letter-spacing: .04em;
}

/* 部門・専門家の行。常に5列。狭い画面ではボックス内で折り返す */
.orgc__row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.orgc__row li {
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  padding: 8px 3px; text-align: center;
  font-size: .74rem; font-weight: 700; line-height: 1.4; color: var(--ink);
}
.orgc__row--dept li { background: var(--bg-soft); }
/* 単一テーマごとに別々であることを、色ではなく線種でも示す */
.orgc__row--spec li { border-style: dashed; border-color: var(--gray-light); color: var(--gray); }

/* うたい文句の帯 (右パネルのみ) */
.orgc__pitch {
  margin: 16px 0 0; padding: 11px 12px; text-align: center;
  background: var(--orange-tint); border-radius: var(--radius);
  color: var(--navy); font-size: .84rem; font-weight: 700; line-height: 1.6;
}

/* 注記はパネル下端に寄せ、2カラム時に左右で高さが揃うようにする
   (既存 .quote footer と同じ考え方) */
.orgc__foot {
  margin: 0; margin-top: auto; padding-top: 14px;
  font-size: .8rem; color: var(--gray-light); line-height: 1.75;
}

@media (min-width: 768px) {
  .orgc__panel { padding: 22px 18px 20px; }
  .orgc__panel h4 { font-size: 1.05rem; }
  .orgc__node { font-size: .92rem; padding: 11px 12px; }
  .orgc__node small { font-size: .8rem; }
  .orgc__rail { font-size: .86rem; padding: 10px 12px; }
  .orgc__pitch { font-size: .92rem; padding: 13px 14px; }
  .orgc__row, .orgc__ties { gap: 8px; }
  .orgc__row li { font-size: .84rem; padding: 11px 6px; }
  .orgc__rowlabel { font-size: .78rem; }
  .orgc__stem { height: 18px; }
  .orgc__ties span { height: 16px; }
  .orgc__gap { height: 18px; }
}

@media (min-width: 1024px) {
  /* 1024px 未満は縦積み。768px で2列にすると1パネル約350pxとなり5部門が並ばない */
  .orgc__grid { grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
  .orgc__row li { font-size: .78rem; padding: 10px 4px; }
  .orgc__row, .orgc__ties { gap: 6px; }
}

/* ---------- 印刷 ---------- */
@media print {
  .header, .footer__nav, .btn-row, .cta { display: none; }
  body { font-size: 11pt; }
  .frm, .assure, .done { box-shadow: none; }
  /* 体制図はページ跨ぎで分断させない。背景色を印刷しない設定でも枠線で読めるようにする */
  .orgc__panel { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
  .orgc__node--ceo { background: var(--white); color: var(--navy); }
}

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
