/* FB HP アップデート案 モック v03 — 見た目の調子を今のサイトの洗練に寄せる上書き
   site_v01.css・pages_v02.css（v02 の部品）の後に読む。色・角丸・余白は ../../fb-design-harness/tokens_v02.css。
   やめた飾り：ピル形ラベルと光る点、ラベル前の色の点、ガラスの多用、ふわっとした影、グラデーションの面、
   飾りの区切り線・枠線・左の縦線、頭文字の丸いバッジ、色の玉の多用。 */

body { font-size: var(--fb-fs-body); letter-spacing: .02em; }

/* ---------- 英字ラベル＋日本語見出し（今のサイトの型） ---------- */
.label { font-size: var(--fb-fs-label); font-weight: 500; letter-spacing: var(--fb-ls-label); color: var(--fb-label-color); gap: 0; }
.label::before { content: none; display: none; }
.toc__title { color: var(--fb-label-color); font-weight: 500; letter-spacing: var(--fb-ls-label); font-size: var(--fb-fs-label); }
.sec + .sec { border-top: 0; }
.sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: end; margin-bottom: var(--fb-space-7); }
.sec-head__label { border-top: 0; padding-top: 0; }
.sec-head__label small { display: none; }
.sec-head__label + div > .h2:first-child, .sec-head .h2 { margin-top: 0; }
.sec-head--stack { display: block; }
.ttl { display: flex; flex-direction: column; gap: 10px; }
.h2 { font-size: var(--fb-fs-h2); font-weight: 700; line-height: var(--fb-lh-tight); letter-spacing: var(--fb-ls-display); }
.lead { font-size: var(--fb-fs-lead); margin-top: 0; }
.h3 { font-size: var(--fb-fs-h3); font-weight: 700; }

/* ---------- ボタン：角 2px・影なし。補助のボタンは枠なしの文字リンク ---------- */
.btn { border-radius: var(--fb-radius-sm); min-height: 46px; padding: 0 22px; font-size: 14px; letter-spacing: .04em; }
.btn--primary { box-shadow: none; }
.btn--ghost { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--fb-ink); padding: 0 6px; }
.btn--ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow { font-size: 14px; font-weight: 500; }

/* ---------- ガラス：各ページ1〜2か所だけ。枠線・影・内側の光なし ---------- */
.glass { border: 0; border-radius: var(--fb-radius-lg); box-shadow: none; background: var(--fb-glass-fallback); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--fb-glass-bg); -webkit-backdrop-filter: var(--fb-glass-blur); backdrop-filter: var(--fb-glass-blur); }
}
.plain { background: none; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }

/* ---------- 色の玉：ページ上部の背景に1つだけ（.hero__bg） ---------- */
.orb { display: none; }
.hero__bg { background: radial-gradient(var(--fb-orb-size) 70% at 82% 0%, rgba(123, 92, 245, var(--fb-orb-alpha)), rgba(123, 92, 245, 0) 70%), var(--fb-bg); }

/* ---------- ヘッダー：線・影・ぼかしなし ---------- */
.hdr { background: rgba(247, 245, 252, .96); border-bottom: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr__nav a { font-size: 13px; letter-spacing: .04em; }
.hdr__nav a[aria-current="page"] { box-shadow: none; font-weight: 700; }
.hdr__cta .btn { min-height: 38px; }
.hdr__menu summary { border: 0; border-radius: var(--fb-radius-sm); background: var(--fb-purple-100); }
.hdr__menu nav { border-radius: var(--fb-radius-sm); box-shadow: none; border: 0; }
.hdr__menu nav a { border-bottom: 0; }

/* ---------- 写真（今のサイトの建築写真。角は今のサイトの実測 16px） ---------- */
.photo { margin: 0; border-radius: var(--fb-radius-photo); overflow: hidden; background: var(--fb-purple-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--band { aspect-ratio: 21 / 8; }
.photo--square { aspect-ratio: 1 / 1; }

/* ---------- トップのヒーロー：左に文字、右に写真 ---------- */
.hero { text-align: left; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--fb-space-8); align-items: center; }
.hero h1 { margin-top: 18px; font-size: var(--fb-fs-display); font-weight: 700; line-height: 1.28; }
.hero__sub { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--fb-ink); letter-spacing: .06em; }
.hero__lead { margin: 16px 0 0; max-width: 34em; }
.hero__cta { justify-content: flex-start; }
.hero__panel { margin: clamp(48px, 6vw, 80px) 0 0; max-width: none; }
.entry { gap: var(--fb-space-7); }
.entry__card { background: none; border: 0; border-radius: 0; padding: 0; }
.entry__foot { border-top: 0; padding: 0; margin-top: var(--fb-space-6); }

/* ---------- 下層ヒーロー：文字＋目次（文字だけ）／右に写真 ---------- */
.phero { padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 5vw, 56px); }
.phero h1 { font-size: var(--fb-fs-h1); font-weight: 700; line-height: 1.32; margin-top: 14px; }
.phero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; }
.phero--narrow .phero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.phero .lead { margin-top: 16px; }
.phero__side { margin-top: var(--fb-space-6); }
.phero--article h1 { font-size: clamp(22px, 2.4vw, 32px); }
.crumb { font-size: 12px; letter-spacing: .04em; }
.toc { padding: 0; }
.toc ol { margin-top: 8px; }
.toc li, .toc li:first-child { border-top: 0; }
.toc ol a { padding: 5px 0; font-size: 14px; }
.toc ol a::before { color: var(--fb-ink-muted); font-weight: 500; font-size: 11px; }
.field-list li { background: none; border: 0; padding: 2px 0; border-radius: 0; }

/* ---------- 一覧：カードに入れず、文字と行の細い区切りで ---------- */
/* サービス一覧（トップ）：表の行 */
.svc-grid { display: block; border-top: 1px solid var(--fb-line); }
.svc, .svc--main, .svc--half, .svc--tb { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto; gap: 8px 40px; align-items: baseline;
  background: none; border: 0; border-bottom: 1px solid var(--fb-line); border-radius: 0; box-shadow: none; padding: 26px 0; }
.svc:hover { transform: none; box-shadow: none; }
.svc__en { grid-column: 1; font-size: var(--fb-fs-label); font-weight: 500; color: var(--fb-label-color); }
.svc__en b { color: var(--fb-label-color); font-weight: 500; }
.svc h3 { grid-column: 1; grid-row: 2; font-size: 18px; font-weight: 700; }
.svc p { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; }
.svc ul { grid-column: 2; display: block; margin: 0; font-size: 13px; color: var(--fb-ink-muted); }
.svc li { display: inline; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; color: var(--fb-ink-muted); }
.svc li + li::before { content: "／"; margin: 0 4px; }
.svc .link-arrow { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; white-space: nowrap; }

/* 支援例（トップ）：表の行 */
.cases { display: block; border-top: 1px solid var(--fb-line); }
.case { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 6px 40px; padding: 22px 0; background: none; border: 0; border-bottom: 1px solid var(--fb-line); border-radius: 0; }
.case .label { grid-column: 1; }
.case h3 { grid-column: 1; grid-row: 2; }
.case p { grid-column: 2; grid-row: 1 / span 2; }

/* 3列の説明：文字だけ */
.trio { gap: var(--fb-space-7); }
.trio > div { background: none; border: 0; border-radius: 0; padding: 0; }
.trio .num, .value .num, .flow__num, .entry__card .num { color: var(--fb-ink-muted); font-weight: 500; }

/* 行動指針：表の行 */
.values { display: block; border-top: 1px solid var(--fb-line); }
.value, .value:nth-child(4), .value:nth-child(5) { display: grid; grid-template-columns: 48px minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 4px 24px; align-items: baseline;
  background: none; border: 0; border-bottom: 1px solid var(--fb-line); border-radius: 0; box-shadow: none; padding: 24px 0; }
.value .num { grid-column: 1; grid-row: 1 / span 2; }
.value h3 { grid-column: 2; font-size: 18px; }
.value .tag { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--fb-purple-700); }
.value p { grid-column: 3; grid-row: 1 / span 2; font-size: 14px; }

/* メンバー：カードなし。写真は今のサイトと同じ円、頭文字の丸いバッジはやめる */
.members { gap: var(--fb-space-6) var(--fb-space-5); }
.member { background: none; border: 0; border-radius: 0; padding: 0; gap: 4px; }
.member .ph { width: 72px; height: 72px; border-radius: var(--fb-radius-portrait); background: none; margin-bottom: 10px; }
.member .role { color: var(--fb-ink-muted); font-weight: 500; font-size: 12px; letter-spacing: .04em; }
.ceo__card { padding: 0; text-align: left; }
.ceo__card img { margin: 0 0 16px; width: 200px; height: 200px; border-radius: var(--fb-radius-portrait); }
.ceo__card .role { color: var(--fb-ink-muted); font-weight: 500; }

/* 記事・ニュース：表の行 */
.posts { display: block; border-top: 1px solid var(--fb-line); }
.post { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 32px; min-height: 0; padding: 20px 0; background: none; border: 0; border-bottom: 1px solid var(--fb-line); border-radius: 0; }
.post:hover { box-shadow: none; }
.post .cat, .post .meta { grid-column: 1; color: var(--fb-ink-muted); font-weight: 500; }
.post h3 { grid-column: 2; grid-row: 1 / span 2; }
.post time { grid-column: 1; margin: 0; }
.post p { grid-column: 2; }
.post .meta { display: block; }
.post .meta .cat { display: block; }
.posts--list { margin-top: var(--fb-space-7); }
.news { border-top: 1px solid var(--fb-line); }
.feature { display: grid; padding: 0; background: none; border: 0; border-radius: 0; }
.feature:hover { box-shadow: none; }
.bar { padding: 0; }
.year h2 { border-top: 0; font-size: 24px; padding-top: 14px; }

/* 採用：表の行 */
.positions { gap: 0; border-top: 1px solid var(--fb-line); }
.position, .position--tb { background: none; border: 0; border-bottom: 1px solid var(--fb-line); border-radius: 0; box-shadow: none; padding: 28px 0; }
.position li { border-left: 0; padding-left: 0; }
.position li::before { content: "・"; }
.position h4 { color: var(--fb-ink-muted); font-weight: 500; }
.position .btn--ghost { padding: 0; }

/* 資料：2列の文字 */
.res { gap: var(--fb-space-8); }
.res__card { padding: 0; background: none; border: 0; border-radius: 0; }

/* ---------- 小さな札（ピル形）をやめ、文字だけに ---------- */
.chip, .chip--key { padding: 0; border: 0; border-radius: 0; background: none; color: var(--fb-ink-muted); font-size: 12px; font-weight: 500; }
.chip--key { color: var(--fb-purple-700); }
.chips { gap: 4px 18px; }
.chips button { background: none; border: 0; padding: 4px 0; color: var(--fb-ink-muted); font-size: 14px; }
.chips button[aria-pressed="true"] { background: none; color: var(--fb-purple-700); font-weight: 700; }
.chips .chip + .chip::before { content: "／"; margin-right: 18px; color: var(--fb-ink-muted); }
.res__card .chips { gap: 4px 0; }
.res__card .chips .chip + .chip::before { margin: 0 8px; }

/* ---------- 会社情報の表（今のサイトの文字だけの表） ---------- */
.dl { grid-template-columns: 160px minmax(0, 1fr); border-top: 1px solid var(--fb-line); }
.dl dt, .dl dd { padding: 22px 0; border-bottom: 1px solid var(--fb-line); font-size: 14px; }
.dl dd { color: var(--fb-ink-muted); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: var(--fb-space-8); align-items: start; }
.about-links { margin-top: 18px; }
.about-links a { display: block; padding: 10px 0; color: var(--fb-ink-muted); font-size: 13px; }

/* ---------- サービス詳細 ---------- */
.detail { border-top: 0; }
.case-row { border-top: 0; }
.themes { border-top: 1px solid var(--fb-line); }
.themes .body ul { padding: 0; border: 0; border-radius: 0; background: none; }
.themes .body li { border-left: 0; padding-left: 0; }
.themes .body li::before { content: "・"; color: var(--fb-ink-muted); }
.themes summary::after { color: var(--fb-ink-muted); }

/* ---------- 記事本文 ---------- */
.article__toc { padding: 0; }
.article__toc li, .article__toc li:first-child { border-top: 0; }
.prose h2 { border-top: 0; padding-top: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.prose h3 { border-left: 0; padding-left: 0; font-size: 18px; font-weight: 700; }
.prose figure { padding: 0; border: 0; border-radius: 0; background: none; }
.prose figure img { border-radius: var(--fb-radius-md); background: var(--fb-surface); }
.prose blockquote { border: 0; border-radius: 0; background: none; padding: 0 0 0 28px; color: var(--fb-ink-muted); }
.tbl { border: 0; border-radius: 0; background: none; border-top: 1px solid var(--fb-line); }
.tbl thead th, .tbl tr:first-child th { background: none; font-weight: 700; }
.inline-cta { text-align: left; }
.inline-cta.plain { padding: var(--fb-space-5) 0 0; }

/* ---------- お問い合わせ ---------- */
.card { background: none; border: 0; border-radius: 0; box-shadow: none; }
.contact__side .card, .form.card { padding-left: 0; padding-right: 0; }
.form input, .form select, .form textarea { border-radius: var(--fb-radius-sm); border: 1px solid var(--fb-line-strong); }
.form .radio { border: 0; border-radius: 0; background: none; padding: 4px 16px 4px 0; }
.form .radio:has(input:checked) { background: none; font-weight: 700; }

/* ---------- 流れ図：箱は塗りだけ（枠線・影なし）、矢印は箱の端から端へ ---------- */
.diagram { padding: 0; }
.flow__node { background: var(--fb-surface); border: 0; border-radius: var(--fb-radius-md); box-shadow: none; }
.flow__node--key { background: var(--fb-purple-600); }
.flow__tags span { border-radius: var(--fb-radius-sm); }
.state { border-radius: var(--fb-radius-md); }
.box { border: 0; border-radius: var(--fb-radius-md); background: var(--fb-purple-100); }
.split > div, .split .yes, .split .you { border: 0; border-radius: var(--fb-radius-md); }
.split .yes { background: var(--fb-purple-100); }
.split .you { background: var(--fb-surface); }
.io { background: var(--fb-surface); border-radius: var(--fb-radius-md); padding: 12px 16px; gap: 4px 0; }
.io span { padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 600; }
.io span + span::before { content: "／"; margin: 0 10px; color: var(--fb-ink-muted); font-weight: 400; }

/* 矢印：svg をやめ、要素の幅（高さ）いっぱいの実線＋矢じりを描く。注記は線の横に置く */
.arrow { position: relative; flex: 0 0 var(--fb-flow-gap); align-self: stretch; min-height: 0; padding: 0; display: block; color: var(--fb-flow-color); }
.arrow svg { display: none; }
.arrow::before { content: ""; position: absolute; background: currentColor; left: 0; right: calc(var(--fb-flow-head) - 1px); top: 50%; height: var(--fb-flow-stroke); margin-top: calc(var(--fb-flow-stroke) / -2); }
.arrow::after { content: ""; position: absolute; background: currentColor; right: 0; top: 50%; width: var(--fb-flow-head); height: var(--fb-flow-head-w); margin-top: calc(var(--fb-flow-head-w) / -2);
  clip-path: polygon(0 0, 100% 50%, 0 100%); }
.arrow--left::before { left: calc(var(--fb-flow-head) - 1px); right: 0; }
.arrow--left::after { left: 0; right: auto; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
/* 縦（下・上） */
.arrow--down, .arrow--up { flex: none; height: var(--fb-flow-gap-y); }
.arrow--down::before, .arrow--up::before { left: 50%; right: auto; width: var(--fb-flow-stroke); height: auto; margin: 0 0 0 calc(var(--fb-flow-stroke) / -2); top: 0; bottom: calc(var(--fb-flow-head) - 1px); }
.arrow--down::after, .arrow--up::after { left: 50%; right: auto; top: auto; bottom: 0; width: var(--fb-flow-head-w); height: var(--fb-flow-head); margin: 0 0 0 calc(var(--fb-flow-head-w) / -2);
  clip-path: polygon(0 0, 100% 0, 50% 100%); }
.arrow--up::before { top: calc(var(--fb-flow-head) - 1px); bottom: 0; }
.arrow--up::after { top: 0; bottom: auto; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cycle .arrow--down, .cycle .arrow--up { height: auto; }
/* 注記つきの横の矢印：注記は線の上に置き、線と重ねない */
.arrow--label { flex-basis: 116px; }
.arrow small { position: absolute; left: 2px; right: 2px; bottom: calc(50% + 10px); max-width: none; font-size: 11px; line-height: 1.4; color: var(--fb-purple-700); font-weight: 700; text-align: center; }
.down2 .arrow { height: var(--fb-flow-gap-y); }
/* 戻りの矢印（ループ）：U字の実線。上端は箱の下端に接し、注記は線の下に置く */
.loop { margin: 0 26px 0; height: 34px; border-radius: 0 0 var(--fb-radius-md) var(--fb-radius-md); }
.loop::after { left: calc(-1 * var(--fb-flow-stroke) / 2 - 7px); top: 0; border: 0; width: 14px; height: 12px; background: var(--fb-flow-color); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.loop span { position: absolute; left: 0; right: 0; top: calc(100% + 10px); bottom: auto; transform: none; width: auto; max-width: none; text-align: center; background: none; border: 0; border-radius: 0; padding: 0; white-space: normal; }
.loop + .flow-note, .loop ~ .flow-note { margin-top: 44px; }
.flow-note { margin-top: 18px; }

/* ---------- CTA：ガラス1枚（問い合わせ導線） ---------- */
.cta__panel { text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; max-width: none; }
.cta__panel .label, .cta__panel h2, .cta__panel p { grid-column: 1; }
.cta__panel .hero__cta { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.cta__panel h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.cta__panel p { margin-top: 0; }
.soon { text-align: left; }
.soon .hero__cta { justify-content: flex-start; }

/* ---------- フッター：区切り線なし ---------- */
.ftr { border-top: 0; background: var(--fb-purple-100); }
.ftr__bottom { border-top: 0; margin-top: 40px; padding-top: 0; }

@media (max-width: 1024px) {
  .hero__grid, .about-grid { grid-template-columns: minmax(0, 1fr); gap: var(--fb-space-6); }
  .phero__grid, .phero--narrow .phero__grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .photo--tall { aspect-ratio: 16 / 9; }
}
@media (max-width: 768px) {
  .svc, .svc--main, .svc--half, .svc--tb, .case, .post, .value, .value:nth-child(4), .value:nth-child(5) { grid-template-columns: minmax(0, 1fr); }
  .svc > *, .case > *, .post > *, .value > * { grid-column: 1 !important; grid-row: auto !important; }
  .value .num { grid-row: auto; }
  .cta__panel { grid-template-columns: minmax(0, 1fr); }
  .cta__panel .hero__cta { grid-column: 1; grid-row: auto; }
  /* 縦に並ぶ流れ図：矢印は上の箱の下端から下の箱の上端まで。注記は線の右に置く */
  .flow > .arrow { flex: none; height: var(--fb-flow-gap-y); padding: 0; }
  .flow > .arrow--label { height: 56px; }
  .flow > .arrow::before { left: 50%; right: auto; width: var(--fb-flow-stroke); height: auto; margin: 0 0 0 calc(var(--fb-flow-stroke) / -2); top: 0; bottom: calc(var(--fb-flow-head) - 1px); }
  .flow > .arrow::after { left: 50%; right: auto; top: auto; bottom: 0; width: var(--fb-flow-head-w); height: var(--fb-flow-head); margin: 0 0 0 calc(var(--fb-flow-head-w) / -2); clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .flow > .arrow small { left: calc(50% + 16px); right: auto; top: 50%; bottom: auto; transform: translateY(-50%); text-align: left; white-space: nowrap; }
  .flow > .arrow svg { transform: none; }
  /* 縦に並ぶ時は U字の線を出さず、注記だけを文として残す（線と字を重ねない） */
  .loop { border: 0; height: auto; margin: 16px 0 0; }
  .loop::after { display: none; }
  .loop span { position: static; display: block; }
  .loop + .flow-note, .loop ~ .flow-note { margin-top: 12px; }
}
@media (max-width: 480px) {
  .cycle .arrow--down, .cycle .arrow--up { height: auto; }
}
