/* ============================================================
   brand-otona.css — オトナめE+詳細（brand.css の後に読む）
   主役の仕掛け：黒いレースの暗がりを、灯りが照らす。
   写真（.bh-photo）は明るいまま置き、その上に暗幕（.ol-veil）を重ねて
   灯りの位置だけ幕に穴を開ける。動かすのは穴の位置・大きさと幕の透明度だけ
   縦横比 3:2 より縦長の画面でも PC と同じ横長写真を使う。画面いっぱいに敷くと人物か焼き込みの文字が欠けるので、
   写真は切らずに画面の幅で見せ、まわりは黒いレースの暗がりにする（灯りの仕掛けは PC と同じ）
   ============================================================ */

/* ================= 最初の画面 ================= */
.bh--otona .bh-pin { background: #0a0607; }
/* 右端の焼き込みロゴまで入るよう、少し右に寄せる */
.bh--otona .bh-photo img { object-position: 80% 30%; }
/* 横長の画面：ヘッダーの下から画面の下まで・左右の端までを写真で埋める（上の縦書きのコピーをヘッダーで隠さない。2026-10-17 J-4） */
@media (min-aspect-ratio: 3/2) { .bh--otona .bh-photo { top: 64px; } }
/* PC：写真は切らずに全体を見せる（2026-10-24 クライアント指示。前は画面を覆う大きさで、1280 幅では左右が約1%ずつ欠けていた）。
   余る上下か左右の細い隙間は同じ写真のぼかしで埋める */
@media (min-width: 768px) and (min-aspect-ratio: 3/2) {
  .bh--otona .bh-photo { overflow: hidden; }
  .bh--otona .bh-photo::before { content: ""; position: absolute; inset: -40px; background: url("../assets/v-otona.webp") 50% 50% / cover no-repeat; filter: blur(24px) brightness(.5); }
  .bh--otona .bh-photo img { position: relative; object-fit: contain; object-position: 50% 50%; }
}

/* 3:2 より縦長の画面：横長の写真を切らずに置き、まわりは同じ写真をぼかして敷く（2026-10-17 J-4。前は黒いレース）。
   写真はヘッダーの下から画面の下までの間の真ん中に収める（写真の上に文字は置かない。2026-10-15） */
@media (max-aspect-ratio: 3/2) {
  .bh--otona .bh-photo { overflow: hidden; }
  .bh--otona .bh-photo::before { content: ""; position: absolute; inset: -40px; background: url("../assets/v-otona.webp") 50% 50% / cover no-repeat; filter: blur(24px) brightness(.5); }
  .bh--otona .bh-photo picture { position: absolute; top: 76px; bottom: 24px; left: 0; right: 0; }
  .bh--otona .bh-photo img { object-fit: contain; object-position: 50% 50%; }
  /* 写真の上下の縁を暗がりへ溶かす（四角を貼った見え方にしない）。溶かすのは上下 9% ずつで、人物と焼き込みのロゴは消さない */
  .bh--otona .bh-photo picture { display: grid; align-items: center; }
  .bh--otona .bh-photo img { height: auto; max-height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
}
/* スマホ：写真は切らずに丸ごと、部屋の壁に掛けた1枚にする（共通の形は brand.css の .sfv。2026-10-25。
   前は女の子3人に寄せて左の縦書きのコピーと右のロゴを切っていた〔2026-10-19〕）。
   .bh-photo は画面いっぱいのまま picture を画像の箱にする（灯りが写真の帯の高さを picture の位置から測るため） */
@media (max-width: 767px) {
  .sfv.bh--otona .bh-photo { inset: 0; overflow: visible; }
  .sfv.bh--otona .bh-photo::before { content: none; }
  .sfv.bh--otona .bh-photo picture { position: absolute; display: block; inset: auto; left: var(--sfv-kl); top: var(--sfv-kt); width: var(--sfv-kw); height: var(--sfv-kh);
    overflow: hidden; box-shadow: var(--sfv-shadow); }
  .sfv.bh--otona .bh-photo img { width: 100%; height: 100%; max-height: none; margin: 0; object-fit: fill; -webkit-mask-image: none; mask-image: none; }
}

/* 灯りの位置（--x --y）と半径（--r）。JS が .bh に書き（.bh-pin はピン留めで style が書き換わるため）、暗幕とにじみが読む */
.bh--otona { --x: 46%; --y: 34%; --r: 200px; }

/* 暗幕：レースを沈めた層。中身は動かさず、灯りの所だけ穴を開ける（描き直しは穴だけで済む） */
.ol-veil {
  display: none; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(10, 6, 7, .88);
  -webkit-mask-image: radial-gradient(circle at var(--x) var(--y), transparent 0, transparent calc(var(--r) * .38), #000 var(--r));
  mask-image: radial-gradient(circle at var(--x) var(--y), transparent 0, transparent calc(var(--r) * .38), #000 var(--r));
  will-change: opacity;
}
/* 灯りのにじみ：穴のふちから外へ、金色がわずかにこぼれる（中心の肌色には乗せない） */
.ol-glow {
  display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--x) var(--y), rgba(138, 106, 54, 0) calc(var(--r) * .5), rgba(138, 106, 54, .2) calc(var(--r) * .92), rgba(138, 106, 54, 0) calc(var(--r) * 1.7));
  will-change: opacity;
}
.ol-veil img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; opacity: .6; mix-blend-mode: screen; filter: contrast(1.15); }
@media (max-aspect-ratio: 3/2) {
  .ol-veil img { object-position: 50% 20%; opacity: .66; }
}

/* 動きがあるときだけ暗幕を出す（JS より先に CSS で閉じておき、写真が一瞬全部見えるのを防ぐ） */
@media (prefers-reduced-motion: no-preference) {
  .js .bh--otona:not(.ol-off) .ol-veil,
  .js .bh--otona:not(.ol-off) .ol-glow { display: block; }
}

/* ================= 2つ目の区画の文章（コンセプト） ================= */
.concept-text b { color: var(--brand-title); font-weight: 700; }

/* ================= 締め：灯りが消え、最後の灯りの輪の中に締めの1枚が浮かぶ（共通の形は brand.css の .bfin） ================= */
/* レースの素材の上にある灯りを、見出しの上に落とす */
.bfin--otona { --logo-h: 107px; --x: 50%; --y: 70%; --rx: 2000px; --ry: 2000px; }   /* ロゴは横長（約3:1） */
.bfin--otona .bfin-bg img { object-position: 50% 6%; filter: brightness(.72); }
.bfin--otona .bfin-title { color: var(--brand-title); }
/* 暗がり：灯りの所だけ穴を開ける（最初の画面と同じ作り） */
.bfin-veil { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; will-change: opacity; background: rgba(7, 5, 6, .93);
  -webkit-mask-image: radial-gradient(var(--rx) var(--ry) at var(--x) var(--y), transparent 0, transparent 60%, #000 100%);
  mask-image: radial-gradient(var(--rx) var(--ry) at var(--x) var(--y), transparent 0, transparent 60%, #000 100%); }
.bfin--otona.is-anim .bfin-veil { display: block; }
.bfin--otona .bfin-cta { z-index: 1; margin-top: 56px; }
.bfin--otona .bfin-more { margin-top: 36px; }
/* 締めの1枚：灯りの輪の中。金の線のロゴ・生成りの明朝 */
.bfin--otona .bfin-c-line { font-family: var(--f-mincho); color: var(--brand-title); text-shadow: 0 2px 16px rgba(7, 5, 6, .6); }
/* LINE：細身。外側に金の細い額。反転は、触れた所から灯りが広がるように */
.bfin-btn--otona { min-height: 58px; padding: 0 44px; border-radius: 2px; font-size: 15px; font-weight: 700; letter-spacing: .2em;
  outline: 1px solid rgba(201, 163, 96, .8); outline-offset: 5px;
  --h-bg: #efe3c8; --h-fg: #035e2a; --h-bd: #efe3c8; --mx: 50%; --my: 50%;
  --wipe: .75s cubic-bezier(.45, .05, .2, 1); }
/* 広がりの中心が途中で動かないよう、乗せた瞬間に中心を置いてから JS が .is-lit を付ける（:hover では開かない） */
.btn.bfin-btn--otona .btn-fill, .btn.bfin-btn--otona:hover .btn-fill { border-radius: 2px; clip-path: circle(0 at var(--mx) var(--my)); }
.btn.bfin-btn--otona.is-lit .btn-fill, .btn.bfin-btn--otona:focus-visible .btn-fill { clip-path: circle(150% at var(--mx) var(--my)); }
.btn.bfin-btn--otona.is-lit { border-color: var(--h-bd); }

/* ================= 動きを減らす設定 ================= */
@media (prefers-reduced-motion: reduce) {
  .ol-veil, .ol-glow, .bfin-veil { display: none !important; }
}

/* ================= 新着キャストの背景：黒いビロードとレースに金の刺繍（2026-09-30） =================
   暗い画像の欄（.cast--dark）。刺繍の金が写真の邪魔をしない程度に、夜の覆いを薄くかける */
.page-brand .cast--dark { --cb-base: #0d0a0b; --cb-img: url("../assets/newcast/otona-1600.webp"); --cb-veil: rgba(13, 10, 11, .3); }
@media (max-width: 767px) { .page-brand .cast--dark { --cb-img: url("../assets/newcast/otona-800.webp"); } }

/* ================= 2つ目の区画：夜景のバー、金と黒。額の上の真鍮の灯りが点き、光が上から下へ額を照らしていく（共通の形は brand.css の .bs） ================= */
.bs--otona { --bs-base: #0a0607; --bs-sf: brightness(.5); --bs-scrim: rgba(10, 6, 7, .66); --bs-psh: rgba(0, 0, 0, .6); --bs-ph: 68%; --bs-pr: -13%; --bs-pd: 1.9s; }
.bs--otona .bs-frame { box-shadow: 0 0 0 1px rgba(239, 227, 200, .6), 0 0 0 7px #0b0708, 0 0 0 8px rgba(239, 227, 200, .3), 0 40px 80px rgba(0, 0, 0, .6); }
.bs-lamp { position: absolute; z-index: 3; left: 34%; right: 34%; top: -34px; height: 12px; border-radius: 6px; background: linear-gradient(180deg, #e9d29a, #a4813f 60%, #6d5424); box-shadow: 0 6px 10px rgba(0, 0, 0, .5); }
.bs-lamp::before { content: ""; position: absolute; left: calc(50% - 2px); top: 12px; width: 4px; height: 22px; background: #7d6230; }
.bs-wash { position: absolute; z-index: 3; left: 0; right: 0; top: -22px; height: 78%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease .3s;
  background: linear-gradient(180deg, rgba(255, 222, 160, .34), rgba(255, 222, 160, .1) 45%, transparent 85%); clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%); mix-blend-mode: screen; }
.bs.is-on .bs-wash { opacity: .6; }
.bs-dim { position: absolute; inset: 0; z-index: 2; background: #060304; opacity: .92; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0 33.3%, #000 66.6%); mask-image: linear-gradient(180deg, transparent 0 33.3%, #000 66.6%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%; mask-position: 0 100%; transition: -webkit-mask-position 2.2s cubic-bezier(.45, 0, .2, 1) .5s, mask-position 2.2s cubic-bezier(.45, 0, .2, 1) .5s; }
.bs.is-on .bs-dim { -webkit-mask-position: 0 0; mask-position: 0 0; }
