/*
Theme Name: ATELAS LP
Description: ATELAS株式会社 コーポレートサイト（新LP）の表示。管理画面はプラグイン ATELAS Admin（atelas-admin）が必要。
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: atelas-lp
*/

/* 参考：Allworth Financial */

:root {
  --ink: #222222;
  --ink-sub: #555555;
  --navy: #0f2a4a;
  --blue: #5a74b0;        /* 現行ATELASの青 */
  --gold: #b49a5e;
  --tint: #f8f8f4;
  --pale: #e9eef5;
  --line: #d9d9d4;
  --photo: #dfe1e4;

  /* 和文：Apple の端末はヒラギノ（読み込み不要）、ほかの端末だけ Noto Sans JP（Google Fonts。400・500・700 を読む） */
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP";
  --serif: "Playfair Display", var(--jp), serif;
  --sans: "Lato", var(--jp), sans-serif;

  --container: 1272px;
  --gutter: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
sup { font-size: 0.6em; }

.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 写真の仮枠（撮影後に差し替え） */
.photo {
  display: grid;
  place-items: center;
  background: var(--photo);
  color: #9a9ea5;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* 仮画像（ChatGPTで生成。撮影・正式素材が揃ったら assets/img/ を差し替える） */
.photo:has(img) { position: relative; display: block; overflow: hidden; }
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb { display: inline-block; }

/* 改行の入らない長い文字列（URL・長い英単語）は、枠の幅で途中で折り返す（管理画面で入れた文字が横にはみ出さないように）
   見出しは単語の途中で切れると読みにくいので、1行に収まらない単語だけを折る */
body { overflow-wrap: anywhere; }
h1, h2, h3, h4, .heading, .page-head-en, .name-word, .stat-num, .feature-title { overflow-wrap: break-word; }
.report { overflow-wrap: normal; } /* 投資家の視点のイラスト（固定の表）は、数字の途中で折らない */
/* 日本語の見出し・リード文・カードの見出しは、文節の途中で折り返さない（例：「ストーリー作／成から」にしない）。
   文節の区切りはサーバーで <wbr> を入れてある（inc/phrase.php）。keep-all で、その区切りと空白・句読点のところだけで改行する。
   auto-phrase（Chrome・Edge だけ）は使わない：区切り方がブラウザで変わらないよう、どのブラウザも <wbr> の位置にそろえる。
   本文には使わない。1行に入らない長い文節は、上の overflow-wrap で折り返す（はみ出さない） */
:is(
  .heading, .page-head-ja, .article-title,
  .eyes-lead, .why-lead, .name-lead, .needs-lead, .free-lead, .contact-lead,
  .stat-label, .award-title, .name-meaning, .eyes-notes li,
  .svc-row-name, .svc-head h3, .svc-items h4, .svc-steps h4,
  .need-voice, .feature-title, .feature-body h3, .case-title,
  .member-feature-name, .member-name, .insight h3, .news-title, .free-cards h3,
  .compare-caption, .compare th, .compare td, .cta h2
):lang(ja) { word-break: keep-all; }
/* 比較表は、列の見出し（比べる相手・ATELAS）とセルも文節で折り返す（スマホのカードも同じ）。
   比較表（PC）は列の幅を中身の最小幅で決めるので、単語の途中で折ると列の配分が変わる。ふだんは単語・文節を折らず、
   長い文字列で表が枠より広くなったときだけ途中でも折る（main.js が .is-tight を付ける）。JS が動かなくても、
   ページは広げずに表の枠の中だけ横にスクロールさせる。スマホはカードなので折り返す */
@media (min-width: 801px) {
  .compare th, .compare td { overflow-wrap: break-word; }
  .compare-wrap.is-tight th, .compare-wrap.is-tight td { overflow-wrap: anywhere; }
  .compare-wrap { overflow-x: auto; }
}
/* フレックスの子は、中身が長くても列を押し広げない */
.heading-row > *,
.svc-head-text,
.footer-inner > *,
.name-parts li,
.feature-card > *,
.member-card > *,
.article-meta > * { min-width: 0; max-width: 100%; }

/* ---------- 共通パーツ ---------- */
.heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.15;
  letter-spacing: 0;
}
.heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 28px;
  background: var(--blue);
}
.heading-center { text-align: center; }
.heading-center::after { margin-left: auto; margin-right: auto; }

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
}
.link-arrow::after { content: "↗"; font-size: 15px; }
.link-arrow:hover { color: var(--blue); border-color: var(--blue); }

.btn-outline {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 32px;
  border: 2px solid var(--blue);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.section { padding: 120px 0; }
.section-tint { background: var(--tint); }

/* ---------- Header ---------- */
/* 固定配置。縮んでも本文が動かないよう、元の高さぶんの余白を body に取る
   --header-h は縮む前のヘッダーの高さ：帯 45px ＋ ナビ 88px ＋ 下線 1px（スマホは下の @media で 61px）。
   ヘッダーの高さを変えたらここも合わせる。JS で実測すると、高さが変わるアニメーションの途中の値を拾うことがあるため */
:root { --header-h: 134px; }
body { padding-top: var(--header-h); }
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.utility {
  height: 45px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.utility-inner {
  display: flex;
  justify-content: flex-end;
  height: 44px;
}
.utility-inner a {
  display: flex;
  align-items: center;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.utility-inner a + a { border-left: 1px solid var(--line); }
.utility-inner a:last-child { padding-right: 72px; }

.nav-inner {
  display: flex;
  align-items: stretch;
  height: 88px;
}
.logo {
  /* ロゴの大きさは --logo-h（アイコンの高さ）だけで決める。画像は現行サイト（atelas-japan.com）のロゴから切り出したもの（2026-11 先方回答：ロゴは現行のまま転用）。文字の高さは現行のロゴと同じ比率、間隔は現行（0.34）より少し広げている */
  --logo-h: 28px;
  display: flex;
  align-items: center;
  gap: calc(var(--logo-h) * 0.6);
  align-self: center;
  line-height: 0;
}
.logo img { display: block; width: auto; }
.logo-icon { height: var(--logo-h); }
.logo-word { height: calc(var(--logo-h) * 0.764); }
.gnav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  padding-right: 40px;
}
.gnav a { font-size: 15px; font-weight: 700; }
.gnav a:hover { color: var(--blue); }
.nav-cta {
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.nav-cta span { border-bottom: 2px solid var(--navy); padding-bottom: 2px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 61fr) minmax(0, 39fr);
  min-height: 560px;
  min-height: max(560px, calc(100vh - var(--header-h))); /* 画面の高さに合わせる指定は下の「最初の画面の高さ」 */
  background: var(--tint);
}
.hero-text {
  align-self: center;
  padding: 80px 64px 80px max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.08;
  letter-spacing: 0;
}
/* キャッチコピーが日本語のとき（hero.php が .is-ja を付ける）：英語向けの大きさだと1行に数文字ずつになるので、1行10文字前後が入る大きさに。
   文節の途中で折り返さない（word-break: auto-phrase が効くブラウザだけ。ほかは今のまま） */
.hero h1.is-ja {
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  word-break: auto-phrase;
  line-break: strict;
}
.hero-sub {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero-lead {
  max-width: 560px;
  margin: 24px 0 56px;
  font-size: 18px;
  line-height: 1.8;
}
.hero-photo { min-height: 100%; }

/* ---------- Stats ---------- */
.stats { padding: 88px 0 72px; }
.stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  justify-items: center;
}
.stat { display: flex; align-items: center; gap: 22px; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(96px, 11vw, 150px);
  line-height: 0.9;
  font-variant-numeric: lining-nums;
}
/* 数字：枠の下からせり上がる（main.js が桁ごとに .rise で包む） */
.rise {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* 字形がはみ出さないよう上下に少し余白を取り、その分を詰めて位置は変えない */
  padding: 0.06em 0;
  margin: -0.06em 0;
}
.rise > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) var(--rise-delay, 0ms);
}
.is-risen .rise > span { transform: none; }
/* 数字の横の区切り線：左から引かれる */
.js-motion .stat-label { border-bottom-color: transparent; position: relative; }
.js-motion .stat-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #bdbdb8;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--rise-delay, 0ms) + 250ms);
}
.js-motion .is-risen .stat-label::after { transform: none; }
.stat-label {
  padding-bottom: 12px;
  border-bottom: 1px solid #bdbdb8;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}
.stat-sub { margin-top: 10px; font-size: 14px; }

.awards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 72px;
  padding: 30px 0;
  background: var(--pale);
  text-align: center;
  font-size: 15px;
}
.awards > div + div { border-left: 1px solid #b8c3d4; }
.award-title {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 4px;
}
.footnote { margin-top: 16px; font-size: 12px; color: #888; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.about-text .heading { margin-bottom: 48px; }
.about-text p { font-size: 15px; }
.about-text p + p { margin-top: 16px; }
.about-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.photo-a { aspect-ratio: 324 / 528; margin-top: 48px; }
.photo-b { aspect-ratio: 262 / 528; }

/* ---------- 社名に込めた想い：左に見出し、右に社名の分解（A＋TELAS）と由来 ---------- */
.name-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}
.name-lead { margin-top: 32px; font-size: 18px; font-weight: 500; color: var(--navy); }
.name-parts { display: flex; flex-wrap: wrap; gap: 32px 56px; margin: 0; padding: 0; list-style: none; }
.name-parts li { display: flex; flex-direction: column; gap: 16px; }
.name-word {
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.name-meaning { padding-top: 12px; border-top: 1px solid var(--blue); font-size: 15px; font-weight: 700; color: var(--blue); }
.name-text { margin-top: 56px; }
.name-text p { font-size: 15px; }
.name-text p + p { margin-top: 16px; }

/* ---------- Through Investors' Eyes ---------- */
.eyes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.05fr; /* 右はイラスト（固定の表）。表の幅より狭くしない */
  gap: 96px;
  align-items: center;
}
.eyes-text .heading { margin-bottom: 40px; }
.eyes-lead {
  margin-bottom: 24px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
}
.eyes-text > p:not(.eyes-lead) { font-size: 15px; }
.eyes-text > p + p { margin-top: 12px; }
.eyes-notes {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.eyes-notes li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.eyes-notes span,
.pin {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.report { margin: 0; }
.report-page {
  position: relative;
  padding: 36px 40px 40px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 42, 74, 0.06), 0 24px 48px -24px rgba(15, 42, 74, 0.25);
}
.report-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-sub);
}
.report-title { margin: 22px 0 12px; font-size: 16px; font-weight: 700; color: var(--navy); }
.report-title-sm { margin-top: 28px; font-size: 14px; }
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.report-table th,
.report-table td { padding: 9px 8px; border-bottom: 1px solid #e6e6e2; }
.report-table thead th { font-weight: 700; color: var(--ink-sub); font-size: 12px; text-align: right; }
.report-table tbody th { font-weight: 400; text-align: left; }
.report-table td { text-align: right; }
.report-table tr.is-marked th,
.report-table tr.is-marked td { background: rgba(90, 116, 176, 0.12); }
.report-table tr.is-marked td:last-child { box-shadow: inset 0 -2px 0 var(--blue); }

.report-lines { display: grid; gap: 9px; padding: 6px 0; }
.report-lines i { display: block; height: 7px; background: #ebebe7; }
.report-lines.is-marked { padding: 10px 12px; border: 1.5px solid var(--blue); }

/* 番号は紙面の右端にかかる位置へ（ページ余白40px＋半径13px） */
.report-table td:last-child,
.report-lines { position: relative; }
.pin {
  position: absolute;
  top: 50%;
  right: -53px;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px #fff;
}
.report-lines.is-marked .pin { right: -54.5px; }
.report figcaption { margin-top: 14px; font-size: 12px; color: #888; text-align: right; }

/* ---------- Why ATELAS（比較表） ---------- */
.why-lead {
  margin-top: 28px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}
.compare-wrap { margin-top: 64px; }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-sub);
}
.compare thead th.is-us {
  background: var(--navy);
  border-bottom-color: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.compare tbody th { width: 16%; font-weight: 700; color: var(--navy); }
.compare tbody td { width: 34%; color: var(--ink-sub); }
.compare tbody td.is-us {
  width: 50%;
  background: var(--pale);
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: #c9d3e3;
}
.compare small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--ink-sub); }
/* 比べる相手が2つ（4列）のとき */
.compare-cols-3 th,
.compare-cols-3 td { padding-left: 22px; padding-right: 22px; }
.compare-cols-3 tbody th { width: 14%; }
.compare-cols-3 tbody td { width: 26%; font-size: 14px; }
.compare-cols-3 tbody td.is-us { width: 34%; font-size: 15px; }
.compare-cols-3 thead th { font-size: 14px; }
.compare-caption {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.compare-caption::before { content: ""; width: 32px; height: 1px; background: var(--gold); }

/* ---------- Services ---------- */
/* PC：左の一覧で選ぶと右に中身（main.js）。スマホ：一覧の行がその場で開閉する。
   JS が動かないときは、一覧を隠して全部を開いて見せる */
.svc-picker { margin-top: 64px; }
.svc-list { display: none; }
.svc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 20px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s var(--ease, ease), box-shadow 0.3s var(--ease, ease);
}
.svc-no { flex: none; width: 26px; font-family: var(--serif); font-size: 15px; color: var(--gold); font-variant-numeric: lining-nums; }
.svc-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-row-name { font-size: 17px; font-weight: 700; line-height: 1.5; transition: color 0.3s var(--ease, ease); }
.svc-row-summary { font-size: 13px; line-height: 1.6; color: var(--ink-sub); text-wrap: pretty; }
.svc-row::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 1.5px solid var(--line);
  border-right: 1.5px solid var(--line);
  transform: rotate(45deg);
  transition: border-color 0.3s var(--ease, ease), transform 0.4s var(--ease-out, ease);
}
.svc-list-label {
  margin-top: 28px;
  padding: 0 16px 10px;
  border-bottom: 1px solid var(--navy);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-sub);
}
.svc-acc { pointer-events: none; }
.svc-acc::after { display: none; }
.svc-panels { border-top: 1px solid var(--navy); }
.svc-acc-label + .svc-acc { border-top: 0; }

/* 中身 */
.svc-detail-inner { padding: 40px 48px 44px; background: var(--pale); }
.svc-head { display: flex; justify-content: space-between; gap: 40px; }
.svc-head-text { max-width: 660px; }
.svc-en { font-size: 14px; color: var(--blue); }
.svc-head h3 { margin-top: 4px; font-size: 26px; font-weight: 500; line-height: 1.5; color: var(--navy); }
.svc-head-text > p:not(.svc-en) { margin-top: 14px; font-size: 15px; line-height: 1.95; }
.svc-head-text > p + p:not(.svc-en) { margin-top: 10px; }
.svc-icon { flex: none; width: 96px; }
.svc-icon img,
.svc-item-icon img { display: block; width: 100%; height: auto; }
.svc-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.svc-items li { padding: 18px 0; border-top: 1px solid #c3cddc; }
.svc-items li.has-icon { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.svc-items li.has-icon .svc-item-icon { grid-row: span 2; width: 56px; }
.svc-items h4 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.svc-items p { margin-top: 4px; font-size: 13.5px; line-height: 1.8; color: var(--ink-sub); }
/* 進め方：矢印でつなぐ */
.svc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.svc-steps li { position: relative; padding: 18px 20px 20px; background: #fff; }
.svc-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.svc-step-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 14px; letter-spacing: 0.06em; color: var(--blue); font-variant-numeric: lining-nums; }
.svc-step-note { font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-sub); }
.svc-steps h4 { margin: 6px 0 0; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.svc-steps p:not(.svc-step-label) { margin-top: 6px; font-size: 13px; line-height: 1.8; color: var(--ink-sub); }

/* JS が動くとき */
.motion-ready .svc-acc { pointer-events: auto; }
.motion-ready .svc-acc::after { display: block; }
@media (min-width: 1101px) {
  .motion-ready .svc-picker { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; }
  .motion-ready .svc-list { display: flex; flex-direction: column; position: sticky; top: 104px; border-top: 1px solid var(--navy); }
  .motion-ready .svc-row[aria-selected="true"] { background: var(--pale); box-shadow: inset 3px 0 0 var(--navy); }
  .motion-ready .svc-row[aria-selected="true"] .svc-row-name { color: var(--navy); }
  .motion-ready .svc-row[aria-selected="true"]::after { border-color: var(--navy); }
  .motion-ready .svc-row:not([aria-selected="true"]):hover .svc-row-name { color: var(--blue); }
  .motion-ready .svc-row:not([aria-selected="true"]):hover::after { border-color: var(--blue); transform: translateX(3px) rotate(45deg); }
  .motion-ready .svc-panels { position: relative; border-top: 0; }
  .motion-ready .svc-panel { display: none; }
  .motion-ready .svc-panel.is-active { display: block; }
  .motion-ready .svc-acc,
  .motion-ready .svc-acc-label { display: none; }
}
/* 1100px 以下：行を押すと、その場で開く */
@media (max-width: 1100px) {
  .motion-ready .svc-acc::after { transform: rotate(135deg); }
  .motion-ready .svc-acc[aria-expanded="true"]::after { border-color: var(--navy); transform: rotate(-45deg); }
  .motion-ready .svc-detail { height: 0; overflow: hidden; }
  .motion-ready .svc-panel.is-open .svc-detail { height: auto; }
  .svc-detail-inner { margin-bottom: 16px; }
}
.svc-cta { margin-top: 32px; }

.swipe-ui { display: none; }

/* ---------- Members ---------- */
/* 横スライド。前後ボタン・位置表示・進捗バーは main.js */
.slide-nav { display: flex; gap: 12px; flex: none; }
.slide-nav[hidden] { display: none; }
.slide-nav button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: none;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.25s var(--ease, ease), color 0.25s var(--ease, ease), opacity 0.25s var(--ease, ease);
}
.slide-nav button::before { content: "←"; font-size: 18px; line-height: 1; }
.slide-nav .slide-next::before { content: "→"; }
.slide-nav button:disabled { opacity: 0.3; cursor: default; }
/* 写真：マウスを乗せると少しだけ寄る */
.member-photo { display: block; aspect-ratio: 4 / 5; }
.member-photo img { transition: transform 1.2s var(--ease-out, ease); }
@media (hover: hover) {
  .member-feature:hover .member-photo img,
  .member-card:hover .member-photo img { transform: scale(1.03); }
}
.member-role { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold); }
.member-name-en { margin-top: 2px; font-family: var(--serif); font-size: 17px; letter-spacing: 0.03em; color: var(--ink-sub); }
.member-org { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-sub); }

/* 代表など（大きく表示） */
.member-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 88px;
  align-items: center;
  margin-top: 72px;
}
.member-feature-name { margin-top: 14px; font-size: clamp(34px, 3.3vw, 46px); font-weight: 500; letter-spacing: 0.06em; line-height: 1.3; color: var(--navy); }
.member-feature .member-name-en { margin-top: 6px; font-size: 19px; }
.member-feature .member-org { margin-top: 20px; }
/* 経歴の流れ */
.career { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--navy); }
.career li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.career-year { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums; }
.career-text { font-size: 15px; line-height: 1.7; }
.career-sm { margin-top: 20px; border-top-color: var(--line); }
.career-sm li { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.career-sm .career-year { font-size: 16px; }
.career-sm .career-text { font-size: 13.5px; }
.member-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: 18px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--navy);
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s var(--ease, ease), border-color 0.3s var(--ease, ease);
}
.member-more::after { content: "＋"; margin-left: 10px; font-weight: 400; }
.member-more:hover,
.member-card:hover .member-more { color: var(--blue); border-color: var(--blue); }
.member-feature .member-more { margin-top: 32px; }

/* ほかのメンバー：横スライド */
.members-head { align-items: center; margin-top: 112px; }
.heading + .members-head { margin-top: 56px; }
.members-sub { display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 700; color: var(--navy); }
.members-sub::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.members {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.members::-webkit-scrollbar { display: none; }
/* 次のカードが少し見えるように、3枚と少しを並べる */
.member { flex: 0 0 calc((100% - 32px * 3) / 3.3); scroll-snap-align: start; }
.member-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.member-card .member-photo { width: 100%; margin-bottom: 22px; }
.member-name { margin-top: 8px; font-size: 22px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.4; color: var(--navy); }
.members + .swipe-ui { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.members + .swipe-ui[hidden] { display: none; }
.members + .swipe-ui .swipe-count { min-width: 58px; font-family: var(--serif); font-size: 14px; color: var(--ink-sub); font-variant-numeric: lining-nums tabular-nums; }
.members + .swipe-ui .swipe-count b { font-weight: 400; color: var(--navy); }
.members + .swipe-ui .swipe-bar { position: relative; flex: 1; height: 1px; overflow: hidden; background: var(--line); }
.members + .swipe-ui .swipe-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% / var(--n, 1));
  background: var(--navy);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.45s var(--ease-out);
}

/* プロフィール（ダイアログ） */
.member-dialog {
  width: min(960px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100% - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.member-dialog::backdrop { background: rgba(15, 42, 74, 0.55); }
.member-dialog-inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  padding: 56px;
}
.member-dialog-photo { aspect-ratio: 4 / 5; }
.member-dialog-name { margin-top: 4px; font-size: 28px; font-weight: 500; }
.member-dialog-bio { margin-top: 20px; font-size: 15px; line-height: 2; color: var(--ink-sub); }
.member-dialog .member-profile { margin-top: 24px; }
.member-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}
.member-dialog-close::before,
.member-dialog-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transform: translate(-50%, -50%) rotate(45deg);
}
.member-dialog-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
html.is-dialog-open { overflow: hidden; }

/* ---------- Case Studies ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  margin-top: 64px;
  align-items: center;
}
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 600 / 450;
  padding: 40px;
  background:
    linear-gradient(135deg, transparent 0 78%, rgba(90, 116, 176, 0.25) 78% 84%, transparent 84%),
    linear-gradient(135deg, #0a1a30, #10294a);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--gold);
  width: 140%;
  transform: rotate(-45deg);
  opacity: 0.6;
}
.feature-card::before { left: -78%; top: 22%; }
.feature-card::after { right: -78%; bottom: 22%; }
.feature-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #d9c79e;
}
.feature-kicker::before,
.feature-kicker::after { content: ""; width: 48px; height: 1px; background: var(--gold); }
.feature-title {
  margin: 16px 0 18px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.35;
}
.feature-sub {
  padding-top: 14px;
  border-top: 1px solid var(--gold);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.feature-body h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
}
.flow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  margin: 28px 0 36px;
  border-top: 1px solid var(--line);
}
.flow dt,
.flow dd { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.flow dt { font-weight: 700; color: var(--blue); }
/* 英語ページは見出し（Challenge / Approach / Outcome / Ongoing）が長いので列を広げる */
html[lang="en"] .flow { grid-template-columns: 104px minmax(0, 1fr); }

.feature .flow { margin-bottom: 0; }

/* B〜E社：開閉式 */
.case-list { margin-top: 80px; border-top: 1px solid var(--ink); }
.case-item { border-bottom: 1px solid var(--line); }
.case-item summary {
  display: grid;
  grid-template-columns: 200px minmax(0, 260px) minmax(0, 1fr) 24px;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}
.case-item summary::-webkit-details-marker { display: none; }
.case-item summary::after {
  content: "";
  justify-self: end;
  align-self: center;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-item[open]:not(.is-closing) summary::after { transform: translateY(3px) rotate(-135deg); }
.case-item summary:hover { color: var(--blue); }
.case-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.case-client { font-weight: 700; }
.case-ind { font-family: var(--serif); color: var(--blue); font-variant-numeric: lining-nums; }
.case-item .flow {
  margin: 0 0 32px;
  margin-left: 224px;
  max-width: 820px;
}
/* 開閉のアニメーションは main.js（高さを測って伸縮させる）。ここでは中身のはみ出しだけ隠す */
.case-body { overflow: hidden; }

/* ---------- 会社概要（ページ下）：左に見出し、右に表 ---------- */
.company {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
  align-items: start;
}
.profile {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  border-top: 1px solid var(--navy);
  font-size: 15px;
}
.profile dt,
.profile dd { padding: 20px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; color: var(--navy); }
.company-map-link { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.company-map-link::after { content: " ↗"; }
/* 地図：表の下、表と同じ幅。PC のトップ（1画面ずつの版）では出さず、所在地のリンクだけにする（fullpage.css） */
.company-map { grid-column: 2; margin-top: -32px; aspect-ratio: 16 / 7; border: 1px solid var(--line); background: var(--photo); overflow: hidden; }
.company-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- 皆様のニーズ：左に見出し（スクロールしても残る）、右に「よくある声」と答え ---------- */
.needs-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}
.needs-head { position: sticky; top: 112px; }
.needs-lead { margin-top: 32px; font-size: 18px; font-weight: 500; color: var(--navy); }
.needs-photo { aspect-ratio: 4 / 3; margin-top: 48px; }
.needs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.need { padding: 48px 0 52px; border-bottom: 1px solid var(--line); }
.need-voice {
  position: relative;
  padding-left: 44px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--navy);
}
.need-voice::before {
  content: "\201C";
  position: absolute;
  left: -2px;
  top: -18px;
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  color: var(--blue);
  opacity: 0.55;
}
.need-answer {
  margin-top: 28px;
  padding-left: 44px;
  font-size: 15px;
  color: var(--ink-sub);
}

/* ---------- Insights ---------- */
.insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.insight-photo { aspect-ratio: 16 / 10; margin-bottom: 22px; }
.insight-cat { font-size: 13px; font-weight: 700; color: var(--blue); }
.insight h3 { margin-top: 6px; font-size: 19px; font-weight: 500; line-height: 1.6; }
.insight-date { margin-top: 10px; font-size: 13px; color: #888; }


/* ---------- CTA ---------- */
.cta { padding: 110px 0; background: var(--navy); color: #fff; text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 60px); }
.cta h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 24px auto 32px;
  background: var(--gold);
}
.cta p { font-size: 16px; color: rgba(255, 255, 255, 0.85); }
.btn-light {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 44px;
  border: 2px solid #fff;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.btn-light:hover { background: #fff; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: #0a1d35; color: rgba(255, 255, 255, 0.8); padding-top: 72px; font-size: 14px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 56px;
}
.logo-light { --logo-h: 30px; }
.footer-addr { margin-top: 16px; line-height: 1.9; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 12px 56px;
  align-content: start;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 32px;
  /* 右下に固定の「上に戻る」ボタン（右から32px＋幅52px）にコピーライトがかからないよう、右端を左に寄せる。
     画面が広く、本文の右端がもともとボタンより内側にあるときは寄せない */
  padding-right: max(var(--gutter), calc(32px + 52px + 24px - max(0px, (100vw - var(--container)) / 2 - var(--gutter))));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- News ---------- */
.news-list { margin-top: 48px; border-top: 1px solid var(--ink); }
.news-item a {
  display: grid;
  grid-template-columns: 120px auto minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 24px 40px 24px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: color 0.2s;
}
.news-item a::after {
  content: "→";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
  transition: transform 0.2s;
}
.news-item a:hover { color: var(--blue); }
.news-item a:hover::after { transform: translate(4px, -50%); }
.news-item time { font-size: 14px; color: #777; font-variant-numeric: tabular-nums; }
.news-cat {
  padding: 0 10px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  justify-self: start;
  /* カテゴリ名がとても長いときは、行からはみ出さないよう途中で「…」にする（全文はマウスを乗せると出る。functions.php） */
  max-width: 16em; /* % にすると、一覧の列の幅を決めるときに効かず、列が全文の幅まで広がる */
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-item a > .news-title { grid-column: -2; font-size: 16px; }
.news-empty { margin-top: 40px; color: var(--ink-sub); }

/* ---------- 下層ページ ---------- */
/* sync:start 下層ページの見出しと余白（1画面版の書き出し dev/pages/build.mjs もここを読んで差し込む）
   見出しの帯が大きすぎて、お問い合わせのフォームが1画面目にほとんど入らなかったので詰める。スマホは下の @media の値を保つ */
.page-head { padding: 44px 0 36px; background: var(--tint); border-bottom: 0; } /* 区切りは本文との地の色の違いで足りるので線は付けない */
.page-head-en {
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.1;
}
.page-head-en::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px 0 12px;
  background: var(--blue);
}
.page-head-ja { font-size: 15px; font-weight: 700; color: var(--ink-sub); }
.section-sub { padding: 48px 0 96px; }
.contact-form { padding: 44px 48px 40px; }
@media (max-width: 800px) {
  .page-head { padding: 44px 0 36px; }
  .page-head-en { font-size: 36px; }
  .page-head-en::after { width: 48px; margin: 16px 0 10px; }
  .section-sub { padding: 48px 0 80px; }
  .contact-form { padding: 36px var(--gutter) 40px; }
}
/* sync:end */
/* 英字の見出しが無い固定ページ：日本語の題名を大きく出し、下に線 */
.page-head.is-ja-only .page-head-ja { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; line-height: 1.5; color: var(--ink); }
.page-head.is-ja-only .page-head-ja::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 16px; background: var(--blue); }
@media (max-width: 800px) {
  .page-head.is-ja-only .page-head-ja::after { width: 48px; margin-top: 14px; }
}
.container-narrow { max-width: calc(880px + var(--gutter) * 2); }
.section-sub .news-list { margin-top: 0; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--navy);
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

.article-head { padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.article-meta { display: flex; align-items: baseline; gap: 16px; font-size: 14px; color: #777; }
.article-title { margin-top: 12px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; line-height: 1.6; }
.article-nav { margin-top: 72px; text-align: center; }

/* 本文（ブロックエディタの出力） */
.entry { font-size: 16px; }
.article .entry { padding-top: 40px; }
.entry > * + * { margin-top: 1.4em; }
.entry h2 { margin-top: 2.4em; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; color: var(--navy); }
.entry h3 { margin-top: 2em; font-size: 18px; font-weight: 700; }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry ul { list-style: disc; }
.entry li + li { margin-top: 0.5em; }
.entry a { color: var(--blue); text-decoration: underline; }
.entry img { max-width: 100%; height: auto; }
/* 記事に入れる部品（表・引用・ボタン・画像の説明）。ブロックエディタの初期の見た目だと、表の項目の列が1文字ずつに潰れる・
   ボタンの文字が紺の地に青い下線で読めない・引用が字下げだけ、になっていた */
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-sub); }
.entry .wp-block-table { overflow-x: auto; } /* 長い文字列で表が広がっても、ページは広げず表の中だけ横にスクロール */
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.75; }
.entry th,
.entry td { min-width: 6em; padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.entry thead th, .entry thead td { background: var(--tint); font-weight: 700; }
.entry blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--ink-sub); }
.entry blockquote cite { display: block; margin-top: 6px; font-size: 13px; font-style: normal; }
/* ファイル（PDF など。ブロックの「ファイル」）：中身の表示に枠、その下に「ファイル名＋ダウンロード」の帯。
   ブロックエディタの初期の見た目だと、ダウンロードのボタンが黒い丸の上に青い下線の文字で、中身の表示も枠が無くページに溶けていた（2026-11-24） */
.entry .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px; border: 1px solid var(--line); background: var(--tint); }
.entry .wp-block-file .wp-block-file__embed { flex: 1 0 100%; order: -1; margin: -18px -20px 6px; width: calc(100% + 40px); max-width: none; border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.entry .wp-block-file > a:not(.wp-block-file__button) { flex: 1 1 auto; min-width: 0; color: var(--navy); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.entry .wp-block-file .wp-block-file__button { display: inline-block; margin: 0; padding: 10px 24px; border-radius: 0; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.entry .wp-block-file .wp-block-file__button:hover { background: var(--blue); }
@media (max-width: 800px) {
  .entry .wp-block-file .wp-block-file__embed { height: 420px !important; }
  .entry .wp-block-file .wp-block-file__button { flex: 1 0 100%; text-align: center; }
}
.entry .wp-block-button__link {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 0;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s;
}
.entry .wp-block-button__link:hover { background: var(--blue); color: #fff; }
.entry .is-style-outline .wp-block-button__link { background: none; border: 2px solid var(--navy); color: var(--navy); }

/* ---------- お問い合わせ ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.contact-info { position: sticky; top: 112px; }
.contact-lead { font-size: 20px; font-weight: 500; line-height: 1.8; color: var(--navy); }
.contact-steps-title {
  margin-top: 56px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--blue);
}
.contact-steps { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.contact-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-sub);
}
.contact-step-no {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--blue);
  font-variant-numeric: lining-nums;
}
.contact-step-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.contact-company {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-sub);
}
.contact-company dt,
.contact-company dd { padding: 6px 0; }
.contact-company dt { font-weight: 700; color: var(--navy); }
.contact-form { background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 1px 2px rgba(15, 42, 74, 0.04), 0 24px 48px -32px rgba(15, 42, 74, 0.25); }
.section-contact { background: var(--tint); }

/* Contact Form 7 */
.form-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.form-pair + .form-row,
.form-row + .form-pair,
.form-pair + .form-pair { margin-top: 28px; }
.form-row { display: block; }
.form-row + .form-row { margin-top: 28px; }
/* 横に並べた2つは上の余白を付けず、高さをそろえる */
.form-pair > .form-row + .form-row { margin-top: 0; }
.form-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--navy); }
.form-label em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.form-label em.is-optional { color: #888; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--tint);
  border: 1px solid transparent;
  border-bottom-color: #c9c9c3;
  border-radius: 0;
  font: inherit;
  font-size: 16px; /* iOSでフォーカス時に拡大されないよう16px以上 */
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: #a8a8a2; }
/* 種類のプルダウン：右に下向きの矢印。未選択（最初の「選択してください」）は入力欄の案内と同じ色 */
.wpcf7 select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230f2a4a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.wpcf7 select:has(option[value=""]:checked) { color: #a8a8a2; }
.wpcf7 select option { color: var(--ink); }
.wpcf7 textarea { height: 200px; resize: vertical; }
.wpcf7 input:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover { border-bottom-color: var(--ink-sub); }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: none; background-color: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(90, 116, 176, 0.15); }
.wpcf7 .wpcf7-not-valid { background-color: #fdf5f4; border-bottom-color: #b3261e; }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: #b3261e; }
.form-accept { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; }
.form-accept a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.form-accept .wpcf7-list-item { margin: 0; }
.form-accept label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form-accept input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #b8b8b2;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.form-accept input:checked {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.form-accept input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-submit { position: relative; margin-top: 28px; }
.wpcf7 .wpcf7-submit {
  width: 100%;
  padding: 20px 40px;
  border: 0;
  border-radius: 0;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
}
.wpcf7 .wpcf7-submit:hover:not(:disabled) { background: var(--blue); }
.wpcf7 .wpcf7-submit:disabled { opacity: 0.28; cursor: not-allowed; }
/* 同意にチェックが入るまでの案内。チェックすると消える */
.form-hint {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  color: var(--ink-sub);
  transition: opacity 0.3s;
}
.wpcf7 form:has(.wpcf7-submit:not(:disabled)) .form-hint { opacity: 0; }
/* 送信中の読み込みマーク：場所を取らないよう、ボタンの上に重ねる */
.form-submit .wpcf7-spinner { position: absolute; top: 22px; right: 20px; margin: 0; background-color: rgba(255, 255, 255, 0.6); }
.wpcf7 form .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 0;
  border-left: 3px solid var(--line);
  background: var(--tint);
  font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--navy); color: var(--navy); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-left-color: #b3261e; color: #b3261e; }

/* ---------- スマホメニュー ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.menu-toggle { display: none; }
.sp-menu[hidden] { display: none; }

/* ---------- 動き ----------
   html.js-motion は functions.php で描画前に付与（視差効果を減らす設定では付かない） */
:root {
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* スクロールで表示 */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease) var(--reveal-delay, 0ms),
    transform 1.1s var(--ease-out) var(--reveal-delay, 0ms);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion .photo[data-reveal]:not(.is-in) { transform: translateY(40px); }

/* 見出し下の線：左から伸びる */
.js-motion .heading[data-reveal]::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease-out) calc(var(--reveal-delay, 0ms) + 350ms);
}
.js-motion .heading-center[data-reveal]::after { transform-origin: center; }
.js-motion .heading[data-reveal].is-in::after { transform: none; }

/* ファーストビュー：読み込み時に順に表示 */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
/* ファーストビューのスライドショー：重ねた画像をクロスフェード＋ゆっくりズーム（main.js が is-active / is-zoom を付け替える） */
:root { --slide-fade: 1.5s; --slide-zoom: 7.5s; }
.hero-slides > img {
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity var(--slide-fade) cubic-bezier(0.45, 0, 0.55, 1);
}
.hero-slides > img.is-active { opacity: 1; }
/* ズームは JS が動く端末だけ。外すときは transform の transition が無いので、見えなくなってから一瞬で元に戻る */
.js-motion .hero-slides > img.is-zoom {
  transform: scale(1.06);
  transition:
    opacity var(--slide-fade) cubic-bezier(0.45, 0, 0.55, 1),
    transform var(--slide-zoom) linear;
}

/* 切り替わりのサイン：写真の上に極細の線を1本。左から満ち、切り替えで右へ引いて消える（main.js が生成。操作はできない） */
.hero-progress {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 14px;
  z-index: 1;
  height: 1px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  transition: opacity 1.2s var(--ease, ease) 1s;
}
.hero-progress.is-shown { opacity: 1; }
.hero-progress i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left center;
}

@keyframes settle {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}
.hero { overflow: hidden; }
.js-motion .hero h1 { animation: rise 1.2s var(--ease-out) 0.15s both; }
.js-motion .hero-sub { animation: rise 1.2s var(--ease-out) 0.25s both; }
.js-motion .hero-lead { animation: rise 1.2s var(--ease-out) 0.35s both; }
.js-motion .hero .link-arrow { animation: rise 1.2s var(--ease-out) 0.5s both; }
.js-motion .hero-photo { animation: settle 2.2s var(--ease-out) both; }

/* 投資家の視点：紙面に順に書き込みが入る */
.js-motion .report tr.is-marked th,
.js-motion .report tr.is-marked td {
  background-color: transparent;
  background-image: linear-gradient(rgba(90, 116, 176, 0.12), rgba(90, 116, 176, 0.12));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.5s var(--ease);
}
.js-motion .report.is-in tr.is-marked th,
.js-motion .report.is-in tr.is-marked td { background-size: 100% 100%; }
.js-motion .report tr.is-marked > :nth-child(1) { transition-delay: 0.7s; }
.js-motion .report tr.is-marked > :nth-child(2) { transition-delay: 0.78s; }
.js-motion .report tr.is-marked > :nth-child(3) { transition-delay: 0.86s; }
.js-motion .report tr.is-marked > :nth-child(4) { transition-delay: 0.94s; }
.js-motion .report tr.is-marked + tr.is-marked > * { transition-delay: 1.15s; }

.js-motion .report tr.is-marked td:last-child {
  box-shadow: inset 0 0 0 var(--blue);
  transition: background-size 0.5s var(--ease) 0.94s, box-shadow 0.4s var(--ease) 1.1s;
}
.js-motion .report.is-in tr.is-marked td:last-child { box-shadow: inset 0 -2px 0 var(--blue); }
.js-motion .report tr.is-marked + tr.is-marked td:last-child { transition-delay: 1.15s, 1.35s; }

.js-motion .report-lines.is-marked { border-color: transparent; transition: border-color 0.6s var(--ease) 1.6s; }
.js-motion .report.is-in .report-lines.is-marked { border-color: var(--blue); }

.js-motion .report .pin {
  opacity: 0;
  transform: translateY(-50%) scale(0.4);
  transition: opacity 0.3s var(--ease), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.js-motion .report.is-in .pin { opacity: 1; transform: translateY(-50%) scale(1); }
.js-motion .report tr:nth-child(2) .pin { transition-delay: 1.2s; }
.js-motion .report tr:nth-child(3) .pin { transition-delay: 1.45s; }
.js-motion .report .report-lines.is-marked .pin { transition-delay: 1.8s; }
.js-motion .report .report-lines:not(.is-marked) .pin { transition-delay: 2.1s; }

/* タブ切り替え */


/* ヘッダーの影 */
/* ヘッダー：下にスクロールするとコンパクトに。高さ・ロゴ・背景を同じカーブで連動させる */
:root { --header-ease: cubic-bezier(0.25, 0.8, 0.25, 1); --header-dur: 0.5s; }
.header {
  transition:
    box-shadow 0.4s var(--ease),
    background-color var(--header-dur) var(--header-ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15, 42, 74, 0.18); }
.utility,
.nav-inner { transition: height var(--header-dur) var(--header-ease); }
.utility { transition-property: height, opacity, border-color; }
.utility-inner { transition: transform var(--header-dur) var(--header-ease); }
.logo {
  transform-origin: left center;
  transition: transform var(--header-dur) var(--header-ease);
}
.header.is-compact {
  background-color: rgba(248, 248, 244, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
/* sync:start スマホのメニュー（1画面版の書き出し dev/pages/build.mjs もここを読んで差し込む）
   すりガラス（backdrop-filter）の付いた要素の中では、画面いっぱいに広げるはずのメニューがヘッダーの枠に閉じ込められ、
   後ろのページが見えてしまう。メニューが出ている間（閉じて消え終わるまで）は外し、同じ色の不透明な地にする */
.header:has(> .sp-menu:not([hidden])) {
  background-color: var(--tint);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* sync:end */
.header.is-compact .utility { height: 0; opacity: 0; border-color: transparent; }
.header.is-compact .utility-inner { transform: translateY(-8px); }
.header.is-compact .nav-inner { height: 64px; }
.header.is-compact .logo { transform: scale(0.84); }

/* sync:start 上に戻る（1画面版の書き出し dev/pages/build.mjs もここを読んで差し込む） */
/* ページの先頭へ戻る：少しスクロールしたら右下に出る。外周の線はページのどこまで読んだか
   マウスを乗せると丸が左へ伸びて「上に戻る」が入り、伸びるのと同じ速さ・同じ曲線で生成りから紺へ色が移る。離すと同じ道を戻る
   伸びは地の切り抜き（clip-path）で動かし、幅は組み直さない。遅れも付けない（引っ掛かりの元になる）
   ボタン自体は素通しにして、見えている地と矢印だけが反応する（伸びる前の透明な部分でホバーしないように） */
.to-top {
  --size: 52px;
  --ttop-dur: 0.9s;
  --ttop-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* 離すとき：ゆっくり縮み始める（先に文字を消し、縮む縁が文字に重ならないように） */
  --ttop-back-dur: 0.7s;
  --ttop-back-ease: cubic-bezier(0.6, 0, 0.3, 1);
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  height: var(--size);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  filter: drop-shadow(0 8px 14px rgba(15, 42, 74, 0.16));
  color: var(--navy);
  font: inherit;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease-out),
    visibility 0s linear 0.4s,
    color var(--ttop-back-dur) var(--ttop-back-ease);
}
.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.to-top:focus-visible { outline: none; }
.to-top:focus-visible .to-top-icon { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 50%; }
/* 地：右端の丸から左へ伸びる。色は伸びと同じ時間・曲線で移る */
.to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--size) / 2);
  background: rgba(248, 248, 244, 0.96);
  clip-path: inset(0 0 0 calc(100% - var(--size)) round calc(var(--size) / 2));
  pointer-events: auto;
  transition:
    clip-path var(--ttop-back-dur) var(--ttop-back-ease),
    background-color var(--ttop-back-dur) var(--ttop-back-ease);
}
.to-top-label {
  position: relative;
  display: block;
  min-width: 0;
  overflow: visible;
  pointer-events: none;
}
.to-top-label span {
  display: block;
  padding: 0 2px 0 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(14px);
  /* 離すとき：縮むカプセルの縁に文字が残らないよう、文字は先にすっと消す */
  transition:
    opacity 0.12s linear,
    transform 0.3s var(--ease);
  transition-delay: 0s;
}
.to-top-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  pointer-events: auto;
}
.to-top svg { fill: none; stroke: currentColor; }
.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  transition: opacity var(--ttop-back-dur) var(--ttop-back-ease);
}
.to-top-ring circle {
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--progress, 0));
  opacity: 0.55;
  /* スクロールの段差がそのまま出ないよう、少し遅れてなめらかに追う */
  transition: stroke-dashoffset 0.45s var(--ease-out);
}
.to-top-arrow {
  position: static;
  width: 16px;
  height: 16px;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  transform: none;
  transition: transform var(--ttop-back-dur) var(--ttop-back-ease);
}
/* タッチ端末ではホバーが残るので、マウス操作のときだけ伸ばす。キーボードで選んだときも伸ばす */
@media (hover: hover) {
  /* 乗せるとき：伸びと色は同じ速さ・同じ曲線（すっと伸びて落ち着く） */
  .to-top:hover { grid-template-columns: none; background: none; color: #fff; transition-property: opacity, transform, visibility, color; transition-duration: 0.4s, 0.5s, 0s, var(--ttop-dur); transition-timing-function: var(--ease), var(--ease-out), linear, var(--ttop-ease); }
  .to-top:hover::before {
    clip-path: inset(0 0 0 0 round calc(var(--size) / 2));
    background-color: var(--navy);
    transition:
      clip-path var(--ttop-dur) var(--ttop-ease),
      background-color var(--ttop-dur) var(--ttop-ease);
  }
  /* 文字は、伸びてくる紺が文字の位置まで届いてから出す（先に出ると、紺の無いところに文字だけ浮く） */
  .to-top:hover .to-top-label span {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.45s var(--ease) 0.28s,
      transform 0.6s var(--ttop-ease) 0.22s;
  }
  .to-top:hover .to-top-ring { opacity: 0; transition: opacity var(--ttop-dur) var(--ttop-ease); }
  .to-top:hover .to-top-arrow { transform: translateY(-2px); opacity: 1; transition: transform var(--ttop-dur) var(--ttop-ease); }
}
.to-top:focus-visible { grid-template-columns: none; background: none; color: #fff; }
.to-top:focus-visible::before { clip-path: inset(0 0 0 0 round calc(var(--size) / 2)); background-color: var(--navy); }
.to-top:focus-visible .to-top-label span { opacity: 1; transform: none; }
.to-top:focus-visible .to-top-ring { opacity: 0; }
body.is-menu-open .to-top { opacity: 0; visibility: hidden; }
/* sync:end */

/* ホバー */
.link-arrow,
.btn-outline,
.btn-light,
.gnav a,
.footer-nav a,
.case-item summary,
.news-item a { transition-timing-function: var(--ease); transition-duration: 0.3s; }
.link-arrow { transition-property: color, border-color; }
.link-arrow::after { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover::after { transform: translate(3px, -3px); }
.gnav a,
.nav-cta span { position: relative; }
.gnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.insight-photo { overflow: hidden; transition: filter 0.5s var(--ease); }
.insight:hover .insight-photo { filter: brightness(0.96); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@keyframes scroll-cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gnav { display: none; }
  .nav-inner { justify-content: space-between; }
  .utility-inner a:last-child { padding-right: 32px; }
  .eyes { gap: 56px; }
  .case-item summary { grid-template-columns: 160px minmax(0, 1fr) 24px; }
  .case-item .case-title { grid-column: 2; grid-row: 2; }
  .case-item summary::after { grid-column: 3; grid-row: 1 / 3; }
  .case-item .flow { margin-left: 184px; }
  .needs-wrap { gap: 56px; }
  .need-voice { font-size: 20px; }
  .contact-page { gap: 48px; }
  .form-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-pair > .form-row + .form-row { margin-top: 28px; }
  .svc-detail-inner { padding: 32px 32px 36px; }
  .member { flex-basis: calc((100% - 32px * 2) / 2.3); }
  .member-feature { gap: 48px; }
  .career-text { font-size: 14px; }
  .member-dialog-inner { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 48px 40px 40px; }
}

/* ---------- メニュー（1100px 以下）：ナビが隠れる幅では、ハンバーガーで開くメニューにする ---------- */
@media (max-width: 1100px) {
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    align-self: center;
    margin: 0 -10px 0 12px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-toggle-bar,
  .menu-toggle-bar::before,
  .menu-toggle-bar::after {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy);
    transition: transform 0.25s, background 0.25s;
  }
  .menu-toggle-bar { position: relative; }
  .menu-toggle-bar::before,
  .menu-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bar::before { top: -7px; }
  .menu-toggle-bar::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .header.is-compact .sp-menu { top: 66px; }
  .nav-cta { margin-left: auto; } /* ナビが隠れても「ご相談はこちら」はハンバーガーの隣に */
  .sp-menu {
    position: fixed;
    inset: var(--header-h) 0 0;
    overflow-y: auto;
    background: var(--tint);
    padding: 8px 0 40px;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
  }
  .sp-menu.is-open { opacity: 1; }
  .sp-menu a {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
  }
  .sp-menu.is-open a { opacity: 1; transform: none; }
  .sp-menu.is-open a:nth-child(2) { transition-delay: 0.04s; }
  .sp-menu.is-open a:nth-child(3) { transition-delay: 0.08s; }
  .sp-menu.is-open a:nth-child(4) { transition-delay: 0.12s; }
  .sp-menu.is-open a:nth-child(5) { transition-delay: 0.16s; }
  .sp-menu.is-open a:nth-child(6) { transition-delay: 0.2s; }
  .sp-menu.is-open a:nth-child(7) { transition-delay: 0.26s; }
  .sp-menu a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 700;
  }
  .sp-menu a span { font-family: var(--serif); font-weight: 400; font-size: 15px; color: var(--ink-sub); }
  .sp-menu .sp-menu-cta {
    justify-content: center;
    margin-top: 32px;
    padding: 18px;
    border: 0;
    background: var(--navy);
    color: #fff;
  }

}
@media (min-width: 1101px) {
  .sp-menu { display: none !important; }
}

@media (max-width: 800px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; line-height: 1.9; }
  body.is-menu-open { overflow: hidden; }

  /* ヘッダー */
  .utility { display: none; }
  .nav-inner { height: 60px; align-items: center; }
  .logo { --logo-h: 22px; }
  .nav-cta { display: none; }
  :root { --header-h: 61px; }
  .sp-menu { inset: 61px 0 0; }

  /* 共通 */
  .section { padding: 72px 0; }
  .heading { font-size: 36px; }
  .heading::after { width: 48px; margin-top: 20px; }
  .heading-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .btn-outline { display: block; text-align: center; margin-top: 32px; }

  /* ヒーロー */
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text { padding: 48px var(--gutter) 44px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { margin: 20px 0 32px; font-size: 15px; }
  .hero-photo { aspect-ratio: 3 / 2; }

  /* 実績 */
  .stats { padding: 48px 0 40px; }
  .stats-row { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: stretch; }
  .stat { gap: 22px; }
  .stat-num { flex: none; min-width: 56px; font-size: 84px; text-align: center; }
  .stat-text { flex: 1; }
  .stat-label { padding-bottom: 8px; font-size: 17px; }
  .stat-label br { display: none; }
  .stat-sub { margin-top: 6px; font-size: 12px; }
  .awards { grid-template-columns: minmax(0, 1fr); margin-top: 40px; padding: 0 20px; }
  .awards > div { padding: 20px 0; }
  .awards > div + div { border-left: 0; border-top: 1px solid #b8c3d4; }
  .award-title { font-size: 19px; }
  .footnote { font-size: 11px; line-height: 1.7; }

  /* 投資家の視点 */
  .eyes { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .eyes-text .heading { margin-bottom: 28px; }
  .eyes-lead { font-size: 20px; }
  .eyes-notes { margin-top: 28px; }
  .eyes-notes li { align-items: flex-start; gap: 12px; padding: 12px 0; font-size: 14px; line-height: 1.7; }
  .eyes-notes span { width: 22px; height: 22px; font-size: 12px; margin-top: 1px; }
  .report-page { padding: 20px 16px 24px; }
  .report-title { margin: 16px 0 8px; font-size: 14px; }
  .report-title-sm { margin-top: 20px; font-size: 13px; }
  .report-table { font-size: 11px; }
  .report-table thead th { font-size: 10px; }
  .report-table th,
  .report-table td { padding: 7px 3px; }
  .report-table tbody th { white-space: nowrap; }
  .pin { width: 22px; height: 22px; font-size: 11px; right: -27px; }
  .report-lines.is-marked .pin { right: -28.5px; }

  /* 会社案内 */
  .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about-text .heading { margin-bottom: 32px; }
  .about-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .name-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .name-lead { margin-top: 20px; font-size: 16px; }
  .name-word { font-size: 60px; }
  .name-meaning { font-size: 14px; }
  .name-text { margin-top: 36px; }
  .name-text p { font-size: 14px; }
  .photo-a { aspect-ratio: 3 / 4; margin-top: 32px; }
  .photo-b { aspect-ratio: 3 / 4; }

  /* 比較表 → カード */
  .why-lead { margin-top: 20px; font-size: 16px; }
  .compare-wrap { margin-top: 36px; overflow: visible; }
  .compare-caption { margin-bottom: 14px; font-size: 14px; }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td { display: block; width: auto !important; min-width: 0; }
  .compare thead { display: none; }
  .compare tr { border: 1px solid var(--line); }
  .compare tr + tr { margin-top: 16px; }
  .compare tbody th {
    padding: 12px 16px;
    background: var(--navy);
    color: #fff;
    border: 0;
    font-size: 14px;
  }
  .compare tbody td { padding: 14px 16px; border: 0; font-size: 14px; line-height: 1.7; }
  .compare tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #888;
  }
  .compare tbody td + td { border-top: 1px solid var(--line); }
  .compare tbody td.is-us { border-top: 1px solid #c9d3e3; font-size: 15px; }
  .compare tbody td.is-us::before { font-family: var(--serif); font-size: 13px; letter-spacing: 0.12em; color: var(--blue); }

  /* 事業内容：行を押すと開く */
  .svc-picker { margin-top: 40px; }
  .svc-row { padding: 18px 4px; gap: 14px; }
  .svc-row-name { font-size: 16px; }
  .svc-row-summary { font-size: 12.5px; }
  .svc-list-label { padding: 0 4px 8px; }
  .svc-detail-inner { padding: 24px 20px 26px; }
  .svc-head { display: block; }
  .svc-icon { display: none; }
  .svc-head h3 { font-size: 21px; }
  .svc-head-text > p:not(.svc-en) { font-size: 14px; line-height: 1.9; }
  .svc-items { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .svc-items li { padding: 14px 0; }
  .svc-items li.has-icon { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
  .svc-items li.has-icon .svc-item-icon { width: 44px; }
  .svc-items h4 { font-size: 15px; }
  .svc-items p { font-size: 13px; }
  .svc-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 20px; }
  .svc-steps li { padding: 16px 18px 18px; }
  .svc-cta { margin-top: 24px; }
  .svc-steps li:not(:last-child)::after { top: auto; right: auto; bottom: -15px; left: 50%; transform: translateX(-50%) rotate(135deg); }

  /* メンバー・インサイト：横スワイプ */
  .members,
  .insights {
    display: flex;
    gap: 16px;
    margin: 40px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .members::-webkit-scrollbar,
  .insights::-webkit-scrollbar { display: none; }
  .member,
  .insight { flex: 0 0 74%; scroll-snap-align: start; }
  .member-card .member-photo { margin-bottom: 16px; }
  .member-name { font-size: 20px; }
  .member-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; }
  .member-feature-photo { aspect-ratio: 1 / 1; }
  .member-feature-name { font-size: 30px; }
  .member-feature .member-name-en { font-size: 16px; }
  .career { margin-top: 24px; }
  .career li { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .career-year { font-size: 18px; }
  .members-head { margin-top: 72px; }
  .members-head .slide-nav { display: none; }
  .members + .swipe-ui { margin-top: 20px; }
  .member-dialog { width: calc(100% - 24px); max-height: calc(100% - 24px); }
  .member-dialog-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 48px 20px 28px; }
  .member-dialog-photo { width: 160px; }
  .member-dialog-name { font-size: 22px; }
  .member-dialog-bio { margin-top: 16px; font-size: 14px; line-height: 1.9; }
  .insight-photo { margin-bottom: 16px; }
  .insight h3 { font-size: 16px; }

  /* 事例 */
  .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .feature-card { aspect-ratio: 4 / 3; padding: 24px; }
  .feature-kicker { font-size: 11px; gap: 10px; }
  .feature-kicker::before,
  .feature-kicker::after { width: 28px; }
  .feature-title { font-size: 28px; margin: 12px 0 14px; }
  .feature-sub { font-size: 12px; }
  .feature-body h3 { font-size: 19px; }
  .feature-body h3 br { display: none; }
  .flow { grid-template-columns: 44px minmax(0, 1fr); margin: 20px 0 32px; }
  html[lang="en"] .flow { grid-template-columns: minmax(0, 1fr); }
  html[lang="en"] .flow dt { padding-bottom: 0; border-bottom: 0; }
  html[lang="en"] .flow dd { padding-top: 4px; }
  .flow dt,
  .flow dd { padding: 14px 0; font-size: 14px; line-height: 1.75; }
  .case-list { margin-top: 48px; }
  .case-item summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 0 12px; padding: 18px 0; font-size: 14px; line-height: 1.7; }
  .case-item .case-ind { grid-column: 1; grid-row: 1; font-size: 14px; }
  .case-item .case-client { grid-column: 1; grid-row: 2; }
  .case-item .case-title { grid-column: 1; grid-row: 3; color: var(--ink-sub); }
  .case-item summary::after { grid-column: 2; grid-row: 1 / 4; }
  .case-item .flow { margin: 0 0 24px; }
  .hero-sub { margin-top: 12px; font-size: 12px; }
  .company { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .profile { grid-template-columns: 92px minmax(0, 1fr); font-size: 13.5px; }
  .company-map { grid-column: auto; margin-top: -8px; aspect-ratio: 4 / 3; }
  .profile dt,
  .profile dd { padding: 14px 0; }
  .needs-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .needs-head { position: static; }
  .needs-lead { margin-top: 20px; font-size: 16px; }
  .needs-photo { aspect-ratio: 3 / 2; margin-top: 32px; }
  .need { padding: 32px 0 36px; }
  .need-voice { padding-left: 32px; font-size: 17px; }
  .need-voice::before { font-size: 56px; top: -12px; }
  .need-answer { margin-top: 18px; padding-left: 32px; font-size: 14px; }

  /* ニュース */
  .news-list { margin-top: 32px; }
  .news-item a { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 18px 32px 18px 0; }
  .news-item time { font-size: 13px; }
  .news-item a > .news-title { grid-column: 1 / -1; font-size: 15px; line-height: 1.7; }

  /* CTA */
  .cta { padding: 72px 0; }
  .cta h2 { font-size: 36px; }
  .cta p { font-size: 14px; }
  .btn-light { display: block; margin-top: 32px; }

  /* 下層 */
  .page-head { padding: 44px 0 36px; }
  .page-head-en { font-size: 36px; }
  .page-head-en::after { width: 48px; margin: 16px 0 10px; }
  .section-sub { padding: 48px 0 80px; }
  .entry { font-size: 15px; }
  .article-head { padding-bottom: 24px; }
  .article-nav { margin-top: 48px; }
  .contact-page { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-info { position: static; }
  .contact-lead { font-size: 17px; }
  .contact-steps-title { margin-top: 36px; }
  .contact-steps li { padding: 16px 0; }
  .contact-company { margin-top: 28px; }
  .contact-form { margin: 0 calc(var(--gutter) * -1); padding: 36px var(--gutter) 40px; box-shadow: none; }
  .form-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-pair > .form-row + .form-row { margin-top: 24px; }
  .form-row + .form-row,
  .form-pair + .form-row,
  .form-row + .form-pair { margin-top: 24px; }

  /* フッター */
  .footer { padding-top: 56px; }
  .footer-inner { flex-direction: column; gap: 32px; padding-bottom: 40px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; }
  .footer-bottom { flex-direction: column-reverse; gap: 8px; padding-right: var(--gutter); }
  .to-top {
    --size: 44px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  /* ===== スマホ再設計：縦に積むだけにせず、写真・横スワイプ・切り替えで見せる ===== */

  /* 見出しは左揃えで統一 */
  .heading-center { text-align: left; }
  .heading-center::after { margin-left: 0; }
  .js-motion .heading-center[data-reveal]::after { transform-origin: left center; }
  .why-lead { text-align: left; }

  /* ファーストビュー：写真を全面に敷いて文字を重ねる */
  .hero {
    position: relative;
    display: block;
    background: var(--navy);
    color: #fff;
  }
  .hero .hero-photo { position: absolute; inset: 0; aspect-ratio: auto; min-height: 0; }
  .hero-progress { left: var(--gutter); right: var(--gutter); top: 18px; bottom: auto; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 20, 38, 0.1) 0%, rgba(8, 20, 38, 0.35) 38%, rgba(8, 20, 38, 0.9) 100%);
    pointer-events: none;
  }
  .hero-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px var(--gutter) 64px;
  }
  .hero h1 { font-size: 50px; line-height: 1.05; }
  .hero h1.is-ja { font-size: clamp(26px, 8.2vw, 40px); line-height: 1.45; }
  .hero-sub { color: #c6d2ee; }
  .hero-lead { margin: 20px 0 32px; color: rgba(255, 255, 255, 0.88); }
  .hero .link-arrow { align-self: flex-start; color: #fff; border-color: #fff; }
  .hero-text::after {
    content: "";
    position: absolute;
    right: var(--gutter);
    bottom: 0;
    width: 1px;
    height: 52px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    transform-origin: top;
    animation: scroll-cue 2.4s var(--ease) infinite;
  }
  .hero-text::before {
    content: "Scroll";
    position: absolute;
    right: calc(var(--gutter) - 6px);
    bottom: 64px;
    font-family: var(--serif);
    font-size: 11px;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    color: rgba(255, 255, 255, 0.7);
  }

  /* 実績：2列に詰める */
  .stats { padding: 40px 0 32px; }
  .stats-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; } /* 左右の余白と線は下の「実績数字」（何個でも2列で折り返す） */
  .stat-num { min-width: 0; font-size: 72px; line-height: 0.9; text-align: left; }
  .stat-text { width: 100%; }
  .stat-label { font-size: 15px; }
  .stat-sub { font-size: 11px; line-height: 1.6; }
  .awards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 32px; padding: 0; }
  .awards > div { padding: 18px 12px; }
  .awards > div + div { border-top: 0; border-left: 1px solid #b8c3d4; }
  .award-title { font-size: 15px; line-height: 1.5; }
  .awards p:not(.award-title) { font-size: 11px; line-height: 1.6; }


  /* 横スワイプ共通 */
  .members,
  .insights { gap: 12px; }
  .member,
  .insight { flex-basis: 76%; }

  /* 横スクロールの欄は縦にスクロールさせない（カードが下から出てくる間に、縦に動かせてしまうため） */
  .members,
  .insights { overflow-y: hidden; }

  /* 位置表示（01 / 05）と進捗バー */
  .swipe-ui {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }
  .swipe-count {
    min-width: 58px;
    font-family: var(--serif);
    font-size: 14px;
    color: var(--ink-sub);
    font-variant-numeric: lining-nums tabular-nums;
  }
  .swipe-count b { font-weight: 400; color: var(--navy); }
  .swipe-bar { position: relative; flex: 1; height: 2px; overflow: hidden; background: var(--line); }
  .swipe-bar i {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(100% / var(--n, 1));
    background: var(--navy);
    transform: translateX(calc(var(--i, 0) * 100%));
    transition: transform 0.45s var(--ease-out);
  }
}

/* sync:start 最初の画面の高さ（1画面版の書き出し dev/pages/build.mjs もここを読んで差し込む）
   --fv-h は main.js が入れる、開いたときの画面の高さ。LINE などアプリ内のブラウザでは、スクロールでツールバーが隠れると
   表示の枠そのものが伸びて svh も変わり、最初の画面が伸びて下を押し下げ続けるため（スクロールがカタカタした） */
.hero { min-height: max(560px, calc(var(--fv-h, 100svh) - var(--header-h))); }
@media (max-width: 800px) {
  .hero,
  .hero-text { min-height: calc(var(--fv-h, 100svh) - var(--header-h)); }
}
/* sync:end */

/* sync:start スマホのヘッダー（1画面版の書き出し dev/pages/build.mjs もここを読んで差し込む）
   スマホでは、下へ進んでもヘッダーの形を変えない（縮める・すりガラスにする、をやめて影だけ付ける）
   最初の画面の写真はゆっくりズームし続けているので、その上ですりガラスにすると iPhone の Safari では毎コマぼかし直しになり、
   縮む動きとも重なって、上の方でスクロールがカクついた。上の @media (max-width: 1100px) の値も上書きするので、ここに置く */
@media (max-width: 800px) {
  .header.is-compact {
    background-color: var(--tint);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .header.is-compact .nav-inner { height: 60px; }
  .header.is-compact .logo { transform: none; }
  .header.is-compact .sp-menu { top: 61px; }
}
/* sync:end */

/* ==========================================================================
   管理画面で追加・編集できる部分
   ========================================================================== */

/* ---------- 実績数字：管理画面で何個にしても1列に並べる（PC） ---------- */
@media (min-width: 801px) {
  .stats-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .awards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
/* 数が4つ以上・3文字以上の数字（1,234・50+ など）があるとき（.is-stacked。stats.php）：数字をラベルの上に置き、
   数字の大きさは列の幅に収まるように下げる（--stat-chars は一番長い数字の文字数） */
@media (min-width: 801px) {
  .stats-row.is-stacked { column-gap: clamp(24px, 3vw, 48px); justify-items: stretch; }
  .stats-row.is-stacked .stat { flex-direction: column; align-items: flex-start; gap: 18px; container-type: inline-size; }
  .stats-row.is-stacked .stat-num { font-size: min(clamp(64px, 7vw, 112px), 100cqi / (var(--stat-chars, 2) * 0.62)); }
  .stats-row.is-stacked .stat-text { width: 100%; }
}
@media (min-width: 801px) and (max-width: 1279px) {
  .stats-row.is-three { column-gap: clamp(24px, 3vw, 48px); justify-items: stretch; }
  .stats-row.is-three .stat { flex-direction: column; align-items: flex-start; gap: 18px; container-type: inline-size; }
  .stats-row.is-three .stat-num { font-size: min(clamp(64px, 7vw, 112px), 100cqi / (var(--stat-chars, 2) * 0.62)); }
  .stats-row.is-three .stat-text { width: 100%; }
}
/* スマホ：2列で折り返す。左の列は右に余白、右の列は左に線（3つ目からは次の行）。長い数字は列の幅に合わせて小さく */
@media (max-width: 800px) {
  .stats-row { row-gap: 28px; }
  .stat:nth-child(odd) { padding: 0 16px 0 0; border-left: 0; }
  .stat:nth-child(even) { padding: 0 0 0 16px; border-left: 1px solid var(--line); }
  .stat { container-type: inline-size; }
  .stat-num { font-size: min(72px, 100cqi / (var(--stat-chars, 2) * 0.62)); }
}
/* スマホ：受賞・トピックは2列。数が奇数なら1つ目（アワード）を1行に広げ、残りを2列に */
@media (max-width: 800px) {
  .awards > div:first-child:nth-last-child(odd):not(:only-child) { grid-column: 1 / -1; border-bottom: 1px solid #b8c3d4; }
  .awards > div:first-child:nth-last-child(odd) + div { border-left: 0; }
}

/* ---------- メンバーのプロフィール項目 ---------- */
.member-profile {
  display: grid;
  grid-template-columns: fit-content(40%) minmax(0, 1fr);
  column-gap: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
}
.member-profile dt,
.member-profile dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.member-profile dt { font-weight: 700; color: var(--navy); }
.member-profile dd { color: var(--ink-sub); }

/* ---------- 事例：注目事例が複数／注目事例なし ---------- */
.feature + .feature { margin-top: 96px; }
.case-list-only { margin-top: 64px; }

/* ---------- インサイト：記事へのリンク ---------- */
.insight-link { display: block; }
a.insight-link:hover h3 { color: var(--blue); }
.insight.is-soon .insight-date { color: #aaa; }
.insights-archive { margin-top: 0; row-gap: 64px; }
.article-photo { aspect-ratio: 16 / 9; margin-top: 40px; }

/* ---------- 追加セクション ---------- */
.free-inner { max-width: 880px; }
.free-inner.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  max-width: none;
}
.free-inner.is-image-left .free-photo { order: -1; }
.free-text .heading { margin-bottom: 40px; }
.free-lead { margin-bottom: 24px; font-size: 20px; font-weight: 500; line-height: 1.8; color: var(--navy); }
.free-text > p:not(.free-lead) { font-size: 15px; }
.free-text > p + p { margin-top: 16px; }
.free-button { margin-top: 36px; }
.free-photo { aspect-ratio: 4 / 3; }
.free-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
.free-cards li { padding-top: 20px; border-top: 1px solid var(--ink); }
.free-card-no { display: block; font-family: var(--serif); font-size: 15px; color: var(--blue); letter-spacing: 0.08em; }
.free-cards h3 { margin-top: 8px; font-size: 19px; font-weight: 500; line-height: 1.6; color: var(--navy); }
.free-cards p { margin-top: 10px; font-size: 14px; color: var(--ink-sub); }

.free-bg-navy { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.free-bg-navy .heading,
.free-bg-navy .free-lead,
.free-bg-navy .free-cards h3 { color: #fff; }
.free-bg-navy .heading::after { background: var(--gold); }
.free-bg-navy .free-card-no { color: var(--gold); }
.free-bg-navy .free-cards li { border-top-color: rgba(255, 255, 255, 0.5); }
.free-bg-navy .free-cards p { color: rgba(255, 255, 255, 0.75); }
.free-bg-navy .link-arrow { color: #fff; border-color: #fff; }
.free-bg-navy .link-arrow:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 1100px) {
  .free-inner.has-image { gap: 48px; }
}

@media (max-width: 800px) {
  .insights.insights-archive { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; overflow: visible; margin: 0; padding: 0; }
  .feature + .feature { margin-top: 64px; }
  .free-inner.has-image { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .free-inner.is-image-left .free-photo { order: 0; }
  .free-text .heading { margin-bottom: 28px; }
  .free-lead { font-size: 17px; }
  .free-cards { gap: 24px; margin-top: 48px; }
}

/* ---------- 第二案（2026-10-26）から取り入れる候補：入門ガイド・よくあるご質問・事例の表紙・事業内容の1文 ----------
   どれも初期値では出ない（入門ガイドは PDF を選んで表示にしたとき、FAQ はページ構成で表示にしたとき、表紙は画像を入れた事例だけ、1文は入れたとき） */

/* ファーストビュー：入口を2つ並べる（相談する・入門ガイド） */
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.link-arrow-sub { border-bottom-width: 1px; font-weight: 500; }
.link-arrow-sub::after { content: "↓"; }
.link-arrow-sub:hover::after { transform: translateY(3px); }

/* 投資家の視点の下：入門ガイド（PDF）。1画面に収まるよう、名前とダウンロードを1段に。左に金の線 */
.guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding: 16px 22px 16px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: #fff;
}
.eyes-text > .guide p { margin-top: 0; }
.guide-title { display: flex; align-items: baseline; gap: 14px; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--navy); }
.guide-kicker { flex: none; font-family: var(--serif); font-size: 12px; letter-spacing: 0.2em; color: var(--blue); }
.guide .link-arrow { flex: none; font-size: 15px; }
.guide .link-arrow::after { content: "↓"; }
.guide .link-arrow:hover::after { transform: translateY(3px); }

/* 事業内容：見出しの下の1文 */
.svc-lead { max-width: 760px; margin-top: 32px; font-size: 17px; line-height: 1.9; color: var(--navy); }

/* よくあるご質問：左に見出し、右に開閉の一覧（事例の一覧と同じ線・動き） */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  justify-self: end;
  align-self: center;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open]:not(.is-closing) summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.faq-q { font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--blue); }
.faq-body { overflow: hidden; }
/* 余白は縮む箱（.faq-body）の内側に置く */
.faq-answer { padding: 0 40px 26px 48px; font-size: 15px; color: var(--ink-sub); }
.faq-answer p + p { margin-top: 10px; }

/* 事例：レポートの表紙（掲載のご了承をいただいたものだけ） */
.case-cover img { display: block; width: 100%; height: auto; box-shadow: 0 12px 32px rgba(10, 26, 48, 0.18); }
.feature-card.has-cover .feature-cover img { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.feature-card.has-cover > p { position: relative; z-index: 1; }
.feature-card.has-cover { display: grid; grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 36px; text-align: left; justify-items: start; }
.feature-card.has-cover .feature-cover { grid-row: 1 / 5; align-self: center; position: relative; z-index: 1; }
.feature-card.has-cover .feature-kicker { grid-row: 1; }
.feature-card.has-cover .feature-title { grid-row: 2; }
.feature-card.has-cover .feature-sub { grid-row: 3; }
.feature-card.has-cover .feature-kicker { gap: 0; font-size: 12px; letter-spacing: 0.16em; }
.feature-card.has-cover .feature-kicker::before,
.feature-card.has-cover .feature-kicker::after { display: none; }
.feature-card.has-cover .feature-title { margin: 12px 0 14px; font-size: clamp(22px, 2.2vw, 30px); }
.feature-card.has-cover .feature-sub { align-self: start; }
.case-body-inner.has-cover { display: grid; grid-template-columns: 160px minmax(0, 820px); gap: 0 64px; margin-left: 224px; padding-bottom: 32px; }
.case-body-inner.has-cover .case-cover { align-self: start; }
.case-body-inner.has-cover .flow { margin: 0; }

@media (max-width: 1100px) {
  .faq-wrap { gap: 48px; }
  .case-body-inner.has-cover { margin-left: 184px; grid-template-columns: 120px minmax(0, 1fr); gap: 0 32px; }
}
@media (max-width: 800px) {
  .hero-links { gap: 16px 28px; }
  .guide { margin-top: 28px; padding: 16px 18px 18px 20px; }
  .guide-title { font-size: 15px; }
  .svc-lead { margin-top: 24px; font-size: 15px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq-item summary { grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 12px; padding: 18px 0; font-size: 15px; line-height: 1.7; }
  .faq-q { font-size: 18px; }
  .faq-answer { padding: 0 32px 22px 36px; font-size: 14px; }
  .feature-card.has-cover { grid-template-columns: 34% minmax(0, 1fr); column-gap: 20px; padding: 28px 24px; }
  .case-body-inner.has-cover { margin-left: 0; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 0; }
  .case-body-inner.has-cover .case-cover { width: 112px; margin: 4px 0 20px; }
  .case-body-inner.has-cover .flow { margin-bottom: 24px; }
}

/* ---------- 実績・事例（2026-11-24 全体へのご意見 No.4・9・13）----------
   見出しの下に実績数字、その下に事例を1つの並び。各行は 業種の絵／番号と会社／支援内容／期間／開閉の印。
   トップの事業内容は名前と一言のカード（押すと事業内容のページのそのサービスへ） */
.stats-embed { padding: 56px 0 0; }
.stats-embed .awards { margin-top: 48px; }
#cases .case-list { margin-top: 64px; }
#cases.is-digest .case-more { display: none; } /* トップは2件だけ（cases.php） */
#cases .case-item summary {
  grid-template-columns: 96px minmax(0, 260px) minmax(0, 1fr) 24px;
  align-items: center;
  padding: 20px 0;
}
.case-thumb {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), #3d5a86);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.3;
  padding: 6px;
}
.case-thumb > span { word-break: normal; overflow-wrap: normal; } /* 単語の途中で折らない */
.case-thumb.has-img { padding: 0; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-head { display: flex; flex-direction: column; gap: 2px; }
.case-head .case-ind { font-size: 13px; }
#cases .case-item .flow { margin-left: 120px; }

.svc-cards {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.svc-cards li { border-bottom: 1px solid var(--line); }
.svc-cards li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.svc-card { display: flex; align-items: flex-start; gap: 18px; height: 100%; padding: 28px 24px; transition: background-color 0.3s; }
.svc-card:hover { background: var(--tint, #f1f3f6); }
.svc-card .svc-row-text { display: flex; flex-direction: column; gap: 6px; }
.svc-card .svc-row-name { font-weight: 700; color: var(--navy); }
.svc-card .svc-row-summary { font-size: 13px; color: var(--ink-sub); }

@media (max-width: 1100px) {
  #cases .case-item summary { grid-template-columns: 96px minmax(0, 1fr) 24px; column-gap: 20px; }
  #cases .case-item .case-thumb { grid-column: 1; grid-row: 1 / 3; }
  #cases .case-item .case-head { grid-column: 2; grid-row: 1; }
  #cases .case-item .case-title { grid-column: 2; grid-row: 2; }
  #cases .case-item summary::after { grid-column: 3; grid-row: 1 / 3; }
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-cards li:not(:nth-child(3n + 1)) { border-left: 0; }
  .svc-cards li:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 800px) {
  .stats-embed { padding-top: 32px; }
  #cases .case-list { margin-top: 40px; }
  #cases .case-item summary { grid-template-columns: 72px minmax(0, 1fr) 20px; column-gap: 14px; }
  #cases .case-item .case-thumb { width: 72px; font-size: 8px; letter-spacing: 0.02em; }
  #cases .case-item .case-title { color: var(--ink-sub); }
  #cases .case-item .flow { margin-left: 0; }
  .svc-cards { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .svc-cards li:nth-child(even) { border-left: 0; }
  .svc-card { padding: 20px 4px; }
}
