/* =====================================================
全体の基本設定
===================================================== */


/* ラリーイメージカラー初期値 */
:root {
    --rally-theme-color: #1a4b62;
    --rally-theme-rgb: 26, 75, 98;
    --rally-header-footer-text-color: #ffffff;
}


/* bodyとhtmlを画面高さいっぱいにする */
html,
body {
    height: 100%;
    margin: 0;
}

/* body基本設定 */
body {
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue",
        Arial,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Noto Sans JP",
        sans-serif;
    text-align: center;
    background: var(--rally-theme-color);
    /* ヘッダーとフッターに合わせた全面背景色 ｜【注意】メインコンテンツの背景色の指定がない場合は全面この色になる。 */
    margin: 0;
}


/* 背景色変え */
.help-background {
    background: #777;
}


/*  中見出し（章のタイトル）：complete.php | already_submitted.html |thanks.html */
h2 {
    font-size: 22px;
    margin: 10px 0 20px;
}

h3 {
    font-size: 24px;
    margin: 0;
}

/* リンクの色を変えずに文字色を継承 */
a {
    color: inherit;
}

/* ホバー時も色を変えない場合 */
a:hover,
a:active,
a:visited {
    /* color: inherit; */
    text-decoration: none;
}

/* 共通パーツ */
.space10 {
    padding-top: 10px;
}

.space30 {
    padding-top: 30px;
}

.space60 {
    padding-top: 60px;
}

.space90 {
    padding-top: 90px;
}

.fw500 {
    font-weight: 500;
}

.fw600 {
    font-weight: 600;
}

.fw700 {
    font-weight: 700;
}

.no-margin {
    margin-top: 0;
}

.em-txt {
    font-weight: 700;
    color: rgb(255, 102, 0);
}

/* 画面回転・PC閲覧メッセージ ほか… */
.display-none {
    display: none;
}

/* reset_password 用 */
.red-characters {
    color: red;
}

/* location 用 */
.img-w100 {
    width: 100%;
    height: 100%;
}


/* 全体ローディング（表示遅延対策） */
#globalLoading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* スピナーの外枠 */
#globalLoading .global-loader {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 100%;
    transform: translate(-50%, -50%)
}

/* スピナーの共通パーツ */
#globalLoading .global-loader::before,
#globalLoading .global-loader::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: calc(60px / 10) solid transparent;
    box-sizing: border-box;
}

/* 上側の半円 */
#globalLoading .global-loader::before {
    border-top-color: var(--rally-theme-color);
    animation: half-circle-spinner-animation 1s infinite;
}

/* 下側の半円 */
#globalLoading .global-loader::after {
    border-bottom-color: var(--rally-theme-color);
    animation: half-circle-spinner-animation 1s infinite alternate;
}

/* テキストのスタイル */
#globalLoading p {
    margin-top: 15px;
    color: var(--rally-theme-color);
    font-weight: bold;
    font-family: sans-serif;
}

/* アニメーション */
@keyframes half-circle-spinner-animation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 非表示制御（JS連動用） */
#globalLoading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}



/* =======================================================================
マニュアル｜ヘッダー、ボタン、フッターの変更は下記カラーコードを置換
            共通|#1a4b62  ユーザー登録|#ab4db6  パスワードリセット|#b6ac4d
======================================================================= */

/* ヘッダー｜色変えあり（stamp-card.html | complete.php | thanks.html | already_submitted.html） */
.header {
    background: var(--rally-theme-color);
    color: var(--rally-header-footer-text-color);
    padding: 15px;
    font-size: 26px;
    font-weight: 800;
}

/* help.html */
.help-header {
    background: #777;
    color: white;
    padding: 15px;
    font-size: 26px;
    font-weight: 800;
}



/* ホームページ（index.html） */
/* コンテナ */
.container {
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* メイン画像 */
.main-img {
    position: relative;
}

/* 背景画像 */
.base-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ラベル画像 */
.overlay-img {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: auto;
}


/* コンテンツ */
.content {
    padding: 15px;
}

.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.period {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}


/* ボタン */
.button-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.card-btn {
    flex: 1;
    background: rgba(var(--rally-theme-rgb), 0.1);
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(var(--rally-theme-rgb), 0.6);
    transition: all 0.1s ease;
    text-align: center;
}

.card-btn img {
    width: 99px;
    height: 100px;
    margin: 0 auto 5px;
    display: block;
}

.card-btn-txt {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #1a4b62;
}

.card-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 2px rgba(var(--rally-theme-rgb), 0.5);
}


/* ユーザー登録案内｜お知らせ */
.information {
    background: #d0e9f8;
    border-radius: 10px;
    padding: 15px;
}

.notice {
    background: rgba(var(--rally-theme-rgb), 0.3);
    border-radius: 10px;
    padding: 15px;
}

.information-title,
.notice-title {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.information-text,
.notice-text {
    font-size: 15px;
    line-height: 1.3;
    color: #333;
    text-align: justify;
}

.information a,
.notice a {
    color: red;
    font-size: 16px;
    font-weight: 800;
    /* text-decoration: none; */
}



/* メインコンテンツ（index.html | stamp-spot.html | already_submitted.html） */
#mainContent {
    flex: 1;
    box-sizing: border-box;
    background-color: #fff;
}



/* スタンプスポットマップ 画面全体画像｜イメージマップ（stamp-spot.html） */
.full-img {
    width: 100%;
    height: auto;
}

/* イメージマップ タップ演出 */
.image-map-tapped {
    opacity: 0.7;
    transition: opacity 0.15s ease;
}



/* リンク要素の「テキスト選択」を無効化（index.html | stamp-spot.html（画像タッチでテキスト選択無効）） */
img,
a,
button {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}



/* ポップアップ（stamp-spot.html | stamp-card.html） */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    overflow: auto;
}

.popupContent {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 閉じるボタン */
/* PC・スマホどちらも正方形 */
.closeBtn {
    position: fixed;
    top: 15px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: #fff;
    padding-bottom: 7px;
    cursor: pointer;
    z-index: 10000;
    background: rgba(var(--rally-theme-rgb), 0.3);
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}



/* ポップアップ｜ロケーション説明（location_a.html ～ location_i.html） */
/* ロケーションの読み仮名 */
.yomigana {
    font-size: 14px;
    margin-top: -20px;
}

/* ロケーションの説明文 */
.location_intro,
.qr-location-info {
    text-align: justify;
    margin: 10px 10px;
}



/* ナビボタン */
.navButtonArea {
    margin-top: 0px;
}

.navButton {
    grid-area: navButton;
    width: 90%;
    max-width: 400px;
    margin-top: 22px;
    padding: 0 0 13px;
    font-size: 18px;
    background: var(--rally-theme-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* 現在地から観光スポットまでの移動時間表示 */
.travelTime-grid {
    display: grid;
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 0;
    grid-template-areas:
        "time  navButton"
        "walk  navButton"
        "bicycle navButton"
        "car  navButton";
}

.time {
    grid-area: time;
    text-align: left;
    margin-left: 10px;
    font-weight: 600;
}

.walk {
    grid-area: walk;
    text-align: left;
    margin-left: 30px;
}

.bicycle {
    grid-area: bicycle;
    text-align: left;
    margin-left: 30px;
}

.car {
    grid-area: car;
    text-align: left;
    margin-left: 30px;
}



/* 入力欄共通スタイル
register.html | forgot_password.html | reset_password.html |stamp-card.html |complete.php */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 300px;
    height: 40px;
    margin: 4px 0;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* フォーカス時の枠線カラー */
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #007BFF;
    outline: none;
    /* デフォルトのアウトラインを消す */
}

/* 送信完了メッセージ専用 reset_password.html | forgot_password.html*/
#doneArea button {
    margin-top: 20px;
    padding: 10px 20px;
}



/* スタンプラリーについて｜利用規約（register_guide.html） */
.register_guide-text {
    width: 80%;
    margin: auto;
    text-align: justify;
}

.register_guide-list {
    width: 74%;
    margin: auto;
    text-align: justify;
    padding-left: 1.5em;
    line-height: 1.8;
}


/* ユーザー登録ボタン */
.register-btn {
    width: 80%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    transition: 0.2s;
}


/* 無効状態 */
.register-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}



/* ログイン画面 チェック項目位置調整（stamp-card.html） */

/* パスワード表示 → 右寄せ */
.show-password {
    display: block;
    width: 300px;
    margin: 0 auto 0;
    text-align: right;
    font-size: 14px;
}

/* 自動ログイン → 左寄せ */
.remember-login {
    display: block;
    width: 300px;
    margin: 0 auto 0;
    text-align: left;
    font-size: 14px;
}



/* パスワードを忘れた場合（forgot_password.html） */
/* ローディングアニメーション */
.send-loader {
    width: 50px;
    aspect-ratio: 1;
    --_c: no-repeat radial-gradient(
        farthest-side,
        var(--rally-theme-color) 92%,
        #0000
    );
    background:
        var(--_c) top,
        var(--_c) left,
        var(--_c) right,
        var(--_c) bottom;
    background-size: 12px 12px;
    animation: l7 1s infinite;
    margin: 50px auto;
}

@keyframes l7 {
    to {
        transform: rotate(.5turn);
    }
}

.load_anima {
    text-align: center;
}

.load_anima_fw400 {
    font-weight: 400;
    margin-top: 30%;
}

.note {
    font-weight: 600;
    /* color: red; */
}




/* 画面切替用クラス
register.html | forgot_password.html | reset_password.html |stamp-card.html */
/* 初期非表示 */
.screen {
    display: none;
}

/* active時のみ表示 */
.screen.active {
    display: block;
}



/* スタンプラリー設定（stamp-card.php） */
.header-flex {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    /*
    既存ヘッダーの文字領域を確保する。
    .header の上下 padding: 15px はそのまま加算される。
    */
    min-height: 32px;

    text-align: center;
}


/* ラリー名表示領域 */
.header-rally-name-area {
    position: absolute;
    top: 50%;
    left: 50%;

    /* 左右に同じ安全領域を確保する。これにより、ラリー名はヘッダー全体の中央を維持しながら、右側のギアにも重ならない。*/
    width: calc(100% - 2 * clamp(68px,
                18vw,
                84px));

    height: 32px;
    min-width: 0;
    overflow: visible;

    transform:
        translate(-50%,
            -50%);

    text-align: center;
    pointer-events: none;
}

/* ラリー名 */
.header-rally-name {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: max-content;
    /* 必ず1行で表示 */
    white-space: nowrap;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    transform:
        translate(-50%,
            -50%) scaleX(var(--rally-name-scale,
                1));

    transform-origin:
        center center;
}


/* 設定アイコン右上 */
.setting-link {
    position: absolute;
    top: 0;
    right: 4px;
    bottom: 0;
    width: 72px;
    height: 72px;
    margin: auto 0;
    padding: 4px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    z-index: 30;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.setting-link img {
    display: block;
    width: 44px;
    height: 44px;
}

.setting-link:active {
    transform: scale(0.95);
}



/* カード
register.html | forgot_password.html | reset_password.html | stamp-card.html */
.card {
    background: white;
    width: 80%;
    /* height: 80vh; */
    margin: 20px auto;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}




/* スタンプグリッド（4スポット・9スポット切替） */

/* スタンプグリッドとコンプリート画像の基準 */
.stamp-grid-wrap {
    position: relative;
    width: 100%;
    margin-top: 15px;
}

/* スタンプグリッド共通 */
.grid {
    display: grid;
    width: 100%;
    margin: 0 auto;
    gap: 10px;
    box-sizing: border-box;
}

/* 各スタンプセル */
.grid .cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    cursor: pointer;
}

/* スタンプ画像共通 */
.grid .cell img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* 9スポット（3列×3行）*/
.grid.stamp-grid-9 {
    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));
    max-width: 320px;
}

/* 9スポット時のスタンプ画像 */
.grid.stamp-grid-9 .cell img {
    width: 105%;
    /* 80% */
}



/* 4スポット（2列×2行）*/
.grid.stamp-grid-4 {
    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));
    max-width: 300px;
    column-gap: 26px;
    row-gap: 24px;
}

/* 4スポット時のスタンプ画像 */
.grid.stamp-grid-4 .cell img {
    width: 92%;
}



/* コンプリート画像 */
.complete-stamp-image {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    height: auto;
    opacity: 0.42;
    transform:
        translate(-50%,
            -50%) rotate(-7deg);
    pointer-events: none;
    z-index: 10;
}

/* 9スポット用コンプリート画像 */
.stamp-grid-wrap-9 .complete-stamp-image {
    width: 94%;
    max-width: 320px;
}

/* 4スポット用コンプリート画像 */
.stamp-grid-wrap-4 .complete-stamp-image {
    width: 88%;
    max-width: 260px;
}

/* 非表示を最優先 */
.complete-stamp-image.display-none {
    display: none;
}


/* 小型スマートフォン */
@media screen and (max-width: 360px) {

    .grid.stamp-grid-9 {
        gap: 7px;
    }

    .grid.stamp-grid-4 {
        max-width: 270px;
        column-gap: 18px;
        row-gap: 18px;
    }

    .stamp-grid-wrap-4 .complete-stamp-image {
        width: 86%;
    }

}



/* QRリーダー専用（stamp-card.html） */
#reader {
    width: 300px;
    max-width: 400px;
    margin: 20px auto;
}



/* スタンプカード｜コンプリートメッセージ（stamp-card.html） */
.stamp-message,
.complete-message {
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 0.6s ease;
}

.stamp-message img,
.complete-message img {
    width: 80%;
    max-width: 300px;
    margin-top: 10px;
}

/* メッセージ１ */
.stamp-msg1,
.complete-msg1 {
    margin: 0px;
    font-size: 20px;
    font-weight: 800;
}

/* メッセージ２ */
.stamp-msg2,
.complete-msg2 {
    margin: 0px;
    text-align: justify;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* 応募フォーム（complete.php） */
/* フォーム全体 */
#surveyForm {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    text-align: left;
    padding-top: 10px;
}

/* 質問テキスト */
#surveyForm p {
    font-size: 16px;
    margin: 15px 0 5px;
    font-weight: 600;
}

/* 質問テキスト 改行時のインデント */
.surveyForm-ind {
    padding-left: 2em;
    text-indent: -2em;
}

/* 氏名、住所、電話番号入力の説明 */
.surveyForm-expl {
    font-size: 14px;
    margin: 15px 0 5px;
}

/* セレクトボックス */
#surveyForm select {
    width: 100%;
    height: 44px;
    padding: 8px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* テキスト入力 自動拡張テキストエリア（ご感想…） */
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
}

/* テキスト入力（氏名・住所・電話番号） */
#surveyForm input[type="text"],
#surveyForm input[type="tel"] {
    width: 100%;
    height: 44px;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* フォーカス時 */
textarea:focus,
#surveyForm input:focus,
#surveyForm select:focus {
    border-color: var(--rally-theme-color);
    outline: none;
}

/* ボタン調整 */
#surveyForm button {
    width: 100%;
    font-size: 18px;
    padding: 14px;
    margin: 20px 0 50px 0;
}


/* 確認画面の入力内容 */
/* 確認内容全体 */
#confirmContent {
    width: 100%;
    text-align: left;
}

/* 1項目 */
.survey-confirm-item {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

/* 項目名・質問文 */
.survey-confirm-label {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

/* 入力・回答内容 */
.survey-confirm-value {
    padding-left: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    overflow-wrap: anywhere;
}

/* 確認画面ボタン */
#confirmScreen button {
    width: 100%;
    margin-top: 15px;
    font-size: 18px;
}

/* 未入力項目の赤枠 */
.input-error {
    border: 2px solid red !important;
    box-shadow: 0 0 5px red;
}

/* 確認画面全体 */
#confirmScreen {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    padding: 0;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    text-align: left;
    z-index: 1000;
}

/* 確認画面ヘッダー */
.confirm-screen-header {
    flex: 0 0 auto;
    padding: 15px;
    background: var(--rally-theme-color);
    color: var(--rally-header-footer-text-color);
    font-size: 26px;
    font-weight: 800;
    text-align: center;
}

/* 確認画面メイン */
.confirm-screen-main {
    flex: 1 1 auto;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
}

/* 確認画面タイトル */
.confirm-screen-main h2 {
    margin: 10px 0 20px;
    text-align: center;
}

/* 確認画面フッター */
.confirm-screen-footer {
    flex: 0 0 60px;
    width: 100%;
    height: 60px;
    text-align: center;
    box-sizing: border-box;
}

/* フッター内 */
.confirm-screen-footer .footer-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* コピーライト */
.confirm-screen-footer .copyright {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
}



/* お礼メッセージ（thanks.html｜withdraw_complete.html） */
.thanks-text {
    width: 80%;
    margin: auto;
    text-align: justify;
}

.withdraw-text {
    width: 80%;
    margin: auto;
    text-align: center;
}



/* 仮登録完了画面（register_temp_done.html） */
.register-done-text {
    width: 100%;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
    box-sizing: border-box;
}

.register-done-home-btn {
    display: block;
    width: 80%;
    margin: 60px auto 0;
    padding: 14px;
    border-radius: 10px;
    background: var(--rally-theme-color);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.register-done-home-btn:active {
    transform: scale(0.985);
}




/* 設定ページ専用（stamp-card.php） */
/* 設定カード */
.setting-card {
    margin-top: 20px;
    padding: 20px 15px 30px;
}

/* 完了メッセージ */
.setting-message {
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(var(--rally-theme-rgb), 0.08);
    color: var(--rally-theme-color);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* 情報ブロック */
.setting-block {
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
    text-align: left;
}

/* ラベル */
.setting-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 700;
}

/* 値 */
.setting-value {
    font-size: 18px;
    color: #222;
    text-align: center;
    word-break: break-all;
    line-height: 1.5;
}

/* フォーム余白 */
.setting-form {
    margin: 0;
}

/* ボタン共通 */
.setting-btn {
    width: 90%;
    margin: 14px auto 0;
    padding: 14px 16px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    display: block;
    white-space: nowrap;
}

/* 戻る */
.back-btn {
    background: #777;
    color: #fff;
}

/* 戻る下の広い余白 */
.setting-back-space {
    margin-bottom: 70px;
}

/* 危険ボタン */
.danger-btn {
    background: #d93636;
    color: #fff;
}

/* 押下時 */
.setting-btn:active {
    transform: scale(0.985);
}

/* 小型スマホ */
@media (max-width:360px) {

    .setting-card {
        width: 88%;
        padding: 18px 12px 26px;
    }

    .setting-btn {
        font-size: 15px;
        padding: 13px;
        width: 90%;
    }

    .setting-value {
        font-size: 15px;
    }

    .setting-back-space {
        margin-bottom: 55px;
    }
}



/* ヘルプ（help.html） */
.guidance {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #777;
    margin: 20px 0;
}

.help-item {
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    color: #777;
    margin: 0;
}

.help-intro {
    font-size: 16px;
    font-weight: 400;
    text-align: justify;
    margin: 0;
}

.emoji {
    font-size: 26px;
    vertical-align: -2px;
}

.mail-link {
    font-size: 18px;
    font-weight: 500;
}

/* HELPアコーディオン */
.accordion-header {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.accordion-content {
    cursor: pointer;
    display: none;
}

.accordion-content a {
    font-size: 20px;
}

.accordion-content.open {
    display: block;
}



/* レスキュー対策 */
.rescue-btn {
    width: 80%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #333;
    transition: 0.2s;
}

.rescue-link {
    display: block;
    /* インラインからブロック要素に変えて横幅いっぱいに広げる */
    text-align: center;
    /* 中にあるボタンを中央寄せにする */
}




/* ボタン共通
register.html | forgot_password.html | reset_password.html | stamp-card.html | complete.php | thanks.html | already_submitted.html */
button {
    width: 90%;
    height: 60px;
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background: var(--rally-theme-color);
    color: white;
}

/* ボタンサイズ変え */
.others-btn {
    width: 40%;
}

/* ボタン色変え */
.register-btn {
    background: var(--rally-theme-color);
}

.send-btn {
    background: #3190bd;
}

/* スタンプ画面の通常ボタン | stamp-card.html */
#qrButton {
    background-color: var(--rally-theme-color);
    color: white;
    padding: 10px 20px;
    margin: 30px 0 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* スタンプ画面のコンプリート状態 | stamp-card.html */
#qrButton.complete {
    background-color: red;
}



/* 戻るボタン（stamp-spot.html） */
.checkpoint_back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 42px;
    height: 42px;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    color: #333;
    z-index: 9999;
}

/* 矢印 */
.checkpoint_back-btn .arrow {
    width: 12px;
    height: 12px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    margin-left: 6px;
    transform: rotate(45deg);
}



/* フッター全体 */
#footer {
    /*position: fixed;  画面下に固定 */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 88px;
    background-color: var(--rally-theme-color);
    color: var(--rally-header-footer-text-color);
    text-align: center;
    line-height: 24px;
    z-index: 999;
}

#footer.help-footer {
    background: #777;
    color: #fff;
}

/* 内側 */
#footer .footer-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 1% 10% 0;
    box-sizing: border-box;
}

/* リンク2つを左右配置 */
#footer .footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

/* リンク文字 */
#footer .footer-nav a {
    color: var(--rally-header-footer-text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
}

/* ヘルプ画面は白文字固定 */
#footer.help-footer .footer-nav a {
    color: #fff;
}

/* hover */
#footer .footer-nav a:hover {
    text-decoration: underline;
}

/* コピーライト */
#footer .copyright {
    font-size: 16px;
    font-weight: 300;
}



/* 共通フッター（シングル）固定
register.html | forgot_password.html | reset_password.html | complete.php | thanks.html | already_submitted.html */
.footer-s {
    /*position: fixed;   画面下に固定 */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    text-align: center;
    line-height: 24px;
    z-index: 999;
}

/* フッター色変え */
.footer-s_main {
    background-color: var(--rally-theme-color);
    color: var(--rally-header-footer-text-color);
}

/* シングルフッター内の copyright */
#footer-s .copyright {
    font-size: 16px;
    font-weight: 300;
}

/* 共通説明文 forgot_password.html | register.html | reset_password.html */
.intro {
    text-align: justify;
}

/* 左寄せ（デフォルト） register.html */
.label-left {
    text-align: left;
    display: block;
    /* ブロック要素にすることで text-align が効く */
}


/* 回転・PC閲覧メッセージ共通 */
#rotateMessage,
#pcMessage {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 9999;
}

/* メッセージ本文 */
#rotateMessage p,
#pcMessage p {
    font-size: 20px;
    margin: 10px 0;
}


/* エラーメッセージ（1行 → 中央揃え｜複数行 → 左揃え） */
#errorMessage {
    text-align: center;
}

#errorMessage span {
    display: inline-block;
    text-align: left;
    white-space: pre-line;
    max-width: 85%;
    padding: 0 12px;
    box-sizing: border-box;
}


/* テキストマーキングライン */
.mark20 {
    background: linear-gradient(transparent 20%, yellow 0%);
}


/* 店舗詳細：アクセス情報 */
.access-info-row {
    display: flex;
    align-items: flex-start;
}

.access-info-icon {
    flex: 0 0 1.5em;
    line-height: 1.6;
}

.access-info-text {
    flex: 1;
    line-height: 1.6;
}



/* =========================
GPS判定結果 動画画面
========================= */

#gpsMovieScreen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    z-index: 9999;
}

.gps-movie-area {
    width: 100%;
    height: 100%;
}

#gpsResultMovie {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}