@charset "UTF-8";

/* ============================================================
   CUSTOM.CSS — イベントカラー変数（企画ごとに書き換え）
   base.css のデフォルト値をここで上書きするだけ。
   base.css 自体は触らない。

   WORKFLOW:
     1. :root の色変数を企画カラーに変更する
     2. 背景やフォントのカスタマイズはコメントアウトを外して追記
     3. 共通コンポーネントの変更は base.css へ
   ============================================================ */


/* ============================================================
   BRAND COLORS — 企画ごとに変更する
   ============================================================ */
:root {
    --color-main:   #ffffff;   /* ページ背景色（実際の背景は下の BANDORI OUR NOTES 節で main::before に描く） */
    --color-sub1:   #211f41;   /* LP --deep */
    --color-sub2:   #ac8ba1;   /* LP --mauve */
    --color-sub3:   #4454b7;   /* 青グラデ始点 */
    --color-sub4:   #aa22ee;   /* millsage */
    --color-sub5:   #ffaa33;   /* 一家Dumb Rock! */
    --color-local:  #f1d511;
    --color-text:   #26263a;   /* LP --text */
    --color-button: #4454b7;
    --font-family:  'Noto Sans JP', YakuHanJP, sans-serif;
    --font-family-deco: 'Zen Kaku Gothic New', serif;   /* 装飾（見出し） */
}


/* ============================================================
   FORM ELEMENT FONT RESET — 削除しないこと（恒久対応 2026-09-13）

   ★ <button> / <input> / <select> / <textarea> は **UA スタイルシートが
     font-family: Arial を当てており、body からフォントを継承しない**。
     :root の --font-family や body に企画フォントを入れても
     **ボタンの文字だけ Arial のまま**になる。

   ★ coding（デザイン支給の custom.css）が
       .iconButton .iconButtonText { font-family: ...; }
     を持っていることが多いのは **この対策**。移植時に「body に指定があるから冗長」
     と judging して落とすと必ず再発する（2026-09 precure2026 で発生）。

   ★ **ヘッドレス Chrome では再現しない**（UA スタイルシートが実機と違い button が
     継承してしまう）。ローカル描画の計測だけで「効いている」と判断しないこと。
     実機の DevTools で
       getComputedStyle(document.querySelector('.iconButtonText')).fontFamily
     が **Arial 単体**なら UA スタイルシートが勝っている。

   base.css は共通ファイルなので触らず、ここ（custom.css）で当てる。
   ============================================================ */
button,
input,
select,
textarea {
    font-family: inherit;
}

/* 念のためボタン文字にも明示（別の UA・将来の base.css 変更でも確実に効かせる） */
.iconButton .iconButtonText,
.loginRgisterButton .iconButtonText,
.narrowIconButton .narrowIconButtonText,
.rectangleButton .rectangleButtonText,
.toOshitabiTop,
.simpleButton,
.whiteButton,
.oshitabiButton {
    font-family: var(--font-family);
}


/* ============================================================
   SECTION HEADING — テキストセクションタイトル
   ============================================================ */
.section-heading {
    width: 100%;
    text-align: center;
    padding: 0.22rem 0.20rem 0.18rem;
    background: linear-gradient(135deg, var(--color-sub1) 0%, var(--color-sub2) 100%);
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.60rem;
    height: 0.05rem;
    background: var(--color-local);
    border-radius: 0.025rem;
}

.section-heading-text {
    color: #fff;
    font-size: 0.22rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
    font-family: var(--font-family);
    text-shadow: 0 0.01rem 0.03rem rgba(0, 0, 0, 0.2);
}


/* ============================================================
   SHINKANSEN HEADER — 画像ヘッダーが用意できない時の
   「新幹線コンテンツ用」バナーヘッダー（横向き新幹線 /img/shinkansen.png）
   （ultraman60th_s で採用。声グラ /seigura の .charaIcon.shinkansen を踏襲）

   使い方（section-heading の代わりにこれを置く）:
     <div class="lead-heading">
         東海道新幹線車内コンテンツ
         <div class="charaIcon shinkansen"><img src="/img/shinkansen.png" alt="東海道新幹線"></div>
     </div>

   ・帯グラデは sub1→sub2（テーマ非依存で白文字が読める暗さ）。企画色を効かせたい
     場合のみ background を上書きする。
   ・新幹線は実寸(1080px=10.8rem)で帯を突き抜け、overflow:hidden で帯内クリップ
     → 疾走感を出しつつはみ出しは自己完結（content-holder 側の overflow に依存しない）。
   ============================================================ */
.lead-heading {
    position: relative;                 /* 子（新幹線）の基準 + はみ出しの自己完結 */
    overflow: hidden;                   /* 帯からはみ出す新幹線を帯内でクリップ */
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--color-sub1) 0%, var(--color-sub2) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.22rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
    font-family: var(--font-family);
    padding: 0.14rem 0.14rem 0.10rem;
    border-radius: 0;
    text-shadow: 0 0.01rem 0.03rem rgba(0, 0, 0, 0.35);
}

.lead-heading .charaIcon.shinkansen {
    text-align: center;
    margin: 0.04rem auto 0;
    /* ずらしたい時のみ position: relative; + top/left。無しでは top/left は無効 */
}

.lead-heading .charaIcon.shinkansen img {
    width: 10.8rem;                     /* = 実寸 1080px。見た目維持しつつ PNG 差し替え時の寸法ズレを防ぐ */
    height: auto;
    filter: drop-shadow(0 0.04rem 0.10rem rgba(11, 20, 60, 0.35));
}


/* ============================================================
   BACKGROUND (任意)
   企画の背景色・パターンが必要な場合にコメントアウトを外す
   ============================================================ */
/* body { background-color: #f0e8ff; } */


/* ============================================================
   CONFIRM MODAL on EXCHANGE PAGES — 削除しないこと（恒久対応 2026-09-24）

   引換ページ（certificate/single.php・stamprally/exchange/completed.php）の
   確認モーダル（askPromptModal）を、**そのページのスライダー色**に揃える。

   ★ なぜ要るか
     base.css は モーダルの枠・タイトル帯・「はい」「いいえ」を
     すべて var(--color-button) 固定で塗る。一方 certificate.css は
       #yesBtn { background-color: var(--cert-btn1) !important; }
     で **「はい」の地色だけ** を上書きしている。
     そのため、引換スライダーの色（--cert-btn1）を --color-button 以外にした企画では
     「はい」だけスライダー色・枠とタイトル帯と「いいえ」はボタン色、という
     ちぐはぐな見た目になる（2026-09 yurucamp2026 で発生）。

   ★ 色をベタ書きしないこと
     --cert-btn1 は各引換ページの inline <style> が設定する値。変数で受けておけば
     「車内=オレンジ / 現地=ティール」のように**ページごとに違う配色**でも自動で揃う。
     ベタ書きすると必ずどちらか一方がズレる。

   ★ .exchangePage（body クラス）で囲っているので、
     stamprally/top.php のリセット確認モーダル等、--cert-* を持たないページには効かない
     （そちらは従来どおり --color-button）。
   ★ base.css / certificate.css は共有ファイルなので触らない。ここで上書きする。
   ★ var(--cert-btn1, var(--color-button)) とフォールバックを付けている。
     .exchangePage を名乗りながら --cert-* を出さないページを作っても、
     枠・タイトル帯が消えず従来どおりのボタン色に落ちる。
   ============================================================ */
.exchangePage .askPromptModal__content {
    border-color: var(--cert-btn1, var(--color-button));
}

.exchangePage .askPromptModal__title {
    background: var(--cert-btn1, var(--color-button));
}

.exchangePage .askPromptModal__yes {
    background: var(--cert-btn1, var(--color-button));
    border-color: var(--cert-btn1, var(--color-button));
}

.exchangePage .askPromptModal__no {
    color: var(--cert-btn1, var(--color-button));
    border-color: var(--cert-btn1, var(--color-button));
}

/* 「はい」の地色は certificate.css が
     #yesBtn { background-color: var(--cert-btn1) !important; }
   で握っている。--cert-btn1 が未定義のページだとこの宣言が
   「計算値の時点で無効」になり、!important のまま transparent に落ちて
   **ボタンが真っ白で消える**。共有ファイルは直せないので、
   ID + クラスで特異度を上げて同じフォールバック付きの値で確定させる。 */
.exchangePage #yesBtn {
    background-color: var(--cert-btn1, var(--color-button)) !important;
}


/* ============================================================
   ALERT MODAL タイトル帯の角 — 削除しないこと（恒久対応 2026-09-25）

   ★ base.css の #alertModal .modal-content は「角丸 0.12rem ＋ 枠線 0.01rem」、
     タイトル帯 #alertTitle は border-radius: 0.12rem 0.12rem 0 0。
     この組み合わせだと **左上・右上の角に白い細い線（隙間）** が出る
     （2026-09 overthesun-obatabi02 で指摘）。
       1) 枠線の内側の角丸は 0.12 − 0.01 = 0.11rem なのに帯は 0.12rem で丸まる
       2) 背景の白が枠線の下まで塗られ、角のアンチエイリアスで白がにじむ
     タイトル帯の角丸を 0 にするだけでは 2) が残る（実測で確認）。
   ★ 対策（3点セット・どれか欠けると線が残る）:
       a) 枠線をやめて box-shadow の外周1本で同じ枠を描く（内側に継ぎ目ができない）
       b) タイトル帯は角丸なし＝外枠の overflow: hidden で角を切る
       c) 外枠の背景の「上端 0.30rem だけ」を帯と同じ色にする。角のアンチエイリアスは
          下地の白と帯の色が混ざって白っぽい線になるので、角の下地を帯色にしておく
          （0.30rem は帯の高さ（約0.42rem）より低いので、帯の下に白が見えることはない）
   ★ 色は var(--color-tokai)。企画色にする場合は #alertModal で --color-tokai を差し替える
     （base.css / 共有 style_v2.css は触らない）。
   ============================================================ */
#alertModal .modal-content {
    border: 0;
    box-shadow: 0 0 0 0.01rem var(--color-tokai), 0 0.08rem 0.24rem rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, var(--color-tokai) 0, var(--color-tokai) 0.30rem, #ffffff 0.30rem);
}
#alertModal #alertTitle {
    border-radius: 0;
}


/* ============================================================
   CONTENT-HOLDER — 共通 CSS の影を消す（削除しないこと）

   ★ グローバルの /css/style_v2.css（module/components_v2.0/header/
     htmlHeader.inc.php が全ページで読み込む）が
       .content-holder { box-shadow: 0 0 0.03rem #ccc; }
     を当てている。白カード前提の古い指定で、暗色・画像背景のデザインでは
     **各セクションの一番上に薄いグレーの線が浮いて見える**。
   ★ base.css にも企画の custom.css にも書いていないため grep で見つからず、
     原因特定に時間がかかる（計算済みスタイルを見ないと分からない）。
     2026-09 toukenranbu-kanei2026 で実際に踏んだのでテンプレ既定で消す。
   ★ 影が欲しい企画は、下の VARIANTS のように box-shadow を上書きする。
     /css/style_v2.css と base.css は共有ファイルなので絶対に編集しない。
   ============================================================ */
.content-holder {
    box-shadow: none;
}


/* ============================================================
   PAGE-CONTENT — メインの左右に影を付ける（2026-09-28 追加・piyorin2nd と同じ値）
   ★ 本文の幅は .page-content の max-width: 4.30rem で頭打ちになる。PC・タブレットなど
     それより広い画面では、左右の余白と本文の境目が見えず、背景に溶けて平板に見える。
     外周に薄い影を付けて本文の面を浮かせる（piyorin2nd の .event-content--top と同じ指定）。
   ★ スマホ幅（本文が画面いっぱい）では影は画面外に出るので見た目は変わらない。
   ★ 影が要らない企画・別の影にしたい企画は、この値を企画の custom.css で上書きする
     （none にするか値を差し替える）。base.css は共有なので触らない。
   ============================================================ */
.page-content {
    box-shadow: 0 0 0.12rem rgba(0, 0, 0, 0.25);
}


/* ============================================================
   CONTENT-HOLDER BORDER VARIANTS (任意)
   イベントカラーの枠 + 影をつける場合
   ============================================================ */
/* .content-holder {
    border: 3px solid var(--color-sub1);
    box-shadow: 0.04rem 0.04rem 0 var(--color-sub1);
} */


button.loginRgisterButton {
    border: 0;
    font-family: inherit;
    font-size: inherit;
    /* ★ color は指定しない（.white-text より詳細度が高く、白文字を打ち消してしまう） */
}

.loginRgisterButton.noIcon {
    padding: 0.15rem 0.05rem;   /* アイコン無しなので上下は控えめに（max-height 0.55rem で頭打ち） */
}

.loginRgisterButton.noIcon .iconButtonText {
    margin-left: 0;
    margin-right: 0;            /* アイコン分の右マージンを消して中央に置く */
}


/* ============================================================
   DISABLED — 触れないことを視覚的に明確にする
   企画ごとの button-bg / グラデを上書きするため !important で最優先化。
   base.css の .iconButton[disabled] と同じ gray グラデを採用。
   ============================================================ */
.iconButton[disabled],
.iconButton.disabled,
.iconButton:disabled,
.iconButton[disabled].button-bg,
.iconButton.disabled.button-bg,
.iconButton:disabled.button-bg {
    background: linear-gradient(to right, gray, darkgray) !important;
    color: #fff !important;
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0.7;
}
/* disabled の内側白枠も無効化（押せそうに見えないよう） */
.iconButton[disabled]::before,
.iconButton.disabled::before,
.iconButton:disabled::before {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* ------------------------------------------------------------
   非活性アイコンを濃い灰色にする（任意 — 白系ボタンの企画のみ）

   上のデフォルトは「暗い灰グラデの地 ＋ 白のアイコン/文字」なので、
   アイコンは白のままでよい。
   LP トンマナに合わせて disabled の地を白〜薄灰に上書きした企画では、
   白アイコンが地に溶けて消えるため、下のブロックのコメントを外す。

   アイコンは <img> の外部 SVG なので fill / color では色を変えられない。
   grayscale(1) を掛けると、企画のメインカラーが輝度どおりの灰色に落ちる
   （例: #8a579a → #676767）ので、これで「濃い灰色」を作る。
   ------------------------------------------------------------ */
/* .iconButton[disabled] .icon img,
.iconButton[disabled] .icon2nd img,
.iconButton.disabled .icon img,
.iconButton.disabled .icon2nd img,
.iconButton:disabled .icon img,
.iconButton:disabled .icon2nd img {
    filter: grayscale(1);
} */


/* ============================================================
   STAMP / AR GRID (任意)
   ARフレーム数が異なる場合に列数を変更する
   ============================================================ */
/* .icon-grid-4 { grid-template-columns: repeat(3, 1fr); } */


/* ============================================================
   FONT OVERRIDE (任意)
   企画カスタムフォントが必要な場合 — info.inc.php の Google Font
   リンクと合わせて設定する
   ============================================================ */
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP&display=swap'); */
/* main { font-family: "Noto Serif JP", sans-serif; } */
/* .fontEvent { font-family: "Noto Serif JP", sans-serif !important; } */


/* ============================================================
   SECTION HEAD OVERLAP (任意)
   セクションタイトルを content-holder に被せるレイアウト
   ============================================================ */
/* .section-head-overlap {
    position: relative;
    z-index: 1;
    margin-bottom: -0.40rem;
}
.section-head-overlap + .content-holder {
    padding-top: 0.30rem;
} */


/* ============================================================
   FONT UTILITY OVERRIDE — base.css のバグ修正 + caution の強制統一
   base.css 末尾 (line 1106) で .fontNotoSans が var(--font-family) で
   上書きされており、Noto Sans JP に切り替わらない。custom.css は base.css
   の後で読み込まれるためここで実フォント名を強制する。
   caution 系は class 指定有無に関わらず常に Noto Sans JP で固定する
   (本文の event フォントと視覚的に分離するため)。
   ============================================================ */
.fontNotoSans,
.fontNotoSans *,
.caution,
.caution *,
ul.caution,
ul.caution li,
ul.caution li a {
    font-family: "Noto Sans JP", YakuHanJP, sans-serif !important;
}

/* ============================================================
   ASK PROMPT MODAL タイトル帯の角 — 削除しないこと（2026-09-26）
   ★ base.css は外枠 .askPromptModal__content が「角丸 0.12rem ＋ 枠 0.01rem」、
     タイトル帯 .askPromptModal__title が「0.12rem 0.12rem 0 0」。
     枠線の内側の角丸は 0.12 − 0.01 ≒ 0.11rem なので、帯を 0.12rem で丸めると
     左上・右上に隙間（白い欠け）が出る。帯の角丸を内側に合わせて小さくする。
   ★ base.css は共有なので触らず、ここ（custom.css）で上書きする。
   ============================================================ */
.askPromptModal__title {
    border-radius: 0.10rem 0.10rem 0 0;
}


/* ============================================================
   BANDORI OUR NOTES — デザイン（Figma【最新】デザイン ログイン後TOP）の移植
   rem = デザイン px ÷ 100（デザイン幅 430px = .page-content 4.30rem）
   ============================================================ */

/* 背景: LP と同じ（グラデ＋斜めの五線譜）。線はマス目 px 固定 */
main::before {
    background:
        repeating-linear-gradient(-7deg,
            rgba(65, 62, 112, .10) 0 1px, transparent 1px 9px,
            rgba(65, 62, 112, .10) 9px 10px, transparent 10px 18px,
            rgba(65, 62, 112, .10) 18px 19px, transparent 19px 27px,
            rgba(65, 62, 112, .10) 27px 28px, transparent 28px 36px,
            rgba(65, 62, 112, .10) 36px 37px, transparent 37px 240px),
        radial-gradient(120% 80% at 80% 0%, rgba(172, 150, 198, .22) 0%, transparent 60%),
        radial-gradient(90% 70% at 0% 100%, rgba(117, 171, 221, .18) 0%, transparent 60%),
        linear-gradient(180deg, #f8f8fa 0%, #eef0f4 50%, #e5e9ec 100%);
}

/* 動く背景（LP と同じ動き・bg-anim.inc.php）。body.bdAnimBg のページは五線譜を main::before から外して .bdBgStaff で描く。
   ★ LP は background-position を動かしていて毎フレーム全面を描き直す＝スマホで重いので、
     transform で動かす（GPU の合成だけで済む）。横棒も transform / opacity だけ。 */
body.bdAnimBg main::before {
    background:
        radial-gradient(120% 80% at 80% 0%, rgba(172, 150, 198, .22) 0%, transparent 60%),
        radial-gradient(90% 70% at 0% 100%, rgba(117, 171, 221, .18) 0%, transparent 60%),
        linear-gradient(180deg, #f8f8fa 0%, #eef0f4 50%, #e5e9ec 100%);
}

.bdBgStaff {
    position: fixed;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 200%;
    z-index: -2;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg,
        rgba(65, 62, 112, .10) 0 1px, transparent 1px 9px,
        rgba(65, 62, 112, .10) 9px 10px, transparent 10px 18px,
        rgba(65, 62, 112, .10) 18px 19px, transparent 19px 27px,
        rgba(65, 62, 112, .10) 27px 28px, transparent 28px 36px,
        rgba(65, 62, 112, .10) 36px 37px, transparent 37px 240px);
    transform: rotate(-7deg);
    animation: bdStaffDrift 60s linear infinite;
    will-change: transform;
}

@keyframes bdStaffDrift {
    from { transform: rotate(-7deg) translateY(0); }
    to   { transform: rotate(-7deg) translateY(240px); }   /* 五線の繰り返し 240px と同じだけ動かす＝継ぎ目なし */
}

.bdBgGlitch {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bdBgGlitch__bar {
    position: absolute;
    left: -30vw;
    width: 120px;
    height: 4px;
    border-radius: 1px;
    background: currentColor;
    opacity: 0;
    animation: bdGlitchSlide 22s linear infinite;
    will-change: transform, opacity;
}

.bdBgGlitch__bar.is-thin  { height: 2px; }
.bdBgGlitch__bar.is-thick { height: 10px; }
.bdBgGlitch__bar.is-dot   { width: 6px; height: 6px; border-radius: 50%; }

@keyframes bdGlitchSlide {
    0%   { transform: translateX(0); opacity: 0; }
    5%   { opacity: var(--o, .22); }
    48%  { transform: translateX(70vw); }
    50%  { transform: translateX(72vw) scaleX(.6); }
    52%  { transform: translateX(74vw); }
    95%  { opacity: var(--o, .22); }
    100% { transform: translateX(160vw); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bdBgStaff,
    .bdBgGlitch__bar {
        animation: none;
    }
}

/* ---- カード（各セクションの白い角丸） ---- */
.bdCards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.50rem;
    padding: 0.20rem 0;
}

.bdCard {
    width: 4.10rem;
    box-sizing: border-box;
    padding: 0.20rem 0.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.20rem;
    background: #fff;
    border-radius: 0.10rem;
    box-shadow: 0 0.05rem 0.025rem rgba(0, 0, 0, 0.25);
    color: #000;
}

.bdCard.p-intro {
    gap: 0.15rem;
}

.bdCard h2,
.bdCard h3,
.bdCard p {
    margin: 0;
}

.page-content .bdCard img {
    max-width: none;
}

/* ---- 見出し（01. / 02. / 03. の帯画像。カードの上にはみ出す） ---- */
.bdHead {
    position: relative;
    width: 3.80rem;
    height: 0.50rem;
}

.bdHead img {
    position: absolute;
    left: 50%;
    top: -0.41rem;
    width: 4.08rem;
    height: 0.95rem;
    object-fit: cover;
    transform: translateX(calc(-50% + 0.06rem));
}

.bdLead {
    margin: 0 -0.15rem !important;
    font-weight: 700;
    font-size: 0.17rem;
    line-height: 0.25rem;
    letter-spacing: 0.0085rem;
    color: #091731;
    text-align: center;
}

/* ---- 注意書き ---- */
.bdCard ul.caution.bdCaution {
    width: 100%;
    margin: 0;
    font-size: 0.12rem;
    line-height: 0.20rem;
    letter-spacing: 0.006rem;
    color: #000;
}

.bdCard ul.caution.bdCaution li a {
    color: #0d00ff;
}

/* ---- ログイン導線・キャンペーンサイト一覧 ---- */
.bdAuth {
    display: flex;
    flex-direction: column;
    gap: 0.10rem;
    width: 100%;
}

.bdCard .loginRgisterButton {
    width: 100%;
    max-width: none;
    height: 0.60rem;
    max-height: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    border-radius: 0.10rem;
    background: linear-gradient(to right, #4659b8, #60afcb);
    box-shadow: none;
}

.bdCard .loginRgisterButton .icon {
    width: 0.90rem;
    margin: 0;
}

.bdCard .loginRgisterButton .icon img {
    height: 0.20rem;
}

.bdCard .loginRgisterButton .iconButtonText {
    flex: none;
    width: 2.50rem;
    margin: 0;
    font-size: 0.20rem;
    font-weight: 700;
    color: #fff;
}

.bdCard .toOshitabiTop {
    width: 100%;
    max-width: none;
    height: 0.80rem;
    margin: 0;
    padding: 0.11rem 0.30rem;
    border: 0.02rem solid #5fadca;
    border-radius: 0.10rem;
    font-size: 0.20rem;
    font-weight: 700;
    line-height: 0.27rem;
    letter-spacing: 0.01rem;
    color: #000;
}

/* ---- ボタン（.iconButton をデザインの形に。左アイコン・中央文字・右の丸矢印） ---- */
.bdCard .iconButton.bdBtn {
    display: block;
    position: relative;
    width: 3.80rem;
    max-width: none;
    height: 0.80rem;
    margin: 0;
    padding: 0;
    border-radius: 0.10rem;
    box-shadow: none;
    color: #fff;
}

.bdCard .iconButton.bdBtn::before {
    display: none;
}

.bdCard .iconButton.bdBtn .icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.76rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdCard .iconButton.bdBtn .icon img {
    width: 0.22rem;
    height: 0.22rem;
}

/* 新幹線アイコン（デザイン: 42×40・左端から 32px） */
.bdCard .iconButton.bdBtn .icon img[src$="N700S.png"] {
    width: 0.42rem;
    height: 0.40rem;
    margin-left: 0.30rem;
}

.bdCard .iconButton.bdBtn .iconButtonText {
    position: absolute;
    left: 20%;
    right: 20%;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.20rem;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    text-align: center;
}

.bdCard .iconButton.bdBtn.is-small .iconButtonText {
    font-size: 0.18rem;
}

.bdCard .iconButton.bdBtn .icon2nd {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0.80rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdCard .iconButton.bdBtn .icon2nd img {
    width: 0.26rem;
    height: 0.26rem;
}

.bdCard .iconButton.bdBtn.is-up {
    background: linear-gradient(to right, #6d1fb3, #a522e9);
}

.bdCard .iconButton.bdBtn.is-down {
    background: linear-gradient(to right, #e37e20, #fda731);
}

.bdCard .iconButton.bdBtn.is-blue {
    background: linear-gradient(to right, #4659b8, #60afcb);
}

/* 非活性: 形は活性と同じ・色だけデザインのグレー（opacity は落とさない） */
.bdCard .iconButton.bdBtn[disabled],
.bdCard .iconButton.bdBtn.disabled,
.bdCard .iconButton.bdBtn:disabled {
    background: linear-gradient(to right, #818181, #b2b2b2) !important;
    opacity: 1;
}

.bdBtnBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.10rem;
    width: 100%;
}

.bdBand {
    font-weight: 700;
    font-size: 0.15rem;
    line-height: 0.20rem;
    letter-spacing: 0.0075rem;
    color: #091731;
}

/* ---- 出演者 ---- */
.bdCast {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bdCast__head {
    width: 3.60rem;
}

.bdCast__head img {
    display: block;
    width: 1.20rem;
    height: 0.29rem;
    object-fit: cover;
}

.bdCast__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.20rem;
    width: 3.46rem;
    margin: 0 auto;
    padding: 0.10rem 0;
}

.bdCast__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 0.91rem;
}

.bdCast__item:nth-child(1) { width: 0.98rem; }
.bdCast__item:nth-child(2),
.bdCast__item:nth-child(3) { width: 1.09rem; }

.bdCast__img {
    width: 0.80rem;
    height: 0.80rem;
    border-radius: 50%;
}

.bdCast__role {
    font-weight: 700;
    font-size: 0.08rem;
    line-height: 0.186rem;
    color: #615371;
    white-space: nowrap;
}

.bdCast__name {
    font-weight: 700;
    font-size: 0.12rem;
    line-height: 0.186rem;
    color: #091731;
    white-space: nowrap;
}

/* ---- 03. 乗車特典 ---- */
.bdGiftHead img {
    display: block;
    width: 2.70rem;
    height: 0.65rem;
    object-fit: cover;
}

.bdGiftLead {
    font-weight: 700;
    font-size: 0.15rem;
    line-height: 0.25rem;
    letter-spacing: 0.0075rem;
    color: #091731;
    text-align: center;
}

.bdGoods {
    width: 4.00rem;
    height: 4.00rem;
}

.bdNote {
    font-size: 0.12rem;
    line-height: 0.26rem;
    color: #000;
    text-align: center;
}

.bdExpire {
    margin-top: -0.05rem !important;
    font-weight: 700;
    font-size: 0.15rem;
    line-height: 0.25rem;
    color: #091731;
    text-align: center;
}

/* 特典引換場所（トップ・引換ページ共通。setting.inc.php の renderExchangeLocations） */
.bdShop {
    width: 100%;
    box-sizing: border-box;
    border: 0.01rem solid #4659b8;
    border-radius: 0.10rem;
    overflow: hidden;
    background: #fff;
    text-align: left;
}

.bdShop__head {
    height: 0.47rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #4659b8, #60aecb);
    color: #fff;
    font-weight: 900;
    font-size: 0.20rem;
    line-height: 0.25rem;
    letter-spacing: 0.01rem;
}

.bdShop__body {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.11rem 0.30rem 0;
}

.bdShop .bdShop__name {
    margin: 0;
    font-weight: 700;
    font-size: 0.20rem;
    line-height: 0.30rem;
    letter-spacing: 0.012rem;
    color: #615371;
    text-align: center;
}

.bdShop .bdShop__row {
    display: flex;
    margin: 0;
    font-weight: 700;
    font-size: 0.18rem;
    line-height: 0.27rem;
    letter-spacing: 0.0108rem;
    color: #000;
}

.bdShop__label {
    flex: none;
    color: #615371;
}

.bdShop ul.caution.bdShop__caution {
    width: auto;   /* 引換ページの .completedSlider ul.caution { width:100% } に負けて右にはみ出すのを防ぐ */
    margin: 0.11rem 0.10rem;
    font-size: 0.12rem;
    font-weight: 400;
    line-height: 0.20rem;
    color: #000;
}

.bdShop ul.caution.bdShop__caution li {
    padding: 0 0 0 1.1em;
}

/* スマホ用壁紙 3×2（未獲得は「?」のカード・獲得済みはサムネ。比率 9:19.5） */
.bdWallpaper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.20rem;
    width: 4.00rem;
}

.bdWallpaper__item {
    position: relative;
    width: 0.90rem;
    height: 1.95rem;
    overflow: hidden;
}

.bdWallpaper__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bdWallpaper__item.is-unlocked {
    cursor: pointer;
}

.bdWallpaper__q {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.08rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 0.50rem;
    line-height: 1;
    letter-spacing: 0.025rem;
    color: #fff;
    text-shadow: 0 0.04rem 0.04rem rgba(0, 0, 0, 0.25);
    pointer-events: none;
}


/* ============================================================
   引換ページ（certificate/single.php）— デザイン「新幹線乗車証明」
   ★ certificate.css は custom.css の後に読まれるので body.exchangePage を前置して上書きする
     （certificate.css 自体は書き換えない）。
   ============================================================ */
body.exchangePage .completedHeader,
body.exchangePage .time {
    background: linear-gradient(100deg, #4454b7 0%, #62b4cc 100%);
}

body.exchangePage .completedHeader .courseName {
    color: #4659b8;
    font-weight: 700;
}

body.exchangePage .completedHeader .completed {
    font-weight: 700;
}

body.exchangePage .time {
    height: auto;
    padding: 0.15rem 0.10rem;
    font-size: 0.24rem;
    font-weight: 700;
    line-height: 1.3;
}

body.exchangePage .button-gradient,
body.exchangePage .all-gradient {
    background: linear-gradient(to right, #4659b8, #60afcb);
}

.bdCertNote {
    margin: 0.10rem 0 0.15rem;
    font-size: 0.14rem;
    text-align: center;
    color: #000;
}

body.exchangePage .bdAskStaff {
    margin-bottom: 0.10rem;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.bdAskStaff__place {
    font-size: 0.20rem;
    font-weight: 700;
    letter-spacing: 0.012rem;
    color: #615371;
}

body.exchangePage .completedSlider ul.caution.bdCertCaution {
    margin: 0;
    font-size: 0.12rem;
    line-height: 0.20rem;
    letter-spacing: 0.006rem;
    font-weight: 400;
    color: #000;
}

.bdCertShop {
    margin-top: 0.25rem;
}

body.exchangePage .backButton,
.bdBackButton {
    display: block;
    width: 100%;
    max-width: 4.00rem;
    height: 0.55rem;
    margin: 0.20rem auto;
    border: 0.02rem solid #5fadca;
    border-radius: 0.10rem;
    background: #fff;
    color: #000;
    font-size: 0.20rem;
    font-weight: 700;
    letter-spacing: 0.01rem;
}


/* ============================================================
   壁紙ページ（wallpaper/lottery.php・download.php）— デザイン「壁紙プレゼント」
   ============================================================ */
.bdCards.bdWpPage {
    gap: 0.20rem;
}

.bdCard.bdWpCard {
    gap: 0.15rem;
}

.bdWpTitle {
    font-weight: 700;
    font-size: 0.22rem;
    line-height: 0.30rem;
    letter-spacing: 0.011rem;
    color: #ef6f01;
    text-align: center;
}

.page-content .bdCard img.bdWpImage {
    width: 2.60rem;
    height: 5.64rem;
    object-fit: cover;
}

.bdWpGuide {
    font-size: 0.15rem;
    line-height: 0.30rem;
    letter-spacing: 0.0075rem;
    color: #000;
    text-align: center;
}

.bdWpPage .bdBackButton {
    width: 3.94rem;
    margin: 0;
}
