/* ============================================================
   base.css — 全ページ共通（リセット・文字・ボタン・ヘッダー・
   年齢確認の幕・フッター・共通の動き）
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--night);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: .03em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
/* ブランドのキービジュアルの PC 用・スマホ用の切り替え（partials/common.html の kv_pic）。picture は箱を作らず、中の img を前のまま置く */
.kv-sw { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #ffd43b; outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.nobr { white-space: nowrap; }
/* 生成時に包むカタカナ語（tools/build.py）。箱を作らない＝並びの部品（flex・grid）の中でも1つの文字列のまま扱われ、前後に隙間が出ない */
.nobr--kana { display: contents; }
/* 本文（段落・箇条・表）ではカタカナ語も途中で折り、行を右端まで詰める（2026-10-19 オーナー指示）。見出し・ボタン・場面の一言は守ったまま */
:is(p, li, dd, td):not(.scene-catch) .nobr--kana { white-space: normal; }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* 見出しは語のまとまりで折り返す */
h1, h2, h3, .jp-heading { overflow-wrap: anywhere; line-break: strict; }  /* 行は右端まで詰めて折る（keep-all・text-wrap は使わない。語の途中の折れは build.py の nobr--kana で守る。見出しの行は <br> で決める。2026-10-18） */
.mincho { font-family: var(--f-mincho); font-weight: 800; letter-spacing: .04em; }

/* ---------- セクション見出し（線もラベルも使わない） ---------- */
.sec { position: relative; padding: var(--s6) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.sec-title { font-size: var(--fs-h2); font-weight: 900; line-height: 1.2; letter-spacing: .01em; }
.sec-lead { color: var(--text-2); font-size: 15px; line-height: 1.9; }
@media (max-width: 1023px) {
  .sec-head { grid-template-columns: 1fr; gap: var(--s2); }
}
@media (max-width: 767px) {
  .sec { padding: 72px 0; }
  .sec-head { grid-template-columns: 1fr; gap: var(--s2); margin-bottom: var(--s4); }
  .sec-title { font-size: 28px; }
}

/* ---------- ボタン ----------
   押す前の色（--b-*）とカーソルを乗せたときの反転色（--h-*）を種類ごとに持つ。
   motion.js が各ボタンに反転色の複製（.btn-fill：面＋文字）を重ねる。乗せると複製が左から
   現れ、離すと左へ引く。面と文字が同じ1枚なので境目がずれない。
   カーソルのない端末では反転しない。キーボードで選んだときも同じ見た目。JSが無いときは色だけ切り替える */
.btn {
  --b-bg: transparent; --b-fg: var(--text); --b-bd: transparent;
  --h-bg: var(--text); --h-fg: var(--btn-ink, var(--night)); --h-bd: var(--h-bg);
  --wipe: .5s cubic-bezier(.7, 0, .2, 1);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-s);
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: 15px; letter-spacing: .06em; white-space: nowrap;
  transition: border-color var(--wipe), background-color .3s ease-out, color .3s ease-out, transform .1s ease-out;
}
.btn-fill {
  position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: inherit; gap: inherit;
  padding: inherit; border: 1px solid transparent; border-radius: inherit;
  background: var(--h-bg); color: var(--h-fg); white-space: inherit; text-align: inherit;
  clip-path: inset(0 100% 0 0); transition: clip-path var(--wipe);
}
@media (hover: hover) {
  .btn:hover { border-color: var(--h-bd); }
  .btn:hover .btn-fill { clip-path: inset(0 0 0 0); }
  .btn:not(.has-fill):hover { background: var(--h-bg); color: var(--h-fg); }
}
.btn:focus-visible { border-color: var(--h-bd); }
.btn:focus-visible .btn-fill { clip-path: inset(0 0 0 0); }
.btn:not(.has-fill):focus-visible { background: var(--h-bg); color: var(--h-fg); }
.btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-fill { transition-duration: .01s; }
}
/* 種類：赤／枠線／LINE／ブランド色（反転すると白地に元の色の文字と枠） */
.btn-red { --b-bg: var(--red); --b-fg: #fff; --b-bd: var(--red); --h-bg: #fff; --h-fg: var(--red); --h-bd: var(--red); }
.btn-ghost { --b-bd: var(--line-2); }
/* LINE：公式の緑（#06C755）と公式ロゴ（吹き出しに「LINE」の抜き）。乗せると白地に反転し、ロゴと枠は公式の緑、文字は読める深さの緑。押した瞬間は公式の押下色（黒10%を重ねた緑） */
.btn-line { --b-bg: #06C755; --b-fg: #fff; --b-bd: #06C755; --h-bg: #fff; --h-fg: #05a346; --h-bd: #06C755; }
.btn-line:active { --b-bg: #05b34c; --b-bd: #05b34c; }
.btn .ico-line { width: 26px; height: 26px; flex: none; margin-left: -4px; }
.btn-fill .ico-line { color: #06C755; }
.btn .arw { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease-out); }
@media (hover: hover) { .btn:hover .arw { transform: translateX(4px); } }
.tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); font-size: 14px; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color var(--t-state), border-color var(--t-state); }
.tlink:hover { color: var(--text); border-color: var(--text); }

/* ---------- ヘッダー ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: 76px; display: flex; align-items: center; gap: var(--s4);
  padding: 0 var(--gutter);
  transition: background-color .3s ease-out, height .3s var(--ease-out);
}
.hdr::before { content: ""; position: absolute; inset: 0 0 -40px 0; background: linear-gradient(rgba(13,10,11,.72), transparent); pointer-events: none; transition: opacity .3s; z-index: -1; }
.hdr.is-solid { background: rgba(13, 10, 11, .94); height: 64px; }
.hdr.is-solid::before { opacity: 0; }
.hdr-logo { display: flex; align-items: center; min-height: 44px; }
.hdr-logo img { height: 34px; width: auto; }
.hdr-nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.hdr-nav a { position: relative; padding: 8px 0; color: var(--text-2); transition: color var(--t-state); white-space: nowrap; }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { color: var(--text); }
.hdr-cta { min-height: 42px; padding: 0 20px; font-size: 13px; }
/* 「ブランド」「エリア」の一覧（PC）。カーソルを乗せる・キーボードでフォーカスすると出る。項目そのものの飛び先は今のまま（2026-10-26 ペルソナレビュー 中8）
   ヘッダーの夜の帯と同じ色・同じ文字の、静かな文字リンクの一覧（ガラス風・影は使わない）。動きは opacity と transform だけ。
   マウスで項目を押したときは開いたままにしない（:focus-within ではなく :focus-visible で開く）。指で触る画面ではカーソルでは開かない */
.hdr-dd { position: relative; display: flex; }
.hdr-dd-panel {
  position: absolute; top: 100%; left: -20px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease-out, transform .3s var(--ease-out), visibility 0s .3s;
}
.hdr-dd-panel ul { min-width: 180px; padding: 8px 0; background: rgba(13, 10, 11, .94); border: 1px solid var(--line); border-radius: var(--r-s); }
.hdr-nav .hdr-dd-panel a { display: block; padding: 9px 20px; }
.hdr-dd:has(:focus-visible) > a { color: var(--text); }
.hdr-dd:has(:focus-visible) .hdr-dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease-out, transform .3s var(--ease-out), visibility 0s; }
@media (hover: hover) {
  .hdr-dd:hover > a { color: var(--text); }
  .hdr-dd:hover .hdr-dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease-out, transform .3s var(--ease-out), visibility 0s; }
}
@media (prefers-reduced-motion: reduce) { .hdr-dd-panel { transform: none; } }
.hdr-burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.hdr-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .3s var(--ease-out), opacity .2s; }
.hdr-burger span:nth-child(1) { top: 16px; } .hdr-burger span:nth-child(2) { top: 26px; }
.drawer-open .hdr-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.drawer-open .hdr-burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1080px) {
  .hdr { height: 60px; gap: var(--s2); }
  .hdr.is-solid { height: 60px; }
  .hdr-logo img { height: 28px; }
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: block; }
}

/* ドロワー（スマホ） */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--night); padding: 88px var(--gutter) var(--s5);
  display: flex; flex-direction: column; gap: var(--s4); overflow-y: auto;
  visibility: hidden; opacity: 0; transition: opacity .3s ease-out, visibility 0s .3s;
}
.drawer-open .drawer { visibility: visible; opacity: 1; transition: opacity .3s ease-out; }
.drawer-open .hdr { background: transparent; z-index: calc(var(--z-drawer) + 1); }
.drawer-h { font-size: 13px; color: var(--text-3); font-weight: 500; letter-spacing: .1em; margin-bottom: var(--s1); }
.drawer-sec a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer .btn { width: 100%; }

/* ---------- 年齢確認の幕 ---------- */
.gate { position: fixed; inset: 0; z-index: var(--z-gate); display: grid; place-items: center; overflow: hidden; }
.gate-half { position: absolute; top: 0; bottom: 0; width: 50.5%; overflow: hidden; will-change: transform; transition: transform 1.5s cubic-bezier(.7, 0, .2, 1); }
.gate-half--l { left: 0; }
.gate-half--r { right: 0; }
.gate-half img { position: absolute; top: 0; height: 100%; width: 198vw; max-width: none; object-fit: cover; filter: brightness(.62) saturate(1.1); }
.gate-half--l img { left: 0; }
.gate-half--r img { right: 0; }
/* 幕の合わせ目にできる影 */
.gate-half--l::after, .gate-half--r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18vw; pointer-events: none; }
.gate-half--l::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0,0,0,.45)); }
.gate-half--r::after { left: 0; background: linear-gradient(270deg, transparent, rgba(0,0,0,.45)); }
.gate-body { position: relative; z-index: 2; width: min(520px, calc(100% - 32px)); text-align: center; transition: opacity .4s ease-out, transform .5s var(--ease-out); }
.gate-logo { width: min(320px, 72vw); margin: 0 auto var(--s4); }
.gate-title { font-size: 22px; font-weight: 900; margin-bottom: var(--s2); letter-spacing: .08em; }
.gate-text { font-size: 14px; line-height: 1.9; color: var(--text-2); margin-bottom: var(--s4); }
.gate-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.gate-actions .btn { width: 100%; }
.gate-note { margin-top: var(--s3); font-size: 12px; color: var(--text-3); }
.gate.is-opening .gate-body { opacity: 0; transform: scale(.97); }
.gate.is-opening .gate-half--l { transform: translateX(-102%); }
.gate.is-opening .gate-half--r { transform: translateX(102%); }
.gate[hidden] { display: none; }
body.is-gated { overflow: hidden; }
@media (max-width: 480px) { .gate-actions { grid-template-columns: 1fr; } }

/* ---------- フッター（全ページ共通。部品は partials/common.html の footer） ----------
   上から「ブランドのロゴが流れる帯」→「舞台（公式LINEの大きな導線とリンク）」→「床（ロゴ・年齢の注意・著作権）」。
   動きはロゴの帯だけ。動きを減らす設定では、帯は止めて折り返す */
.ftr { background: #080607; font-size: 14px; color: var(--text-2); }
.ftr h2 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: var(--s2); letter-spacing: .1em; }
/* 語の途中で折らない（折る所はテンプレートの <wbr>）。入りきらない長さのときだけ途中で折る */
.ftr li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; word-break: keep-all; overflow-wrap: anywhere; }
.ftr a:hover { color: var(--text); }

/* ロゴの帯：同じ並びを2周ぶん置き、半分だけ横へ流して継ぎ目なく回す。カーソルやキーボードが来たら止める */
.ftr-logos { position: relative; z-index: 2; overflow: hidden; background: #080607; border-bottom: 1px solid var(--line); }
.ftr-logos-track { display: flex; width: max-content; animation: ftrRail 64s linear infinite; }
.ftr-logos ul { display: flex; align-items: center; gap: 88px; padding: 26px 44px; }
.ftr-brand { height: 60px; transition: opacity var(--t-state); }
.ftr-brand img { height: 56px; width: auto; max-width: none; }
.ftr-brand.is-wide img { height: 44px; }
/* 白い地向けに作られた灰色のロゴ（人妻in誘惑）は、夜の地で読めるように明るくする */
.ftr-brand.is-dim img { filter: brightness(3.2) saturate(.9); }
/* キャラクター（イープラくん・エプこちゃん）：ロゴより少し大きく、帯の高さの中に立たせる（2026-10-15） */
.ftr-chara { display: flex; align-items: center; }
.ftr-chara img { height: 84px; width: auto; max-width: none; margin: -12px 0; }
.ftr-logos:hover .ftr-logos-track, .ftr-logos:focus-within .ftr-logos-track { animation-play-state: paused; }
@media (hover: hover) {
  .ftr-logos:hover .ftr-brand { opacity: .55; }
  .ftr-logos .ftr-brand:hover { opacity: 1; }
}
@keyframes ftrRail { to { transform: translateX(-50%); } }
@media (max-width: 767px) {
  .ftr-logos ul { gap: 56px; padding: 18px 28px; }
  .ftr-brand { height: 44px; }
  .ftr-brand img { height: 40px; }
  .ftr-brand.is-wide img { height: 32px; }
  .ftr-chara img { height: 60px; margin: -8px 0; }
}

/* 舞台（公式LINEとリンク）。補助の文字は一段明るくする */
.ftr-stage { position: relative; isolation: isolate; overflow: hidden; --text-2: rgba(244, 238, 234, .84); }
.ftr-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .75fr) minmax(0, .95fr);
  gap: var(--s4); padding-top: 72px; padding-bottom: 64px; }
.ftr .ftr-title { font-weight: 800; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.45; letter-spacing: .04em; color: var(--text); margin-bottom: 14px; }
.ftr-lead { color: var(--text-2); font-size: 15px; line-height: 1.8; margin-bottom: 28px; word-break: auto-phrase; }
.ftr-line-btn { min-width: min(360px, 100%); min-height: 76px; padding: 0 40px; font-size: 18px; gap: 12px; }
.ftr-line-icon { width: 24px; height: 24px; flex: none; }
.ftr-grid--noline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); padding-top: 56px; padding-bottom: 48px; }
  .ftr-line { grid-column: 1 / -1; }
  .ftr-line-btn { width: 100%; }
}
@media (max-width: 767px) {
  .ftr .ftr-title { font-size: 26px; }
  .ftr-line-btn { min-height: 64px; font-size: 17px; padding: 0 24px; }
  /* ブランドの列だけ横幅いっぱいの1列にして、ブランド名を1行に収める。サイト・規約の列は2列のまま（2026-10-16） */
  .ftr-col-brands { grid-column: 1 / -1; }
}

/* 床 */
.ftr-floor { position: relative; z-index: 2; background: #080607; border-top: 1px solid var(--line); }
.ftr-floor-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 32px; padding-top: 28px; padding-bottom: 32px; }
.ftr-logo img { height: 32px; width: auto; }
.ftr-about { font-size: 13px; line-height: 1.9; word-break: auto-phrase; }
/* 枠の余白は、行の上下の空き（行間 1.8 の半分）を足して見た目で上下左右を揃える（2026-10-16） */
.ftr-age { grid-column: 1 / -1; margin-top: 8px; padding: 12px 16px; background: var(--night-2); border-radius: var(--r-s); color: var(--text); font-size: 13px; line-height: 1.8; }
@media (min-width: 768px) { .ftr-age { padding: 16px 20px; } }
.ftr-copy { grid-column: 1 / -1; margin-top: 4px; font-size: 12px; color: var(--text-3); }
@media (max-width: 767px) {
  .ftr-floor-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ftr-logos-track { display: block; animation: none; width: auto; }
  .ftr-logos ul[aria-hidden] { display: none; }
  .ftr-logos ul { flex-wrap: wrap; justify-content: center; gap: 20px 56px; }
}

/* ---------- トースト（見本で未制作のページ） ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--ink); font-size: 14px; font-weight: 500; padding: 14px 20px; border-radius: var(--r-m); max-width: calc(100% - 32px); transition: opacity .2s, transform .3s var(--ease-out); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 共通の動き1：写真が下から幕のように現れる ---------- */
.rv-photo { overflow: hidden; }
.js .rv-photo > .rv-in { transform: translateY(101%); }
.js .rv-photo > .rv-in > img { transform: translateY(-101%) scale(1.08); }
.rv-photo > .rv-in { transition: transform 1.1s var(--ease-out); }
.rv-photo > .rv-in > img { transition: transform 1.1s var(--ease-out); }
.js .rv-photo.is-in > .rv-in, .js .rv-photo.is-in > .rv-in > img { transform: none; }
.rv-in { height: 100%; }
.rv-in > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 共通の動き2：本文・行は、下からふわっと浮かび上がる（ぼかしは使わない。2026-10-15） ---------- */
.js .rv { opacity: 0; transform: translateY(44px); }
.rv { transition: opacity .9s var(--ease-soft), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- 共通の動き3：見出しは、下から帯がめくれるように文字がせり上がる ---------- */
.js .rv-title { opacity: 0; transform: translateY(.45em); clip-path: inset(0 0 100% 0); }
.rv-title { transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out), opacity .4s ease-out; }
.js .rv-title.is-in { opacity: 1; transform: none; clip-path: inset(-.2em -.3em -.35em -.3em); }

/* ---------- 共通の動き4：カードは、少し小さく沈んだ所から持ち上がる ---------- */
.js .rv-card { opacity: 0; transform: translateY(72px) scale(.95); }
.rv-card { transition: opacity .9s var(--ease-soft), transform 1.2s var(--ease-out); }
.js .rv-card.is-in { opacity: 1; transform: none; }

/* ---------- 共通の動き5：動画の枠は幕が上がるように開き、中身は寄った所から引く ---------- */
.js .rv-media { clip-path: inset(100% 0 0 0); }
.rv-media { transition: clip-path 1.2s var(--ease-out); }
.js .rv-media.is-in { clip-path: inset(0); }
.js .rv-media video { transform: scale(1.18); }
.rv-media video { transition: transform 1.8s var(--ease-out); }
.js .rv-media.is-in video { transform: none; }

/* ---------- 共通の動き6：帯は、横から滑り込む ---------- */
.js .rv-slide { opacity: 0; transform: translateX(14vw); }
.rv-slide { transition: opacity 1s var(--ease-soft), transform 1.4s var(--ease-out); }
.js .rv-slide.is-in { opacity: 1; transform: none; }

/* ---------- 演出：写真に光の筋が走る（ホバー） ---------- */
.gloss { position: relative; overflow: hidden; }
.gloss::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 244, 236, .32) 50%, transparent 62%);
  transform: translateX(-130%); }
.gloss:hover::after { transform: translateX(130%); transition: transform 1.1s var(--ease-out); }
/* 触れない端末：画面に入ったときに1回だけ走る */
.gloss.is-flash::after { transform: translateX(130%); transition: transform 1.3s var(--ease-out) .15s; }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv-photo > .rv-in, .js .rv-photo > .rv-in > img, .js .rv-title, .js .rv-card, .js .rv-media, .js .rv-media video, .js .rv-slide { opacity: 1; transform: none; filter: none; clip-path: none; }
}

.gate-ok .gate { display: none; }
.btn-accent { --b-bg: var(--accent, var(--red)); --b-fg: #fff; --b-bd: var(--b-bg); --h-bg: #fff; --h-fg: var(--accent, var(--red)); --h-bd: var(--accent, var(--red)); }

/* ---------- 明るい面（新着キャスト。2026-09-30 会議：暗い夜の面の中で、写真のカードを映えさせる） ----------
   区画に .face-light を付けると、中の色の変数が「淡いピンクベージュの地＋墨の文字」に入れ替わる。
   文字はすべて地に対して 4.5:1 以上（墨 15:1・補助 8:1・注記 6.5:1） */
.face-light {
  --night:   #f5e9e4;   /* 地：淡いピンクベージュ */
  --night-2: #eadad3;   /* 写真の読み込み前の面 */
  --night-3: #dfcbc2;
  --line:    rgba(31, 22, 20, .14);
  --line-2:  rgba(31, 22, 20, .3);
  --text:    #1f1614;
  --text-2:  #4f4240;
  --text-3:  #5e4f4b;   /* 注記。背景のにじみ・模様の上でも 4.5:1 以上（2026-09-30 修正2で一段濃く） */
  background: var(--night);
  color: var(--text);
}
.face-light :focus-visible { outline-color: #1f1614; }

/* ---------- 新着キャストの背景（2026-09-30）：単色にせず、ページの世界観の質感画像を奥に敷く ----------
   区画に .cast-backdrop を付け、ページごとの CSS で変数だけ決める。写真のカードが主役なので、覆いで主張を抑える（文字は 4.5:1 以上）
   --cb-base    地の色（画像が読めないときもこの色）
   --cb-img     質感画像 url(...)。assets/newcast/{名前}-1600.webp（スマホは -800）。元は ../素材_生成背景/newcast-bg-*.png（少しぼかして webp にした）
   --cb-glow    画像の上に重ねるにじみ（グラデの重ね。カンマ区切り）
   --cb-veil    画像とにじみの上にかける覆い（地の色を半透明で）
   --cb-pattern いちばん上の細かい模様（甘サドの方眼など）
   --cb-drift   奥の層をスクロールに合わせて少し流すとき castDrift。流す欄には view-timeline: --cast-bd block も付ける（既定は流さない。動きを減らす設定では止める）
   重なり順：地 → 質感画像＋にじみ（::before）→ 覆い＋模様（::after）→ 中身
   既定の値はトップ・エリア用（ローズベージュ〜ワインのサテン。明るい面に墨の文字）。
   暗い画像の欄（E+・オトナめ・E-BODY）は .cast--dark を付け、文字を明るい色にする */
.cast-backdrop {
  --cb-base: #f5e9e4;
  --cb-img: url("../assets/newcast/top-1600.webp");
  --cb-veil: rgba(245, 233, 228, .83);
  position: relative; isolation: isolate; overflow: hidden; background: var(--cb-base);
}
@media (max-width: 767px) { .cast-backdrop { --cb-img: url("../assets/newcast/top-800.webp"); } }
.cast-backdrop::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -2; pointer-events: none;
  background: var(--cb-glow, none), var(--cb-img, none) 50% 50% / cover no-repeat;
}
.cast-backdrop::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--cb-pattern, none), linear-gradient(var(--cb-veil, transparent), var(--cb-veil, transparent));
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cast-backdrop::before { animation-name: var(--cb-drift, none); animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --cast-bd; animation-range: cover; }
  }
}
@keyframes castDrift { from { transform: translate3d(-4%, 6%, 0); } to { transform: translate3d(4%, -6%, 0); } }
/* 暗い画像の欄：夜の面の文字のまま、補助と注記だけ少し明るくして画像の上でも 4.5:1 以上に */
.cast-backdrop.cast--dark { --text-2: rgba(244, 238, 234, .88); --text-3: rgba(244, 238, 234, .8); color: var(--text); }

/* ================= 紹介動画の再生ボタン（トップ・求人の「1分でわかるE+グループ」。js/motion.js の EP.movie） =================
   止まっている間だけ真ん中に出す（自動再生が止められた環境・人が止めたとき）。再生が始まったら消える。操作バーを出したときは出さない */
.movie-play { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(13, 10, 11, .6); color: #fff; cursor: pointer;
  transition: opacity .3s ease-out, visibility .3s, transform .3s var(--ease-out); }
.movie-play svg { margin-left: 4px; }
@media (hover: hover) { .movie-play:hover { transform: scale(1.06); } }
.is-playing > .movie-play, video[controls] ~ .movie-play { opacity: 0; visibility: hidden; }
video:has(~ .movie-play) { cursor: pointer; }

/* 見出しの言葉のまとまり。入る幅なら1行、入らないときだけまとまりの切れ目で折り返す（<br> で行を固定しない。2026-10-27 オーナー指示） */
.seg { display: inline-block; }
