@charset "UTF-8";

:root {
  --quiz-ink: #183153;
  --quiz-muted: #667085;
  --quiz-blue: #1769e0;
  --quiz-blue-dark: #0b4db7;
  --quiz-sky: #eaf4ff;
  --quiz-mint: #31c48d;
  --quiz-coral: #ff7657;
  --quiz-paper: #ffffff;
  --quiz-line: #dce7f5;
  --quiz-shadow: 0 20px 60px rgba(24, 49, 83, 0.12);
}

/* This page is an interactive tool: keep the quiz ahead of decorative post UI. */
.cities-quiz-page .main,
.cities-quiz-page .article { background: transparent; }
.cities-quiz-page .content-in { max-width: 1180px; }
.cities-quiz-page .main { width: 100%; }
.cities-quiz-page .sidebar { display: none; }
.cities-quiz-page .article-header .eye-catch-wrap,
.cities-quiz-page .article-header .ss-top,
.cities-quiz-page .article-header .date-tags,
.cities-quiz-page .article-header .ad-content-top,
.cities-quiz-page .article > .ad-above-title,
.cities-quiz-page .entry-content > p,
.cities-quiz-page .entry-content > .debug_echo { display: none !important; }
.cities-quiz-page .article-header { margin: 0 0 18px; }
.cities-quiz-page .entry-title {
  margin: 0;
  color: var(--quiz-ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: .02em;
}
.cities-quiz-page .entry-content { margin-top: 0; }
.city-quiz-page, .city-quiz-page * { box-sizing: border-box; }
.city-quiz-page {
  color: var(--quiz-ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

/* Keep this page's desktop navigation on one line without changing other pages. */
@media (min-width: 1024px) {
  .cities-quiz-page #navi .navi-in > ul > li {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .cities-quiz-page #navi .navi-in > ul > li > a {
    padding-inline: 10px;
    font-size: 14px;
  }
}

/* Reset Cocoon's boxed article headings inside this custom landing page. */
.cities-quiz-page .city-quiz-page h2,
.cities-quiz-page .city-quiz-page h3 {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cities-quiz-page .quiz-about h2,
.cities-quiz-page .quiz-about h2 span {
  color: #fff;
}

.quiz-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(28px, 6vw, 72px);
  min-height: 500px;
  padding: clamp(36px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 30px;
  background: radial-gradient(circle at 12% 12%, rgba(255,255,255,.9) 0 2px, transparent 3px), linear-gradient(135deg, #f2f8ff 0%, #e8f5ff 58%, #d8f3ed 100%);
  box-shadow: var(--quiz-shadow);
}
.quiz-hero::before, .quiz-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: .48;
  pointer-events: none;
}
.quiz-hero::before {
  width: 360px;
  height: 360px;
  right: -190px;
  top: -170px;
  border: 70px solid #fff;
}
.quiz-hero::after {
  width: 150px;
  height: 150px;
  left: -80px;
  bottom: -85px;
  background: var(--quiz-coral);
}
.quiz-hero__copy, .quiz-hero__visual { position: relative; z-index: 1; }
.quiz-eyebrow, .quiz-section-label, .quiz-card__kicker {
  margin: 0 0 12px !important;
  color: var(--quiz-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.quiz-hero h2 {
  margin: 0 0 20px;
  color: var(--quiz-ink);
  font-size: clamp(2rem, 5.3vw, 4.15rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.quiz-hero h2 span { color: var(--quiz-blue); }
.quiz-hero__lead {
  max-width: 650px;
  margin: 0 0 26px !important;
  color: #40536d;
  font-size: 1rem;
  line-height: 1.95;
}
.quiz-facts {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.quiz-facts li {
  min-width: 78px;
  padding: 9px 14px;
  border: 1px solid rgba(23,105,224,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.7);
  color: var(--quiz-muted);
  font-size: .75rem;
  text-align: center;
}
.quiz-facts strong { margin-right: 3px; color: var(--quiz-ink); font-size: 1.25rem; }
.quiz-hero__cta, .quiz-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--quiz-blue);
  box-shadow: 0 10px 25px rgba(23,105,224,.24);
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.quiz-hero__cta:hover, .quiz-action:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--quiz-blue-dark);
  box-shadow: 0 14px 30px rgba(23,105,224,.3);
}
.quiz-hero__cta span { margin-left: 16px; font-size: 1.15rem; }
.quiz-hero__visual {
  align-self: center;
  aspect-ratio: 1 / 1.05;
  border: 10px solid rgba(255,255,255,.72);
  border-radius: 48% 52% 48% 52% / 55% 42% 58% 45%;
  background: linear-gradient(30deg, transparent 48%, rgba(23,105,224,.08) 49% 51%, transparent 52%), linear-gradient(120deg, transparent 48%, rgba(23,105,224,.08) 49% 51%, transparent 52%), #fff;
  box-shadow: 0 30px 60px rgba(24,49,83,.13);
}
.quiz-hero__visual p {
  position: absolute;
  left: 10%;
  bottom: 12%;
  margin: 0 !important;
  color: var(--quiz-ink);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.35;
  transform: rotate(-5deg);
}
.quiz-map-pin {
  position: absolute;
  top: 23%;
  right: 27%;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 7px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--quiz-coral);
  box-shadow: 0 18px 32px rgba(255,118,87,.28);
  color: #fff;
  font-size: 2.8rem;
  font-weight: 900;
  transform: rotate(-45deg);
}
.quiz-map-pin b { transform: rotate(45deg); }
.quiz-map-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--quiz-mint);
  box-shadow: 0 0 0 8px rgba(49,196,141,.13);
}
.quiz-map-dot--1 { top: 22%; left: 20%; }
.quiz-map-dot--2 { top: 58%; right: 18%; }
.quiz-map-dot--3 { bottom: 22%; left: 38%; }

.q-container {
  position: relative;
  max-width: 900px;
  margin: 72px auto;
  padding: clamp(24px, 5vw, 52px);
  scroll-margin-top: 30px;
  border: 1px solid var(--quiz-line);
  border-radius: 26px;
  background: var(--quiz-paper);
  box-shadow: var(--quiz-shadow);
}
.quiz-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--quiz-line);
}
.quiz-card__header h2 {
  margin: 0;
  color: var(--quiz-ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}
.quiz-progress {
  min-width: 180px;
  color: var(--quiz-muted);
  font-size: .78rem;
  font-weight: 700;
  text-align: right;
}
.quiz-progress__track {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #edf2f7;
}
#quiz-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--quiz-blue), var(--quiz-mint));
  transition: width .3s ease;
}
#opening {
  max-width: 590px;
  margin: 32px auto 0;
  padding: 34px;
  border-radius: 20px;
  background: var(--quiz-sky);
  text-align: center;
}
.opening-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 20px 20px 20px 4px;
  background: var(--quiz-blue);
  box-shadow: 0 9px 22px rgba(23,105,224,.22);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}
#opening h3 { margin: 0 0 10px; font-size: 1.4rem; }
#opening p { margin: 0 0 22px; color: var(--quiz-muted); font-size: .9rem; line-height: 1.8; }
#opening.hidden, #result.hidden, #stop-watch.hidden, #quiz-board.hidden { display: none; }
#question {
  margin: 34px 0 24px;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}
#choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}
#choices li { margin: 0; }
#choices button {
  width: 100%;
  min-height: 62px;
  padding: 12px 16px;
  border: 2px solid var(--quiz-line);
  border-radius: 14px;
  background: #fff;
  color: var(--quiz-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border .15s ease, background .15s ease, transform .15s ease;
}
#choices button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--quiz-blue); background: var(--quiz-sky); }
#choices button:disabled { cursor: default; }
table.log-table td.correct, #choices button.correct {
  border-color: #7ed8b7; background: #ddf8ed; color: #096c49; font-weight: 800;
}
table.log-table td.correct-ans, #choices button.correct-ans {
  border-color: #99ddc4; background: #edfdf7; color: #096c49; font-weight: 800;
}
table.log-table td.correct::after, #choices button.correct::after { content: "  ○"; }
table.log-table td.wrong, #choices button.wrong {
  border-color: #ffad9a; background: #fff0ec; color: #a43820; font-weight: 800;
}
table.log-table td.wrong::after, #choices button.wrong::after { content: "  ×"; }
#qz-btn { width: 100%; }
#op-btn.disabled, #qz-btn.disabled, .quiz-action:disabled { box-shadow: none; opacity: .48; cursor: not-allowed; }
#stop-watch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  margin: 18px auto 0;
  padding: 8px 14px;
  border-radius: 99px;
  background: #f4f7fb;
  color: var(--quiz-muted);
  text-align: center;
}
#stop-watch > span { font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
#timer { color: var(--quiz-ink); font-variant-numeric: tabular-nums; font-weight: 800; }
#stop-watch .controls { display: none; }
#result { text-align: center; }
#result > p:first-child { margin: 30px 0 4px; font-size: 1.35rem; font-weight: 800; }
#result .tensu { color: var(--quiz-blue); font-size: 2.4em; }
.result-message { color: var(--quiz-muted); font-size: .9rem; }
#result-tweet .sns-share-buttons { justify-content: center; margin: 18px auto 30px; }
#result-tweet .sns-share-buttons a { width: auto; min-width: 220px; border-radius: 12px; }
#result h3 { margin-top: 32px; text-align: left; }
#result table.log-table {
  width: 100%;
  margin-bottom: 16px;
  overflow: hidden;
  border-collapse: separate;
  border: 1px solid var(--quiz-line);
  border-radius: 12px;
  text-align: left;
}
#result table.log-table th, #result table.log-table td {
  padding: 10px; border: 0; border-top: 1px solid var(--quiz-line); font-size: .8rem;
}
#result table.log-table th { border-top: 0; background: #f7f9fc; }
.quiz-action--secondary { margin-top: 14px; background: var(--quiz-ink); box-shadow: 0 10px 24px rgba(24,49,83,.18); }

.quiz-guide, .quiz-about, .quiz-faq { margin: 80px auto; }
.quiz-guide h2, .quiz-about h2, .quiz-faq h2 {
  margin: 0 0 28px;
  color: var(--quiz-ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.4;
}
.quiz-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
.quiz-steps li {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--quiz-line);
  border-radius: 18px;
  background: #fff;
}
.quiz-steps li > span { color: var(--quiz-blue); font-size: .8rem; font-weight: 900; }
.quiz-steps h3 { margin: 0 0 8px; font-size: 1rem; }
.quiz-steps p, .quiz-about p, .quiz-faq p {
  margin: 0; color: var(--quiz-muted); font-size: .9rem; line-height: 1.85;
}
.quiz-about {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 24px;
  background: var(--quiz-ink);
}
.quiz-about h2, .quiz-about .quiz-section-label { color: #fff; }
.quiz-about__text p { color: #d9e3f1; }
.quiz-about__text p + p { margin-top: 16px; }
.quiz-faq { max-width: 820px; }
.quiz-faq details { border-top: 1px solid var(--quiz-line); }
.quiz-faq details:last-child { border-bottom: 1px solid var(--quiz-line); }
.quiz-faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  color: var(--quiz-ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.quiz-faq summary::after { content: "+"; position: absolute; right: 8px; color: var(--quiz-blue); font-size: 1.45rem; }
.quiz-faq details[open] summary::after { content: "−"; }
.quiz-faq details p { padding: 0 40px 22px 0; }

@media (max-width: 760px) {
  .cities-quiz-page .content-in { padding: 0 10px; }
  .cities-quiz-page .article { padding: 14px 0; }
  .quiz-hero { grid-template-columns: 1fr; min-height: 0; padding: 30px 22px; border-radius: 22px; }
  .quiz-hero__visual { width: min(280px, 86%); margin: 0 auto; }
  .quiz-facts { flex-wrap: wrap; }
  .quiz-hero__cta { width: 100%; }
  .q-container { margin: 40px 0 60px; padding: 22px 16px; border-radius: 20px; }
  .quiz-card__header { align-items: flex-start; flex-direction: column; }
  .quiz-progress { width: 100%; text-align: left; }
  #opening { padding: 26px 18px; }
  #choices { grid-template-columns: 1fr; }
  #result table.log-table { display: block; overflow-x: auto; }
  .quiz-steps, .quiz-about { grid-template-columns: 1fr; }
  .quiz-about { gap: 14px; }
  .quiz-guide, .quiz-about, .quiz-faq { margin: 60px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .city-quiz-page *, .city-quiz-page *::before, .city-quiz-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
