/* =========================================================================
   motif.css — モチーフ物語型（blades.css の汎用化版）
   -------------------------------------------------------------------------
   ★重なり対策の要点
     文言を「同じ場所に重ねて出し入れ」すると必ず衝突する。
     1つの文言＝1つのセクション（.bs-beat）とし、通常フローで縦に積む。
     各セクションは最低でも画面1枚ぶんの高さを持つので、原理的に重ならない。

   ★白の章の地の色（#FAF9F6）は bs-config.js の motif.flipColor と対。
     片方を変えたら両方変えること。
   ========================================================================= */

/* 舞台は canvas を置くだけ。高さは持たせない（文章側が高さを作る）。
   ★brand.css の `.has-page-canvas[data-progress="…"] .bs-stage` は詳細度が高いので、
     同じ形で書かないと勝てない。これが効いていないと、最初の3.2画面が
     「3Dだけで文字が1つも無い空白」になり、FVの見出しが下へ押し出される
     （2026-08-04 実測。sync_choreo が b1 を p=0.35 と測っていた） */
.has-page-canvas[data-progress="scroll"] .bs-stage,
.has-page-canvas[data-progress="page"] .bs-stage,
[data-progress] .bs-stage,
.bs-stage { height: 0; }
.has-page-canvas[data-progress="scroll"] .bs-stage__sticky,
.has-page-canvas[data-progress="page"] .bs-stage__sticky,
[data-progress] .bs-stage__sticky,
.bs-stage__sticky { position: static; height: 0; overflow: visible; }

.bs-script { position: relative; z-index: 1; }

/* ---------- 1文言＝1画面 ---------- */
.bs-beat {
  min-height: 100svh;
  display: grid;
  align-content: center;
  row-gap: clamp(.5rem, 1.6vh, 1.4rem);
  padding: clamp(96px, 14vh, 160px) var(--pad) clamp(80px, 12vh, 140px);
  box-sizing: border-box;
}
.bs-beat--left   { place-items: center start; }
.bs-beat--right  { place-items: center end; text-align: right; }
/* 端に寄せた節が画面幅いっぱいに伸びると、寄せた意味がなくなる */
.bs-beat--left > *, .bs-beat--right > * { max-width: min(26ch, 62vw); }
/* 横に流すぶん、はみ出しを切る。clip なら sticky が生きたまま切れる */
.bs-script { overflow-x: clip; }
.bs-beat--center { place-items: center; text-align: center; }
.bs-beat--bottom { place-items: end center; text-align: center; }
.bs-beat--short  { min-height: 52svh; }
.bs-beat--hero   { min-height: 100svh; }

/* 白の章は詰めて、文字を左右へ振り、図面と場所を分け合う */
.bs-light .bs-beat { min-height: 74svh; padding-block: clamp(60px, 9vh, 110px); }
.bs-light .bs-beat--hero { min-height: 100svh; }
.bs-light .bs-beat--pair { min-height: 92svh; }
.bs-beat--l { place-items: center start; text-align: left; }
.bs-beat--r { place-items: center end; text-align: right; }
.bs-beat--l > *, .bs-beat--r > * { max-width: min(30ch, 52vw); }

.bs-beat > * { max-width: min(52ch, 92vw); }

.bs-no {
  margin: 0 0 .7rem; font-family: var(--font-ui);
  font-size: clamp(.78rem, 1.0vw, .95rem); letter-spacing: .3em;
  color: rgba(242, 239, 233, .72);           /* 暗い地の上でも消えない濃さ */
  text-shadow: 0 1px 10px rgba(3, 8, 14, .85);
}
.bs-beat__line {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.0rem, 4.6vw, 4.0rem); letter-spacing: .05em; line-height: 1.45;
}
.bs-beat__mid {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.95rem, 4.2vw, 3.6rem); line-height: 1.62; letter-spacing: .05em;
}
.bs-beat__big {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.35rem, 5.4vw, 5.0rem); line-height: 1.42; letter-spacing: .035em;
}
.bs-brand { display: inline-block; margin-top: .35em; letter-spacing: .18em; }

/* 三つの名。横並びが窮屈なら自動で折り返す */
.bs-three {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(12px, 2.4vw, 40px);
}
.bs-three li {
  font-family: var(--font-ui); font-size: clamp(.76rem, 1.15vw, .98rem);
  letter-spacing: .2em; padding: .55em 0; position: relative;
}
.bs-three li::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line);
}
.bs-three li + li::before {
  content: "×"; margin-right: clamp(12px, 2.4vw, 40px); color: var(--ink-faint);
}

/* ═══════════ 地の明暗に文字を追従させる ═══════════
   3D の地は暗 → 明 と変わる。文字色を固定にすると、
   反転した瞬間に読めなくなる。data-tone を見て色を入れ替える。 */
:root[data-tone="light"] .bs-script > .bs-beat,
:root[data-tone="light"] .bs-beat--award {
  --ink: #14120F;
  --ink-dim: rgba(20, 18, 15, .68);
  --ink-faint: rgba(20, 18, 15, .34);
  --line: rgba(20, 18, 15, .18);
  color: #14120F;
}
/* 明るい地では、白い光彩で文字を浮かせる */
:root[data-tone="light"] .bs-script > .bs-beat .bs-beat__big,
:root[data-tone="light"] .bs-script > .bs-beat .bs-beat__mid,
:root[data-tone="light"] .bs-script > .bs-beat .bs-beat__line {
  text-shadow: 0 1px 16px rgba(244,242,237,.95), 0 0 46px rgba(244,242,237,.85);
}
/* 暗い地では、黒い落ち影で文字を浮かせる */
:root[data-tone="dark"] .bs-script > .bs-beat .bs-beat__big,
:root[data-tone="dark"] .bs-script > .bs-beat .bs-beat__mid,
:root[data-tone="dark"] .bs-script > .bs-beat .bs-beat__line {
  text-shadow: 0 2px 22px rgba(3,8,14,.92), 0 0 56px rgba(3,8,14,.72);
}
/* 実績の金は、明るい地では影を濃くして輪郭を保つ */
:root[data-tone="light"] .bs-award::before {
  background: radial-gradient(58% 52% at 50% 52%, rgba(255,255,255,.86), transparent 72%);
}
:root[data-tone="light"] .bs-award__label { color: #6B5518; text-shadow: none; }
:root[data-tone="light"] .bs-award__value {
  filter: drop-shadow(0 1px 2px rgba(255,255,255,.9)) drop-shadow(0 2px 10px rgba(138,106,30,.35));
}

/* ═══════════ 実績（背景なし・月桂冠） ═══════════
   地を敷かない代わりに、金の発光と落ち影で読ませる。 */
.bs-beat--award { place-items: center; min-height: 92svh; }

.bs-award-row {
  list-style: none; margin: 0; padding: 0;
  width: min(1240px, 96vw); max-width: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(26px, 3.6vw, 64px);
}

.bs-award {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; justify-items: center; gap: clamp(2px, .5vw, 8px);
}
/* 文字の背後だけをそっと沈める。四角い板は置かない */
.bs-award::before {
  content: ""; position: absolute; inset: -8% -4%;
  background: radial-gradient(64% 58% at 50% 52%, rgba(4,10,16,.88), rgba(4,10,16,.55) 46%, transparent 76%);
  z-index: -1;
}

.bs-wreath {
  width: clamp(46px, 4.6vw, 74px); height: auto;
  filter: drop-shadow(0 2px 14px rgba(201,162,39,.45));
}
.bs-award .bs-wreath:first-child { transform: scaleX(-1); }

.bs-award__body { display: grid; gap: .55em; text-align: center; }
.bs-award__label {
  font-family: var(--font-ui); font-weight: 500;
  font-size: clamp(.86rem, 1.05vw, 1.06rem); letter-spacing: .1em; line-height: 1.7;
  text-wrap: balance;
  color: #F3E7BE;
  text-shadow: 0 2px 12px rgba(4,10,16,.9);
}
.bs-award__value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.9vw, 3.3rem); line-height: 1.06; letter-spacing: .02em;
  background: linear-gradient(178deg, #FFF8DC 0%, #F0D67B 34%, #C9A227 62%, #8A6A1E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(233,197,88,.45));
  white-space: nowrap;
}

@media (max-width: 720px) {
  .bs-award-row { gap: clamp(30px, 6vh, 52px); }
  /* 1列になると 1fr が伸びて、冠だけが画面の両端へ飛ぶ。文字に添わせる */
  .bs-award { grid-template-columns: auto auto auto; justify-content: center;
    gap: clamp(8px, 3vw, 18px); }
  .bs-wreath { width: clamp(46px, 13vw, 68px); }
}

/* =========================================================================
   白の章。ここから地が明るく変わる。
   solid な背景で canvas を覆うので、JSに頼らず確実に切り替わる。
   ========================================================================= */
.bs-light {
  --ink: #14120F;
  --ink-dim: rgba(20, 18, 15, .66);
  --ink-faint: rgba(20, 18, 15, .56);
  --accent: #6D28D9;   /* 白の紙の上では鮮やかな龍谷紫 */
  --line: rgba(20, 18, 15, .16);
  --bg: #FAF9F6;
  background: #FAF9F6;      /* 3Dが無いときの地 */
  color: #14120F;
  position: relative; z-index: 2;
}
/* 3Dが動いているときは地を透かし、背後の図面を見せる。
   白は canvas の clearColor が受け持つ。 */
.has-3d .bs-light { background: transparent; }
.has-3d .bs-svc__item,
.has-3d .bs-footer--light { background: rgba(244, 242, 237, .82); backdrop-filter: blur(2px); }

.bs-beat--hero { padding-top: clamp(120px, 18vh, 220px); }
.bs-hero__copy {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 7.2vw, 6.4rem); line-height: 1.2; letter-spacing: .02em;
}
.bs-hero__copy .bs-ch {
  display: inline-block; opacity: 0; transform: translateY(.55em);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.bs-hero__copy.is-in .bs-ch { opacity: 1; transform: none; }
/* 断言を受け止める一行。添え書きの大きさだと言い切りが伝わらない。
   見出しに次ぐ二番手として、明朝でドンと置く。 */
.bs-hero__sub {
  margin: clamp(28px, 4.6vh, 56px) 0 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 4.0vw, 3.4rem); line-height: 1.4; letter-spacing: .06em;
  color: var(--ink);
  text-shadow: 0 2px 20px rgba(12, 6, 3, .92), 0 0 56px rgba(12, 6, 3, .7);
}
.has-3d .bs-light .bs-beat__big,
.has-3d .bs-light .bs-beat__mid,
.has-3d .bs-light .bs-ask {
  text-shadow: 0 1px 18px rgba(244, 242, 237, .9), 0 0 42px rgba(244, 242, 237, .75);
}
.bs-beat__after { margin-top: clamp(26px, 4vh, 52px); }
/* 「求められるのは」「そして」の前置き。小見出し扱いだと本文に食われて、
   一続きの文として読めない。次の一行を受け止める大きさで置く。 */
.bs-lead-small {
  margin: 0 0 clamp(20px, 3.2vh, 38px);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: .12em; line-height: 1.5; color: var(--ink);
}
.bs-ask {
  margin: 0 0 .9em; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.6; letter-spacing: .05em;
}
.bs-ask__end { margin-top: clamp(26px, 4vh, 52px); }

/* ---------- お客様の声 ---------- */
.bs-h2 {
  margin: 0 0 clamp(34px, 5vh, 64px); font-family: var(--font-display);
  font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 3.0rem); line-height: 1.4;
}
.bs-voices__title {
  margin: .8rem 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.45; color: #123a8a;
}
.bs-voices__note { margin: 1.4rem 0 clamp(30px, 5vh, 56px);
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }

.bs-voice {
  display: grid; gap: clamp(20px, 3vw, 48px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: start;
  padding-bottom: clamp(34px, 5vh, 60px);
  margin-bottom: clamp(34px, 5vh, 60px);
  border-bottom: 1px solid var(--line);
}
.bs-voice:last-child { border-bottom: 0; margin-bottom: 0; }
/* サムネイル無し（文字だけ）の声。1カラムで置く */
.bs-voice--text { grid-template-columns: 1fr; }
/* 対談動画のサムネイルを使うときの器（実物の16:9をそのまま活かす） */
.bs-voice__thumb {
  position: relative; display: block; overflow: hidden;
  border-radius: 3px; background: #0f2450; line-height: 0;
  transition: transform .6s var(--ease);
}
.bs-voice__thumb img { width: 100%; height: auto; display: block; }
.bs-voice__thumb:hover { transform: translateY(-3px); }
.bs-voice__play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: clamp(46px, 4.4vw, 62px); aspect-ratio: 1; border-radius: 999px;
  background: rgba(255,255,255,.92);
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.bs-voice__play::after {
  content: ""; position: absolute; inset: 50% auto auto 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: .48em 0 .48em .78em;
  border-color: transparent transparent transparent #b4261f;
}
.bs-voice__thumb:hover .bs-voice__play { transform: translate(-50%, -50%) scale(1.08); }
/* どの声も同じ強さで見せる。2本目以降を小さくすると「おまけ」に見える */
.bs-voice__lead {
  margin: 0; font-weight: 700; line-height: 1.66;
  font-size: clamp(1.28rem, 2.1vw, 1.85rem); letter-spacing: .01em;
}
.bs-voice__lead--sm { font-size: clamp(1.28rem, 2.1vw, 1.85rem); }
.bs-voice__lead em { font-style: normal; color: #b4261f; }
.bs-voice__who {
  margin: 1.1rem 0 0; font-size: clamp(.88rem, 1.1vw, 1.02rem);
  letter-spacing: .06em; color: var(--ink-dim);
}

/* ---------- サービス ---------- */
.bs-svc {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bs-svc__item {
  background: #FAF9F6; padding: clamp(26px, 3.4vw, 46px);
  display: grid; gap: .9rem; align-content: start;
}
.bs-svc__item h3 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.5;
}
.bs-svc__item p { margin: 0; color: var(--ink-dim); font-size: clamp(.86rem, 1.02vw, .96rem); }

/* ---------- メッセージ・依頼 ---------- */
.bs-message { text-align: center; }
.bs-message__copy {
  margin: 1.2rem 0 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 3.6vw, 3.1rem); line-height: 1.55; letter-spacing: .04em;
}
.bs-cta { text-align: center; }
.bs-cta__btn { margin-top: clamp(10px, 2vh, 22px); }

/* ---------- フッター（白） ---------- */
.bs-footer--light {
  --ink: #14120F; --ink-dim: rgba(20,18,15,.66);
  --ink-faint: rgba(20,18,15,.56); --line: rgba(20,18,15,.16); --bg: #FAF9F6;
  background: #FAF9F6; color: #14120F;
  position: relative; z-index: 2;
}
.bs-footer--light .bs-footer__block { background: #FAF9F6; }

/* ---------- スクロールの合図 ---------- */
.bs-hint { position: fixed; left: 50%; bottom: clamp(20px, 3.5vh, 46px);
  transform: translateX(-50%); z-index: 5; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 860px) {
  .bs-voice { grid-template-columns: 1fr; }
  .bs-beat--right { place-items: center start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .bs-hero__copy .bs-ch { opacity: 1 !important; transform: none !important; }
}

/* 章の蝶番になる一行は、地が入れ替わる場所。小さいと切り替わりが伝わらない */
.bs-beat--short .bs-beat__mid {
  font-size: clamp(2.0rem, 4.4vw, 3.6rem); letter-spacing: .1em;
}
/* 前置きの小さい行が薄すぎて読めなかったので、濃さを戻す */
.bs-lead-small { color: var(--ink); }
:root[data-tone="light"] .bs-lead-small { color: rgba(20, 18, 15, .82); }

/* 図面が透けるぶん、出典・注記は白の光彩で持ち上げる */
.has-3d .bs-light [class$="__cite"],
.has-3d .bs-light .bs-note,
.has-3d .bs-light figcaption {
  text-shadow: 0 1px 10px rgba(244,242,237,.95);
}

/* ═══════════ 幕（スプラッシュ） ═══════════
   本編の3Dとは別物。中央に紋を置き、要素が一枚ずつ嵌まる。
   地は透かさない。ここは「入口」で、本編の続きではないため。 */
.has-js .bs-loader {
  position: fixed; inset: 0; z-index: 4000;
  display: grid; grid-template-rows: 1fr auto;
  place-items: center; gap: 0;
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(72% 58% at 50% 44%, #0d1a24, #04090f 72%),
    #04090f;
  color: #F2EFE9;
  transition: opacity .85s ease, clip-path 1.1s cubic-bezier(.76, 0, .24, 1);
  clip-path: polygon(-30% 0, 130% 0, 130% 100%, -30% 100%);
}
/* ひと筋通ったように、斜めに開いて消える */
.bs-loader.is-gone {
  opacity: 0; pointer-events: none;
  clip-path: polygon(-30% -30%, 130% -130%, 130% -30%, -30% 130%);
}

.bs-loader__inner { display: grid; justify-items: center; gap: clamp(20px, 3.4vh, 44px); }
.bs-loader__foot {
  width: min(1100px, 92vw);
  display: grid; justify-items: end; gap: clamp(8px, 1.4vh, 16px);
}

/* ── 紋（見本＝三枚の花弁。モチーフに合わせて描き替えてよい） ── */
.bs-crest { width: clamp(230px, 28vw, 400px); height: auto; overflow: visible; }
.bs-crest__blade {
  transform: rotate(var(--a)) translateY(34px) scale(.965);
  /* 軸＝弁の中ほど。ここを軸にすると、三枚が中心で交わる */
  transform-origin: 0px -22px;
  opacity: 0;
  transition: transform .16s cubic-bezier(.18, 1.5, .36, 1), opacity .1s linear;
}
.bs-crest__blade.is-set { transform: rotate(var(--a)); opacity: 1; }

.bs-crest__stroke { fill: #C6D2DE; }
.bs-crest__vein   { fill: none; stroke: rgba(16, 26, 36, .38); stroke-width: 1.4; }

/* 嵌まった瞬間、光が走る */
.bs-crest__spark {
  fill: none; stroke: #FFFFFF; stroke-width: 11; stroke-linecap: round;
  opacity: 0; filter: blur(3px);
}
.bs-crest__blade.is-set .bs-crest__spark { animation: bs-chakin .34s ease-out 1; }
@keyframes bs-chakin {
  0%   { opacity: .95; stroke-width: 16; }
  100% { opacity: 0;   stroke-width: 4; }
}

/* 交点で弾ける火花 */
.bs-crest__flash { fill: #FFFFFF; opacity: 0;
  transform-origin: 0px -22px; }
.bs-crest.is-hit .bs-crest__flash { animation: bs-hit .38s ease-out 1; }
@keyframes bs-hit {
  0%   { opacity: .9; transform: scale(.2); }
  100% { opacity: 0;  transform: scale(2.6); }
}

.bs-loader__mark {
  margin: 0;
  font-family: var(--font-ui); font-weight: 500;
  font-size: clamp(.72rem, 1vw, .92rem); letter-spacing: .3em;
  color: rgba(242, 239, 233, .66);
  opacity: 0; animation: bs-splash-in 1.2s .2s ease forwards;
}
@keyframes bs-splash-in { to { opacity: 1; } }

/* 数取り機は隅へ。主役は紋 */
.bs-odo {
  display: flex; gap: .02em;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.0rem, 4.4vw, 3.6rem); line-height: 1;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  color: rgba(242, 239, 233, .8);
}
/* 帯の1コマは 1em。窓はそれより浅くして、隣のコマの頭と足が覗くのを切る */
.bs-odo__digit { display: block; height: .86em; overflow: hidden; }
.bs-odo__reel {
  display: block; margin-top: -.08em; will-change: transform;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
}
.bs-odo__reel > span { display: block; height: 1em; line-height: 1; text-align: center; }

.bs-loader__bar {
  width: 100%; position: relative; height: 1px;
  background: rgba(242, 239, 233, .14); overflow: hidden;
}
.bs-loader__bar-fill {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(242,239,233,.3), #F2EFE9);
}

/* 幕のあいだはヘッダーを伏せる */
.is-locked .bs-header { opacity: 0; transition: opacity .5s ease; }

@media (prefers-reduced-motion: reduce) {
  .has-js .bs-loader { transition: opacity .3s ease; clip-path: none; }
  .bs-loader.is-gone { clip-path: none; }
  .bs-crest__blade { transition: none; }
  .bs-crest__blade.is-set .bs-crest__spark,
  .bs-crest.is-hit .bs-crest__flash { animation: none; }
}

/* ═══════════ 熱の上に置く問い ═══════════
   もとは白の章の見出しなので濃紺のまま。熱の地では沈むので取り直す。 */
.bs-beat--ask { min-height: 96svh; }
.bs-beat--ask .bs-voices__title {
  margin: .9rem 0 0;
  font-size: clamp(2.1rem, 4.8vw, 4.2rem); line-height: 1.4;
  color: #F6F1E8;
  text-shadow: 0 2px 20px rgba(20, 6, 2, .95), 0 0 60px rgba(20, 6, 2, .8);
}
.bs-beat--ask .bs-meta {
  font-size: clamp(.86rem, 1.1vw, 1rem);
  color: rgba(246, 241, 232, .82);
  text-shadow: 0 2px 16px rgba(20, 6, 2, .96);
}
/* ★蝶番の見出しは、その上でワイプが走って地が白へ渡る。
   節の数が少ないページでは、この見出しが画面中央に来たときには
   もう地が白い＝白い文字が白い紙に乗って消える（09_itonami で実測）。
   明の地では必ず取り直す。上の白指定と対で置くこと。 */
:root[data-tone="light"] .bs-beat--ask .bs-voices__title {
  color: #14120F;
  text-shadow: 0 1px 16px rgba(244, 242, 237, .95), 0 0 46px rgba(244, 242, 237, .85);
}
:root[data-tone="light"] .bs-beat--ask .bs-meta {
  color: rgba(20, 18, 15, .70);
  text-shadow: 0 1px 12px rgba(244, 242, 237, .92);
}
/* 前置きの小さい行が、熱の地でも沈んでいた */
:root[data-tone="dark"] .bs-lead-small {
  color: rgba(242, 239, 233, .92);
  text-shadow: 0 2px 18px rgba(12, 6, 3, .94);
}

/* 熱の章は「読ませる」より「言い切る」場所。薄墨をやめて地の色で押す */
:root[data-tone="dark"] .bs-script > .bs-beat .bs-beat__after,
:root[data-tone="dark"] .bs-script > .bs-beat .bs-hero__sub { color: var(--ink); }

/* ═══════════ ヘッダーのロゴ ═══════════
   地が暗 → 明 と反転する。文字ロゴは color の入れ替えで追従する。
   画像ロゴを使うなら、明暗2枚を data-tone で入れ替える（1枚だと必ず沈む）。 */
.bs-header__logo--text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.02rem, 1.5vw, 1.35rem); letter-spacing: .2em;
  color: var(--ink); text-decoration: none;
  text-shadow: 0 1px 12px rgba(3, 8, 14, .6);
  transition: color .45s ease;
}
:root[data-tone="light"] .bs-header__logo--text {
  color: #14120F; text-shadow: 0 1px 10px rgba(244, 242, 237, .8);
}
html:not(.has-3d) .bs-header__logo--text { color: #14120F; text-shadow: none; }

.bs-header__logo { display: block; line-height: 0; }
.bs-header__logo--text { line-height: 1.4; }
.bs-header__logo-img {
  display: block; width: clamp(148px, 15vw, 218px); height: auto;
  transition: opacity .45s ease;
}
.bs-header__logo-img--light { display: none; }
:root[data-tone="light"] .bs-header__logo-img--dark { display: none; }
:root[data-tone="light"] .bs-header__logo-img--light { display: block; }
html:not(.has-3d) .bs-header__logo-img--dark { display: none; }
html:not(.has-3d) .bs-header__logo-img--light { display: block; }

/* ═══════════ メッセージの肖像と本文 ═══════════ */
.bs-portrait {
  margin: clamp(44px, 6.5vh, 84px) auto clamp(30px, 4.5vh, 52px);
  width: clamp(180px, 21vw, 280px);
}
.bs-portrait img {
  display: block; width: 100%; height: auto;
  border-radius: 999px;
  /* 白地に白背景の写真なので、輪郭が無いと溶ける */
  box-shadow: 0 0 0 1px rgba(20, 18, 15, .16),
              0 18px 46px rgba(20, 18, 15, .16);
  filter: grayscale(1) contrast(1.06);
}
.bs-portrait figcaption {
  margin-top: 1.1em; font-family: var(--font-ui);
  font-size: clamp(.86rem, 1.05vw, 1rem); letter-spacing: .12em;
  color: var(--ink-dim);
}
.bs-message__body {
  width: min(760px, 92vw); margin: 0 auto;
  text-align: left;
}
.bs-message__body p {
  margin: 0 0 1.5em;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 2.1;
  letter-spacing: .03em;
}
.bs-message__body p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .bs-message__body p { line-height: 1.95; }
}

/* ---------- 案件追加：2026年度の予定（bs-sched） ---------- */
.bs-sched { margin-top: clamp(28px, 4vh, 44px); }
.bs-sched__row {
  display: grid; grid-template-columns: minmax(130px, 230px) 1fr;
  gap: clamp(14px, 2vw, 28px); align-items: baseline;
  padding-block: clamp(18px, 2.6vh, 28px); border-top: 1px solid var(--line);
}
.bs-sched__row:last-child { border-bottom: 1px solid var(--line); }
.bs-sched__when {
  margin: 0; font-family: var(--font-ui); font-size: var(--t-meta);
  letter-spacing: .14em; color: var(--accent);
}
.bs-sched__what {
  margin: 0 0 .35em; font-family: var(--font-display); font-weight: 400;
  font-size: var(--t-h3); line-height: 1.5; color: var(--ink);
}
.bs-sched__where { margin: 0; color: var(--ink-dim); font-size: clamp(.84rem, 1vw, .95rem); }
@media (max-width: 640px) {
  .bs-sched__row { grid-template-columns: 1fr; gap: 6px; }
}

/* 案件追加：FVの補足文は小さく静かに（大見出しと役割を分ける） */
.bs-beat--hero .bs-beat__mid {
  font-size: clamp(1.0rem, 1.55vw, 1.3rem);
  line-height: 2.05;
  max-width: min(46ch, 78vw);
}

/* 案件追加：セクション背景の透かし文字（見本 07_pizzeria の仕掛け） */
.bs-section { position: relative; overflow: hidden; }
.bs-section > .bs-container { position: relative; z-index: 1; }
.bs-section[data-ghost]::before {
  content: attr(data-ghost);
  position: absolute; top: clamp(14px, 4vh, 44px); left: 2vw;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(3.6rem, 11vw, 10rem); line-height: 1; letter-spacing: .02em;
  color: rgba(20, 18, 15, .055); white-space: nowrap;
  pointer-events: none; user-select: none; z-index: 0;
}

/* 案件追加：WebGL不可・reduced では龍の代役に「光る円環」を置く（掟6） */
.no-3d .bs-beat--hero { position: relative; }
.no-3d .bs-beat--hero::after {
  content: ""; position: absolute; z-index: -1;
  right: clamp(4vw, 9vw, 12vw); top: 50%; transform: translateY(-46%);
  width: min(42vw, 430px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(14px, 2.4vw, 26px) solid rgba(124, 92, 182, .5);
  box-shadow: 0 0 70px rgba(150, 110, 220, .35), inset 0 0 46px rgba(150, 110, 220, .28);
}
@media (max-width: 720px) {
  .no-3d .bs-beat--hero::after {
    right: 50%; transform: translate(50%, -20%); width: min(70vw, 340px);
  }
}

/* 案件追加：FVの支部名は h1（SEOの主見出し）。見た目は p 時代と同一に保つ */
.bs-beat--hero h1.bs-meta {
  margin: 1em 0; font-size: var(--t-meta); font-weight: 400; line-height: 1.9;
}

/* 案件追加：モバイルのFVはヘッダーと支部名が重複するので視覚的にだけ畳む
   （display:none だと h1 が検索側で弱くなるため、読み上げ・クロールには残す） */
@media (max-width: 640px) {
  .bs-beat--hero .bs-meta {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* ---------- 案件追加：デザイン仕上げ（2026-08-05 配色刷新） ---------- */
/* 白の章：番号・メタを紫で締める */
.bs-light .bs-no,
.bs-light .bs-meta { color: var(--accent); }
.bs-light .bs-voice__who { color: var(--ink-faint); }

/* CTAボタン：紫のグラデーションで主役級に */
.bs-light .bs-btn--solid {
  background: linear-gradient(135deg, #6D28D9 0%, #9333EA 60%, #A855F7 100%);
  border-color: transparent; color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(109, 40, 217, .28);
}
.bs-light .bs-btn--solid:hover { box-shadow: 0 12px 38px rgba(109, 40, 217, .4); }
.bs-light .bs-btn { border-color: rgba(109, 40, 217, .45); }

/* 写真：角丸＋浮かせて今風に */
.bs-figure img { border-radius: 14px; box-shadow: 0 18px 48px rgba(26, 16, 51, .16); }

/* 透かし文字も紫の気配に */
.bs-section[data-ghost]::before { color: rgba(109, 40, 217, .06); }

/* 活動3つ：上端に紫の細いキーライン */
.bs-svc__item { border-top: 2px solid rgba(109, 40, 217, .35); padding-top: 1.1em; }

/* 予定表：日付をゴシック紫の小見出しに、行の境界をわずかに紫へ */
.bs-sched__row { border-top-color: rgba(109, 40, 217, .18); }
.bs-sched__row:last-child { border-bottom-color: rgba(109, 40, 217, .18); }

/* 引用（会則）：紫のキーラインで飾る */
.bs-read__quote { border-left: 3px solid rgba(109, 40, 217, .5); padding-left: 1.4em; }

/* 案件追加：SNSリンク列（CTA・フッター共用） */
.bs-sns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- 案件追加：20代にも見やすく（2026-08-05） ---------- */
/* 本文はゴシックで読みやすく。見出しの明朝はブランドとして残す */
.bs-light .bs-read__body p,
.bs-light .bs-svc__item p,
.bs-light .bs-message__body p,
.bs-light .bs-faq__body p,
.bs-light .bs-sched__where,
.bs-footer p {
  font-family: var(--font-ui);
  line-height: 2.05;
  letter-spacing: .02em;
}

/* 頻度・年号はピル型バッジに */
.bs-sched__when {
  display: inline-block; padding: .4em 1.1em; border-radius: 999px;
  background: rgba(109, 40, 217, .08); color: #6D28D9;
  font-weight: 500; letter-spacing: .08em;
}
.bs-voices .bs-no {
  display: inline-block; padding: .3em .95em; border-radius: 999px;
  background: rgba(109, 40, 217, .08); color: #6D28D9;
  font-weight: 600; letter-spacing: .18em; font-size: clamp(.82rem, 1vw, .95rem);
}

/* 見出しに紫グラデのキーライン */
.bs-light .bs-h2::after {
  content: ""; display: block; width: 58px; height: 4px; border-radius: 2px;
  margin-top: .55em;
  background: linear-gradient(90deg, #6D28D9, #A855F7);
}
.bs-cta .bs-h2::after { margin-inline: 0; }

/* ---------- 案件追加：20代向けカラー v2（紫→ピンクのグラデ・2026-08-05） ---------- */
.bs-light { --accent: #7C3AED; position: relative; }

/* 白の章にうっすらオーロラ（canvasの上・本文の下） */
.bs-light::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58vw 42vh at 88% 4%, rgba(168, 85, 247, .09), transparent 62%),
    radial-gradient(46vw 36vh at 4% 38%, rgba(236, 72, 153, .06), transparent 60%),
    radial-gradient(52vw 40vh at 92% 78%, rgba(124, 58, 237, .07), transparent 62%);
}

/* ボタン・キーラインを紫→ピンクのグラデへ */
.bs-light .bs-btn--solid {
  background: linear-gradient(135deg, #7C3AED 0%, #C026D3 55%, #EC4899 100%);
  box-shadow: 0 10px 32px rgba(192, 38, 211, .3);
}
.bs-light .bs-btn--solid:hover { box-shadow: 0 14px 40px rgba(236, 72, 153, .38); }
.bs-light .bs-h2::after {
  background: linear-gradient(90deg, #7C3AED, #C026D3, #EC4899);
  width: 66px;
}
.bs-svc__item { border-top-color: rgba(192, 38, 211, .4); }
.bs-read__quote { border-left-color: rgba(192, 38, 211, .55); }

/* バッジもグラデの気配に */
.bs-sched__when, .bs-voices .bs-no {
  background: linear-gradient(135deg, rgba(124, 58, 237, .1), rgba(236, 72, 153, .09));
  color: #7C3AED;
}

/* 透かし文字はほんのりマゼンタ寄りに */
.bs-section[data-ghost]::before { color: rgba(147, 51, 234, .062); }

/* ---------- 案件追加：日本語の折り返しを文節単位に（BudouX＋keep-all） ----------
   本文・見出しのテキストにはBudouXでゼロ幅スペース（文節の境界）を埋めてある。
   keep-all で「境界以外では折らない」、overflow-wrap で万一の長英字だけ逃がす */
.bs-beat__big, .bs-beat__mid, .bs-beat__after, .bs-voices__title,
.bs-voice__lead, .bs-voice__who, .bs-h2, .bs-svc__item h3, .bs-svc__item p,
.bs-sched__what, .bs-sched__where, .bs-note,
.bs-read__h2, .bs-read__h3, .bs-read__body p, .bs-read__quote blockquote,
.bs-message__copy, .bs-message__body p,
.bs-faq__q, .bs-faq__body p, .bs-footer__block p, .bs-figure figcaption {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* 団体名「大阪・中央支部」は途中で折らない */
.nbr { white-space: nowrap; }

/* ---------- 案件追加：WebGL不可の代役を「光るロゴ」に格上げ（2026-08-06） ----------
   丸い輪ではなく、実物のエンブレム（motif.png）をほのかに発光させて置く。
   古いPC・アクセラレーションOFFの環境でも龍のロゴが見える */
.no-3d .bs-beat--hero::after {
  border: 0; border-radius: 0; box-shadow: none;
  width: min(46vw, 540px); aspect-ratio: 470 / 360;
  background: url("../img/motif.png") center / contain no-repeat;
  filter: drop-shadow(0 0 30px rgba(196, 154, 255, .6))
          drop-shadow(0 0 90px rgba(150, 110, 220, .38))
          brightness(1.18);
  opacity: .96;
}
@media (max-width: 720px) {
  .no-3d .bs-beat--hero::after { width: min(78vw, 380px); }
}
