@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");

/* ==========================================================================
   GEOPARK QUIZ（quiz/ 配下）
   style.css を読み込んだうえでの差分のみ
   PC : 1rem = 10px / SP : 500px 基準の vw 換算（px ÷ 5 = vw）
   ========================================================================== */

.geopark {
  --quiz-panel: #ECF5F2;
  --quiz-current: #50A890;
  --quiz-correct: #EF4545;
  --quiz-wrong: #2E6C9F;
}

/* --------------------------------------------------
   セクション（Figma: quizcontents = 方眼の下地 / padding 40px 20px / gap 50px）
-------------------------------------------------- */
.geopark .quizpage {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 4rem 2rem;
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(0deg, #F4EFE2 0 .2rem, transparent .2rem 3rem),
    repeating-linear-gradient(90deg, #F4EFE2 0 .2rem, transparent .2rem 3rem);
}

.geopark .quizpage p,
.geopark .quizpage h1,
.geopark .quizpage h2,
.geopark .quizpage h3,
.geopark .quizpage ul {
  margin: 0;
}

/* 見出し：日本語は黒・下のバーは 101.5px */
.geopark .heading--quiz .heading__ja {
  margin: .6rem 0 0;
  color: var(--text);
}

.geopark .heading--quiz::after {
  width: 10.2rem;
}

.geopark .quizpage__lead {
  font-size: 1.8rem;
  line-height: 1.8;
  text-align: center;
}

.geopark .quizpage__catch {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

/* 壁紙ダウンロード：3行のリード文 */
.geopark .quizpage__catch--lead {
  font-size: 1.8rem;
  line-height: 1.6;
}

/* --------------------------------------------------
   市町村ボタン（Figma: Btn_anchor 133x49 / r40 / 3列 gap 15px 10px）
-------------------------------------------------- */
.geopark .quiz-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1rem;
  list-style: none;
  padding: 0;
}

.geopark .quiz-select__btn {
  position: relative;
  display: flex;
  align-items: center;
  height: 4.9rem;
  padding: 0 2.4rem 0 1.1rem;
  border-radius: 4rem;
  background-color: var(--green);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  color: #fff;
}

/* 下向きの矢印 */
.geopark .quiz-select__btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: .8rem;
  height: 1.5rem;
  transform: translateY(-50%) rotate(90deg);
  background: url(../img/quiz/arrow-white.svg) no-repeat center / contain;
}

/* 表示中の市町村 */
.geopark .quiz-select__btn.is-current {
  background-color: var(--quiz-current);
}

/* --------------------------------------------------
   リンクボタン（Figma: BTN 380x80 / 白地・緑4px枠 / r87）
-------------------------------------------------- */
.geopark .quiz-btn a {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 8rem;
  padding: 1rem 5rem 1rem 3rem;
  border: .4rem solid var(--green);
  border-radius: 8.7rem;
  background-color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--green);
}

.geopark .quiz-btn a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2.2rem;
  width: 1.2rem;
  height: 2rem;
  transform: translateY(-50%);
  background: url(../img/icon-arrow.svg) no-repeat center / contain;
}

/* 幅420px（セクション直下） */
.geopark .quiz-btn--wide a {
  padding-left: 4.3rem;
}

.geopark .quiz-btn--wide a::after {
  right: 2.6rem;
}

/* ジオキャンペーンTOPへ（Figma: top_BTN 420x100 / r90・背景は白に変更） */
.geopark .quiz-btn--yellow a {
  min-height: 10rem;
  padding-left: 4.3rem;
  border-radius: 9rem;
}

/* クイズ内の「壁紙ダウンロードはこちら」も黄色 */
.geopark .qa-box .quiz-btn a {
  background-color: var(--yellow);
}

/* --------------------------------------------------
   クイズTOP：市町村の紹介（Figma: 420幅 / #ECF5F2 / padding 40px 20px / r20 / gap 30px）
-------------------------------------------------- */
.geopark .town {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem 2rem;
  border-radius: 2rem;
  background-color: var(--quiz-panel);
}

.geopark .town__head,
.geopark .town__spot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.geopark .town__name {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--green);
}

.geopark .town__text {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #000;
}

.geopark .town__photo {
  line-height: 0;
}

.geopark .town__photo img {
  aspect-ratio: 4096 / 2725;
  object-fit: cover;
}

.geopark .town__spot-name {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--green);
}

.geopark .town__spot-text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #000;
}

/* --------------------------------------------------
   クイズ：市町村名
-------------------------------------------------- */
.geopark .quiz-town {
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* 「□に入るものを答えてね！」：四角は CSS の枠で表現 */
.geopark .quiz-town .quiz-town__task {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  /* 見出しの下線（上50px）と町名の文字（行間の上余白10px込み）の中間に置く */
  margin: -2rem 0 2rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
}

.geopark .quiz-town__blank {
  flex: none;
  width: 10rem;
  height: 3rem;
  border: .2rem solid var(--green);
  background-color: #fff;
}

.geopark .quiz-town__name {
  font-size: 4rem;
  font-weight: 700;
  color: var(--green);
}

.geopark .quiz-town__kana {
  font-size: 2rem;
  color: #000;
}

/* --------------------------------------------------
   クイズ：設問（Figma: #ECF5F2 / padding 40px 20px / r20 / gap 30px）
-------------------------------------------------- */
.geopark .qa-box {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem 2rem;
  border-radius: 2rem;
  background-color: var(--quiz-panel);
}

.geopark .qa {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.geopark .qa__q {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 700;
  color: var(--green);
}

.geopark .qa__num {
  flex: none;
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  line-height: 1.2;
}

.geopark .qa__text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 2.2rem;
  line-height: 1.4;
}

.geopark .qa__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 問題文（□＝答える部分） */
.geopark .quizpage .qa__question {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #000;
}

.geopark .qa__blank {
  display: inline-block;
  width: 3em;
  height: 1.2em;
  margin: 0 .2em;
  border: .1rem solid var(--green);
  background-color: #fff;
  vertical-align: -.25em;
}

.geopark .qa__photo {
  line-height: 0;
}

.geopark .qa__photo img {
  aspect-ratio: 380 / 225;
  object-fit: cover;
}

/* 選択肢（Figma: ans_btn 183x60 / 緑2px枠 / r10 / 2列 gap 15px 14px） */
.geopark .qa__choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.4rem;
  list-style: none;
  padding: 0;
}

.geopark .qa__btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 6rem;
  padding: .6rem 3.4rem .6rem 1.7rem;
  border: .2rem solid var(--green);
  border-radius: 1rem;
  background-color: #fff;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: left;
  color: #000;
  cursor: pointer;
}

/* 回答後は再読込するまで変更不可 */
.geopark .qa__btn:disabled {
  opacity: 1;
  cursor: default;
}

.geopark .qa__btn.is-correct,
.geopark .qa__btn.is-wrong {
  font-weight: 700;
}

.geopark .qa__btn.is-correct {
  border-color: var(--quiz-correct);
  color: var(--quiz-correct);
}

.geopark .qa__btn.is-wrong {
  border-color: var(--quiz-wrong);
  color: var(--quiz-wrong);
}

.geopark .qa__btn.is-correct::after,
.geopark .qa__btn.is-wrong::after {
  position: absolute;
  top: 50%;
  right: .8rem;
  transform: translateY(-50%);
}

.geopark .qa__btn.is-correct::after {
  content: "〇";
}

.geopark .qa__btn.is-wrong::after {
  content: "×";
}

.geopark .qa__btn ruby rt {
  font-size: .7em;
  line-height: 1;
}

/* 問題文下の注意書き（赤字・※ぶら下げ） */
.geopark .quizpage .qa__caution {
  margin-top: -1rem;
  padding-left: 1em;
  text-indent: -1em;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--red);
}

.geopark .qa-box__line {
  line-height: 0;
}

/* 壁紙ダウンロードボタン上の一文（ボタンとの間は 15px） */
.geopark .quizpage .quiz-cta-lead {
  margin-bottom: -1.5rem;
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 2.2;
  color: var(--green);
}

/* 壁紙ダウンロードボタン下の注釈（ボタンとの間は 15px） */
.geopark .quiz-notes {
  margin-top: -1.5rem;
  font-size: 1.3rem;
  line-height: 1.6;
}

/* --------------------------------------------------
   他の市町村のクイズ
-------------------------------------------------- */
.geopark .quiz-other {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.geopark .quiz-other__title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--green);
}

/* --------------------------------------------------
   壁紙ダウンロード（Figma: thumb_group #9DCCE5 / padding 20px / r20）
-------------------------------------------------- */
.geopark .wallpaper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.geopark .wallpaper__thumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  border-radius: 2rem;
  background-color: var(--blue);
}

.geopark .wallpaper__sp {
  width: 10.9rem;
}

.geopark .wallpaper__pc {
  width: 25.5rem;
}

.geopark .wallpaper__btns {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
}

.geopark .wallpaper__btns li {
  flex: 1 1 0;
  min-width: 0;
}

.geopark .wallpaper__btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 100%;
  padding: 1rem 1.5rem 1rem .5rem;
  border: .4rem solid var(--green);
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .15);
  color: #000;
}

/* Figma: 13x20 の枠から線幅分はみ出す 15x22 の SVG */
.geopark .wallpaper__btn::after {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 2.2rem;
  margin: 0 -.1rem;
  background: url(../img/quiz/icon-download.svg) no-repeat center / contain;
}

.geopark .wallpaper__btn-label {
  flex: 1 1 auto;
  text-align: center;
  line-height: 1.45;
}

.geopark .wallpaper__btn-label strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.geopark .wallpaper__btn-label span {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
}

.geopark .wallpaper__line {
  line-height: 0;
}

/* 最後の壁紙の下は区切り線なしで 40px 空ける（Figma: line 420x40） */
.geopark .wallpaper:last-of-type {
  padding-bottom: 2.5rem;
}

/* --------------------------------------------------
   SP（〜767px）
-------------------------------------------------- */
@media screen and (max-width: 767px) {

  .geopark .quizpage {
    gap: 10vw;
    padding: 8vw 4vw;
    background-image:
      repeating-linear-gradient(0deg, #F4EFE2 0 .4vw, transparent .4vw 6vw),
      repeating-linear-gradient(90deg, #F4EFE2 0 .4vw, transparent .4vw 6vw);
  }

  .geopark .heading--quiz .heading__ja {
    margin-top: 1.2vw;
  }

  .geopark .heading--quiz::after {
    width: 20.4vw;
  }

  .geopark .quizpage__lead {
    font-size: 3.6vw;
  }

  .geopark .quizpage__catch {
    font-size: 4.4vw;
  }

  .geopark .quizpage__catch--lead {
    font-size: 3.6vw;
  }

  /* 市町村ボタン */
  .geopark .quiz-select {
    gap: 3vw 2vw;
  }

  .geopark .quiz-select__btn {
    height: 9.8vw;
    padding: 0 4.8vw 0 2.2vw;
    border-radius: 8vw;
    font-size: 3.6vw;
  }

  .geopark .quiz-select__btn::after {
    right: 2.2vw;
    width: 1.6vw;
    height: 3vw;
  }

  /* リンクボタン */
  .geopark .quiz-btn a {
    min-height: 16vw;
    padding: 2vw 10vw 2vw 6vw;
    border-width: .8vw;
    border-radius: 17.4vw;
    font-size: 4.6vw;
  }

  .geopark .quiz-btn a::after {
    right: 4.4vw;
    width: 2.4vw;
    height: 4vw;
  }

  .geopark .quiz-btn--wide a {
    padding-left: 8.6vw;
  }

  .geopark .quiz-btn--wide a::after {
    right: 5.2vw;
  }

  .geopark .quiz-btn--yellow a {
    min-height: 20vw;
    padding-left: 8.6vw;
    border-radius: 18vw;
  }

  /* 市町村の紹介 */
  .geopark .town {
    gap: 6vw;
    padding: 8vw 4vw;
    border-radius: 4vw;
  }

  .geopark .town__head,
  .geopark .town__spot {
    gap: 2vw;
  }

  .geopark .town__name {
    font-size: 6.4vw;
  }

  .geopark .town__text {
    font-size: 3.6vw;
  }

  .geopark .town__spot-name {
    font-size: 4.8vw;
  }

  .geopark .town__spot-text {
    font-size: 3.2vw;
  }

  /* クイズ */
  .geopark .quiz-town .quiz-town__task {
    gap: 2vw;
    margin: -4vw 0 4vw;
    font-size: 3.2vw;
  }

  .geopark .quiz-town__blank {
    width: 20vw;
    height: 6vw;
    border-width: .4vw;
  }

  .geopark .quiz-town__name {
    font-size: 8vw;
  }

  .geopark .quiz-town__kana {
    font-size: 4vw;
  }

  .geopark .qa-box {
    gap: 6vw;
    padding: 8vw 4vw;
    border-radius: 4vw;
  }

  .geopark .qa {
    gap: 6vw;
  }

  .geopark .qa__q {
    gap: 2vw;
  }

  .geopark .qa__num {
    font-size: 4.8vw;
  }

  .geopark .qa__text {
    font-size: 4.4vw;
  }

  .geopark .qa__body {
    gap: 4vw;
  }

  .geopark .quizpage .qa__question {
    font-size: 3.6vw;
  }

  .geopark .quizpage .qa__caution {
    margin-top: -2vw;
    font-size: 3.2vw;
  }

  .geopark .qa__blank {
    border-width: .2vw;
  }

  .geopark .qa__choices {
    gap: 3vw 2.8vw;
  }

  .geopark .qa__btn {
    min-height: 12vw;
    padding: 1.2vw 6.8vw 1.2vw 3.4vw;
    border-width: .4vw;
    border-radius: 2vw;
    font-size: 3.6vw;
  }

  .geopark .qa__btn.is-correct::after,
  .geopark .qa__btn.is-wrong::after {
    right: 1.6vw;
  }

  .geopark .quizpage .quiz-cta-lead {
    margin-bottom: -3vw;
    font-size: 3.7vw;
  }

  .geopark .quiz-notes {
    margin-top: -3vw;
    font-size: 2.6vw;
  }

  .geopark .quiz-other {
    gap: 4vw;
  }

  .geopark .quiz-other__title {
    font-size: 4.8vw;
  }

  /* 壁紙ダウンロード */
  .geopark .wallpaper {
    gap: 3vw;
  }

  .geopark .wallpaper__thumb {
    padding: 4vw;
    border-radius: 4vw;
  }

  .geopark .wallpaper__sp {
    width: 21.8vw;
  }

  .geopark .wallpaper__pc {
    width: 51vw;
  }

  .geopark .wallpaper__btns {
    gap: 2.2vw;
  }

  .geopark .wallpaper__btn {
    gap: 1vw;
    padding: 2vw 3vw 2vw 1vw;
    border-width: .8vw;
    border-radius: 2vw;
    box-shadow: 0 .4vw 1.6vw rgba(0, 0, 0, .15);
  }

  .geopark .wallpaper__btn::after {
    width: 3vw;
    height: 4.4vw;
    margin: 0 -.2vw;
  }

  .geopark .wallpaper__btn-label strong {
    font-size: 3.2vw;
  }

  .geopark .wallpaper__btn-label span {
    font-size: 2.8vw;
  }

  .geopark .wallpaper:last-of-type {
    padding-bottom: 5vw;
  }
}
