@charset "UTF-8";

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

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


/* ============================================================
   BRAND COLORS — 企画ごとに変更する
   ============================================================ */
:root {
    /* ガガガ文庫「負けヒロインが多すぎる！」特設サイトのトンマナ（シアン地・マゼンタ／イエローの差し色・
       グレーの網点見出し・パステルの三角）に寄せた配色（2026-11-23）。デザイン支給が来たら差し替える。 */
    --color-main:   #29C5F6;   /* ページ背景（シアン） */
    --color-sub1:   #E4007F;   /* メイン（マゼンタ：見出し・枠） */
    --color-sub2:   #FF4FA3;   /* サブ（ピンク：グラデーション端） */
    --color-sub3:   #29C5F6;   /* アクセント（シアン） */
    --color-sub4:   #FFE33F;   /* アクセント（イエロー） */
    --color-sub5:   #FFF4FA;   /* 薄ピンク背景 */
    --color-local:  #29C5F6;
    --color-text:   #2A2A2A;   /* テキスト */
    --color-button: #E4007F;   /* ボタン */
    --font-family:  'M PLUS Rounded 1c', YakuHanJP, sans-serif;

    --afa-cyan:     #29C5F6;
    --afa-cyan-dk:  #0FA3D6;
    --afa-pink:     #E4007F;
    --afa-yellow:   #FFE33F;
    --afa-lime:     #B6E61E;
    --afa-ink:      #2A2A2A;
    --afa-gray:     #5E5E5E;
    --afa-head:     'Dela Gothic One', 'M PLUS Rounded 1c', sans-serif;
    --afa-hand:     'Yusei Magic', 'M PLUS Rounded 1c', sans-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;
}

.badge-card {
    position: relative;
    border-radius: 0.2rem;
    padding: 0.15rem;
    background: #ffffff;
    border: 0.03rem solid transparent;
    background-clip: padding-box, border-box;
    background-origin: border-box;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(180deg, #C8A7EB 0%, #6BD6EA 100%);
}

.badge-title {
    font-family: var(--font-family);
    font-size: 0.25rem;
    font-weight: 700;
    line-height: 1.44;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0 0 0.15rem;
    color: var(--color-text);
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.12rem;
    margin: 7% auto 1%;
}

/* 1行4個。種類数が 5 / 6 の企画は width を calc(33.333% - …) などに変える */
.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.06rem;
    width: calc(25% - 0.09rem);
    box-sizing: border-box;
}

.badge-circle {
    width: 0.74rem;
    height: 0.74rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.badge-name {
    color: var(--color-text1);
    font-size: 0.14rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

/* 今回の引換券で当たった1種（引換前に何が当たるか分かるようにする） */
.badge-hit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.10rem;
    margin: 5% auto 3%;
}

.badge-hit .badge-circle {
    width: 0.90rem;
    height: 0.90rem;
}

.badge-hit__text {
    text-align: left;
}

.badge-hit__label {
    color: var(--color-text1);
    font-size: 0.14rem;
    font-weight: 700;
    line-height: 1.6;
}

.badge-hit__name {
    color: var(--color-text);
    font-size: 0.22rem;
    font-weight: 700;
    line-height: 1.4;
}


/* ============================================================
   抽選 v2: 本日参加済み（lost）の活性ボタンの2行目（「抽選結果を見る」）
   top.php の .lotteryDone。overthesun-obatabi02 と同じ見た目。
   ============================================================ */
.lotteryDone__sub {
    display: block;
    font-size: 0.12rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0.02rem;
}


/* ============================================================
   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;
}


/* ============================================================
   AFA SG26 × マケイン THEME（2026-11-23）
   ・トンマナはガガガ文庫のマケイン特設サイト: シアン地・パステルの三角・グレー網点の見出し帯・
     マゼンタ／イエローの差し色・黒の太い縁
   ・文字: 見出し Dela Gothic One／手書き風 Yusei Magic／本文 M PLUS Rounded 1c（afaFonts() で読む）
   ・ログインなしの状態（スタンプの有無・ボタンの活性）は afasg.js が .is-on / disabled / hidden で切り替える
   ============================================================ */
body.afa-body {
    background-color: var(--afa-cyan);
    background-image:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cpolygon points='30,40 58,52 34,72' fill='%23ffffff' fill-opacity='.55'/%3E%3Cpolygon points='250,30 280,24 268,52' fill='%23FFE33F' fill-opacity='.9'/%3E%3Cpolygon points='200,210 232,226 204,244' fill='%23E4007F' fill-opacity='.45'/%3E%3Cpolygon points='60,250 76,226 90,256' fill='none' stroke='%23ffffff' stroke-width='3' stroke-opacity='.7'/%3E%3Ccircle cx='150' cy='120' r='7' fill='%23B6E61E' fill-opacity='.8'/%3E%3Ccircle cx='290' cy='150' r='4' fill='%23ffffff' fill-opacity='.7'/%3E%3Ccircle cx='110' cy='300' r='5' fill='%23FFE33F' fill-opacity='.8'/%3E%3C/svg%3E"),
        radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.4px);
    background-size: 320px 320px, 10px 10px;
    color: var(--afa-ink);
}
.afa-page {
    padding-bottom: 0.40rem;
    font-family: var(--font-family);
    color: var(--afa-ink);
}
.afa-page img { display: block; max-width: 100%; }

/* ---- HERO（KV）---- */
.afa-hero { position: relative; padding: 0.12rem 0.10rem 0; }
.afa-hero__kv {
    margin: 0;
    border: 0.03rem solid var(--afa-ink);
    border-radius: 0.06rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0.06rem 0.06rem 0 var(--afa-ink);
}
.afa-hero__kv img { display: block; width: 100%; height: auto; }
.afa-hero__date {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: stretch;
    width: fit-content;
    margin: 0.16rem auto 0;
    border: 0.03rem solid var(--afa-ink);
    background: #fff;
    box-shadow: 0.04rem 0.04rem 0 var(--afa-ink);
}
.afa-hero__datelabel {
    display: flex;
    align-items: center;
    padding: 0 0.10rem;
    background: var(--afa-yellow);
    font-weight: 800;
    font-size: 0.12rem;
    border-right: 0.03rem solid var(--afa-ink);
}
.afa-hero__dateval {
    padding: 0.06rem 0.14rem;
    font-family: var(--afa-head);
    font-size: 0.20rem;
    letter-spacing: 0.04em;
}


/* ---- 誕生日 ---- */
.afa-birthday {
    display: flex;
    align-items: center;
    gap: 0.10rem;
    margin: 0.16rem 0.15rem 0;
    padding: 0.10rem 0.14rem;
    border: 0.03rem solid var(--afa-ink);
    border-radius: 0.14rem;
    background: linear-gradient(135deg, #FFF3A8, #FFD1E8);
    box-shadow: 0.04rem 0.04rem 0 var(--afa-ink);
}
.afa-birthday img { width: 0.60rem; flex: none; }
.afa-birthday__title { font-family: var(--afa-head); font-size: 0.20rem; color: var(--afa-pink); }
.afa-birthday__body { font-size: 0.13rem; font-weight: 700; }

/* ---- 共通: 節・見出し帯・カード ---- */
.afa-sec { padding: 0 0.15rem; }
.afa-heading {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 0.52rem;
    margin: 0.34rem -0.15rem 0.16rem;
    background:
        radial-gradient(#8b8b8b 1px, transparent 1.4px) 0 0 / 6px 6px,
        #d4d4d4;
}
.afa-heading span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.20rem;
    max-width: calc(100% - 1.30rem);
    padding: 0 0.14rem;
    background: var(--afa-gray);
    color: #fff;
    font-family: var(--afa-head);
    font-weight: 400;
    font-size: 0.19rem;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
}
.afa-heading::before,
.afa-heading::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.34rem;
    height: 0.30rem;
    background-repeat: no-repeat;
    background-size: contain;
}
/* 三角の位置・角度・大きさは節ごとに少しずつ変える（下の --l-* / --r-*） */
.afa-heading::before {
    left: var(--l-x, 0.18rem);
    transform: translateY(calc(-50% + var(--l-y, 0rem))) rotate(var(--l-r, 0deg)) scale(var(--l-s, 1));
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpolygon points='3,4 31,4 17,27' fill='none' stroke='%23FFE33F' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.afa-heading::after {
    right: var(--r-x, 0.18rem);
    transform: translateY(calc(-50% + var(--r-y, 0rem))) rotate(var(--r-r, 0deg)) scale(var(--r-s, 1));
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpolygon points='31,4 3,14 26,27' fill='%23ffffff'/%3E%3C/svg%3E");
}
.afa-card {
    position: relative;
    padding: 0.18rem 0.16rem;
    border: 0.03rem solid var(--afa-ink);
    border-radius: 0.16rem;
    background: #fff;
    box-shadow: 0.05rem 0.05rem 0 var(--afa-ink);
}
.afa-lead {
    margin: 0.06rem 0 0.10rem;
    font-size: 0.14rem;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
}
.afa-note {
    margin: 0.02rem 0 0.06rem;
    font-size: 0.12rem;
    color: #6b6b6b;
    text-align: center;
    line-height: 1.5;
}
.afa-closed { color: #E4002B; font-weight: 700; font-size: 0.14rem; text-align: center; margin: 0.06rem 0; }
.afa-page .iconButton { max-width: 3.60rem; }
.afa-page .iconButton .iconButtonText { font-size: 0.16rem; font-weight: 800; line-height: 1.3; }
.afa-page .iconButton.button-bg { background: linear-gradient(135deg, #E4007F, #FF4FA3); box-shadow: 0 0.04rem 0 #A3005B; }
.afa-page .iconButton[disabled],
.afa-page .iconButton.disabled { background: linear-gradient(to right, #9a9a9a, #b9b9b9); box-shadow: none; }
.afa-back { text-decoration: none; background: #fff; }

/* ---- INTRO / HOW TO ---- */
.afa-intro { padding: 0.20rem 0.15rem 0; }
.afa-intro__title {
    font-family: var(--afa-hand);
    font-size: 0.24rem;
    line-height: 1.45;
    text-align: center;
    color: var(--afa-pink);
}
.afa-intro__body { margin-top: 0.10rem; font-size: 0.14rem; font-weight: 700; line-height: 1.75; text-align: center; }
.afa-howto { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.10rem; }
.afa-howto li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.10rem;
    min-height: 0.78rem;
    padding: 0.10rem 0.70rem 0.10rem 0.12rem;
    border: 0.03rem solid var(--afa-ink);
    border-radius: 0.14rem;
    background: #fff;
    box-shadow: 0.04rem 0.04rem 0 var(--afa-ink);
}
.afa-howto__no {
    flex: none;
    width: 0.40rem;
    height: 0.40rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--afa-yellow);
    border: 0.03rem solid var(--afa-ink);
    font-family: var(--afa-head);
    font-size: 0.20rem;
}
.afa-howto__txt { font-size: 0.14rem; font-weight: 700; line-height: 1.5; }
.afa-howto li img { position: absolute; right: 0.06rem; bottom: 0.02rem; height: 0.74rem; width: auto; }

/* ---- AFA SPECIAL ---- */
.afa-afa__stamp { width: 1.70rem; margin: 0 auto 0.04rem; }
.afa-afa__stamp img { width: 100%; transition: transform 0.3s; }
.afa-afa__stamp.is-on img { transform: rotate(-6deg); }

/* ---- スタンプ台紙 ---- */
.afa-sheet {
    background:
        radial-gradient(rgba(228, 0, 127, 0.10) 1.2px, transparent 1.6px) 0 0 / 12px 12px,
        #FFFDF5;
}
.afa-sheet__progress { text-align: center; margin-bottom: 0.12rem; }
.afa-sheet__count { font-size: 0.15rem; font-weight: 700; }
.afa-sheet__count b { font-family: var(--afa-head); font-size: 0.30rem; font-weight: 400; color: var(--afa-pink); }
.afa-sheet__meter {
    height: 0.12rem;
    margin: 0.06rem 0.10rem 0;
    border: 0.02rem solid var(--afa-ink);
    border-radius: 0.08rem;
    background: #fff;
    overflow: hidden;
}
.afa-sheet__meter span {
    display: block;
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(-45deg, #E4007F 0 0.08rem, #FF4FA3 0.08rem 0.16rem);
    transition: width 0.6s ease;
}
.afa-sheet__complete {
    margin-top: 0.08rem;
    font-family: var(--afa-head);
    font-size: 0.26rem;
    color: var(--afa-pink);
    letter-spacing: 0.06em;
    text-shadow: 0.02rem 0.02rem 0 var(--afa-yellow);
}
.afa-sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.10rem 0.06rem; }
.afa-sheet__cell { display: block; text-align: center; text-decoration: none; color: var(--afa-ink); }
.afa-sheet__cell img { display: block; width: 88%; margin: 0 auto; transition: transform 0.25s; }   /* 11/25 少しだけ小さく（窮屈だったので） */
.afa-sheet__cell.is-on img { transform: rotate(-5deg) scale(1.03); }
.afa-sheet__name { display: block; margin-top: 0.02rem; font-size: 0.11rem; font-weight: 700; line-height: 1.3; }
.afa-mapbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    height: 0.46rem;
    margin: 0.16rem auto 0;
    border: 0.03rem solid var(--afa-ink);
    border-radius: 0.24rem;
    background: var(--afa-yellow);
    color: var(--afa-ink);
    font-size: 0.14rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0.04rem 0 var(--afa-ink);
}
.afa-mapbtn img { width: 0.22rem; height: 0.22rem; }

/* ---- スポットのカード ---- */
.afa-spots { display: grid; gap: 0.14rem; margin-top: 0.20rem; }
.afa-spot {
    position: relative;
    display: flex;
    min-height: 1.70rem;
    border: 0.03rem solid var(--afa-ink);
    border-radius: 0.16rem;
    background: #fff;
    box-shadow: 0.05rem 0.05rem 0 var(--afa-ink);
    overflow: hidden;
    scroll-margin-top: 0.80rem;
}
.afa-spot__no {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    padding: 0.03rem 0.10rem 0.04rem 0.08rem;
    border-radius: 0 0 0.12rem 0;
    background: var(--spot);
    color: var(--spot-ink, #fff);
    font-family: var(--afa-head);
    font-size: 0.16rem;
}
.afa-spot__chara {
    position: relative;
    flex: none;
    width: 1.10rem;
    background: #F4F8FB;
    background:
        radial-gradient(color-mix(in srgb, var(--spot) 25%, transparent) 1.2px, transparent 1.6px) 0 0 / 8px 8px,
        color-mix(in srgb, var(--spot) 12%, #fff);
    border-right: 0.03rem solid var(--afa-ink);
    overflow: hidden;
}
.afa-spot__chara img {
    position: absolute;
    /* 頭の高さを全員 --afa-head にそろえ、頭の上端を番号の下（0.38rem）に置く。顔の中心は枠の真ん中 */
    --afa-head: 0.56rem;
    left: 50%;
    top: calc(0.38rem + var(--ny, 0rem) - var(--afa-head) * var(--zm, 1) / var(--hh, 0.15) * var(--ht, 0));
    width: auto !important;
    height: calc(var(--afa-head) * var(--zm, 1) / var(--hh, 0.15)) !important;
    max-width: none !important;
    transform: translateX(calc(var(--hx, 50) * -1% + var(--nx, 0rem)));
}
.afa-spot__body { position: relative; flex: 1; min-width: 0; padding: 0.12rem 0.12rem 0.12rem 0.12rem; }
.afa-spot .afa-spotTitle__main { padding-right: 0.10rem; }
.afa-spot .afa-spotTitle__name { font-size: 0.19rem; }   /* 11/25 一回り大きく（幅 320〜430 で英語も 1 行に収まる上限） */
.afa-spot .afa-spotTitle__tag { font-size: 0.10rem; }
html[data-afa-lang="ja"] .afa-spot .afa-spotTitle__name { font-size: 0.22rem; }   /* 日本語は短いので英語より大きく（0.26 まで改行なしを実測） */
html[data-afa-lang="ja"] .afa-spot .afa-spotTitle__tag { font-size: 0.11rem; }
.afa-spot__note { margin-top: 0.06rem; font-size: 0.11rem; color: #666; line-height: 1.45; padding-right: 0.10rem; }
.afa-spot__stamp { position: absolute; top: 0.06rem; right: 0.06rem; width: 0.56rem; }
.afa-spot__stamp img { width: 100%; }
.afa-spot.is-on .afa-spot__stamp img { transform: rotate(-8deg); }
.afa-spot__actions { display: flex; flex-wrap: wrap; gap: 0.06rem; margin-top: 0.10rem; }
.afa-spot.is-on .afa-spot__get { display: none; }
.afa-spot:not(.is-on) .afa-spot__done { display: none; }

/* ---- 小さいボタン（ピル）---- */
.afa-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0.36rem;
    padding: 0.04rem 0.14rem;
    border: 0.02rem solid var(--afa-ink);
    border-radius: 0.20rem;
    font-size: 0.13rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
}
.afa-pill--main { background: var(--afa-pink); color: #fff; box-shadow: 0 0.03rem 0 var(--afa-ink); }
.afa-pill--sub { background: #fff; color: var(--afa-ink); }
.afa-pill--done { background: var(--afa-yellow); color: var(--afa-ink); }
.afa-pill.is-disabled { background: #bdbdbd; color: #fff; box-shadow: none; }
.afa-pill--wide { display: flex; width: 100%; max-width: 3.40rem; min-height: 0.48rem; margin: 0.10rem auto 0; font-size: 0.15rem; }

/* ---- コンプリート特典 ---- */
.afa-complete__sd { display: flex; justify-content: center; align-items: flex-end; height: 1.00rem; margin: 0.02rem 0 0.06rem; }
.afa-complete__sd img { height: 100%; width: auto !important; margin: 0 -0.08rem; }
.afa-modal .afa-complete__sd { height: 1.10rem; margin: 0.16rem 0 0.04rem; }

/* ---- ノベルティ・引換場所 ---- */
.afa-novelty { width: 80%; margin: 0 auto 0.06rem; }
.afa-novelty img { width: 100%; border-radius: 0.08rem; }
.afa-place {
    margin: 0.12rem 0 0.08rem;
    padding: 0.10rem 0.12rem;
    border: 0.02rem dashed var(--afa-pink);
    border-radius: 0.12rem;
    background: var(--color-sub5);
    text-align: center;
}
.afa-place__title { font-size: 0.12rem; font-weight: 800; color: var(--afa-pink); }
.afa-place__name { margin-top: 0.02rem; font-size: 0.15rem; font-weight: 800; }
.afa-place__hours { font-size: 0.12rem; color: #555; }

/* ---- 注意事項 ---- */
.afa-notes { margin-top: 0; font-size: 0.12rem; line-height: 1.6; }
.afa-notes li + li { margin-top: 0.06rem; }

/* ---- スタンプのページ ---- */
.afa-checkin { text-align: center; }
.afa-checkin__visual { position: relative; height: 3.00rem; margin: -0.04rem 0 0.04rem; }
.afa-checkin__chara {
    position: absolute;
    left: 0.02rem;
    bottom: 0;
    height: 100% !important;
    width: auto !important;
    max-width: none !important;
    opacity: 0.95;
}
.afa-checkin__stamp { position: absolute; right: 0; top: 50%; width: 2.00rem; transform: translateY(-50%); }
.afa-checkin__stamp img { width: 100%; filter: drop-shadow(0.03rem 0.03rem 0 rgba(0, 0, 0, 0.15)); }
.afa-checkin .afa-spotTitle__main,
.afa-checkin .afa-spotTitle__sub { justify-content: center; }
.afa-checkin .afa-spotTitle__name { font-size: 0.18rem; }
.afa-checkin__msg {
    margin: 0.08rem 0;
    padding: 0.10rem;
    border-radius: 0.10rem;
    background: #FFF7D1;
    font-size: 0.13rem;
    font-weight: 700;
    line-height: 1.55;
}
.afa-checkin__msg[hidden] { display: none; }
.afa-checkin__get {
    margin: 0.06rem 0 0.02rem;
    font-family: var(--afa-head);
    font-size: 0.30rem;
    color: var(--afa-pink);
    letter-spacing: 0.06em;
    text-shadow: 0.02rem 0.02rem 0 var(--afa-yellow);
}
.afa-checkin.is-on .afa-checkin__before,
.afa-checkin.is-on .afa-checkin__msg { display: none; }
.afa-checkin:not(.is-on) .afa-checkin__after { display: none; }
.afa-checkin.is-new .afa-checkin__stamp img { animation: afaStampIn 0.55s cubic-bezier(.2, 1.6, .4, 1) both; }
.afa-checkin.is-new .afa-checkin__get { animation: afaPop 0.5s 0.35s both; }
@keyframes afaStampIn {
    0% { transform: scale(2.2) rotate(-25deg); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: scale(1) rotate(-6deg); opacity: 1; }
}
@keyframes afaPop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ---- 地図 ---- */
.p-map .map-holder { border: 0.02rem solid var(--afa-ink); border-radius: 0.10rem; overflow: hidden; margin: 0; }
.p-map .afa-card { padding: 0.08rem; }
.afa-mapname { margin: 0.04rem 0 0.08rem; font-family: var(--afa-head); font-size: 0.20rem; font-weight: 400; text-align: center; }
.afa-mapname[hidden] { display: none; }

/* ---- 引換券のページ ---- */
.afa-voucher .completedHeader { background: linear-gradient(90deg, #E4007F, #FF4FA3); }
.afa-voucher .courseName { font-family: var(--afa-head) !important; letter-spacing: 0.06em; }
.afa-live { position: relative; height: 0.92rem; overflow: hidden; background: var(--afa-ink); color: #fff; }
.afa-live__band {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(120deg, rgba(228, 0, 127, 0.55) 0 0.18rem, rgba(41, 197, 246, 0.55) 0.18rem 0.36rem, rgba(255, 227, 63, 0.55) 0.36rem 0.54rem);
    background-size: 200% 100%;
    animation: afaBand 3s linear infinite;
}
@keyframes afaBand { from { background-position: 0 0; } to { background-position: -1.25rem 0; } }
.afa-live__clock {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-shadow: 0 0.02rem 0.04rem rgba(0, 0, 0, 0.6);
}
.afa-live__label { font-size: 0.11rem; font-weight: 800; letter-spacing: 0.12em; }
#afaClock { font-family: var(--afa-head); font-size: 0.34rem; letter-spacing: 0.06em; line-height: 1.1; }
.afa-live__date { font-size: 0.12rem; font-weight: 700; }
.afa-usedat { margin-top: 0.06rem; font-size: 0.13rem; font-weight: 700; text-align: center; }
.afa-voucher [hidden] { display: none !important; }
/* 引換券のページはヘッダー（メニュー）を出さないので、切替ボタンを右端へ・ヘッダー帯の上に余白 */
.exchangePage .afa-lang { right: 0.10rem; }
.afa-voucher .completedHeader { padding-top: 0.58rem; }
.afa-voucher .usedSlider { position: relative; height: 0.56rem; border-radius: 0.28rem; background: #d6d6d6; overflow: hidden; }
.afa-voucher #handleUsed {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(90deg, #7d7d7d, #a3a3a3);
    color: #fff;
    font-size: 0.17rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

/* ---- 注意事項のアコーディオン（KV の真下）---- */
.afa-notes-acc { margin-top: 0.16rem; }
.afa-acc {
    border: 0.03rem solid var(--afa-ink);
    border-radius: 0.16rem;
    background: #fff;
    box-shadow: 0.05rem 0.05rem 0 var(--afa-ink);
    overflow: hidden;
}
.afa-acc__head {
    display: flex;
    align-items: center;
    gap: 0.10rem;
    min-height: 0.52rem;
    padding: 0.08rem 0.16rem;
    list-style: none;
    cursor: pointer;
    font-size: 0.15rem;
    font-weight: 800;
    color: var(--afa-ink);
    -webkit-tap-highlight-color: transparent;
}
.afa-acc__head::-webkit-details-marker { display: none; }
.afa-acc__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--afa-yellow);
    color: var(--afa-ink);
}
.afa-acc__icon svg { width: 0.20rem; height: 0.20rem; }
.afa-acc__title { flex: 1; font-family: var(--afa-head); font-weight: 400; letter-spacing: 0.04em; }
.afa-acc__arrow {
    flex: none;
    width: 0.12rem;
    height: 0.12rem;
    border-right: 0.03rem solid var(--afa-pink);
    border-bottom: 0.03rem solid var(--afa-pink);
    transform: rotate(45deg) translate(-0.03rem, -0.03rem);
    transition: transform 0.2s;
}
.afa-acc[open] .afa-acc__arrow { transform: rotate(-135deg) translate(-0.03rem, -0.03rem); }
.afa-acc__body { padding: 0.04rem 0.12rem 0.14rem; border-top: 0.02rem dashed #d8d8d8; background: #F2FBFF; }
.afa-acc__body .afa-notes2 { padding-top: 0.10rem; }
/* 注意事項の見出しは中央（左のアイコンと右の矢印を同じ幅の枠に入れて、文字を真ん中に）*/
.afa-acc__head { display: grid; grid-template-columns: 0.32rem 1fr 0.32rem; }
.afa-acc__title { text-align: center; }
.afa-acc__arrow { justify-self: center; }
/* 文末の 1〜2 語だけが次の行に落ちないように行の長さをそろえる（日本語は文節で折る） */
.afa-intro__title, .afa-intro__body, .afa-lead, .afa-note, .afa-howto__txt, .afa-spot__note,
.afa-checkin__msg, .afa-sheet__name, .afa-place__name, .afa-modal__title { text-wrap: balance; }
html[data-afa-lang="ja"] .afa-page { word-break: auto-phrase; line-break: strict; }

/* ---- ノベルティのカード 7 種（上 4 枚・下 3 枚・少しずつ傾けて重ねる）---- */
.afa-cards { margin: 0.06rem 0 0.10rem; }
.afa-cards__label {
    width: fit-content;
    margin: 0 auto 0.12rem;
    padding: 0.03rem 0.12rem;
    border-radius: 0.14rem;
    background: var(--afa-yellow);
    border: 0.02rem solid var(--afa-ink);
    font-size: 0.12rem;
    font-weight: 800;
}
.afa-cards__row { display: flex; justify-content: center; }
.afa-cards__row--2 { margin-top: -0.06rem; }
.afa-page .afa-cards__card,
.afa-voucher .afa-cards__card {
    display: block;
    width: 27%;
    height: auto;
    margin: 0 -0.04rem;
    border: 0.03rem solid #fff;
    border-radius: 0.04rem;
    box-shadow: 0 0.02rem 0.06rem rgba(0, 0, 0, 0.28);
    position: relative;
}
/* 7 枚とも同じ大きさ（11/25 ユーザー指示・下の段だけ大きくしない） */
.afa-cards__row--1 .afa-cards__card:nth-child(1) { transform: rotate(-7deg); }
.afa-cards__row--1 .afa-cards__card:nth-child(2) { transform: rotate(4deg) translateY(0.04rem); z-index: 2; }
.afa-cards__row--1 .afa-cards__card:nth-child(3) { transform: rotate(-3deg); z-index: 1; }
.afa-cards__row--1 .afa-cards__card:nth-child(4) { transform: rotate(6deg) translateY(0.03rem); }
.afa-cards__row--2 .afa-cards__card:nth-child(1) { transform: rotate(5deg); }
.afa-cards__row--2 .afa-cards__card:nth-child(2) { transform: rotate(-3deg) translateY(0.04rem); z-index: 2; }
.afa-cards__row--2 .afa-cards__card:nth-child(3) { transform: rotate(-6deg); }
.afa-voucher__cards { padding: 0.16rem 0.10rem 0.12rem; background: #fff; overflow: hidden; }

/* ---- スポットのカード: 文字の量が違っても、ボタンは下にそろえて 2 等分 ---- */
.afa-spot { min-height: 1.80rem; }
.afa-spot__body { display: flex; flex-direction: column; }
.afa-spot__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.06rem; margin-top: auto; padding-top: 0.10rem; }
.afa-spot__actions .afa-pill { width: 100%; min-height: 0.38rem; padding: 0.04rem 0.06rem; font-size: 0.12rem; }
.afa-pill--ar { background: var(--afa-yellow); color: var(--afa-ink); box-shadow: 0 0.03rem 0 var(--afa-ink); }
.afa-spot:not(.is-on) .afa-spot__done { display: none; }

/* ---- スタンプのページ: スタンプを真ん中に大きく（全身の絵は出さない）---- */
.afa-stamppage { padding-bottom: 0; }
.afa-checkin__visual { height: auto; margin: 0.02rem 0 0.08rem; }
.afa-checkin__stamp { position: static; width: 2.40rem; margin: 0 auto; transform: none; }
.afa-checkin__ar { text-decoration: none; margin-top: 0.06rem; }
.afa-checkin__after .afa-lead { margin-bottom: 0.02rem; }
.afa-spot__charaname { align-self: flex-start; }
.afa-spot { min-height: 1.66rem; }

/* 見出し帯の三角に少しランダム性（節の順番で 4 通り） */
.afa-sec:nth-of-type(4n+1) .afa-heading { --l-x: 0.14rem; --l-y: -0.08rem; --l-r: -14deg; --l-s: 0.9;  --r-x: 0.26rem; --r-y: 0.07rem;  --r-r: 18deg;  --r-s: 1.1; }
.afa-sec:nth-of-type(4n+2) .afa-heading { --l-x: 0.26rem; --l-y: 0.06rem;  --l-r: 12deg;  --l-s: 1.1;  --r-x: 0.12rem; --r-y: -0.09rem; --r-r: -10deg; --r-s: 0.85; }
.afa-sec:nth-of-type(4n+3) .afa-heading { --l-x: 0.10rem; --l-y: 0.03rem;  --l-r: -26deg; --l-s: 0.8;  --r-x: 0.22rem; --r-y: -0.04rem; --r-r: 32deg;  --r-s: 1;   }
.afa-sec:nth-of-type(4n+4) .afa-heading { --l-x: 0.22rem; --l-y: -0.05rem; --l-r: 20deg;  --l-s: 1.05; --r-x: 0.16rem; --r-y: 0.09rem;  --r-r: -22deg; --r-s: 0.9; }

/* ---- スポットのカード: 右上のスタンプを外したので名前の右余白も外す・ボタンの上を詰める ---- */
.afa-spot { min-height: 1.40rem; }
.afa-spot__name { padding-right: 0; }
.afa-spot__actions { padding-top: 0.08rem; }

/* ---- 引換場所（チケット風・アイコン付き）---- */
.afa-place {
    position: relative;
    margin: 0.14rem 0 0.10rem;
    padding: 0.20rem 0.16rem 0.12rem;
    border: 0.02rem solid var(--afa-ink);
    border-radius: 0.12rem;
    background:
        radial-gradient(rgba(41, 197, 246, 0.16) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
        #F2FBFF;
    text-align: left;
}
.afa-place__title {
    position: absolute;
    top: -0.12rem;
    left: 0.14rem;
    padding: 0.02rem 0.12rem;
    border: 0.02rem solid var(--afa-ink);
    border-radius: 0.12rem;
    background: var(--afa-yellow);
    color: var(--afa-ink);
    font-size: 0.11rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.afa-place__row { display: flex; align-items: center; gap: 0.08rem; margin-top: 0.04rem; }
.afa-place__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: #fff;
    border: 0.02rem solid var(--afa-cyan);
    color: var(--afa-cyan-dk);
}
.afa-place__icon svg { width: 0.16rem; height: 0.16rem; }
.afa-place__name { margin: 0; font-family: var(--afa-head); font-size: 0.16rem; font-weight: 400; letter-spacing: 0.02em; color: var(--afa-ink); }
.afa-place__hours { font-size: 0.13rem; font-weight: 700; color: #444; }
.afa-place .afa-closed { margin: 0.06rem 0 0; text-align: left; }
.afa-place { margin-top: 0.26rem; }

/* ---- スタンプの影（画像には入れず CSS で付ける。取得後だけ）---- */
.afa-sheet__cell img, .afa-afa__stamp img, .afa-checkin__stamp img { filter: none; }
.afa-sheet__cell.is-on img { filter: drop-shadow(0.01rem 0.025rem 0.02rem rgba(0, 0, 0, 0.26)); }
.afa-afa__stamp.is-on img { filter: drop-shadow(0.015rem 0.035rem 0.03rem rgba(0, 0, 0, 0.26)); }
.afa-checkin.is-on .afa-checkin__stamp img { filter: drop-shadow(0.02rem 0.045rem 0.035rem rgba(0, 0, 0, 0.26)); }

/* ---- ブース名は常に 1 行（文中・引換場所とも）---- */
.afa-booth { display: inline-block; white-space: nowrap; font-weight: 800; letter-spacing: -0.01em; }
.afa-lead .afa-booth, .afa-howto__txt .afa-booth, .afa-spot__note .afa-booth, .afa-arLead .afa-booth { font-size: 0.92em; }
.afa-place__name { white-space: nowrap; font-size: 0.135rem; letter-spacing: 0; }

/* 引換場所のブース名は 1 行に収まるよう本文の書体・小さめ */
.afa-place__name { font-family: var(--font-family); font-weight: 800; font-size: 0.112rem; letter-spacing: -0.01em; white-space: nowrap; }

/* ---- コンプリート特典: SD キャラフレームの 7 人の並び（1 枚）---- */
.afa-complete__sd { height: auto; }
.afa-complete__sd img.afa-complete__lineup { display: block; width: 92% !important; height: auto; margin: 0 auto; }
.afa-modal .afa-complete__sd { height: auto; }

/* ---- 引換場所のブース名は 2 行（S20 Booth ／ 出展社名）---- */
.afa-place__row:first-of-type { align-items: flex-start; }
.afa-place__name { display: block; font-family: var(--afa-head); font-weight: 400; font-size: 0.20rem; line-height: 1.15; letter-spacing: 0.02em; white-space: normal; }
.afa-place__sub { display: block; margin-top: 0.04rem; font-family: var(--font-family); font-weight: 800; font-size: 0.118rem; line-height: 1.3; letter-spacing: 0; color: #444; white-space: nowrap; }
.afa-place__hours { font-size: 0.125rem; }
.afa-place__row + .afa-place__row { margin-top: 0.08rem; }

/* ---- AR 漫画フレーム: フレームの縮小画像をボタンにして 4 列 ---- */
.afa-arGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.12rem 0.08rem; margin: 0.04rem 0 0.06rem; }
.afa-arTile {
    display: flex; flex-direction: column; align-items: center; gap: 0.05rem;
    margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.afa-arTile__img {
    position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
    border: 0.02rem solid var(--afa-ink); border-radius: 0.06rem; background: #fff;
    box-shadow: 0.03rem 0.03rem 0 var(--afa-ink);
    transition: transform 0.15s, box-shadow 0.15s;
}
.page-content .afa-arTile__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.afa-arTile:active .afa-arTile__img { transform: translate(0.02rem, 0.02rem); box-shadow: 0.01rem 0.01rem 0 var(--afa-ink); }
.afa-arTile__img::after {
    content: ''; position: absolute; right: 0.04rem; bottom: 0.04rem; width: 0.20rem; height: 0.20rem; border-radius: 50%;
    background: var(--afa-pink) url(/icon/camera.svg) center / 0.12rem no-repeat;
    box-shadow: 0 0.01rem 0.03rem rgba(0, 0, 0, 0.3);
}
.afa-arTile__name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.5em; font-size: 0.095rem; font-weight: 800; line-height: 1.25; text-align: center; color: var(--afa-ink);
    word-break: auto-phrase; text-wrap: balance;
}
/* まだ使えない（アンケート未回答）: 白黒・薄く・鍵 */
.afa-arTile.disabled { cursor: default; }
.afa-arTile.disabled .afa-arTile__img { box-shadow: none; }
.afa-arTile.disabled .afa-arTile__img img { filter: grayscale(1); opacity: 0.45; }
.afa-arTile.disabled .afa-arTile__img::after {
    background: rgba(40, 40, 40, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 0.12rem no-repeat;
}
.afa-arTile.disabled .afa-arTile__name { opacity: 0.55; }
.afa-arGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.afa-arTile { min-width: 0; }
html[data-afa-lang="ja"] .afa-arTile__name, .afa-arTile__name { width: 100%; word-break: normal; overflow-wrap: anywhere; line-break: strict; }
.afa-arTile.disabled, .afa-arTile:disabled { background: none !important; box-shadow: none !important; opacity: 1 !important; filter: none !important; }

/* 横向きの漫画フレーム: 最後の行に横長（縦のタイルと同じ高さ）で真ん中に */
.afa-arGrid--wide { display: flex; justify-content: center; gap: 0.08rem; margin-top: 0.04rem; }
.afa-arGrid--wide .afa-arTile { width: calc((100% - 0.24rem) / 4 * 16 / 9); flex: none; }
.afa-arGrid--wide .afa-arTile__img { aspect-ratio: 4 / 3; }
.afa-arGrid--wide .afa-arTile__name { min-height: 0; }

/* ---- 文中のブース名も 2 行（S20 Booth at AFA SG26 ／ 出展社名）---- */
.afa-booth { display: inline-block; vertical-align: top; margin: 0.02rem 0; white-space: normal; letter-spacing: 0; }
.afa-booth__main, .afa-booth__sub { display: block; white-space: nowrap; }
.afa-booth__main { font-weight: 800; }
.afa-booth__sub { font-size: 0.86em; font-weight: 700; opacity: 0.85; }
.afa-lead .afa-booth, .afa-howto__txt .afa-booth, .afa-spot__note .afa-booth, .afa-arLead .afa-booth { font-size: 1em; }
.afa-booth { display: block; margin: 0.03rem 0; }

/* 引換券ページ: 切替ボタンが見出しにかぶらないよう、小さくして上へ・見出しの上を少し空ける */
.exchangePage .afa-lang { top: 0.10rem; right: 0.10rem; height: 0.27rem; padding: 0.025rem; font-size: 0.095rem; }
.exchangePage .afa-lang .afa-lang__opt { padding: 0 0.065rem; }
.afa-voucher .completedHeader { padding-top: 0.62rem; }
/* 引換場所: 1 行目（S20 Booth at AFA SG26）は 1 行に収める */
.afa-place__name { font-size: 0.162rem; letter-spacing: 0; white-space: nowrap; }
.afa-place__sub { white-space: normal; }

/* スポットのカードは全部同じ高さ（いちばん高い AFA 会場のカードにそろえる） */
.afa-spots { grid-auto-rows: 1fr; }

/* AR の節の見出しは 2 行（PHOTO FRAME ／ @comic ver.） */
.afa-heading--2l { height: 0.66rem; }
.afa-heading--2l .l-en, .afa-heading--2l .l-ja { flex-direction: column; line-height: 1.05; background: none; padding: 0; min-width: 0; max-width: none; }
.afa-heading--2l small { display: block; margin-top: 0.03rem; font-size: 0.12rem; letter-spacing: 0.06em; }
/* AR の節の紹介（AFA 会場のカードと同じくブース名は 2 行） */
.afa-arLead { margin: 0 0 0.12rem; text-align: center; font-size: 0.12rem; line-height: 1.5; color: #444; }
.afa-arLead .afa-booth__main { font-weight: 800; color: var(--afa-ink); }

/* 引換券ページの見出し（NOVELTY VOUCHER）: 英語は長いので小さく */
html:not([data-afa-lang="ja"]) .afa-voucher .completedHeader .courseName { font-size: 0.135rem; letter-spacing: 0.03em; padding: 0.03rem 0.14rem; }

/* ---- はじめの紹介（11/23 目立たせる）---- */
.afa-intro .afa-card { padding: 0.20rem 0.14rem 0.18rem; }
.afa-intro__title { font-family: var(--afa-head); color: var(--afa-ink); line-height: 1.3; }
.afa-intro__title small { display: block; margin-bottom: 0.04rem; font-family: var(--afa-hand); font-size: 0.16rem; color: var(--afa-pink); }
.afa-intro__title strong {
    display: inline; font-weight: 400; font-size: 0.24rem; line-height: 1.45; letter-spacing: 0.02em;
    background: linear-gradient(transparent 62%, var(--afa-yellow) 62%, var(--afa-yellow) 92%, transparent 92%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html:not([data-afa-lang="ja"]) .afa-intro__title strong { font-size: 0.23rem; }
.afa-intro__body { margin-top: 0.14rem; font-size: 0.13rem; font-weight: 700; line-height: 1.7; }
.afa-intro__blk { display: block; }
.afa-intro__body b { color: var(--afa-ink); font-weight: 900; }
.afa-intro__body em { font-style: normal; font-weight: 900; color: var(--afa-pink); }
.afa-intro__plus {
    display: block; width: fit-content; margin: 0.10rem auto;
    padding: 0.02rem 0.16rem; border-radius: 0.14rem;
    background: var(--afa-ink); color: #fff; font-family: var(--afa-head); font-size: 0.13rem; letter-spacing: 0.08em;
}
.afa-intro__last { margin-top: 0.10rem; padding-top: 0.10rem; border-top: 0.02rem dashed color-mix(in srgb, var(--afa-ink) 30%, transparent); }

/* スポットのカード: 高さをそろえて空いた分は、説明を名前とボタンの間の真ん中に */
.afa-spot__note { margin-top: auto; margin-bottom: auto; padding-top: 0.06rem; }
.afa-spot__actions { margin-top: 0; }
/* 紹介: 本文を大きく・「さらに」は控えめ（11/23 ユーザー指示） */
.afa-intro__body { font-size: 0.15rem; line-height: 1.65; }
html:not([data-afa-lang="ja"]) .afa-intro__body { font-size: 0.145rem; }
.afa-intro__plus {
    display: flex; align-items: center; gap: 0.10rem; width: auto; margin: 0.08rem 0.20rem;
    padding: 0; border-radius: 0; background: none;
    color: var(--afa-pink); font-family: var(--afa-head); font-size: 0.15rem; letter-spacing: 0.08em;
}
.afa-intro__plus::before, .afa-intro__plus::after { content: ''; flex: 1; height: 0.02rem; background: color-mix(in srgb, var(--afa-pink) 35%, transparent); }
/* スタンプ台紙: 上の空きを詰める（獲得スタンプ数の行） */
.afa-card.afa-sheet { padding-top: 0.12rem; }
.afa-sheet__count { line-height: 1.1; }
.afa-sheet__progress { margin-bottom: 0.14rem; }

/* 読みやすさ（11/23 見直し）: 小さい灰色の文字を少し大きく・濃く */
.afa-note { font-size: 0.125rem; color: #555; }
.afa-spot__note { font-size: 0.12rem; color: #555; }
.afa-arLead { font-size: 0.13rem; color: #333; }
.afa-sheet__note { color: #333; }
/* 英語で見出し・ボタンが 2 行に折れないように */
.afa-heading > span { white-space: nowrap; }
html:not([data-afa-lang="ja"]) .afa-heading > span { font-size: 0.175rem; letter-spacing: 0.03em; }
.afa-spot__actions .afa-pill { white-space: nowrap; }
html:not([data-afa-lang="ja"]) .afa-spot__actions .afa-pill { font-size: 0.115rem; letter-spacing: -0.005em; }

/* AFA 会場: 回答後の 2 つのボタンの間・引換券へはなめらかにスクロール */
.afa-afa__toVoucher { margin-top: 0.10rem; text-decoration: none; }
html { scroll-behavior: smooth; }
#voucher, #afa, #ar, #stamps, #complete { scroll-margin-top: 0.70rem; }
.afa-afa__toVoucher .iconButtonText { white-space: nowrap; font-size: 0.14rem; letter-spacing: 0; }

/* 文中のブース名: 2 行目（出展社名）も本文と同じ大きさ・濃さ（11/23 ユーザー指示） */
.afa-booth__sub { font-size: 1em; opacity: 1; }

/* スタンプ台紙: スポット名とスタンプの間をあける（取得済みは少し回して拡大するので、その分も） */
.afa-sheet__name { margin-top: 0.08rem; }
.afa-sheet__grid { row-gap: 0.16rem; }
/* スポットのカード: キャラ名を大きく（11/23 ユーザー指示） */
.afa-spot__charaname { font-size: 0.135rem; padding: 0.02rem 0.10rem; border-radius: 0.12rem; }
/* あそびかた: ブース名が長くてカードが右にはみ出し、キャラが切れていた → 列の幅を画面に収め、ブース名は小さめ・入らなければ折り返す */
.afa-howto { grid-template-columns: minmax(0, 1fr); }
.afa-howto li { min-width: 0; padding-right: 0.66rem; }
.afa-howto__txt { min-width: 0; }
.afa-howto__txt .afa-booth { font-size: 0.9em; }
.afa-howto__txt .afa-booth__main, .afa-howto__txt .afa-booth__sub { white-space: normal; }

/* AFA 会場: 回答済みは 1 つのボタンを 2 行に（上: 回答済み 小さめ／下: 引換券を確認する） */
.afa-afa__toVoucher { margin-top: 0; }
.afa-afa__toVoucher .iconButtonText { display: flex; flex-direction: column; align-items: center; line-height: 1.25; white-space: nowrap; }
.afa-afa__done { font-size: 0.11rem; font-weight: 700; opacity: 0.9; }
.afa-afa__go { font-size: 0.145rem; }

/* 引換券ページの注意書き・引換場所の注意書き */
.afa-vnotes { margin: 0.16rem auto 0; text-align: left; color: #333; font-weight: 400; }
.afa-place__notes { margin: 0.08rem 0 0; text-align: left; color: #444; font-weight: 400; }
.afa-place__notes { font-size: 0.112rem; letter-spacing: -0.01em; }

/* スタンプのページ: 位置情報を取っている間の読み込み画面 */
.afa-locating { position: fixed; inset: 0; z-index: 10200; display: flex; align-items: center; justify-content: center; padding: 0.20rem; background: rgba(20, 30, 40, 0.45); }
.afa-locating[hidden] { display: none; }
html.afa-locking { overflow: hidden; }
.afa-locating__box {
    width: 100%; max-width: 2.80rem; padding: 0.24rem 0.18rem 0.20rem; text-align: center;
    border: 0.03rem solid var(--afa-ink); border-radius: 0.18rem; background: #fff; box-shadow: 0.05rem 0.05rem 0 var(--afa-ink);
}
.afa-locating__icon { position: relative; width: 0.76rem; height: 0.76rem; margin: 0 auto 0.12rem; color: var(--afa-pink); }
.afa-locating__icon svg { position: absolute; left: 50%; top: 50%; width: 0.36rem; height: 0.36rem; transform: translate(-50%, -50%); animation: afaPinBob 1s ease-in-out infinite; }
.afa-locating__ring { position: absolute; inset: 0; border-radius: 50%; border: 0.05rem solid color-mix(in srgb, var(--afa-cyan) 30%, #fff); border-top-color: var(--afa-cyan); animation: afaSpin 0.9s linear infinite; }
.afa-locating__text { font-size: 0.14rem; font-weight: 800; color: var(--afa-ink); line-height: 1.5; }
@keyframes afaSpin { to { transform: rotate(360deg); } }
@keyframes afaPinBob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -62%); } }

/* 施設への問い合わせを控える案内（トップのスタンプラリー・スタンプのページ・地図の詳細） */
.afa-nocontact { margin: 0.14rem 0 0; padding: 0 0.04rem; text-align: left; color: #333; font-weight: 500; }
.afa-sheet .afa-nocontact { margin: 0.10rem 0.02rem 0; }

/* ---- 一番下の推し旅サイトへのリンク（11/23）— 1 枚のカードに注記＋2 つのリンク ---- */
.afa-links { margin-top: 0.10rem; padding-bottom: 0.04rem; }
.afa-links__note {
    margin: 0 0 0.14rem;
    padding: 0.08rem 0.10rem;
    background: #E6F7FE;
    border-radius: 0.10rem;
    color: var(--afa-ink);
    font-size: 0.12rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}
.afa-links__item + .afa-links__item { margin-top: 0.18rem; padding-top: 0.14rem; border-top: 0.02rem dashed #C9C9C9; }
.afa-links__item .afa-lead { margin: 0.02rem 0 0.10rem; }
.afa-linkcard {
    display: flex;
    align-items: center;
    gap: 0.10rem;
    padding: 0.08rem 0.10rem 0.08rem 0.08rem;
    background: #fff;
    border: 0.02rem solid var(--afa-ink);
    border-radius: 0.14rem;
    box-shadow: 0.04rem 0.04rem 0 var(--afa-ink);
    color: var(--afa-ink);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s, box-shadow 0.1s;
}
.afa-linkcard:active { transform: translate(0.03rem, 0.03rem); box-shadow: 0.01rem 0.01rem 0 var(--afa-ink); }
.afa-linkcard__img { flex: none; width: 0.74rem; }
.afa-linkcard__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 0.02rem solid var(--afa-ink); border-radius: 0.08rem; }
.afa-linkcard__title { flex: 1; min-width: 0; font-size: 0.13rem; font-weight: 800; line-height: 1.35; }
.afa-linkcard__date {
    display: block;
    width: fit-content;
    margin-bottom: 0.04rem;
    font-size: 0.10rem;
    font-weight: 800;
    line-height: 1.4;
    background: linear-gradient(transparent 55%, var(--afa-yellow) 55%);
}
.afa-linkcard__go { flex: none; position: relative; width: 0.22rem; height: 0.22rem; border-radius: 50%; background: var(--afa-pink); }
.afa-linkcard__go::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.06rem;
    height: 0.06rem;
    border-top: 0.02rem solid #fff;
    border-right: 0.02rem solid #fff;
    transform: translate(-65%, -50%) rotate(45deg);
}

/* ---- スポットの 2 行の見出し（11/25）— 1 行目 = キャラ名＋キャラ色の札「SPOT」／2 行目 = ピン＋場所の補足 ---- */
.afa-spotTitle { display: block; }
.afa-spotTitle__main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.03rem 0.06rem; }
.afa-spotTitle__name { font-family: var(--afa-head); font-weight: 400; line-height: 1.25; color: var(--afa-ink); }
.afa-spotTitle__tag {
    flex: none;
    padding: 0.015rem 0.06rem 0.02rem;
    border-radius: 0.04rem;
    background: var(--spot);
    color: var(--spot-ink, #fff);
    font-family: var(--afa-head);
    font-size: 0.09rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}
html[data-afa-lang="ja"] .afa-spotTitle__tag { letter-spacing: 0.02em; }
.afa-spotTitle__sub {
    display: flex; align-items: flex-start; gap: 0.03rem;
    margin-top: 0.04rem;
    font-family: var(--font-family);
    font-size: 0.11rem; font-weight: 700; line-height: 1.35; color: #707070;
}
.afa-nb { display: inline-block; }
.afa-spotTitle__pin { flex: none; width: 0.12rem; height: 0.12rem; margin-top: 0.01rem; fill: var(--spot); }   /* ピンは常にキャラ色（11/25） */
