@charset "UTF-8";

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

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


/* ============================================================
   BRAND COLORS — 企画ごとに変更する
   ============================================================ */
:root {
    --color-main:   #ffffff;
    --color-sub1:   #5d5b5b;   /* 本文の灰色 */
    --color-sub2:   #fba181;
    --color-sub3:   #ff8489;
    --color-sub4:   #fba181;
    --color-sub5:   #fefafb;   /* カードの地 */
    --color-local:  #fe8a87;
    --color-text:   #fe8a87;   /* 強調文字（コーラル） */
    --color-button: #fe8a87;
    --font-family:  'Noto Sans JP', YakuHanJP, sans-serif;
    /* coding の文字サイズ */
    --fs-base: 0.15rem;
    --fs-md:   0.18rem;
    --fs-lg:   0.20rem;
}


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


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

/* コピー完了などのモーダルを企画色に（東海オレンジ → コーラル）。本文は選択画面のモーダルと同じ灰色 */
#alertModal {
    --color-tokai: var(--color-button);
}

#alertModal .modal-content {
    border-radius: 0.20rem;
}

#alertModal #alertTitle {
    letter-spacing: 0.06em;
}

#alertModal #alertMessage {
    color: var(--color-sub1);
    font-weight: 700;
}

#alertModal .close-button {
    border-radius: 0.04rem;
}


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


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;            /* アイコン分の右マージンを消して中央に置く */
}


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

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


/* ============================================================
   SWEET STEADY 第2弾 — coding（SWEETSTEADY/custom.css）の移植
   ★ 画像パスは coding の ./img/ → このファイルからの相対 ../img/。
   ============================================================ */

/* ---- DISABLED — 形は活性と同じ・地だけ灰（coding の灰グラデ画像）---- */
.iconButton[disabled],
.iconButton.disabled,
.iconButton:disabled,
.iconButton[disabled].button-bg,
.iconButton.disabled.button-bg,
.iconButton:disabled.button-bg {
    color: #fff !important;
    pointer-events: none !important;
    cursor: default !important;
    opacity: 1;
    background: url(../img/bg-gradient-gray-locked.webp);
    background-size: 200% 200%;
    background-position: center;
    background-repeat: no-repeat;
}

.iconButton[disabled]::before,
.iconButton.disabled::before,
.iconButton:disabled::before {
    border-color: rgba(255, 255, 255, 1) !important;
}

ul.caution {
    line-height: 1.8;
}

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

ul.marginBottom {
    margin-bottom: 5%;
}

.message-container .pdfLink {
    color: #00C4EB;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 0.01rem;
}

/* ---- 本文の外側（PC・タブレット幅の左右）の背景 ---- */
body {
    background: url(../img/bg_pc.webp) center top / 7.50rem repeat;
}

main::before {
    display: none;
}

/* 本文の背景（幅いっぱいで縦にくり返す） */
.page-content {
    padding-bottom: 5%;
    background: url(../img/bg_sp.webp) center top / 100% auto repeat-y;
}

.page-content img {
    margin: auto;
}

.content-holder {
    width: 95%;
    position: relative;
    margin: auto;
    padding: 3%;
    border-radius: 0.1rem;
    border: none;
    background: var(--color-sub5);
}

.p-shinkansen .content-holder {
    margin-top: -3%;
    padding-top: 1%;
}

.p-shinkansen .message-container,
.p-external .message-container,
.p-lottery .message-container {
    color: var(--color-sub1);
}

/* 上の灰色指定より .color-text（選択画面の見出しなど）を優先する */
.p-external .message-container.color-text {
    color: var(--color-text);
}

/* 壁紙ボタンのアイコンを大きめに */
.p-external .iconButton .icon img {
    width: 0.42rem;
    height: auto;
}

.message-container {
    line-height: 0.3rem;
}

.backBgText {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 100%;
    grid-template-areas: "a";
    width: 98%;
    margin: auto;
}

.backBgText .bgImgTitle {
    grid-area: a;
}

.backBgText .message-container {
    grid-area: a;
    font-size: 0.19rem;
}

.loginRgisterButton {
    padding: 0.3rem 0.05rem;
    position: relative;
}

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

.loginRgisterButton .icon {
    margin-left: 0.25rem;
}

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

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

.iconButton .icon {
    flex: 1.5;
}

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

.page-content .iconButton .icon img.lotteryIcon {
    width: 0.25rem;
    height: auto;
}

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

.iconButton.button-bg {
    background-image: url(../img/bg-gradient-coral-orange.webp);
    background-size: 100% 200%;
    background-position: center;
    background-repeat: no-repeat;
}

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

.iconButton::before {
    top: 0.03rem;
    right: 0.03rem;
    bottom: 0.03rem;
    left: 0.03rem;
    border: 0.01rem solid rgba(255, 255, 255, 1);
    border-radius: 0.5rem;
}

img.sampleGroupImg {
    width: 75%;
}

/* 未ログイン時の壁紙サンプル */
img.wallpapersSampleImg {
    width: 80%;
    margin: 0.12rem auto 0.16rem;
}

img.wallpaperGroupSampleImg {
    width: 60%;
    margin: 0.12rem auto 0.20rem;
}

img.marginImg {
    margin: 1% auto 3%;
}

/* 見出し画像の下に重ねる赤い注意文（画像の楕円の下端にかかる位置） */
/* ---- セクション見出し — LP の画像（文字だけ・透過）＋背後のピンクの楕円を CSS で ---- */
.heading-lp {
    position: relative;
    padding: 0.22rem 0 0.26rem;
}

.heading-lp::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4.30rem;
    height: 2.30rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(254, 38, 158, 0.55) 0%, rgba(254, 38, 158, 0.38) 35%, rgba(254, 38, 158, 0.14) 72%, rgba(254, 38, 158, 0) 100%);
    pointer-events: none;
}

.page-content .heading-lp img {
    position: relative;
    display: block;
    height: auto;
    margin: 0 auto;
}

.heading-lp--special img { width: 3.19rem; }
.heading-lp--present img { width: 3.61rem; }
.heading-lp--goods img   { width: 3.56rem; }

.heading-note {
    position: relative;
    text-align: center;
    color: #E85454;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 0.13rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin: -0.16rem auto 0.22rem;
}

/* 選択画面は注意文が無いので、見出しのすぐ下にカードを置く（デザインどおり） */
.heading-lp--choose {
    padding-bottom: 0.12rem;
}

.badge {
    display: block;
    width: fit-content;
    margin-inline: auto;
    padding: 0 0.2rem;
    text-align: center;
    line-height: 2;
    border-radius: 0.3rem;
    background: linear-gradient(90deg, #FF8489 0%, #FBA181 100%);
    color: #fff;
}

.line {
    border-bottom: var(--color-text) solid 0.02rem;
}

.wallpaper-list {
    list-style: none;
    margin: 0;
    padding: 0 3%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 4%;
}

.wallpaper-item {
    width: 22%;
    text-align: center;
}

.wallpaper-img {
    display: block;
    width: 90%;
    margin: auto;
    height: auto;
    border-radius: 0.06rem;
}

.wallpaper-name {
    margin: 0.08rem 0 0;
    font-weight: 700;
    font-size: 0.13rem;
    color: var(--color-sub1);
}

.wallpaper-count {
    margin: 0.2rem 0 0.15rem;
    text-align: center;
    font-weight: 700;
    color: var(--color-sub1);
}



/* ============================================================
   配信中の弾 — LP の .schedule__list を1件ぶん（coding の期間ラベル画像と同じ見た目）
   ★ 値は LP の css/style.css（1px = 0.01rem）。バッジは LP の img/circle.svg。
   ============================================================ */
.schedule__list {
    list-style: none;
    width: 90%;
    margin: 0.10rem auto;
    padding: 0.14rem;
    border: 0.01rem solid #F0C5C5;
    border-radius: 0.04rem;
    background: #fff;
}

.schedule__list--item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
}

.schedule__no {
    flex-shrink: 0;
    width: 0.32rem;
    height: 0.26rem;
    margin: 0;
    background: url(../svg/circle.svg) center / contain no-repeat;
    color: #fff;
    text-align: center;
    line-height: 0.26rem;
    font-family: Gloock, "Noto Serif JP", serif;
}

.schedule__txt {
    margin: 0;
    color: var(--color-sub1);
    font-family: Gloock, "Noto Serif JP", serif;
    font-weight: 400;
    font-size: 0.15rem;
    letter-spacing: 0.05em;
}

.schedule__txt span {
    font-size: 1.2em;
}


/* ============================================================
   壁紙の選択画面（wallpaper/choose.php）— 選択中の枠・取得済み
   ============================================================ */
.wallpaper-item.choose {
    cursor: pointer;
}

.wallpaper-item.selected .wallpaper-img {
    outline: 0.03rem solid #E1304D;
    outline-offset: -0.03rem;
}

/* 取得済みは選べないだけで、見た目はデザインどおり薄くしない */
.wallpaper-item.unlocked {
    pointer-events: none;
}

.choose-counter {
    text-align: center;
    color: var(--color-sub1);
    font-weight: 700;
    font-size: 0.16rem;
    margin: 0.10rem auto 0.04rem;
}


/* ---- 壁紙選択の確認モーダル — タイトル帯・枠なし、ボタンは小さめの角丸（デザインどおり） ---- */
.chooseModal .askPromptModal__content {
    border: none;
    border-radius: 0.20rem;
    padding: 0.36rem 0.24rem 0.32rem;
}

.chooseModal .askPromptModal__body {
    text-align: center;
    font-size: 0.15rem;
    color: var(--color-sub1);
    font-weight: 700;
    line-height: 1.7;
}

.chooseModal .choice-name {
    color: var(--color-text);
}

.chooseModal .askPromptModal__actions {
    justify-content: center;
    gap: 0.18rem;
    margin-top: 0.22rem;
}

.chooseModal .askPromptModal__yes,
.chooseModal .askPromptModal__no {
    flex: 0 0 0.80rem;
    height: 0.56rem;
    border: none;
    border-radius: 0.04rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.18rem;
}

.chooseModal .askPromptModal__yes {
    background: var(--color-button);
}

.chooseModal .askPromptModal__no,
.chooseModal .askPromptModal__no:hover {
    background: #ADADAD;
}


/* ============================================================
   抽選結果（lottery/result.php）・トップの当選表示 — 文字と ID 欄
   ============================================================ */
.lotteryResult .content-holder {
    margin-top: 0.20rem;
    padding: 0.24rem 3% 0.20rem;
}

.result-title {
    color: var(--color-sub1);
    font-size: 0.30rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.14rem;
}

.result-hazure {
    color: var(--color-text);
    font-size: 0.40rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.04em;
    margin-bottom: 0.14rem;
}

.result-lead {
    color: var(--color-sub1);
    font-size: 0.19rem;
    font-weight: 500;
    line-height: 1.6;
}

.result-lead .color-text {
    font-weight: 700;
}

.result-lead--lg {
    font-size: 0.22rem;
    margin-bottom: 0.08rem;
}

.result-lead--gap {
    margin-top: 0.16rem;
}

.result-label {
    color: var(--color-sub1);
    font-size: 0.19rem;
    font-weight: 700;
    line-height: 1.6;
    margin-top: 0.16rem;
}

.lotteryWin {
    margin-bottom: 0.16rem;
}

/* ID 欄 — 灰色の細枠・コーラルの太字・小さいコピーボタン */
.code-container {
    position: relative;
    justify-content: center;
    background: #fff;
    border: 0.01rem solid var(--color-sub1);
    border-radius: 0.04rem;
    padding: 0.16rem 0.90rem 0.16rem 0.12rem;
    width: 92%;
    margin: 0.08rem auto 0;
}

.code-text {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--color-text);
    background: none;
    padding: 0;
    font-size: 0.28rem;
    letter-spacing: 0.02em;
}

.code-text.code-text--id {
    font-size: 0.21rem;
}

.copyButton {
    position: absolute;
    right: 0.10rem;
    top: 50%;
    transform: translateY(-50%);
    gap: 0.03rem;
    padding: 0.05rem 0.08rem;
    background: var(--color-button);
    border-radius: 0.04rem;
    font-size: 0.13rem;
    font-weight: 500;
}

.copy-icon {
    width: 0.12rem;
    height: 0.12rem;
}
