/* FB HP アップデート案 モック v04 — OpenAI・Sierra の実測値（research_reference_v01/reference_notes_v01.md）に合わせた上書き
   読み込み順：tokens_v02 → tokens_v03 → site_v01 → pages_v02 → site_v03 → この site_v04。
   決まり：見出しは太さ500で大きく少なく、本文17px、字の段は7つ以内、色は字4色・地2色、章の余白は広く、
   写真は大きく少なく（使い回し禁止・元の画素は表示の2倍以上・加工なし）、線・枠・カード・ガラスを使わない。 */

/* ---------- 土台 ---------- */
body { background: var(--fb-bg); font-size: var(--fb-fs-body); line-height: var(--fb-lh-body); letter-spacing: .02em; color: var(--fb-ink); }
.wrap { max-width: calc(var(--fb-container) + var(--fb-gutter) * 2); }
.sec { padding: var(--fb-section-y) 0; }
.sec--alt, .cta { background: var(--fb-bg-alt); }
.hero__bg { display: none; }
.label { font-size: var(--fb-fs-label); font-weight: 500; letter-spacing: var(--fb-ls-label); color: var(--fb-ink-muted); text-transform: uppercase; }
.h2, .sec-head .h2 { font-size: var(--fb-fs-h2); font-weight: var(--fb-fw-head); line-height: 1.35; letter-spacing: -0.01em; }
.h3 { font-size: var(--fb-fs-h3); font-weight: var(--fb-fw-head); line-height: var(--fb-lh-heading); }
.lead { font-size: var(--fb-fs-lead); line-height: 1.8; color: var(--fb-ink-muted); max-width: var(--fb-measure); }
.small { font-size: var(--fb-fs-small); }
p { max-width: var(--fb-measure); }
/* 日本語の改行を文節で（Chrome 119 以降）。中央揃えの説明は行の長さをそろえる */
h1, h2, h3, .lead, .v4-hero__lead, .cta__panel p { word-break: auto-phrase; }
.phero .lead, .phero h1 { text-wrap: balance; }
.phero .lead { max-width: 36em; }
a { color: var(--fb-purple-700); }

/* 章の頭：英字ラベルをやめ、見出し＋説明だけ（Sierra・OpenAI の型） */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head .label, .ttl .label { display: none; }
.sec-head .lead { margin: 0; }
.ttl { gap: 0; }

/* ---------- ボタン：角 4px・高さ48px・影なし ---------- */
.btn { min-height: var(--fb-btn-h); padding: 0 26px; border-radius: var(--fb-radius-sm); font-size: 15px; font-weight: 500; letter-spacing: .04em; box-shadow: none; }
.btn--primary { background: var(--fb-purple-600); color: #fff; }
.btn--primary:hover { background: var(--fb-purple-800); }
.btn--ghost { color: var(--fb-ink); padding: 0 4px; min-height: var(--fb-btn-h); }
.link-arrow { font-size: 15px; font-weight: 500; color: var(--fb-purple-700); }

/* ---------- ガラスは使わない（0か所） ---------- */
.glass { background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0; padding: 0; }

/* ---------- ヘッダー：白地・線なし・ぼかしなし・高さ72px ---------- */
.hdr { position: sticky; top: 0; background: #fff; border-bottom: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr__in { min-height: 72px; gap: 32px; }
.hdr__logo img { height: 34px; }
.hdr__nav { gap: 28px; }
.hdr__nav a { font-size: 14px; font-weight: 400; letter-spacing: .04em; color: var(--fb-ink); }
.hdr__nav a[aria-current="page"] { font-weight: 500; color: var(--fb-ink); box-shadow: none; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hdr__cta { gap: 24px; }
.hdr__cta .txt { font-size: 14px; }
.hdr__cta .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.hdr__menu summary { background: none; border: 0; font-weight: 500; font-size: 14px; padding: 8px 0; }
.hdr__menu nav { top: 72px; left: 0; right: 0; border-radius: 0; padding: 12px var(--fb-gutter) 24px; }
.hdr__menu nav a { padding: 12px 0; font-size: 16px; }

/* ---------- 写真（共通） ---------- */
.v4-photo { margin: 0; overflow: hidden; border-radius: var(--fb-radius-photo); background: var(--fb-bg-alt); }
.v4-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v4-photo--169 { aspect-ratio: 16 / 9; }
.v4-photo--32 { aspect-ratio: 3 / 2; }
.v4-photo figcaption { display: none; }

/* ---------- トップ：幅いっぱいの写真／動画のヒーロー（案 A 自然・B 街・C 動画） ---------- */
.v4-hero { position: relative; min-height: clamp(560px, 84vh, 800px); display: flex; align-items: flex-end; color: var(--fb-on-photo); overflow: hidden; isolation: isolate; }
.v4-hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.v4-hero__media img, .v4-hero__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 字の下だけを暗くする敷き（写真そのものは加工しない） */
.v4-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--fb-scrim), .70) 0%, rgba(var(--fb-scrim), .64) 52%, rgba(var(--fb-scrim), .22) 80%, rgba(var(--fb-scrim), .08) 100%),
              linear-gradient(180deg, rgba(var(--fb-scrim), 0) 40%, rgba(var(--fb-scrim), .35) 100%); }
/* スマホは字が幅いっぱいに並ぶので、字の範囲全体を同じ濃さで敷く */
@media (max-width: 768px) {
  .v4-hero::after { background: linear-gradient(180deg, rgba(var(--fb-scrim), .46) 0%, rgba(var(--fb-scrim), .68) 26%, rgba(var(--fb-scrim), .72) 100%); }
}
.v4-hero__in { width: 100%; padding-top: 120px; padding-bottom: clamp(48px, 6.5vw, 96px); }
.v4-hero .label { color: #fff; }
.v4-hero h1 { margin-top: 20px; font-size: var(--fb-fs-display); font-weight: var(--fb-fw-head); line-height: var(--fb-lh-tight); letter-spacing: var(--fb-ls-display); color: #fff; }
.v4-hero__sub { margin-top: 24px; font-size: var(--fb-fs-lead); font-weight: 500; color: #fff; letter-spacing: .04em; }
.v4-hero__lead { margin-top: 12px; font-size: var(--fb-fs-lead); line-height: 1.8; color: #fff; max-width: 36em; }
.v4-hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
/* 主ボタンは今のサイトのブランドの紫（写真の上でもFBの色を残す） */
.v4-hero .btn--light { background: var(--fb-purple-600); color: #fff; }
.v4-hero .btn--light:hover { background: var(--fb-purple-800); color: #fff; text-decoration: none; }
.v4-hero .link-light { color: #fff; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.v4-hero .link-light:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .v4-hero video { display: none; }
  .v4-hero__media--video { background: center / cover no-repeat url("photo_hero_video_poster.jpg"); }
}

/* ---------- トップ：2つの入口（カードなし・2列の文字） ---------- */
.v4-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px 80px; }
.v4-entry__item h3 { font-size: var(--fb-fs-h3); font-weight: var(--fb-fw-head); }
.v4-entry__item p { margin-top: 14px; color: var(--fb-ink-muted); }
.v4-entry__item .link-arrow { margin-top: 20px; }
.v4-entry__foot { margin-top: 56px; font-size: 15px; color: var(--fb-ink-muted); }
.v4-entry__foot a { margin-left: 12px; }

/* ---------- 一覧の行（サービス・支援例・記事）：表の行の細い区切りだけ ---------- */
.svc-grid, .cases, .posts, .values, .positions, .news { border-top: 1px solid var(--fb-line); }
.svc, .svc--main, .svc--half, .svc--tb { padding: 32px 0; gap: 10px 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
.svc__en { display: none; }
.svc h3 { grid-row: 1 / span 2; font-size: var(--fb-fs-h3); font-weight: var(--fb-fw-head); }
.svc p { grid-row: 1; font-size: 15px; line-height: 1.8; }
.svc ul, .svc li { font-size: 14px; }
.svc ul { grid-row: 2; }
.case { padding: 28px 0; gap: 8px 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.case .label { display: none; }
.case h3 { grid-row: 1 / span 2; font-size: 19px; font-weight: var(--fb-fw-head); }
.case p { grid-row: 1 / span 2; font-size: 15px; }
.post { padding: 24px 0; grid-template-columns: 220px minmax(0, 1fr); }
.post h3 { font-size: 17px; font-weight: var(--fb-fw-head); }
.post .cat, .post time, .post .meta { font-size: 13px; }
.news li { font-size: 15px; padding: 18px 0; }
.news time, .news .cat { font-size: 13px; }

/* ---------- 流れ図：箱は薄い地だけ。字を一回り大きく ---------- */
.flow__node { background: var(--fb-bg-alt); padding: 22px 22px 20px; }
.sec--alt .flow__node, .cta .flow__node { background: #fff; }
.flow__node--key, .sec--alt .flow__node--key, .cta .flow__node--key { background: var(--fb-purple-600); }
.flow__num { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--fb-ink-muted); }
.flow__node--key .flow__num { color: #fff; }
.flow__title { font-size: 17px; font-weight: 500; }
.flow__sub { font-size: 14px; line-height: 1.7; }
.flow__tags span { font-size: 13px; background: #fff; }
.arrow small, .loop span { font-size: 13px; font-weight: 500; }
.flow-note { font-size: 14px; }
.box { background: var(--fb-purple-50); }
.box__title { font-size: 13px; font-weight: 500; }
.state { font-weight: 500; }
.io span, .split > div { font-size: 14px; font-weight: 500; }

/* ---------- 3列・メンバー ---------- */
.trio { gap: 56px; }
.trio .num { font-size: 13px; font-weight: 500; color: var(--fb-ink-muted); }
.trio h3 { font-size: 19px; font-weight: var(--fb-fw-head); margin: 10px 0 12px; }
.trio p { font-size: 15px; line-height: 1.85; }
.members { gap: 48px 32px; }
/* トップのメンバー：写真の列（88px）と文の列に分け、写真のない人も文の位置をそろえる */
.v4-members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.v4-members .member { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 24px; align-items: start; }
.v4-members .member > div:last-child { grid-column: 2; }
.v4-members .member .ph { margin: 0; }
.v4-members .member h3 { margin-top: 2px; }
.v4-members .member .role { display: block; margin-top: 4px; }
.v4-members .member .career { margin-top: 12px; font-size: 14px; color: var(--fb-ink); }
.v4-members .member p { margin-top: 6px; font-size: 14px; line-height: 1.8; color: var(--fb-ink-muted); }
/* トップの支援例：表の行でなく、3列の文字（線・枠なし） */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; border-top: 0; counter-reset: cs; }
.case { display: block; padding: 0; border: 0; counter-increment: cs; color: var(--fb-ink); }
.case::before { content: counter(cs, decimal-leading-zero); display: block; font-size: 13px; letter-spacing: .08em; color: var(--fb-ink-muted); margin-bottom: 12px; }
.case h3 { font-size: 19px; line-height: 1.6; }
.case p { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--fb-ink-muted); }
.case:hover { text-decoration: none; }
.case:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.member .ph { width: 88px; height: 88px; }
.ceo__card img { width: 180px; height: 180px; }
.member h3 { font-size: 17px; font-weight: 500; }
.member .role { font-size: 13px; }
.member p { font-size: 14px; }

/* ---------- 下層ページの入口：中央の大見出し＋説明（Sierra・OpenAI の型） ---------- */
.phero { padding: clamp(56px, 7.5vw, 112px) 0 clamp(40px, 5vw, 72px); text-align: center; }
.phero .crumb { justify-content: center; font-size: 13px; }
.phero__grid { display: block; margin-top: 24px; }
.phero .label { display: none; }
.phero h1 { font-size: var(--fb-fs-h1); font-weight: var(--fb-fw-head); line-height: var(--fb-lh-tight); letter-spacing: var(--fb-ls-display); margin: 0 auto; }
.phero .lead { margin: 24px auto 0; text-align: center; }
.phero .lead + .lead, .phero p { margin-left: auto; margin-right: auto; }
.phero__side, .phero .toc { margin: 40px auto 0; max-width: 880px; }
.toc__title { display: none; }
.toc ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin: 0; }
.toc ol a { padding: 4px 0; font-size: 15px; font-weight: 400; }
.toc ol a::before { display: none; }
.phero--article { text-align: left; }
.phero--article .crumb { justify-content: flex-start; }
.phero--article h1 { font-size: clamp(26px, 2.78vw, 40px); margin: 0; }
.phero--article .lead, .phero--article p { margin-left: 0; text-align: left; }
.phero--article .toc ol, .phero--article .phero__side { justify-content: flex-start; margin-left: 0; }

/* 下層の大きな写真（入口の直下・1ページ1枚まで） */
.v4-lead-photo { padding: 0 0 clamp(24px, 3vw, 40px); }

/* ---------- サービス詳細 ---------- */
.detail { padding: 64px 0; gap: 64px; }
.detail__head h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: var(--fb-fw-head); }
.detail__head p { font-size: 15px; line-height: 1.85; }
.detail__head .label { font-size: 13px; }
.themes > li > div, .themes summary { font-size: 16px; font-weight: 500; padding: 18px 0; }
.themes > li > div::before, .themes summary::before { font-size: 13px; color: var(--fb-ink-muted); font-weight: 500; }
.themes .body { font-size: 15px; }
.themes .body b { font-size: 13px; color: var(--fb-ink-muted); font-weight: 500; }
.case-row { padding: 72px 0; gap: 64px; border-top: 0; }
.case-row__txt .label { font-size: 13px; }
.case-row__txt .h3 { font-size: var(--fb-fs-h3); }

/* ---------- 会社情報の表 ---------- */
.dl dt { font-weight: 500; font-size: 15px; color: var(--fb-ink); }
.dl dd { font-size: 15px; color: var(--fb-ink-muted); }
.v4-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.v4-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.v4-links a { display: block; color: var(--fb-ink); text-decoration: none; }
.v4-links a:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.v4-links h3 { font-size: var(--fb-fs-h3); font-weight: var(--fb-fw-head); }
.v4-links p { margin-top: 10px; color: var(--fb-ink-muted); font-size: 15px; }

/* ---------- 問い合わせ導線：薄い地の帯に文字とボタンだけ ---------- */
.cta { padding: clamp(72px, 8vw, 112px) 0; }
.cta__panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: end; text-align: left; max-width: none; margin: 0; }
.cta__panel .label { display: none; }
.cta__panel h2 { margin-top: 0 !important; font-size: var(--fb-fs-h2); font-weight: var(--fb-fw-head); line-height: 1.35; }
.cta__panel p { color: var(--fb-ink-muted); font-size: 17px; }

/* ---------- フッター：地は白、線なし ---------- */
.ftr { background: #fff; padding: 88px 0 40px; }
.ftr h4 { font-size: 14px; font-weight: 500; color: var(--fb-ink); }
.ftr li { font-size: 14px; margin: 10px 0; }
.ftr li a, .ftr__sns a { color: var(--fb-ink-muted); }
.ftr__brand p { font-size: 14px; }
.ftr__brand img { height: 40px; }
.ftr__bottom { font-size: 13px; margin-top: 64px; }

/* ---------- 記事本文 ---------- */
.prose { font-size: 17px; line-height: 1.9; }
.prose h2 { font-size: clamp(22px, 2vw, 28px); font-weight: var(--fb-fw-head); }
.prose h3 { font-size: 19px; font-weight: var(--fb-fw-head); }

/* ---------- 幅ごと ---------- */
@media (max-width: 1024px) {
  .sec-head, .v4-about { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .v4-entry, .v4-links, .v4-members, .cases { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .v4-members .member { grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; }
  .v4-members .member .ph { width: 64px; height: 64px; }
  .v4-hero { min-height: 640px; }
  .v4-hero__in { padding-bottom: 40px; }
  .v4-hero__cta .btn { width: 100%; }
  .svc, .svc--main, .svc--half, .svc--tb, .case, .post { grid-template-columns: minmax(0, 1fr); }
  .cta__panel { grid-template-columns: minmax(0, 1fr); }
  .phero { padding-top: 48px; }
  .toc ol { gap: 6px 20px; }
}

/* スマホ：長い社名を含む見出しが幅を超えないよう、まとまりの固定を外す（語句の区切りでの折り返しは word-break: auto-phrase に任せる） */
@media (max-width: 480px) { .phero h1 .nb { display: inline; } }

/* ミッションのように右の文が長い章の頭は、見出しを上にそろえる（下そろえだと見出しの上に大きな空きができる）。章の頭だけの章は下の余白を足さない */
.sec-head:has(.mission) { align-items: start; }
.sec-head:last-child { margin-bottom: 0; }

/* ===== 独立点検（2026-11-17 00:1x）の指摘への修正 ===== */
/* ヒーロー：字の下の敷きをFBの深い紫にし、今のサイトの紫の第一印象を残す（写真そのものは加工しない） */
.v4-hero { --fb-scrim: 36, 22, 82; }
@media (max-width: 768px) {
  .v4-hero { min-height: max(720px, 92svh); }
  .v4-hero::after { background: linear-gradient(180deg, rgba(var(--fb-scrim), .12) 0%, rgba(var(--fb-scrim), .26) 18%, rgba(var(--fb-scrim), .76) 31%, rgba(var(--fb-scrim), .80) 100%); }
}
/* 写真の無いメンバー・パートナー：頭文字の印（薄い紫の地・角4px） */
.member .ph--init { display: grid; place-items: center; background: var(--fb-purple-100); border-radius: var(--fb-radius-sm); }
.member .ph--init span { font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--fb-purple-800); }
.members--team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px; }
.members--team .member .ph { width: 72px; height: 72px; margin-bottom: 18px; overflow: hidden; border-radius: var(--fb-radius-sm); }
.members--team .member .ph img { width: 100%; height: 100%; object-fit: cover; }
.members--team .member p { margin-top: 8px; line-height: 1.8; }
.members--team .member .area { color: var(--fb-ink-muted); }
/* インサイト：先頭の記事を薄い地の大きな区画で見せ、一覧を走査しやすくする */
.feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; padding: clamp(32px, 4.4vw, 64px); margin-bottom: 64px; background: var(--fb-bg-alt); border-radius: var(--fb-radius-sm); color: var(--fb-ink); text-decoration: none; }
.feature h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: var(--fb-fw-head); line-height: 1.45; }
.feature p { font-size: 16px; line-height: 1.85; color: var(--fb-ink-muted); }
.feature:hover h2 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.post h3 { font-size: 18px; line-height: 1.6; }
.post p { font-size: 15px; line-height: 1.8; color: var(--fb-ink-muted); }
/* 会社概要：表の字を本文の大きさに */
.dl dt, .dl dd { font-size: 16px; }
.v4-links h3 { font-size: 24px; }
.v4-links p { font-size: 16px; }
/* 記事の入口：今のサイトと同じく薄い地の帯にする */
.phero--article { background: var(--fb-bg-alt); }
@media (max-width: 768px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .members--team { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* サービス等の目次：スマホは中央の1列に並べ、折り返しのがたつきをなくす */
  .phero .toc ol { flex-direction: column; align-items: center; gap: 2px; }
}
@media (max-width: 768px) {
  /* スマホの縦長の枠で、写真の見どころ（A の稜線・B の塔）が切れないよう位置を寄せる */
  .v4-hero--a .v4-hero__media img { object-position: 92% 60% !important; }
  .v4-hero--b .v4-hero__media img { object-position: 40% 50% !important; }
}

/* ===== 2回目の独立点検への修正 ===== */
/* インサイトの一覧：今のサイトと同じく2列に並べ、1件ずつを「分類・日付→題名→要約」の縦の組みにする */
.posts--list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 0; }
.posts--list .post { display: block; padding: 28px 0; border-top: 1px solid var(--fb-line); border-bottom: 0; }
.posts--list .post .meta { display: flex; gap: 12px; }
.posts--list .post .meta .cat { display: inline; }
.posts--list .post h3 { margin-top: 10px; }
.posts--list .post p { margin-top: 8px; }
/* 記事の入口の帯：薄い紫で今のサイトの記事の頭と同じ色の調子に */
.phero--article { background: var(--fb-purple-100); }
/* ヒーロー（PC）：字の無い右側の敷きを軽くし、3案の写真の違いが見えるようにする */
@media (min-width: 769px) {
  .v4-hero::after { background: linear-gradient(90deg, rgba(var(--fb-scrim), .72) 0%, rgba(var(--fb-scrim), .62) 50%, rgba(var(--fb-scrim), .12) 78%, rgba(var(--fb-scrim), 0) 100%),
                                linear-gradient(180deg, rgba(var(--fb-scrim), 0) 50%, rgba(var(--fb-scrim), .28) 100%); }
}
@media (max-width: 768px) { .posts--list { grid-template-columns: minmax(0, 1fr); } }

/* 日本語の目次の題（「依頼できる10分野」「この記事の内容」等）は見せる */
.toc__title { display: block !important; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--fb-ink-muted); margin: 0 0 10px; }
