:root { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:#18314f; background:#f6fbff; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:linear-gradient(180deg,#eaf8ff 0%,#fff 70%); }
button { font:inherit; }
.app-shell { width:min(1180px,100%); margin:0 auto; padding:clamp(12px,2vw,24px); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.top-actions { display:flex; align-items:center; gap:10px; }
.stamp-counter { display:flex; align-items:center; gap:4px; background:#fff8cf; color:#18314f; border:1px solid rgba(24,49,79,.12); border-radius:999px; min-height:44px; padding:7px 13px; font-weight:900; white-space:nowrap; cursor:pointer; }
.eyebrow { font-size:.78rem; font-weight:800; letter-spacing:.05em; opacity:.65; }
h1 { margin:.2rem 0 0; font-size:clamp(1.35rem,3vw,2.2rem); line-height:1.2; }

.quiz-panel { background:#fff; border:1px solid rgba(24,49,79,.12); border-radius:22px; box-shadow:0 10px 26px rgba(24,49,79,.07); padding:14px 16px; margin-bottom:14px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"badge question actions" ". hint hint"; align-items:center; gap:8px 14px; }
.quiz-badge { grid-area:badge; font-weight:900; white-space:nowrap; }
.quiz-question { grid-area:question; font-size:clamp(1.1rem,2.5vw,1.55rem); font-weight:900; }
.quiz-actions { grid-area:actions; display:flex; gap:8px; }
.hint-button,.skip-button { border:0; border-radius:14px; min-height:44px; padding:8px 13px; cursor:pointer; font-weight:900; }
.hint-button { background:#fff2b5; color:#18314f; }
.skip-button { background:#eef3f7; color:#18314f; }
.hint-text { grid-area:hint; padding-top:4px; font-weight:800; color:#4c6280; }
.hint-text::before { content:"💡 "; }

.layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; align-items:stretch; }
.map-card,.info-card { background:#fff; border:1px solid rgba(24,49,79,.12); border-radius:24px; box-shadow:0 12px 30px rgba(24,49,79,.08); }
.map-card { min-width:0; padding:12px; }
.map-stage { width:100%; overflow:hidden; border-radius:18px; background:radial-gradient(circle at 30% 20%,#f8fdff,#e8f7ff); touch-action:manipulation; }
.japan-map { display:block; width:100%; height:auto; max-height:68vh; margin:auto; }
.prefecture { fill:#fff4b8; stroke:#425f78; stroke-width:1.25; vector-effect:non-scaling-stroke; cursor:pointer; transition:filter .12s ease,fill .12s ease,transform .12s ease; outline:none!important; transform-box:fill-box; transform-origin:center; }
.prefecture:hover,.prefecture:focus-visible { fill:#cbefff; outline:none!important; filter:drop-shadow(0 2px 2px rgba(0,0,0,.16)); }
.prefecture:focus { outline:none!important; }
.prefecture.is-correct { fill:#ffd56a; stroke:#143b5d; stroke-width:2.5; filter:drop-shadow(0 4px 4px rgba(0,0,0,.22)); animation:correct-pop .45s ease; }
.prefecture.is-stamped { fill:#ffe89a; }
.prefecture.is-miss { animation:miss .28s ease; }
.map-help { text-align:center; margin:8px 0 2px; font-weight:700; opacity:.72; }

.info-card { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px; min-height:300px; }
.face { font-size:4rem; line-height:1; margin-bottom:18px; }
.label { font-size:.86rem; font-weight:800; opacity:.6; }
.pref-name { font-size:clamp(1.8rem,4vw,2.7rem); font-weight:900; margin-top:8px; }
.pref-kana { min-height:1.6em; margin-top:4px; font-size:1.02rem; font-weight:700; opacity:.72; }
.result-note { margin-top:10px; font-weight:800; min-height:1.5em; color:#4c6280; }
.stamp-status { min-height:1.4em; margin-top:5px; font-weight:900; }

.big-button,.small-button { border:0; border-radius:18px; background:#18314f; color:#fff; font-weight:900; min-height:48px; padding:10px 18px; cursor:pointer; }
.big-button { margin-top:20px; width:100%; min-height:58px; font-size:1.05rem; display:none; }
body.is-correct .big-button { display:block; }
.small-button { background:#fff; color:#18314f; border:2px solid #18314f; white-space:nowrap; }

.celebration { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; background:rgba(234,248,255,.66); backdrop-filter:blur(3px); opacity:0; pointer-events:none; transition:opacity .18s ease; }
.celebration.is-show { opacity:1; pointer-events:auto; }
.celebration-card { width:min(420px,92vw); background:#fff; border-radius:30px; padding:28px 22px; text-align:center; box-shadow:0 22px 60px rgba(24,49,79,.25); transform:scale(.86); }
.celebration.is-show .celebration-card { animation:celebrate-pop .55s cubic-bezier(.2,.9,.25,1.25) forwards; }
.celebration-stars { font-size:2rem; }
.celebration-title { margin-top:6px; font-size:clamp(2rem,8vw,3.2rem); font-weight:1000; }
.celebration-place { margin-top:4px; font-size:clamp(1.3rem,5vw,2rem); font-weight:900; }
.celebration-stamp { display:inline-block; margin-top:16px; padding:10px 15px; border-radius:999px; background:#fff2b5; font-weight:1000; }

footer { text-align:center; margin:16px 0 2px; font-size:.78rem; opacity:.55; }

@keyframes miss { 0%,100%{transform:translateX(0)} 35%{transform:translateX(-3px)} 70%{transform:translateX(3px)} }
@keyframes correct-pop { 0%{transform:scale(1)} 45%{transform:scale(1.045)} 100%{transform:scale(1)} }
@keyframes celebrate-pop { 0%{transform:scale(.86) rotate(-2deg)} 65%{transform:scale(1.04) rotate(1deg)} 100%{transform:scale(1) rotate(0)} }
@keyframes result-in { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

@media (max-width:760px) {
  .app-shell { padding:10px; }
  .topbar { align-items:flex-start; gap:8px; margin-bottom:10px; }
  .top-actions { gap:6px; }
  .stamp-counter { min-height:42px; padding:6px 10px; font-size:.85rem; }
  .eyebrow { font-size:.68rem; }
  h1 { font-size:clamp(1.2rem,6vw,1.55rem); }
  .small-button { min-height:42px; padding:7px 10px; border-radius:14px; font-size:.82rem; }

  .quiz-panel { grid-template-columns:1fr; grid-template-areas:"badge" "question" "actions" "hint"; padding:12px; border-radius:18px; gap:7px; }
  .quiz-badge { font-size:.82rem; }
  .quiz-question { font-size:1.15rem; }
  .quiz-actions { width:100%; }
  .hint-button,.skip-button { flex:1; min-height:44px; padding:7px 8px; font-size:.86rem; }
  .hint-text { font-size:.9rem; }

  .layout { display:block; }
  .map-card { border-radius:20px; padding:8px; }
  .map-stage { border-radius:16px; }
  .japan-map { max-height:56vh; }
  .map-help { font-size:.88rem; margin-top:7px; }

  .info-card { display:none; position:fixed; z-index:30; left:10px; right:10px; bottom:max(10px,env(safe-area-inset-bottom)); min-height:0; padding:10px 12px; border-radius:20px; grid-template-columns:44px minmax(0,1fr) auto; grid-template-areas:"face name button" "face kana button" "face note button" "face stamp button"; align-items:center; gap:0 10px; text-align:left; box-shadow:0 12px 32px rgba(24,49,79,.22); }
  body.has-result .info-card { display:grid; animation:result-in .18s ease-out; }
  .face { grid-area:face; font-size:2rem; margin:0; text-align:center; }
  .label { display:none; }
  .pref-name { grid-area:name; margin:0; font-size:1.25rem; line-height:1.15; }
  .pref-kana { grid-area:kana; min-height:0; margin:2px 0 0; font-size:.82rem; line-height:1.2; }
  .result-note { grid-area:note; margin:1px 0 0; min-height:0; font-size:.78rem; line-height:1.15; }
  .stamp-status { grid-area:stamp; min-height:0; margin:1px 0 0; font-size:.78rem; line-height:1.15; }
  .big-button { grid-area:button; width:auto; min-width:92px; min-height:48px; margin:0; padding:8px 10px; border-radius:15px; font-size:.86rem; }
  footer { margin-top:12px; }
}

@media (prefers-reduced-motion:reduce) { * { transition:none!important; animation:none!important; } }


/* STEP 4: views / stamp book */
.view { display:none; }
.view.is-active { display:block; }

.stamp-book-view {
  background:#fff;
  border:1px solid rgba(24,49,79,.12);
  border-radius:26px;
  box-shadow:0 12px 30px rgba(24,49,79,.08);
  padding:clamp(16px,3vw,28px);
}

.stamp-book-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.stamp-book-kicker {
  font-size:.86rem;
  font-weight:900;
  opacity:.7;
}

.stamp-book-view h2 {
  margin:.18rem 0 .2rem;
  font-size:clamp(1.8rem,4vw,2.7rem);
}

.stamp-book-message {
  margin:.25rem 0 0;
  font-weight:700;
  color:#5a6f87;
}

.stamp-book-progress {
  margin-top:20px;
  padding:14px 16px;
  border-radius:18px;
  background:#f7fbff;
  border:1px solid rgba(24,49,79,.08);
}

.stamp-book-progress-text {
  font-weight:900;
  margin-bottom:8px;
}

.progress-track {
  height:12px;
  border-radius:999px;
  overflow:hidden;
  background:#e5edf3;
}

.progress-fill {
  width:0%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#ffd56a,#ffefa9);
  transition:width .3s ease;
}

.stamp-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.stamp-card {
  min-height:150px;
  padding:16px 10px;
  border-radius:22px;
  border:1px solid rgba(24,49,79,.1);
  background:#f5f8fa;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}

.stamp-card.is-earned {
  background:linear-gradient(180deg,#fff9d7,#fffef8);
  box-shadow:0 7px 18px rgba(24,49,79,.08);
}

.stamp-icon {
  font-size:2.7rem;
  line-height:1;
  filter:grayscale(1);
  opacity:.35;
}

.stamp-card.is-earned .stamp-icon {
  filter:none;
  opacity:1;
  animation:stamp-pop .36s ease;
}

.stamp-name {
  margin-top:5px;
  font-weight:1000;
  font-size:1.05rem;
}

.stamp-kana {
  min-height:1.3em;
  font-size:.8rem;
  font-weight:700;
  color:#6c7d90;
}

.stamp-state {
  margin-top:4px;
  padding:4px 8px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:900;
  background:#e8eef3;
  color:#68798c;
}

.stamp-card.is-earned .stamp-state {
  background:#fff0a8;
  color:#18314f;
}

@keyframes stamp-pop {
  0% { transform:scale(.7) rotate(-10deg); }
  60% { transform:scale(1.15) rotate(4deg); }
  100% { transform:scale(1) rotate(0); }
}

@media (max-width:760px) {
  .stamp-book-view {
    border-radius:20px;
    padding:14px;
  }

  .stamp-book-header {
    align-items:center;
  }

  .stamp-book-header .small-button {
    flex:0 0 auto;
  }

  .stamp-book-message {
    font-size:.86rem;
  }

  .stamp-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .stamp-card {
    min-height:132px;
    border-radius:18px;
    padding:12px 8px;
  }

  .stamp-icon {
    font-size:2.25rem;
  }

  .stamp-name {
    font-size:.95rem;
  }

  .stamp-kana {
    font-size:.72rem;
  }
}


/* STEP 5 — 47都道府県 */
.quiz-progress {
  display:inline-block;
  margin-left:6px;
  padding:3px 8px;
  border-radius:999px;
  background:#edf6fb;
  font-size:.78rem;
}

.region-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.region-chip {
  border:1px solid rgba(24,49,79,.14);
  background:#f5f8fa;
  color:#18314f;
  border-radius:999px;
  min-height:38px;
  padding:6px 12px;
  font-weight:900;
  cursor:pointer;
}

.region-chip.is-active {
  background:#18314f;
  color:#fff;
}

.stamp-card-region {
  margin-top:1px;
  font-size:.7rem;
  font-weight:800;
  color:#8290a0;
}

@media (max-width:760px) {
  .region-filters {
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:5px;
    scrollbar-width:thin;
  }

  .region-chip {
    flex:0 0 auto;
    min-height:40px;
  }
}


/* STEP 6 — 発見カード */
.discover-button {
  display:none;
  width:100%;
  min-height:54px;
  margin-top:10px;
  border:0;
  border-radius:18px;
  background:#fff2b5;
  color:#18314f;
  font-weight:1000;
  cursor:pointer;
  padding:10px 14px;
}
body.is-correct .discover-button { display:block; }

.discover-view {
  background:#fff;
  border:1px solid rgba(24,49,79,.12);
  border-radius:26px;
  box-shadow:0 12px 30px rgba(24,49,79,.08);
  padding:clamp(16px,3vw,28px);
}
.discover-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.discover-stamp {
  padding:8px 12px;
  border-radius:999px;
  background:#fff7c9;
  font-weight:900;
  white-space:nowrap;
}
.discover-hero {
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(135deg,#eefaff,#fff9d7);
}
.discover-emoji { font-size:4rem; line-height:1; }
.discover-kicker { font-size:.86rem; font-weight:900; color:#61748a; }
.discover-hero h2 { margin:.18rem 0 0; font-size:clamp(2rem,6vw,3.3rem); }
.discover-kana { margin-top:3px; font-size:1rem; font-weight:800; color:#687b90; }

.discover-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.discover-card {
  min-height:150px;
  padding:18px;
  border-radius:22px;
  background:#f7fbff;
  border:1px solid rgba(24,49,79,.09);
}
.discover-card-wide { grid-column:1 / -1; min-height:120px; }
.discover-icon { font-size:2rem; }
.discover-label { margin-top:8px; font-size:.8rem; font-weight:900; color:#6c7e92; }
.discover-value { margin-top:5px; font-size:1.45rem; font-weight:1000; }
.discover-sub { margin-top:3px; font-size:.9rem; font-weight:800; color:#6c7e92; }
.discover-point { font-size:1.18rem; line-height:1.6; }

.discover-more {
  margin-top:18px;
  padding:16px;
  border-radius:20px;
  background:#fffdf4;
  border:1px dashed rgba(24,49,79,.18);
}
.discover-more-title { font-weight:1000; margin-bottom:10px; }
.discover-more-items { display:flex; flex-wrap:wrap; gap:8px; }
.discover-more-items span {
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(24,49,79,.08);
  font-weight:800;
  font-size:.86rem;
}
.discover-next {
  width:100%;
  min-height:58px;
  margin-top:18px;
  border:0;
  border-radius:18px;
  background:#18314f;
  color:#fff;
  font-size:1.02rem;
  font-weight:1000;
  cursor:pointer;
}

@media (max-width:760px) {
  .discover-button {
    grid-column:2 / 4;
    width:auto;
    margin:7px 0 0;
    min-height:44px;
    font-size:.82rem;
  }
  .discover-view { padding:14px; border-radius:20px; }
  .discover-header { align-items:flex-start; }
  .discover-stamp { font-size:.8rem; padding:7px 9px; }
  .discover-hero { margin-top:12px; padding:14px; gap:12px; border-radius:20px; }
  .discover-emoji { font-size:3rem; }
  .discover-grid { grid-template-columns:1fr; gap:10px; }
  .discover-card,.discover-card-wide { grid-column:auto; min-height:0; padding:14px; border-radius:18px; }
  .discover-value { font-size:1.2rem; }
  .discover-point { font-size:1rem; }
  .discover-more-items { gap:6px; }
  .discover-more-items span { min-height:36px; font-size:.78rem; }
}


/* STEP 7 — Mode Navigation / 地図帳 */
.mode-nav {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}

.mode-button {
  min-height:52px;
  border:1px solid rgba(24,49,79,.12);
  border-radius:18px;
  background:#fff;
  color:#18314f;
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(24,49,79,.05);
}

.mode-button.is-active {
  background:#18314f;
  color:#fff;
  box-shadow:0 8px 18px rgba(24,49,79,.14);
}

.atlas-view {
  background:#fff;
  border:1px solid rgba(24,49,79,.12);
  border-radius:26px;
  box-shadow:0 12px 30px rgba(24,49,79,.08);
  padding:clamp(16px,3vw,28px);
}

.atlas-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}

.atlas-kicker {
  font-size:.86rem;
  font-weight:900;
  color:#61748a;
}

.atlas-view h2 {
  margin:.18rem 0 .25rem;
  font-size:clamp(1.8rem,4vw,2.7rem);
}

.atlas-message {
  margin:.25rem 0 0;
  font-weight:800;
  color:#5f7389;
}

.atlas-note {
  max-width:300px;
  padding:10px 13px;
  border-radius:16px;
  background:#fff8cf;
  font-weight:900;
  font-size:.86rem;
  line-height:1.45;
}

.atlas-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:18px;
  align-items:stretch;
}

.atlas-map-card {
  box-shadow:none;
}

.atlas-guide {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:22px;
  border-radius:24px;
  background:linear-gradient(180deg,#f2fbff,#fffdf4);
  border:1px solid rgba(24,49,79,.09);
}

.atlas-guide-icon {
  font-size:3rem;
}

.atlas-guide-title {
  margin-top:9px;
  font-size:1.45rem;
  font-weight:1000;
}

.atlas-guide p {
  margin:.45rem 0 0;
  font-weight:800;
  line-height:1.55;
}

.atlas-guide-small {
  color:#6f8194;
  font-size:.86rem;
}

.atlas-view .prefecture.is-atlas-hover {
  fill:#cbefff;
}

@media (max-width:760px) {
  .mode-nav {
    position:sticky;
    top:0;
    z-index:20;
    gap:6px;
    margin-bottom:10px;
    padding:4px 0;
    background:rgba(246,251,255,.94);
    backdrop-filter:blur(6px);
  }

  .mode-button {
    min-height:46px;
    border-radius:14px;
    font-size:.86rem;
    padding:6px 5px;
  }

  .atlas-view {
    border-radius:20px;
    padding:12px;
  }

  .atlas-header {
    display:block;
    margin-bottom:12px;
  }

  .atlas-note {
    max-width:none;
    margin-top:10px;
    font-size:.78rem;
  }

  .atlas-layout {
    display:block;
  }

  .atlas-guide {
    margin-top:10px;
    padding:14px;
    border-radius:18px;
  }

  .atlas-guide-icon {
    font-size:2rem;
  }

  .atlas-guide-title {
    font-size:1.1rem;
  }

  .atlas-guide p {
    font-size:.86rem;
  }

  .atlas-map-card .japan-map {
    max-height:60vh;
  }
}


/* STEP 7.1 — 地方ズーム / 小さい県タップ支援 */
.map-zoom-tools {
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
}

.zoom-main-button,
.zoom-reset-button,
.atlas-zoom-chip {
  border:1px solid rgba(24,49,79,.13);
  color:#18314f;
  font-weight:1000;
  cursor:pointer;
}

.zoom-main-button {
  min-height:44px;
  padding:7px 14px;
  border-radius:14px;
  background:#fff2b5;
}

.zoom-reset-button {
  min-height:44px;
  padding:7px 13px;
  border-radius:14px;
  background:#f1f6f9;
}

.atlas-region-zoom {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
}

.atlas-zoom-chip {
  min-height:38px;
  padding:6px 12px;
  border-radius:999px;
  background:#f5f8fa;
  white-space:nowrap;
}

.atlas-zoom-chip.is-active {
  background:#18314f;
  color:#fff;
}

.japan-map {
  transition:all .18s ease;
}

.map-stage.is-zoomed {
  background:radial-gradient(circle at 50% 35%,#fbfeff,#e7f6ff);
}

.map-help.is-zoomed-help::after {
  content:"　🔎 大きく表示中";
  font-weight:1000;
}

@media (max-width:760px) {
  .map-zoom-tools {
    position:relative;
    z-index:5;
    justify-content:stretch;
  }

  .zoom-main-button,
  .zoom-reset-button {
    flex:1;
    min-height:46px;
    padding:7px 8px;
    font-size:.84rem;
  }

  .atlas-region-zoom {
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:5px;
    scrollbar-width:thin;
  }

  .atlas-zoom-chip {
    flex:0 0 auto;
    min-height:40px;
  }

  .map-stage.is-zoomed .japan-map {
    max-height:64vh;
  }
}


/* STEP 8 — 発見カード拡張 */
.zoom-main-button:disabled {
  opacity:.64;
  cursor:not-allowed;
  background:#eef3f7;
}

.learn-more {
  margin-top:18px;
  padding:16px;
  border-radius:22px;
  background:#fffdf4;
  border:1px solid rgba(24,49,79,.10);
}

.learn-more-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.learn-more-head h3 {
  margin:.18rem 0 0;
  font-size:1.12rem;
}

.learn-close-all {
  min-height:38px;
  padding:6px 11px;
  border:1px solid rgba(24,49,79,.12);
  border-radius:12px;
  background:#fff;
  color:#18314f;
  font-weight:900;
  cursor:pointer;
}

.learn-tabs {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
}

.learn-tab {
  min-height:62px;
  padding:8px 7px;
  border:1px solid rgba(24,49,79,.11);
  border-radius:16px;
  background:#fff;
  color:#18314f;
  font-weight:1000;
  line-height:1.25;
  cursor:pointer;
}

.learn-tab.is-active {
  background:#18314f;
  color:#fff;
}

.learn-detail {
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin-top:12px;
  padding:15px;
  border-radius:18px;
  background:#eef9ff;
  border:1px solid rgba(24,49,79,.08);
}

.learn-detail[hidden] {
  display:none;
}

.learn-detail-icon {
  font-size:2.35rem;
  text-align:center;
}

.learn-detail-title {
  font-size:.82rem;
  font-weight:1000;
  color:#667b91;
}

.learn-detail-text {
  margin-top:4px;
  font-size:1.08rem;
  line-height:1.6;
  font-weight:900;
}

@media (max-width:760px) {
  .learn-more {
    padding:12px;
    border-radius:18px;
  }

  .learn-tabs {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .learn-tab:last-child {
    grid-column:1 / -1;
  }

  .learn-tab {
    min-height:52px;
    font-size:.84rem;
  }

  .learn-detail {
    grid-template-columns:42px minmax(0,1fr);
    padding:12px;
  }

  .learn-detail-icon {
    font-size:1.9rem;
  }

  .learn-detail-text {
    font-size:.95rem;
  }
}


/* STEP 9 — 発見情報 → 地図 */
.learn-map-button {
  min-height:42px;
  margin-top:10px;
  padding:7px 12px;
  border:0;
  border-radius:13px;
  background:#18314f;
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}

.learn-map-button[hidden] {
  display:none;
}

.discover-map-panel {
  margin-top:12px;
  padding:14px;
  border-radius:20px;
  background:#f6fbff;
  border:1px solid rgba(24,49,79,.10);
}

.discover-map-panel[hidden] {
  display:none;
}

.discover-map-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.discover-map-head h4 {
  margin:.18rem 0 0;
  font-size:1.12rem;
}

.discover-map-stage {
  width:100%;
  margin-top:10px;
  min-height:270px;
  overflow:hidden;
  border-radius:18px;
  background:radial-gradient(circle at 45% 35%,#fff,#e7f6ff);
}

.discover-map-stage .japan-map {
  display:block;
  width:100%;
  height:270px;
  max-height:none;
}

.discover-map-stage .prefecture {
  pointer-events:none;
}

.poi-layer {
  pointer-events:none;
}

.poi-pulse {
  fill:none;
  stroke:#18314f;
  stroke-width:4;
  vector-effect:non-scaling-stroke;
  opacity:.35;
  animation:poi-pulse 1.25s ease-out infinite;
}

.poi-dot {
  fill:#fff;
  stroke:#18314f;
  stroke-width:5;
  vector-effect:non-scaling-stroke;
}

.poi-center {
  fill:#18314f;
}

.discover-map-caption {
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin-top:10px;
  padding:10px 12px;
  border-radius:16px;
  background:#fff;
}

.discover-map-pin {
  font-size:1.7rem;
  text-align:center;
}

.discover-map-place {
  font-size:1rem;
  font-weight:1000;
}

.discover-map-note {
  margin-top:2px;
  color:#667b91;
  font-size:.86rem;
  font-weight:800;
  line-height:1.45;
}

@keyframes poi-pulse {
  0% { r:10; opacity:.45; }
  100% { r:26; opacity:0; }
}

@media (max-width:760px) {
  .discover-map-panel {
    padding:10px;
    border-radius:17px;
  }

  .discover-map-stage {
    min-height:230px;
  }

  .discover-map-stage .japan-map {
    height:230px;
  }
}

/* STEP 10 — わかりやすい地図 ↔ ほんものの地図 */
.map-kind-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.map-kind-button{min-height:46px;padding:7px 10px;border:1px solid rgba(24,49,79,.13);border-radius:14px;background:#fff;color:#18314f;font-weight:1000;cursor:pointer}
.map-kind-button.is-active{background:#18314f;color:#fff}
.real-map-wrap{position:relative;margin-top:10px;border-radius:18px;overflow:hidden;border:1px solid rgba(24,49,79,.10);background:#eaf5fb}
.real-map-wrap[hidden]{display:none}
.real-map{width:100%;height:320px}
.real-map-status{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:min(86%,340px);padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 8px 20px rgba(24,49,79,.12);text-align:center;color:#18314f;font-weight:1000;pointer-events:none}
.real-map-status.is-error{color:#7a3c00;background:rgba(255,248,225,.97)}
.real-map-attribution{padding:7px 9px;background:#fff;color:#5e7084;font-size:.72rem;line-height:1.45;font-weight:800}
.real-map-marker{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#fff;border:4px solid #18314f;box-shadow:0 4px 14px rgba(24,49,79,.24);font-size:1.35rem}
@media (max-width:760px){.map-kind-button{min-height:44px;padding:6px;font-size:.82rem}.real-map{height:280px}.real-map-attribution{font-size:.67rem}}


/* STEP 11 — Markerをタップして探検 */
.map-tap-hint{width:100%;min-height:42px;margin-top:10px;padding:7px 12px;border:1px dashed rgba(24,49,79,.22);border-radius:14px;background:#fff8cf;color:#18314f;font-weight:1000;cursor:pointer}
.poi-layer{pointer-events:all;cursor:pointer}
.poi-layer:hover .poi-dot,.poi-layer:focus .poi-dot{stroke-width:7}
.spot-detail-card{margin-top:12px;padding:16px;border-radius:20px;background:#fff;border:2px solid rgba(24,49,79,.13);box-shadow:0 10px 24px rgba(24,49,79,.10)}
.spot-detail-card[hidden]{display:none}
.spot-detail-top{display:grid;grid-template-columns:52px minmax(0,1fr) 36px;gap:10px;align-items:start}
.spot-detail-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;background:#eef9ff;font-size:2rem}
.spot-detail-heading h5{margin:.1rem 0 .25rem;font-size:1.28rem}
.spot-source-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef3f7;color:#5f7389;font-size:.72rem;font-weight:1000}
.spot-detail-close{width:36px;height:36px;border:0;border-radius:50%;background:#eef3f7;color:#18314f;font-size:1.25rem;font-weight:1000;cursor:pointer}
.spot-detail-summary{margin:13px 0 10px;font-size:1rem;line-height:1.65;font-weight:900}
.spot-facts{display:grid;gap:8px}
.spot-fact{position:relative;padding:10px 12px 10px 36px;border-radius:14px;background:#f7fbfd;line-height:1.55;font-weight:800}
.spot-fact::before{content:"💡";position:absolute;left:10px;top:9px}
.official-link-button{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:13px;padding:8px 14px;border-radius:15px;background:#18314f;color:#fff;text-decoration:none;font-weight:1000}
.external-link-note{margin-top:6px;color:#6c7d90;text-align:center;font-size:.74rem;font-weight:800}
.real-map-marker{cursor:pointer}
@media (max-width:760px){.spot-detail-card{padding:12px;border-radius:17px}.spot-detail-top{grid-template-columns:44px minmax(0,1fr) 34px}.spot-detail-icon{width:44px;height:44px;border-radius:13px;font-size:1.6rem}.spot-detail-heading h5{font-size:1.08rem}.spot-detail-summary{font-size:.92rem}.spot-fact{font-size:.86rem}}

/* STEP 12 — PWA / App status */
.app-status-panel{max-width:1100px;margin:18px auto 0;padding:0 4px 24px}
.app-status-button{min-height:38px;padding:6px 11px;border:1px solid rgba(24,49,79,.11);border-radius:12px;background:#eef3f7;color:#5d7185;font-size:.78rem;font-weight:900;cursor:pointer}
.app-status-detail{margin-top:8px;padding:11px 12px;border-radius:14px;background:#fff;border:1px solid rgba(24,49,79,.09);color:#607388;font-size:.76rem;line-height:1.55}
.app-status-detail[hidden]{display:none}
.release-id{margin-top:3px;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem}
.pwa-status,.update-status{margin-top:5px;font-weight:800}
@media (display-mode: standalone){body{overscroll-behavior-y:contain}}
@media (max-width:760px){.app-status-panel{margin-top:12px;padding-bottom:18px}}


/* STEP 13 — Furigana */
.chizu-ruby {
  ruby-position: over;
  ruby-align: center;
}

.chizu-ruby rt {
  font-size: .46em;
  line-height: 1;
  font-weight: 800;
  color: #607388;
  letter-spacing: 0;
}

body.furigana-off .chizu-ruby rt {
  display: none;
}

.furigana-setting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: 10px;
  background: #f7fbfd;
  font-weight: 900;
  cursor: pointer;
}

.furigana-setting input {
  width: 20px;
  height: 20px;
}

.stamp-name .chizu-ruby rt {
  font-size: .42em;
}

@media (max-width:760px) {
  .chizu-ruby rt {
    font-size: .44em;
  }
}

/* STEP 15 — 道の駅たんけん */
.mode-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.road-view{background:#fff;border:1px solid rgba(24,49,79,.12);border-radius:26px;box-shadow:0 12px 30px rgba(24,49,79,.08);padding:clamp(16px,3vw,28px)}
.road-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.road-header h2{margin:.18rem 0 .25rem;font-size:clamp(1.8rem,4vw,2.7rem)}
.road-lead{margin:.2rem 0;color:#5f7389;font-weight:800}.road-total{display:flex;align-items:baseline;gap:4px;padding:10px 14px;border-radius:18px;background:#fff4d4;white-space:nowrap}.road-total strong{font-size:1.65rem}.road-total span{font-weight:1000}
.road-source{margin:10px 0 14px;padding:9px 12px;border-radius:13px;background:#f4f8fa;color:#667b91;font-size:.78rem;font-weight:800}
.road-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.road-map-card{box-shadow:none}.road-panel{min-height:360px;padding:14px;border-radius:22px;background:#f7fbfd;border:1px solid rgba(24,49,79,.09)}
.road-empty{height:100%;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px}.road-empty-icon{font-size:2.8rem}.road-empty strong{font-size:1.3rem}.road-empty span{color:#728497;font-weight:800}
.road-pref-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.road-pref-head h3{margin:.15rem 0;font-size:1.45rem}.road-pref-count{padding:6px 9px;border-radius:999px;background:#18314f;color:#fff;font-size:.78rem;font-weight:1000;white-space:nowrap}
.road-list{display:grid;gap:8px;margin-top:12px;max-height:520px;overflow:auto;padding-right:3px}.road-station-card{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;text-align:left;padding:10px;border:1px solid rgba(24,49,79,.1);border-radius:15px;background:#fff;color:#18314f;cursor:pointer}.road-station-card:hover{background:#eef9ff}.road-card-icon{font-size:1.35rem;text-align:center}.road-card-name{font-weight:1000;line-height:1.35}.road-card-loc{margin-top:2px;color:#718397;font-size:.76rem;font-weight:800}
.road-more-button{width:100%;min-height:42px;margin-top:9px;border:0;border-radius:13px;background:#e8f2f7;color:#18314f;font-weight:1000;cursor:pointer}
.road-detail{position:relative;margin-top:16px;padding:18px;border-radius:22px;background:#fff9df;border:1px solid rgba(24,49,79,.12)}.road-detail[hidden]{display:none}.road-detail-close{position:absolute;right:12px;top:12px}.road-detail-icon{font-size:2.2rem}.road-detail h3{margin:.15rem 0 .35rem;font-size:1.5rem}.road-detail-meta{color:#63778d;font-size:.82rem;font-weight:900}.road-detail p{font-weight:800;line-height:1.6}.road-detail-actions{display:flex;gap:8px;flex-wrap:wrap}.road-speak-button{min-height:46px;padding:8px 12px;border:1px solid rgba(24,49,79,.12);border-radius:14px;background:#fff;color:#18314f;font-weight:1000;cursor:pointer}.road-detail-actions .official-link-button{flex:1;margin-top:0;min-width:220px}.road-detail-actions .official-link-button[hidden]{display:none}
@media(max-width:760px){.mode-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.mode-button{font-size:.75rem}.road-view{padding:12px;border-radius:20px}.road-header{display:block}.road-total{display:inline-flex;margin-top:8px}.road-layout{display:block}.road-panel{min-height:0;margin-top:10px;padding:10px}.road-list{max-height:none}.road-empty{min-height:130px}.road-detail-actions{display:block}.road-detail-actions .official-link-button{margin-top:8px;min-width:0}}

/* STEP 16 — 道の駅クイズ / スタンプ */
.road-subnav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}.road-sub-button{min-height:46px;border:1px solid rgba(24,49,79,.12);border-radius:14px;background:#fff;color:#18314f;font-weight:1000;cursor:pointer}.road-sub-button.is-active{background:#18314f;color:#fff}
.road-quiz-panel[hidden],.road-stamp-panel[hidden],#roadExplorePanel[hidden]{display:none}.road-quiz-card{padding:16px;border-radius:20px;background:#fff8cf;border:1px solid rgba(24,49,79,.09);text-align:center}.road-quiz-label{margin-top:8px;color:#64788d;font-weight:900}.road-quiz-name{margin:7px 0 10px;font-size:clamp(1.55rem,4vw,2.3rem);font-weight:1000;line-height:1.35}.road-quiz-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.road-quiz-zoom-tools{display:flex;justify-content:center;gap:8px;margin-top:10px}.road-quiz-map-card{margin-top:12px;box-shadow:none}.road-quiz-result{margin-top:10px;padding:12px;border-radius:16px;background:#eef6fa;text-align:center;font-weight:1000}.road-quiz-result.is-correct{background:#e8f8df}.road-quiz-result.is-miss{background:#fff1df}
.road-stamp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.road-stamp-head h3{margin:.15rem 0;font-size:1.65rem}.road-stamp-big{display:flex;align-items:baseline;gap:4px;padding:8px 13px;border-radius:16px;background:#fff4d4}.road-stamp-big strong{font-size:1.7rem}.road-stamp-big span{font-weight:1000}.road-stamp-message{color:#667b91;font-weight:800}.road-stamp-filter-label{display:flex;align-items:center;gap:8px;margin:10px 0;font-weight:900}.road-stamp-filter-label select{min-height:42px;max-width:240px;padding:6px 10px;border:1px solid rgba(24,49,79,.15);border-radius:12px;background:#fff;color:#18314f;font-weight:900}.road-stamp-empty{padding:28px 14px;text-align:center;border-radius:18px;background:#f7fbfd;color:#64788d;font-weight:900}.road-stamp-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.road-stamp-card{padding:12px;border:1px solid rgba(24,49,79,.1);border-radius:16px;background:#fff;text-align:left;color:#18314f;cursor:pointer}.road-stamp-card .star{font-size:1.35rem}.road-stamp-card strong{display:block;margin-top:4px;line-height:1.35}.road-stamp-card small{display:block;margin-top:3px;color:#708296;font-weight:800}
@media(max-width:760px){.road-sub-button{font-size:.82rem}.road-quiz-card{padding:12px}.road-quiz-actions,.road-quiz-zoom-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.road-quiz-actions .skip-button{grid-column:1/-1}.road-stamp-list{grid-template-columns:repeat(2,minmax(0,1fr))}.road-stamp-head h3{font-size:1.35rem}}


/* STEP 16.1 — 道の駅一覧 Layout Fix */
.road-layout {
  align-items: start;
}

.road-map-card,
.road-panel {
  align-self: start;
}

.road-station-card {
  align-items: start;
  min-height: 64px;
}

.road-station-card > span:last-child {
  display: block;
  min-width: 0;
}

.road-card-name {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.road-card-loc {
  display: block;
  margin-top: 4px;
  color: #718397;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.road-pref-head {
  min-height: 58px;
}

.road-pref-head h3 {
  line-height: 1.25;
}

@media (max-width:760px) {
  .road-station-card {
    min-height: 60px;
    padding: 10px 9px;
  }

  .road-card-name {
    font-size: .94rem;
  }

  .road-card-loc {
    font-size: .72rem;
  }
}


/* STEP 17 — 道の駅を地図で見る */
.road-map-link,
.road-quiz-map-link {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:8px 14px;
  border-radius:15px;
  background:#fff8cf;
  color:#18314f;
  border:1px solid rgba(24,49,79,.13);
  text-decoration:none;
  font-weight:1000;
}

.road-map-link:hover,
.road-quiz-map-link:hover {
  background:#fff2b5;
}

.road-map-note {
  margin-top:7px;
  color:#6c7d90;
  text-align:center;
  font-size:.74rem;
  font-weight:800;
}

.road-quiz-map-link {
  max-width:520px;
  margin:10px auto 0;
}

.road-quiz-map-link[hidden] {
  display:none;
}

@media (max-width:760px) {
  .road-detail-actions {
    grid-template-columns:1fr;
  }

  .road-map-link,
  .road-quiz-map-link {
    min-height:46px;
    font-size:.88rem;
  }
}


/* STEP 17.1 — iPhone / Smartphone 実機UI仕上げ */

/* 道の駅View内の見出し */
.road-main-title {
  line-height: 1.15;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 上部Headerの道の駅タイトルは、意図した場所だけで改行 */
#pageTitle.is-road-page-title {
  line-height: 1.08;
  word-break: keep-all;
}

#pageTitle.is-road-page-title span {
  white-space: nowrap;
}

/* 長い駅名はCardを壊さず折り返す */
.road-quiz-name,
.road-card-name,
#roadDetailName {
  overflow-wrap: anywhere;
}

@media (max-width:760px) {
  /* Header: title / stamp / resetの衝突を防ぐ */
  .topbar {
    align-items: flex-start;
    gap: 8px;
  }

  .topbar > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .top-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  #pageTitle {
    font-size: clamp(1.65rem, 8vw, 2.05rem);
    letter-spacing: -.02em;
  }

  #pageTitle.is-road-page-title {
    font-size: clamp(1.58rem, 7.4vw, 1.95rem);
  }

  .eyebrow {
    font-size: .70rem;
    letter-spacing: .035em;
    white-space: nowrap;
  }

  .stamp-counter {
    min-height: 46px;
    padding: 7px 11px;
  }

  /* 上部4モードNavigation */
  .mode-nav {
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 5px;
  }

  .mode-button {
    min-width: 0;
    min-height: 52px;
    padding: 7px 3px;
    font-size: .82rem;
    line-height: 1.22;
    white-space: nowrap;
  }

  /* 道の駅Home */
  .road-header {
    align-items: flex-start;
    gap: 10px;
  }

  .road-header > div:first-child {
    min-width: 0;
  }

  .road-main-title {
    margin-top: .12rem;
    font-size: clamp(1.72rem, 7.3vw, 2.1rem);
    white-space: nowrap;
    letter-spacing: -.02em;
  }

  .road-lead {
    line-height: 1.5;
  }

  .road-total {
    padding: 8px 11px;
  }

  .road-total strong {
    font-size: 1.45rem;
  }

  /* 道の駅3モード */
  .road-subnav {
    gap: 6px;
  }

  .road-sub-button {
    min-width: 0;
    min-height: 54px;
    padding: 7px 4px;
    font-size: .90rem;
    line-height: 1.2;
  }

  /* 道の駅Quiz */
  .road-quiz-card {
    padding: 15px 11px;
  }

  .road-quiz-name {
    font-size: clamp(1.72rem, 7.7vw, 2.25rem);
    line-height: 1.18;
  }

  .road-quiz-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
  }

  .road-quiz-actions > button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    line-height: 1.25;
  }

  .road-quiz-zoom-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
  }

  .road-quiz-zoom-tools > * {
    min-width: 0;
    min-height: 58px;
    line-height: 1.25;
  }

  /* 横方向のはみ出しを抑止 */
  .road-layout,
  .road-panel,
  .road-list,
  .road-station-card,
  .road-detail-card,
  .road-quiz-panel,
  .road-stamp-panel {
    min-width: 0;
    max-width: 100%;
  }

  /* footerは開発情報なので控えめ */
  footer {
    font-size: .72rem;
    line-height: 1.4;
  }
}

@media (max-width:390px) {
  .mode-button {
    font-size: .77rem;
  }

  #pageTitle.is-road-page-title {
    font-size: 1.55rem;
  }

  .road-main-title {
    font-size: 1.68rem;
  }

  .road-sub-button {
    font-size: .84rem;
  }
}


/* STEP 18 — 子ども実使用フィードバック / 自由探索 */

/* 「どこでしょう？」を主役にする */
.quiz-badge-main {
  font-size: 1.18rem;
  padding: 7px 11px;
}

.quiz-badge-main .quiz-progress {
  font-size: .95rem;
}

#pageTitle.is-quiz-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.place-search-launch {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:64px;
  margin:0 0 14px;
  padding:9px 14px;
  border:1px solid rgba(24,49,79,.12);
  border-radius:20px;
  background:#fff8cf;
  color:#18314f;
  cursor:pointer;
  text-align:left;
}

.place-search-launch-icon {
  font-size:1.7rem;
}

.place-search-launch strong,
.place-search-launch small {
  display:block;
}

.place-search-launch strong {
  font-size:1.13rem;
  font-weight:1000;
}

.place-search-launch small {
  margin-top:2px;
  color:#687c91;
  font-size:.75rem;
  font-weight:800;
}

.road-explore-map-tools {
  display:flex;
  justify-content:flex-end;
  margin-bottom:8px;
}

.road-explore-reset {
  min-height:42px;
}

/* Road intermediate real map */
.road-real-map-button {
  min-height:48px;
  padding:8px 14px;
  border:0;
  border-radius:15px;
  background:#18314f;
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}

.road-real-map-wrap {
  position:relative;
  margin-top:14px;
  padding:12px;
  border-radius:20px;
  background:#f6fbff;
  border:1px solid rgba(24,49,79,.10);
}

.road-real-map-wrap[hidden] { display:none; }

.road-real-map-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.road-real-map {
  width:100%;
  height:310px;
  margin-top:10px;
  border-radius:16px;
  overflow:hidden;
  background:#eaf5fb;
}

.road-real-map-status {
  margin-top:10px;
  padding:9px 11px;
  border-radius:12px;
  background:#fff8cf;
  font-weight:900;
}

.road-real-map-status[hidden] { display:none; }

.road-real-map-note {
  margin-top:9px;
  padding:9px 11px;
  border-radius:12px;
  background:#fff;
  color:#63778c;
  font-size:.82rem;
  line-height:1.5;
  font-weight:800;
}

.road-real-map-attribution {
  margin-top:6px;
  color:#718397;
  font-size:.66rem;
  line-height:1.4;
}

.road-area-marker {
  padding:7px 9px;
  border-radius:999px;
  background:#fff;
  border:3px solid #18314f;
  color:#18314f;
  box-shadow:0 4px 12px rgba(24,49,79,.18);
  font-size:.76rem;
  font-weight:1000;
  white-space:nowrap;
}

.road-next-explore {
  margin-top:14px;
  padding:12px;
  border-radius:18px;
  background:#fffdf4;
}

.road-next-buttons {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:8px;
}

.road-next-buttons button {
  min-height:42px;
  padding:7px 10px;
  border:1px solid rgba(24,49,79,.11);
  border-radius:13px;
  background:#fff;
  color:#18314f;
  font-weight:900;
  cursor:pointer;
}

/* Place search */
.place-search-view {
  background:#fff;
  border:1px solid rgba(24,49,79,.11);
  border-radius:26px;
  padding:clamp(15px,3vw,26px);
}

.place-search-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.place-search-header h2 {
  margin:.18rem 0 .25rem;
  font-size:clamp(1.9rem,4vw,2.7rem);
}

.place-search-header p {
  margin:.2rem 0;
  color:#64788d;
  font-weight:800;
}

.place-search-box {
  margin-top:15px;
  padding:14px;
  border-radius:20px;
  background:#fff8cf;
}

.place-search-box label {
  display:block;
  margin-bottom:7px;
  font-weight:1000;
}

.place-search-input-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}

.place-search-input-row input {
  min-width:0;
  width:100%;
  min-height:52px;
  padding:9px 12px;
  border:2px solid rgba(24,49,79,.13);
  border-radius:15px;
  background:#fff;
  color:#18314f;
  font:inherit;
  font-size:1rem;
}

.place-search-input-row button {
  min-height:52px;
  padding:8px 14px;
  border:0;
  border-radius:15px;
  background:#18314f;
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}

.place-quick-buttons {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}

.place-quick-buttons button {
  min-height:40px;
  padding:6px 9px;
  border:1px solid rgba(24,49,79,.10);
  border-radius:999px;
  background:#fff;
  color:#18314f;
  font-weight:900;
  cursor:pointer;
}

.place-search-count {
  margin:12px 2px 8px;
  color:#687c91;
  font-size:.84rem;
  font-weight:900;
}

.place-search-results {
  display:grid;
  gap:8px;
}

.place-search-result {
  width:100%;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:62px;
  padding:9px 11px;
  border:1px solid rgba(24,49,79,.10);
  border-radius:16px;
  background:#f8fbfd;
  color:#18314f;
  text-align:left;
  cursor:pointer;
}

.place-search-result-icon {
  font-size:1.55rem;
  text-align:center;
}

.place-search-result-name {
  display:block;
  font-size:1rem;
  line-height:1.35;
  font-weight:1000;
}

.place-search-result-meta {
  display:block;
  margin-top:2px;
  color:#6a7d90;
  font-size:.75rem;
  line-height:1.35;
  font-weight:800;
}

.place-search-result-kind {
  padding:4px 7px;
  border-radius:999px;
  background:#eef3f7;
  color:#63778c;
  font-size:.68rem;
  font-weight:900;
  white-space:nowrap;
}

.place-search-map-panel {
  position:relative;
  margin-top:14px;
  padding:13px;
  border-radius:20px;
  background:#f6fbff;
  border:1px solid rgba(24,49,79,.10);
}

.place-search-map-panel[hidden] { display:none; }

.place-search-map-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.place-search-map-head h3 {
  margin:.15rem 0;
  font-size:1.35rem;
}

.place-search-real-map {
  width:100%;
  height:330px;
  margin-top:10px;
  border-radius:16px;
  overflow:hidden;
  background:#eaf5fb;
}

.place-search-map-status {
  margin-top:10px;
  padding:9px 11px;
  border-radius:12px;
  background:#fff8cf;
  font-weight:900;
}

.place-search-map-status[hidden] { display:none; }

.place-search-map-note {
  margin:9px 0 0;
  color:#63778c;
  line-height:1.5;
  font-weight:800;
}

.place-search-map-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}

.place-search-map-actions button,
.place-search-map-actions a {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:7px 10px;
  border:0;
  border-radius:14px;
  text-decoration:none;
  font-weight:1000;
  cursor:pointer;
}

.place-search-map-actions button {
  background:#eef3f7;
  color:#18314f;
}

.place-search-map-actions a {
  background:#18314f;
  color:#fff;
}

.place-search-marker {
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:#fff;
  border:4px solid #18314f;
  box-shadow:0 4px 14px rgba(24,49,79,.24);
  font-size:1.4rem;
}

@media (max-width:760px) {
  .quiz-badge-main {
    font-size:1.28rem;
  }

  #pageTitle.is-quiz-page-title {
    font-size:clamp(2.05rem,10vw,2.65rem);
  }

  .place-search-launch {
    min-height:58px;
    border-radius:17px;
  }

  .place-search-launch small {
    display:none;
  }

  .road-real-map {
    height:275px;
  }

  .road-detail-actions {
    grid-template-columns:1fr;
  }

  .place-search-input-row {
    grid-template-columns:1fr;
  }

  .place-search-input-row button {
    width:100%;
  }

  .place-quick-buttons {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .place-quick-buttons button:last-child {
    grid-column:1 / -1;
  }

  .place-search-result {
    grid-template-columns:38px minmax(0,1fr);
  }

  .place-search-result-kind {
    grid-column:2;
    justify-self:start;
  }

  .place-search-real-map {
    height:280px;
  }

  .place-search-map-actions {
    grid-template-columns:1fr;
  }
}


/* STEP 19 — Home / Random Quiz / Adventure Plan / Road Map Stability */

body.is-home .topbar,
body.is-home .mode-nav,
body.is-home .place-search-launch,
body.is-home footer {
  display:none;
}

body.is-home .app-status-panel {
  display:none;
}

body.is-home.home-settings-open .app-status-panel {
  display:block;
}

.home-view {
  padding:clamp(16px,4vw,32px);
  border-radius:28px;
  background:#f6fbff;
  border:1px solid rgba(24,49,79,.09);
}

.home-hero {
  text-align:center;
  padding:12px 8px 20px;
}

.home-map-icon {
  font-size:3rem;
}

.home-kicker {
  margin-top:5px;
  color:#667b91;
  font-weight:900;
}

.home-hero h1 {
  margin:.2rem 0 .3rem;
  font-size:clamp(2.5rem,7vw,4rem);
  line-height:1.05;
}

.home-hero p {
  max-width:620px;
  margin:0 auto;
  color:#5f7389;
  font-size:1rem;
  line-height:1.65;
  font-weight:800;
}

.home-menu {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.home-menu-card {
  display:flex;
  align-items:center;
  gap:13px;
  min-height:94px;
  padding:14px 16px;
  border:1px solid rgba(24,49,79,.11);
  border-radius:22px;
  background:#fff;
  color:#18314f;
  text-align:left;
  cursor:pointer;
}

.home-menu-card strong,
.home-menu-card small {
  display:block;
}

.home-menu-card strong {
  font-size:1.18rem;
  line-height:1.3;
  font-weight:1000;
}

.home-menu-card small {
  margin-top:4px;
  color:#6a7d91;
  line-height:1.4;
  font-size:.78rem;
  font-weight:800;
}

.home-menu-icon {
  flex:0 0 auto;
  font-size:2rem;
}

.home-menu-primary {
  background:#18314f;
  color:#fff;
}

.home-menu-primary small {
  color:#dce8f3;
}

.home-menu-adventure {
  background:#fff8cf;
}

.home-settings-button {
  display:block;
  margin:18px auto 0;
  min-height:44px;
  padding:8px 14px;
  border:1px solid rgba(24,49,79,.10);
  border-radius:14px;
  background:#eef3f7;
  color:#607388;
  font-weight:900;
  cursor:pointer;
}

/* Adventure Plan */
.adventure-plan-view {
  padding:clamp(16px,3vw,28px);
  border-radius:26px;
  background:#fff;
  border:1px solid rgba(24,49,79,.10);
}

.adventure-plan-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}

.adventure-plan-head h2 {
  margin:.18rem 0 .25rem;
  font-size:clamp(2rem,5vw,3rem);
}

.adventure-plan-head p {
  margin:.25rem 0;
  max-width:640px;
  color:#64788d;
  line-height:1.55;
  font-weight:800;
}

.adventure-plan-summary {
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:18px;
  padding:16px;
  border-radius:20px;
  background:#fff8cf;
}

.adventure-plan-bag {
  font-size:3rem;
}

.adventure-plan-count {
  display:flex;
  align-items:baseline;
  gap:5px;
}

.adventure-plan-count strong {
  font-size:2.4rem;
}

.adventure-plan-count span {
  font-weight:1000;
}

.adventure-plan-empty {
  margin-top:14px;
  padding:24px 16px;
  border-radius:22px;
  background:#f6fbff;
  text-align:center;
}

.adventure-empty-icon {
  font-size:2.6rem;
}

.adventure-plan-empty h3 {
  margin:8px 0 4px;
  font-size:1.35rem;
}

.adventure-plan-empty p {
  margin:0 auto;
  max-width:560px;
  color:#667b91;
  line-height:1.55;
  font-weight:800;
}

#adventureSearchButton {
  min-height:50px;
  margin-top:14px;
  padding:9px 18px;
  border:0;
  border-radius:16px;
  background:#18314f;
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}

.adventure-plan-preview {
  margin-top:14px;
  padding:16px;
  border-radius:20px;
  background:#fffdf4;
}

.adventure-future-steps {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:9px;
}

.adventure-future-steps > div {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:52px;
  padding:10px;
  border-radius:14px;
  background:#fff;
}

.adventure-future-steps span {
  font-size:1.25rem;
}

/* Road real map: Leaflet */
.road-real-map.leaflet-container {
  background:#dceff7;
}

.road-leaflet-marker-wrap {
  background:transparent;
  border:0;
}

.road-gsi-fallback {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin-top:8px;
  padding:7px 10px;
  border-radius:13px;
  background:#eef3f7;
  color:#18314f;
  text-decoration:none;
  font-weight:1000;
}

.road-gsi-fallback[hidden] {
  display:none;
}

@media (max-width:760px) {
  .home-view {
    padding:14px;
    border-radius:22px;
  }

  .home-hero {
    padding-top:5px;
  }

  .home-map-icon {
    font-size:2.6rem;
  }

  .home-hero h1 {
    font-size:2.8rem;
  }

  .home-menu {
    grid-template-columns:1fr;
    gap:9px;
  }

  .home-menu-card {
    min-height:76px;
    padding:11px 13px;
    border-radius:18px;
  }

  .home-menu-card strong {
    font-size:1.12rem;
  }

  .home-menu-icon {
    font-size:1.75rem;
  }

  .adventure-plan-head {
    display:block;
  }

  .adventure-plan-head .small-button {
    margin-top:8px;
  }

  .adventure-future-steps {
    grid-template-columns:1fr;
  }
}


/* STEP 20 — 行きたい！ / 冒険計画 / 外部Google導線 */

.want-button {
  width:100%;
  min-height:50px;
  padding:9px 14px;
  border:2px solid #edb841;
  border-radius:16px;
  background:#fff8cf;
  color:#18314f;
  font-weight:1000;
  font-size:1rem;
  cursor:pointer;
}

.want-button.is-wanted {
  background:#ffe3e8;
  border-color:#e692a1;
}

.place-search-want-button {
  margin-top:10px;
}

/* Adventure plan actual list */
.adventure-plan-content[hidden] {
  display:none;
}

.adventure-plan-help {
  margin:6px 0 10px;
  color:#6b7e91;
  font-weight:800;
}

.adventure-plan-list {
  display:grid;
  gap:9px;
}

.adventure-plan-item {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(24,49,79,.10);
  border-radius:16px;
  background:#f8fbfd;
}

.adventure-plan-number {
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:#18314f;
  color:#fff;
  font-weight:1000;
}

.adventure-plan-item-name {
  display:block;
  font-weight:1000;
  font-size:1rem;
  line-height:1.35;
}

.adventure-plan-item-meta {
  display:block;
  margin-top:2px;
  color:#6b7e91;
  font-size:.76rem;
  line-height:1.35;
  font-weight:800;
}

.adventure-plan-item-actions {
  display:flex;
  gap:5px;
}

.adventure-plan-item-actions button {
  min-width:38px;
  min-height:38px;
  padding:4px 7px;
  border:1px solid rgba(24,49,79,.12);
  border-radius:11px;
  background:#fff;
  color:#18314f;
  font-weight:1000;
  cursor:pointer;
}

.adventure-plan-item-actions button:disabled {
  opacity:.35;
}

.adventure-route-note {
  margin-top:11px;
  padding:9px 11px;
  border-radius:13px;
  background:#fff8cf;
  color:#64778c;
  font-size:.78rem;
  line-height:1.45;
  font-weight:800;
}

.adventure-plan-actions {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:11px;
}

.adventure-plan-actions button {
  min-height:52px;
  padding:8px 10px;
  border:0;
  border-radius:15px;
  background:#eef3f7;
  color:#18314f;
  font-weight:1000;
  cursor:pointer;
}

#adventureRouteButton {
  background:#18314f;
  color:#fff;
}

#adventureExportButton {
  background:#fff8cf;
}

/* Google Maps gate */
.google-gate {
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(14,37,60,.48);
}

.google-gate[hidden] {
  display:none;
}

.google-gate-card {
  width:min(92vw,460px);
  padding:22px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 22px 60px rgba(0,0,0,.23);
  text-align:center;
}

.google-gate-icon {
  font-size:2.6rem;
}

.google-gate-card h2 {
  margin:7px 0 5px;
  font-size:1.65rem;
}

.google-gate-card p {
  margin:0;
  color:#687b90;
  font-weight:800;
}

.google-return-help {
  margin-top:14px;
  padding:13px;
  border-radius:16px;
  background:#fff8cf;
}

.google-return-help strong,
.google-return-help span {
  display:block;
}

.google-return-help strong {
  margin-bottom:4px;
  font-size:1.1rem;
}

.google-return-help span {
  color:#586e85;
  line-height:1.5;
  font-weight:900;
}

.google-gate-actions {
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:8px;
  margin-top:15px;
}

.google-gate-actions button {
  min-height:50px;
  border:0;
  border-radius:15px;
  font-weight:1000;
  cursor:pointer;
}

#cancelGoogleGate {
  background:#eef3f7;
  color:#18314f;
}

#confirmGoogleGate {
  background:#18314f;
  color:#fff;
}

.welcome-back-toast {
  position:fixed;
  left:50%;
  bottom:max(24px, env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:10001;
  width:min(90vw,480px);
  padding:13px 16px;
  border-radius:18px;
  background:#18314f;
  color:#fff;
  text-align:center;
  box-shadow:0 8px 26px rgba(24,49,79,.28);
  font-weight:1000;
}

.welcome-back-toast[hidden] {
  display:none;
}

@media (max-width:760px) {
  .adventure-plan-item {
    grid-template-columns:38px minmax(0,1fr);
  }

  .adventure-plan-number {
    width:36px;
    height:36px;
  }

  .adventure-plan-item-actions {
    grid-column:2;
    justify-content:flex-start;
  }

  .adventure-plan-actions {
    grid-template-columns:1fr;
  }

  .google-gate-actions {
    grid-template-columns:1fr;
  }
}


/* STEP 20.1 — iPhone Google Maps return polish */
.google-return-help {
  border:2px solid rgba(237,184,65,.45);
}

.google-return-help strong {
  font-size:1.18rem;
}

.google-return-help span {
  font-size:.95rem;
}


/* STEP 20.2 — 「ぼくの冒険計画」常設導線 */

.floating-adventure-button {
  position: fixed;
  right: 18px;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  z-index: 8500;

  display: flex;
  align-items: center;
  gap: 7px;

  min-height: 48px;
  padding: 8px 11px;
  border: 2px solid rgba(24,49,79,.16);
  border-radius: 999px;
  background: #fff8cf;
  color: #18314f;
  box-shadow: 0 8px 24px rgba(24,49,79,.20);

  font-weight: 1000;
  cursor: pointer;
}

.floating-adventure-icon {
  font-size: 1.25rem;
}

.floating-adventure-label {
  font-size: .88rem;
  white-space: nowrap;
}

.floating-adventure-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 7px;
  border-radius: 999px;
  background: #18314f;
  color: #fff;
  font-size: .8rem;
  line-height: 1;
}

/* Homeと冒険計画Page自身では不要 */
body.is-home .floating-adventure-button,
body.is-adventure .floating-adventure-button {
  display: none;
}

/* Fixed buttonが最下部Contentを隠さないよう余白確保 */
body:not(.is-home):not(.is-adventure) .app-shell {
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

@media (max-width: 420px) {
  .floating-adventure-button {
    right: 12px;
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 7px));
    min-height: 46px;
    padding: 7px 9px;
    gap: 6px;
  }

  .floating-adventure-label {
    font-size: .82rem;
  }

  .floating-adventure-count {
    min-width: 25px;
    height: 25px;
    font-size: .76rem;
  }
}

/* 非常に狭い画面では文字を縮めず、Labelだけ省略してIcon＋件数を残す */
@media (max-width: 350px) {
  .floating-adventure-label {
    display: none;
  }
}


/* STEP 21 — 正式Title */
.official-home-title {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
}

.official-title-prefix {
  display:block;
  color:#60758b;
  font-size:.42em;
  line-height:1.1;
  font-weight:1000;
  letter-spacing:.08em;
}

.official-title-main {
  display:block;
  white-space:nowrap;
  line-height:1.06;
}

/* STEP 21 — おとな向けGuide */
body.is-adult-guide .topbar,
body.is-adult-guide .mode-nav,
body.is-adult-guide .place-search-launch,
body.is-adult-guide .floating-adventure-button,
body.is-adult-guide footer {
  display:none;
}

body.is-adult-guide .app-shell {
  padding-bottom:24px;
}

.adult-guide-view {
  max-width:1040px;
  margin:0 auto;
  padding:clamp(18px,3vw,30px);
  border:1px solid rgba(24,49,79,.10);
  border-radius:28px;
  background:#f7fafc;
  color:#18314f;
}

.adult-guide-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(24,49,79,.10);
}

.adult-guide-kicker {
  color:#6c7f92;
  font-size:.84rem;
  font-weight:1000;
}

.adult-guide-head h2 {
  margin:.22rem 0 .35rem;
  font-size:clamp(2rem,5vw,3.1rem);
  line-height:1.1;
}

.adult-guide-head p {
  max-width:720px;
  margin:0;
  color:#64788c;
  line-height:1.65;
  font-weight:750;
}

.adult-guide-home,
.adult-guide-bottom-home {
  min-height:48px;
  padding:9px 15px;
  border:2px solid #18314f;
  border-radius:15px;
  background:#fff;
  color:#18314f;
  font-weight:1000;
  cursor:pointer;
}

.adult-guide-intro {
  margin-top:18px;
  padding:18px;
  border-radius:20px;
  background:#fff8cf;
}

.adult-guide-intro h3,
.adult-status-wrap h3 {
  margin:.1rem 0 .45rem;
  font-size:1.25rem;
}

.adult-guide-intro p {
  margin:.2rem 0;
  line-height:1.7;
}

.adult-play-flow {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin-top:12px;
}

.adult-play-flow span {
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  font-weight:1000;
}

.adult-play-flow b {
  color:#7c8ea1;
}

.adult-guide-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.adult-guide-card {
  border:1px solid rgba(24,49,79,.10);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}

.adult-guide-card summary {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:12px 15px;
  cursor:pointer;
  list-style:none;
  font-size:1.02rem;
}

.adult-guide-card summary::-webkit-details-marker {
  display:none;
}

.adult-guide-card summary span {
  font-size:1.3rem;
}

.adult-guide-card summary::after {
  content:"＋";
  margin-left:auto;
  color:#6b7e91;
  font-size:1.25rem;
  font-weight:1000;
}

.adult-guide-card[open] summary::after {
  content:"−";
}

.adult-guide-body {
  padding:0 15px 16px;
  color:#405973;
  font-size:.92rem;
  line-height:1.65;
}

.adult-guide-body p {
  margin:.35rem 0;
}

.adult-guide-body ul {
  margin:.45rem 0 .3rem;
  padding-left:1.4rem;
}

.adult-guide-body li + li {
  margin-top:.3rem;
}

.adult-tip {
  margin-top:10px !important;
  padding:10px 11px;
  border-radius:12px;
  background:#f4f8fb;
  color:#5a7086;
  font-size:.84rem;
  font-weight:800;
}

.adult-map-level {
  display:grid;
  gap:3px;
  padding:9px 0;
  border-bottom:1px solid rgba(24,49,79,.08);
}

.adult-map-level:last-of-type {
  border-bottom:0;
}

.adult-map-level span {
  color:#5f7489;
}

.adult-trouble-list {
  margin:0;
}

.adult-trouble-list dt {
  margin-top:10px;
  color:#18314f;
  font-weight:1000;
}

.adult-trouble-list dd {
  margin:3px 0 0;
}

.adult-status-wrap {
  margin-top:18px;
  padding:16px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(24,49,79,.10);
}

.adult-status-wrap .app-status-panel {
  margin:10px 0 0;
}

.adult-guide-bottom-home {
  display:block;
  width:min(100%,420px);
  margin:18px auto 0;
  background:#18314f;
  color:#fff;
}

@media (max-width:760px) {
  .official-title-main {
    font-size:.92em;
  }

  .adult-guide-view {
    padding:14px;
    border-radius:22px;
  }

  .adult-guide-head {
    display:block;
  }

  .adult-guide-home {
    margin-top:12px;
  }

  .adult-guide-grid {
    grid-template-columns:1fr;
  }

  .adult-guide-card summary {
    min-height:54px;
    padding:11px 12px;
  }

  .adult-guide-body {
    padding:0 12px 14px;
  }
}


/* STEP 21.1 — Adventure route start choice */
.adventure-start-box {
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  background:#f6fbff;
  border:1px solid rgba(24,49,79,.10);
}

.adventure-start-choice {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  margin-top:7px;
  padding:8px 10px;
  border-radius:13px;
  background:#fff;
  color:#18314f;
  font-weight:900;
  cursor:pointer;
}

.adventure-start-choice input {
  width:20px;
  height:20px;
  flex:0 0 auto;
}

.adventure-start-choice:has(input:checked) {
  background:#fff8cf;
  outline:2px solid rgba(237,184,65,.45);
}


/* STEP 21.2 — Driving route emphasis */
.adventure-drive-mode {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  background:#e9f6ff;
  border:2px solid rgba(24,49,79,.10);
}

.adventure-drive-icon {
  font-size:2rem;
  flex:0 0 auto;
}

.adventure-drive-mode strong,
.adventure-drive-mode small {
  display:block;
}

.adventure-drive-mode strong {
  color:#18314f;
  font-size:1.05rem;
  font-weight:1000;
}

.adventure-drive-mode small {
  margin-top:2px;
  color:#60758b;
  font-size:.78rem;
  line-height:1.4;
  font-weight:800;
}

.google-driving-help {
  margin-top:14px;
  padding:13px;
  border-radius:16px;
  background:#e9f6ff;
  border:2px solid rgba(24,49,79,.12);
}

.google-driving-help[hidden] {
  display:none;
}

.google-driving-help strong,
.google-driving-help span {
  display:block;
}

.google-driving-help strong {
  color:#18314f;
  font-size:1.08rem;
}

.google-driving-help span {
  margin-top:4px;
  color:#587087;
  line-height:1.5;
  font-size:.88rem;
  font-weight:850;
}


/* STEP 21.3 — Route arrival target */
.adventure-route-target {
  display:block;
  margin-top:5px;
  padding:6px 8px;
  border-radius:10px;
  background:#fff8cf;
  color:#5b7085;
  font-size:.74rem;
  line-height:1.4;
  font-weight:850;
}

.adventure-route-target strong {
  color:#18314f;
}


/* STEP 21.4 — Quiz wording */
.quiz-invite {
  margin:6px 0 2px;
  color:#18314f;
  font-size:clamp(1.35rem,4vw,2rem);
  line-height:1.25;
  font-weight:1000;
}

/* STEP 21.4 — Discover / 地図帳おすすめ */
.discover-recommendations {
  margin-top:18px;
  padding:16px;
  border-radius:22px;
  background:#f7fbff;
  border:1px solid rgba(24,49,79,.10);
}

.discover-recommendations-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}

.discover-recommendations-head h3 {
  margin:.25rem 0 0;
  color:#18314f;
  font-size:1.18rem;
}

.discover-recommendations-note {
  max-width:260px;
  color:#6a7e92;
  font-size:.78rem;
  line-height:1.45;
  font-weight:850;
  text-align:right;
}

.discover-recommendations-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.discover-recommendation-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:12px;
  border-radius:17px;
  background:#fff;
  border:1px solid rgba(24,49,79,.10);
}

.discover-recommendation-top {
  display:flex;
  gap:9px;
  align-items:flex-start;
}

.discover-recommendation-icon {
  font-size:1.75rem;
  line-height:1;
  flex:0 0 auto;
}

.discover-recommendation-category {
  color:#718397;
  font-size:.7rem;
  line-height:1.2;
  font-weight:900;
}

.discover-recommendation-name {
  display:block;
  margin-top:3px;
  color:#18314f;
  font-size:.96rem;
  line-height:1.35;
  font-weight:1000;
}

.discover-recommendation-note {
  flex:1;
  margin:8px 0 0;
  color:#667b90;
  font-size:.76rem;
  line-height:1.45;
  font-weight:750;
}

.discover-recommendation-actions {
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  margin-top:10px;
}

.discover-recommendation-actions button {
  min-height:42px;
  padding:7px 9px;
  border:1px solid rgba(24,49,79,.11);
  border-radius:12px;
  color:#18314f;
  font-size:.78rem;
  font-weight:1000;
  cursor:pointer;
}

.discover-recommendation-map {
  background:#eef6fb;
}

.discover-recommendation-want {
  background:#fff8cf;
  border-color:rgba(237,184,65,.52) !important;
}

.discover-recommendation-want.is-wanted {
  background:#ffe3e8;
  border-color:#e692a1 !important;
}

.discover-road-link {
  width:100%;
  min-height:48px;
  margin-top:11px;
  padding:8px 12px;
  border:1px solid rgba(24,49,79,.11);
  border-radius:14px;
  background:#fff;
  color:#18314f;
  font-weight:1000;
  cursor:pointer;
}

@media (max-width:760px) {
  .discover-recommendations {
    padding:13px;
    border-radius:18px;
  }

  .discover-recommendations-head {
    display:block;
  }

  .discover-recommendations-note {
    max-width:none;
    margin-top:5px;
    text-align:left;
  }

  .discover-recommendations-grid {
    grid-template-columns:1fr;
  }

  .discover-recommendation-card {
    padding:11px;
  }

  .discover-recommendation-actions {
    grid-template-columns:1fr 1fr;
  }
}
