@charset "UTF-8";

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

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


/* ============================================================
   BRAND COLORS — 企画ごとに変更する
   ============================================================ */
:root {
    /* 色・フォントは coding（codings/custom.css）の値。仕様書の既定色ではなく coding が正本 */
    --color-main:   #ffffff;   /* ページ背景色 */
    --color-sub1:   #ffffff;   /* coding: メインカラー */
    --color-sub2:   #A88446;   /* coding: 金 */
    --color-sub3:   #d90d71;
    --color-sub4:   #a80055;
    --color-sub5:   #e8f1f8;
    --color-local:  #f1d511;
    --color-text:   #000000;
    --color-button: #9D0C15;   /* coding の .iconButton.button-bg グラデ終端（モーダル・simpleButton 用） */
    --font-family:  'Noto Serif JP', YakuHanJP, serif;
    --font-family-deco: 'Noto Sans JP', YakuHanJP, sans-serif;

    /* ★ coding は base.css の文字サイズ変数を書き換えて組まれていた（base.css は編集禁止）。
       同じ見た目にするため、coding 側 base.css の値をここで上書きする。 */
    --fs-base: 0.15rem;
    --fs-md:   0.18rem;
    --fs-lg:   0.20rem;
    --fs-xl:   0.22rem;
    --fs-2xl:  0.24rem;
    --fs-3xl:  0.35rem;
}


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


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


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


/* ============================================================
   BUTTON — アイコン無しの細長ボタン（.loginRgisterButton.noIcon）
   クイズ結果画面のサブ導線（間違えた問題を確認する／もう一度挑戦する／
   結果画面に戻る）など、「報酬の受け取り」以外のボタンに使う。

   ★ アイコンを付けないときは左右とも省略する。
     .iconButton のまま中身を文字だけにすると、アイコン用の flex 領域
     （.icon flex:2 / .icon2nd flex:1.5）が残って文字が中央からずれる。
   ★ 地色は .button-bg（var(--color-button)）。企画で別の地色にする場合は
     この下で .loginRgisterButton を上書きする。
   ============================================================ */
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;            /* アイコン分の右マージンを消して中央に置く */
}


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

/* ============================================================
   CODING — codings/custom.css から移植（トップのデザイン）
   ★ 非活性ボタンの指定はこのブロックの1箇所に集約（形は活性時と同じ・色だけグレー）
   ============================================================ */
.iconButton[disabled],
.iconButton.disabled,
.iconButton:disabled,
.iconButton[disabled].button-bg,
.iconButton.disabled.button-bg,
.iconButton:disabled.button-bg {
    background: #B2B2B2;
    color: #fff !important;
    pointer-events: none !important;
    cursor: default !important;
    border-radius: 0.05rem;
}

.smallButton:disabled.button-bg {
    background: #B2B2B2;
}

.iconButton.smallButton {
    height: 0.45rem;
    border-radius: 0.05rem;
}

.fontNotoSans,
.fontNotoSans *,
.caution,
.caution *,
ul.caution,
ul.caution li,
ul.caution li a {
    font-family: "Noto Sans JP", YakuHanJP, sans-serif !important;
}

ul.marginbottom {
    margin-bottom: 8%;
}

.p-intro {
    background-image: url(../img/background_texture_pale_peach.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 8%;
}

.p-shinkansen {
    background-image: url(../img/background_texture_pale_green.webp);
    background-size: 100% auto;
    background-position: center;
    background-repeat: repeat-y;
    padding-bottom: 3%;
}

.p-external {
    background-image: url(../img/background_texture_pale_purple.webp);
    background-size: 100% auto;
    background-position: center;
    background-repeat: repeat-y;
    padding-bottom: 8%;
}


.page-content img {
    margin: auto;
}

.content-holder {
    width: 100%;
    position: relative;
    margin: auto;
    padding: 1% 3%;
    border-radius: 0;
    border: none;
    color: black;
    background: transparent;
}

.p-shinkansen .content-holder {
    padding: 5%;
    padding-bottom: 3%;
}

.dateSec {
    border-top: solid 0.02rem #000;
    border-bottom: solid 0.02rem #000;
    font-weight: 700;
    text-align: center;
    font-size: 0.18rem;
    padding: 3% 0;
}

.line {
    border-bottom: solid #000 0.02rem;
}

.loginRgisterButton {
    border: none;
    border-radius: 0.1rem;
    padding: 0.3rem 0.05rem;
    box-shadow: none;
    background: #000;
    color: #fff;
}

.loginRgisterButton.button-bg {
    background: #000;
}

.loginRgisterButton .iconButtonText {
    font-weight: 700;
}

ul.caution {
    line-height: 1.8;
}

ul.paddingLeft {
    padding-left: 2%;
}

.marginbottom {
    margin-bottom: 4%;
}


.iconButton {
    height: 0.80rem;
    border-radius: 0.05rem;
    box-shadow: none;
}

.iconButton.button-bg {
    background: linear-gradient(180deg, #FF6F61, #9D0C15);
}

.iconButton .icon2nd {
    flex: 1;
}

.iconButton .iconButtonText {
    font-weight: 700;
    flex: 4.5;
}

.marginLeft {
    margin-left: 15%;
}

.iconButton::before {
    display: none;
}

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

.iconButton .icon img {
    width: 0.20rem;
    height: 0.20rem;
}

.iconButton .icon {
    flex: 1.5;
}

.page-content .iconButton .icon img.trainIcon {
    width: 0.42rem;
    height: auto;
}

.iconButton .icon2nd img {
    height: 0.26rem;
    width: auto;
}
.p-external .iconButton .icon img{
    width: 0.24rem;
    height: auto;
}
.p-external .iconButton .icon2nd{
    flex: 1.5;
}
.p-external .iconButton .iconButtonText{
    flex: 5;
}

.p-external .message-container {
    margin: 5% auto;
}

.margin {
    margin: 4% auto;
}

img.margin {
    margin: 4% auto 1%;
}

.p-location .margin {
    white-space: nowrap;
}

.page-content img.marginbottom {
    margin-bottom: 5%;
}

.region-card {
    display: flex;
    gap: 0.2rem;
    padding: 5% 2%;
    align-items: stretch;
    border-bottom: #3CAE86 solid 0.01rem;
}

.region-thumb {
    flex: 1.5;
    width: 1.2rem;
    height: auto;
}

.cardButton {
    flex: 3;
    align-content: center;
    padding: 0 2%;
}

.region-card .iconButton {
    height: 0.8rem;
    margin-bottom: 0;

}

.region-card .iconButton .iconButtonText {
    text-align: left;
    margin-left: 7%;
    flex: 3.5;
    font-family: 'Noto Serif JP';

}

.purpleText {
    color: #6B2792;
}


@media (max-width:400px) {
    .text-md {
        font-size: 0.17rem;
    }

    .p-location .text-base {
        font-size: 0.16rem;
    }

}
/* ★ イントロの見出し（2行を <br> で組んでいる）は 0.18rem だと 1行目・2行目とも
     1行に収まらず、401px 以上（430px 端末・PC）で「う！」だけ3行目に落ちる。
     coding の @media (max-width:400px) の 0.17rem を全幅で使う（rem は幅に比例するので全幅で収まる） */
.p-intro .message-container.text-md {
    font-size: 0.17rem;
}

/* 下層ページ: 戻るボタンをセクションの内側（テクスチャ背景の上）に置く。カードとの間隔 */
section > .simpleButton.backButton,
section > .simpleButton.backToTop {
    margin: 0.20rem auto 0.10rem;
}

/* ============================================================
   下層ページのカード（クイズ・認定証・小説で共通）
   テクスチャ背景のセクション（.quizSelect）の上に、白い角ばったカード（.quizCard・赤枠）を置く
   ★ 角丸なし・枠は coding の赤（担当者指示 2026-09-25）
   ============================================================ */
.quizSelect {
    padding: 0.20rem 0.14rem 0.10rem;
}
.quizCard {
    background: #fff;
    border: 0.02rem solid #9D0C15;   /* coding の赤（ボタンのグラデ終端）。担当者指示 */
    border-radius: 0;
    padding: 0.20rem 0.12rem 0.24rem;
}

/* 小説リーダーの巻タイトル（book/css/reader.css の --rs-title）を coding の金に */
:root {
    --rs-title: #A88446;
}
