/* ============================================================
   brand-ebody.css — 巨乳専門E-BODY 詳細（brand.css の後に読む）
   最初の画面：ネオンの部屋。消灯した写真に貼られたテープがスクロールで引き抜かれ、額のネオン管が点いて、写真と部屋が明るくなる。
   光彩（text-shadow / box-shadow）は、点いているネオン管（最初の画面の額・2つ目の区画の額・締め）にだけ使う。ほかの要素には付けない
   ============================================================ */
/* ================= 最初の画面：テープをはがす → 額のネオンが点く（2026-10-15 修正指示 H-2） =================
   消灯した大きな写真に、黒いテープ（巨乳×元祖逆バニー店 × E-BODY）が4本×に貼られている。画面を留め、スクロールで1本ずつ端から引き抜かれ、
   抜けるたびに額のネオン管が瞬く。全部抜けると、額の管が上 → 右 → 下 → 左と1本ずつ瞬いて点き、写真と部屋が明るくなる。
   額と写真は留めている間ずっと奥から寄ってくる（写真の中身は額より少し遅れて寄る＝奥行き）。
   写真は箱に収めるだけ（中身の座標は使わない。画像を替えても崩れない）。箱は横長の画面ではヘッダーの下の残りに切らずに収まるいちばん大きな 16:9
   （額のネオン管は写真の縁の少し内側に沿う。2026-10-24）、縦長の画面では画面の幅いっぱいで写真の全体（16:9）を見せる。
   光彩は点いている額の管にだけ（box-shadow を一度だけ描いた層の opacity を変える）。消灯の写真も、暗くした写真を一度だけ描いて重ね、opacity で外す。
   ここに書いた値が最後の形（動きを減らす設定・JS なし）。仕掛けの前の形は .kv-wait（JS が inline で持たせてから外す）。動きは js/brand-ebody.js */
.kv--ebody { --tube: #ff4fa8; --tube-core: #ffe6f3; }
.kv--ebody .kvx-pin { background: #07040a; }
.kef { --H: max(100svh, 600px); --top: 64px; --fi: 14px;
  --bw: min(100cqw, calc((var(--H) - var(--top)) * 16 / 9)); --bhh: calc(var(--bw) * 9 / 16); }
/* 箱（額と写真）は、ヘッダーの下の残りに切らずに収まるいちばん大きな 16:9（2026-10-24 クライアント指示。前はヘッダーの下を覆う大きさで、
   1280 幅では写真の左右が約1%ずつ欠けていた〔2026-10-17 J-4〕）。幅は留める箱の幅（cqw）で測る。余る隙間は .ke-room（同じ写真のぼかし） */
.kef .kvx-pin { container-type: inline-size; }
/* 写真のまわり（仕掛けの間と、縦長の画面の上下に見える）：同じ写真をぼかして敷く（2026-10-17 J-4。前は部屋の写真）。
   その暗さ（明かりが入るほど薄くなる） */
.ke-room { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ke-room img { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; object-position: 50% 50%; filter: blur(24px); }
.ke-dark { position: absolute; inset: 0; z-index: 0; background: #07040a; opacity: .5; pointer-events: none; }
/* 額と写真（まとめて寄ってくる。JS が scale を変える） */
.kef-move { position: absolute; z-index: 1; left: 50%; top: calc(var(--top) + (var(--H) - var(--top)) / 2);
  width: var(--bw); height: var(--bhh); margin: calc(var(--bhh) / -2) 0 0 calc(var(--bw) / -2); will-change: transform; }
.kef-ph { position: absolute; inset: 0; overflow: hidden; container-type: size; background: #07040a; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
/* 写真：箱を覆う大きさの 16:9（JS が寄り・見渡しの transform を変える） */
.kef-img { --iw: max(100cqw, 100cqh * 16 / 9); position: absolute; left: 50%; top: 50%; width: var(--iw); aspect-ratio: 16 / 9;
  margin: calc(var(--iw) * 9 / -32) 0 0 calc(var(--iw) / -2); will-change: transform; }
.kef-img > .kv-sw > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.kef-off { filter: brightness(.3) saturate(.2); will-change: opacity; }
/* 額のネオン管：4本の直管。角は少しあけて別々の管に見せる。写真の縁の少し内側（＝画面の縁）に沿わせる */
.kef-frame { position: absolute; inset: var(--fi); z-index: 2; pointer-events: none; }
.kef-tube { position: absolute; border-radius: 3px; }
.kef-t-top, .kef-t-bottom { left: 14px; right: 14px; height: 4px; }
.kef-t-top { top: 0; } .kef-t-bottom { bottom: 0; }
.kef-t-left, .kef-t-right { top: 14px; bottom: 14px; width: 4px; }
.kef-t-left { left: 0; } .kef-t-right { right: 0; }
.kef-tube > i { position: absolute; inset: 0; border-radius: inherit; }
.kef-tube-off { background: rgba(255, 196, 226, .16); }
.kef-tube-on { background: var(--tube-core); will-change: opacity; box-shadow: 0 0 3px var(--tube), 0 0 10px var(--tube), 0 0 26px rgba(255, 45, 150, .55); }
/* テープ：黒地に白い文字、区切りはピンク。写真より長く、端は画面の外 */
.kef-tapes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.kef-tape { --th: 52px; position: absolute; left: 50%; top: var(--y); width: 240vmax; height: var(--th); margin: calc(var(--th) / -2) 0 0 -120vmax; transform: rotate(var(--a)); }
.kef-tape-in { height: 100%; display: flex; align-items: center; gap: .9em; padding-left: .5em; overflow: hidden; white-space: nowrap; will-change: transform;
  background: #0c0710; box-shadow: 0 var(--ly, 6px) var(--lb, 14px) rgba(0, 0, 0, .55); border-block: 1px solid rgba(255, 255, 255, .08);
  font-size: calc(var(--th) * .42); font-weight: 900; font-style: italic; letter-spacing: .08em; line-height: 1; }
.kef-tape-in b { color: #f4eeea; font-weight: 900; }
.kef-tape-in i { color: #ff4fa8; font-style: normal; font-size: .8em; }
.kef-tape-in b i { margin: 0 .12em; }
/* 5本目からの4本：横長の画面でも出す（2026-10-25 オーナー指示「テープの数をもう少し増やして」）。縦長の画面は下で隠し、スマホは .sfv で出す */
/* 1〜4本目（テンプレートの --y 17/39/61/83%）のあいだに1本ずつ挟み、上から下へ均等に散らす */
.kef-tape:nth-child(5) { --y: 6%; --a: 5deg; }   .kef-tape:nth-child(6) { --y: 28%; --a: -4deg; }
.kef-tape:nth-child(7) { --y: 50%; --a: 3deg; }  .kef-tape:nth-child(8) { --y: 72%; --a: -7deg; }
/* PC（横長）は6本。高さの間隔も角度もばらばらにして、雑に貼った感じに（2026-10-26 オーナー指示） */
@media (min-width: 768px) and (min-aspect-ratio: 13/10) {
  .kef-tape:nth-child(1) { --y: 9% !important; --a: -13deg !important; }  .kef-tape:nth-child(2) { --y: 33% !important; --a: 8deg !important; }
  .kef-tape:nth-child(3) { --y: 49% !important; --a: -21deg !important; } .kef-tape:nth-child(4) { --y: 74% !important; --a: 3deg !important; }
  .kef-tape:nth-child(5) { --y: 91%; --a: -9deg; }  .kef-tape:nth-child(6) { --y: 58%; --a: 16deg !important; }
  .kef-tape:nth-child(n+7) { display: none; }
}
/* 仕掛けの前の形（JS が用意するまで） */
.kv-wait .ke-dark { opacity: .92; }
.kv-wait .kef-move { transform: scale(.86); }
.kv-wait .kef-img { transform: scale(1.1); }
.kv-wait .kef-tube-on { opacity: 0; }

/* 縦長の画面：女の子5人（元画像の x 320〜1330）が画面の幅ぎりぎりに入るように切り出す。縦は写真の高さいっぱい。上下は同じ写真をぼかして敷く
   （2026-10-19 オーナー指示。女の子を主役に見せる。全体表示〔J-4〕だと小さく、前の 4:5 の切り出しだと両端の子が切れた）。見渡し（js の pan）はしない */
@media (max-width: 767px), (max-aspect-ratio: 13/10) {
  .kef { --top: var(--hd); --fi: 6px; --bw: 100vw; --bhh: calc(var(--bw) * 900 / 1010); }
  .kef-img { --iw: calc(100cqw * 1600 / 1010); margin-left: calc(var(--iw) * -825 / 1600); }
  .kef-t-top, .kef-t-bottom { left: 10px; right: 10px; height: 3px; }
  .kef-t-left, .kef-t-right { top: 10px; bottom: 10px; width: 3px; }
  .kef-tape { --th: 26px; }
  .kef-tape:nth-child(1) { --y: 15% !important; } .kef-tape:nth-child(2) { --y: 38% !important; }
  .kef-tape:nth-child(3) { --y: 62% !important; } .kef-tape:nth-child(4) { --y: 85% !important; }
  .kef-tape--sp { display: none; }
}
/* スマホ：写真は切らずに丸ごと、部屋の壁に掛けた1枚にする（共通の形は brand.css の .sfv。2026-10-25。
   前は女の子5人に寄せて左右を切っていた〔2026-10-19〕）。額のネオン管は写真に重ねず、写真の外（左右の余白の中）に回す。
   部屋の暗さは .ke-dark（明かりが入ると .5 まで薄くなる）がそのまま部屋の覆いになる。
   上下の余白のロゴと文字は、額と写真が点ききる所で浮かぶ（js/brand-ebody.js。仕掛けの前の形では出さない） */
@media (max-width: 767px) {
  .sfv .ke-room { display: none; }
  .sfv.kef { --bw: var(--sfv-kw); --bhh: var(--sfv-kh); --fi: -9px; }
  /* 写真はスマホ用の正方形（v-ebody-sp.webp。2026-11-03 先方指示。前は PC 用の 16:9）。箱（--sfv-kw・--sfv-kh）も正方形 */
  .sfv .kef-img { --iw: 100cqw; aspect-ratio: 1 / 1; margin: calc(var(--iw) / -2) 0 0 calc(var(--iw) / -2); }
  .sfv .kef-ph { box-shadow: var(--sfv-shadow); }
  .kv-wait .sfv.kv--ebody .sfv-top, .kv-wait .sfv.kv--ebody .sfv-bot { opacity: 0; }
  /* テープは写真のまわりだけでなく、画面の上から下まで8本を端から端へ貼り巡らせる（2026-10-25 オーナー指示「アイキャッチだけのバナーじゃなくて、スマホ画面全体に」）。
     テープの層を写真の箱から画面全体に広げる（箱と一緒に奥から寄ってくる動きはそのまま）。上の余白のロゴのあたり・写真・下のコピーのあたりに交互の角度で掛かる。
     抜ける順と区間は js/brand-ebody.js（n 本目と n+4 本目が同じ区間で逆向きに抜ける）。全部抜けてから管が点くので、最後の画面にテープは残らない */
  .sfv .kef-tapes { inset: auto; left: calc(var(--sfv-kl) * -1); top: calc(var(--sfv-kt) * -1); width: 100vw; height: var(--sfv-h); }
  .sfv .kef-tape { --th: 34px; }
  .sfv .kef-tape--sp { display: block; }
  /* 1本目はヘッダー（60px）に掛けない：寄ってくる前の大きさ（.86〜.87）で、画面の端での上のふちが 375×667 で約 71px、390×844 で約 103px */
  .sfv .kef-tape:nth-child(1) { --y: 14% !important; --a: -12deg !important; } .sfv .kef-tape:nth-child(5) { --y: 62% !important; --a: -15deg !important; }
  .sfv .kef-tape:nth-child(2) { --y: 26% !important; --a: 10deg !important; }  .sfv .kef-tape:nth-child(6) { --y: 74% !important; --a: 7deg !important; }
  .sfv .kef-tape:nth-child(3) { --y: 38% !important; --a: -8deg !important; }  .sfv .kef-tape:nth-child(7) { --y: 86% !important; --a: -16deg !important; }
  .sfv .kef-tape:nth-child(4) { --y: 50% !important; --a: 17deg !important; }  .sfv .kef-tape:nth-child(8) { --y: 98% !important; --a: 11deg !important; }
}

/* ================= 2つ目の区画の文章（コンセプト） ================= */
.concept-lead b { display: inline-block; margin-bottom: 4px; font-size: 17px; }
.concept-title { font-weight: 900; letter-spacing: .02em; }
.concept-title em { font-style: normal; color: var(--brand-title); }

/* ================= 店舗 ================= */
.shop-facts small { font-size: 13px; }

/* ================= 締め：見出しのネオンが1文字ずつ消えて部屋が暗くなり、中央に締めの看板が点く（共通の形は brand.css の .bfin） =================
   ネオン管が1文字ずつ瞬いて消え、締めの1枚は同じ点き方で点く。
   管の作り（外周だけに通す管。点いた管だけ光彩）は .bfin-tb に持つ（最初の画面の点灯待ち .kv-wait に巻き込まない）。
   光彩（text-shadow / box-shadow）は、点いている管にだけ使う */
.bfin--ebody { --tube: #ff4fa8; --tube-core: #ffe6f3; --tube-g: #06C755; --tube-g-core: #eafff1; }
.bfin--ebody .bfin-bg img { object-position: 82% 50%; filter: brightness(.6) saturate(1.05); }
/* ネオンの照り返し（見出しのあたりから部屋へ）。管が消えるほど薄くなる */
.bfin-spill { position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(52% 64% at 24% 40%, rgba(255, 79, 168, .3), rgba(255, 79, 168, .08) 55%, transparent 78%); }
/* 部屋の暗さ。見出しの管以外（写真・本文・LINE・リンク）を沈める */
.bfin-dark { position: absolute; inset: 0; z-index: 2; background: #07040a; opacity: 0; pointer-events: none; }
.bfin-ntitle { position: relative; z-index: 3; font-size: clamp(48px, 6.4vw, 100px); font-weight: 900; line-height: 1.16; letter-spacing: .02em; margin-bottom: 28px; color: var(--brand-title); }
.bfin--ebody .bfin-neon { display: block; }
.bfin--ebody .bfin-nline { display: block; white-space: nowrap; }
.bfin--ebody .bfin-tb { position: relative; display: inline-block; }
.bfin--ebody .bfin-tb-off, .bfin--ebody .bfin-tb-on { -webkit-text-stroke-width: .07em; paint-order: stroke fill; }
.bfin--ebody .bfin-tb-off { display: block; color: #13060c; -webkit-text-stroke-color: rgba(255, 196, 226, .16); }
.bfin--ebody .bfin-tb-on { position: absolute; inset: 0; color: #1a0611; -webkit-text-stroke-color: var(--tube-core); will-change: opacity;
  text-shadow: 0 0 .02em var(--tube), 0 0 .07em var(--tube), 0 0 .2em var(--tube), 0 0 .5em rgba(255, 45, 150, .55); }
.bfin--ebody .bfin-text { max-width: 30em; }
/* 締めの1枚：一言はネオン管（文字は共通の大きさ）。看板が点くと、まわりの部屋がほんのり照らされる */
.bfin--ebody .bfin-c-line { font-weight: 900; letter-spacing: .04em; line-height: 1.46; }
.bfin-spill2 { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(34% 42% at 50% 54%, rgba(255, 79, 168, .2), rgba(255, 79, 168, .06) 60%, transparent 80%); }
/* LINE の管：ボタンを囲む細いガラス管。消えている間はうっすら輪郭だけ */
.bfin-tubes { position: relative; display: inline-flex; }
.bfin-tube { position: absolute; inset: -10px; border-radius: 8px; pointer-events: none; }
.bfin-tube i { position: absolute; inset: 0; border-radius: inherit; border-width: 2px; border-style: solid; }
.bfin-tube .bfin-tube-off { border-color: rgba(190, 255, 215, .2); }
.bfin-tube .bfin-tube-on { border-color: var(--tube-g-core); opacity: 0; will-change: opacity;
  box-shadow: 0 0 2px var(--tube-g), 0 0 8px var(--tube-g), 0 0 22px rgba(6, 199, 85, .7), 0 0 46px rgba(6, 199, 85, .38),
              inset 0 0 6px rgba(6, 199, 85, .75), inset 0 0 14px rgba(6, 199, 85, .3); }
/* LINE：角の締まった看板。反転は、管が区切りごとに点いていくように段を踏んで左から進む */
.bfin-btn--ebody { min-height: 62px; padding: 0 46px; border-radius: 3px; font-size: 16px; font-weight: 900; letter-spacing: .14em;
  --h-bg: #f4fff8; --h-fg: #047a36; --h-bd: #f4fff8; --wipe: .42s steps(6, jump-start); }
.bfin-btn--ebody .btn-fill { border-radius: 3px; }
@media (max-width: 767px) {
  /* スマホは部屋の左の壁（ぼけた暗がり）を見せ、写真のネオン看板を見出しの背後に置かない */
  .bfin--ebody .bfin-bg img { object-position: 18% 50%; filter: brightness(.48) saturate(1.05); }
  .bfin-ntitle { font-size: clamp(36px, 10.6vw, 56px); margin-bottom: 20px; }
  .bfin-tubes { display: flex; width: 100%; }
  .bfin-tube { inset: -8px; }
  .bfin-card .bfin-tubes { width: min(300px, 100%); }
}

/* ================= 新着キャストの背景：ピンクのネオンがにじむ暗い部屋（2026-09-30） =================
   暗い画像の欄（.cast--dark）。ネオンのボケを夜の覆いで少し沈める（光る線・発光の装飾は足さない）。
   画像はボケの明るい芯を抑えて書き出してある（小さな文字の後ろでも 4.5:1 を保つため） */
.page-brand .cast--dark { --cb-base: #12060b; --cb-img: url("../assets/newcast/ebody-1600.webp"); --cb-veil: rgba(13, 6, 10, .38); }
@media (max-width: 767px) { .page-brand .cast--dark { --cb-img: url("../assets/newcast/ebody-800.webp"); } }

/* ================= 2つ目の区画：ネオンの通路。額のネオン管が点き、点き終わってから動画が流れ、その色の光が部屋に映る（共通の形は brand.css の .bs） =================
   暗い部屋 → 額のネオン管が瞬いて点く（光彩はこの管だけ）→ 動画が流れ始め、画面の色の光が壁と床に映る。
   動画が流れるまでは表紙のコマで止めておく。色と明るさは js/brand-second.js が動画から読む（--amb・--room） */
.bs--ebody { --bs-base: #07040a; --bs-sf: brightness(.55) saturate(1.05); --bs-scrim: rgba(7, 4, 10, .68); --bs-psh: rgba(0, 0, 0, .6); --bs-pr: -11%; --bs-pd: 1.5s; }
.bs--ebody.is-anim { --bs-sf: brightness(var(--room, .34)) saturate(1.1); }
.bs--ebody .bs-frame { box-shadow: 0 0 0 6px #0c0710, 0 40px 80px rgba(0, 0, 0, .6); }
/* 額のネオン管：最初の画面の額と同じ色の管が、額のまわりで瞬いて点く */
.bs-neon { position: absolute; z-index: 3; inset: -18px; border-radius: 16px; pointer-events: none; }
.bs-neon > i { position: absolute; inset: 0; border-radius: inherit; display: block; }
.bs-neon-off { border: 3px solid rgba(255, 196, 226, .18); }
.bs-neon-on { border: 3px solid #ffe6f3; box-shadow: 0 0 3px #ff4fa8, 0 0 12px #ff4fa8, 0 0 30px rgba(255, 45, 150, .55), inset 0 0 3px #ff4fa8, inset 0 0 12px rgba(255, 79, 168, .5); }
.bs.is-anim .bs-neon-on { opacity: 0; }
/* スマホ：ネオン管が額の外へ出るぶん、額を細くして管が画面の内側（左右 12px）に収まるようにする（両端で切れていた。2026-10-19 オーナー指示） */
@media (max-width: 899px) {
  .bs--ebody { --fw: calc(100vw - 48px); }
  .bs--ebody .bs-frame-move { left: 24px; }
  .bs--ebody .bs-neon { inset: -12px; }
}
.bs.is-anim.is-on .bs-neon-on { animation: bsFlick 1.3s linear .3s both; }
@keyframes bsFlick { 0% { opacity: 0; } 6% { opacity: 1; } 10% { opacity: 0; } 20% { opacity: 1; } 24% { opacity: .15; } 36% { opacity: 1; } 40% { opacity: .5; } 52%, 100% { opacity: 1; } }
/* 映像の光：画面の色が壁と床に映る（流れている間だけ） */
.bs-amb { position: absolute; z-index: 0; inset: -46% -30% -70%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  background:
    radial-gradient(34% 22% at 50% 78%, rgb(var(--amb, 255 79 168) / .42), transparent),   /* 床に映る光 */
    radial-gradient(closest-side, rgb(var(--amb, 255 79 168) / .7) 52%, rgb(var(--amb, 255 79 168) / .26) 74%, transparent);
  filter: blur(26px); mix-blend-mode: screen; }
.bs.is-play .bs-amb { opacity: 1; }
