/* お楽しみ動画フォト — 検証用プロトタイプのスタイル
   hs_ofp_enabled が有効なサイトでのみ読み込まれる。 */

/* このプロトタイプが足す要素は、幅指定に padding が上乗せされて
   画面幅を超え、横スクロール（左右の揺れ）を起こしやすい。
   自前の要素はまとめて border-box にしておく。 */
#ofp-develop-bar, #ofp-develop-bar *,
#ofp-shutter-bar, #ofp-shutter-bar *,
#ofp-shop-modal, #ofp-shop-modal *,
#ofp-refill, #ofp-refill *,
#ofp-hud, #ofp-hud *,
#ofp-toast,
#ofp-devbar, #ofp-devbar * {
  box-sizing: border-box;
}

/* ---------------- プレイヤー: 残回数HUD ---------------- */

#ofp-hud {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-family: "M PLUS 2", sans-serif;
  font-size: 12px;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
}

#ofp-hud .ofp-chip {
  display: flex;
  align-items: center;
  gap: 4px;
}

#ofp-hud .ofp-chip b {
  font-size: 15px;
  font-weight: 700;
  color: #ffe14d;
}

#ofp-hud .ofp-chip.is-empty b { color: #ff5470; }

/* ---------------- シャッター: フラッシュ演出 ---------------- */

#ofp-flash {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

#ofp-flash.is-firing {
  animation: ofp-flash-anim 420ms ease-out;
}

@keyframes ofp-flash-anim {
  0%   { opacity: 0; }
  8%   { opacity: 0.95; }
  100% { opacity: 0; }
}

/* ---------------- トースト ---------------- */

#ofp-toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%) translateY(10px);
  z-index: 9600;
  max-width: 88vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 20, 40, 0.92);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

#ofp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* スマホはシャッターボタンが画面下にあり、トーストと近くなる。少し上げる。 */
@media (max-width: 768px) {
  #ofp-toast {
    bottom: 180px;
  }
}

/* ---------------- 撮影一覧: ポラロイド枠 ---------------- */

/* 印画紙に見立てた枠。下だけ広いのがポラロイドの特徴。
   box-sizing を指定しないと padding のぶんカードが広がり、隣のカードと重なる。 */
.capturedlist.ofp-polaroid {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #f4f1e8;
  padding: 12px 12px 48px;
  /* 撮影一覧側が .capturedlist に border-radius:10px !important を当てているため、
     こちらも !important で上書きする（印画紙なのでほぼ角のない見た目にする）。 */
  border-radius: 2px !important;
  box-shadow: none;
}

.capturedlist.ofp-polaroid .capturedlistImage {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #0b0b18;
}

/* キャプションは画像の上ではなく、下の余白（印画紙の白帯）に置く。
   写真に重ねる前提の影（captured.css の .copyright）は、紙の上では不要なので消す。 */
.capturedlist.ofp-polaroid .copyright {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  top: auto;
  /* 印画紙の余白(padding-bottom)と同じ高さを取り、その中で上下中央に置く */
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  text-shadow: none;
}

/* ---------------- 拡大表示もポラロイドの見え方に揃える ---------------- */

#pageDetails #pageDetailsFramed {
  box-sizing: border-box;
  background: #f4f1e8;
  /* キャプションは2行ぶん(約39px)あるので、下の余白はそれより広く取る */
  padding: 12px 12px 66px;
  border-radius: 2px !important;   /* captured.css の 15px を上書き */
  box-shadow: none;
}

/* 撮影一覧側は #pageDetails:not(.vertical) … に
   height:100% !important / object-fit:contain !important を当てている。
   そのままだと写真がレターボックスになり、印画紙の左右に無駄な余白が出る。
   body クラスを足して詳細度で上回り、幅なりの高さで表示させる。 */
body.hs-ofp #pageDetails #pageDetailsFramed #pageDetailsFramedImage {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  /* 比率は JS がサムネイルと同じ値を入れる。枠に収めるため cover で埋める。 */
  object-fit: cover !important;
  border-radius: 0;
}

/* 枠の高さは中身なりにする。
   撮影一覧側は「画像ごとに表示サイズが変わらないように」と
   #pageDetailsFramed 自体へ aspect-ratio:16/9 を当てている。
   印画紙は下の余白が広いぶん枠全体の比率が変わるため、これを外さないと
   写真が余白へはみ出して下のキャプションに重なる。比率は画像側で持たせる。 */
body.hs-ofp #pageDetails #pageDetailsFramed {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  /* overflow:hidden は付けない。前後の矢印はこの枠の内側にあり、
     left/right のマイナス値で枠の外に出しているため、クリップされて消えてしまう。 */
  overflow: visible;
}

/* キャプションは写真の上ではなく、下の印画紙の余白に置く */
#pageDetails #pageDetailsFramed .copyright_detailphoto {
  left: 16px;
  right: 16px;
  bottom: 0;
  top: auto;
  height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  text-shadow: none;
}

/* お楽しみ写真などのバッジは、一覧のカードと同じ位置に置く。
   一覧は枠の端から5px（＝写真の角より7px外側）に出ているので、
   拡大側も写真の角からの距離が同じになるよう、枠の余白に合わせて逆算する。
   スマホは余白12px → 12-7=5px、PCは余白18px → 18-7=11px。 */
#pageDetails #pageDetailsFramed .top-right-container-detail {
  top: 5px !important;
  right: 5px !important;
}

/* スマホでは拡大表示も一覧のカードと同じ入れ方に揃える。
   拡大側だけ余白と文字が大きいと、同じ印画紙なのに別物に見えてしまう。
   （一覧: padding 12/12/48・キャプション left/right 14px・高さ48px・11px） */
@media (max-width: 768px) {
  body.hs-ofp #pageDetails #pageDetailsFramed {
    padding: 12px 12px 48px;
  }

  body.hs-ofp #pageDetails #pageDetailsFramed .copyright_detailphoto {
    left: 14px;
    right: 14px;
    height: 48px;
    font-size: 11px;
    line-height: 1.5;
  }
}

/* PCでは横いっぱいに広がると余白が相対的に細くなり、印画紙に見えなくなる。
   最大幅を決めて中央に置き、余白も幅に見合う太さにする。 */
@media (min-width: 769px) {
  #pageDetails #pageDetailsFramed {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px 18px 86px;
  }

  #pageDetails #pageDetailsFramed .copyright_detailphoto {
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 86px;
    font-size: 14px;
  }

  #pageDetails #pageDetailsFramed .top-right-container-detail {
    top: 11px !important;
    right: 11px !important;
  }

  /* 前後の矢印は #pageDetailsFramed の内側にあり、left/right:-10px だと
     80px幅の大半が印画紙に重なる。枠の完全に外へ出す。 */
  #pageDetails #pageDetailsFramed #prevButton {
    left: -96px !important;
  }

  #pageDetails #pageDetailsFramed #nextButton {
    right: -96px !important;
  }
}

/* ---------------- 撮影一覧: マスク & 現像演出 ---------------- */

/* 未現像: フィルムのネガのように、うっすらとだけ像が分かる状態。
   色を反転させ、コントラストと彩度を落として何が写っているかは読み取れないようにする。
   blur はそのままだと画像の外側ににじみ出て印画紙の余白に影のように落ちるため、
   clip-path で自分の枠に閉じ込める。 */
.capturedlist.ofp-undeveloped .capturedlistImage {
  clip-path: inset(0);
  filter:
    invert(1)
    sepia(0.3)
    hue-rotate(160deg)
    saturate(0.6)
    brightness(0.78)
    contrast(1.25)
    blur(2.2px);
  opacity: 0.78;
}

/* ---------------- 現像: プリンターのように上から下へ ---------------- */

/* カバーを上から順に切り落として、下に隠れている写真を出していく。 */
.ofp-cover.is-printing {
  animation: ofp-print-reveal 2600ms linear forwards;
}

@keyframes ofp-print-reveal {
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(100% 0 0 0); }
}

/* 走査線に合わせて上から出てくる、カラーの写真。
   未現像のネガの上に重ね、上端から下へ向かって見える範囲を広げる。
   カバー(25)より上・走査ヘッド(27)より下に置く。 */
.ofp-reveal {
  position: absolute;
  inset: 0;
  z-index: 26;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  /* 初期状態は完全に隠す。押した瞬間に全部見えないようにするため。
     削るのは「下」側。inset() の第1引数は上端から削る量なので、
     inset(100% 0 0 0) にすると下から生えてきて走査線と逆向きになる。 */
  clip-path: inset(0 0 100% 0);
}

/* ポラロイド枠では印画紙の余白を残し、写真面だけを覆う */
.capturedlist.ofp-polaroid .ofp-reveal {
  inset: 12px 12px 48px;
  border-radius: 0;
}

.ofp-reveal img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ofp-reveal.is-printing {
  animation: ofp-print-fill 2600ms linear forwards;
}

/* 走査線と同じく、上から下へ向かって見える範囲を広げる */
@keyframes ofp-print-fill {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* 走査ヘッドを走らせる領域。写真面に重ねる。 */
.ofp-printer {
  position: absolute;
  inset: 0;
  z-index: 27;
  overflow: hidden;
  pointer-events: none;
}

.capturedlist.ofp-polaroid .ofp-printer {
  inset: 12px 12px 48px;
}

/* 走査ヘッド。粒子そのものは canvas(.ofp-particles) が描くので、
   ここでは先端の光と、そのにじみだけを受け持つ。 */
.ofp-printer-head {
  position: absolute;
  left: 0;
  right: 0;
  height: 36%;
  animation: ofp-print-head 2600ms linear forwards;
}

/* 画像の画素から作った光の粒。走査線の手前に飛び込んでくる。 */
.ofp-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 先端まわりのにじんだ光。線を太く見せないよう、ごく薄く短く。 */
.ofp-printer-head::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -5px;
  height: 18px;
  background: radial-gradient(52% 100% at 50% 100%, rgba(186, 210, 255, 0.26), transparent 72%);
  filter: blur(4px);
}

/* 走査線そのもの。1pxの細い線として見せ、グローは最小限にとどめる。 */
.ofp-printer-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7) 12%, rgba(226, 238, 255, 0.85) 50%, rgba(255, 255, 255, 0.7) 88%, transparent);
  box-shadow:
    0 0 2px rgba(255, 255, 255, 0.5),
    0 0 7px rgba(170, 198, 255, 0.3);
  opacity: 0.82;
}

/* 帯の「下端」が走査線。カバーの剥がれ位置(0%→100%)と一致させるため、
   帯の高さ(36%)ぶん手前から始めて 64% で終える。
   （以前は 100% まで動かしていたので、線だけが表示領域より先行していた） */
@keyframes ofp-print-head {
  from { top: -36%; }
  to   { top: 64%; }
}


@media (prefers-reduced-motion: reduce) {
  .ofp-printer-head { animation: none; }
}

/* 現像中はカバーの文言を消す（走査の邪魔になるため） */
.ofp-cover.is-printing .ofp-cover-label,
.ofp-cover.is-printing .ofp-cover-sub {
  opacity: 0;
  transition: opacity 180ms ease;
}

/* 動きを控える設定では走査を出さず、すぐに表示する */
@media (prefers-reduced-motion: reduce) {
  .ofp-cover.is-printing { animation-duration: 1ms; }
  .ofp-reveal.is-printing { animation-duration: 1ms; }
  .ofp-printer { display: none; }
}

/* 未現像カードに重ねるカバー */
.ofp-cover {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  cursor: pointer;
  color: #fff;
  font-family: "M PLUS 2", sans-serif;
  text-align: center;
  /* 下のネガが透けるよう半透明にする（不透明だと像が完全に隠れてしまう） */
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, rgba(255,255,255,0) 10px 20px),
    linear-gradient(160deg, rgba(27, 28, 70, 0.40) 0%, rgba(14, 15, 52, 0.48) 100%);
  transition: opacity 700ms ease;
}

/* ポラロイド枠では印画紙の余白を残し、写真面だけを覆う */
.capturedlist.ofp-polaroid .ofp-cover {
  inset: 12px 12px 48px;
  border-radius: 0;
}

.ofp-cover .ofp-cover-label {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ofp-cover .ofp-cover-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

.ofp-cover.is-hiding {
  opacity: 0;
  pointer-events: none;
}

/* 現像中のインジケータ */
.ofp-developing-note {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 26;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  pointer-events: none;
  animation: ofp-pulse 1.4s ease-in-out infinite;
}

@keyframes ofp-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* ポラロイド枠では、印画紙の白帯にあるキャプションと重ならないよう写真面の中に置く */
.capturedlist.ofp-polaroid .ofp-developing-note {
  bottom: 58px;
}

/* ---------------- お楽しみ動画フォトの見え方 ---------------- */

/* ポラロイド枠では、印画紙の白帯に手書きキャプション風で置く */
.capturedlist.ofp-polaroid .capturedlist.ofp-polaroid /* 特別フォトのカード枠 */
.captured-item.ofp-special-item .capturedlist {
  outline: 2px solid #ff0055;
  outline-offset: -2px;
}

/* ---------------- 濃い背景では同梱の線画素材を白抜きにする ---------------- */

/* step1_bk.png / step3_frame.png は黒の線画なので、濃い背景では沈んで見えない。
   反転して白線にする。対象は同梱プリセットだけで、
   管理画面からアップロードした写真（.is-preset が付かない）は触らない。 */
body.hs-ofp.hs-dark-bg .lp-step-img.is-preset,
body.hs-ofp.hs-dark-bg .lp-step3-frame-img {
  filter: invert(1);
}


/* ---------------- LP: ステップの写真を小さめに ---------------- */

/* 既定サイズだと写真が主張しすぎるので、少し小さくして周囲に余白を取る。
   本番サイトのLPは変えないよう、プロトタイプ稼働中のサイトに限定する。 */
body.hs-ofp .lp-steps .lp-step-img {
  max-width: 66% !important;
  padding: 14px 0 6px;
}

/* スマホは1列が狭く、そこからさらに66%にすると絵が潰れる。列幅なりに出す。 */
@media (max-width: 768px) {
  body.hs-ofp .lp-steps .lp-step-img {
    max-width: 100% !important;
    padding: 10px 0 4px;
  }
}

body.hs-ofp .lp-steps .lp-step2-stack {
  max-width: 84px !important;
  margin-top: 14px !important;
  margin-bottom: 6px !important;
}

/* ステップの見出しの改行位置をPCでもスマホと同じにする。
   lp-styles.php は .lp-sp-br をスマホ限定にしているが、
   PCで自然に折り返すと語の途中で切れて読みにくいため。 */
body.hs-ofp .lp-steps .lp-sp-br {
  display: block;
}

/* PCは列幅に余裕があるので、写真を小さくしすぎない。
   列の左右 padding が 30px あり、それが実質の上限になっていたので合わせて詰める。 */
@media (min-width: 769px) {
  body.hs-ofp .lp-steps .lp-step {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.hs-ofp .lp-steps .lp-step-img {
    max-width: 100% !important;
  }

  /* 写真2枚重ねは面積が大きく見えるので、ステップ1の線画より控えめにする。 */
  body.hs-ofp .lp-steps .lp-step2-stack {
    max-width: 125px !important;
  }
}

/* ---------------- PC: LPがヘッダーに食い込むのを防ぐ ---------------- */

/* lp-styles.php はPCで .lp-wrapper に margin-top:-90px を当てている。
   これは「ロゴ画像が大きいと本文が下がりすぎる」ための調整なので、
   ロゴ画像が未設定のサイトでは詰めすぎてヘッダーと重なる。
   本番のレイアウトを変えないよう、プロトタイプ稼働中のサイトに限って打ち消す。 */
@media (min-width: 769px) {
  body.hs-ofp:not(.hs-has-logo-image) .lp-wrapper {
    margin-top: 0;
  }
}

/* ---------------- デジタル画像提供のみ: グッズ導線を隠す ---------------- */

/* 実物グッズを提供しないモードなので、スペシャルグッズの購入ボタンは出さない。
   （選択ダイアログ内のグッズ項目は JS 側で非表示にしている） */
body.hs-ofp-digital #fixedfooter {
  display: none !important;
}

/* ---------------- 撮影一覧: 隠す既存UI ---------------- */

/* お楽しみ動画フォトでは撮影データのリセットと写真の削除を出さない。
   リセット/削除ができると回数制限も現像枠も意味を失うため。
   （このCSSはモードが有効なサイトでしか読み込まれない） */
#managePhotos,
p.reset-notice {
  display: none !important;
}

/* 写真の複数選択（購入用チェックボックス）も使わない。
   1枚ずつ現像して手に入れる体験なので、まとめ選択の概念が合わない。 */
.captured-item .checkbox.capturedImages,
.captured-item label[name="CapturedImagesFrame"],
.captured-item .checkmark,
#pageDetailsFramed .checkboxDetail,
#pageDetailsFramed label[for="CapturedImagesFrameDetail"] {
  display: none !important;
}

/* デジタル画像提供のみのときは「購入した商品」タブを出さない。
   残るのが「撮影した写真」1枚だけになり、切り替え先が無いので
   タブ自体を丸ごと隠す（見出しとしては上の「あなたの写真」がある）。 */
body.hs-ofp-digital .button-links {
  display: none !important;
}

/* 開始前の「写真集／アクスタは撮影された画像から選ばれます。」。
   デジタル画像提供のみのモードでは売る現物が無いので出さない。 */
body.hs-ofp-digital #taptostart > p {
  display: none !important;
}

/* スマホでは手順を画面いっぱいに使う。
   lp-styles.php が .lp-steps と .lp-step の両方に左右の余白を入れていて、
   3列に分けると1列あたりが狭くなり、本文がひどく折り返すため。 */
@media (max-width: 768px) {
  /* 親の .wrapeer が width:90% なので、100% にしても画面端まで届かない。
     手順の帯だけ左右に食い出させて画面いっぱいに使う。 */
  body.hs-ofp .lp-steps {
    /* 端に文字が触れないぶんだけ内側に余白を取る。
       content-box のままだと 100vw + 10px になって横スクロールが出る。 */
    box-sizing: border-box;
    padding-left: 5px;
    padding-right: 5px;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* 各列にも余白を入れて、文字が区切りの点線に触れないようにする。
     lp-styles.php は最後の列だけ padding-right:0 にしているので、そこも揃える。 */
  body.hs-ofp .lp-step,
  body.hs-ofp .lp-step:last-child {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* お楽しみフォトの総数。本文より少しだけ目立たせる。 */
body.hs-ofp .lp-step-count {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

/* LPのステップから記号のアイコンを外し、番号だけにする。
   番号と絵の二重表示になっていて、意味の足しになっていないため。 */
body.hs-ofp .lp-step-icon .material-symbols-outlined {
  display: none !important;
}

/* アイコンが消えたぶん、番号だけが左に寄らないよう中央のままにする
   （gap は要素が1つになれば効かないので、余白の調整だけ行う）。 */
body.hs-ofp .lp-step-icon {
  gap: 0;
}

/* デジタル画像提供のみのときは、ヘッダーのスペシャルグッズ（買い物袋）も出さない。
   購入できるものが無いので、押しても行き止まりになる。
   リンク先は固定ページ Photobook（/captured-photobook/）。 */
body.hs-ofp-digital #header li:has(> a[href*="photobook"]) {
  display: none !important;
}

/* :has() が使えない環境向けの保険。リンク自体を消して枠だけ残さないようにする。 */
body.hs-ofp-digital #header a[href*="photobook"] {
  display: none !important;
}

/* お問い合わせの一文。_photo-header-styles.php が座布団（背景と余白）を
   付けているが、タブが無くなると見出しの直下に浮いて見えるため地の色に戻す。
   向こうが !important なので、こちらも同じ強さで上書きする。 */
body.hs-ofp .notice {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* 見出しとお問い合わせを近づける */
body.hs-ofp h3.head {
  margin-bottom: 10px !important;
}

body.hs-ofp .head {
  margin-bottom: 10px !important;
}

/* 拡大表示のアクションはダウンロードだけにする（グッズ購入と商品サンプルは出さない） */
body.hs-ofp-digital #purchase_goodsController a[onclick*="openGoodsSelection"],
body.hs-ofp-digital #purchase_goodsController a[onclick*="openGoodsSample"] {
  display: none !important;
}

/* 登録・ログインのボタン。
   テーマの動的配色が a 要素すべてに color:#fff !important を当てるため、
   副ボタン（<a>）が薄いグレー地に白文字になって読めなくなる。
   濃い背景でも見える配色に置き換える（モーダルのボタンと同じ考え方）。 */
/* 主ボタンはオレンジの塗り。影は付けない。
   既存CTAの #ff8400 は白文字とのコントラストが2.46しかないので、
   同系で少し深い #ea580c にする（白文字3.56・背景の紺4.09・入力欄の白3.56）。
   文字は19pxの太字なので、大きい文字の基準(3.0)を満たす。 */
body.hs-ofp .hs-auth-button {
  background: #ea580c !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.hs-ofp .hs-auth-button:hover {
  background: #d24d0a !important;
}

body.hs-ofp .hs-auth-button--secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: none !important;
}

body.hs-ofp .hs-auth-button--secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* 2つのボタンは対になるものなので、間隔を詰めて高さを揃える。
   <button> と <a> で行の高さの扱いが違い、そのままだと高さがずれる。 */
body.hs-ofp .hs-auth-button,
body.hs-ofp .hs-auth-button--secondary {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 58px !important;
  padding: 0 17px !important;
  line-height: 1.2 !important;
  /* 入力欄（角丸8px）と役割が違うことが形でも分かるよう、丸みを強くする */
  border-radius: 999px !important;
}

/* 入力欄の並びと送信ボタンの間は、区切りとして少し広くとる。
   逆に「登録」と「ログイン」は対になるものなので、間隔を詰めて一組に見せる。
   フォームは flex の gap:20px で並ぶので、その上に足し引きする。 */
body.hs-ofp .hs-auth-button {
  margin-top: 14px !important;   /* 20 + 14 = 34px */
}

body.hs-ofp .hs-auth-button--secondary {
  margin-top: -10px !important;  /* 20 - 10 = 10px */
}

/* PCでは見出しの語（ニックネーム等）が入力欄に対して大きいので、少し落とす。
   スマホは指で触る幅が狭く、今の大きさのほうが読みやすいので触らない。 */
@media (min-width: 769px) {
  body.hs-ofp .hs-auth-label {
    font-size: 15px !important;
  }
}

/* 登録画面の注意書き。
   入れ物が 500px しかないため一文が収まらず「ご確認く / ださい。」と
   語の途中で折り返してしまう。PCでは一文が1行に収まる幅まで広げる。 */
@media (min-width: 769px) {
  body.hs-ofp .registration_notice {
    max-width: 620px !important;
  }
}

/* ダウンロードのご注意（白背景のボックス）。
   スマホでは画面いっぱいに近く、角も大きいので、少し内側に収めて角を小さくする。
   インラインの style で書かれているため、!important で上書きする。 */
@media (max-width: 768px) {
  body.hs-ofp #notice_download {
    /* padding が幅に上乗せされると 83% に収まらないので border-box にする */
    box-sizing: border-box !important;
    width: 83% !important;
    max-width: 83% !important;
    border-radius: 6px !important;
  }

  /* 箇条書きはスマホでは少し小さく */
  body.hs-ofp #notice_download ul {
    font-size: 12px !important;
  }
}

/* 1枚も無いときの案内 */
body.hs-ofp #ofp-empty {
  padding: 56px 16px;
  font-family: "M PLUS 2", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
  opacity: 0.7;
}

/* ---------------- 撮影一覧: 残り現像枚数 ---------------- */

#ofp-develop-bar,
#ofp-shutter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  width: min(92%, 560px);
  margin: 18px auto 4px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-family: "M PLUS 2", sans-serif;
  color: #fff;
  font-size: 13px;
}

#ofp-develop-bar .ofp-dev-label,
#ofp-shutter-bar .ofp-dev-label { opacity: 0.75; }

/* サムネイルの直上に置くため、下に余白を取って詰まって見えないようにする */
#ofp-shutter-bar {
  margin-bottom: 22px;
}

/* スマホでは「シャッター回数／のこりN回／追加する」が折り返して2行になる。
   横幅と文字を詰めて1行に収める。 */
@media (max-width: 768px) {
  #ofp-shutter-bar {
    flex-wrap: nowrap;
    gap: 8px;
    width: calc(100% - 20px);
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  #ofp-shutter-bar .ofp-dev-count b {
    font-size: 18px;
  }

  #ofp-shutter-bar .ofp-dev-more {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 11px;
  }
}

#ofp-develop-bar .ofp-dev-count b,
#ofp-shutter-bar .ofp-dev-count b {
  font-size: 22px;
  font-weight: 700;
  color: #ffe14d;
  padding: 0 3px;
}

#ofp-develop-bar .ofp-dev-more,
#ofp-shutter-bar .ofp-dev-more {
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #ff0055, #ff8400);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* ---------------- 購入モーダル ---------------- */

/* ---------------- お試し体験モード ---------------- */

/* 案内だけのモーダル。お試しのモーダルと同じ見た目を使う。 */
/* 閉じるボタンの位置（自動撮影の確認だけ×を出す） */
#ofp-autoshot-modal .ofp-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#ofp-autoshot-modal .ofp-modal-panel { position: relative; }

#ofp-autoshot-modal,
#ofp-notice-modal,
#ofp-trial-modal {
  position: fixed;
  inset: 0;
  z-index: 9960;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 6, 24, 0.72);
  backdrop-filter: blur(8px);
}

/* 案内は拡大表示(#zoom は 99999)の上に出す必要がある。
   拡大中に押されることがあり、後ろに回ると何も起きないように見えてしまう。 */
#ofp-notice-modal {
  z-index: 2147483000;
}

#ofp-autoshot-modal.is-open,
#ofp-notice-modal.is-open,
#ofp-trial-modal.is-open { display: flex; }

#ofp-autoshot-modal .ofp-modal-panel,
#ofp-notice-modal .ofp-modal-panel,
#ofp-trial-modal .ofp-modal-panel {
  box-sizing: border-box;
  width: min(100%, 420px);
  padding: 26px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(165deg, #1b1d52, #12143c);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  font-family: "M PLUS 2", sans-serif;
  color: #fff;
  text-align: center;
  animation: ofp-modal-in 260ms cubic-bezier(0.2, 1, 0.4, 1);
}

#ofp-autoshot-modal .ofp-trial-title,
#ofp-notice-modal .ofp-trial-title,
#ofp-trial-modal .ofp-trial-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

#ofp-notice-modal .ofp-trial-lead b { color: #ffe14d; }

#ofp-autoshot-modal .ofp-trial-lead,
#ofp-notice-modal .ofp-trial-lead,
#ofp-trial-modal .ofp-trial-lead {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.78;
}

#ofp-trial-modal .ofp-trial-points {
  margin: 0 0 20px;
  padding: 14px 16px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 2;
  text-align: left;
}

#ofp-trial-modal .ofp-trial-points b { color: #ffe14d; }

#ofp-autoshot-modal .ofp-trial-actions,
#ofp-notice-modal .ofp-trial-actions,
#ofp-trial-modal .ofp-trial-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#ofp-autoshot-modal .ofp-trial-yes,
#ofp-notice-modal .ofp-trial-yes,
#ofp-trial-modal .ofp-trial-yes,
#ofp-trial-modal .ofp-trial-no {
  width: 100%;
  padding: 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#ofp-autoshot-modal .ofp-trial-yes,
#ofp-notice-modal .ofp-trial-yes {
  border: 0;
  background: #fff;
  color: #14163c;
}

/* 「お試しで体験する」は進めるほうの選択なので、登録ボタンと同じオレンジにする。
   白文字を載せるため、明るい #ff8400（白と2.46）ではなく
   登録ボタンと同じ #ea580c（白と3.56）にして読める側へ寄せる。 */
#ofp-trial-modal .ofp-trial-yes {
  border: 0;
  background: #ea580c;
  color: #fff;
}

#ofp-trial-modal .ofp-trial-yes:hover {
  background: #d24d0a;
}

/* 押したときの枠（ブラウザ既定のフォーカスリング）は出さない。
   開いた直後に自動で当てているだけで、選び直しの目印にはならないため。 */
#ofp-trial-modal .ofp-trial-yes:focus,
#ofp-trial-modal .ofp-trial-no:focus,
#ofp-trial-modal .ofp-trial-yes:focus-visible,
#ofp-trial-modal .ofp-trial-no:focus-visible {
  outline: none;
  box-shadow: none;
}

#ofp-trial-modal .ofp-trial-no {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
}

#ofp-trial-modal button[disabled] { opacity: 0.6; cursor: default; }

/* 撮影一覧で「お試しで撮った写真」に付ける印。
   印画紙の外ではなく写真面の右上に置くため、枠の余白ぶんを差し引く。 */
/* 拡大表示の枠にも印を置けるように、位置の基準を持たせる */
body.hs-ofp #pageDetailsFramed {
  position: relative;
}

body.hs-ofp .ofp-trial-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 28;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-family: "M PLUS 2", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* セッションカードの右上に出す「お試し可能」。
   カード内の要素は絶対配置で置かれているので、基準を確実にしておく。 */
body.hs-ofp .list-session {
  position: relative;
}

body.hs-ofp .ofp-trial-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-family: "M PLUS 2", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

@media (max-width: 768px) {
  body.hs-ofp .ofp-trial-badge {
    top: 8px;
    right: 8px;
    padding: 4px 9px;
    font-size: 10px;
  }
}

/* 拡大表示は印画紙の余白が広いので、写真面の角に合わせる */
@media (min-width: 769px) {
  body.hs-ofp #pageDetailsFramed .ofp-trial-tag {
    top: 26px;
    right: 26px;
    padding: 5px 11px;
    font-size: 11px;
  }
}

/* ---------------- 購入完了モーダル ---------------- */

#ofp-done-modal {
  position: fixed;
  inset: 0;
  z-index: 9950;   /* 購入モーダルより上に出す */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 6, 24, 0.72);
  backdrop-filter: blur(8px);
}

#ofp-done-modal.is-open { display: flex; }

#ofp-done-modal .ofp-modal-panel {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 420px);
  padding: 30px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(165deg, #1b1d52, #12143c);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  font-family: "M PLUS 2", sans-serif;
  color: #fff;
  text-align: center;
  animation: ofp-modal-in 260ms cubic-bezier(0.2, 1, 0.4, 1);
}

#ofp-done-modal .ofp-done-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #2fbf71;
  color: #fff;
  font-size: 30px;
  line-height: 54px;
  font-weight: 700;
}

#ofp-done-modal .ofp-done-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

#ofp-done-modal .ofp-done-plan {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.72;
}

#ofp-done-modal .ofp-done-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

/* 見出し・増加数・残数の3つを流し込む。
   flex + width:100% だと残数が同じ行の幅を奪い、見出しが1文字ずつ
   縦に折り返してしまうため、行と列を明示できる grid にする。 */
#ofp-done-modal .ofp-done-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

#ofp-done-modal .ofp-done-label {
  min-width: 0;
  font-size: 13px;
}

#ofp-done-modal .ofp-done-gain {
  font-size: 20px;
  font-weight: 700;
  color: #ffe14d;
  white-space: nowrap;
  text-align: right;
}

/* 残数は次の行いっぱいを使って右寄せ */
#ofp-done-modal .ofp-done-left {
  grid-column: 1 / -1;
  font-size: 11px;
  opacity: 0.62;
  text-align: right;
}

#ofp-done-modal .ofp-done-ok {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #14163c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#ofp-done-modal .ofp-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#ofp-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 6, 24, 0.72);
  backdrop-filter: blur(8px);
}

#ofp-shop-modal.is-open { display: flex; }

#ofp-shop-modal .ofp-modal-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(165deg, #1b1d52, #12143c);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  font-family: "M PLUS 2", sans-serif;
  color: #fff;
  animation: ofp-modal-in 260ms cubic-bezier(0.2, 1, 0.4, 1);
}

@keyframes ofp-modal-in {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

#ofp-shop-modal .ofp-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#ofp-shop-modal .ofp-modal-close:hover { background: rgba(255, 255, 255, 0.2); }

/* 枠切れで開いたときの案内 */
#ofp-shop-modal .ofp-shop-alert {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 92, 138, 0.5);
  border-radius: 8px;
  background: rgba(255, 0, 85, 0.12);
  color: #ffd0dd;
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  #ofp-shop-modal .ofp-modal-panel { animation: none; }
}

#ofp-develop-bar.is-empty { border-color: rgba(255, 92, 138, 0.6); }
#ofp-develop-bar.is-empty .ofp-dev-count b { color: #ff5c8a; }

/* ---------------- TOP: 現像の追加購入 ---------------- */

#ofp-shop {
  max-width: 720px;
  margin: 32px auto 8px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  font-family: "M PLUS 2", sans-serif;
  color: #fff;
}

.ofp-shop-head { text-align: center; }

.ofp-shop-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.ofp-shop-lead {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.75;
  opacity: 0.75;
}

.ofp-shop-balance {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.9;
}

.ofp-shop-balance b {
  font-size: 20px;
  font-weight: 700;
  color: #ffe14d;
  padding: 0 3px;
}

.ofp-plans {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 18px;
}

.ofp-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ofp-plan:hover { border-color: #ff5c8a; background: rgba(255, 0, 85, 0.14); }
.ofp-plan:active { transform: translateY(1px); }
.ofp-plan[disabled] { opacity: .5; cursor: default; }

.ofp-plan-name { font-size: 12px; letter-spacing: .06em; opacity: .8; }
.ofp-plan-price { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ofp-plan-shots { font-size: 12px; color: #ffe14d; }
.ofp-plan-shots small { display: block; font-size: 10px; opacity: .65; color: #fff; }

.ofp-shop-note {
  margin: 14px 0 0;
  font-size: 10px;
  letter-spacing: .04em;
  text-align: center;
  opacity: .5;
}

/* ---------------- 撮り切ったあとの導線 ---------------- */

#ofp-refill {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 9400;
  width: min(88vw, 380px);
  padding: 16px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(14, 15, 52, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  font-family: "M PLUS 2", sans-serif;
  color: #fff;
  text-align: center;
}

.ofp-refill-t { font-size: 13px; opacity: .85; }

.ofp-refill-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #ff0055, #ff8400);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ofp-refill-btn[disabled] { opacity: .55; cursor: default; }

/* ---------------- 端末が横向き（プレイヤーが強制回転）のとき ---------------- */

/* プレイヤーは #base を -90deg 回して横向き表示にする。
   body 直下のオーバーレイは回らないので、同じだけ回して向きを揃える。 */

/* 残回数HUD: 回転後の「上」＝画面の左端に寄せる */
body.ofp-rotated #ofp-hud {
  top: 50%;
  left: 34px;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* 追加ショットの案内: 中央に置いて回す */
body.ofp-rotated #ofp-refill {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(72vh, 380px);
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* トースト。
   回転中は映像としての「上」が画面の左になるので、right を広げるほど上に寄る。
   シャッターボタン（画面の右端）からも離れる。 */
body.ofp-rotated #ofp-toast {
  top: 50%;
  left: auto;
  right: 124px;
  bottom: auto;
  /* 回転中は文の長さが画面の高さ方向に伸びる。折り返さず1行で出す。
     画面の高さいっぱいまで使えるので、日本語1文なら収まる。 */
  max-width: 92vh;
  white-space: nowrap;
  transform: translate(50%, -50%) rotate(-90deg);
}

body.ofp-rotated #ofp-toast.is-visible {
  transform: translate(50%, -50%) rotate(-90deg);
}

/* 購入モーダル・当選演出は中身のパネルごと回す */
body.ofp-rotated #ofp-shop-modal .ofp-modal-panel {
  width: min(86vh, 620px);
  max-height: 84vw;
  transform: rotate(-90deg);
}

body.ofp-rotated @media (prefers-reduced-motion: no-preference) {
  body.ofp-rotated #ofp-shop-modal .ofp-modal-panel { animation: none; }
}


/* ---------------- プレイヤー: シャッター残数バッジ ---------------- */

/* 直近に撮った写真を動画の上に出す白枠のサムネイル。
   ポラロイドモードでは現像するまで中身を見せない建て付けなので出さない。
   写真一覧への導線はヘッダーのフォトマークが担う。 */
body.hs-ofp #buttonYourPhotos {
  display: none !important;
}

/* シャッターボタンは overflow:hidden（丸く切り抜くため）なので、
   そのままだと外に出したバッジがクリップされて消える。ここだけ解除する。
   ボタンの中身はCSSで描かれており、はみ出す要素は無いので影響はない。 */
body.hs-ofp #buttonCapture {
  overflow: visible !important;
}

/* スマホではシャッターボタンを少し下げる。
   フキダシをボタンの真上に置くので、上の余白を稼ぐ。 */
@media (max-width: 768px) {
  body.hs-ofp #buttonCapture:not(.horizontal) {
    top: calc(100% - 80px);
  }
}

/* 強制回転モード（横向き動画をスマホの縦持ちで見る）。
   映像は #base ごと -90deg 回るが、シャッターボタンは回らず画面の右端に置かれる。
   つまり映像としての「下」＝画面の右端なので、そちらへもう少し寄せる。
   player-ui.js が left をインラインで書くため、!important で上書きする。
   兄弟の #buttonYourPhotos に付く .modeForcedRotate を目印にして、
   本当に横持ちしているとき（回転なし）には効かないようにしている。 */
body.hs-ofp #buttonYourPhotos.modeForcedRotate ~ #buttonCapture {
  left: calc(100% - 82px) !important;
}

/* #buttonCapture の子として置くので、横向き回転時もボタンごと一緒に回る。 */
#ofp-shots {
  position: absolute;
  bottom: calc(100% + 14px);
  /* スマホはボタンの真上・左右中央 */
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 5;
  padding: 5px 11px 6px;
  border-radius: 11px;
  background: #fff;
  color: #1b1c2e;
  font-family: "M PLUS 2", sans-serif;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;   /* シャッターの当たり判定を邪魔しない */
}

#ofp-shots .ofp-shots-label {
  display: block;
  font-size: 9px;
  opacity: 0.7;
}

#ofp-shots .ofp-shots-count {
  display: block;
  margin-top: 1px;
  font-size: 10px;
}

#ofp-shots .ofp-shots-count b {
  font-size: 17px;
  font-weight: 700;
  padding-left: 3px;
  vertical-align: -1px;
}

#ofp-shots.is-empty { color: #c62742; }

/* 吹き出しの尻尾。スマホではボタンの真下を向く（PCは下の媒体クエリで左向きにする）。 */
#ofp-shots::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
  border-bottom-width: 0;
}

/* PCではボタンの右横に出す（尻尾は左向き）。
   スマホは画面が狭く右に置くと見切れるため、ボタンの真上のまま。 */
@media (min-width: 769px) {
  #ofp-shots {
    bottom: auto;
    right: auto;
    left: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%);
  }

  /* 尻尾を左向きにする。基本ルールが border-bottom-width:0 にしているので、
     ここで上下の枠幅を戻さないと三角形が崩れて下向きに見える。 */
  #ofp-shots::after {
    top: 50%;
    left: auto;
    right: 100%;
    bottom: auto;
    transform: translateY(-50%);
    border-style: solid;
    border-color: transparent;
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 0;
    border-right-width: 7px;
    border-right-color: #fff;
    border-top-color: transparent;
  }
}

/* ---------------- 検証用パネル ---------------- */

#ofp-devbar {
  white-space: nowrap;
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 9800;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #9df;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

#ofp-devbar button {
  padding: 3px 9px;
  border: 1px solid #567;
  border-radius: 5px;
  background: #1a1c30;
  color: #cfe;
  font-size: 11px;
  cursor: pointer;
}

#ofp-devbar button:hover { background: #263054; }

/* =========================================================
   TOPページ 修正指示（資料 P「トップページ 修正指示」）
   ========================================================= */

/* --- 5. シャッター残数をバー(ゲージ)形式で見せる --- */
#ofp-shutter-bar .ofp-gauge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#ofp-shutter-bar .ofp-gauge i {
  display: block;
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: background .25s ease, box-shadow .25s ease;
}
/* 埋まっている本数はゴールドで示す（当たり要素と同じ色系で統一） */
#ofp-shutter-bar .ofp-gauge i.is-on {
  background: linear-gradient(180deg, #ffe9a8, #e8b44a);
  box-shadow: 0 0 8px rgba(232, 180, 74, .55), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
#ofp-shutter-bar .ofp-gauge-extra {
  margin-left: 4px;
  font-weight: 700;
  color: #ffd97a;
}
/* 「撮り直しはできません」の一文 */
#ofp-shutter-bar .ofp-gauge-note {
  flex-basis: 100%;
  text-align: center;
  font-size: 11px;
  opacity: .6;
}
/* 残0のときはゲージを赤系にして、撮れない状態だと分かるようにする */
#ofp-shutter-bar.is-empty .ofp-gauge i { box-shadow: inset 0 0 0 1px rgba(255, 120, 120, .45); }

@media (max-width: 768px) {
  /* 注記は折り返し行に置くため、1行固定を解除する */
  #ofp-shutter-bar { flex-wrap: wrap; white-space: normal; }
  #ofp-shutter-bar .ofp-gauge i { width: 20px; height: 7px; }
  #ofp-shutter-bar .ofp-gauge-note { font-size: 10px; }
}

/* --- 6. ラインナップの一部公開（扇形に重ねたカード） --- */
.lp-lineup {
  width: min(92%, 560px);
  margin: 6px auto 26px;
  text-align: center;
  font-family: "M PLUS 2", sans-serif;
  color: #fff;
}
.lp-lineup-head {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.lp-lineup-fan {
  position: relative;
  height: 128px;
  margin: 0 auto;
  width: 100%;
  max-width: 340px;
}
.lp-lineup-card {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 84px;
  height: 104px;
  margin-left: -42px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transform-origin: 50% 120%;
}
.lp-lineup-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 扇形に広げる。中央(2枚目)だけ前面・大きめ・金枠で目立たせる。 */
.lp-lineup-card-0 { transform: rotate(-14deg) translateX(-64px); z-index: 1; }
.lp-lineup-card-2 { transform: rotate(14deg)  translateX(64px);  z-index: 1; }
.lp-lineup-card.is-center {
  transform: scale(1.12);
  z-index: 3;
  border-color: #e8b44a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .45), 0 0 14px rgba(232, 180, 74, .5);
}
/* 4枚目以降は中身を隠して「ほかにも」とだけ見せる（総数は明かさない） */
.lp-lineup-more {
  transform: rotate(26deg) translateX(116px);
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, 0.07);
  border-style: dashed;
}
.lp-lineup-note {
  margin-top: 12px;
  font-size: 12px;
  opacity: .75;
  line-height: 1.7;
}
@media (max-width: 480px) {
  .lp-lineup-fan { height: 118px; max-width: 300px; }
  .lp-lineup-card { width: 74px; height: 92px; margin-left: -37px; }
  .lp-lineup-card-0 { transform: rotate(-14deg) translateX(-54px); }
  .lp-lineup-card-2 { transform: rotate(14deg)  translateX(54px); }
  .lp-lineup-more   { transform: rotate(26deg)  translateX(98px); }
  .lp-lineup-head { font-size: 14px; }
}

/* --- 7. CTAを2段階に（メイン=ゴールド / 既存=アウトライン調） --- */
.lp-buttons .lp-btn-primary {
  background: linear-gradient(135deg, #f5c451, #e0952a) !important;
  border-color: #f0c463 !important;
  color: #241a05 !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(224, 149, 42, .38);
}
.lp-buttons .lp-btn-primary span,
.lp-buttons .lp-btn-primary div { color: #241a05 !important; }
.lp-buttons .lp-btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
  opacity: .9;
}

/* =========================================================
   撮影開始演出（資料「撮影開始演出 実装指示」）
   ========================================================= */
#ofp-intro {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: #06101f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Chakra Petch", "M PLUS 2", sans-serif;
  color: #fff;
  transition: opacity .4s ease;
}
#ofp-intro.is-out { opacity: 0; }

/* 1. フィルムの巻き上げ（縦線が一瞬横切る） */
#ofp-intro .ofp-intro-film {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0) 0 26px,
    rgba(255,255,255,.18) 26px 30px);
  animation: ofpFilm .3s linear 1;
}
@keyframes ofpFilm {
  from { transform: translateX(-30%); opacity: 1; }
  to   { transform: translateX(30%);  opacity: 0; }
}

/* 2. 「Are you ready?」 */
#ofp-intro .ofp-intro-ready {
  position: absolute;
  font-size: clamp(20px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: .06em;
  opacity: 0;
}
#ofp-intro.is-ready .ofp-intro-ready { animation: ofpReady .8s ease 1 both; }
@keyframes ofpReady {
  0%   { opacity: 0; transform: scale(.94); }
  25%  { opacity: 1; transform: scale(1); }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

/* 3. シネマ風カウントダウン（円＋十字線＋一周するライン） */
#ofp-intro .ofp-intro-count { position: absolute; width: 168px; height: 168px; opacity: 0; }
#ofp-intro.is-count .ofp-intro-count { opacity: 1; }
#ofp-intro .ofp-intro-count svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#ofp-intro .ofp-cd-ring  { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 2; }
#ofp-intro .ofp-cd-cross { stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
#ofp-intro .ofp-cd-sweep {
  fill: none; stroke: #e8b44a; stroke-width: 3;
  stroke-dasharray: 339.3; stroke-dashoffset: 339.3;
}
/* 数字が切り替わるごとにラインが円周を一周する */
#ofp-intro .ofp-intro-count.is-tick .ofp-cd-sweep { animation: ofpSweep .7s linear 1 both; }
@keyframes ofpSweep { from { stroke-dashoffset: 339.3; } to { stroke-dashoffset: 0; } }
#ofp-intro .ofp-cd-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 700;
}
#ofp-intro .ofp-intro-count.is-tick .ofp-cd-num { animation: ofpNum .7s ease 1 both; }
@keyframes ofpNum {
  0%   { transform: scale(1.35); opacity: .2; }
  25%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
/* 1のタイミングで「のこり◯枚」を小さく再掲 */
#ofp-intro .ofp-intro-left {
  position: absolute;
  bottom: 26%;
  font-size: 13px;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity .3s ease;
}
#ofp-intro .ofp-intro-left.is-in { opacity: .85; }

/* 4. フラッシュ + ピント合わせ（枠が外側から中央へ収縮） */
#ofp-intro .ofp-intro-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
#ofp-intro.is-flash .ofp-intro-flash { animation: ofpFlash .26s ease-out 1 both; }
@keyframes ofpFlash { 0% { opacity: .9; } 100% { opacity: 0; } }

#ofp-intro .ofp-intro-finder { position: absolute; inset: 0; }
#ofp-intro .ofp-intro-finder i {
  position: absolute; width: 34px; height: 34px;
  border: 2px solid rgba(255,255,255,.9);
}
#ofp-intro .ofp-intro-finder i:nth-child(1) { top: 8%;  left: 8%;  border-right: 0; border-bottom: 0; }
#ofp-intro .ofp-intro-finder i:nth-child(2) { top: 8%;  right: 8%; border-left: 0;  border-bottom: 0; }
#ofp-intro .ofp-intro-finder i:nth-child(3) { bottom: 8%; left: 8%; border-right: 0; border-top: 0; }
#ofp-intro .ofp-intro-finder i:nth-child(4) { bottom: 8%; right: 8%; border-left: 0; border-top: 0; }
#ofp-intro.is-focus .ofp-intro-finder { animation: ofpFocus .3s cubic-bezier(.2,.8,.3,1) 1 both; }
@keyframes ofpFocus {
  from { transform: scale(1);   opacity: 1; }
  to   { transform: scale(.72); opacity: 0; }
}

/* 5. 周辺UIの復帰とシャッターボタンの脈動（「ここを押す」の予告） */
#buttonCapture.ofp-pulse { animation: ofpPulse 1.6s ease-in-out infinite; }
@keyframes ofpPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(232,180,74,.55); }
  50%      { transform: scale(1.045); box-shadow: 0 0 0 12px rgba(232,180,74,0); }
}
/* ヒートゾーン中は速いテンポで脈動する */
body.ofp-hot #buttonCapture.ofp-pulse { animation-duration: .55s; }

/* =========================================================
   動画再生中の演出（資料「動画再生中の演出 実装指示」）
   ========================================================= */
#ofp-heat {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: min(88%, 520px);
  z-index: 60;
  pointer-events: none;
  font-family: "M PLUS 2", sans-serif;
  color: #fff;
  text-align: center;
}
#ofp-heat .ofp-heat-label { font-size: 11px; opacity: .8; margin-bottom: 4px; }
#ofp-heat .ofp-heat-bar {
  height: 8px;
  border-radius: 999px;
  filter: blur(2px);                 /* ぼかして「傾向」に見せる（正確な位置を示さない） */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
#ofp-heat .ofp-heat-note { font-size: 10px; opacity: .55; margin-top: 4px; }

/* ヒートゾーン中: タイムコード・視聴回数をゴールドで点滅させる */
body.ofp-hot #ofp-watch-left,
body.ofp-hot .timecode,
body.ofp-hot #timecode { animation: ofpHotBlink .6s steps(2, jump-none) infinite; }
@keyframes ofpHotBlink { 0% { color: #fff; } 100% { color: #ffd97a; } }

/* 入った瞬間だけの一瞬の拡大（0.3秒程度） */
.ofp-pop { animation: ofpPop .3s ease 1; }
@keyframes ofpPop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* 視聴回数の常時表示 */
#ofp-watch-left {
  position: fixed;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 61;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6,16,31,.62);
  border: 1px solid rgba(255,255,255,.22);
  font-family: "M PLUS 2", sans-serif;
  font-size: 12px;
  color: #fff;
  pointer-events: none;
}
#ofp-watch-left b { font-size: 14px; }
/* 消費した瞬間: 赤みを帯びて拡大するパルス */
#ofp-watch-left.is-spend { animation: ofpSpend .8s ease 1; }
@keyframes ofpSpend {
  0%   { transform: translateX(-50%) scale(1);    color: #fff; }
  35%  { transform: translateX(-50%) scale(1.28); color: #ff8f8f; }
  100% { transform: translateX(-50%) scale(1);    color: #fff; }
}

/* 終了間際の警告 */
#ofp-endsoon {
  position: fixed;
  left: 50%; top: 46px;
  transform: translateX(-50%);
  z-index: 61;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(180,30,30,.72);
  font-family: "M PLUS 2", sans-serif;
  font-size: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
#ofp-endsoon.is-in { opacity: 1; }
/* タイムコードを赤系に（ヒートゾーンと重なるときはゴールドの点滅を優先） */
body.ofp-endsoon-on:not(.ofp-hot) .timecode,
body.ofp-endsoon-on:not(.ofp-hot) #timecode { color: #ff8f8f !important; }

/* =========================================================
   動画終了時モーダル（資料「動画終了時モーダル 実装指示」）
   ========================================================= */
.ofp-endmodal .ofp-trial-lead { line-height: 1.9; }
.ofp-btn-gold {
  background: linear-gradient(135deg, #f5c451, #e0952a) !important;
  color: #241a05 !important;
  border: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(224,149,42,.38);
}
.ofp-btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  font-weight: 600 !important;
}
.ofp-btn-outline[disabled] { opacity: .45; }
.ofp-endmodal-left {
  margin-top: 8px;
  font-size: 11px;
  opacity: .7;
  text-align: center;
}

/* =========================================================
   シャッター撮影時の演出（資料「シャッター撮影時の演出 実装指示」）
   ========================================================= */
#ofp-capfx {
  position: fixed; inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
}
#ofp-capfx.is-firing { opacity: 1; }

/* アイリス: 中心に向かって黒く収束 → 閉じきってフラッシュ → 開き直す */
#ofp-capfx .ofp-capfx-iris {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 62%, rgba(0,0,0,.96) 63%);
  transform: scale(2.2);
  opacity: 0;
}
#ofp-capfx.is-firing .ofp-capfx-iris { animation: ofpIris .42s cubic-bezier(.5,0,.4,1) 1 both; }
@keyframes ofpIris {
  0%   { transform: scale(2.2); opacity: 0; }
  38%  { transform: scale(.02); opacity: 1; }
  46%  { transform: scale(.02); opacity: 1; background: #fff; }   /* 閉じきったところでフラッシュ */
  100% { transform: scale(2.2); opacity: 0; }
}

/* スピードライン: 中心から放射状に一瞬広がって消える */
#ofp-capfx .ofp-capfx-lines {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(255,255,255,.55) 0deg 1.2deg, rgba(255,255,255,0) 1.2deg 9deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 22%, #000 60%);
          mask-image: radial-gradient(circle at 50% 50%, transparent 22%, #000 60%);
  opacity: 0;
}
#ofp-capfx.is-firing .ofp-capfx-lines { animation: ofpLines .34s ease-out .12s 1 both; }
@keyframes ofpLines {
  0%   { opacity: 0;  transform: scale(.5); }
  30%  { opacity: .9; }
  100% { opacity: 0;  transform: scale(1.5); }
}

/* ビューファインダー枠が一瞬小さくなってから戻る（ピントが合う動き） */
#ofp-capfx .ofp-capfx-finder { position: absolute; inset: 0; }
#ofp-capfx .ofp-capfx-finder i {
  position: absolute; width: 30px; height: 30px;
  border: 2px solid rgba(255,255,255,.85);
}
#ofp-capfx .ofp-capfx-finder i:nth-child(1) { top: 10%;    left: 10%;  border-right: 0; border-bottom: 0; }
#ofp-capfx .ofp-capfx-finder i:nth-child(2) { top: 10%;    right: 10%; border-left: 0;  border-bottom: 0; }
#ofp-capfx .ofp-capfx-finder i:nth-child(3) { bottom: 10%; left: 10%;  border-right: 0; border-top: 0; }
#ofp-capfx .ofp-capfx-finder i:nth-child(4) { bottom: 10%; right: 10%; border-left: 0;  border-top: 0; }
#ofp-capfx.is-firing .ofp-capfx-finder { animation: ofpFinderSnap .36s cubic-bezier(.3,1.4,.4,1) 1 both; }
@keyframes ofpFinderSnap {
  0%   { transform: scale(1);   opacity: .95; }
  45%  { transform: scale(.9);  opacity: 1; }
  100% { transform: scale(1);   opacity: 0; }
}

/* 「CAPTURE.」の一言（英字タイポが鋭く一瞬） */
#ofp-capfx .ofp-capfx-word {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(22px, 7vw, 44px);
  font-weight: 700;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 0 18px rgba(0,0,0,.6);
  opacity: 0;
}
#ofp-capfx.is-firing .ofp-capfx-word { animation: ofpWord .38s ease-out .1s 1 both; }
@keyframes ofpWord {
  0%   { opacity: 0; transform: scale(1.18) skewX(-8deg); }
  30%  { opacity: 1; transform: scale(1)    skewX(0deg); }
  100% { opacity: 0; transform: scale(.98); }
}

/* ズームパンチ: 映像全体が一瞬グッと寄って戻る */
.ofp-zoompunch { animation: ofpZoomPunch .4s cubic-bezier(.3,1.3,.4,1) 1; }
@keyframes ofpZoomPunch {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ボタンの微振動（押し込まれた状態を維持したままジッター） */
#buttonCapture.ofp-jitter { animation: ofpJitter .3s steps(2, jump-none) 3; }
@keyframes ofpJitter {
  0%   { transform: scale(.94) translate(0, 0); }
  50%  { transform: scale(.94) translate(1.5px, -1px); }
  100% { transform: scale(.94) translate(-1.5px, 1px); }
}

/* 残り1回になったら、ゴールド → アイシーホワイト（0.4秒でフェード）に変えて維持 */
#buttonCapture.ofp-last {
  filter: saturate(.25) brightness(1.5);
  box-shadow: 0 0 0 2px rgba(226,244,255,.9), 0 0 22px rgba(200,232,255,.75) !important;
  transition: filter .4s ease, box-shadow .4s ease;
}

/* =========================================================
   現像完了のキラキラ（資料「現像・キラキラ演出 実装指示(最終版)」）
   ========================================================= */
.ofp-sparkle {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}
.ofp-sparkle i {
  position: absolute;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background:
    radial-gradient(circle, rgba(255,255,255,.98) 0 18%, rgba(255,255,255,0) 60%),
    conic-gradient(from 0deg, rgba(255,236,178,0) 0deg, rgba(255,236,178,.95) 90deg, rgba(255,236,178,0) 180deg);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
  transform: scale(var(--s, 1));
  animation: ofpSparkle 1.1s ease-out var(--d, 0s) 1 both;
}
/* 当たりは持続時間を長くして、複数波が降り注いで見えるようにする */
.ofp-sparkle.is-big i { animation-duration: 1.6s; }
@keyframes ofpSparkle {
  0%   { opacity: 0; transform: scale(.2)  rotate(0deg); }
  30%  { opacity: 1; transform: scale(var(--s,1)) rotate(60deg); }
  100% { opacity: 0; transform: scale(.3)  rotate(160deg) translateY(-14px); }
}

/* 当たり: 背景からの光の広がり（グロー）＋ 写真の縁取り（ゴールド） */
.ofp-special-glow {
  position: relative;
  box-shadow: 0 0 0 3px #e8b44a, 0 0 34px rgba(232,180,74,.75) !important;
  transition: box-shadow .5s ease;
}
.ofp-special-glow::after {
  content: "";
  position: absolute; inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(255,216,122,.5) 0%, rgba(255,216,122,0) 62%);
  pointer-events: none;
  z-index: 5;
  animation: ofpGlow 1.8s ease-out 1 both;
}
@keyframes ofpGlow {
  0%   { opacity: 0;   transform: scale(.7); }
  35%  { opacity: 1;   transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.15); }
}

/* =========================================================
   プラン選択モーダル（資料「プラン選択モーダル 実装指示」）
   ========================================================= */

/* 1. おすすめプランを一段目立たせる（ゴールドのバッジ＋金枠） */
.ofp-plan { position: relative; }
.ofp-plan.is-recommended {
  border-color: #e8b44a !important;
  box-shadow: 0 0 0 1px #e8b44a, 0 8px 22px rgba(232,180,74,.28);
}
.ofp-plan-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c451, #e0952a);
  color: #241a05;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(224,149,42,.4);
}

/* 3. ライト/スタンダード/プレミアムを横並びにする */
.ofp-plans {
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.ofp-plans .ofp-plan { flex: 1 1 0; min-width: 96px; margin-top: 12px; }

/* 2. 「のこり◯回」を独立したカード状の背景で区切る。
      ただし金額を冷静に判断してもらう場面なので、煽らない抑えたトーンにする。 */
.ofp-shop-balance {
  display: block;
  margin: 10px auto 4px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
  opacity: .9;
  text-align: center;
}
.ofp-shop-balance b { font-size: 15px; font-weight: 800; }

@media (max-width: 480px) {
  .ofp-plans { gap: 8px; }
  .ofp-plans .ofp-plan { min-width: 88px; }
  .ofp-plan-badge { font-size: 10px; padding: 2px 9px; }
}

/* =========================================================
   TOPページ モックアップ反映（見た瞬間の印象を変える）
   ・ラベルはゴールドのピル
   ・シャッターは「見出し＋追加する／横長ゲージ／のこりN/M回」の3段
   ・ラインナップは5枚の扇形（中央だけ実物・金枠）
   ========================================================= */

/* 見出し上のラベル（ゴールドのピル） */
.lp-editor-content h2 .lp-eyebrow {
  display: inline-block;
  padding: 3px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c451, #e0952a);
  color: #241a05 !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.7;
  box-shadow: 0 3px 12px rgba(224, 149, 42, .35);
}

/* --- シャッター残数カード（モックアップの構成に合わせる） --- */
#ofp-shutter-bar {
  display: block;                     /* 3段構成にするため flex を解除 */
  width: min(92%, 560px);
  padding: 14px 18px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  text-align: left;
}
#ofp-shutter-bar .ofp-shutter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
#ofp-shutter-bar .ofp-dev-label {
  font-size: 12px;
  opacity: .8;
  letter-spacing: .02em;
}
#ofp-shutter-bar .ofp-dev-more {
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
#ofp-shutter-bar .ofp-dev-more:hover { background: rgba(255, 255, 255, .1); }

/* ゲージは横幅いっぱいに等分（3本のうち埋まっている本数で視覚化） */
#ofp-shutter-bar .ofp-gauge { display: flex; gap: 8px; width: 100%; }
#ofp-shutter-bar .ofp-gauge i {
  flex: 1 1 0;
  width: auto;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
#ofp-shutter-bar .ofp-gauge i.is-on {
  background: linear-gradient(180deg, #f5c451, #e0952a);
  box-shadow: 0 0 10px rgba(232, 180, 74, .5);
}
/* 「のこり N/M回。撮り直しはできません。」は右寄せの小さな注記 */
#ofp-shutter-bar .ofp-gauge-note {
  margin-top: 8px;
  text-align: right;
  font-size: 11px;
  opacity: .7;
  flex-basis: auto;
}
#ofp-shutter-bar .ofp-gauge-note b { font-weight: 800; opacity: 1; }

@media (max-width: 768px) {
  #ofp-shutter-bar { width: calc(100% - 20px); padding: 12px 14px 10px; }
  #ofp-shutter-bar .ofp-gauge i { height: 9px; }
}

/* --- ラインナップ: 5枚の扇形 --- */
.lp-lineup {
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.lp-lineup-fan { height: 150px; max-width: 380px; }
.lp-lineup-card {
  width: 76px; height: 96px; margin-left: -38px;
  display: flex; align-items: center; justify-content: center;
}
/* 伏せカード（中身を見せない）は薄いプレースホルダにする */
.lp-lineup-card.is-hidden { background: rgba(255, 255, 255, .09); }
.lp-lineup-card.is-hidden .material-symbols-outlined {
  font-size: 26px;
  color: rgba(255, 255, 255, .45);
}
/* 扇形の配置（外側ほど大きく傾け、奥に置く） */
.lp-lineup-card-0 { transform: rotate(-24deg) translateX(-118px) translateY(16px); z-index: 1; }
.lp-lineup-card-1 { transform: rotate(-12deg) translateX(-62px)  translateY(4px);  z-index: 2; }
.lp-lineup-card-2 { transform: scale(1.16);                                        z-index: 4; }
.lp-lineup-card-3 { transform: rotate(12deg)  translateX(62px)   translateY(4px);  z-index: 2; }
.lp-lineup-card-4 { transform: rotate(24deg)  translateX(118px)  translateY(16px); z-index: 1; }
/* 中央の1枚だけ色・枠を変えて目立たせる */
.lp-lineup-card.is-center {
  border-color: #e8b44a;
  background: linear-gradient(160deg, #5a4620, #2c2033);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 16px rgba(232, 180, 74, .55);
}
.lp-lineup-spark {
  position: absolute;
  font-size: 22px;
  color: #ffd97a;
  text-shadow: 0 0 12px rgba(255, 217, 122, .9);
  pointer-events: none;
}
/* 実物が入っている中央カードでは、飾りの星は隠して写真を見せる */
.lp-lineup-card.is-center:not(.is-hidden) .lp-lineup-spark { display: none; }

@media (max-width: 480px) {
  .lp-lineup-fan { height: 138px; max-width: 320px; }
  .lp-lineup-card { width: 66px; height: 84px; margin-left: -33px; }
  .lp-lineup-card-0 { transform: rotate(-24deg) translateX(-100px) translateY(14px); }
  .lp-lineup-card-1 { transform: rotate(-12deg) translateX(-53px)  translateY(4px); }
  .lp-lineup-card-3 { transform: rotate(12deg)  translateX(53px)   translateY(4px); }
  .lp-lineup-card-4 { transform: rotate(24deg)  translateX(100px)  translateY(14px); }
}

/* --- CTA: メインを大きく・目立つ色に、既存は控えめに --- */
.lp-buttons .lp-btn-primary {
  border-radius: 999px !important;
  padding: 15px 24px !important;
  font-size: 16px !important;
}
.lp-buttons .lp-btn-ghost {
  border-radius: 999px !important;
  font-size: 13px !important;
  padding: 11px 20px !important;
}
