body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
}

/* ===== 全体ラッパー ===== */
.page {
    max-width: 960px;   /* PC時の全体幅 */
    margin: 0 auto;
    padding: 0 16px;    /* スマホ左右余白 */
}


/* ===== トップバナー ===== */
.top-banner img {
    width: 100%;
    display: block;
}


/* ===== イベント説明エリア ===== */

/* 見出し */
.event-title {
    font-size: 22px;
    margin: 20px 0 10px;
    font-weight: 700;
}
.event-title.center {
    text-align: center;
}


/* イベント概要画像 */
.event-image {
    max-width: 720px;   /* 謎解き・プレゼントと揃える */
    margin: 0 auto 40px;
}

.event-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 遊び方（画像） ===== */
.howto-section {
    background: #195095;   /* 指定の背景色 */
    padding: 40px 0;       /* 上下余白 */
}

.howto-inner {
    max-width: 720px;      /* 他と揃える */
    margin: 0 auto;
    padding: 0 16px;       /* スマホ左右余白 */
}

.howto-inner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 遊び方 */
.howto h3 {
    font-size: 18px;
    margin: 15px 0 5px;
}
.howto p {
    margin: 0 0 15px;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== PC時：イベント説明・遊び方画像を小さく ===== */
@media (min-width: 768px) {

    .event-image img,
    .howto-inner img {
        width: 70%;
        margin: 0 auto;   /* 中央寄せ */
    }

}

/* ===== スマホ時：遊び方画像を大きく ===== */
@media (max-width: 767px) {

    .howto-inner img {
        width: 110%;
        max-width: none;
        margin-left: -5%;
    }

}


/* 対象スポット一覧 */
.spot-area {
    text-align: center;
    margin: 15px 0;
}

/* ===== 各スポットの地図を見る（濃い青の縁付き） ===== */
.spot-link {
    display: inline-block;
    padding: 14px 28px;
    min-width: 240px;

    background: #1e8acb;          /* ← 単色 */
    color: #fff;
    text-decoration: none;

    border-radius: 10px;
    border: 2px solid #156ea0;    /* 濃い青の縁 */

    font-size: 16px;
    font-weight: 700;

    box-shadow: 0 2px 6px rgba(0,0,0,0.10);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

@media (hover: hover) {
    .spot-link:hover {
        transform: translateY(-1px);          /* ← ほんの少し浮く */
        box-shadow: 0 5px 12px rgba(0,0,0,0.15);
        filter: brightness(1.06);              /* ← 少しだけ明るく */
    }
}




/* ===== 県共通エリア ===== */

.pref-title {
    margin: 0;
    display: flex;
    align-items: center;
}

.pref-title img {
    height: 60px;       /* ← ここでサイズ統一 */
    width: auto;
    display: block;
}

.pref-section {
    margin: 0 ;
    padding: 40px 10px;
    text-align: center;
}

.title-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.title-area h2 {
    margin: 0;
    font-size: 32px;
}

.pref-character {
    width: 90px; /* キャラ画像大きく */
    height: auto;
}

.pref-section.miyazaki .pref-character {
    width: 110px;   /* 90px → 110px */
}

.pref-section.kumamoto .pref-character {
    width: 80px;   /* 90px → 80px */
}

/* 変更なし */
.pref-section.kagoshima .pref-character {
    width: 90px;
}




/* ● 位置をタイトルのすぐ下へ */
.dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 20px;
}

.dot {
    width: 30px;
    height: 30px;
    border-width: 3px;   /* 太さも少し強化 */
    background: #fff;
    border: 2px solid #aaa;
    border-radius: 50%;
}

/* ===== ナゾブロック ===== */
.quiz-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.block {
    padding: 12px 8px;
    color: #fff;
    border-radius: 12px;
    text-align: center;
}

.block h3 {
    margin-top: 0;
}

/* 背景色（テーマ別） */
.green  { background: #76782d; } /* 自然 */
.blue   { background: #4198b1; } /* 文化 */
.orange { background: #895e49; } /* 歴史 */
.red    { background: #703f81; } /* 西南戦争 */



/* 入力欄の箱 */
.answer-area {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;

    max-width: 260px;      /* ← ヒントボタンと同じ */
    margin-left: auto;
    margin-right: auto;
}

.answer-area input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;

    border-radius: 8px;

    /* 黒い縁・影を完全に消す */
    border: 2px solid #ddd;
    box-shadow: none;
    outline: none;

    background: #fff;
}

.answer-area input:focus {
    border-color: #999;   /* ボタンと同系色 */
}


@media (max-width: 767px) {
    .answer-area {
        max-width: 100%;
    }

    .hint-box {
        max-width: 100%;
    }
}


/* ボタンエリア */
.hint-box {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 260px;   /* ← ここが肝 */
    margin: 0 auto;
}

/* 共通 */
.hint-box button {
    flex: 1;
    height: 40px;
    padding: 0;

    font-size: 14px;
    font-weight: 600;

    border-radius: 8px;
    cursor: pointer;

    /* 今風：弱い影 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease,
        border-color 0.15s ease;
}

@media (hover: hover) {
    .hint-box button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.16);
    }
}

.hint-box button:active {
    transform: translateY(0);          /* ← 押し込み */
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* ヒント（控えめ） */
.hint-btn {
    background: #f2f2f2;
    color: #555;
    border: 2px solid #555; 
}

@media (hover: hover) {
    .hint-btn:hover {
        background: #e8e8e8;
        border-color: #666;
    }
}

/* 答える（主役） */
.submit-btn {
    background: #666 ;        /* 薄いグレー */
    color: #fff;
    border: 2px solid #ccc;     /* 縁を付ける */
}

@media (hover: hover) {
    .submit-btn:hover {
        background: #555;
        border-color: #bbb;
    }
}


/* 正解時 */
.block.cleared .clear-banner {
    display: flex;
}

/* ===== モーダル共通 ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);

  display: flex;                 /* ← 常にflex */
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.25s ease;
  z-index: 9999;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 中身 */
.modal-content {
  position: relative;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  max-width: 90vw;

  max-height:100%;
  height: auto;
  overflow-y: auto;

  text-align: center;
}

/* ×ボタン */
.modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

/* 画像 */
#modalImage {
  display: block;

  /* ★ imgは親幅に従わせる */
  width: 100%;
  height: auto;

  /* ★ PCで止める */
  max-width: 720px;

  /* ★ 縦は画面基準 */
  max-height: 80vh;

  object-fit: contain;
}


/* 準備中 */
#modalPlaceholder {
  display: none;
  padding: 32px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #555;
}

/* 背景スクロール防止 */
body.modal-open {
  overflow: hidden;
}


@supports (-webkit-touch-callout: none) {
  #modalImage {
    max-height: 80%;
  }
}



/* ===== ドット（テーマ色連動） ===== */
.dot.active.nature {
    background: #76782d;
    border-color: #76782d;
}

.dot.active.culture {
    background: #4198b1;
    border-color: #4198b1;
}

.dot.active.history {
    background: #895e49;
    border-color: #895e49;
}

.dot.active.seinan {
    background: #703f81;
    border-color: #703f81;
}


/* ===== 県別 謎解きエリア背景 ===== */

/* 中身はプレゼントと同じ幅 */
.pref-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 県別背景色 */
.pref-section.kumamoto {
    background: #e6f1e3;   /* 緑系（熊本） */
}

.pref-section.miyazaki {
    background: #e3f2f6;   /* 水色（宮崎） */
}

.pref-section.kagoshima {
    background: #f6ede3;   /* オレンジ系（鹿児島） */
}


/* ===== プレゼントエリア（画像のみ） ===== */
.present-section {
    background: #f5f5f5;
    padding: 40px 0;
    margin-bottom: 0;
    text-align: center;
}

.present-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 共通画像 */
.present-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* タイトルと賞画像の間隔 */
.present-image.title {
    margin-bottom: 24px;
}

.present-image.prizes {
    margin-bottom: 0;
}

/* PC時は少し縮小 */
@media (min-width: 768px) {
    .present-image img {
        width: 100%;
        margin: 0 auto;
    }
}

/* ===== スマホ時：左右余白を狭くする ===== */
@media (max-width: 767px) {

    .page {
        padding-left: 2%;
        padding-right: 2%;
    }

    .present-inner {
        padding-left: 0;
        padding-right: 0;
    }

}

/* ===== PC / SP 表示切り替え ===== */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

@media (max-width: 767px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
}

/* ===== 応募ボタン ===== */

.entry-note {
    margin: 20px 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* ボタン並び */
.prize-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ← 常に4列 */
    gap: 12px;
    max-width: 720px;   /* 画像と揃える */
    margin: 0 auto;
}



/* ラッパー（フタ用） */
.prize-wrap {
    position: relative;
    width: 100%;      /* ← 追加 */
    display: block;   /* ← inline-block をやめる */
}


/* ===== 応募ボタン（黄色＋縁あり） ===== */
.prize-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 0;
    text-align: center;

    background: #ffd84d;
    color: #333;

    border: 2px solid #e6b800;   /* ← 濃い黄色の縁 */
    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    /* 弱めの影（今風） */
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}




@media (hover: hover) {
    .prize-btn:hover {
        background: #ffdf66;
        border-color: #d9ad00;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.16);
    }
}

.prize-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.prize-btn.loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: progress;
}

/* ===== ブロック中（グレー表示） ===== */
.prize-wrap.locked .prize-btn {
    background: #e0e0e0;
    color: #888;
    box-shadow: none;
}

/* フタ（クリック防止） */
.prize-lock {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    cursor: pointer;   /* ← 指 */
    z-index: 2;
}

.prize-wrap.locked:hover .prize-btn {
  filter: brightness(0.95);
}


/* 解放時（将来JS用） */
.prize-wrap.unlocked .prize-lock {
    display: none;
}

/* ===== PC時は大きく ===== */
@media (min-width: 768px) {

    .prize-btn {
        min-width: 120px;
        padding: 14px 0;
        font-size: 16px;
        border-radius: 8px;
    }

    .prize-buttons {
        gap: 20px;
    }
}

/* ===== 見出し画像 共通（PC基準） ===== */
.image-title img {
    width: auto ;
    height: 48px ;
    max-width: none;
    display: inline-block;
}

/* ===== スマホ時：一部見出しだけ小さく ===== */
@media (max-width: 767px) {
    .image-title--small img {
        height: 36px ;
    }
}



/* ===== 注意事項：背景フル幅 ===== */
.caution-section {
    background: #fff3b0;   /* 黄色を全幅に */
    padding: 40px 0;
}

/* 中身の箱（幅制限） */
.caution-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.caution-list {
    max-width: 640px;
    margin: 16px auto 0;
    padding-left: 1.4em;
    list-style: disc;
}

.caution-list li {
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
    color: #333;
}


@media (max-width: 767px) {
    .caution-section {
        padding: 32px 0;
    }

    .caution-box {
        padding: 0 16px;
    }

    .caution-list li {
        font-size: 14px;
    }
}

/* ===== イベント概要 ===== */
.event-section {
    background: #f5f5f5;
    padding: 24px 0 8px;
}

.event-catch {
    max-width: 720px;
    margin: 0 auto 8px;
    text-align: center;
}

.event-catch img,
.event-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* ===== 対象スポット一覧 ===== */
.spot-section {
    background: #f5f5f5;   /* プレゼントと同じグレー */
    padding: 20px 0;
}

.spot-section .spot-area {
    margin-top: 8px;
}

@media (min-width: 768px) {

    .prize-buttons {
        max-width: 650px;   /* 画像と同じ幅 */
        margin: 0 auto;
    }

    .prize-wrap {
        flex: 1;            /* 均等に広げる */
    }

    .prize-btn {
        width: 100%;        /* 中身を広げる */
    }
}

@media (max-width: 767px) {
    .hint-box {
        max-width: 100%;
    }
}

/* ===== スマホ時：応募ボタンエリア全体を90%幅に ===== */
@media (max-width: 767px) {
    .prize-buttons {
        width: 90%;
        margin: 0 auto;              /* 中央寄せ */
        justify-content: space-between;
    }

    .prize-wrap {
        flex: 1;                     /* 4つを均等割り */
    }

    .prize-btn {
        width: 100%;                 /* 各ボタンはセルいっぱい */
    }
}

.entry-note {
    margin: 20px 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;   /* ← これを追加 */
}

/* ===== プレゼント内容：上に余白を追加 ===== */
.present-image.title {
    margin-top: 10px;   /* ← 好みで 24〜40px */
}

/* 商品画像の上に余白 */
.present-image.prizes {
    margin-top: 32px;   /* 好みで 24〜40px */
}

/* ===== フッター（背景をページ幅に揃える） ===== */

/* 外枠（背景なし） */
.footer {
    padding: 0;
    font-size: 13px;
}

/* 背景担当（page幅と同じ） */
.footer-bg {
    max-width: 960px;      /* ← .page と同じ */
    margin: 0 auto;
    background: #195095;  /* サイト共通の紺色 */
    padding: 32px 0;

    /* うっすら区切り線（任意） */
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* 中身 */
.footer-inner {
    padding: 0 16px;
    text-align: center;
    color: #e6eef7;
}

/* 行 */
.footer-line {
    margin: 0 0 6px;
    line-height: 1.6;
}

/* お問合せ */
.footer-contact {
    margin: 12px 0 0;
    line-height: 1.6;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.footer-contact a:hover {
    border-bottom-color: #ffffff;
}

/* ==============================
   ブロック基準
============================== */
.block {
  position: relative;
}

/* ==============================
   クリア時：背景（下側だけ・黄色）
============================== */
.block.cleared::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  /* 見出し（〇〇のなぞ）を避ける */
  top: 56px;

  background: rgba(255, 235, 130, 0.9);
  border-radius: 0 0 12px 12px;
  z-index: 1;
}

/* ==============================
   クリアバナー（スタンプ）
============================== */
.clear-banner {
  display: none;              /* 通常時は完全に無効 */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 56px;                  /* 背景と同じ範囲 */

  background: transparent;    /* 色は一切持たせない */
  z-index: 2;

  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* クリア時のみ表示 */
.block.cleared .clear-banner {
  display: flex;
}

/* ==============================
   スタンプ出現アニメーション
============================== */
@keyframes stamp-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}


/* ==============================
   見出しは常に最前面
============================== */
.block h3 {
  position: relative;
  z-index: 3;
}

/* ==============================
   スタンプ画像サイズ
============================== */
.clear-banner img {
  width: 70%;
  max-width: 180px;
  height: auto;

  /* 黄色背景から浮かせる */
  box-shadow: none;   /* ← ★影を消す */
  animation: stamp-pop 0.4s ease-out;
}

@media (hover: hover) {
  .clear-banner:hover img {
    transform: scale(1.05);
  }
}

/* ==============================
   スマホ調整
============================== */
@media (max-width: 767px) {

  /* 見出しが2行になる想定 */
  .block.cleared::after,
  .block.cleared .clear-banner {
    top: 48px;
  }

  /* スタンプを大きく */
  .clear-banner img {
    width: 95%;
    max-width: none;
  }
}


/* ===== 応募ボタン：ロック中でも縁をはっきり見せる ===== */
.prize-wrap.locked .prize-btn {
  background: #f2f2f2;        /* 少し明るめグレー */
  color: #888;

  border: 2px solid #e6b800;    /* ← 縁を明示的に指定 */
  box-shadow: none;
}

/* ===== カバー（フタ）で縁を隠さない ===== */
.prize-lock {
  background: rgba(255, 255, 255, 0.4); /* 半透明にする */
}

/* 応募ボタン下のドット */
.prize-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

/* 未達：白＋グレー枠 */
.pdot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;           /* ← 白 */
  border: 2px solid #bbb;     /* ← グレーの縁 */
  box-sizing: border-box;
}

/* 達成時（県カラーで塗りつぶし） */
.pdot.active.kumamoto {
  background: #6da744;
  border-color: #6da744;
}

.pdot.active.miyazaki {
  background: #5d91c7;
  border-color: #5d91c7;
}

.pdot.active.kagoshima {
  background: #ca7538;
  border-color: #ca7538;
}

/* ドットは常に最前面 */
.prize-dots {
  position: relative;
  z-index: 3;
}

/* ロックはその下 */
.prize-lock {
  z-index: 2;
}

/* 間違いメッセージ */
.wrong-msg {
  margin-top: 8px;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 8px;
  border-radius: 6px;
  animation: fadeout 1.5s forwards;
}

@keyframes fadeout {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* 県名直下のドットを表示にする*/
.pref-section.kumamoto .dots,
.pref-section.miyazaki .dots,
.pref-section.kagoshima .dots {
  display: none;
}

/* ドットを消した代わりの余白 */
.title-area {
  margin-bottom: 20px;
}

/* ===== ボタン近くのトースト ===== */
.toast {
  position: absolute;
  background: #ffffff;            /* 白背景 */
  color: #222;                    /* 黒に近い */
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  pointer-events: none;
  white-space: pre-line;   /* ← \n を改行として表示 */
  text-align: center;      /* ← 2行を中央揃え */
}

/* 表示中 */
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* スマホは少し大きく */
@media (max-width: 767px) {
  .toast {
    font-size: 15px;
    padding: 12px 16px;
  }
}


/* 青くなるのを消す */
* {
  -webkit-tap-highlight-color: transparent;
}

button:active,
a:active {
  transform: scale(0.98);
}

/* イベント説明エリア上部の注意文 */
.event-section > .notice-red {
  margin: 4px auto 8px;   /* 上は詰める／下は少し開ける */
  line-height: 1.4;
  text-align: center;
  color: #d60000;
  font-size: 14px;
}

/* PCでは改行しない */
.sp-break {
  display: inline;
}

/* スマホ時だけ改行 */
@media (max-width: 767px) {
  .sp-break {
    display: block;
  }
}

.event-section {
  padding-top: 12px;   /* 24px → 12px */
}


/* 対象スポット一覧の注意文 */
.spot-section .notice-red.notice-spot {
  margin: 8px auto 4px;   /* 上少し・下は詰める */
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

/* 共通：注意文は必ず赤 */
.notice-red {
  color: #d60000;
}

/* 注意事項リスト内の赤文字 */
.caution-list li.notice-red {
  color: #d60000;
}
