@charset "UTF-8";

:root {
    --color-main: #ffffff;
    /* ページ背景色 */
    --color-sub1: #7B5B18;
    /* メインカラー（青：ボタン・ボーダー・見出し） */
    --color-sub2: #B48631;
    /* サブカラー（濃い青：グラデーション端） */
    --color-text: #7B5B18;
    /* テキストカラー */
}


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

.fontKaisei {
    font-family: "Kaisei Opti", serif;
}

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

.page-content {
    background-image: url(../img/bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 3%;
}

.p-intro {
    margin: auto;
}

.content-holder {
    margin: auto;
    margin-top: 0.10rem;
    border-radius: 0.1rem;
    padding: 3%;
    padding-top: 1.5%;
    background-color: #FFFAF0;
}

.p-intro .TitleBackground {
    background-image: url(../img/titleBack.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20% 0;
    margin: 0.10rem auto;
}

.p-intro .datebackground {
    background-image: url(../img/Rectangle.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.borderTopBottom {
    border-top: solid 0.02rem var(--color-sub1);
    border-bottom: solid 0.02rem var(--color-sub1);
    padding: 3%;
}

ul.caution {
    line-height: 1.8;
}

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

.loginRgisterButton {
    padding: 0.3rem 0.05rem;
    background-image: linear-gradient(#B48631, #8C6620);
    box-shadow: 0 0.03rem 0 #694508;
}

.textCenter {
    text-align: center;
}

.iconButton {
    height: 0.80rem;
    border-radius: 0.10rem;
    background-image: linear-gradient(#B48631, #8C6620);
    box-shadow: 0 0.03rem 0 #694508;
}

.iconButton::before {
    display: none;
}
.iconButton .iconButtonText {
    font-size: 0.20rem;
}
.p-external .content-holder,
.p-shinkansen .content-holder,
.p-externalAr .content-holder {
    padding-top: 5%;
}

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

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

.iconButton .icon {
    flex: 1.5;
}

.p-shinkansen .iconButton .icon img,
.p-externalAr .iconButton .icon img {
    width: 0.28rem;
    height: auto;
}


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

.p-externalAr .iconButton{
    margin: 5% auto 3%;
}
.font20 {
    font-size: 0.20rem;
}
.LocationRedeemRewards {
    border: var(--color-sub1) solid 0.01rem;
    margin: 5% auto;
}

.LocationRedeemRewardsTitle {
    text-align: center;
    padding: 2%;
    background-color: var(--color-sub1);
    color: white;
}

.LocationRedeemRewardsSub {
    padding: 3%;
    padding-top: 0;
}

.LocationRedeemRewardsSub p {
    margin: 2%;
}
.LocationRedeemRewardsSub .borderBottom{
    border-bottom: solid 0.01rem;
    margin: 3% auto;
}

/* .giftButton は .iconButton と同じ見た目にする（角丸・縁リングの独自指定は持たせない）。
   ★ coding では角丸 0.20rem ＋ マスクの縁リングが付いていたが、他のボタンと
     形が違って浮くため撤去。地色・高さ・影・非活性時の色は .iconButton の指定を共有する。 */
.giftButton {
    border-radius: 0.10rem;
}

.giftButton::before {
    display: none;
}
/* 結果画面・不正解一覧のサブボタンはログインボタンと同じ細長い形（アイコンなし）。
   <button> で使うのでブラウザ既定の枠線と font を打ち消す。 */
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;   /* アイコン分の右マージンを消して中央に置く */
}

.pinkTop {
    color: #FF3D78;
    margin-top: -17%;
}

.borderBottom {
    border-bottom: 0.02rem solid var(--color-sub1);
    margin: 5% auto;
}

.rowImgs {
    display: block;
    margin: 5% auto;
}

.rowImg {
    width: 100%;
    display: grid;
    gap: 0.10rem;
    justify-content: center;
    margin: 0 auto 5%;
}

.fourRow {
    grid-template-columns: repeat(4, 0.90rem);
}

.threeRow {
    grid-template-columns: repeat(3, 0.90rem);
}
.charaImg{
    display: block;
    width: 90%;
    margin: auto;
}
.margintop{
    margin-top: 1%;
    margin-bottom: 7%;
}

/* ============================================================
   実装側の追加（coding の CSS は上のブロックまで。ここから下は実装で必要になった分）
   ============================================================ */

/* 壁紙サムネ：獲得済みはタップで DL ページへ遷移する（文字データ「画像をタップして
   スマホ壁紙ページを表示できます」）。未獲得の「?」フレームは押せないままにする。 */
.rowImg img.switchPage {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rowImg img.switchPage:active {
    transform: scale(0.96);
}

/* ============================================================
   非活性ボタン（準備中 / 引換済み など）
   ★ 形は活性ボタンとまったく同じにして、色だけ落とす。
     coding 側の disabled ルールが box-shadow:none と opacity:0.7 を当てていて
     立体感と縁が消えていたため、こちらで上書きする（!important 同士なので
     この実装ブロックが後に来る＝勝つ）。
   ・角丸・高さ・影のオフセット・.giftButton の縁リングは活性と共通
   ・グラデーションの向きも活性と同じ（縦）。色だけグレーに置き換える
   ・白の共有アイコン（/icon/*.svg）が読める濃さを保つ
   ============================================================ */
.iconButton[disabled],
.iconButton.disabled,
.iconButton:disabled,
.iconButton[disabled].button-bg,
.iconButton.disabled.button-bg,
.iconButton:disabled.button-bg,
.giftButton[disabled],
.giftButton.disabled {
    background-color: transparent !important;
    background-image: linear-gradient(#B9B3A6, #8E8779) !important;
    box-shadow: 0 0.03rem 0 #6B665C !important;   /* 活性（#694508）と同じ形・色だけ変更 */
    opacity: 1 !important;
    color: #fff !important;
    pointer-events: none !important;
    cursor: default !important;
}


/* 期間テキストは年をまたがないので1行に収める（datebackground の中） */
.datebackground .text-lg {
    display: inline-block;
    line-height: 1.6;
}


/* ============================================================
   クイズ結果画面（quiz_result_desigin.png 準拠）
   ・カード上部の金の飾りは .content-holder-wrapper のコーナーで表現するので
     ここでは帯（vintageCornerFrame）を敷かない
   ・点数の後ろにバラ（bg_bara）を敷き、数字は前面
   ============================================================ */
/* 点数の背後にバラ。数字（.score__number）と「点」は前面に出す */
.score.scoreRose {
    position: relative;
    z-index: 0;
}

.score.scoreRose::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 3.30rem;
    height: 1.30rem;   /* 素材 1080×427 の比率（3.30 × 427 / 1080 ≒ 1.30） */
    transform: translate(-50%, -50%);
    background-image: url(../img/bg_bara.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    pointer-events: none;
}

.score.scoreRose .score__number,
.score.scoreRose .score__text {
    position: relative;
    z-index: 1;
}


/* ============================================================
   下層ページ（クイズ等）の飾りコーナー — 上部の左右のみ・カードの内側
   ★ 置き場所は白カード（.content-holder）の内側。上辺の左右に1枚ずつ。
     下側は付けない（指示どおり）。
   ★ トップの .content-holder は .content-holder-wrapper で包まれていないので
     この指定は当たらない（＝下層ページだけ）。
   ★ 背景は2枚重ね。カード自身の背景色より前に出るので、上部のテキストと
     重なる場合は padding-top で逃がす。
   ============================================================ */
.content-holder-wrapper .content-holder {
    /* ★ 幅・左右余白・角丸・地色はトップと同じものを使う
       （base.css の width:96% ＋ custom.css の margin:auto / padding:3% / radius / #FFFAF0）。
       ここでは上部の飾りぶんの余白と背景画像だけを足す＝端から端にならない。 */
    padding-top: 0.34rem;
    background-color: #FFFAF0;
    background-image:
        url(../img/corner_lt.webp),
        url(../img/corner_rt.webp);
    background-repeat: no-repeat, no-repeat;
    background-position: left 0.06rem top 0.06rem, right 0.06rem top 0.06rem;
    background-size: 0.42rem auto, 0.42rem auto;
}


/* ============================================================
   クイズ開始画面の見出し
   ・「桜蘭高校ホスト部 オリジナルクイズに挑戦！」はトップと同じ
     色（.pinkTop = #FF3D78）・字体（Kaisei Opti）。背景に bg_deco を敷く
   ・コース名（初級編 / 挑戦編）は Kaisei Opti ＋ 両サイドにライン（0.01rem）
   ============================================================ */
.quizLead {
    /* ★ .pinkTop は トップ用に margin-top:-17%（見出し画像へ食い込ませる指定）を持つ。
       クイズ側は上に画像が無いので打ち消す。 */
    margin-top: 0 !important;
    background-image: url(../img/bg_deco.webp);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    padding: 0.14rem 0 0.06rem;
    margin-top: 0;
}

/* 中央のテキストの左右に線を伸ばす（テキスト幅に応じて自動で伸縮） */
.courseLabel {
    display: flex;
    align-items: center;
    gap: 0.10rem;
    width: 92%;
    margin: 0.10rem auto 0.06rem;
    font-size: 0.22rem;
    line-height: 1.4;
    color: var(--color-text);
    white-space: nowrap;
}

.courseLabel::before,
.courseLabel::after {
    content: '';
    flex: 1;
    height: 0.01rem;
    background-color: var(--color-sub1);
}
