/* ============================================================================
   はてなベースアドバイザリー — 調書テーマ

   設計の土台は「監査調書・目論見書」。装飾のための図形を置かず、
   罫線・通し番号・表組み・明朝でページを構成する。
   カード（白背景＋角丸＋影）と均等グリッドは使わない。
   ========================================================================== */

:root {
  --paper:      #ffffff;
  --paper-2:    #f2f5f6;   /* 冷たい紙。暖色寄りのクリームは使わない */
  --ink:        #0a2846;   /* はてなベースの濃紺を継承 */
  --ink-2:      #45566a;
  --ink-3:      #6f7f90;
  --rule:       #ccd5dc;
  --rule-2:     #e3e9ed;
  --brass:      #8a6a2f;   /* 箔押しの真鍮。差し色はここだけ */
  --brass-2:    #f0e9d9;

  /* 書体と文字サイズは KPMG ジャパン（kpmg.com/jp）の実測値に合わせている。
     2026-09-05 に計測: 見出し 32px/700/行間42px、小見出し 20px/600/行間30px、
     本文 16px/400/行間28px/字間0.8px、書体 Noto Sans JP。
     参考までに PwC ジャパンは 見出し32px/700/行間49px、小見出し24.5px/700、本文16px/行間27.2px。 */
  --sans: "Noto Sans JP", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);          /* 見出しも同じ系統。明朝は使わない */
  --mono: var(--sans);           /* ラベルと番号も同じ系統。等幅は使わない */

  --wrap: 1140px;
  --gut: 40px;
  --rail: 148px;  /* 左の通し番号カラム */
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* 見出しが固定ヘッダーに隠れないように */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--sans); font-size: 16px; line-height: 28px;
  letter-spacing: .8px; font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* --- 共通の見出し・ラベル ------------------------------------------------ */
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; color: var(--brass); text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 {
  font-family: var(--sans); color: var(--ink); font-weight: 700; margin: 0;
  word-break: auto-phrase;   /* 日本語を文節で折り返す。非対応ブラウザは従来どおり */
  line-break: strict;
}
h2 { font-size: 32px; line-height: 42px; letter-spacing: normal; }
h3 { font-size: 20px; font-weight: 600; line-height: 30px; letter-spacing: normal; }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

/* --- ヘッダー ------------------------------------------------------------ */
.hd { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.hdw { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand .sub {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: var(--ink);
  padding-left: 16px; border-left: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--ink);
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brass); }
.nav a.now { border-bottom-color: var(--ink); }
.nav .btn { border: 1px solid var(--ink); padding: 11px 22px; border-bottom-color: var(--ink); }
.nav .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }

/* --- ヒーロー -------------------------------------------------------------
   KPMG と同じ「濃紺の面＋右に写真」の分割型。写真は人の気配が伝わる卓上の一枚。
   顔がはっきり写る写真は使わない（被写体本人の許諾が別に必要になるため）。
   無料写真の解像度が1024pxまでのため、全面背景ではなく右半分に置いている。 */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.heroin { display: grid; grid-template-columns: minmax(0, 1fr) 46%; align-items: stretch; }
.herotext {
  padding: 96px var(--gut) 108px 0; display: flex; flex-direction: column; justify-content: center;
  min-height: 480px;
}
.heroimg {
  position: relative;
  background: #0d2237 url("images/hero-people-1024.jpg") center 46% / cover no-repeat;
}
.heroimg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,40,70,.92) 0%, rgba(10,40,70,.28) 26%, rgba(10,40,70,0) 60%);
}
.herowrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); }

.hero .eyebrow { color: #cbb079; display: inline-block; position: relative; padding-top: 22px; }
.hero .eyebrow::before {
  content: ""; position: absolute; top: 0; left: 0; width: 52px; height: 2px; background: #b8974f;
}
.hero h1 {
  font-size: 32px; line-height: 42px; letter-spacing: normal; font-weight: 700; color: #fff;
  margin: 22px 0 22px; max-width: 18em;
}
.hero .std { font-size: 16px; max-width: 30em; color: #d5e0ea; line-height: 28px; word-break: auto-phrase; }
.hero .acts { display: flex; align-items: center; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero .tlink { color: #fff; border-bottom-color: rgba(255,255,255,.42); }
.hero .tlink:hover { color: #e6cf9c; border-bottom-color: #e6cf9c; }

/* 写真の出典。CC0 のため表示義務はないが、来歴として小さく出す */
.credit {
  position: absolute; left: var(--gut); bottom: 12px; z-index: 3; margin: 0;
  font-size: 10px; letter-spacing: .02em; color: rgba(255,255,255,.42); line-height: 1.6;
}
.credit a { color: rgba(255,255,255,.6); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22); }
.credit a:hover { color: #fff; }

/* ヒーロー直下の関与の時間軸 */
.phasewrap { position: relative; z-index: 2; margin-top: -46px; margin-bottom: 8px; }
.phase { border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 18px 40px -28px rgba(10,40,70,.45); }
.phase .cap {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 15px 22px; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.phase .cap span:last-child { font-size: 13px; color: var(--ink-3); }
.pgrid { display: grid; grid-template-columns: repeat(var(--phase-columns, 5), minmax(0, 1fr)); }
.pcell { padding: 20px 22px; border-right: 1px solid var(--rule-2); }
.pcell:last-child { border-right: 0; }
.pcell .t {
  font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: .04em;
  font-variant-numeric: tabular-nums; display: block; margin-bottom: 10px;
}
.pcell .d { font-size: 14px; line-height: 24px; color: var(--ink-2); }
.pcell .d a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.pcell .d a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.pcell.on { background: var(--paper-2); }
.pcell.on .t { color: var(--brass); }

/* ボタンとテキストリンク（全ページ共通） */
.cta {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--brass); color: #fff; font-weight: 500; font-size: 14px;
  padding: 15px 30px; letter-spacing: .06em; border: 1px solid var(--brass);
  transition: background .18s, color .18s, border-color .18s;
}
.cta:hover { background: #7a5c26; border-color: #7a5c26; }
.cta.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.cta.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tlink {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 3px;
}
.tlink:hover { border-bottom-color: var(--brass); color: var(--brass); }

/* 写真の出典。CC BY 4.0 の条件なので消さない */
.credit {
  position: absolute; left: var(--gut); bottom: 84px; z-index: 3; margin: 0;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em;
  color: rgba(255,255,255,.5); line-height: 1.6;
}
.credit a { color: rgba(255,255,255,.66); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.credit a:hover { color: #fff; }

/* ヒーローの下に置く関与の時間軸。写真に少し食い込ませて、
   「写真＋データ」の2層に見せる（大手ファームの作り） */
.phasewrap { position: relative; z-index: 2; margin-top: -68px; margin-bottom: 8px; }
.phase { border: 1px solid var(--rule); background: var(--paper); box-shadow: 0 18px 40px -28px rgba(10,40,70,.45); }
.phase .cap {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 15px 22px; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.phase .cap span:last-child { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; }
.pgrid { display: grid; grid-template-columns: repeat(var(--phase-columns, 5), minmax(0, 1fr)); }
.pcell { padding: 20px 22px; border-right: 1px solid var(--rule-2); }
.pcell:last-child { border-right: 0; }
.pcell .t {
  font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 500;
  letter-spacing: .06em; font-variant-numeric: tabular-nums; display: block; margin-bottom: 10px;
}
.pcell .d { font-size: 14px; line-height: 24px; color: var(--ink-2); }
.pcell .d a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.pcell .d a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.pcell.on { background: var(--paper-2); }
.pcell.on .t { color: var(--brass); }

.pgrid--contents,
.pgrid--four { --phase-columns: 4; }
.phasewrap.phasewrap--timeline { margin-top: 24px; }

/* 事実の帯。数字を作らず、確かめられる事実だけを置く */
.facts { border-bottom: 1px solid var(--rule); }
.factg { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 0; border-right: 1px solid var(--rule-2); }
.fact:last-child { border-right: 0; }
.fact:not(:first-child) { padding-left: 28px; }
.fact dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3); margin-bottom: 7px; }
.fact dd { margin: 0; font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.5; }
.fact dd small { font-size: 13px; line-height: 22px; color: var(--ink-2); display: block; letter-spacing: 0; }

/* --- セクションの型（左に通し番号、右に内容の非対称2カラム） -------------- */
.sec { border-top: 2px solid var(--ink); padding: 68px 0 76px; }
.sec.alt { background: var(--paper-2); }
.sec.thin { border-top-width: 1px; border-top-color: var(--rule); }
.secg { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 40px; }
.secn { position: sticky; top: 110px; align-self: start; }
.secn .no { font-family: var(--sans); font-weight: 700; font-size: 11.5px; color: var(--brass); letter-spacing: .12em; display: block; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.secn .en { font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--ink-3); letter-spacing: .16em; display: block; }
.sech { margin-bottom: 34px; }
.sech p { margin-top: 14px; color: var(--ink-2); max-width: 44em; }

/* 見出しの横に図を置く形。図は説明の補助なので、幅を取りすぎない */
.sech.ill { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 48px; align-items: center; }
.sech.ill p { max-width: none; }
.sech .fig { margin: 0; }
.sech .fig img { width: 100%; height: auto; display: block; }
/* 写真を置く場合。イラストと違い、枠を付けて紙面上の図版として扱う */
.sech .fig.photo img { border: 1px solid var(--rule); }

/* 写真の帯。文章が続く区間に一度だけ挟んで、視線を切り替える */
.photoband {
  height: 210px; background: var(--ink) url("images/band-marunouchi-1200.jpg") center 50% / cover no-repeat;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative;
}
@media (min-width: 1100px) { .photoband { height: 260px; background-image: url("images/band-marunouchi-2400.jpg"); } }
.photoband::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,24,44,.72) 0%, rgba(6,24,44,.30) 55%, rgba(6,24,44,.10) 100%);
}
.photoband .line {
  position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  height: 100%; display: flex; align-items: center;
}
.photoband .line p {
  margin: 0; color: #fff; font-weight: 700; font-size: 24px; line-height: 36px; letter-spacing: .03em;
  max-width: 24em; text-shadow: 0 2px 22px rgba(0,18,36,.4); word-break: auto-phrase;
}

/* --- 罫線で区切る項目（カードを使わない） -------------------------------- */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--rule-2); }
.row .n { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding-top: 5px; font-variant-numeric: tabular-nums; }
.row .t { color: var(--ink); font-size: 16px; }

/* サービスの表 */
.tbl { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--rule-2); }
.tbl th { width: 156px; font-weight: 400; }
.tbl th .ph { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--brass); display: block; margin-bottom: 8px; }
.tbl th .no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tbl td h3 { margin-bottom: 8px; }
.tbl td p { font-size: 16px; line-height: 28px; margin: 0; }
.tbl td .more { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.tbl td .more:hover { color: var(--brass); border-bottom-color: var(--brass); }
.tbl tr:hover td, .tbl tr:hover th { background: rgba(138,106,47,.035); }

/* 強み・流れ */
.notes { border-top: 1px solid var(--rule); }
.note { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--rule-2); }
.note .n { font-family: var(--mono); font-size: 12px; color: var(--brass); padding-top: 4px; font-variant-numeric: tabular-nums; }
.note p { font-size: 16px; line-height: 28px; margin: 8px 0 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.step { padding: 26px 24px 26px 0; border-right: 1px solid var(--rule-2); position: relative; }
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 24px; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--brass); border-radius: 50%; }
.step:not(:first-child)::before { left: 24px; }
.step .n { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .12em; display: block; margin-bottom: 10px; }
.step p { font-size: 14px; line-height: 24px; margin: 10px 0 0; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 18px; color: var(--ink); line-height: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 4px; top: 22px; color: var(--brass); font-size: 14px;
  font-family: var(--mono);
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 40px 24px 0; font-size: 16px; line-height: 28px; }

/* 引用・強調の帯 */
.pull { border-left: 2px solid var(--brass); padding: 6px 0 6px 22px; margin: 30px 0; }
.pull p { font-weight: 600; font-size: 20px; color: var(--ink); line-height: 32px; }

/* メンバー。KPMG・PwC の People ページと同じ、写真＋氏名＋役職＋経歴の並び */
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; border-top: 1px solid var(--rule); padding-top: 34px; }
.member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border: 1px solid var(--rule-2); filter: grayscale(1); }
.member .nm { margin: 18px 0 2px; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.member .rm { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.member .rl { margin: 10px 0 0; font-size: 12.5px; line-height: 20px; color: var(--brass); font-weight: 500; }
.member .bio { margin: 12px 0 0; font-size: 13.5px; line-height: 23px; color: var(--ink-2); }
.memnote { margin-top: 26px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 1080px) { .members { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
@media (max-width: 560px)  { .members { grid-template-columns: 1fr; gap: 34px; } }

/* 会社情報の表 */
.info { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule); }
.info th, .info td { text-align: left; padding: 18px 0; border-bottom: 1px solid var(--rule-2); font-size: 16px; line-height: 28px; vertical-align: top; }
.info th { width: 190px; font-weight: 400; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); padding-top: 20px; }
.info td { color: var(--ink); }
.tbd {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-style: normal;
  color: var(--brass); border: 1px solid var(--brass); padding: 1px 7px; margin-left: 10px;
  letter-spacing: .08em; vertical-align: 2px;
}

/* --- お問い合わせの帯 ---------------------------------------------------- */
.band { background: var(--ink); color: #fff; padding: 76px 0; }
.band h2 { color: #fff; font-size: 32px; line-height: 42px; }
.band .eyebrow { color: #b79a5f; }
.band p { color: #c7d3de; margin-top: 16px; }
.band .cta { margin-top: 34px; }

/* --- フォーム ------------------------------------------------------------ */
.form { max-width: 640px; }
.f { margin-bottom: 26px; }
.f label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 9px; letter-spacing: .04em; }
/* 必須の印。原稿の <em class="cfreq">必須</em> をそのまま使う */
.f .req, .f label .cfreq {
  display: inline-block; font-family: var(--mono); font-size: 9.5px; font-style: normal;
  color: var(--brass); border: 1px solid var(--brass); padding: 1px 6px; margin-left: 9px;
  vertical-align: 1px; letter-spacing: .08em;
}
.f input[type=text], .f input[type=email], .f input[type=tel], .f select, .f textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--rule); background: var(--paper); padding: 13px 14px; border-radius: 0;
  line-height: 1.7;
}
.f textarea { min-height: 168px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.f .hint { font-size: 12px; color: var(--ink-3); margin-top: 7px; }
.agree { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; margin: 30px 0; }
.agree input { margin-top: 7px; }
.hp { position: absolute; left: -9999px; }
.cfmsg { margin-top: 20px; font-size: 14px; }
.cfmsg.ok { color: #1c6b4a; }
.cfmsg.ng { color: #a3341f; }
.privacy { border: 1px solid var(--rule); background: var(--paper-2); padding: 26px 28px; font-size: 13px; margin-top: 46px; }
.privacy h3 { font-size: 14px; margin-bottom: 10px; }

/* --- フッター ------------------------------------------------------------ */
.ft { background: var(--ink); color: #a9bccd; padding: 66px 0 30px; font-size: 14px; line-height: 24px; }
.ftg { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.7fr; gap: 44px; }
.ft img { height: 28px; width: auto; }
.ftsub { margin-top: 18px; line-height: 2; color: #8fa5ba; font-size: 12.5px; }
.fth { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: #fff; margin-bottom: 18px; }
.ftcol a { display: block; color: #a9bccd; text-decoration: none; padding: 6px 0; }
.ftcol a:hover { color: #fff; }
.gco { margin-bottom: 15px; }
.gco b { display: block; color: #fff; font-weight: 500; font-size: 13px; }
.gco span { color: #8fa5ba; font-size: 12px; }
.gco.cur b { color: #d6b877; }
.ftbtm { display: flex; justify-content: space-between; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 11.5px; color: #8fa5ba; }

/* --- スクロールでの現れ方（控えめに1回だけ） ----------------------------- */
/* 既定は「見えている」状態。JavaScript が動いたときだけ隠してから出す
   （JSが失敗しても本文が消えないようにするため） */
.js .rv { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* --- 画面幅 -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .sech.ill { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; }
  .heroin { grid-template-columns: minmax(0, 1fr) 40%; }
  .herotext { padding-top: 76px; padding-bottom: 88px; min-height: 420px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pcell { border-bottom: 1px solid var(--rule-2); }
  .pcell:nth-child(2n) { border-right: 0; }
  .secg { grid-template-columns: 1fr; gap: 20px; }
  .secn { position: static; display: flex; gap: 16px; align-items: baseline; }
  .secn .no { margin-bottom: 0; }
  .ftg { grid-template-columns: 1fr 1fr; gap: 34px; }
}
/* ロゴ横の ADVISORY はナビと競合するため、特に狭い画面では省く */
@media (max-width: 460px) {
  .brand .sub { display: none; }
}
@media (max-width: 767px) {
  :root { --gut: 22px; }
  .sech.ill { grid-template-columns: 1fr; gap: 22px; }
  .sech .fig { max-width: 300px; margin: 0 auto; }
  .photoband { height: 170px; }
  .photoband .line p { font-size: 18px; line-height: 28px; }
  html { scroll-padding-top: 80px; }
  body { font-size: 16px; line-height: 28px; }
  .hdw { height: 62px; }
  .brand { gap: 10px; }
  .brand img { height: 23px; }
  .brand .sub { padding-left: 10px; font-size: 9px; letter-spacing: .14em; }
  .nav { gap: 14px; }
  .nav a { font-size: 9.5px; letter-spacing: .08em; white-space: nowrap; }
  .nav .btn { padding: 8px 12px; }
  .hero h1 { font-size: 27px; line-height: 1.7; }
  .hero::before { background:
      linear-gradient(180deg, rgba(6,26,46,.90) 0%, rgba(6,26,46,.72) 46%, rgba(6,26,46,.88) 100%); }
  .herog { padding-top: 56px; padding-bottom: 76px; min-height: 0; }
  .hero h1 { font-size: 26px; line-height: 38px; max-width: none; }
  .credit { position: static; padding: 16px var(--gut) 56px 0; color: rgba(255,255,255,.4); }  /* 下は時間軸カードの被り分 */

  /* スマホは写真を横に置かず、文章を画面幅いっぱいに使う */
  .heroin { grid-template-columns: minmax(0, 1fr); }
  .herotext { padding: 52px var(--gut) 56px 0; min-height: 0; }
  .hero .std { max-width: none; }
  .heroimg { height: 220px; width: 100%; background-position: center 42%; }
  .heroimg::after { background: linear-gradient(180deg, rgba(10,40,70,.55) 0%, rgba(10,40,70,.12) 55%, rgba(10,40,70,.45) 100%); }
  .hero .eyebrow { padding-top: 18px; font-size: 10px; }
  .hero .eb-co { display: none; }  /* 社名は1行に収まらないので省く */

  .phasewrap { margin-top: -46px; }
  .pgrid { grid-template-columns: 1fr; }
  .pcell { border-right: 0; padding: 15px 20px; }
  .factg { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid var(--rule-2); padding: 20px 0; }
  .fact:nth-child(even) { border-right: 0; padding-left: 22px; }
  .fact:nth-child(odd) { padding-left: 0; }
  h2 { font-size: 24px; line-height: 34px; }
  .sec { padding: 46px 0 52px; }
  .tbl th, .tbl td { display: block; width: auto; padding: 0; border-bottom: 0; }
  .tbl th { padding-top: 22px; }
  .tbl td { padding: 10px 0 22px; border-bottom: 1px solid var(--rule-2); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--rule-2); padding: 22px 0 22px 22px; }
  .step:not(:first-child) { padding-left: 22px; }
  .step::before, .step:not(:first-child)::before { left: 0; top: 26px; }
  .info th { display: block; width: auto; border-bottom: 0; padding-bottom: 0; }
  .info td { display: block; padding-top: 6px; }
  .ftg { grid-template-columns: 1fr; }
  .ftbtm { flex-direction: column; gap: 10px; }
  .band { padding: 52px 0; }
  .band h2 { font-size: 24px; line-height: 34px; }
}

/* --- トップの調査レポート（ヒーロー直下・4枚のカード） -------------------
   PwC・KPMG の「Highlights / 最新情報」に倣い、ヒーローの直下に画像付きカードで置く。
   カバーはアイキャッチ。無い場合はテーマ色の既定カバーを CSS で描く。 */
.insights { padding: 56px 0 64px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.inshead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.inshead h2 { font-size: 26px; line-height: 36px; margin-top: 10px; }
.inscards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.inscard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 0; }
.repcover { display: block; aspect-ratio: 8 / 5; overflow: hidden; background: var(--ink); }
.repcover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.inscard:hover .repcover img { transform: scale(1.03); }
.repcover.gen {
  position: relative; color: #fff; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #123457 0%, var(--ink) 55%, #071c33 100%);
}
.repcover.gen::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 48px; height: 1px; background: #8a6a2f; opacity: .8; }
.repcover.gen .rc-eyebrow { position: absolute; top: 16px; left: 18px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #cbb079; line-height: 15px; }
.repcover.gen .rc-cat { font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 30px; margin-bottom: 18px; }
.repcover.gen .rc-date { position: absolute; right: 18px; bottom: 16px; font-size: 11px; letter-spacing: .12em; color: #d5e0ea; font-variant-numeric: tabular-nums; }
.inscard .ins-cat { margin-top: 16px; font-size: 10.5px; letter-spacing: .14em; color: var(--brass); font-weight: 700; }
.inscard .ins-title { margin-top: 8px; font-size: 16.5px; line-height: 26px; font-weight: 700; color: var(--ink); text-wrap: balance; }
.inscard:hover .ins-title { color: var(--brass); }
.inscard .ins-sum { margin-top: 10px; font-size: 13px; line-height: 22px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.inscard .ins-meta { margin-top: 12px; font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.inscard .ins-more { margin-top: auto; padding-top: 14px; font-size: 11px; letter-spacing: .12em; color: var(--ink); }
@media (max-width: 1080px) { .inscards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .insights { padding: 40px 0 48px; }
  .inshead h2 { font-size: 22px; line-height: 32px; }
  /* スマホは横スクロール（1枚ずつスナップ）。4枚を縦に積むと長くなりすぎるため */
  .inscards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); padding-bottom: 8px; scrollbar-width: none; }
  .inscards::-webkit-scrollbar { display: none; }
  .inscard { flex: 0 0 78%; scroll-snap-align: start; }
  .inscard .ins-sum { -webkit-line-clamp: 2; }
}

/* --- 調査レポート（/reports/） -------------------------------------------
   一覧は罫線で区切った通し番号付きの目録。詳細は左に目次、右に本文の2カラム。
   カードや影は使わず、他ページと同じ調書の作りに揃える。 */
.rephead { border-bottom: 2px solid var(--ink); padding: 74px 0 44px; }
.rephead h1 { font-size: 32px; line-height: 44px; margin: 20px 0 18px; max-width: 20em; }
.rephead p { max-width: 46em; }
.rephead.single { padding-bottom: 34px; }
.repcrumb { font-size: 12px; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 18px; }
.repcrumb a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.repcrumb a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.repcrumb span { margin: 0 8px; }
.rephead.single h1 { font-size: 30px; line-height: 44px; margin: 0 0 20px; max-width: 26em; }

.repmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.repcat { color: var(--brass); border: 1px solid var(--brass); padding: 2px 9px; font-size: 10.5px; letter-spacing: .1em; }
.reptime, .repauthor { color: var(--ink-3); }

.repwrap { padding-block: 30px 76px; }
.repbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.repcount { font-size: 11.5px; letter-spacing: .14em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.repfilters { display: flex; gap: 8px; flex-wrap: wrap; }
.repf { font-family: inherit; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-2); background: none; border: 1px solid var(--rule); padding: 11px 16px; min-height: 44px; cursor: pointer; }
.repf:hover { border-color: var(--ink); color: var(--ink); }
.repf.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.replist { list-style: none; margin: 0; padding: 0; }
.repitem { display: grid; grid-template-columns: 56px 240px minmax(0, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--rule-2); align-items: start; }
.repthumb { display: block; }
.repthumb .repcover { aspect-ratio: 8 / 5; }
.repthumb .repcover.gen .rc-cat { font-size: 17px; line-height: 24px; margin-bottom: 14px; }
@media (max-width: 860px) {
  /* スマホは1列。通し番号 → カバー → 本文の順に積む */
  .repitem { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .repno { padding-top: 0; }
  .repthumb .repcover { aspect-ratio: 16 / 9; }
}
.repno { font-size: 12px; color: var(--ink-3); padding-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.repitem h2 { font-size: 21px; line-height: 32px; margin: 12px 0 10px; }
.repitem h2 a { text-decoration: none; border-bottom: 1px solid transparent; }
.repitem h2 a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.repitem p { font-size: 14.5px; line-height: 26px; margin: 0; max-width: 52em; }
.reptags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.reptags span { font-size: 11px; letter-spacing: .06em; color: var(--ink-3); background: var(--paper-2); padding: 4px 10px; }
.replist.compact .repitem { grid-template-columns: minmax(0, 1fr); }
.replist.compact .repthumb { display: none; }
.replist.compact .repitem h2 { font-size: 18px; line-height: 28px; }
.repnone { padding: 40px 0; color: var(--ink-3); }

.rephero { margin: 0; padding-top: 34px; }
.rephero img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; display: block; }
@media (max-width: 560px) { .rephero { padding-top: 24px; } .rephero img { aspect-ratio: 16 / 9; } }

.repgrid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; padding-block: 40px 70px; align-items: start; }
.repside { position: sticky; top: 108px; border-top: 2px solid var(--ink); padding-top: 16px; }
.repside .fth { font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3); }
.reptocbox summary { list-style: none; cursor: default; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.reptocbox summary::-webkit-details-marker { display: none; }
.tocn { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.reptoc { display: flex; flex-direction: column; }
.reptoc a { font-size: 13px; line-height: 22px; color: var(--ink-2); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--rule-2); }
.reptoc a:hover { color: var(--brass); }
.repsidecta { margin-top: 22px; }

.replead { font-size: 17px; line-height: 32px; color: var(--ink); border-left: 2px solid var(--brass); padding-left: 22px; margin-bottom: 42px; }
.repcontent h2 { font-size: 24px; line-height: 36px; margin: 52px 0 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.repcontent h3 { font-size: 17px; margin: 32px 0 12px; }
.repcontent p { font-size: 16px; line-height: 30px; max-width: 44em; }
.repcontent ul, .repcontent ol { max-width: 44em; padding-left: 1.3em; margin: 0 0 1.4em; }
.repcontent li { font-size: 15.5px; line-height: 28px; margin-bottom: 10px; }
.repcontent ol li { padding-left: 4px; }
.repcontent a { color: var(--ink); word-break: break-all; }
.repcontent blockquote { margin: 28px 0; padding: 16px 22px; background: var(--paper-2); border-left: 2px solid var(--rule); }
.repcontent blockquote p { font-size: 14px; line-height: 26px; color: var(--ink-2); }
.repscroll { overflow-x: auto; margin: 24px 0 32px; }
.reptbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.reptbl th, .reptbl td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); line-height: 24px; }
.reptbl thead th { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.reptbl td { font-variant-numeric: tabular-nums; }
.repdisc { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 12.5px; line-height: 22px; color: var(--ink-3); }

@media (max-width: 1080px) {
  .repgrid { grid-template-columns: 1fr; gap: 24px; }
  .repside { position: static; display: contents; }
  .reptocbox { order: 1; border-top: 2px solid var(--ink); padding-top: 12px; }
  .repmain { order: 2; }
  /* 相談への導線は読み終えたあとに置く */
  .repsidecta { order: 3; margin-top: 0; padding-top: 20px; border-top: 1px solid var(--rule); }
  .reptocbox summary { cursor: pointer; padding: 6px 0 12px; }
  .reptocbox summary::after { content: "＋"; color: var(--brass); font-size: 13px; }
  .reptocbox[open] summary::after { content: "−"; }
  .reptoc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 767px) {
  .rephead { padding: 46px 0 30px; }
  .rephead h1, .rephead.single h1 { font-size: 24px; line-height: 36px; }
  .repitem { grid-template-columns: 1fr; gap: 0; padding: 24px 0; }
  .repno { display: none; }
  .repitem h2 { font-size: 18px; line-height: 28px; }
  .reptoc { grid-template-columns: 1fr; }
  .repitem { position: relative; }
  .replead { font-size: 15.5px; line-height: 29px; padding-left: 16px; }
  .repcontent h2 { font-size: 20px; line-height: 32px; margin-top: 40px; }
  .repcontent p { font-size: 15.5px; line-height: 29px; }
}
/* 表が横に伸びてもページ本体は横スクロールさせない */
.repmain { min-width: 0; }
/* トップの抜粋一覧は罫線を上にも引いて、他セクションの表組みと揃える */
#reports .replist { border-top: 1px solid var(--rule); }
@media (max-width: 767px) {
  .repbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .repfilters { width: 100%; }
  .repf { padding: 11px 14px; }
}

/* フッターのグループ会社名から各サイトへ */
.gco a { text-decoration: none; color: inherit; }
.gco a:hover b { color: #d6b877; }

/* ── 規程ページ（プライバシーポリシー）。本文は scripts/convert.py が fas-preview から生成 ── */
.legal { max-width: 44em; }
.legal .lead { color: var(--ink-2); margin-bottom: 44px; }
.legal h2 { font-size: 20px; line-height: 30px; font-weight: 600; margin: 48px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 0 0 1.4em; padding-left: 1.4em; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--rule); text-decoration: none; }
.legal a:hover { border-bottom-color: var(--brass); }
.legal .tbl { overflow-x: auto; margin: 0 0 1.4em; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; border-top: 1px solid var(--rule); font-size: 15px; line-height: 26px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule-2); }
.legal th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.legal td { color: var(--ink-2); }
.legal .kv { margin: 0 0 1.4em; border-top: 1px solid var(--rule); }
.legal .kv > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-2); }
.legal .kv dt { font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); padding-top: 4px; }
.legal .kv dd { margin: 0; color: var(--ink); }
.legal .rev { margin-top: 40px; text-align: right; color: var(--ink-3); font-size: 13px; }
.ftlegal a { color: inherit; border-bottom: 1px solid rgba(255,255,255,.3); }
@media (max-width: 767px) {
  .legal .kv > div { grid-template-columns: 1fr; gap: 4px; }
  #privacy .secg { grid-template-columns: minmax(0, 1fr); }
  .legal .tbl th, .legal .tbl td { display: table-cell; width: auto; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule-2); }
}
