@charset "UTF-8";

/* ============================================================
   CUSTOM.CSS — 緑黄色社会×JR東海 第4弾
   コーディング納品物（codings/custom.css）が正本。
   base.css は触らない。上書きはすべてこのファイルで行う。
   ============================================================ */


/* ============================================================
   BRAND COLORS
   ★ 値はコーディング納品物のとおり（仕様書の表とは sub1/sub2 が逆）。
     コーディング CSS が var(--color-sub2) をボタン地として組んでいるため、
     入れ替えるとボタンが薄金地＋白文字になり読めなくなる。
   ============================================================ */
:root {
    --color-main: #ffffff;
    /* ページ背景色（コンテンツ列の外） */
    --color-sub1: #DAC181;
    /* 薄金（罫線・アクセント） */
    --color-sub2: #9D8851;
    /* 濃金（ボタン地・強調数字） */
    --color-sub3: #D9C797;
    /* ボタン内側の枠 */
    --color-sub4: #473B37;
    /* 本文の焦茶 */
    --color-sub5: #F8F6E8;
    /* 応募期間バナーの淡いクリーム地 */
    --color-local: #f1d511;
    /* 差し色（base.css 既定を踏襲） */
    --color-text: #DAC181;
    --color-button: #9D8851;
    --font-family: "Noto Sans JP", YakuHanJP, sans-serif;
    --font-family-deco: "Kaisei Opti", "Noto Serif JP", serif;
}


/* ============================================================
   PAGE LAYOUT
   背景はコンテンツ列に repeat-y で敷く（bg.webp は 2109x16383 の1ページ絵）。
   base.css の main::before（全面 fixed cover）は使わないので画像だけ外す。
   --image-bg は info.inc.php の $backgroundCss が単一ソース（url("") を書かない）。
   ============================================================ */
main::before {
    background-image: none;
}

.page-content {
    padding-bottom: 0.15rem;
    background-image: var(--image-bg);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
}

img {
    margin: auto;
}

.content-holder {
    position: relative;
    margin: auto;
    margin-top: 0.15rem;
    border-radius: 0;
    padding: 5% 3%;
    box-shadow: unset;
}

.color-text1 {
    color: var(--color-sub4);
}

.message-container {
    line-height: 1.9;
}

.line {
    border-bottom: solid var(--color-sub1) 0.01rem;
    margin: 0.15rem 1%;
}

.font20 {
    font-size: 0.20rem;
}

.marginTop {
    margin-top: 6%;
}

.page-content img.marginBottom {
    margin-bottom: 3%;
}


/* ============================================================
   FONT — 本文は Noto Sans JP（base.css 既定の M PLUS Rounded 1c にしない）
   ============================================================ */
.fontNotoSans,
.fontNotoSans *,
.caution,
.caution *,
ul.caution,
ul.caution li,
ul.caution li a {
    font-family: "Noto Sans JP", YakuHanJP, sans-serif !important;
}

ul.caution {
    line-height: 1.8;
}

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


/* ============================================================
   INTRO
   ============================================================ */
.p-intro .introTitle {
    width: 100%;
}

.p-intro .toOshitabiTop {
    margin: 5% auto;
    color: var(--color-sub4);
    border-color: var(--color-sub4);
}


/* ============================================================
   BUTTONS
   ★ 枠は border ではなく ::before で描く（外側の角丸を保ったまま内側を丸める）。
     inset ショートハンドは古い iOS Safari で効かないので top/right/bottom/left で書く。
   ============================================================ */
.loginRgisterButton {
    padding: 0.3rem 0.05rem;
    background: var(--color-sub2);
    position: relative;
    height: 0.70rem;
    border: 0;
    box-sizing: border-box;
}

.loginRgisterButton::before {
    content: '';
    position: absolute;
    top: 0.02rem;
    right: 0.02rem;
    bottom: 0.02rem;
    left: 0.02rem;
    border: 0.02rem solid var(--color-sub3);
    border-radius: 0.09rem;
    pointer-events: none;
}

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

.iconButton {
    height: 0.80rem;
    border-radius: 0.10rem;
    background: var(--color-sub2);
}

.iconButton::before {
    content: '';
    position: absolute;
    top: 0.02rem;
    right: 0.02rem;
    bottom: 0.02rem;
    left: 0.02rem;
    border: 0.02rem solid var(--color-sub3);
    border-radius: 0.09rem;
    pointer-events: none;
}

.iconButton .iconButtonText {
    font-size: 0.20rem;
}

.iconButton .icon {
    flex: 1.5;
}

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

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

.iconButton .icon .cameraIcon {
    width: 0.28rem;
    height: auto;
}

.iconButton .icon .lotteryIcon {
    width: 0.25rem;
    height: auto;
}

.p-shinkansen .trainButton .icon img {
    height: auto;
    width: 0.42rem;
}

/* 文字だけのサブ導線（応募ID確認）。左右のアイコン領域ごと省くので
   padding-right を殺して文字を中央に戻す */
.noIconButton {
    height: 0.56rem;
}

.noIconButton .iconButtonText {
    padding-right: unset;
}


/* ============================================================
   DISABLED — 形は活性とまったく同じ・色だけグレー（opacity は落とさない）
   ============================================================ */
.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;
    opacity: 1;
    border-radius: 0.10rem;
    box-shadow: none;
}

/* disabled の内側白枠も無効化（押せそうに見えないよう） */
.iconButton[disabled]::before,
.iconButton.disabled::before,
.iconButton:disabled::before {
    display: none;
}


/* ============================================================
   01 SPECIAL CONTENTS — 動画の期間帯
   コーディングの date.webp（第1弾 9.17 THU - 10.21 WED）をテキストで再現する。
   弾が3本あり帯画像は第1弾分しか支給されないため、全弾テキストで統一している。
   ============================================================ */
.dateBand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.10rem;
    margin: 4% auto;
    color: var(--color-sub4);
    font-family: var(--font-family-deco);
}

.dateBand .dateBandLabel {
    flex: none;
    background: var(--color-sub2);
    color: #fff;
    font-family: "Noto Sans JP", YakuHanJP, sans-serif;
    font-weight: 700;
    font-size: 0.15rem;
    line-height: 1;
    letter-spacing: 0.02em;
    padding: 0.055rem 0.10rem 0.06rem;
    border-radius: 0.03rem;
}

.dateBand .dateBandText {
    font-size: 0.26rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.dateBand .dateWeek {
    font-size: 0.14rem;
    margin-left: 0.02rem;
}

.dateBand .dateDash {
    margin: 0 0.06rem;
}


/* ============================================================
   02 PRESENT CAMPAIGN — ①ARフォトフレーム
   ============================================================ */
.arframeImgs {
    display: flex;
    width: 84%;
    margin: auto;
    gap: 0.2rem;
    margin-bottom: 5%;
}

.arframeImgs img {
    width: 0.9rem;
}

.arframeImgs img.arButton {
    cursor: pointer;
}


/* ============================================================
   02 PRESENT CAMPAIGN — ②プレゼント抽選
   ============================================================ */
.campaign-sheet {
    line-height: 1.9;
    margin: 4% auto 3%;
    color: var(--color-sub4);
}

.headline-amount {
    font-size: 0.20rem;
    color: var(--color-sub2);
    font-weight: 800;
}

.prizes {
    margin: 5% auto 3%;
}

.prize {
    margin: 5% auto 1%;
}

.section-banner {
    background-color: var(--color-sub5);
    color: var(--color-sub2);
    line-height: 2;
    margin: 1% auto 5%;
}

.campaign-link {
    display: block;
    margin: 5% auto;
    text-decoration: underline;
    color: var(--color-sub4);
}


/* ============================================================
   BUTTON — テンプレ既定の補完（base.css には無い分）
   ============================================================ */
button.loginRgisterButton {
    border: 0;
    font-family: inherit;
    font-size: inherit;
    /* ★ color は指定しない（.white-text より詳細度が高く、白文字を打ち消してしまう） */
}

.simpleButton {
    border-color: var(--color-sub4);
    color: var(--color-sub4);
}


/* ============================================================
   AR 付与結果ページ（ar/lottery.php）
   ============================================================ */
.arResultImg {
    width: 70%;
    margin: 5% auto;
}


/* ============================================================
   NOTICE — 付与ページが弾いた理由の表示（?arerror=…）
   ============================================================ */
.noticeBox {
    margin: 0 auto 0.14rem;
    padding: 0.10rem 0.12rem;
    border: 0.01rem solid #c00;
    border-radius: 0.04rem;
    background: #fff;
    color: #c00;
    line-height: 1.7;
    text-align: left;
}

/* ============================================================
   ALERT MODAL — 応募ID／識別IDのコピー完了通知（showAlert / closeAlert）
   マークアップは共有ヘッダーが出すので触らない。素の見た目は共有
   css/style_v2.css、そこに base.css が東海オレンジ（--color-tokai）で
   上塗りしている。ここで企画色（濃金 #9D8851）に寄せる。
   ★ 本文が読めない問題:
     base.css は #alertMessage を var(--color-text) で描くが、この企画の
     --color-text は薄金 #DAC181（コーディング指定）なので白地に溶ける。
     本文色は他の本文と同じ --color-sub4（#473B37）に上書きする。
   ★ 共有 CSS（css/style_v2.css）は全企画に波及するので触らない。
   ============================================================ */
#alertModal .modal-content {
    border-color: var(--color-sub2);
}

#alertModal #alertTitle {
    background: var(--color-sub2);
    color: #ffffff;
}

#alertModal #alertMessage {
    color: var(--color-sub4);
}

#alertModal .close-button {
    background: var(--color-sub2);
    border-color: var(--color-sub2);
    color: #ffffff;
    /* 企画の .iconButton と同じ「内側に薄金の細枠」を要素追加なしで再現する */
    box-shadow: inset 0 0 0 0.02rem var(--color-sub3);
}

#alertModal .close-button:hover {
    background: var(--color-sub2);
}
