:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --washi: #ede8dc;
  --ink: #1f1d18;
  --ink-soft: #5c5850;
  --line: #d9d2c2;
  --primary: #114b46;
  --primary-soft: #e3ebe7;
  --accent: #b93a2b;
  --accent-soft: #f4e4e0;
  --gold: #8a6a24;
  --radius-s: 6px;
  --radius-m: 8px;
  --hairline: 1px solid var(--line);
  --shadow: 0 8px 20px rgb(31 29 24 / 0.08);
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-latin: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --muted: var(--ink-soft);
  --mist: var(--primary-soft);
  --coal: var(--ink);
  --night: var(--ink);
  --teal: var(--primary);
  --cedar: var(--primary);
  --coral: var(--accent);
  --water: var(--primary);
  --nav-height: 74px;
}

/* Search-intent guides and private post-visit log */
.text-link-button {
  border: 0;
  padding: 0;
  color: #087f78;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.intent-page {
  display: grid;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(13, 56, 53, .14);
  border-radius: 8px;
  background: rgba(255, 253, 248, .96);
}

.view-stamprally .summary-band,
.view-goshuin .summary-band {
  display: none;
}

.intent-page > h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.16;
}

.intent-lead {
  max-width: 46rem;
  margin: 0;
  color: #455c58;
  font-size: 1.08rem;
  line-height: 1.9;
}

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

.intent-grid section {
  min-width: 0;
  padding: 20px;
  border-top: 3px solid #d94332;
  background: #f2f7f3;
}

.intent-grid span {
  color: #b72f22;
  font-weight: 900;
}

.intent-grid h3 {
  margin: 8px 0;
  font-size: 1.08rem;
}

.intent-grid p,
.intent-note p {
  margin: 0;
  color: #536561;
  line-height: 1.8;
}

.intent-note {
  padding: 22px;
  border-left: 4px solid #e6b936;
  background: #fff8df;
}

.intent-note h3 {
  margin: 0 0 8px;
}

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

.visit-log-panel,
.visit-log-summary {
  padding: 22px;
  border: 1px solid rgba(8, 127, 120, .2);
  border-left: 4px solid #0b8179;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
}

.visit-log-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.visit-log-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.visit-log-form label span {
  color: #536561;
  font-size: .78rem;
  font-weight: 800;
}

.visit-log-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #cad8d3;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.visit-log-note {
  grid-column: span 4;
}

.visit-log-form .primary-button {
  grid-column: span 2;
  align-self: end;
}

.visit-log-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.visit-log-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 12px;
  background: #f1f7f4;
}

.visit-log-list article div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.visit-log-list article p {
  grid-column: 1;
  margin: 0;
  color: #536561;
}

.visit-log-list article .visit-log-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  align-content: center;
  gap: 6px;
}

.visit-log-share-button,
.visit-log-list .tiny-undo-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: 800;
}

.visit-log-share-button {
  color: #fff;
  background: var(--share, #4757a6);
}

.visit-log-empty {
  margin: 0;
  color: #60716d;
}

.visit-log-summary {
  margin-top: 16px;
}

.visit-log-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.visit-log-metrics div {
  display: grid;
  padding: 14px;
  background: #eef6f2;
}

.visit-log-metrics strong {
  font-size: 1.6rem;
}

.visit-log-recent {
  display: grid;
  gap: 8px;
}

.visit-log-recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.visit-log-recent-item > button:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e1dd;
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.visit-log-recent-item > .visit-log-share-button {
  min-width: 88px;
}

@media (max-width: 700px) {
  .intent-page {
    padding: 22px 18px;
  }

  .intent-page > h2 {
    font-size: 1.8rem;
  }

  .intent-grid,
  .intent-actions {
    grid-template-columns: 1fr;
  }

  .visit-log-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-log-note,
  .visit-log-form .primary-button {
    grid-column: 1 / -1;
  }

  .visit-log-list article {
    grid-template-columns: 1fr;
  }

  .visit-log-list article .visit-log-actions {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-log-recent-item {
    grid-template-columns: 1fr;
  }

  .visit-log-recent-item > button:first-child {
    display: grid;
  }
}

/* 2026-07 stability and typography pass. Keep this final layer authoritative. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.facility-name,
.spotlight-card h3,
.facility-detail-copy h2,
.sameshi-body h3,
.stay-card h3,
.community-copy h3 {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-wrap: pretty;
}

.facility-name {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.32;
}

.facility-meta,
.facility-address,
.sameshi-body p,
.stay-card p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.spotlight-copy { min-width: 0; }

.spotlight-title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}

.spotlight-title-row h3 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.27;
  overflow-wrap: anywhere;
}

.spotlight-title-row .favorite-button {
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
}

.facility-detail-copy h2 {
  margin: 6px 0 10px;
  font-size: 36px;
  font-weight: 750;
  line-height: 1.18;
}

.facility-photo-fallback {
  background-color: #fff9ed;
  background-size: contain;
  background-repeat: no-repeat;
}

.sameshi-body h3 {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.35;
}

.stay-card h3 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.34;
}

.stay-pref-strip {
  margin: 12px 0;
  padding-bottom: 4px;
  scroll-padding-inline: 12px;
}

.settings-scrim {
  position: fixed;
  inset: 0;
  z-index: 109;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgb(10 16 16 / 0.62);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.settings-scrim[hidden] { display: none !important; }

.settings-dialog,
.settings-dialog[open] {
  position: fixed;
  inset: 16px 16px 16px auto;
  z-index: 110;
  display: none;
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.36);
  -webkit-overflow-scrolling: touch;
}

.settings-dialog[open] {
  display: block;
  animation: settings-drawer-in 180ms ease-out both;
}

.settings-dialog::backdrop { display: none; }

.settings-dialog .dialog-head {
  position: sticky;
  top: -18px;
  z-index: 2;
  margin: -18px -18px 12px;
  padding: 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.settings-dialog .dialog-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.25;
}

.settings-dialog .menu-actions-grid button,
.settings-dialog .menu-location-button,
.settings-dialog .toggle-row,
.settings-dialog select {
  font-size: 16px;
  line-height: 1.4;
}

@keyframes settings-drawer-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .settings-dialog[open] { animation: none; }
}

@media (max-width: 760px) {
  .facility-name {
    font-size: 18px;
    font-weight: 750;
    line-height: 1.34;
  }

  .facility-card .card-head,
  .facility-card .facility-meta,
  .facility-card .facility-address,
  .facility-card .tag-row {
    padding-right: 78px;
  }

  .spotlight-title-row h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  .facility-detail-copy h2 {
    font-size: 26px;
    font-weight: 750;
    line-height: 1.22;
  }

  .sameshi-body h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.34;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .sameshi-body p,
  .stay-card p {
    font-size: 14px;
    line-height: 1.48;
  }

  .settings-dialog,
  .settings-dialog[open] {
    inset: max(env(safe-area-inset-top), 8px) 0 calc(var(--nav-height) + env(safe-area-inset-bottom)) auto;
    width: min(90vw, 380px);
    height: auto;
    max-height: calc(100dvh - var(--nav-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8px);
    padding: 16px;
    border-right: 0;
    border-radius: 8px 0 0 8px;
  }

  .settings-dialog .dialog-head {
    top: -16px;
    margin: -16px -16px 12px;
    padding: 16px;
  }

  .settings-dialog .menu-actions-grid button {
    min-height: 52px;
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
  }

  .stay-pref-strip { margin-inline: -2px; }
}

* {
  box-sizing: border-box;
  letter-spacing: inherit;
}

html {
  height: 100%;
  min-height: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(10 143 138 / 0.35);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  color: white;
  background: var(--ink);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 14px 34px rgb(16 20 23 / 0.24);
  overflow: hidden;
  isolation: isolate;
}

.topbar::before,
.topbar::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -2;
}

.topbar::before {
  background-image:
    none,
    url("./assets/saincho-header-ritual.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.topbar::after {
  z-index: -1;
  background:
    none,
    none;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.topbar .brand-name,
.section-title h2,
.dialog-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.topbar .eyebrow {
  color: rgb(255 255 255 / 0.66);
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.brand-lockup:focus-visible {
  outline: 3px solid rgb(255 217 96 / 0.92);
  outline-offset: 5px;
}

.brand-lockup:active .brand-mark {
  transform: scale(0.98);
}

.brand-mark {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 0.36);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgb(0 0 0 / 0.28);
  transition: transform 120ms ease;
}

.brand-copy {
  min-width: 0;
}

.topbar .brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.topbar .brand-name {
  font-size: 28px;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.4);
}

.topbar-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.topbar-promise span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: rgb(255 255 255 / 0.9);
  background: rgb(16 20 23 / 0.34);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.top-gear-button {
  min-width: 76px;
  height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: none;
  border: 1px solid rgb(255 255 255 / 0.42);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.26);
  font-size: 13px;
  font-weight: 700;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: inherit;
  background: rgb(255 255 255 / 0.1);
  border-radius: 8px;
}

.icon-lines,
.icon-close,
.nav-icon,
.search-box > span {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}

.icon-lines::before,
.icon-lines::after,
.icon-close::before,
.icon-close::after {
  position: absolute;
  inset-inline: 3px;
  content: "";
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.icon-lines::before {
  top: 7px;
  box-shadow: 0 7px 0 currentColor;
}

.icon-lines::after {
  top: 21px;
  width: 10px;
}

.icon-close::before,
.icon-close::after {
  top: 10px;
}

.icon-close::before {
  rotate: 45deg;
}

.icon-close::after {
  rotate: -45deg;
}

.main {
  width: min(100%, 1120px);
  min-height: 0;
  margin: 0 auto;
  padding: 14px 14px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.ssr-content {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 14px;
  background:
    none,
    white;
  border: 1px solid rgb(10 143 138 / 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(16 20 23 / 0.08);
}

.ssr-content img { max-width: 100%; height: auto; }

.js .ssr-content {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ssr-content h1,
.ssr-content p,
.ssr-content ul,
.ssr-content dl {
  margin: 0;
}

.ssr-content h1 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
}

.ssr-content p,
.ssr-content li,
.ssr-content dd {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.ssr-content ul {
  padding-left: 18px;
}

.ssr-content dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ssr-content dl div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.ssr-content dl div:last-child {
  border-right: 0;
}

.ssr-content dt,
.ssr-content span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

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

.ssr-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ssr-grid strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.install-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px;
  background:
    none,
    white;
  border: 1px solid rgb(10 143 138 / 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(16 20 23 / 0.08);
}

.install-card[hidden] {
  display: none;
}

.install-card img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.install-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.install-card strong {
  font-size: 14px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.install-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.install-button {
  min-width: 58px;
  min-height: 40px;
  padding: 0 12px;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.install-dismiss {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #4b5854;
  background: rgb(16 20 23 / 0.06);
  border-radius: 8px;
}

.install-dismiss .icon-close {
  width: 18px;
  height: 18px;
}

.summary-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 238px;
  margin: 0 0 14px;
  padding: 18px;
  color: white;
  background:
    none,
    none,
    url("./assets/sauna-hero.webp") center / cover no-repeat,
    none;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.summary-band::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    none,
    none;
  pointer-events: none;
}

.summary-band > * {
  position: relative;
  z-index: 1;
}

body.view-facility .summary-band {
  display: none;
}

.summary-copy {
  display: grid;
  gap: 5px;
  min-height: 124px;
  min-width: 0;
  align-self: end;
}

.summary-label {
  color: rgb(255 255 255 / 0.72);
  font-size: 13px;
  font-weight: 700;
}

.summary-copy strong {
  font-size: 44px;
  line-height: 0.98;
}

.summary-copy span:last-child {
  color: rgb(255 255 255 / 0.78);
  font-size: 13px;
  line-height: 1.35;
}

#collectionScope {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: rgb(255 255 255 / 0.86);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.progress-ring {
  align-self: start;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  background:
    none,
    none;
  border-radius: 50%;
}

.hero-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-self: end;
}

.hero-metrics div {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 10px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.hero-metrics strong {
  font-size: 22px;
  line-height: 1;
}

.hero-metrics span {
  margin-top: 4px;
  color: rgb(255 255 255 / 0.72);
  font-size: var(--text-xs);
  font-weight: 700;
}

.reward-nudge {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 54px;
}

.reward-pill {
  display: grid;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  color: rgb(255 255 255 / 0.88);
  background: rgb(16 20 23 / 0.42);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.reward-pill span,
.reward-pill em {
  overflow: hidden;
  color: rgb(255 255 255 / 0.66);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-pill strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-ring span {
  font-size: 15px;
  font-weight: 700;
}

.quest-panel {
  margin: 0 0 12px;
}

.quest-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 10px;
  background:
    none,
    var(--night);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(16 20 23 / 0.12);
}

.quest-copy,
.quest-target {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.quest-copy {
  padding: 9px 10px;
  color: white;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
}

.quest-copy span,
.quest-target span {
  overflow: hidden;
  color: #f7d773;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-copy strong {
  color: white;
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
}

.quest-copy em,
.quest-target em {
  overflow: hidden;
  color: rgb(255 255 255 / 0.68);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-target strong {
  overflow: hidden;
  color: white;
  font-size: 16px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 6px;
  min-width: 356px;
}

.quest-actions button {
  min-width: 0;
  min-height: 42px;
  padding-inline: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.quest-actions .ghost-button.is-active {
  color: white;
  background: var(--coral);
  border-color: var(--coral);
}

.sameshi-link-button {
  color: var(--ink);
  background: #f7d773;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  font-weight: 700;
}

.view {
  display: none;
}

.view-active {
  display: block;
}

.facility-card,
.spotlight-card,
.gear-card-full,
.article-card,
.sameshi-card,
.stay-card,
.business-plan-card,
.business-value-card,
.review-card,
.stamp-tile {
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.tool-band {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  gap: 10px;
  padding: 10px 0 12px;
  background: none;
  backdrop-filter: blur(16px);
}

.search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 6px 0 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-box > span::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-box > span::after {
  position: absolute;
  top: 16px;
  left: 15px;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--muted);
  border-radius: 2px;
  rotate: 45deg;
}

.search-box input {
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-decoration {
  appearance: none;
  display: none;
}

.search-clear-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #52605b;
  background: #eef3ee;
  border-radius: 8px;
}

.search-clear-button[hidden] {
  display: none;
}

.search-clear-button .icon-close {
  width: 16px;
  height: 16px;
}

.segment {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  background: #dde6df;
  border-radius: 8px;
}

.segment button {
  min-width: 0;
  height: 38px;
  color: #52605b;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.segment .segment-active {
  color: var(--ink);
  background: white;
  box-shadow: 0 4px 12px rgb(16 20 23 / 0.08);
}

.pref-strip {
  display: flex;
  gap: 8px;
  margin: 0 -14px 10px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pref-strip::-webkit-scrollbar {
  display: none;
}

.pref-chip {
  flex: 0 0 auto;
  min-width: 62px;
  min-height: 40px;
  padding: 0 12px;
  color: #39423f;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.pref-chip-active {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

.source-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.source-row::-webkit-scrollbar {
  display: none;
}

.source-row a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: #28403b;
  background: rgb(10 143 138 / 0.1);
  border: 1px solid rgb(10 143 138 / 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.seo-answer-panel {
  margin: 0 0 12px;
  background: rgb(255 255 255 / 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.seo-answer-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  list-style: none;
  cursor: pointer;
}

.seo-answer-panel summary::-webkit-details-marker {
  display: none;
}

.seo-answer-panel summary span {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.seo-answer-panel summary strong {
  color: #31413d;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.seo-answer-grid {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.seo-answer-grid article {
  padding: 10px;
  background: #f8fbf8;
  border: 1px solid #dce7e1;
  border-radius: 8px;
}

.seo-answer-grid h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.seo-answer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.feature-filter-panel {
  margin: 0 0 12px;
  background: rgb(255 255 255 / 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.feature-filter-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  color: #33413d;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.feature-filter-panel summary::-webkit-details-marker {
  display: none;
}

.feature-filter-panel summary strong {
  color: var(--teal);
  font-size: 12px;
  white-space: nowrap;
}

.feature-filter-grid,
.feature-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.feature-group {
  display: contents;
}

.feature-filter-grid {
  padding: 0 12px 12px;
}

.feature-chip,
.feature-option {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  min-width: 0;
  padding: 0 10px;
  color: #2f403c;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.feature-chip {
  cursor: pointer;
}

.feature-chip.is-active,
.feature-option:has(input:checked) {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 8px 18px rgb(10 143 138 / 0.18);
}

.feature-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.feature-option span {
  pointer-events: none;
}

.spotlight {
  margin-bottom: 12px;
}

.spotlight:empty {
  display: none;
}

.spotlight-card {
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 12px;
  padding: 14px;
  color: white;
  background:
    none,
    none;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.spotlight-card:focus-visible,
.facility-card:focus-visible,
.favorite-row:focus-visible {
  outline: 3px solid rgb(10 143 138 / 0.42);
  outline-offset: 3px;
}

.spotlight-card .stamp-art {
  width: 78px;
}

.spotlight-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #ffe1b7;
  background: rgb(216 90 58 / 0.24);
  border: 1px solid rgb(216 90 58 / 0.28);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.spotlight-card h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.spotlight-card p {
  margin: 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.spotlight-card .spotlight-address {
  margin-top: 4px;
  color: rgb(255 255 255 / 0.82);
  font-size: var(--text-xs);
}

.spotlight-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spotlight-gear {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 10px;
  background: rgb(255 253 246 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
}

.spotlight-gear-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
}

.spotlight-gear-head span,
.spotlight-gear-links span {
  color: #f7d773;
  font-size: var(--text-xs);
  font-weight: 700;
}

.spotlight-gear-head strong {
  color: white;
  font-size: 14px;
  line-height: 1.25;
}

.spotlight-gear-head .mini-button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 32px;
  color: var(--ink);
  background: #f7d773;
}

.spotlight-gear-links {
  display: grid;
  gap: 8px;
}

.spotlight-gear-links article {
  display: grid;
  gap: 7px;
  padding: 10px;
  color: var(--ink);
  background: rgb(255 255 255 / 0.95);
  border-radius: 8px;
}

.spotlight-gear-links strong {
  font-size: 13px;
  line-height: 1.25;
}

.spotlight-gear-links div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spotlight-gear-links a {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: white;
  background: var(--night);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.spotlight-gear-links a:nth-child(2) {
  color: var(--ink);
  background: var(--gold);
}

.facility-list {
  display: grid;
  gap: 10px;
}

.load-more-button {
  grid-column: 1 / -1;
  min-height: 48px;
  color: white;
  background: #00766d;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgb(10 143 138 / 0.18);
}

.facility-card {
  position: relative;
  cursor: pointer;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 12px;
  background:
    none,
    white;
  border: 1px solid rgb(16 20 23 / 0.08);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgb(16 20 23 / 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.facility-card:hover {
  border-color: rgb(10 143 138 / 0.36);
  box-shadow: 0 10px 24px rgb(16 20 23 / 0.1);
  transform: translateY(-1px);
}

.facility-card::before {
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  content: "";
  background: var(--teal);
  border-radius: 0 3px 3px 0;
  opacity: 0.72;
}

.stamp-art {
  --stamp-color: var(--coral);
  --stamp-bg: #fff6ef;
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  width: 82px;
  aspect-ratio: 1;
  color: var(--stamp-color);
  background:
    none,
    none;
  border: 3px solid var(--stamp-color);
  border-radius: 50%;
  rotate: -5deg;
  overflow: hidden;
}

.stamp-art::before {
  position: absolute;
  inset: 9px;
  content: "";
  border: 2px dashed currentColor;
  border-radius: 50%;
  opacity: 0.6;
}

.stamp-art::after {
  position: absolute;
  inset: 16px;
  content: "";
  background:
    none center / 34px 3px no-repeat,
    none;
  opacity: 0.12;
}

.stamp-kanji {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.stamp-art.locked {
  color: #96a19d;
  background: #f1f3f1;
  border-color: #bdc6c2;
  filter: grayscale(0.8);
}

.card-body {
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-head-actions {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.facility-name {
  flex: 1 1 160px;
  margin: 0;
  min-width: 0;
  font-size: 16px;
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.visited-badge,
.source-badge,
.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: white;
  background: var(--coal);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.source-badge-group {
  flex: 0 1 auto;
  display: inline-flex;
  justify-content: flex-end;
  gap: 4px;
  max-width: 100%;
  flex-wrap: wrap;
}

.source-badge {
  color: #2a3531;
  background: var(--mist);
  text-decoration: none;
}

.source-badge-official {
  color: white;
  background: var(--teal);
}

.status-badge {
  color: #fff7df;
  background: #7d4b22;
}

.facility-meta {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.facility-address {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: -2px 0 9px;
  color: #41504b;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.facility-address .map-route-icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

.facility-address.facility-area {
  color: #5f6b66;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #41504b;
  background: #eef3ee;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-actions-visited {
  grid-template-columns: 1.15fr 0.85fr;
}

.primary-button,
.secondary-button,
.undo-button,
.map-route-button,
.facility-share-button,
.favorite-wide-button,
.ghost-button,
.danger-button,
.import-box {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

.primary-button {
  color: white;
  background: var(--teal);
  box-shadow: 0 8px 18px rgb(10 143 138 / 0.22);
}

.primary-button:disabled {
  color: #4c5955;
  background: #d7e0dc;
  box-shadow: none;
  cursor: default;
}

.secondary-button {
  color: var(--ink);
  background: #f2eee6;
  border: 1px solid #e4d8c7;
}

.secondary-button.is-active {
  color: white;
  background: var(--coral);
  border-color: var(--coral);
}

.complete-button:disabled {
  color: #f7faf6;
  background: #46524e;
}

.undo-button {
  color: #87322a;
  background: #fff5ef;
  border: 1px solid #f0c7b8;
}

.share-button {
  min-height: 40px;
  padding: 0 12px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.facility-share-button {
  width: 100%;
  margin-top: 8px;
  color: white;
  background: var(--ink);
  border: 1px solid rgb(255 255 255 / 0.06);
  box-shadow: 0 8px 16px rgb(16 20 23 / 0.12);
}

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

.favorite-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  min-height: 44px;
  color: #8a6a14;
  background: #fff8df;
  border: 1px solid #ead28b;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgb(187 141 35 / 0.12);
}

.favorite-button span {
  font-size: 22px;
  line-height: 1;
}

.favorite-button-compact {
  width: 32px;
  min-height: 28px;
  border-radius: 7px;
}

.favorite-button-compact span {
  font-size: 17px;
}

.favorite-button.is-active,
.favorite-wide-button.is-active {
  color: var(--ink);
  background: #f7d773;
  border-color: #c7951d;
}

.favorite-wide-button {
  color: #6d540e;
  background: #fff8df;
  border: 1px solid #ead28b;
}

.facility-utility-actions .facility-share-button {
  margin-top: 0;
}

.map-route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #123f3b;
  background: #e7f5f1;
  border: 1px solid #b9ded8;
  text-decoration: none;
  box-shadow: 0 8px 16px rgb(10 143 138 / 0.1);
}

.map-route-icon {
  position: relative;
  width: 14px;
  height: 14px;
  color: currentColor;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.map-route-icon::after {
  position: absolute;
  inset: 3px;
  content: "";
  border-radius: 999px;
  background: currentColor;
}

.spotlight-actions .facility-share-button {
  margin-top: 0;
}

.facility-detail-shell {
  display: grid;
  gap: 14px;
}

.facility-detail {
  display: grid;
  gap: 14px;
}

.back-button {
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  color: #173c38;
  background: #fffdf7;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  font-weight: 700;
}

.facility-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: rgb(255 255 255 / 0.88);
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.facility-photo {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background-color: #17211f;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}

.facility-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: none;
}

.facility-photo span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: white;
  background: rgb(16 20 23 / 0.72);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.facility-photo-fallback {
  filter: saturate(0.95);
}

.facility-detail-copy {
  align-self: center;
  min-width: 0;
}

.facility-detail-copy h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.facility-detail-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 700;
}

.facility-detail-copy em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
  color: #173c38;
  background: #f6eed8;
  border-radius: 6px;
  font-style: normal;
  font-weight: 700;
}

.detail-info-card,
.detail-action-grid,
.detail-panel,
.detail-memo-panel,
.review-panel {
  background: rgb(255 255 255 / 0.9);
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(16 20 23 / 0.08);
}

.detail-info-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #d8e2dc;
}

.detail-info-card div {
  min-width: 0;
  padding: 14px;
  background: #fffdf7;
}

.detail-info-card span,
.detail-panel dt,
.detail-unique-grid span {
  display: block;
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.detail-info-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.detail-action-grid .facility-share-button {
  margin-top: 0;
}

.sameshi-map-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: white;
  background: #d85a3a;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgb(216 90 58 / 0.18);
}

.detail-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.detail-panel h3 {
  margin: 3px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

.detail-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-panel dl div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.detail-panel dd {
  margin: 0;
  color: #24312e;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.detail-unique-grid,
.detail-gear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-unique-grid a,
.detail-unique-grid button,
.lodging-search-card {
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  background: #f7fbf8;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
  text-decoration: none;
  text-align: left;
}

.detail-unique-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.detail-unique-grid button {
  min-height: 70px;
  cursor: pointer;
}

.lodging-search-card > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.lodging-search-card a {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 6px;
  color: white;
  background: var(--night);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
}

.detail-gear-grid article {
  min-width: 0;
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
}

.detail-gear-grid article span {
  display: block;
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.detail-gear-grid article strong {
  display: block;
  margin: 4px 0 10px;
  line-height: 1.35;
}

.detail-gear-grid article div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.detail-gear-grid article a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.detail-gear-grid article a:nth-child(2) {
  color: var(--ink);
  background: #f4d56b;
}

.facility-detail .memo-panel {
  background: rgb(255 255 255 / 0.92);
  border: 1px solid #d8e2dc;
  border-radius: 8px;
}

.detail-memo-panel,
.review-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.detail-memo-panel {
  margin-top: 0;
  border-top: 0;
}

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

.detail-memo-head h3,
.review-panel h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.detail-memo-head span,
.review-panel .panel-head > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  color: #40504b;
  background: #eef4ef;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.quick-note-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-note-button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  min-width: 0;
  padding: 9px;
  color: #193f3b;
  background: none;
  border: 1px solid rgb(10 143 138 / 0.2);
  border-radius: 8px;
  text-align: left;
}

.quick-note-button span {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.quick-note-button strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.detail-memo-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.review-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #33413d;
  font-size: 12px;
  font-weight: 700;
}

.review-text-label {
  min-width: 0;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.review-form textarea {
  min-height: 82px;
  resize: vertical;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: #f8fbf8;
  border: 1px solid #dce7e1;
  border-radius: 8px;
}

.review-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.review-card strong {
  color: #bb8d23;
  letter-spacing: 1px;
}

.review-card span,
.review-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-card p,
.review-empty {
  margin: 0;
  line-height: 1.5;
}

.facility-detail-empty {
  padding: 24px;
}

.memo-panel {
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.memo-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  color: #34413d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.memo-panel summary::-webkit-details-marker {
  display: none;
}

.memo-panel summary strong {
  color: var(--teal);
  font-size: var(--text-xs);
}

.memo-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 2px;
}

.memo-panel:not([open]) > .memo-body {
  display: none;
}

.memo-body > * {
  min-width: 0;
}

.memo-text {
  margin: 0;
  padding: 9px 10px;
  color: #2f3a36;
  background: #f5f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.memo-date {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.memo-panel textarea {
  width: 100%;
  min-height: 78px;
  padding: 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.memo-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.memo-actions button {
  min-width: 0;
  padding-inline: 8px;
}

.ghost-button {
  color: #24413d;
  background: white;
  border: 1px solid var(--line);
}

.full-button {
  width: 100%;
  margin-bottom: 12px;
}

.danger-button {
  width: 100%;
  color: white;
  background: #9d302a;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
}

.passport-scope-strip {
  display: flex;
  gap: 8px;
  margin: 0 -14px 12px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.passport-scope-strip::-webkit-scrollbar {
  display: none;
}

.pref-chip-mastered {
  border-color: rgb(187 141 35 / 0.45);
  box-shadow: inset 0 -3px 0 rgb(187 141 35 / 0.28);
}

.title-progress-panel {
  margin-bottom: 12px;
}

.title-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: white;
  background:
    none,
    var(--night);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.title-card img {
  display: block;
  width: 116px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #fff8e9;
}

.title-card-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.title-kicker {
  color: rgb(255 255 255 / 0.66);
  font-size: var(--text-xs);
  font-weight: 700;
}

.title-card strong {
  font-size: 18px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.title-card p,
.title-card em {
  margin: 0;
  color: rgb(255 255 255 / 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.title-progress {
  height: 8px;
  margin: 2px 0;
  background: rgb(255 255 255 / 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.title-progress span {
  display: block;
  height: 100%;
  background: none;
  border-radius: inherit;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.stamp-tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 174px;
  padding: 14px 10px;
  background: white;
  border: 1px solid rgb(16 20 23 / 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.stamp-tile:hover {
  border-color: rgb(0 127 119 / 0.38);
  box-shadow: 0 10px 24px rgb(17 24 23 / 0.1);
  transform: translateY(-2px);
}

.stamp-tile:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visit-log-share-dialog {
  width: min(520px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.34);
}

.visit-log-share-dialog::backdrop {
  background: rgb(5 13 12 / 0.74);
  backdrop-filter: blur(5px);
}

.visit-log-share-dialog .dialog-head {
  position: static;
  margin-bottom: 12px;
  padding: 0 0 12px;
}

.visit-log-share-dialog .dialog-head h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.visit-log-share-preview {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  background: #e5ddd0;
  border: 1px solid #d7ccba;
  border-radius: 8px;
}

.visit-log-share-preview img {
  display: block;
  width: min(100%, 390px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #f2ebdd;
}

.visit-log-share-dialog > p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

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

.visit-log-share-actions button {
  min-height: 46px;
}

.visit-log-share-actions button:disabled {
  cursor: wait;
  opacity: 0.5;
}

@media (max-width: 520px) {
  .visit-log-share-dialog {
    max-height: calc(100dvh - var(--nav-height) - env(safe-area-inset-bottom) - 18px);
    margin: 8px auto calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);
    padding: 12px;
  }

  .visit-log-share-preview img {
    width: min(100%, 300px);
  }
}

.stamp-tile .stamp-art {
  width: 96px;
}

.stamp-title {
  width: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
  overflow-wrap: anywhere;
}

.stamp-date {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.3;
  text-align: center;
}

.stamp-note {
  width: 100%;
  margin: 0;
  padding: 8px;
  color: #34413d;
  background: #f5f7f3;
  border-radius: 8px;
  font-size: var(--text-xs);
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}

.tiny-undo-button {
  min-height: 32px;
  padding: 0 10px;
  color: #87322a;
  background: #fff5ef;
  border: 1px solid #f0c7b8;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.tiny-share-button {
  min-height: 32px;
  padding: 0 10px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.empty-add-button {
  margin-top: 12px;
}

.empty-state {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  gap: 12px;
  min-height: 240px;
  padding: 32px 18px;
  color: var(--muted);
  background: rgb(255 255 255 / 0.72);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.app-loading-state {
  min-height: 180px;
}

.app-loading-state p,
.app-error-state p {
  max-width: 30rem;
  margin: 0;
  line-height: 1.65;
}

.app-error-state strong {
  color: var(--ink);
  font-size: 18px;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d8e6e1;
  border-top-color: var(--teal);
  border-radius: 999px;
  animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 2026-07 youth editorial and mobile usability pass. */
:root {
  --paper: #f3f1ea;
  --washi: #e8eee9;
  --ink: #111817;
  --ink-soft: #596763;
  --line: #ced9d3;
  --primary: #006d64;
  --primary-soft: #e0f1ed;
  --accent: #b73528;
  --accent-soft: #ffebe6;
  --gold: #f0c84b;
  --stamp: #b73528;
  --stamp-dark: #b93225;
  --wishlist: #006d64;
  --share: #344840;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

body {
  color: var(--ink);
  background: #e6ece7;
}

.section-title h2,
.panel-head h3,
.community-hero h3,
.commerce-hero h3,
.guide-hero h3,
.sameshi-hero h3,
.stay-hero h3,
.contact-hero h3 {
  letter-spacing: 0;
  text-wrap: pretty;
}

.primary-button,
.card-actions .primary-button {
  color: #fff;
  background: var(--stamp);
  border-color: var(--stamp);
  box-shadow: 0 8px 18px rgb(231 72 52 / 0.2);
}

.secondary-button,
.card-actions .secondary-button {
  color: #075d57;
  background: #e5f4f0;
  border-color: #a9d8d1;
}

.secondary-button.is-active,
.card-actions .secondary-button.is-active {
  color: #fff;
  background: var(--wishlist);
  border-color: var(--wishlist);
}

.facility-native-share-button,
.facility-share-button,
.facility-review-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.facility-native-share-button {
  color: #fff;
  background: var(--share);
}

.facility-share-button {
  color: #fff;
  background: #111817;
  border-color: #111817;
}

.facility-review-button {
  color: #17201e;
  background: #f5d661;
  border: 1px solid #d4ad29;
}

.facility-social-pair {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.review-panel {
  scroll-margin-top: 16px;
}

.review-panel:focus-visible {
  outline: 3px solid #f0c84b;
  outline-offset: 3px;
}

.community-form-grid,
.community-form-grid > label,
.community-form-grid input,
.community-form-grid select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.community-form input[type="datetime-local"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.community-form input[type="datetime-local"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.nearby-notification-row > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.nearby-notification-row strong,
.nearby-notification-row small {
  white-space: nowrap;
}

.nearby-notification-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nearby-notification-row input {
  flex: 0 0 24px;
}

.sameshi-body {
  min-width: 0;
  overflow: hidden;
}

.sameshi-card .card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.sameshi-card .facility-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.sameshi-card .source-badge {
  flex: 0 0 auto;
  max-width: 72px;
  white-space: nowrap;
}

.commerce-hero {
  position: relative;
  min-height: 230px;
  justify-content: end;
  overflow: hidden;
  background-image: url("./assets/saincho-gear-editorial-v1.jpg");
  background-position: center 47%;
  background-size: cover;
  isolation: isolate;
}

.commerce-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgb(9 16 15 / 0.68);
}

.commerce-hero > * {
  position: relative;
  max-width: 720px;
}

.shop-card {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  overflow: hidden;
  background: #fffdf8;
  border-color: #d3ddd7;
  box-shadow: 0 8px 20px rgb(17 24 23 / 0.07);
}

.gear-card-visual {
  position: relative;
  grid-row: 1 / span 2;
  width: 112px;
  min-width: 0;
  height: 112px;
  overflow: hidden;
  background-image: url("./assets/saincho-gear-editorial-v1.jpg");
  background-repeat: no-repeat;
  background-size: 260% auto;
  border-radius: 8px;
}

.gear-card-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.gear-card-visual span {
  position: absolute;
  z-index: 1;
  left: 7px;
  bottom: 7px;
  max-width: calc(100% - 14px);
  min-height: 23px;
  padding: 4px 7px;
  color: #fff;
  background: rgb(10 17 16 / 0.82);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.gear-card-visual-hydration { background-position: 70% 42%; }
.gear-card-visual-textile { background-position: 25% 20%; }
.gear-card-visual-mat { background-position: 18% 72%; }
.gear-card-visual-bag { background-position: 75% 18%; }
.gear-card-visual-care { background-position: 53% 66%; }
.gear-card-visual-timer { background-position: 42% 88%; }
.gear-card-visual-kit { background-position: 50% 50%; }

.gear-card-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.gear-card-copy h4,
.gear-card-copy p,
.gear-card-copy em {
  margin: 0;
}

.gear-card-copy h4 {
  font-size: 16px;
  line-height: 1.3;
}

.gear-card-copy p,
.gear-card-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.shop-card-actions {
  grid-column: 2;
  margin-top: 0;
}

.shop-card-actions a:first-child {
  background: #111817;
}

.shop-card-actions a:last-child {
  background: #f5d661;
}

@media (max-width: 760px) {
  .community-form-grid {
    width: 100%;
    overflow: hidden;
  }

  .community-form input[type="datetime-local"] {
    font-size: 16px;
  }

  .nearby-notification-row {
    gap: 8px;
    padding-inline: 10px;
  }

  .nearby-notification-row > span {
    gap: 6px;
  }

  .nearby-notification-row strong {
    font-size: 14px;
  }

  .nearby-notification-row small {
    font-size: 12px;
  }

  .facility-card .facility-social-pair,
  .detail-action-grid .facility-social-pair {
    grid-column: 1 / -1;
  }

  .commerce-hero {
    min-height: 250px;
    padding: 20px 18px;
    background-position: 44% center;
  }

  .commerce-hero h3 {
    font-size: 24px;
    line-height: 1.22;
  }

  .shop-card {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 10px;
  }

  .gear-card-visual {
    width: 92px;
    height: 104px;
  }

  .shop-card-actions {
    grid-column: 1 / -1;
  }

  .sameshi-card .facility-name {
    font-size: 17px;
    line-height: 1.3;
  }

  .sameshi-card .source-badge {
    max-width: 58px;
    padding-inline: 7px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .nearby-notification-row small {
    display: none;
  }

  .sameshi-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 9px;
  }

  .meal-photo {
    height: 104px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat-box {
  min-height: 104px;
  padding: 14px;
  color: white;
  background: var(--coal);
  border-radius: 8px;
}

.stat-box:nth-child(2) {
  background: var(--cedar);
}

.stat-box:nth-child(3) {
  background: var(--water);
}

.stat-box:nth-child(4) {
  background: var(--coral);
}

.stat-box span {
  display: block;
  margin-bottom: 8px;
  color: rgb(255 255 255 / 0.72);
  font-size: 12px;
  font-weight: 700;
}

.stat-box strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.stat-box-title strong {
  font-size: 24px;
  line-height: 1.1;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.profile-panel,
.leaderboard-panel,
.growth-panel,
.favorites-panel,
.shop-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  background: rgb(255 255 255 / 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.growth-panel {
  background:
    none,
    rgb(255 255 255 / 0.82);
}

.growth-panel h3,
.growth-panel p {
  margin: 0;
}

.growth-panel h3 {
  font-size: 19px;
  line-height: 1.2;
}

.growth-panel p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

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

.growth-actions button {
  min-height: 40px;
  padding: 0 8px;
  color: white;
  background: var(--night);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.promotion-copy-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 86px;
  padding: 10px;
  color: #173c38;
  background: rgb(255 255 255 / 0.92);
  border: 1px solid rgb(10 143 138 / 0.22);
  border-radius: 8px;
  text-align: left;
}

.promotion-copy-card span {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.promotion-copy-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.favorites-list {
  display: grid;
  gap: 8px;
}

.favorites-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--muted);
  background: #f8fbf8;
  border: 1px dashed #cfdcd6;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.favorites-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.favorite-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.favorite-row strong {
  color: var(--ink);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.favorite-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.growth-actions button:nth-child(2) {
  color: white;
  background: #06c755;
}

.growth-actions button:nth-child(3) {
  color: var(--ink);
  background: #f7d773;
}

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

.panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.panel-head > span,
.leaderboard-updated {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.leaderboard-summary {
  padding: 10px;
  color: #33413d;
  background: #f6fbf8;
  border: 1px solid #d8ebe5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.leaderboard-row.is-you {
  border-color: rgb(10 143 138 / 0.4);
  box-shadow: inset 3px 0 0 var(--teal);
}

.leaderboard-row.is-top-1 > strong {
  color: #2d2310;
  background: none;
}

.leaderboard-row.is-top-2 > strong {
  color: #263039;
  background: none;
}

.leaderboard-row.is-top-3 > strong {
  color: #302218;
  background: none;
}

.leaderboard-row > strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--night);
  border-radius: 50%;
  font-size: 13px;
}

.leaderboard-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.leaderboard-row span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-row em {
  color: var(--muted);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 700;
}

.leaderboard-row b {
  color: var(--teal);
  font-size: 16px;
  white-space: nowrap;
}

/* 開示している参加者だけに出る、押印施設一覧への導線 */
.leaderboard-facilities-button {
  justify-self: start;
  padding: 2px 0;
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

.ranking-facilities-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.ranking-facilities-list {
  display: grid;
  gap: 6px;
  max-height: 52vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ranking-facility-row {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.ranking-facility-row span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.ranking-facility-row small {
  color: var(--muted);
  font-size: var(--text-xs);
}

.ranking-facilities-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* プロフィールフォーム内の開示トグル。.profile-form label / input の
   汎用スタイル（grid・全幅）より強く指定して、設定画面のトグルと同じ
   横並びレイアウトにする。行全体がラベルのため行ごとタップできる。 */
.profile-form label.profile-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 10px;
  cursor: pointer;
}

.profile-form label.profile-share-row span {
  display: grid;
  gap: 3px;
}

.profile-form label.profile-share-row strong {
  color: var(--ink);
  font-size: 13px;
}

.profile-form label.profile-share-row small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.5;
}

.profile-form label.profile-share-row input {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
}

.leaderboard-empty {
  padding: 18px 10px;
  color: var(--muted);
  background: white;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.leaderboard-updated {
  margin: -2px 0 0;
  line-height: 1.35;
}

.shop-grid {
  display: grid;
  gap: 10px;
}

.shop-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shop-card span {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.shop-card h4,
.shop-card p {
  margin: 0;
}

.shop-card h4 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.shop-card p,
.shop-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

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

.shop-card-actions a {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 8px;
  color: white;
  background: var(--coal);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.shop-card-actions a:last-child {
  color: #16201d;
  background: #f7d773;
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: white;
  background: var(--night);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.commerce-hero,
.guide-hero,
.sameshi-hero,
.stay-hero,
.contact-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
  color: white;
  background:
    none,
    var(--night);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgb(16 20 23 / 0.14);
}

.guide-hero {
  background:
    none,
    var(--water);
}

.sameshi-hero {
  background:
    none,
    var(--gold);
}

.stay-hero {
  background:
    none,
    var(--cedar);
}

.contact-hero {
  background:
    none,
    var(--teal);
}

.commerce-hero span,
.guide-hero span,
.sameshi-hero span,
.stay-hero span,
.contact-hero span {
  color: #f7d773;
  font-size: 12px;
  font-weight: 700;
}

.commerce-hero h3,
.commerce-hero p,
.guide-hero h3,
.guide-hero p,
.sameshi-hero h3,
.sameshi-hero p,
.stay-hero h3,
.stay-hero p,
.contact-hero h3,
.contact-hero p {
  margin: 0;
}

.commerce-hero h3,
.guide-hero h3,
.sameshi-hero h3,
.stay-hero h3,
.contact-hero h3 {
  font-size: 20px;
  line-height: 1.2;
}

.commerce-hero p,
.guide-hero p,
.sameshi-hero p,
.stay-hero p,
.contact-hero p {
  color: rgb(255 255 255 / 0.76);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.category-strip {
  display: flex;
  gap: 8px;
  margin: 0 -14px 12px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.sameshi-pref-strip {
  display: flex;
  gap: 8px;
  margin: 0 -14px 12px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sameshi-pref-strip::-webkit-scrollbar {
  display: none;
}

.sameshi-grid {
  display: grid;
  gap: 10px;
}

.sameshi-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  min-height: 146px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgb(16 20 23 / 0.06);
}

.meal-photo {
  position: relative;
  min-width: 0;
  height: 126px;
  overflow: hidden;
  background:
    none,
    none;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}

.meal-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: none;
}

.meal-photo span {
  position: absolute;
  z-index: 1;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  color: white;
  background: rgb(16 20 23 / 0.68);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.meal-photo-ramen {
  background-image:
    none,
    none,
    none;
}

.meal-photo-curry {
  background-image:
    none,
    none,
    none;
}

.meal-photo-meat {
  background-image:
    none,
    none,
    none;
}

.meal-photo-don,
.meal-photo-friedrice {
  background-image:
    none,
    none,
    none;
}

.meal-photo-teishoku,
.meal-photo-cafe,
.meal-photo-gyoza,
.meal-photo-pasta,
.meal-photo-hotpot {
  background-image:
    none,
    none,
    none;
}

.sameshi-body {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.sameshi-body strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.sameshi-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.sameshi-source {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.45;
}

.stay-grid {
  display: grid;
  gap: 10px;
}

.stay-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgb(16 20 23 / 0.06);
}

.stay-card span {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.stay-card h3,
.stay-card strong,
.stay-card p {
  margin: 0;
}

.stay-card h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.26;
}

.stay-card strong {
  color: #33413d;
  font-size: 13px;
  line-height: 1.35;
}

.stay-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.stay-card a {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: white;
  background: var(--night);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.business-plan-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.business-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.business-plan-card,
.business-value-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgb(16 20 23 / 0.06);
}

.business-plan-card span,
.business-value-card span {
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  color: #6a4217;
  background: #fff4ce;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.business-plan-card h3,
.business-plan-card strong,
.business-plan-card p,
.business-plan-card em,
.business-value-card strong,
.business-value-card p {
  margin: 0;
}

.business-plan-card h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.business-plan-card strong {
  color: var(--teal);
  font-size: 20px;
  line-height: 1.15;
}

.business-plan-card p,
.business-plan-card em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.48;
}

.business-plan-card em {
  color: #43524e;
  font-style: normal;
}

.business-payment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 3px;
  padding: 0 12px;
  color: white;
  background: var(--night);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.business-payment-button-inquiry {
  color: var(--ink);
  background: none;
}

.business-value-card {
  background: none;
}

.business-value-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.business-value-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-form-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgb(255 255 255 / 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.contact-choice {
  min-width: 0;
}

.contact-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-choice span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  color: #33413d;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.contact-choice input:checked + span {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}

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

.contact-form label,
.contact-message {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contact-form input:not([type="radio"]),
.contact-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.contact-submit-row p {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-submit-row p.is-error {
  color: var(--accent);
}

.gear-grid,
.article-list {
  display: grid;
  gap: 10px;
}

.article-list {
  align-items: start;
}

.gear-card-full {
  position: relative;
  overflow: hidden;
}

.gear-card-full::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: none;
}

.article-card {
  align-self: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.article-card details {
  display: grid;
  min-height: 0;
}

.article-card summary {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

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

.article-card summary span {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.article-card summary strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.28;
}

.article-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  color: #33413d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.guide-gear-rail {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  background: #fffdf6;
  border: 1px solid #ead7a4;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgb(16 20 23 / 0.08);
}

.guide-gear-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.guide-gear-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.guide-gear-head span {
  color: #9b6e05;
  font-size: var(--text-xs);
  font-weight: 700;
}

.guide-gear-head strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.guide-gear-grid {
  display: grid;
  gap: 8px;
}

.guide-gear-grid article {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: white;
  border: 1px solid #eadfca;
  border-radius: 8px;
}

.guide-gear-grid span,
.article-gear b {
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 700;
}

.guide-gear-grid strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.guide-gear-grid div,
.article-gear-item div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guide-gear-grid a,
.article-gear-item a {
  display: grid;
  min-height: 36px;
  place-items: center;
  color: white;
  background: var(--night);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.guide-gear-grid a:nth-child(2),
.article-gear-item a:nth-child(2) {
  color: var(--ink);
  background: var(--gold);
}

.article-gear {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fffaf0;
  border: 1px solid #ead7a4;
  border-radius: 8px;
}

.article-gear-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.article-gear-item {
  display: grid;
  gap: 7px;
  padding: 9px;
  background: white;
  border-radius: 7px;
}

.article-gear-item span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.article-body p,
.article-body ul {
  margin: 0;
}

.article-body ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.article-action,
.article-caution {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  background: #f5fbf8;
  border: 1px solid #d8ebe5;
  border-radius: 8px;
}

.article-caution {
  background: #fff7ef;
  border-color: #f1d7c5;
}

.article-action b,
.article-caution b {
  color: var(--teal);
  font-size: 12px;
}

.article-caution b {
  color: var(--coral);
}

.faq-panel,
.reference-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  background: rgb(255 255 255 / 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-panel h3,
.reference-panel h3,
.faq-panel p,
.reference-panel p {
  margin: 0;
}

.faq-panel h3,
.reference-panel h3 {
  font-size: 18px;
}

.faq-grid {
  display: grid;
  gap: 8px;
}

.faq-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.faq-card summary {
  padding: 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

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

.faq-card p {
  padding: 0 12px 12px;
  color: #33413d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.reference-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  color: #28403b;
  background: #eef6f2;
  border: 1px solid #d8ebe5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.pref-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.pref-progress {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 66px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pref-progress-master {
  color: white;
  background: none;
  border-color: rgb(187 141 35 / 0.4);
}

.pref-progress-master span {
  color: rgb(255 255 255 / 0.76);
}

.pref-progress strong {
  font-size: 13px;
}

.pref-progress span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.import-box {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
}

.import-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.add-form {
  display: grid;
  gap: 12px;
  padding-bottom: 10px;
}

.add-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.feature-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: rgb(255 255 255 / 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-picker legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-hint {
  margin: -2px 0 0;
  color: #52605b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.add-form input,
.add-form select,
.add-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.add-form .feature-option input {
  min-height: 100%;
  padding: 0;
  border: 0;
}

.add-form textarea {
  min-height: 104px;
  resize: vertical;
}

.bottom-nav {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgb(16 20 23 / 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  color: rgb(255 255 255 / 0.62);
  background: transparent;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
}

.bottom-nav .nav-active {
  color: white;
  background: rgb(255 255 255 / 0.11);
}

.nav-search::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-search::after {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 7px;
  height: 2px;
  content: "";
  background: currentColor;
  rotate: 45deg;
}

.nav-stamp {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-stamp::before {
  position: absolute;
  inset: 5px;
  content: "";
  border: 1px dashed currentColor;
  border-radius: 50%;
}

.nav-chart::before,
.nav-chart::after {
  position: absolute;
  bottom: 3px;
  content: "";
  width: 4px;
  background: currentColor;
  border-radius: 2px;
}

.nav-chart::before {
  left: 4px;
  height: 10px;
  box-shadow: 7px -5px 0 currentColor, 14px -1px 0 currentColor;
}

.nav-plus::before,
.nav-plus::after {
  position: absolute;
  inset: 10px 3px auto;
  content: "";
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-plus::after {
  rotate: 90deg;
}

.settings-dialog {
  width: min(calc(100% - 28px), 420px);
  padding: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.settings-dialog::backdrop {
  background: rgb(16 20 23 / 0.58);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dialog-head .icon-button {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  margin-bottom: 12px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.toggle-row input {
  width: 24px;
  height: 24px;
  accent-color: var(--teal);
}

.menu-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.menu-actions button {
  min-height: 44px;
  padding: 0 12px;
  color: #243632;
  background: #eef6f2;
  border: 1px solid #d8ebe5;
  border-radius: 8px;
  font-weight: 700;
  text-align: left;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #34413d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  counter-reset: installStep;
}

.install-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px;
  background: #f8fbf8;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  counter-increment: installStep;
}

.install-steps li::before {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  content: counter(installStep);
  font-size: 13px;
  font-weight: 700;
}

.install-steps strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.install-steps span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.achievement-dialog {
  width: min(calc(100% - 28px), 440px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.achievement-dialog::backdrop {
  background:
    none,
    rgb(16 20 23 / 0.68);
  backdrop-filter: blur(4px);
}

.achievement-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  text-align: center;
  background:
    none,
    white;
  border: 1px solid rgb(16 20 23 / 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgb(16 20 23 / 0.28);
  animation: achievement-pop 320ms cubic-bezier(0.2, 0.9, 0.2, 1.15);
  overflow: hidden;
}

.achievement-card::before,
.achievement-card::after {
  position: absolute;
  top: 18px;
  content: "〰";
  color: rgb(10 143 138 / 0.35);
  font-size: 30px;
  font-weight: 700;
  animation: steam-rise 1500ms ease-in-out infinite;
}

.achievement-card::before {
  left: 22px;
}

.achievement-card::after {
  right: 26px;
  animation-delay: 240ms;
}

.achievement-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #44514d;
  background: rgb(16 20 23 / 0.06);
  border-radius: 8px;
}

.achievement-close .icon-close {
  width: 16px;
  height: 16px;
}

.achievement-card img {
  justify-self: center;
  width: min(100%, 330px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #fff8e9;
}

.achievement-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.achievement-card p {
  margin: 0;
  color: #52605b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.achievement-card .primary-button {
  width: 100%;
  margin-top: 4px;
}

@keyframes achievement-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
}

@keyframes steam-rise {
  50% {
    transform: translateY(-7px);
    opacity: 0.58;
  }
}

@keyframes menu-sheet-in {
  from {
    opacity: 0.78;
    transform: translateX(32px);
  }
}

.toast {
  position: fixed;
  z-index: 40;
  right: 14px;
  bottom: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom));
  left: 14px;
  min-height: 46px;
  padding: 13px 14px;
  color: white;
  background: rgb(16 20 23 / 0.96);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 「トップへ」ボタン: .main は内側スクロールコンテナのため OS 標準の
   先頭へ戻る操作が効かない。一定量スクロールしたときだけ表示する。
   位置はトーストと同じ基準線（下部ナビの上）で、トースト表示中は
   トースト（z-index 40）が前面に出る。 */
.back-to-top {
  position: fixed;
  z-index: 35;
  right: 14px;
  bottom: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  background: rgb(16 20 23 / 0.92);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: back-to-top-in 160ms ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top-arrow {
  font-size: 15px;
  line-height: 1;
}

@keyframes back-to-top-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .main {
    padding: 18px 24px 0;
  }

  .topbar {
    padding-inline: 24px;
    min-height: 104px;
  }

  .topbar .brand-name {
    font-size: 32px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .top-gear-button {
    min-width: 92px;
    height: 48px;
  }

  .tool-band {
    grid-template-columns: 1fr minmax(320px, 420px);
    align-items: center;
  }

  .quest-card {
    grid-template-columns: 160px minmax(0, 1fr) minmax(360px, auto);
  }

  .facility-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facility-card {
    min-height: 186px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .profile-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
    align-items: end;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gear-grid,
  .article-list,
  .sameshi-grid,
  .stay-grid,
  .business-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-gear-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (max-width: 719px) {
  .ssr-content {
    gap: 8px;
    padding: 12px;
  }

  .ssr-content h1 {
    font-size: 22px;
  }

  .ssr-content dl,
  .ssr-grid {
    grid-template-columns: 1fr;
  }

  .ssr-content dl div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ssr-content dl div:last-child {
    border-bottom: 0;
  }

  .facility-detail-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .facility-photo {
    min-height: 178px;
  }

  .facility-detail-copy h2 {
    font-size: 26px;
    line-height: 1.12;
  }

  .detail-info-card {
    grid-template-columns: 1fr;
  }

  .detail-info-card div {
    padding: 12px;
  }

  .detail-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-action-grid .facility-share-button,
  .detail-action-grid .undo-button {
    grid-column: span 2;
  }

  .detail-panel dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .detail-unique-grid,
  .detail-gear-grid {
    grid-template-columns: 1fr;
  }

  .lodging-search-card > div {
    grid-template-columns: 1fr;
  }

  .review-form {
    grid-template-columns: 1fr;
  }

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

  .promotion-copy-grid {
    grid-template-columns: 1fr;
  }

  .business-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facility-utility-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 10px;
    min-height: 98px;
    padding-inline: 14px;
  }

  .topbar::before {
    background-position: 58% center;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .topbar .brand-name {
    font-size: 26px;
  }

  .topbar-promise span {
    min-height: 22px;
    padding-inline: 8px;
    font-size: var(--text-xs);
  }

  .topbar-promise span:nth-child(3) {
    display: none;
  }

  .topbar-actions {
    gap: 6px;
  }

  .top-gear-button {
    min-width: 62px;
    height: 44px;
    padding-inline: 10px;
  }

  .main {
    padding: 12px 12px 14px;
  }

  .install-card {
    grid-template-columns: 52px minmax(0, 1fr) auto 34px;
    gap: 8px;
    padding: 9px;
  }

  .install-card img {
    width: 52px;
    height: 52px;
  }

  .install-card strong {
    font-size: 13px;
  }

  .install-card span {
    font-size: var(--text-xs);
  }

  .install-button {
    min-width: 52px;
    min-height: 38px;
    padding-inline: 10px;
  }

  .install-dismiss {
    width: 34px;
    height: 34px;
  }

  .summary-band {
    min-height: 302px;
    margin-bottom: 12px;
    padding: 14px;
  }

  .summary-copy strong {
    font-size: 38px;
  }

  .summary-copy span:last-child {
    font-size: 12px;
  }

  .progress-ring {
    width: 68px;
    height: 68px;
  }

  .hero-metrics {
    gap: 6px;
  }

  .hero-metrics div {
    min-height: 50px;
    padding: 8px;
  }

  .reward-nudge {
    gap: 6px;
    min-height: 50px;
  }

  .reward-pill {
    min-height: 50px;
    padding: 8px;
  }

  .reward-pill strong {
    font-size: 14px;
  }

  .quest-panel {
    margin-bottom: 10px;
  }

  .quest-card {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 10px;
  }

  .quest-copy {
    display: none;
  }

  .quest-target strong {
    font-size: 15px;
  }

  .quest-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    gap: 5px;
  }

  .quest-actions button {
    min-height: 38px;
    padding-inline: 4px;
    font-size: var(--text-xs);
  }

  .tool-band {
    gap: 8px;
    padding: 8px 0 10px;
  }

  .pref-strip {
    margin-bottom: 8px;
  }

  .source-row {
    margin-bottom: 10px;
  }

  .category-strip {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .sameshi-pref-strip {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .sameshi-card {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 10px;
    min-height: 124px;
    padding: 9px;
  }

  .meal-photo {
    height: 106px;
  }

  .sameshi-body strong {
    font-size: 15px;
  }

  .sameshi-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .stat-box-title strong {
    font-size: 21px;
  }

  .profile-panel,
  .leaderboard-panel,
  .growth-panel,
  .favorites-panel,
  .shop-panel {
    padding: 12px;
  }

  .commerce-hero,
  .guide-hero,
  .sameshi-hero,
  .stay-hero,
  .contact-hero,
  .faq-panel,
  .reference-panel,
  .contact-form-panel {
    padding: 12px;
  }

  .contact-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotion-copy-grid {
    grid-template-columns: 1fr;
  }

  .business-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-grid,
  .contact-submit-row {
    grid-template-columns: 1fr;
  }

  .contact-submit-row .primary-button {
    width: 100%;
  }

  .panel-head h3 {
    font-size: 18px;
  }

  .leaderboard-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .leaderboard-row b {
    font-size: 14px;
  }

  .passport-scope-strip {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .title-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .title-card img {
    width: 92px;
  }

  .title-card strong {
    font-size: 16px;
  }

  .title-card p,
  .title-card em {
    font-size: var(--text-xs);
  }

  .feature-filter-grid,
  .feature-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .feature-chip,
  .feature-option {
    min-height: 38px;
    padding-inline: 8px;
    font-size: var(--text-xs);
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
    text-align: center;
  }

  .facility-card {
    grid-template-columns: 74px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .facility-card .stamp-art {
    width: 74px;
  }

  .facility-name {
    font-size: 15px;
  }

  .primary-button,
  .secondary-button,
  .undo-button,
  .map-route-button,
  .facility-share-button,
  .favorite-wide-button,
  .ghost-button,
  .danger-button,
  .import-box {
    min-height: 42px;
    padding-inline: 10px;
  }

  .achievement-card {
    padding: 12px;
  }

  .achievement-card img {
    width: min(100%, 300px);
  }

  .achievement-card h2 {
    font-size: 20px;
  }
}

@media (max-width: 899px) {
  .settings-dialog[open] {
    width: min(88vw, 360px);
    max-height: none;
    min-height: 100dvh;
    margin: 0 0 0 auto;
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 8px 0 0 8px;
    animation: menu-sheet-in 180ms ease-out;
  }

  .add-form {
    padding-bottom: calc(var(--nav-height) + 28px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 370px) {
  .topbar-promise {
    display: none;
  }

  .top-gear-button {
    min-width: 56px;
    font-size: 12px;
  }
}

@media (min-width: 900px) {
  :root {
    --nav-height: 74px;
    --rail-width: 88px;
  }

  .app-shell {
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .topbar {
    grid-column: 1 / -1;
    padding-left: 24px;
  }

  .main {
    grid-column: 2;
    grid-row: 2;
    padding-bottom: 32px;
  }

  .bottom-nav {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    grid-template-columns: 1fr;
    width: 62px;
    height: auto;
    min-height: 330px;
    margin-top: 18px;
    padding: 8px;
    translate: none;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 8px;
  }

  .bottom-nav button {
    min-height: 74px;
  }

  .toast {
    right: auto;
    bottom: 18px;
    left: calc(var(--rail-width) + 18px);
    width: min(420px, calc(100% - var(--rail-width) - 36px));
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
}

@media (min-width: 1080px) {
  .gear-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Washi design v1 */
:root {
  --paper: #f6f3ec;
  --washi: #ede8dc;
  --ink: #1f1d18;
  --ink-soft: #5c5850;
  --line: #d9d2c2;
  --primary: #114b46;
  --primary-soft: #e3ebe7;
  --accent: #b93a2b;
  --accent-soft: #f4e4e0;
  --gold: #8a6a24;
  --radius-s: 6px;
  --radius-m: 8px;
  --hairline: 1px solid var(--line);
  --shadow: 0 8px 20px rgb(31 29 24 / 0.08);
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-latin: "Inter", system-ui, sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --muted: var(--ink-soft);
  --mist: var(--primary-soft);
  --coal: var(--ink);
  --night: var(--ink);
  --teal: var(--primary);
  --cedar: var(--primary);
  --coral: var(--accent);
  --water: var(--primary);
}

html,
body {
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
.section-title h2,
.dialog-head h2,
.panel-head h3,
.facility-name,
.facility-detail-title h1,
.commerce-hero h2,
.guide-hero h2,
.sameshi-hero h2,
.stay-hero h2,
.contact-hero h2,
.promotion-card h3,
.article-card h3,
.gear-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.eyebrow,
.stat-label,
.summary-kicker,
.commerce-hero .eyebrow,
.guide-hero .eyebrow,
.sameshi-hero .eyebrow,
.stay-hero .eyebrow,
.contact-hero .eyebrow,
.feature-group-title,
.guide-tag,
.gear-category,
.source-tab,
.sameshi-pref-name,
.contact-plan-label,
.footer-small {
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

button,
input,
select,
textarea,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.map-route-button,
.facility-share-button,
.favorite-wide-button,
.top-gear-button {
  font-weight: 700;
  letter-spacing: 0.03em;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid rgb(185 58 43 / 0.42);
  outline-offset: 3px;
}

.topbar {
  min-height: 88px;
  color: var(--ink);
  background: var(--washi);
  border-bottom: var(--hairline);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  letter-spacing: 0.03em;
}

.topbar::before,
.topbar::after {
  display: none;
}

.brand-lockup {
  color: var(--ink);
  border-radius: var(--radius-m);
}

.brand-mark {
  width: 52px;
  height: 52px;
  background: var(--paper);
  border: var(--hairline);
  border-radius: var(--radius-m);
  box-shadow: none;
}

.topbar .brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 4.8vw, 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.topbar .eyebrow {
  color: var(--ink-soft);
  letter-spacing: 0.16em;
}

.topbar-promise {
  display: none;
}

.topbar-actions {
  gap: 10px;
}

.top-gear-button {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius-m);
  box-shadow: none;
}

.menu-button,
.settings-close,
.install-dismiss,
.search-clear-button {
  color: var(--ink);
  background: var(--paper);
  border: var(--hairline);
  border-radius: var(--radius-m);
  box-shadow: none;
}

.main {
  background: var(--paper);
}

.content-panel,
.install-card,
.summary-band,
.filter-panel,
.daily-card,
.facility-card,
.detail-card,
.log-card,
.gear-card,
.article-card,
.sameshi-card,
.stay-card,
.contact-card,
.ranking-card,
.faq-panel,
.reference-panel,
.contact-form-panel,
.commerce-hero,
.guide-hero,
.sameshi-hero,
.stay-hero,
.contact-hero,
.settings-dialog,
.achievement-card {
  background: #fffdf8;
  border: var(--hairline);
  border-radius: var(--radius-m);
  box-shadow: none;
  letter-spacing: 0.02em;
}

.summary-band {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
}

.summary-band::before {
  position: static;
  display: block;
  min-height: clamp(132px, 24vw, 210px);
  background-image: url("./assets/sauna-hero.webp");
  background-position: center;
  background-size: cover;
  content: "";
  filter: saturate(0.82);
  opacity: 0.86;
}

.summary-band::after {
  display: none;
}

.summary-copy,
.summary-stats,
.summary-achievement-grid {
  position: relative;
  z-index: 1;
}

.summary-copy {
  padding: 18px 18px 8px;
}

.summary-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.summary-copy p,
.summary-kicker,
.summary-meta {
  color: var(--ink-soft);
  text-shadow: none;
}

.summary-stats,
.summary-achievement-grid {
  padding: 0 18px 18px;
}

.stat-card,
.summary-achievement {
  background: var(--paper);
  border: var(--hairline);
  border-radius: var(--radius-s);
  box-shadow: none;
}

.stat-value,
.summary-achievement strong {
  color: var(--ink);
  font-family: var(--font-latin);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.progress-ring {
  color: var(--accent);
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: inset 0 0 0 4px var(--accent-soft);
}

.progress-ring::before {
  display: none;
}

.filter-panel,
.search-row,
.status-toggle,
.pref-strip,
.source-tabs {
  background: transparent;
  border-color: var(--line);
}

.search-box input,
.add-form input,
.add-form select,
.add-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea,
.review-form textarea,
.memo-editor textarea {
  color: var(--ink);
  background: #fffdf8;
  border: var(--hairline);
  border-radius: var(--radius-s);
  box-shadow: none;
  letter-spacing: 0.02em;
}

.status-toggle button,
.pref-chip,
.source-tab,
.feature-chip,
.feature-option,
.tag,
.facility-source,
.status-badge {
  color: var(--ink-soft);
  background: transparent;
  border: var(--hairline);
  border-radius: var(--radius-s);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-toggle .is-active,
.pref-chip.is-active,
.source-tab.is-active,
.feature-chip.is-selected,
.feature-option.is-selected {
  color: #fffdf8;
  background: var(--primary);
  border-color: var(--primary);
}

.primary-button,
.stamp-button,
.add-submit,
.contact-submit-row .primary-button {
  color: #fffdf8;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-s);
  box-shadow: none;
}

.primary-button:active:not(:disabled),
.stamp-button:active:not(:disabled),
.top-gear-button:active {
  transform: scale(0.98);
}

.secondary-button,
.ghost-button,
.detail-link,
.favorite-button,
.favorite-wide-button,
.undo-button,
.install-button,
.map-route-button,
.facility-share-button {
  color: var(--ink);
  background: transparent;
  border: var(--hairline);
  border-radius: var(--radius-s);
  box-shadow: none;
}

.danger-button,
.sameshi-nearby-button {
  color: #fffdf8;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-s);
}

.text-link,
.memo-add-button,
.note-action,
.facility-card a,
.guide-related a,
.contact-inline-link {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.facility-card {
  color: var(--ink);
  background: #fffdf8;
  border-left: 4px solid var(--primary);
  transition: border-color 120ms ease, transform 120ms ease;
}

.facility-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.facility-card.is-featured {
  background: var(--ink);
  color: #fffdf8;
  border-color: var(--accent);
}

.facility-card.is-featured .facility-meta,
.facility-card.is-featured .facility-address,
.facility-card.is-featured .memo-summary {
  color: rgb(255 253 248 / 0.76);
}

.facility-name {
  color: inherit;
  font-size: clamp(18px, 3.8vw, 24px);
  line-height: 1.3;
}

.facility-meta,
.facility-address,
.memo-summary,
.card-count,
.panel-copy,
.detail-value,
.review-meta,
.gear-note {
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.stamp-art {
  color: var(--accent);
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: none;
  transform: rotate(-7deg);
}

.stamp-art::before,
.stamp-art::after {
  border-color: var(--accent);
}

.stamp-kanji {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stamp-art.locked {
  color: var(--line);
  background: var(--paper);
  border-color: var(--line);
  opacity: 0.72;
}

.stamp-art.locked .stamp-kanji,
.stamp-art.locked::before,
.stamp-art.locked::after {
  color: var(--ink-soft);
  border-color: var(--line);
}

.commerce-hero,
.guide-hero,
.sameshi-hero,
.stay-hero,
.contact-hero {
  color: #fffdf8;
  background: var(--primary);
}

.commerce-hero p,
.guide-hero p,
.sameshi-hero p,
.stay-hero p,
.contact-hero p {
  color: rgb(255 253 248 / 0.78);
}

.gear-card {
  border-color: rgb(138 106 36 / 0.36);
}

.gear-card .gear-category,
.gear-price,
.gear-badge,
.gold-text {
  color: var(--gold);
}

.affiliate-button,
.rakuten-button,
.amazon-button {
  color: var(--ink);
  background: #f4d76b;
  border: 1px solid rgb(138 106 36 / 0.38);
  border-radius: var(--radius-s);
}

.amazon-button {
  color: #fffdf8;
  background: var(--ink);
  border-color: var(--ink);
}

.bottom-nav {
  color: var(--ink-soft);
  background: rgb(246 243 236 / 0.94);
  border-top: var(--hairline);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.bottom-nav button {
  color: var(--ink-soft);
  background: transparent;
  border-radius: var(--radius-s);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.bottom-nav .nav-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.bottom-nav .nav-active svg,
.bottom-nav button:hover svg {
  color: var(--accent);
}

.toast {
  color: #fffdf8;
  background: var(--ink);
  border: 1px solid rgb(255 253 248 / 0.14);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  letter-spacing: 0.02em;
}

.settings-dialog::backdrop,
.achievement-dialog::backdrop {
  background: rgb(31 29 24 / 0.42);
  backdrop-filter: blur(2px);
}

.settings-dialog[open] {
  color: var(--ink);
  background: var(--paper);
  border: var(--hairline);
}

.achievement-card {
  color: var(--ink);
  background: #fffdf8;
}

.achievement-card h2 {
  color: var(--accent);
  letter-spacing: 0.06em;
}

.ssr-seo-content,
.seo-footer,
.footer-link-cloud {
  color: var(--ink);
  background: var(--washi);
  border-top: var(--hairline);
  letter-spacing: 0.02em;
}

.ssr-seo-content a,
.seo-footer a,
.footer-link-cloud a {
  color: var(--primary);
}

.install-card {
  background: #fffdf8;
}

.install-card strong {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.detail-hero-image,
.facility-detail-visual img,
.sameshi-photo,
.stay-photo,
.article-cover {
  border-radius: var(--radius-m);
  border: var(--hairline);
  box-shadow: none;
}

.review-item,
.memo-item,
.leaderboard-row,
.business-plan,
.business-value-card {
  background: #fffdf8;
  border: var(--hairline);
  border-radius: var(--radius-m);
  box-shadow: none;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  :root {
    --nav-height: 78px;
  }

  body {
    font-size: var(--text-md);
    line-height: 1.76;
  }

  .topbar {
    min-height: 86px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .topbar .brand-name {
    font-size: clamp(26px, 7.4vw, 34px);
    line-height: 1.08;
  }

  .top-gear-button {
    min-width: 70px;
    min-height: 48px;
    padding-inline: 14px;
  }

  .menu-button {
    width: 48px;
    height: 48px;
  }

  .content-panel,
  .summary-band,
  .filter-panel,
  .daily-card,
  .facility-card,
  .detail-card,
  .log-card,
  .gear-card,
  .article-card,
  .sameshi-card,
  .stay-card,
  .contact-card {
    border-radius: var(--radius-m);
  }

  .summary-band::before {
    min-height: 126px;
  }

  .summary-copy,
  .summary-stats,
  .summary-achievement-grid {
    padding-inline: 14px;
  }

  .search-box input {
    min-height: 58px;
    font-size: 16px;
  }

  .facility-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 14px;
  }

  .facility-card .stamp-art {
    width: 82px;
  }

  .facility-name {
    font-size: clamp(21px, 6.2vw, 30px);
    letter-spacing: 0.04em;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button,
  .map-route-button,
  .facility-share-button,
  .favorite-wide-button {
    min-height: 50px;
    font-size: 16px;
  }

  .bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

.summary-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  min-height: 242px;
  padding: 18px;
  color: #fffdf8;
  background-color: var(--ink);
  background-image: url("./assets/sauna-hero.webp");
  background-position: center;
  background-size: cover;
}

.summary-band::before {
  position: absolute;
  inset: 0;
  display: block;
  min-height: auto;
  background: rgb(31 29 24 / 0.58);
  content: "";
  filter: none;
  opacity: 1;
}

.summary-copy,
.hero-metrics,
.reward-nudge,
.progress-ring {
  position: relative;
  z-index: 1;
}

.summary-copy {
  padding: 0;
}

.summary-label,
.summary-copy span,
.summary-copy p,
.summary-kicker,
.summary-meta,
#collectionScope {
  color: rgb(255 253 248 / 0.82);
}

.summary-copy strong,
.hero-metrics strong,
.reward-pill strong {
  color: #fffdf8;
}

#collectionScope {
  background: rgb(255 253 248 / 0.12);
  border: 1px solid rgb(255 253 248 / 0.22);
  border-radius: var(--radius-s);
  backdrop-filter: none;
}

.hero-metrics {
  grid-column: 1 / -1;
}

.hero-metrics div,
.summary-achievement,
.reward-pill {
  color: #fffdf8;
  background: rgb(31 29 24 / 0.52);
  border: 1px solid rgb(255 253 248 / 0.22);
  border-radius: var(--radius-s);
  box-shadow: none;
  backdrop-filter: none;
}

.hero-metrics span,
.reward-pill span,
.reward-pill em {
  color: rgb(255 253 248 / 0.76);
}

.quest-card {
  background: var(--ink);
  border: 1px solid rgb(255 253 248 / 0.14);
  box-shadow: var(--shadow);
}

.quest-actions .secondary-button,
.quest-actions .ghost-button {
  color: #fffdf8;
  background: transparent;
  border: 1px solid rgb(255 253 248 / 0.68);
}

.quest-actions .primary-button {
  color: #fffdf8;
  background: var(--accent);
  border-color: var(--accent);
}

.quest-actions .sameshi-link-button {
  color: var(--ink);
  background: #f4d76b;
  border: 1px solid rgb(244 215 107 / 0.8);
}

/* Heat lodge design v2: rich visual background with readable mobile-first surfaces */
:root {
  color-scheme: light;
  --paper: #f2eadf;
  --washi: #eadfce;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #111817;
  --ink-soft: #52625e;
  --line: #d9c9b5;
  --primary: #007a70;
  --primary-soft: #dff3ef;
  --accent: #c93a2b;
  --accent-soft: #fee8df;
  --gold: #f1c64b;
  --gold-deep: #9b7217;
  --night: #0b1514;
  --night-soft: #132320;
  --shadow: 0 18px 42px rgb(23 18 12 / 0.16);
  --shadow-soft: 0 10px 26px rgb(23 18 12 / 0.1);
  --radius-s: 6px;
  --radius-m: 8px;
  --hairline: 1px solid rgb(56 42 26 / 0.14);
  --font-body: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --muted: var(--ink-soft);
  --mist: var(--primary-soft);
  --coal: var(--night);
  --teal: var(--primary);
  --cedar: #7b4c27;
  --coral: var(--accent);
  --water: #087e91;
}

* {
  letter-spacing: 0 !important;
}

html,
body {
  background:
    radial-gradient(circle at 10% -10%, rgb(211 72 53 / 0.2), transparent 34rem),
    radial-gradient(circle at 92% 4%, rgb(0 135 124 / 0.2), transparent 30rem),
    linear-gradient(180deg, #13211f 0, #1a2520 10rem, var(--paper) 28rem, #f8f2e7 100%);
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.72;
}

.app-shell {
  background:
    linear-gradient(180deg, rgb(11 21 20 / 0.08), transparent 22rem),
    radial-gradient(circle at 82% 18rem, rgb(241 198 75 / 0.12), transparent 26rem);
}

.topbar {
  min-height: 132px;
  padding: calc(18px + env(safe-area-inset-top)) 26px 18px;
  color: #fffaf2;
  background: var(--night);
  border-bottom: 1px solid rgb(255 250 242 / 0.14);
  box-shadow: 0 18px 46px rgb(5 9 9 / 0.34);
  backdrop-filter: none;
}

.topbar::before,
.topbar::after {
  display: block;
}

.topbar::before {
  background-image: url("./assets/saincho-header-ritual.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.015);
}

.topbar::after {
  background:
    linear-gradient(90deg, rgb(5 9 9 / 0.88) 0%, rgb(5 9 9 / 0.62) 38%, rgb(5 9 9 / 0.3) 74%, rgb(5 9 9 / 0.68) 100%),
    linear-gradient(180deg, rgb(5 9 9 / 0.1), rgb(5 9 9 / 0.44));
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.brand-lockup,
.brand-lockup:visited {
  color: #fffaf2;
}

.brand-mark {
  width: 54px;
  height: 54px;
  background: #fffaf2;
  border: 2px solid rgb(255 250 242 / 0.82);
  border-radius: 8px;
  box-shadow: 0 18px 32px rgb(0 0 0 / 0.32);
}

.topbar .brand-name {
  color: #fffaf2;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.02;
  text-shadow: 0 4px 26px rgb(0 0 0 / 0.55);
}

.topbar .eyebrow {
  color: rgb(255 250 242 / 0.72);
  font-weight: 800;
}

.topbar-promise {
  display: flex;
}

.topbar-promise span {
  color: #fffaf2;
  background: rgb(255 250 242 / 0.12);
  border-color: rgb(255 250 242 / 0.22);
}

.top-gear-button {
  min-width: 94px;
  color: #15140f;
  background: linear-gradient(180deg, #ffe47c 0%, var(--gold) 100%);
  border: 1px solid rgb(255 250 242 / 0.42);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.28);
}

.menu-button,
.icon-button#settingsButton {
  color: #fffaf2;
  background: rgb(255 250 242 / 0.12);
  border: 1px solid rgb(255 250 242 / 0.2);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgb(0 0 0 / 0.2);
}

.main {
  background: transparent;
}

.install-card,
.summary-band,
.filter-panel,
.daily-card,
.detail-card,
.log-card,
.gear-card,
.article-card,
.sameshi-card,
.stay-card,
.contact-card,
.ranking-card,
.faq-panel,
.reference-panel,
.contact-form-panel,
.settings-dialog,
.achievement-card,
.review-item,
.memo-item,
.leaderboard-row,
.business-plan,
.business-value-card {
  color: var(--ink);
  background: rgb(255 250 242 / 0.96);
  border: 1px solid rgb(56 42 26 / 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.summary-band {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 282px;
  padding: 24px;
  color: #fffaf2;
  background-color: var(--night);
  background-image: url("./assets/saincho-header-ritual.webp");
  background-position: center;
  background-size: cover;
  border: 1px solid rgb(255 250 242 / 0.16);
  box-shadow: var(--shadow);
}

.summary-band::before {
  position: absolute;
  inset: 0;
  display: block;
  min-height: auto;
  background:
    linear-gradient(90deg, rgb(7 13 13 / 0.82), rgb(7 13 13 / 0.54) 56%, rgb(7 13 13 / 0.26)),
    linear-gradient(180deg, rgb(7 13 13 / 0.2), rgb(7 13 13 / 0.66));
  content: "";
  filter: none;
  opacity: 1;
}

.summary-band::after {
  display: none;
}

.summary-copy,
.hero-metrics,
.reward-nudge,
.progress-ring {
  position: relative;
  z-index: 1;
}

.summary-copy {
  padding: 0;
}

.summary-label,
.summary-copy span,
.summary-copy p,
.summary-kicker,
.summary-meta,
#collectionScope {
  color: rgb(255 250 242 / 0.82);
}

.summary-copy strong,
.hero-metrics strong,
.reward-pill strong {
  color: #fffaf2;
  font-family: var(--font-display);
  font-weight: 900;
}

#collectionScope {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  background: rgb(255 250 242 / 0.13);
  border: 1px solid rgb(255 250 242 / 0.24);
  border-radius: 999px;
}

.hero-metrics {
  grid-column: 1 / -1;
  padding: 0;
}

.hero-metrics div,
.reward-pill {
  color: #fffaf2;
  background: rgb(8 14 14 / 0.58);
  border: 1px solid rgb(255 250 242 / 0.2);
  border-radius: 8px;
  box-shadow: none;
}

.hero-metrics span,
.reward-pill span,
.reward-pill em {
  color: rgb(255 250 242 / 0.78);
}

.progress-ring {
  color: var(--accent);
  background: rgb(255 250 242 / 0.94);
  border: 5px solid rgb(255 250 242 / 0.42);
  box-shadow: 0 18px 34px rgb(0 0 0 / 0.26);
}

.tool-band {
  top: 8px;
  gap: 10px;
  padding: 10px;
  background: rgb(255 250 242 / 0.92);
  border: 1px solid rgb(56 42 26 / 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgb(23 18 12 / 0.12);
  backdrop-filter: blur(16px) saturate(1.08);
}

.search-box {
  min-height: 54px;
  background: var(--surface-strong);
  border: 1px solid rgb(17 24 23 / 0.18);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.68);
}

.search-box input {
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 700;
}

.search-box input::placeholder {
  color: rgb(82 98 94 / 0.58);
}

.search-clear-button,
.install-dismiss {
  color: var(--ink);
  background: #eef1ec;
  border: 1px solid rgb(17 24 23 / 0.08);
}

.segment {
  background: #dcebe5;
  border: 1px solid rgb(0 135 124 / 0.08);
  border-radius: 8px;
}

.segment button {
  min-height: 42px;
  color: #40514d;
  font-weight: 800;
}

.segment .segment-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 18px rgb(17 24 23 / 0.1);
}

.pref-chip,
.source-row a,
.feature-chip,
.feature-option,
.tag,
.facility-source,
.status-badge {
  color: #334541;
  background: rgb(255 250 242 / 0.94);
  border: 1px solid rgb(56 42 26 / 0.14);
  border-radius: 8px;
  font-weight: 800;
}

.pref-chip-active,
.pref-chip.is-active,
.source-tab.is-active,
.feature-chip.is-selected,
.feature-chip.is-active,
.feature-option.is-selected,
.feature-option:has(input:checked) {
  color: #fffaf2;
  background: var(--primary);
  border-color: var(--primary);
}

.source-row a {
  color: #0d5f58;
  background: rgb(0 135 124 / 0.11);
  border-color: rgb(0 135 124 / 0.22);
}

.seo-answer-panel,
.feature-filter-panel {
  background: rgb(255 250 242 / 0.94);
  border: 1px solid rgb(56 42 26 / 0.14);
  box-shadow: var(--shadow-soft);
}

.quest-card,
.spotlight-card {
  position: relative;
  color: #fffaf2;
  background-color: var(--night);
  background-image:
    linear-gradient(90deg, rgb(8 14 14 / 0.9), rgb(8 14 14 / 0.62) 58%, rgb(8 14 14 / 0.32)),
    url("./assets/saincho-header-ritual.webp");
  background-position: center;
  background-size: cover;
  border: 1px solid rgb(255 250 242 / 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.spotlight-card h3,
.spotlight-card p,
.spotlight-card .spotlight-address,
.quest-copy strong,
.quest-target strong,
.quest-copy em,
.quest-target em {
  color: #fffaf2;
}

.spotlight-label {
  color: #ffe1b7;
  background: rgb(211 72 53 / 0.26);
  border-color: rgb(211 72 53 / 0.38);
}

.spotlight-gear {
  color: var(--ink);
  background: rgb(255 250 242 / 0.94);
  border: 1px solid rgb(255 250 242 / 0.34);
}

.spotlight-gear-head strong,
.spotlight-gear-links strong {
  color: var(--ink);
}

.spotlight-gear-head span,
.spotlight-gear-links span {
  color: var(--gold-deep);
}

.facility-card {
  color: var(--ink);
  background: rgb(255 250 242 / 0.98);
  border: 1px solid rgb(56 42 26 / 0.14);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.facility-card:hover {
  border-color: rgb(0 135 124 / 0.42);
  border-left-color: var(--accent);
  box-shadow: var(--shadow);
}

.facility-card::before {
  display: none;
}

.facility-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
}

.facility-meta,
.facility-address,
.memo-summary,
.card-count,
.panel-copy,
.detail-value,
.review-meta,
.gear-note {
  color: var(--ink-soft);
}

.facility-card .text-link,
.facility-card a,
.memo-add-button,
.note-action {
  color: var(--primary);
}

.tag-row {
  gap: 7px;
}

.tag,
.status-badge,
.visited-badge {
  min-height: 30px;
  padding-inline: 10px;
  color: #40514d;
  background: #eef3ed;
}

.visited-badge {
  color: #fffaf2;
  background: var(--night);
  border-color: var(--night);
}

.primary-button,
.stamp-button,
.add-submit,
.contact-submit-row .primary-button {
  color: #fffaf2;
  background: var(--accent);
  border: 1px solid #b83a29;
  border-radius: 8px;
  box-shadow: 0 12px 22px rgb(211 72 53 / 0.18);
}

.complete-button {
  background: #40514d;
  border-color: #40514d;
  box-shadow: none;
}

.secondary-button,
.ghost-button,
.detail-link,
.favorite-button,
.favorite-wide-button,
.undo-button,
.install-button,
.map-route-button,
.facility-share-button {
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid rgb(56 42 26 / 0.18);
  border-radius: 8px;
}

.map-route-button {
  color: #0b4d47;
  background: #e2f5f1;
  border-color: rgb(0 135 124 / 0.22);
}

.facility-share-button,
.amazon-button {
  color: #fffaf2;
  background: var(--night);
  border-color: var(--night);
}

.favorite-button {
  color: var(--gold-deep);
  background: #fff8df;
  border-color: rgb(241 198 75 / 0.7);
}

.favorite-button.is-active {
  color: #15140f;
  background: var(--gold);
  border-color: var(--gold);
}

.stamp-art {
  color: var(--accent);
  background:
    radial-gradient(circle at center, #fffaf2 0 55%, #fff2e1 100%);
  border: 3px solid currentColor;
  box-shadow: 0 8px 18px rgb(17 24 23 / 0.08);
}

.stamp-art.locked {
  color: #a9b0ad;
  background: #f3f4f1;
  border-color: #cad0cc;
}

.commerce-hero,
.guide-hero,
.sameshi-hero,
.stay-hero,
.contact-hero {
  color: #fffaf2;
  background-color: var(--night);
  background-image:
    linear-gradient(90deg, rgb(8 14 14 / 0.86), rgb(8 14 14 / 0.54)),
    url("./assets/saincho-header-ritual.webp");
  background-position: center;
  background-size: cover;
  border: 1px solid rgb(255 250 242 / 0.14);
  box-shadow: var(--shadow);
}

.commerce-hero h3,
.guide-hero h3,
.sameshi-hero h3,
.stay-hero h3,
.contact-hero h3,
.commerce-hero p,
.guide-hero p,
.sameshi-hero p,
.stay-hero p,
.contact-hero p {
  color: #fffaf2;
}

.commerce-hero span,
.guide-hero span,
.sameshi-hero span,
.stay-hero span,
.contact-hero span {
  color: var(--gold);
}

.gear-card,
.gear-card-full,
.article-card,
.sameshi-card,
.stay-card,
.contact-card {
  background: rgb(255 250 242 / 0.98);
  border: 1px solid rgb(56 42 26 / 0.14);
  box-shadow: var(--shadow-soft);
}

.affiliate-button,
.rakuten-button {
  color: #17140a;
  background: linear-gradient(180deg, #ffe47c, var(--gold));
  border: 1px solid rgb(155 114 23 / 0.32);
}

.bottom-nav {
  color: rgb(255 250 242 / 0.72);
  background: rgb(11 21 20 / 0.96);
  border-top: 1px solid rgb(255 250 242 / 0.12);
  box-shadow: 0 -18px 36px rgb(0 0 0 / 0.24);
}

.bottom-nav button {
  color: rgb(255 250 242 / 0.72);
}

.bottom-nav .nav-active {
  color: #fffaf2;
  background: rgb(211 72 53 / 0.22);
}

.bottom-nav .nav-active svg,
.bottom-nav button:hover svg {
  color: #fffaf2;
}

.settings-dialog[open],
.achievement-card {
  color: var(--ink);
  background: var(--surface);
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .topbar {
    min-height: 124px;
    padding: calc(14px + env(safe-area-inset-top)) 14px 14px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .topbar .brand-name {
    font-size: clamp(30px, 8vw, 38px);
  }

  .topbar-promise {
    gap: 5px;
    margin-top: 7px;
  }

  .topbar-promise span {
    min-height: 22px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .topbar-promise span:nth-child(3) {
    display: none;
  }

  .top-gear-button {
    min-width: 76px;
    min-height: 50px;
  }

  .menu-button,
  .icon-button#settingsButton {
    width: 50px;
    height: 50px;
  }

  .main {
    padding: 12px 12px calc(var(--nav-height) + 18px);
  }

  .install-card {
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 10px;
  }

  .summary-band {
    min-height: 268px;
    padding: 18px 16px;
  }

  .summary-copy strong {
    font-size: clamp(46px, 14vw, 64px);
    line-height: 0.95;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-metrics div,
  .reward-pill {
    min-height: 64px;
    padding: 10px;
  }

  .tool-band {
    top: 6px;
    margin-inline: -2px;
  }

  .search-box {
    min-height: 58px;
  }

  .segment {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .segment button {
    min-height: 48px;
    font-size: 13px;
  }

  .spotlight-card,
  .facility-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px 14px;
  }

  .spotlight-card .stamp-art {
    width: 76px;
    justify-self: end;
    grid-column: 1;
    grid-row: 1;
  }

  .facility-card > .stamp-art {
    position: absolute;
    top: 16px;
    right: 14px;
    width: 76px;
  }

  .facility-card .card-head,
  .facility-card .facility-meta,
  .facility-card .facility-address,
  .facility-card .tag-row {
    padding-right: 88px;
  }

  .facility-name {
    font-size: clamp(24px, 6.6vw, 32px);
    line-height: 1.18;
  }

  .facility-address {
    font-size: 14px;
    line-height: 1.5;
  }

  .card-actions,
  .facility-utility-actions,
  .spotlight-actions {
    gap: 8px;
  }

  .spotlight-gear {
    padding: 10px;
  }

  .spotlight-gear-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .spotlight-gear-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .spotlight-gear-links article {
    gap: 6px;
    padding: 9px;
  }

  .spotlight-gear-links strong {
    font-size: 12px;
    line-height: 1.28;
  }

  .spotlight-gear-links div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .spotlight-gear-links a {
    min-height: 32px;
    font-size: 12px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button,
  .map-route-button,
  .facility-share-button,
  .favorite-wide-button,
  .undo-button {
    min-height: 52px;
    font-size: 16px;
  }

  .bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 761px) {
  .bottom-nav {
    border: 1px solid rgb(255 250 242 / 0.12);
    border-radius: 8px;
  }
}

@media (max-width: 760px) {
  .summary-band {
    grid-template-columns: minmax(0, 1fr) 74px;
    min-height: 268px;
    padding: 14px;
  }

  .summary-copy {
    min-height: 112px;
  }

  .hero-metrics div,
  .reward-pill {
    min-height: 54px;
  }
}

/* Trust, methodology, and correction surfaces */
.detail-trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-left: 4px solid var(--gold);
}

.detail-trust-panel h3,
.detail-trust-panel p {
  margin: 0;
}

.detail-trust-panel h3 {
  margin-bottom: 6px;
}

.detail-trust-panel p:last-child {
  color: var(--muted);
  line-height: 1.65;
}

.detail-trust-actions {
  display: grid;
  min-width: 220px;
  gap: 10px;
}

.detail-trust-actions .source-badge {
  justify-content: center;
  min-height: 44px;
}

.about-shell {
  display: grid;
  gap: 16px;
}

.about-hero {
  position: relative;
  min-height: 210px;
  padding: 28px;
  overflow: hidden;
  color: #fffaf2;
  background:
    linear-gradient(90deg, rgb(7 16 15 / 0.96), rgb(7 16 15 / 0.7)),
    url("./assets/saincho-header-ritual.webp") center / cover;
  border: 1px solid rgb(255 250 242 / 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-deep);
}

.about-hero span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.about-hero h3 {
  max-width: 760px;
  margin: 8px 0 10px;
  color: #fffaf2;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.25;
}

.about-hero p {
  max-width: 760px;
  margin: 0;
  color: rgb(255 250 242 / 0.82);
  line-height: 1.75;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.about-metrics article {
  display: grid;
  min-height: 118px;
  align-content: center;
  padding: 16px;
  color: #fffaf2;
  background: var(--night);
  border: 1px solid rgb(255 250 242 / 0.1);
  border-radius: 8px;
}

.about-metrics span,
.about-metrics em {
  color: rgb(255 250 242 / 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.about-metrics strong {
  color: #fffaf2;
  font-family: var(--font-latin);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}

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

.about-card {
  padding: 22px;
  background: rgb(255 250 242 / 0.98);
  border: 1px solid rgb(56 42 26 / 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.about-card-wide {
  grid-column: 1 / -1;
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.about-card p,
.about-card ol {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.about-card ol {
  padding-left: 1.4em;
  margin-bottom: 12px;
}

.about-card .secondary-button {
  width: 100%;
  margin-top: 16px;
}

.about-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.about-inline-stats span {
  padding: 7px 10px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

/* Location, community, and action hierarchy */
:root {
  --stamp: #d4432f;
  --stamp-dark: #a92d20;
  --wishlist: #087a73;
  --route: #176b87;
  --share: #4757a6;
  --favorite: #b57912;
}

.primary-button,
.stamp-button,
.facility-card [data-action="stamp"] {
  color: #fff;
  background: var(--stamp);
  border-color: var(--stamp);
  box-shadow: 0 8px 18px rgb(212 67 47 / 0.22);
}

.primary-button:hover:not(:disabled),
.facility-card [data-action="stamp"]:hover:not(:disabled) {
  background: var(--stamp-dark);
}

.secondary-button,
.facility-card [data-action="wishlist"] {
  color: #075d58;
  background: #e8f5f2;
  border: 1px solid #9bd1ca;
}

.secondary-button.is-active,
.facility-card [data-action="wishlist"].is-active {
  color: #fff;
  background: var(--wishlist);
  border-color: var(--wishlist);
}

.map-route-button {
  color: #0d5268;
  background: #e6f4f8;
  border: 1px solid #91c5d4;
}

.sameshi-map-button {
  color: #fff;
  background: #c74f2f;
}

.facility-native-share-button,
.facility-share-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
}

.facility-native-share-button {
  color: #fff;
  background: var(--share);
}

.facility-share-button {
  color: #fff;
  background: #111719;
}

.favorite-wide-button,
.favorite-button {
  color: #755009;
  background: #fff8e5;
  border-color: #e5c36f;
}

.favorite-wide-button.is-active,
.favorite-button.is-active {
  color: #fff;
  background: var(--favorite);
  border-color: var(--favorite);
}

.detail-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lodging-search-card a {
  min-width: 0;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0;
}

.area-shortcut {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.area-shortcut button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 66px;
  align-items: center;
  padding: 12px 14px;
  color: var(--ink);
  background: rgb(255 253 247 / 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  box-shadow: var(--shadow);
}

.area-shortcut button > span:first-child {
  color: var(--wishlist);
  font-size: 12px;
  font-weight: 900;
}

.area-shortcut button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.area-shortcut button > span:last-child,
.area-shortcut button > em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.nearby-result {
  grid-column: 1 / -1;
  display: none;
  gap: 8px;
}

.nearby-result:not(:empty) {
  display: grid;
}

.nearby-result > button {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.nearby-result > button strong,
.nearby-result > button span,
.nearby-result > button em {
  display: block;
}

.nearby-result > button span {
  color: var(--route);
  font-weight: 900;
}

.nearby-result > button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.checkin-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-left: 4px solid var(--route);
}

.checkin-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkin-button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--route);
  border-radius: 8px;
  font-weight: 900;
}

.checkin-unavailable {
  border-left-color: #a7aaa8;
}

.checkin-complete {
  border-left-color: var(--favorite);
}

.checkin-panel.is-active {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.5fr) auto;
}

.checkin-meter {
  display: grid;
  gap: 6px;
}

.checkin-meter > div {
  height: 8px;
  overflow: hidden;
  background: #dbe7e5;
  border-radius: 999px;
}

.checkin-progress-fill {
  display: block;
  height: 100%;
  background: var(--route);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.checkin-meter strong {
  color: var(--route);
  font-size: 12px;
  text-align: right;
}

.japan-progress-panel,
.community-list-panel,
.community-form-panel {
  padding: 18px;
  background: rgb(255 253 247 / 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.japan-map {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
  background: #eef4f0;
  border: 1px solid #d4e0da;
  border-radius: 8px;
}

.japan-map svg {
  display: block;
  width: min(100%, 700px);
  max-height: 480px;
}

.japan-map .prefecture {
  cursor: pointer;
  outline: none;
}

.japan-map .prefecture path,
.japan-map .prefecture polygon {
  stroke: #fffaf2;
  stroke-width: 1.2;
  transition: filter 0.18s ease, fill 0.18s ease;
}

.japan-map .map-progress-0 path,
.japan-map .map-progress-0 polygon { fill: #cdd8d2 !important; }
.japan-map .map-progress-1 path,
.japan-map .map-progress-1 polygon { fill: #6bb9ad !important; }
.japan-map .map-progress-2 path,
.japan-map .map-progress-2 polygon { fill: #087a73 !important; }
.japan-map .map-progress-3 path,
.japan-map .map-progress-3 polygon { fill: #b57912 !important; }

.japan-map .prefecture:hover path,
.japan-map .prefecture:hover polygon,
.japan-map .prefecture:focus-visible path,
.japan-map .prefecture:focus-visible polygon {
  filter: brightness(0.86);
}

.map-loading,
.community-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  color: var(--muted);
  text-align: center;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.map-level-0 { background: #cdd8d2; }
.map-level-1 { background: #6bb9ad; }
.map-level-2 { background: #087a73; }
.map-level-3 { background: #b57912; }

.map-attribution {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.meal-photo {
  background-image: url("./assets/sameshi-sprite-v1.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

.meal-photo-ramen { background-position: 0 0; }
.meal-photo-curry { background-position: 50% 0; }
.meal-photo-teishoku { background-position: 100% 0; }
.meal-photo-hotpot { background-position: 0 100%; }
.meal-photo-meat { background-position: 50% 100%; }
.meal-photo-cafe { background-position: 100% 100%; }
.meal-photo-don,
.meal-photo-friedrice,
.meal-photo-gyoza { background-position: 50% 100%; }
.meal-photo-pasta { background-position: 100% 100%; }

.meal-photo::after {
  background: linear-gradient(180deg, transparent 55%, rgb(7 16 15 / 0.48));
}

.community-hero {
  min-height: 210px;
  padding: 26px;
  color: #fff;
  background:
    linear-gradient(90deg, rgb(7 26 24 / 0.96), rgb(7 26 24 / 0.64)),
    url("./assets/saincho-header-ritual.webp") center / cover;
  border-radius: 8px;
  box-shadow: var(--shadow-deep);
}

.community-hero > span {
  color: #f5c94e;
  font-size: 12px;
  font-weight: 900;
}

.community-hero h3 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: clamp(26px, 4vw, 40px);
}

.community-hero p {
  max-width: 700px;
  margin: 0;
  color: rgb(255 255 255 / 0.8);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
}

.community-filter {
  display: flex;
  gap: 7px;
  margin: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.community-filter::-webkit-scrollbar { display: none; }

.community-list,
.community-form {
  display: grid;
  gap: 10px;
}

.community-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7fbf8;
  border: 1px solid #d5e4dd;
  border-radius: 8px;
}

.community-date {
  display: grid;
  place-items: center;
  min-height: 72px;
  color: #fff;
  background: var(--wishlist);
  border-radius: 8px;
  text-align: center;
}

.community-date strong,
.community-date span { display: block; }
.community-date strong { font-size: 13px; }
.community-date span { font-size: 12px; }

.community-copy { min-width: 0; }
.community-copy h3 { margin: 2px 0; font-size: 17px; }
.community-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.community-host { color: var(--wishlist); font-size: 12px; font-weight: 900; }
.community-participation { display: grid; gap: 7px; text-align: center; }
.community-participation span { color: var(--muted); font-size: 12px; font-weight: 800; }

.community-form label,
.menu-select-row {
  display: grid;
  gap: 5px;
}

.community-form label > span,
.menu-select-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.community-form input,
.community-form select,
.community-form textarea,
.menu-select-row select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.community-form textarea { resize: vertical; }
.community-form-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
.community-status { min-height: 1.5em; margin: 0; color: var(--wishlist); font-size: 12px; font-weight: 800; }
.community-status.is-error { color: var(--stamp-dark); }

.settings-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: min(780px, calc(100dvh - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-group {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.menu-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.menu-actions-grid button,
.menu-location-button {
  min-height: 44px;
  padding: 8px 10px;
  color: #143b37;
  background: #ecf5f1;
  border: 1px solid #d3e8df;
  border-radius: 8px;
  font-weight: 800;
  text-align: left;
}

.menu-area-group {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.menu-area-group h3,
.menu-area-group .menu-location-button {
  grid-column: 1 / -1;
}

.menu-area-group .toggle-row {
  margin: 0;
}

.menu-vibration-row { margin: 8px 0; }

@media (max-width: 760px) {
  .area-shortcut,
  .community-layout,
  .community-form-grid,
  .menu-area-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-area-group h3,
  .menu-area-group .menu-location-button {
    grid-column: auto;
  }

  .area-shortcut button {
    min-height: 58px;
  }

  .detail-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-action-grid .facility-native-share-button,
  .detail-action-grid .facility-share-button,
  .detail-action-grid .undo-button {
    grid-column: auto;
  }

  .lodging-search-card > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lodging-search-card a {
    min-height: 40px;
    padding: 0 4px;
    font-size: 12px;
  }

  .checkin-panel,
  .checkin-panel.is-active {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkin-meter strong { text-align: left; }

  .japan-progress-panel,
  .community-list-panel,
  .community-form-panel {
    padding: 14px;
  }

  .japan-map {
    min-height: 300px;
    padding: 6px;
  }

  .community-hero {
    min-height: 240px;
    padding: 22px 18px;
  }

  .community-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .community-participation {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .settings-dialog[open] {
    inset: env(safe-area-inset-top) 0 calc(var(--nav-height) + env(safe-area-inset-bottom)) auto;
    width: min(88vw, 360px);
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 14px 16px 20px;
    border-radius: 8px 0 0 8px;
  }

  .meal-photo {
    height: 112px;
  }
}

@media (max-width: 760px) {
  .detail-trust-panel,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-trust-actions {
    min-width: 0;
  }

  .about-hero {
    min-height: 250px;
    padding: 22px 18px;
  }

  .about-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-metrics article {
    min-height: 104px;
    padding: 14px;
  }

  .about-card-wide {
    grid-column: auto;
  }

  .about-card {
    padding: 18px;
  }
}

/* Final authoritative overrides for the stability/type pass. */
.facility-name,
.spotlight-card h3,
.facility-detail-copy h2,
.sameshi-body h3,
.stay-card h3,
.community-copy h3 {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-wrap: pretty;
}

.facility-name {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.32;
}

.facility-meta,
.facility-address,
.sameshi-body p,
.stay-card p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.spotlight-title-row h3 {
  font-size: 22px;
  font-weight: 750;
  line-height: 1.27;
}

.facility-detail-copy h2 {
  font-size: 36px;
  font-weight: 750;
  line-height: 1.18;
}

.facility-detail-copy h2.is-long {
  font-size: 30px;
  line-height: 1.22;
}

.sameshi-body h3,
.stay-card h3 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.settings-dialog,
.settings-dialog[open] {
  position: fixed;
  inset: 16px 16px 16px auto;
  z-index: 110;
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.settings-dialog { display: none; }
.settings-dialog[open] { display: block; }

@media (max-width: 760px) {
  .facility-name {
    font-size: 18px;
    line-height: 1.34;
  }

  .spotlight-title-row h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  .facility-detail-copy h2 {
    font-size: 26px;
    line-height: 1.22;
  }

  .facility-detail-copy h2.is-long {
    font-size: 22px;
    line-height: 1.3;
  }

  .sameshi-body h3 {
    font-size: 18px;
    line-height: 1.34;
  }

  .settings-dialog,
  .settings-dialog[open] {
    inset: max(env(safe-area-inset-top), 8px) 0 calc(var(--nav-height) + env(safe-area-inset-bottom)) auto;
    width: min(90vw, 380px);
    height: auto;
    max-height: calc(100dvh - var(--nav-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8px);
    padding: 16px;
    border-right: 0;
    border-radius: 8px 0 0 8px;
  }
}

/* Final authority: young editorial UI, commerce visuals, and narrow-screen fixes. */
:root {
  --paper: #f3f1ea;
  --washi: #e8eee9;
  --ink: #111817;
  --ink-soft: #596763;
  --line: #ced9d3;
  --primary: #006d64;
  --primary-soft: #e0f1ed;
  --accent: #b73528;
  --accent-soft: #ffebe6;
  --gold: #f0c84b;
  --stamp: #b73528;
  --stamp-dark: #b93225;
  --wishlist: #006d64;
  --share: #344840;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

body { color: var(--ink); background: #e6ece7; }

.primary-button,
.card-actions .primary-button {
  color: #fff;
  background: var(--stamp);
  border-color: var(--stamp);
  box-shadow: 0 8px 18px rgb(231 72 52 / 0.2);
}

.secondary-button,
.card-actions .secondary-button {
  color: #075d57;
  background: #e5f4f0;
  border-color: #a9d8d1;
}

.secondary-button.is-active,
.card-actions .secondary-button.is-active {
  color: #fff;
  background: var(--wishlist);
  border-color: var(--wishlist);
}

.facility-native-share-button,
.facility-share-button,
.facility-review-button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.facility-native-share-button { color: #fff; background: var(--share); }
.facility-share-button { color: #fff; background: #111817; border-color: #111817; }
.facility-review-button { color: #17201e; background: #f5d661; border: 1px solid #d4ad29; }

.facility-social-pair {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.review-panel { scroll-margin-top: 16px; }
.review-panel:focus-visible { outline: 3px solid #f0c84b; outline-offset: 3px; }

.community-form-grid,
.community-form-grid > label,
.community-form-grid input,
.community-form-grid select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.community-form input[type="datetime-local"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.community-form input[type="datetime-local"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.nearby-notification-row > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.nearby-notification-row strong,
.nearby-notification-row small { white-space: nowrap; }
.nearby-notification-row small { color: var(--muted); font-size: 12px; font-weight: 700; }
.nearby-notification-row input { flex: 0 0 24px; }

.sameshi-body { min-width: 0; overflow: hidden; }
.sameshi-card .card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.sameshi-card .facility-name { min-width: 0; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; }
.sameshi-card .source-badge { flex: 0 0 auto; max-width: 72px; white-space: nowrap; }

.commerce-hero {
  position: relative;
  min-height: 230px;
  justify-content: end;
  overflow: hidden;
  background-image: url("./assets/saincho-gear-editorial-v1.jpg");
  background-position: center 47%;
  background-size: cover;
  isolation: isolate;
}

.commerce-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgb(9 16 15 / 0.68);
}

.commerce-hero > * { position: relative; max-width: 720px; }

.shop-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 10px;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid #d3ddd7;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(17 24 23 / 0.07);
}

.gear-card-visual {
  position: relative;
  grid-row: 1 / span 2;
  width: 112px;
  height: 112px;
  overflow: hidden;
  background-image: url("./assets/saincho-gear-editorial-v1.jpg");
  background-repeat: no-repeat;
  background-size: 260% auto;
  border-radius: 8px;
}

.gear-card-visual span {
  position: absolute;
  z-index: 1;
  left: 7px;
  bottom: 7px;
  max-width: calc(100% - 14px);
  min-height: 23px;
  padding: 4px 7px;
  color: #fff;
  background: rgb(10 17 16 / 0.82);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.gear-card-visual-hydration { background-position: 70% 42%; }
.gear-card-visual-textile { background-position: 25% 20%; }
.gear-card-visual-mat { background-position: 18% 72%; }
.gear-card-visual-bag { background-position: 75% 18%; }
.gear-card-visual-care { background-position: 53% 66%; }
.gear-card-visual-timer { background-position: 42% 88%; }
.gear-card-visual-kit { background-position: 50% 50%; }

.gear-card-copy { display: grid; min-width: 0; gap: 6px; }
.gear-card-copy h4,
.gear-card-copy p,
.gear-card-copy em { margin: 0; }
.gear-card-copy h4 { color: var(--ink); font-size: 16px; line-height: 1.3; }
.gear-card-copy p,
.gear-card-copy em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; line-height: 1.45; }
.shop-card-actions { grid-column: 2; margin-top: 0; }
.shop-card-actions a:first-child { background: #111817; }
.shop-card-actions a:last-child { color: #17201e; background: #f5d661; }

@media (max-width: 760px) {
  .community-form-grid { width: 100%; overflow: hidden; }
  .community-form input[type="datetime-local"] { font-size: 16px; }
  .nearby-notification-row { gap: 8px; padding-inline: 10px; }
  .nearby-notification-row > span { gap: 6px; }
  .nearby-notification-row strong { font-size: 14px; }
  .nearby-notification-row small { font-size: 12px; }
  .facility-card .facility-social-pair,
  .detail-action-grid .facility-social-pair { grid-column: 1 / -1; }
  .commerce-hero { min-height: 250px; padding: 20px 18px; background-position: 44% center; }
  .commerce-hero h3 { font-size: 24px; line-height: 1.22; }
  .shop-card { grid-template-columns: 92px minmax(0, 1fr); padding: 10px; }
  .gear-card-visual { width: 92px; height: 104px; }
  .shop-card-actions { grid-column: 1 / -1; }
  .sameshi-card .facility-name { font-size: 17px; line-height: 1.3; }
  .sameshi-card .source-badge { max-width: 58px; padding-inline: 7px; font-size: 12px; }
}

@media (max-width: 390px) {
  .nearby-notification-row small { display: inline; font-size: 12px; }
  .sameshi-card { grid-template-columns: 88px minmax(0, 1fr); gap: 9px; }
  .meal-photo { height: 104px; }
}

@media (max-width: 360px) {
  .install-card {
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
  }

  .install-card img {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
  }

  .install-card div {
    grid-column: 2;
    grid-row: 1;
  }

  .install-card strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .install-card span {
    font-size: 12px;
    line-height: 1.25;
  }

  .install-dismiss {
    grid-column: 3;
    grid-row: 1;
  }

  .install-button {
    grid-column: 2 / 4;
    grid-row: 2;
    width: 100%;
    min-height: 36px;
  }
}

/* Search and registration remain the primary tasks on small screens. */
.search-results-status { margin: 12px 0 8px; color: #425551; font-size: 13px; font-weight: 600; }
.form-help { margin: 12px 0 0; color: #425551; font-size: 13px; line-height: 1.65; }
.form-help.is-error { color: #9b2b22; }
.review-form > label, .profile-form > label { min-width: 0; }
.review-form input, .review-form select, .review-form textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; }
.review-form .form-help { grid-column: 1 / -1; }
.review-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.review-form .review-text-label, .review-form > button { grid-column: 1 / -1; }
.profile-form button:disabled, .review-form button:disabled { cursor: wait; opacity: .65; }
.is-article .summary-band, .is-article .view { display: none; }
.is-article #ssrContent {
  display: grid;
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 12px;
  padding: 14px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
@media (max-width: 760px) {
  .review-form { grid-template-columns: minmax(0, 1fr); }
  .topbar { min-height: 90px; padding-block: 12px; }
  .topbar .brand-name { font-size: 27px; line-height: 1.2; }
  .topbar-promise { display: none; }
  .brand-mark { width: 44px; height: 44px; }
  .topbar .eyebrow { font-size: 12px; }
  .top-gear-button { min-width: 58px; min-height: 44px; }
  .icon-button#settingsButton { width: 44px; height: 44px; }
  .view-explore .summary-band { min-height: 0; padding: 14px; gap: 10px; }
  .view-explore .summary-copy { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
  .view-explore .summary-label { font-size: 12px; grid-column: 1; }
  .view-explore .summary-copy strong { grid-row: 2 / 4; grid-column: 1; font-size: 34px; }
  .view-explore #nextMilestone, .view-explore #collectionScope { grid-column: 2; font-size: 12px; }
  .view-explore .progress-ring { width: 48px; height: 48px; border-width: 3px; font-size: 12px; }
  .view-explore .hero-metrics { display: none; }
  .view-explore .reward-nudge { gap: 6px; }
  .view-explore .reward-pill { min-height: 0; padding: 6px 8px; }
  .view-explore .reward-pill span, .view-explore .reward-pill em { font-size: 12px; }
  .view-explore .reward-pill strong { font-size: 13px; }
  body:not(.view-explore) .summary-band, body:not(.view-explore) .install-card { display: none; }
  .tool-band { backdrop-filter: none; background: #f6faf8; box-shadow: 0 2px 8px rgb(17 24 23 / .08); }
  .search-box input { font-weight: 500; }
  .search-box input::placeholder { color: #667871; font-size: 14px; }
  .profile-panel, .leaderboard-panel { scroll-margin-top: 12px; }
  .nearby-notification-row > span { flex-wrap: wrap; row-gap: 3px; }
  .nearby-notification-row small { font-size: 12px; }
}

/* Search-first layout and action hierarchy. */
.explore-title { margin: 0 0 8px; font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: 0; }
.view-explore .tool-band { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; top: 0; padding: 0 0 8px; border: 0; border-radius: 0; background: #f3f7f5; box-shadow: none; backdrop-filter: none; }
.search-form { display: grid; grid-template-columns: minmax(0,1fr) 64px; gap: 8px; margin: 0; min-width: 0; }
.search-form .search-box { min-height: 48px; margin: 0; border: 1px solid #607d70; background: #fff; box-shadow: none; }
.search-form .search-box input { min-width: 0; width: 100%; padding: 0; color: #172b25; background: transparent; border: 0; outline: 0; box-shadow: none; font: inherit; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.search-form .search-box input::placeholder { color: #52665c; font-size: 14px; }
.search-box:focus-within { outline: 2px solid #2462af; outline-offset: 2px; }
.search-clear-button { width: 44px; height: 44px; flex: 0 0 44px; }
.search-submit-button, .facility-detail-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; color: #fff; background: #006d64; border: 1px solid #006d64; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 650; letter-spacing: 0; cursor: pointer; }
.search-submit-button:disabled { opacity: .7; cursor: wait; }
.tool-band .segment { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 4px; min-width: 0; border: 1px solid #607d70; background: #e8f0eb; }
.tool-band .segment button { min-width: 0; min-height: 44px; padding: 4px; color: #304e40; font-size: 13px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.tool-band .segment .segment-active { color: #fff; background: #006d64; box-shadow: none; }
.search-refiners { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; min-width: 0; }
.search-prefecture-label { display: block; min-width: 0; }
.search-prefecture-label select, .feature-filter-toggle { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; color: #244537; background: #fff; border: 1px solid #607d70; border-radius: 6px; font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0; }
.feature-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.feature-filter-toggle strong { font-size: 13px; font-weight: 500; }
.feature-filter-toggle[aria-expanded="true"] { border-color: #006d64; background: #e7f3ee; }
#featureFilterPanel[hidden], #prefStrip[hidden] { display: none; }
#featureFilterPanel { margin: 0; padding: 10px; border: 1px solid #8da49a; border-radius: 6px; background: #fff; }
#featureFilterPanel .feature-filter-grid { max-height: max(44px, min(220px, calc(100dvh - 580px))); overflow-y: auto; overscroll-behavior: contain; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
#featureFilterPanel .feature-chip { min-height: 44px; padding: 8px; border-color: #607d70; font-size: 13px; line-height: 1.35; letter-spacing: 0; }
#featureFilterApply { width: 100%; margin-top: 10px; }
.view-explore .area-shortcut { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 8px 0; }
.view-explore .area-shortcut button { display: flex; justify-content: center; min-width: 0; min-height: 44px; padding: 8px; color: #244537; border-color: #607d70; background: #fff; box-shadow: none; }
.view-explore .area-shortcut button > span, .view-explore .area-shortcut button > em { display: none; }
.view-explore .area-shortcut button strong { font-size: 14px; font-weight: 600; }
.explore-extras { margin: 8px 0; border-block: 1px solid #b8cbc1; }
.explore-extras > summary { min-height: 44px; padding: 10px 4px; color: #3c5749; font-size: 14px; line-height: 24px; cursor: pointer; }
.explore-extras-content { display: grid; gap: 12px; padding-block: 12px; min-width: 0; }
.view-explore.has-search-query .area-shortcut, .view-explore.has-search-query .explore-extras { display: none; }
.view-explore .search-results-status { margin: 8px 0; min-height: 20px; color: #3c5749; font-size: 13px; line-height: 20px; }
.view-explore .facility-list { grid-template-columns: minmax(0,1fr); gap: 10px; }
.facility-card { display: block; min-width: 0; padding: 12px; border: 1px solid #b8cbc1; background: #fff; box-shadow: none; }
.facility-card:hover { transform: none; border-color: #438578; box-shadow: 0 2px 8px rgb(20 48 36 / .08); }
.facility-card > .stamp-art { position: absolute; top: 12px; left: 12px; right: auto; width: 44px; height: 44px; border-width: 2px; }
.facility-card > .stamp-art .stamp-kanji { font-size: 22px; }
.facility-card .card-body { display: grid; gap: 8px; min-width: 0; }
.facility-card .card-head { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px; min-height: 44px; align-items: start; padding: 0 0 0 56px; }
.facility-card .facility-name { min-width: 0; max-width: 100%; margin: 0; padding: 0; color: #172b25; font-family: var(--font-body); font-size: 17px; line-height: 1.4; font-weight: 650; letter-spacing: 0; overflow-wrap: break-word; line-break: strict; }
.facility-card .card-head-actions { padding: 0; }
.facility-card .facility-meta { margin: 0; padding: 0; color: #52665c; font-size: 13px; line-height: 20px; font-weight: 500; }
.facility-card .facility-address { display: flex; gap: 4px; margin: 0; padding: 0; color: #52665c; font-size: 12px; line-height: 18px; font-weight: 400; }
.facility-card .facility-address > span:last-child { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.facility-card .facility-address .map-route-icon { width: 14px; height: 16px; flex: 0 0 14px; }
.facility-card .facility-utility-actions { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; }
.facility-card .facility-utility-actions > * { min-width: 0; width: 100%; min-height: 44px; padding: 6px; font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.facility-card .card-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
.facility-card .card-actions > * { min-width: 0; min-height: 44px; padding: 6px; font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.card-evidence { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.card-evidence .tag { font-size: 12px; line-height: 18px; padding: 2px 6px; }
.card-evidence .source-badge-group { display: contents; }
.card-evidence a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; padding: 6px 8px; font-size: 12px; }
.facility-card .source-badge-official { color: #fff; background: #006d64; letter-spacing: 0; }
.card-more-actions { border-top: 1px solid #d4e0d8; }
.card-more-actions > summary { min-height: 44px; padding: 10px 0; color: #3c5749; font-size: 13px; line-height: 24px; cursor: pointer; }
.card-more-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-bottom: 4px; }
.card-more-body .memo-panel { grid-column: 1 / -1; margin: 0; }
.facility-card .stamp-outline-button { min-height: 44px; color: #9b2e23; background: #fff8f5; border: 1px solid #b85e52; border-radius: 6px; box-shadow: none; font: inherit; cursor: pointer; }
.facility-card .stamp-outline-button:hover:not(:disabled) { color: #fff; background: #9b2e23; border-color: #9b2e23; }
.secondary-button, .card-actions .secondary-button { color: #00685e; background: #fff; border-color: #4e8c82; box-shadow: none; }
.secondary-button.is-active, .card-actions .secondary-button.is-active { color: #fff; background: #006d64; border-color: #006d64; }
.primary-button, .card-actions .primary-button { color: #fff; background: #b73528; border-color: #b73528; box-shadow: none; }
.primary-button.complete-button, .facility-card .stamp-outline-button:disabled { color: #4b5d54; background: #e9efeb; border-color: #b8cbc1; opacity: 1; }
.map-route-button { color: #245244; background: #edf5f0; border-color: #547e71; box-shadow: none; }
.facility-native-share-button, .facility-review-button { color: #244537; background: #fff; border: 1px solid #607d70; box-shadow: none; }
.facility-share-button { color: #fff; background: #17211d; border-color: #17211d; box-shadow: none; }
.favorite-button, .favorite-button-compact { width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; color: #7b5400; background: #fff9e7; border-color: #94711f; box-shadow: none; }
.favorite-wide-button { min-height: 44px; color: #7b5400; background: #fff9e7; border-color: #94711f; box-shadow: none; }
.favorite-button.is-active, .favorite-wide-button.is-active { color: #704900; background: #ffedba; border-color: #9a741e; }
.undo-button { color: #992b22; background: #fff4f0; border-color: #b85e52; box-shadow: none; }
.sameshi-map-button { color: #755000; background: #fff6dd; border-color: #94711f; box-shadow: none; }
.mini-button { color: #fff; background: #006d64; border-color: #006d64; }
.facility-detail-button:hover, .search-submit-button:hover { background: #00594f; border-color: #00594f; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, .search-results-status:focus-visible { outline: 2px solid #2462af; outline-offset: 3px; }
.detail-action-grid { gap: 8px; }
.detail-action-grid > button, .detail-action-grid > a, .detail-action-grid .facility-social-pair > button { min-height: 48px; padding: 8px; font-size: 15px; line-height: 1.4; letter-spacing: 0; }
@media (min-width: 1100px) {
  .view-explore .tool-band { grid-template-columns: minmax(0,1fr) 390px; }
  .search-refiners { grid-template-columns: 240px 200px; grid-column: 1 / -1; }
  #featureFilterPanel { grid-column: 1 / -1; }
  .view-explore .facility-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .topbar { min-height: 76px; padding-block: 10px; }
  .main { padding-top: 12px; }
  .view-explore .tool-band { position: static; }
  .explore-title { font-size: 17px; }
  .tool-band .segment button { font-size: 12px; }
  .facility-card .facility-social-pair { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .facility-card > .stamp-art { width: 32px; height: 32px; }
  .facility-card > .stamp-art .stamp-kanji { font-size: 16px; }
  .facility-card .card-head { padding-left: 40px; }
  .facility-card .facility-name { font-size: 16px; }
}

/* Facility workspace: one primary action, direct views, one private-first composer. */
.facility-workspace { gap: 12px; width: 100%; max-width: 880px; min-width: 0; margin-inline: auto; color: #172b25; }
.view-facility .main { background: #f7faf8; }
.view-facility .topbar, .view-facility .bottom-nav { box-shadow: none; }
.facility-workspace .back-button { min-height: 44px; font-size: 13px; font-weight: 500; }
.facility-masthead { display: grid; grid-template-columns: 48px minmax(0,1fr) 44px; align-items: center; gap: 10px; }
.facility-masthead .stamp-art { position: static; width: 48px; height: 48px; margin: 0; border-width: 2px; }
.facility-masthead .stamp-kanji { font-size: 24px; }
.facility-masthead h2 { margin: 0; color: #172b25; font-family: var(--font-body); font-size: 22px; line-height: 1.45; font-weight: 650; letter-spacing: 0; overflow-wrap: anywhere; }
.facility-masthead p { margin: 4px 0 0; color: #52665c; font-size: 13px; line-height: 1.5; }
.facility-primary-actions { display: grid; grid-template-columns: minmax(0,1.3fr) repeat(2,minmax(0,1fr)); gap: 8px; }
.facility-primary-actions > * { width: 100%; min-width: 0; min-height: 44px; padding: 8px; font-size: 14px; }
.facility-stamp-action { color: #245244; background: #fff; border: 1px solid #8da49a; border-radius: 6px; font: inherit; font-weight: 550; cursor: pointer; }
.facility-stamp-action:disabled { opacity: 1; color: #52665c; background: #e9efeb; }
.facility-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid #afc3b7; }
.facility-tabs button { min-width: 0; min-height: 44px; padding: 8px 4px; color: #52665c; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; font-family: inherit; font-size: 14px; font-weight: 550; letter-spacing: 0; cursor: pointer; }
.facility-tabs button[aria-current="page"] { color: #00594f; border-bottom-color: #006d64; }
.facility-workspace [hidden] { display: none !important; }
.facility-pane { min-width: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.facility-facts, .card-facts { display: grid; gap: 0; margin: 0; }
.facility-facts > div { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #d4e0d8; }
.facility-facts dt { color: #52665c; font-size: 13px; font-weight: 550; }
.facility-facts dd { margin: 0; color: #172b25; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; font-weight: 400; }
.facility-facts a { display: inline-block; color: #00685e; font-size: 12px; text-underline-offset: 3px; padding: 4px; }
.address-checked { display: block; color: #52665c; font-size: 12px; font-weight: 400; }
.facility-provenance, .notebook-privacy { margin: 8px 0; color: #52665c; font-size: 12px; line-height: 1.7; }
.facility-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facility-inline-actions a, .facility-inline-actions button, .notebook-head button { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 8px; color: #245244; border: 0; border-radius: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.facility-disclosure { min-width: 0; border-block-start: 1px solid #b8cbc1; }
.facility-disclosure > summary { min-height: 44px; padding: 10px 0; color: #3c5749; font-size: 13px; line-height: 24px; cursor: pointer; }
.facility-disclosure p { margin: 8px 0; color: #52665c; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.collection-preview { display: block; width: 100%; height: auto; aspect-ratio: 12 / 7; object-fit: contain; }
.facility-secondary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.facility-secondary-actions > *, .visit-log-actions > button { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 8px; color: #245244; background: #fff; border: 1px solid #8da49a; border-radius: 6px; font: inherit; font-size: 13px; line-height: 1.4; letter-spacing: 0; text-align: center; text-decoration: none; cursor: pointer; }
.facility-secondary-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.facility-secondary-actions > :disabled { opacity: 1; color: #52665c; background: #e9efeb; }
.facility-secondary-actions > [aria-pressed="true"] { background: #e4f1ec; border-color: #438578; }
.facility-more .lodging-search-card { margin-block: 12px; padding: 0; background: transparent; }
.facility-more .lodging-search-card > div { display: flex; flex-wrap: wrap; gap: 8px; }
.facility-more .checkin-panel { margin: 12px 0; padding: 12px; border: 1px solid #b8cbc1; box-shadow: none; }
.facility-more .checkin-panel h3 { font-size: 16px; }
.facility-more .checkin-panel p { font-size: 13px; }
.notebook-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notebook-head h3, .facility-pane .panel-head h3 { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.activity-form { display: grid; gap: 10px; min-width: 0; }
.activity-form label { display: grid; gap: 6px; min-width: 0; color: #3c5749; font-size: 13px; font-weight: 500; }
.activity-form input:not([type="checkbox"]), .activity-form select, .activity-form textarea { box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin: 0; padding: 10px; color: #172b25; background: #fff; border: 1px solid #8da49a; border-radius: 6px; font-family: inherit; font-size: 16px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
.activity-form input[type="date"] { min-inline-size: 0; inline-size: 100%; max-inline-size: 100%; -webkit-appearance: none; }
.activity-form input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.activity-form textarea { min-height: 108px; resize: vertical; }
.activity-form .notebook-privacy { margin: 0; }
.activity-form .notebook-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; font-size: 13px; cursor: pointer; }
.notebook-toggle input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #006d64; }
.activity-form fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; min-inline-size: 0; min-width: 0; margin: 0; padding: 10px 0; border: 0; border-block: 1px solid #d4e0d8; }
.activity-form legend { padding: 0; font-size: 13px; color: #52665c; }
.activity-form .activity-date { grid-column: 1 / -1; }
.activity-measurements label:last-child { grid-column: 1 / -1; }
.activity-public p { grid-column: 1 / -1; margin: 0; color: #52665c; font-size: 12px; line-height: 1.7; }
.activity-save-status:empty { display: none; }
.activity-save-status { margin: 0; color: #3c5749; font-size: 13px; line-height: 1.7; }
.activity-save { width: 100%; min-height: 44px; }
.activity-save:disabled { opacity: .7; cursor: wait; }
.activity-history { margin-top: 12px; }
.activity-history .visit-log-list > article { padding: 12px 0; border: 0; border-bottom: 1px solid #d4e0d8; border-radius: 0; background: transparent; box-shadow: none; }
.activity-history strong { font-size: 13px; font-weight: 600; }
.facility-pane.review-panel .panel-head { margin: 0 0 8px; }
.facility-pane.review-panel > .secondary-button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
.card-facts > div { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 6px; }
.card-facts dt, .card-facts dd { margin: 0; font-size: 12px; line-height: 1.7; font-weight: 400; }
.card-facts dt { color: #52665c; }
.card-facts dd { color: #172b25; overflow-wrap: anywhere; }
.card-facts dd { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-facts:empty { display: none; }
.card-verification { margin: 0; color: #52665c; font-size: 12px; line-height: 1.6; }
.app-update-notice:not([hidden]) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #607d70; border-radius: 6px; color: #244537; background: #fff; font-size: 13px; line-height: 1.6; }
.app-update-notice button { flex: 0 0 auto; min-height: 44px; }
.settings-dialog.app-update-dialog,
.settings-dialog.app-update-dialog[open] { inset: 0; margin: auto; width: min(440px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); border-radius: 8px; animation: none; }

.record-backup { padding: 16px 0; border-block: 1px solid #b5c8c1; }
.record-backup h3 { margin: 0 0 8px; font-size: 16px; }
.record-backup p { margin: 8px 0; font-size: 14px; line-height: 1.65; color: #314b43; }
.backup-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.backup-actions > * { min-width: 0; margin: 0; min-height: 44px; }
.backup-actions .import-box { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid #52796d; border-radius: 6px; color: #164d43; background: #fff; text-align: center; cursor: pointer; }
.backup-actions .import-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; pointer-events: auto; }
.backup-actions .import-box:focus-within { outline: 2px solid #2462af; outline-offset: 3px; }
.affiliate-disclosure { margin: 6px 0; color: #344d45; font-size: 12px; line-height: 1.5; }
.facility-title-link { display: inline-block; min-height: 24px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
#settingsDialog::backdrop,
#recordConfirmDialog::backdrop { display: block; background: rgba(10, 23, 20, .5); backdrop-filter: blur(4px); }
.settings-dialog.record-confirm-dialog,
.settings-dialog.record-confirm-dialog[open] { inset: 0; margin: auto; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); height: fit-content; padding: 24px; border-radius: 8px; animation: none; }
.record-confirm-dialog h2 { font-size: 20px; margin: 0 0 12px; }
.record-confirm-dialog p { line-height: 1.75; overflow-wrap: anywhere; }
.record-confirm-dialog button { min-height: 44px; }
@media (max-width: 400px) { .backup-actions { grid-template-columns: minmax(0, 1fr); } }
.app-update-dialog::backdrop { display: block; background: rgb(16 20 23 / .58); }
.app-update-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.app-update-dialog p { margin: 0 0 16px; color: #52665c; font-size: 14px; line-height: 1.7; }
.app-update-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.app-update-actions button { min-height: 44px; }
#featureFilterPanel .feature-chip { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; }
#featureFilterPanel .feature-chip-label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
#featureFilterPanel .feature-chip-count { flex: 0 0 auto; white-space: nowrap; font-size: 12px; font-weight: 400; }
#featureFilterPanel .feature-chip:disabled { color: #59665e; background: #eff2ef; border-color: #bdc9c1; cursor: not-allowed; box-shadow: none; }
.feature-unavailable { grid-column: 1 / -1; flex-basis: 100%; width: 100%; }
.feature-unavailable summary { min-height: 44px; padding: 10px 0; color: #52665c; font-size: 13px; cursor: pointer; }
.feature-unavailable .feature-chip { margin: 0 4px 6px 0; }
.feature-reset { grid-column: 1 / -1; min-height: 44px; padding: 8px 12px; border: 1px solid #607d70; border-radius: 6px; color: #244537; background: #fff; font: inherit; font-size: 13px; }
@media (max-width: 360px) {
  #featureFilterPanel .feature-chip { padding-inline: 6px; gap: 4px; font-size: 12px; }
  #featureFilterPanel .feature-chip-count { font-size: 12px; }
}
@media (max-width: 760px) {
  .topbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
  .facility-masthead h2 { font-size: 19px; }
  .facility-facts > div { grid-template-columns: 72px minmax(0,1fr); gap: 8px; }
}

/* ==== UX改善ラウンド（2026-11-08）: 所在の明確化と様式の統一 ====
   色の配役: 朱(--accent)=押印・現在地 / ティール(--primary)=導線 /
   墨(--ink)=選択状態 / 渋金(--gold)=保存（行きたい・お気に入り）。
   旧世代の色・グラデーション・ぼかしをここで上書きして統一する。 */

/* 下部ナビ: 実色帯にし、選択中は「文字=白、アイコン=朱」だけではっきり示す */
.bottom-nav {
  background: var(--ink);
  backdrop-filter: none;
  border-top: 1px solid var(--ink);
}
.bottom-nav button { color: #b9b2a2; }
.bottom-nav .nav-active { color: #fff; background: transparent; }
.bottom-nav .nav-active .nav-icon { color: var(--accent); }

/* ホームのアイコン（家型。既存アイコンと同じくCSSだけで描く） */
.nav-icon.nav-home {
  width: 22px;
  height: 22px;
  background: currentColor;
  clip-path: polygon(50% 0%, 100% 46%, 86% 46%, 86% 100%, 63% 100%, 63% 70%, 37% 70%, 37% 100%, 14% 100%, 14% 46%, 0% 46%);
}

/* セグメントの選択状態は墨の塗り＋白文字に統一（白抜き＋影は廃止） */
.segment .segment-active {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

/* 統計タイル: 4枚同格の「帳面の升」に統一。色分けは上帯だけで行う */
.stat-box {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: var(--hairline);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-m);
}
.stat-box:nth-child(2),
.stat-box:nth-child(3),
.stat-box:nth-child(4) { background: var(--paper); }
.stat-box span { color: var(--ink-soft); }
.stat-box-title { border-top-color: var(--accent); }

/* 記録ビューのチップナビ */
.stats-chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.stats-chip-nav button {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: var(--hairline);
  border-radius: 999px;
  cursor: pointer;
}

/* 保存系（行きたい/お気に入り）の色は渋金に統一 */
[data-action="wishlist"].is-active,
[data-action="quest-wishlist"].is-active,
.secondary-button.is-active,
.card-actions .secondary-button.is-active {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}
.favorite-row { border-left: 3px solid var(--gold); }
.wishlist-row { flex-wrap: wrap; row-gap: 8px; }
.wishlist-panel-stamp,
.wishlist-panel-remove {
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* Gearボタン: 金グラデーションと浮遊影をやめ、実色にする */
.top-gear-button {
  background: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: none;
  color: #fff;
}

/* 折りたたみ（バックアップ/告知文テンプレ）の見出し様式 */
.record-backup > summary,
.promotion-copy-details > summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.record-backup > summary { font-size: 17px; }
.promotion-copy-details > summary { font-size: 14px; margin: 10px 0 4px; }
.record-backup > summary::-webkit-details-marker,
.promotion-copy-details > summary::-webkit-details-marker { display: none; }
.record-backup > summary::before,
.promotion-copy-details > summary::before {
  content: "▸ ";
  color: var(--ink-soft);
}
.record-backup[open] > summary::before,
.promotion-copy-details[open] > summary::before { content: "▾ "; }

/* 行きたい一覧の行: 施設名と2ボタンを1行に収める（ボタンが横に伸びないように） */
.wishlist-row { align-items: center; flex-wrap: nowrap; }
.wishlist-row > div { flex: 1 1 auto; min-width: 0; }
.wishlist-panel-stamp,
.wishlist-panel-remove { flex: 0 0 auto; }

/* 色の確定（最終世代の --gold は鮮やかな黄のため、保存系と Gear は渋金の実色で固定する） */
.tool-band .segment .segment-active,
.segment .segment-active {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}
[data-action="wishlist"].is-active,
[data-action="quest-wishlist"].is-active,
.secondary-button.is-active,
.card-actions .secondary-button.is-active {
  color: #fff;
  background: #8a6a24;
  border-color: #8a6a24;
}
.favorite-row { border-left: 3px solid #8a6a24; }
.top-gear-button {
  background: #8a6a24;
  border: 1px solid #8a6a24;
  box-shadow: none;
  color: #fff;
}

/* SAUNACHELIN award badge on facility cards (2026-11-08) */
.award-badge {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 3px 10px;
  border: 1px solid #8a6a24;
  border-radius: 999px;
  background: #fbf3d9;
  color: #6e5410;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 写真リンク導線（2026-11-09）: 詳細のリンク行では隣の公式リンクと同じテキストリンク形式に揃える。実写真の表示枠ではない */
.source-badge-photo {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

/* 件数の数え方注記（2026-11-11）: 検索対象数と押印対象数の違いを、その数字が出る場所で説明する */
.passport-scope-note {
  margin: 10px 2px 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgb(17 24 23 / 0.7);
}
.about-metrics-note {
  margin: 10px 2px 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgb(17 24 23 / 0.7);
}
.backup-hint {
  display: grid;
  gap: 10px;
  margin: 0 2px 14px;
  padding: 14px;
  background: rgb(255 255 255 / 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.backup-hint[hidden] { display: none; }
.backup-hint-text { margin: 0; font-size: 0.85rem; line-height: 1.6; color: rgb(17 24 23 / 0.85); }
.backup-hint-text strong { font-weight: 700; }
.backup-hint-actions { display: flex; gap: 8px; align-items: center; }
.stats-list-note {
  margin: 10px 2px 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgb(17 24 23 / 0.7);
}
.facility-facts > div { grid-template-columns: 104px minmax(0, 1fr); }
.facility-facts dt { font-weight: 700; line-break: strict; word-break: keep-all; }
.guide-entry { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 10px 0 2px; padding: 10px 14px; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; font: inherit; text-align: left; cursor: pointer; }
.guide-entry-label { flex: none; color: var(--primary); font-weight: 800; }
.guide-entry-text { flex: 1; color: rgb(17 24 23 / 0.78); font-size: 0.85rem; line-height: 1.5; }
.guide-entry-arrow { flex: none; color: var(--primary); font-weight: 700; }
.stamp-date-excluded { color: #9b2e23; font-weight: 700; }
.toast-action { margin-left: 12px; padding: 6px 12px; min-height: 36px; background: transparent; border: 1px solid currentColor; border-radius: 6px; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.toast.toast-interactive { pointer-events: auto; }
.first-steps-card { display: grid; gap: 10px; margin: 10px 2px 4px; padding: 14px; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; }
.first-steps-card[hidden] { display: none; }
.first-steps-text { margin: 0; font-size: 0.85rem; line-height: 1.6; color: rgb(17 24 23 / 0.85); }
.first-steps-text strong { font-weight: 700; }
.first-steps-actions { display: flex; gap: 8px; align-items: center; }

/* ===== サウニュ〜（サウナニュース） ===== */
.news-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.news-chip-opening { background: #006d64; }
.news-chip-event { background: #344840; }
.news-chip-renewal { background: #596763; }
.news-chip-closure { background: #111817; }
.news-chip-award { background: #8a6a24; }

.news-rail { margin: 10px 2px 4px; }
.news-rail[hidden] { display: none; }
.news-rail-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.news-rail-title { font-size: 1rem; font-weight: 900; }
.news-rail-sub { font-size: 0.78rem; color: rgb(17 24 23 / 0.6); }
.news-rail-track { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.news-rail-track::-webkit-scrollbar { display: none; }
.news-rail-card { flex: 0 0 248px; min-width: 248px; display: flex; flex-direction: column; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: var(--ink); text-decoration: none; }
.news-rail-card img { display: block; width: 100%; height: 155px; object-fit: cover; }
.news-rail-card-body { display: block; padding: 8px 10px 10px; }
.news-rail-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgb(17 24 23 / 0.6); }
.news-rail-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 0.85rem; font-weight: 700; line-height: 1.5; }
.news-rail-more { align-items: center; justify-content: center; gap: 6px; padding: 16px 10px; text-align: center; }
.news-rail-more-text { font-weight: 800; }
.news-rail-more-arrow { font-size: 1.1rem; }

.news-intro { margin: 0 2px 12px; font-size: 0.85rem; line-height: 1.6; color: rgb(17 24 23 / 0.7); }
.news-category-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; }
.news-category-button { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 0.78); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.news-category-button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.news-count { margin: 2px 2px 10px; font-size: 0.78rem; color: rgb(17 24 23 / 0.6); }
.news-list { display: grid; gap: 10px; }
.news-card { background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.news-card-main { display: flex; gap: 12px; width: 100%; padding: 0; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.news-card-thumb { flex: 0 0 120px; width: 120px; height: 90px; align-self: center; object-fit: cover; }
.news-card-body { display: grid; gap: 6px; align-content: start; padding: 10px 12px 10px 0; }
.news-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgb(17 24 23 / 0.6); }
.news-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; font-weight: 800; line-height: 1.5; }
.news-card-featured .news-card-main { display: block; }
.news-card-featured .news-card-hero { display: block; width: 100%; height: 168px; object-fit: cover; }
.news-card-featured .news-card-body { padding: 12px 14px 14px; }
.news-card-featured .news-card-title { font-size: 1.25rem; font-weight: 800; line-height: 1.45; }
.news-card-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.85rem; line-height: 1.6; color: rgb(17 24 23 / 0.75); }

.news-article-meta { display: flex; align-items: center; gap: 10px; margin: 10px 2px 8px; font-size: 0.78rem; color: rgb(17 24 23 / 0.6); }
.news-article-title { margin: 0 2px 12px; font-size: 1.375rem; font-weight: 900; line-height: 1.45; }
.news-article-hero { display: block; width: 100%; height: auto; border-radius: 8px; }
.news-article-lead { margin: 12px 2px 0; font-size: 1rem; line-height: 1.8; }
.news-ended-note { margin: 12px 2px 0; padding: 10px 12px; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; font-size: 0.85rem; font-weight: 700; }
.news-points { margin: 14px 0 0; padding: 14px; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; }
.news-points h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.news-points ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.85rem; line-height: 1.6; }
.news-facility-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 2px 0; }
.news-facility-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 0.78); color: var(--primary); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.news-status-note { margin: 10px 2px 0; font-size: 0.85rem; line-height: 1.6; color: rgb(17 24 23 / 0.7); }
.news-toc { margin: 14px 0 0; padding: 10px 14px; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; }
.news-toc summary { min-height: 32px; font-weight: 800; cursor: pointer; }
.news-toc ol { margin: 6px 0 4px; padding-left: 22px; display: grid; gap: 6px; font-size: 0.85rem; line-height: 1.6; }
.news-article-body { margin-top: 6px; font-size: 1rem; line-height: 1.9; }
.news-article-body p { margin: 12px 2px 0; }
.news-article-body h2 { margin: 26px 2px 0; font-size: 1.125rem; font-weight: 800; line-height: 1.5; }
.news-article-body ul { margin: 10px 2px 0; padding-left: 22px; display: grid; gap: 6px; }
.news-table-wrap { margin: 14px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.news-table-wrap figcaption { margin: 0 2px 6px; font-size: 0.85rem; font-weight: 700; }
.news-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.85rem; line-height: 1.6; background: rgb(255 255 255 / 0.78); }
.news-table th, .news-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.news-table th { font-weight: 800; background: var(--primary-soft); }
@media (max-width: 640px) {
  .news-table th, .news-table td { padding: 8px; }
}
.news-factbox { margin: 14px 0 0; padding: 14px; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; }
.news-factbox h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.news-factbox dl { margin: 0; display: grid; gap: 6px; }
.news-factbox-row { display: grid; grid-template-columns: 104px 1fr; gap: 10px; font-size: 0.85rem; line-height: 1.6; }
.news-factbox-row dt { font-weight: 700; word-break: keep-all; }
.news-factbox-row dd { margin: 0; }
.news-figure { margin: 14px 0 0; }
.news-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.news-figure figcaption { margin-top: 6px; font-size: 0.78rem; color: rgb(17 24 23 / 0.6); }
.news-facilities { margin-top: 22px; display: grid; gap: 10px; }
.news-facilities h2 { margin: 0 2px; font-size: 1.125rem; font-weight: 800; }
.news-action, .news-caution { margin: 16px 2px 0; font-size: 0.85rem; line-height: 1.6; }
.news-sources, .news-revisions { margin-top: 22px; }
.news-sources h2, .news-revisions h2 { margin: 0 2px 8px; font-size: 1.125rem; font-weight: 800; }
.news-sources ul, .news-revisions ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.85rem; line-height: 1.6; }
.news-sources p { margin: 8px 2px 0; font-size: 0.85rem; line-height: 1.6; color: rgb(17 24 23 / 0.7); }
.news-article-nav { margin-top: 22px; display: grid; gap: 8px; }
.news-nav-heading { margin: 10px 2px 0; font-size: 1rem; font-weight: 800; }
.news-nav-card { display: flex; align-items: stretch; gap: 12px; padding: 10px; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.news-nav-thumb { flex: 0 0 104px; width: 104px; height: 88px; align-self: center; object-fit: cover; border-radius: 6px; }
.news-nav-body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.news-nav-kind { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--primary); }
.news-nav-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.85rem; font-weight: 700; line-height: 1.5; }
.news-nav-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgb(17 24 23 / 0.6); }
.news-share { margin-top: 22px; padding: 14px; background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); border-radius: 8px; }
.news-share-label { display: block; font-size: 0.85rem; font-weight: 800; }
.news-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.news-share-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.news-share-x { background: #000; border-color: #000; color: #fff; }
.news-share-line { background: #06c755; border-color: #06c755; color: #fff; }
.news-share-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.news-article-actions { margin-top: 14px; display: flex; gap: 10px; }
.news-action-button { flex: 1 1 0; min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; }
.news-action-button-primary { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
.news-action-button-ghost { background: rgb(255 255 255 / 0.78); border: 1px solid var(--line); color: var(--ink); }
#viewNewsArticle .back-button { margin-top: 10px; }

/* プッシュ通知パネル（サウナ仲間） */
.push-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  background: rgb(255 255 255 / 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.push-panel-copy { flex: 1; min-width: 0; }
.push-panel-copy h3 { margin: 2px 0 6px; font-size: 1rem; font-weight: 800; }
.push-panel-copy p { margin: 0; font-size: 0.85rem; line-height: 1.6; color: rgb(17 24 23 / 0.7); }
.push-panel-copy .eyebrow { color: var(--primary); }
.push-panel .primary-button, .push-panel .secondary-button { flex-shrink: 0; min-height: 48px; }
@media (max-width: 640px) {
  .push-panel { flex-direction: column; align-items: stretch; }
  .push-panel .primary-button, .push-panel .secondary-button { width: 100%; }
}

/* ガイドのGearレール: 記事への導線を優先し、商品カードは既定で折りたたむ */
.guide-gear-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #eadfca;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.guide-gear-more summary::-webkit-details-marker { display: none; }
.guide-gear-more summary::after {
  content: "▾";
  color: #9b6e05;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}
.guide-gear-more[open ] summary::after { transform: rotate(180deg); }
.guide-gear-more .guide-gear-grid { margin-top: 8px; }

/* ニュース関連施設・施設詳細の押印案内（2026-11-13） */
.news-facilities-note {
  margin: 0 2px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgb(17 24 23 / 0.7);
}
.facility-stamp-note {
  margin: 8px 2px 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgb(17 24 23 / 0.7);
}

/* 検索結果の並び替え・一覧コピー、入門の順路（2026-11-14） */
.results-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}
.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.sort-label select {
  font-size: 1rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.guide-starter {
  background: rgb(255 255 255 / 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.guide-starter h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.guide-starter ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide-starter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.guide-starter-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.guide-starter-title { font-weight: 700; }
.guide-starter-cat { margin-left: auto; flex: none; font-size: 0.78rem; color: var(--ink-soft); }

/* 県マスター準マスター注記・比較バー/比較表（2026-11-14） */
.pref-board-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgb(17 24 23 / 0.7);
  margin: 8px 0 0;
}
.compare-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgb(255 255 255 / 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-weight: 700;
}
.compare-bar-actions { display: flex; gap: 8px; }
.compare-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.compare-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.85rem; line-height: 1.55; }
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  min-width: 130px;
  background: #fff;
}
.compare-table thead th {
  background: var(--primary-soft);
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}
.compare-table tbody th {
  background: #fff;
  font-weight: 700;
  min-width: 92px;
  position: sticky;
  left: 0;
  z-index: 1;
}
.compare-table thead th:first-child {
  left: 0;
  z-index: 3;
  min-width: 92px;
}
.compare-alert {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgb(17 24 23 / 0.85);
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 10px;
}
.compare-note { font-size: 0.85rem; line-height: 1.6; color: rgb(17 24 23 / 0.7); margin: 10px 0 0; }

/* === デザイン改善ラウンド 2026-11-15（参考サイトの設計原理の転用） ===
   原理1: セクション様式の切り替え — ニュースレールを白カードの連なりから外し、
          波の罫と二重罫を持つ「編集面」として独立させる。
   原理2: 番号の編集装置 — レールカードに CSS カウンタで連番を付ける（DOM不変）。
   原理3: 大きな数字×小さなメタの対比 — 進捗ヒーローの数字を拡大する。
   原理4: 読み物のレジスター — 記事の見出しにティールの縦罫を添え、面の様式を揃える。 */

/* 探索ビューの見出し：明朝を立て、ティールの短い罫で締める */
.explore-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.explore-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 6px;
  background: var(--primary);
}

/* 各ビューのセクション見出し：新聞の欄見出しのように二重罫で区切る */
.section-title {
  padding-bottom: 8px;
  border-bottom: 3px double rgb(17 24 23 / 0.4);
}

/* ニュースレール：白い編集面＋波の罫＋二重罫の見出し */
.news-rail {
  margin: 16px 0 6px;
  padding: 12px 10px 4px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.news-rail::before {
  content: "";
  display: block;
  height: 12px;
  margin: 0 2px 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M0 6 Q 11 0, 22 6 T 44 6' fill='none' stroke='%23006d64' stroke-width='2'/%3E%3C/svg%3E") repeat-x left center;
  background-size: 44px 12px;
  opacity: 0.45;
}
.news-rail-head {
  margin: 0 2px 10px;
  padding-bottom: 8px;
  border-bottom: 3px double rgb(17 24 23 / 0.4);
}
.news-rail-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* 帯の自動送りは app.js（数秒ごとに1枚ずつ送り、カードの切れ目で止める。2026-11-19 再開）。scroll-snap はファイル末尾で付けている。
   連番はカウンタではなく data-num 属性で持つ。 */
.news-rail-card {
  position: relative;
}
.news-rail-card:not(.news-rail-more) .news-rail-card-title::before {
  content: attr(data-num) " ";
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

/* 進捗ヒーロー：数字の対比を強める */
.hero-metrics strong {
  font-size: 1.75rem;
}
.progress-ring {
  width: 84px;
  height: 84px;
}

/* 記事の読み物レジスター：見出しにティールの縦罫 */
.news-article-body h2,
.ssr-content h2,
.article-body h2 {
  font-size: 1.25rem;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}
.news-points h2,
.news-factbox h3 {
  padding-left: 8px;
  border-left: 3px solid var(--primary);
}

/* SSR面をアプリの和紙様式に統一（ティール枠と影を外す） */
.ssr-content {
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: none;
}

/* === デザイン改善ラウンド第2弾 2026-11-15（劇的変更） ===
   DOM・見出し構造・構造化データ・導線は一切変えず、CSSのみで構成の見た目を作り替える。
   - マストヘッド：写真帯を大型化し、ブランドを大判の明朝に。渋金の罫で締める。
   - 検索帯：墨色の帯に反転させ、ファーストビューの重心を作る（中の操作要素は白地のまま）。
   - ニュースレール：先頭カードを特集サイズにして均一なカードの反復を崩す。
   - 施設カード：半透明の白から和紙の白へ、施設名を大判の明朝にして「名鑑」の様式に。
   - 記事：題字を大型化し、ヒーロー画像をカードの余白から解放して全面幅で見せる。 */

/* === デザイン改善ラウンド第2弾 2026-11-15（構成の変更）＋方向修正 ===
   DOM・見出し構造・構造化データ・導線は一切変えず、CSSのみで構成の見た目を作り替える。
   - 検索帯：墨色の帯に反転させ、ファーストビューの重心を作る（中の操作要素は白地のまま）。
   - ニュースレール：先頭カードを特集サイズにして均一なカードの反復を崩す。
   - 施設カード：半透明の白から和紙の白へ（名鑑様式）。
   - 記事：ヒーロー画像をカードの余白から解放して全面幅で見せる。
   方向修正（オーナー指示 2026-11-15）：文字の拡大・増量は「芸のない変化」として撤回し、
   元のスッキリした尺度に戻した。残すのは配置・色面・様式の変更のみ。
   - マストヘッド：帯の高さとブランド名は元の寸法へ（渋金の罫のみ残す）。
   - 記事題字・SPA記事題字・探索見出し：元のサイズへ。
   - 施設名：元の17pxへ。残すのは明朝という書体の様式のみ（太さも元相当に）。 */

.topbar {
  border-bottom: 3px solid #8a6a24;
}

.explore-title {
  font-size: 1.375rem;
}
.explore-title::after {
  width: 56px;
  height: 3px;
}

.view-explore .tool-band {
  background: var(--ink);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.news-rail-card:first-child,
.news-rail-card-featured {
  flex-basis: 440px;
  min-width: 440px;
}
.news-rail-card:first-child img,
.news-rail-card-featured img {
  height: 220px;
}
.news-rail-card:first-child .news-rail-card-title {
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
}
@media (max-width: 640px) {
  .news-rail-card:first-child,
  .news-rail-card-featured {
    flex-basis: 84vw;
    min-width: 84vw;
  }
  .news-rail-card:first-child img,
  .news-rail-card-featured img {
    height: 180px;
  }
}

.facility-card {
  background: #fffdf8;
  border-radius: 6px;
}
.facility-card .facility-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.ssr-content img[src*="-hero.webp"] {
  display: block;
  width: calc(100% + 28px);
  max-width: none;
  margin-left: -14px;
  margin-right: -14px;
}
/* 第3弾（配置・余白・罫のリズム）は提案として分離済み。承認後に適用する。
   内容: design-round-2026-11-15/phase3-proposal.css / 根拠: DESIGN-PRINCIPLES.md */

/* === 検索候補（サジェスト）2026-11-15 ===
   入力に連動して施設候補をフォーム直下に重ねて表示する。既存の検索マッチング
   （かな・漢字・ローマ字の正規化済み haystack）をそのまま使い、候補の計算は
   検索レコードへの includes 判定のみで軽く保つ。 */
.search-form {
  position: relative;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  /* dvh でキーボード表示時の可視高さに追従させる（vh だと実機で見えている
     範囲より背が高くなり、下端が .main の外＝タブバーの裏で切れてしまう） */
  max-height: min(46dvh, 380px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgb(17 24 23 / 0.2);
}
.search-suggestions[hidden] {
  display: none;
}
.search-suggestions-head {
  padding: 6px 10px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgb(17 24 23 / 0.55);
}
.search-suggestion {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.search-suggestion:hover,
.search-suggestion-active {
  background: var(--primary-soft);
}
.search-suggestion-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.search-suggestion-meta {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgb(17 24 23 / 0.62);
}

/* ============================================================
   リニューアル 2026-11-15（御朱印帳デザイン・Mac側Claude案の正式採用）
   夜色 #0B1514 の羽目板の上に生成りの帳面を置く構成。
   既存の機能・導線は変えず、外観と配置だけを差し替える。
   注意：ニュースレールに scroll-snap は付けないこと（自動スクロールが止まる）。
   ============================================================ */
:root {
  --night: #0B1514;
  --cream: #FFFAF2;
  --paper2: #F6EEDF;
  --teal2: #0F8A7E;
  --gold2: #C9A45C;
  --num-font: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
  --hand-font: "Klee One", "Zen Kaku Gothic New", cursive;
}

html { background: var(--night); }

body {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--night);
}

.app-shell { position: relative; isolation: isolate; }
.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.025) 0 62px, rgb(0 0 0 / 0.18) 62px 64px);
  pointer-events: none;
}

/* --- 帳面（中央の本） --- */
.main {
  background: var(--cream);
  position: relative;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.4), 0 30px 80px rgb(0 0 0 / 0.45);
}
@media (min-width: 641px) {
  .main::before,
  .main::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    background: repeating-linear-gradient(180deg, #E9DFCB 0 180px, #D9CCB2 180px 182px);
    pointer-events: none;
  }
  .main::before { left: -14px; }
  .main::after { right: -14px; }
}
.ssr-content { background: transparent; border: none; box-shadow: none; }

/* --- SP/タブレット用ヘッダー（夜色） --- */
.app-shell .topbar {
  background: var(--night);
  color: var(--cream);
  border: none;
  box-shadow: none;
  position: relative;
}
.app-shell .topbar::before { display: none; }
.topbar .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.topbar .brand-copy { display: flex; align-items: baseline; gap: 14px; }
.topbar .brand-copy::after {
  content: "一湯、一印。";
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgb(255 250 242 / 0.8);
}
.topbar .eyebrow,
.topbar .topbar-promise { display: none; }
.topbar .brand-mark { border-radius: 12px; }
@media (max-width: 1023px) {
  .topbar-actions { display: none; }
}

/* --- 左右レール（SPでは地図のみ帳面の下へ） --- */
.rail-left { display: none; }
.rail-right { display: none; }
.rail-actions,
.rail-next-card { display: none; }
.rail-card {
  background: rgb(255 250 242 / 0.06);
  border: 1px solid rgb(255 250 242 / 0.14);
  border-radius: 18px;
  padding: 20px 22px;
  color: var(--cream);
}
.rail-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.rail-card-count { font-family: var(--num-font); font-size: 13px; font-weight: 500; opacity: 0.7; }
.tile-map { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; margin-top: 14px; }
.tile-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: 3px;
  background: rgb(255 250 242 / 0.1);
  color: rgb(255 250 242 / 0.55);
  font-size: 9px;
  font-family: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  min-height: 0;
}
.tile-cell.tile-wishlist { background: var(--teal2); color: #fff; }
.tile-cell.tile-stamped { background: var(--accent); color: #fff; }
.tile-cell.tile-empty { background: transparent; cursor: default; }
.tile-map-legend { display: flex; gap: 14px; font-size: 12px; margin-top: 12px; opacity: 0.85; color: var(--cream); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.legend-stamped { background: var(--accent); }
.legend-wishlist { background: var(--teal2); }
.legend-unvisited { background: rgb(255 250 242 / 0.15); }

/* --- 段階フッター --- */
.stage-foot {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 34px 20px calc(110px + env(safe-area-inset-bottom));
}
.stage-foot button {
  background: none;
  border: none;
  color: rgb(255 250 242 / 0.6);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 0;
}

/* --- 下部タブバー（SP/タブレット） --- */
.app-shell .bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(78px + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  background: var(--night);
  color: var(--cream);
  border-top: 1px solid rgb(255 250 242 / 0.12);
  box-shadow: none;
}
.bottom-nav > button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--cream);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
  cursor: pointer;
  min-height: 44px;
}
.bottom-nav > button.nav-active { opacity: 1; color: #7FD6CB; }
.bottom-nav .nav-icon { width: 22px; height: 22px; }
.nav-icon.nav-search {
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav-icon.nav-menu {
  background: repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 8px);
  width: 20px;
  height: 18px;
  /* 他のタブのアイコン（22px）と高さをそろえ、ラベルの縦位置のずれ（2px）をなくす */
  margin-block: 2px;
}
.bottom-nav .tab-stamp { opacity: 1; position: relative; }
.tab-stamp-seal {
  width: 62px;
  height: 62px;
  margin-top: -26px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--cream);
  box-shadow: 0 0 0 5px var(--night), inset 0 0 0 3px rgb(255 250 242 / 0.5);
  transform: rotate(-8deg);
}
.tab-stamp-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- 帳面の中（Explore） --- */
#viewExplore.view-active { display: flex; flex-direction: column; padding: 0 18px 30px; }
#viewExplore .book-steam { order: 1; }
#viewExplore .book-cover { order: 2; }
#viewExplore .book-counts { order: 3; }
#viewExplore .explore-title { order: 4; }
#viewExplore .tool-band { order: 5; }
#viewExplore .area-shortcut { order: 6; }
#viewExplore .book-stamps { order: 7; }
#viewExplore .news-rail { order: 8; }
#viewExplore .book-shelf { order: 9; }
#viewExplore .guide-entry { order: 10; }
#viewExplore .first-steps-card { order: 11; }
#viewExplore .explore-extras { order: 12; }
#viewExplore .compare-bar { order: 13; }
#viewExplore .results-controls { order: 14; }
#viewExplore .search-results-status { order: 15; }
#viewExplore .facility-list { order: 16; }
#viewExplore .book-map-sp { order: 17; }
.book-map-sp { display: none; }

#viewExplore .explore-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.book-steam {
  height: 84px;
  margin: 0 -18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='84'%3E%3Cpath d='M20 84c-14-14 14-22 0-36s14-22 0-36' fill='none' stroke='%23006D64' stroke-width='1.3' opacity='.55'/%3E%3C/svg%3E") 0 0 / 40px 84px repeat-x;
}
.book-cover { text-align: center; padding-top: 6px; }
.book-cover-eyebrow {
  font-family: var(--num-font);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--primary);
}
.book-cover-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 29px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  margin: 12px 0 10px;
}
.book-cover-accent { color: var(--accent); white-space: nowrap; }
@media (max-width: 380px) {
  .book-cover-title { font-size: 29px; }
}
.book-cover-text { color: var(--ink-soft); line-height: 1.9; font-size: 16px; }

.book-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 22px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.book-counts > div { padding: 12px 4px; text-align: center; }
.book-counts > div + div { border-left: 1px dashed #CFC3AC; }
.book-count-num {
  display: block;
  font-family: var(--num-font);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
}
.book-counts span { font-size: 12px; color: var(--ink-soft); }

/* 検索帯：帳面の紙の上に置く（旧・墨帯は解除） */
#viewExplore .tool-band {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  position: static;
  display: flex;
  flex-direction: column;
}
#viewExplore .search-form { position: relative; display: block; }
#viewExplore .search-box {
  height: 56px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0 104px 0 16px;
  box-shadow: none;
}
#viewExplore .search-submit-button {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}
#viewExplore .segment { margin-top: 12px; background: transparent; }
#viewExplore .feature-filter-panel {
  background: #fff;
  border: 1px solid #DCCFB6;
  border-radius: 12px;
}

/* ピル行（マイ県・現在地・特徴） */
#viewExplore .area-shortcut {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  background: transparent;
  border: none;
  padding: 0;
}
#viewExplore .area-shortcut > button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
#viewExplore .area-shortcut > button span,
#viewExplore .area-shortcut > button em { display: none; }
#viewExplore .area-shortcut > button strong { font-size: 15px; font-weight: 700; }
#nearbySaunaButton { order: 1; }
#homePrefectureButton { order: 2; }
.feature-pills { display: contents; }
.feature-pills button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  order: 3;
}
.feature-pills button.is-active { background: var(--ink); color: var(--cream); }
#viewExplore .nearby-result { order: 9; flex: 1 1 100%; }

/* 見出し型（帳面の節） */
.book-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}
.book-section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.08em;
}
.book-section-en {
  font-family: var(--num-font);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--primary);
}
.book-section-link {
  margin-left: auto;
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

/* 印のページ */
.book-stamps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.book-stamp-page {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 1px solid #DCCFB6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: center;
}
.book-stamp-place {
  position: absolute;
  right: 10px;
  top: 12px;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.book-stamp-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  opacity: 0.92;
  position: relative;
  padding: 6px;
}
.book-stamp-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}
.book-stamp-seal.is-square { border-radius: 8px; }
.book-stamp-seal.is-square::before { border-radius: 4px; }
.book-stamp-seal-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-stamp-seal-mark { font-family: var(--font-display); font-weight: 800; font-size: 12px; }
.book-stamp-date {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--hand-font);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: left;
  line-height: 1.5;
  max-width: calc(100% - 20px);
}
.book-stamp-page.is-empty { background: transparent; border: 1.5px dashed #CDBFA5; }
.book-stamp-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed #CDBFA5;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-style: normal;
  color: #8C8170;
  margin-bottom: 8px;
}
.book-stamp-empty-text { font-family: var(--hand-font); font-size: 13px; color: #8C8170; line-height: 1.5; }
.book-stamp-page.is-fresh .book-stamp-seal { animation: stamp-pon 0.2s ease-out; }
@keyframes stamp-pon {
  0% { transform: scale(1.28) rotate(-12deg); opacity: 0.35; }
  60% { transform: scale(0.94) rotate(-12deg); opacity: 0.92; }
  100% { transform: scale(1) rotate(-12deg); opacity: 0.92; }
}
@media (prefers-reduced-motion: reduce) {
  .book-stamp-page.is-fresh .book-stamp-seal { animation: none; }
}

/* 称号帯 */
.book-title-band {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--night);
  color: var(--cream);
  border-radius: 12px;
}
.book-title-band[hidden] { display: none; }
.book-title-medal {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F1D58E, #B98A35);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--night);
  box-shadow: 0 0 0 3px var(--night), 0 0 0 4px var(--gold2);
}
.book-title-copy strong { display: block; font-family: var(--font-display); font-size: 17px; }
.book-title-copy span { font-size: 12px; opacity: 0.75; }

/* サウナ補給 */
.book-shelf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.book-shelf-grid button {
  background: var(--paper2);
  border: 1px solid #E3D6BE;
  border-radius: 10px;
  padding: 14px 8px 12px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.book-shelf-num {
  display: block;
  font-family: var(--num-font);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
}
.book-shelf-grid button span { font-size: 13px; font-weight: 700; }

/* サウニュ〜：色面タイル（自動スクロールの仕組みは変更しない） */
#viewExplore .news-rail {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
#viewExplore .news-rail-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
#viewExplore .news-rail-card {
  border: none;
  border-radius: 10px;
  color: #fff;
  min-height: 170px;
  justify-content: flex-end;
  background: var(--primary);
}
#viewExplore .news-rail-card img { display: none; }
#viewExplore .news-rail-card:has(.news-chip-opening) { background: #006D64; }
#viewExplore .news-rail-card:has(.news-chip-event) { background: #2E3B38; }
#viewExplore .news-rail-card:has(.news-chip-renewal) { background: #596763; }
#viewExplore .news-rail-card:has(.news-chip-closure) { background: #111817; }
#viewExplore .news-rail-card:has(.news-chip-award) { background: #8A6A24; }
#viewExplore .news-rail-card-body { padding: 14px; }
#viewExplore .news-rail-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
}
#viewExplore .news-rail-card-title::before { color: rgb(255 255 255 / 0.85); }
#viewExplore .news-rail-card-meta { color: rgb(255 255 255 / 0.8); }
#viewExplore .news-rail-card .news-chip {
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  border: none;
}
#viewExplore .news-rail-card-featured { min-height: 240px; }
#viewExplore .news-rail-card-featured .news-rail-card-title { font-size: 24px; }
#viewExplore .news-rail-more {
  background: transparent;
  border: 1.5px dashed #CDBFA5;
  color: var(--ink);
}

/* 押印シート */
.stamp-sheet {
  border: none;
  border-radius: 16px;
  padding: 20px;
  width: min(560px, 94vw);
  background: var(--cream);
  color: var(--ink);
}
.stamp-sheet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.stamp-sheet-info { flex: 1; min-width: 0; }
.stamp-sheet-info strong { display: block; font-size: 16px; }
.stamp-sheet-info span { font-size: 13px; color: var(--ink-soft); }
.stamp-sheet-button {
  flex: none;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.stamp-sheet-button:disabled { background: var(--line); color: var(--ink-soft); cursor: default; }
.stamp-sheet-empty { padding: 14px 0; color: var(--ink-soft); }

/* --- SP/タブレット（〜1023px）：既存シェルの行構成を明示し、タブバーを最下行に置く --- */
@media (max-width: 1023px) {
  .app-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100dvh;
    min-height: 0;
  }
  .app-shell .topbar { grid-row: 1; }
  .app-shell .main { grid-row: 2; min-height: 0; margin: 0 10px; width: auto; }
  .app-shell .bottom-nav { grid-row: 3; position: static; }
  .book-map-sp {
    display: block;
    margin-top: 28px;
    background: var(--night);
    border-radius: 18px;
    padding: 20px 22px;
    color: var(--cream);
  }
}

/* --- タブレット（641〜1023px）：帳面を中央に --- */
@media (min-width: 641px) and (max-width: 1023px) {
  .main { max-width: 588px; margin: 0 auto; }
  .rail-right { max-width: 588px; margin: 22px auto 0; }
}

/* --- PC（1024px以上）：目次｜帳面｜進捗 --- */
@media (min-width: 1024px) {
  .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 560px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    min-height: 100vh;
  }
  .app-shell .topbar { display: none; }
  .app-shell .bottom-nav { display: none; }
  .main { grid-column: 2; grid-row: 1; margin: 0; }
  .rail-left {
    display: block;
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 40px 44px;
    color: var(--cream);
  }
  .rail-right {
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 44px;
    margin: 0;
    color: var(--cream);
  }
  .rail-actions { display: flex; gap: 10px; justify-content: flex-end; }
  .rail-next-card { display: block; }
  .stage-foot { grid-column: 1 / -1; grid-row: 2; padding-bottom: 40px; }

  .rail-logo { display: flex; gap: 18px; align-items: flex-start; }
  .rail-seal {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 14px;
    background: var(--accent);
    color: var(--cream);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    transform: rotate(-6deg);
    box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 5px rgb(255 250 242 / 0.6);
  }
  .rail-brand {
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 64px;
    line-height: 1;
    letter-spacing: 0.06em;
    color: var(--cream);
  }
  .rail-logo-side { display: flex; gap: 14px; }
  .rail-tagline {
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 0.5em;
    opacity: 0.8;
  }
  .rail-en {
    writing-mode: vertical-rl;
    font-family: var(--num-font);
    font-size: 11px;
    letter-spacing: 0.3em;
    opacity: 0.5;
  }
  .rail-toc { margin-top: 44px; max-width: 260px; }
  .rail-toc-title {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.3em;
    opacity: 0.7;
    margin-bottom: 8px;
  }
  .rail-toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 0;
    border: none;
    border-top: 1px dashed rgb(255 250 242 / 0.22);
    background: none;
    color: var(--cream);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }
  .rail-toc-num { font-family: var(--num-font); font-size: 12px; opacity: 0.55; width: 20px; }
  .rail-toc-item.is-current { color: #7FD6CB; }
  .rail-toc-item.is-current::after {
    content: "";
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7FD6CB;
  }
  .rail-action-button {
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid rgb(255 250 242 / 0.5);
    background: none;
    color: var(--cream);
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
  }
  .rail-action-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
  .rail-next-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
  }
  .rail-next-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px dashed rgb(255 250 242 / 0.4);
    display: grid;
    place-items: center;
    font-family: var(--num-font);
    font-size: 14px;
  }
  .rail-next-row strong { display: block; font-family: var(--font-display); font-size: 15px; }
  .rail-next-note { font-size: 12px; opacity: 0.7; }

  #viewExplore.view-active { padding: 0 34px 34px; }
  .book-steam { margin: 0 -34px; }
  .book-cover-title { font-size: 40px; }
  .book-count-num { font-size: 34px; }
  .book-stamps-grid { gap: 10px; }
  .book-stamp-place { font-size: 15px; }
  .book-stamp-seal { width: 84px; height: 84px; }
  .book-stamp-seal-name { font-size: 13px; }
  .book-stamp-seal-mark { font-size: 14px; }
  .book-shelf-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 実機の操作不備の是正（2026-11-16） */
/* ダブルタップズーム判定によるタップ遅延・取りこぼしを防ぐ */
.bottom-nav button,
.news-rail-card,
.search-suggestion {
  touch-action: manipulation;
}
/* 探すまわりの並びを整える: 場所のボタン2つを上段に、特徴ピルは2×2の格子にそろえる */
#viewExplore .feature-pills {
  display: grid;
  flex: 1 1 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#viewExplore .feature-pills button {
  width: 100%;
  justify-content: center;
}

/* 第2段階(a)：施設詳細ヘッダーと操作ブロック（2026-11-16） */
.facility-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 12px; color: var(--ink-soft); margin: 0 0 14px; }
.facility-crumbs button { background: none; border: 0; padding: 8px 2px; font: inherit; color: var(--primary); cursor: pointer; }
.facility-dh { position: relative; padding: 6px 120px 18px 0; min-height: 104px; margin: 0 0 14px; border-bottom: 1.5px solid var(--ink); }
.facility-dh-eyebrow { font-family: var(--num-font); font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--primary); margin: 0 0 6px; }
.facility-dh h2 { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 34px; line-height: 1.35; margin: 0 0 6px; }
.facility-dh-loc { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.facility-dh-seal { position: absolute; right: 0; top: 0; width: 104px; height: 104px; }
.facility-dh-seal .stamp-art { width: 104px; height: 104px; }
.facility-dh-seal .stamp-kanji { font-size: 38px; }
.facility-dh-seal-empty { width: 104px; height: 104px; border: 2.5px dashed #CDBFA5; border-radius: 50%; display: grid; place-items: center; }
.facility-dh-seal-empty span { font-family: var(--hand-font); font-size: 13px; color: #8C8170; text-align: center; padding: 0 12px; line-height: 1.5; }
.facility-primary-actions.facility-acts { grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.facility-primary-actions.facility-acts > button { height: 52px; min-height: 52px; padding: 0 8px; border-radius: 14px; border: 2px solid var(--ink); background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.facility-primary-actions.facility-acts > .facility-act-stamp { background: var(--accent); border-color: var(--accent); color: var(--cream); font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 18px; letter-spacing: .1em; }
.facility-primary-actions.facility-acts > .facility-act-stamp:disabled { background: #E7DFCE; border-color: #CDBFA5; color: #8C8170; cursor: default; }
.facility-primary-actions.facility-acts > .facility-act-sub[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.facility-acts-route { grid-column: 1 / -1; text-align: right; }
@media (max-width: 640px) {
  .facility-dh { padding-right: 96px; min-height: 84px; }
  .facility-dh h2 { font-size: 26px; }
  .facility-dh-seal, .facility-dh-seal-empty { width: 84px; height: 84px; }
  .facility-dh-seal .stamp-art { width: 84px; height: 84px; }
  .facility-dh-seal .stamp-kanji { font-size: 30px; }
  .facility-primary-actions.facility-acts { grid-template-columns: 1fr 1fr; }
  .facility-primary-actions.facility-acts > .facility-act-stamp { grid-column: span 2; }
}

/* 第2段階(b)：照合札と注意書き（2026-11-16） */
.facility-facts > div > dd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fact-badge { flex: none; font-family: var(--num-font); font-size: 11px; font-weight: 600; letter-spacing: .06em; line-height: 1.5; color: var(--primary); border: 1px solid var(--primary); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.fact-badge.is-unverified { color: var(--accent); border-color: var(--accent); }
.fact-missing-note { color: var(--ink-soft); }
.facility-warn { background: var(--paper2); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.8; margin: 16px 0; }
.facility-warn button { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 第2段階(c)：同じ市区町村のサウナ・サ飯候補・県へ戻る導線（2026-11-16） */
.facility-h3 { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 24px; letter-spacing: .08em; line-height: 1.4; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); display: flex; align-items: baseline; gap: 12px; }
.facility-h3-label { font-family: var(--num-font); font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--primary); white-space: nowrap; }
.facility-h3-link { margin-left: auto; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: 0; color: var(--primary); background: none; border: 0; padding: 4px 2px; cursor: pointer; white-space: nowrap; }
.facility-near-list { display: grid; gap: 8px; }
.facility-near-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid #DCCFB6; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.facility-near-mark { width: 48px; height: 48px; border-radius: 50%; border: 2px dashed #CDBFA5; display: grid; place-items: center; font-family: "Shippori Mincho B1", serif; font-weight: 800; color: #8C8170; }
.facility-near-mark.is-done { border: 2.5px solid var(--accent); color: var(--accent); transform: rotate(-10deg); }
.facility-near-mark.is-wish { border-style: solid; border-color: var(--teal2); color: var(--teal2); }
.facility-near-main strong { display: block; font-size: 16px; }
.facility-near-main small { color: var(--ink-soft); font-size: 0.78rem; }
.facility-near-arrow { color: var(--ink-soft); }
.facility-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facility-shelf-item { background: #fff; border: 1px solid #DCCFB6; border-radius: 12px; padding: 10px; text-decoration: none; color: var(--ink); }
.facility-shelf-item strong { display: block; font-family: "Shippori Mincho B1", serif; font-size: 16px; margin-bottom: 2px; }
.facility-shelf-item small { color: var(--ink-soft); font-size: 12px; }
.facility-back-pref { margin: 18px 0 4px; width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) { .facility-shelf { grid-template-columns: repeat(2, 1fr); } }

/* 第2段階(d)：県ページのヘッダーと進捗帯（2026-11-16） */
#viewExplore .pref-band { order: 2; }
#viewExplore.is-pref-mode .book-cover,
#viewExplore.is-pref-mode .book-counts,
#viewExplore.is-pref-mode .book-stamps,
#viewExplore.is-pref-mode .news-rail,
#viewExplore.is-pref-mode .book-shelf,
#viewExplore.is-pref-mode .guide-entry,
#viewExplore.is-pref-mode .first-steps-card,
#viewExplore.is-pref-mode .book-map-sp { display: none; }
.pref-dh h2 { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 34px; line-height: 1.35; margin: 0 0 6px; }
.pref-prog { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; background: var(--night); border-radius: 14px; padding: 16px; margin: 14px 0; }
.pref-prog-ring { width: 86px; height: 86px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--pct) * 1%), rgb(255 250 242 / 0.14) 0); display: grid; place-items: center; }
.pref-prog-ring span { width: 68px; height: 68px; border-radius: 50%; background: var(--night); display: grid; place-items: center; font-family: var(--num-font); font-size: 22px; font-weight: 600; color: var(--cream); }
.pref-prog-text strong { display: block; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 17px; color: var(--cream); margin-bottom: 4px; }
.pref-prog-text p { margin: 0; font-size: 0.85rem; line-height: 1.6; color: rgb(255 250 242 / 0.75); }
@media (max-width: 640px) { .pref-dh h2 { font-size: 26px; } }

/* 第2段階(e)：絞り込みタブ（tabs3）とピル列の統合（2026-11-16） */
#viewExplore .segment { display: flex; gap: 6px; background: none; border: 0; padding: 0; }
#viewExplore .segment button { flex: 1; height: 38px; min-height: 38px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; position: relative; cursor: pointer; }
#viewExplore .segment button::after { content: ""; position: absolute; inset: -3px 0; }
#viewExplore .segment .segment-active { background: var(--ink); color: var(--cream); }
#viewExplore .area-shortcut { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#viewExplore .area-shortcut .feature-pills { display: contents; }
#viewExplore .area-shortcut button { width: auto; height: 34px; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; position: relative; box-shadow: none; cursor: pointer; }
#viewExplore .area-shortcut button::after { content: ""; position: absolute; inset: -5px 0; }
#viewExplore .area-shortcut button strong { font-size: 12.5px; font-weight: 700; }
#viewExplore .area-shortcut .feature-pills button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
#viewExplore .area-shortcut .nearby-result { flex: 1 1 100%; }
#viewExplore .search-refiners { display: flex; }

/* 第2段階(f)：R1〜R6・SPフッター帯（2026-11-16） */
.brand-kakuiin { display: grid; place-items: center; width: 48px; height: 48px; flex: none; background: var(--accent); color: var(--cream); border-radius: 10px; transform: rotate(-6deg); font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 26px; box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3.5px rgb(255 250 242 / 0.65); }
.book-cover-text { text-align: center; }
.app-shell .bottom-nav > button.nav-active .nav-icon { color: #7FD6CB; }
@media (max-width: 1023px) {
  .app-shell .stage-foot { display: flex; padding: 26px 10px 30px; border-top: 1px dashed #CFC3AC; margin-top: 26px; }
  .app-shell .stage-foot button { color: var(--ink-soft); }
}

/* =====================================================================
   本番監査（2026-11-16）の修正
   - PC（1080px〜）：中央の列が細いのに Gear のカードを3列にしていたため、
     商品名・説明が1行2〜3文字で縦に流れていた → 列の幅に合わせて並べる（1枚 320px 以上）
   - ヘッダーのボタン「施設を追加」「メニュー」が2行に割れていた → 1行に
   - 施設名：小さい「ッ」「ー」が行頭に来ないように
   ===================================================================== */
.gear-grid, .shop-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important; }
.topbar-actions a, .topbar-actions button { white-space: nowrap; }
.facility-name, .gear-card-copy h4 { line-break: strict; text-wrap: pretty; }
/* PC 右列の「施設を追加」「メニュー」が2行に割れていた → 1行に（左右の余白を詰める） */
.rail-action-button { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
/* 探す画面の「全部・未押印・行きたい・お気に入り」：等幅で「お気に入り」が枠からはみ出していた → 文字の長さに合わせる */
#viewExplore .segment button { flex: 1 1 auto; padding: 0 12px; white-space: nowrap; }

/* 2026-11-17 監査: 中央カラムが狭い PC 幅で、サ飯・宿カードが2列になり本文列が約34pxに潰れる／ランキング参加ボタンが縦長になるのを直す */
@media (min-width: 720px) {
  .sameshi-grid,
  .stay-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  }

  .profile-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .profile-form .profile-share-row,
  .profile-form > .primary-button {
    grid-column: 1 / -1;
  }

  .profile-form .profile-share-row {
    height: auto;
    min-height: 52px;
    padding-block: 8px;
  }

  .profile-form > .primary-button {
    justify-self: start;
    min-width: 200px;
    white-space: nowrap;
  }
}

/* iPhone 表示の是正（2026-11-17） */
/* 比較バー：0件のときは hidden で隠す設計だが display:flex に負けて常に表示され、
   スクロール中も施設カードの上に「比較中 0件」が重なっていた。選択時は下の内容が透けないようにする */
.compare-bar[hidden] { display: none; }
.compare-bar { background: rgb(255 255 255 / 0.98); }
/* 帳面の空き枠：「まだ／押していな／い」と1文字だけ次の行に残らないようにする。
   枠の内側が78px（360px幅では約70px）しかなく「押していない」6文字が入らないため、空き枠だけ左右の余白を詰め12pxにする */
.book-stamp-page.is-empty { padding-inline: 4px; }
.book-stamp-empty-text { font-size: 12px; word-break: keep-all; overflow-wrap: anywhere; }
/* 見出し・出典リンクは行長をそろえ、「覚え／る」「マナ／ー」「（…サウナ／）」のような改行を避ける */
.guide-starter-title,
.news-facility-chips a,
figcaption { text-wrap: balance; }
/* 「読んだら、次のサウナを快適に／する」：文中の <wbr>（「、」の後）だけで折り返す */
.guide-gear-head strong { word-break: keep-all; overflow-wrap: anywhere; }
/* 出典リンクは空白・括弧の位置で折り返す（「星野リゾー／ト」のような語の途中を避ける） */
.news-facility-chips a { word-break: keep-all; overflow-wrap: anywhere; }
/* ニュース一覧のサムネイル：横長画像を中央で切り抜くと左端の分類名（「新店・開店」など）が欠けるため左寄せで切り抜く */
.news-card-thumb { object-position: left center; }
/* 検索欄を上端へ寄せたときに見出し帯へ密着させない */
#viewExplore .search-form { scroll-margin-top: 12px; }

/* 見出し・カード題名の文節改行（2026-11-17）
   phrase.js が文節の切れ目に <wbr> を入れ、ここで <wbr> と空白以外の改行を止める（iPhone Safari は auto-phrase 未対応）。
   keep-all と overflow-wrap: anywhere の組み合わせは Safari で数字の途中で折れるため、1文節が行幅を超えるときの保険は break-word。
   all: unset で「.guide-entry span」等の周囲の span 向けスタイルを受けず、見た目は親のまま。 */
.ph {
  all: unset !important;
  display: inline !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

/* =====================================================================
   メニュー「サ印帳の目次」（2026-11-17 全ページ監査）
   旧メニュー（汎用の青緑ボタン格子）を、サ印帳のデザイン言語で作り直す：
   夜色の羽目板の見出し＋朱の角印、生成りの帳面、明朝の区分見出し＋Barlow の番号、
   点線の罫で区切った項目（名前＋短い説明＋朱の矢印）、現在地の朱の札、姉妹サイトの帯。
   ===================================================================== */
#settingsDialog.menu-book,
#settingsDialog.menu-book[open] {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  width: min(420px, calc(100vw - 28px));
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 18px 0 0 18px;
  box-shadow: -18px 0 42px rgb(0 0 0 / 0.36);
}
#settingsDialog.menu-book { display: none; }
#settingsDialog.menu-book[open] { display: block; }
#settingsDialog.menu-book .mb-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(env(safe-area-inset-top) + 16px) 16px 16px 20px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.03) 0 62px, rgb(0 0 0 / 0.2) 62px 64px),
    var(--night);
  color: var(--cream);
}
#settingsDialog.menu-book .mb-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transform: rotate(-6deg);
  background: var(--accent);
  color: var(--cream);
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 22px;
  box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3.5px rgb(255 250 242 / 0.65);
}
#settingsDialog.menu-book .mb-head-copy { flex: 1 1 auto; min-width: 0; }
#settingsDialog.menu-book .mb-head-en {
  margin: 0 0 2px;
  font-family: var(--num-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #7FD6CB;
}
#settingsDialog.menu-book .mb-head h2 {
  margin: 0;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--cream);
}
#settingsDialog.menu-book .mb-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgb(255 250 242 / 0.55);
  border-radius: 12px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
#settingsDialog.menu-book .mb-close .icon-close { color: var(--cream); }
#settingsDialog.menu-book .mb-close:focus-visible { outline: 2px solid #7FD6CB; outline-offset: 2px; }
#settingsDialog.menu-book .mb-body {
  padding: 18px 18px calc(env(safe-area-inset-bottom) + 28px);
  background:
    linear-gradient(90deg, var(--paper2) 0 6px, transparent 6px),
    var(--cream);
}

/* 検索 */
#settingsDialog.menu-book .mb-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 14px;
}
#settingsDialog.menu-book .mb-search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 12px 0 40px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
}
#settingsDialog.menu-book .mb-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -9px;
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
}
#settingsDialog.menu-book .mb-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  background: var(--ink-soft);
  transform: rotate(45deg);
}
#settingsDialog.menu-book .mb-search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
#settingsDialog.menu-book .mb-search-box:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
#settingsDialog.menu-book .mb-search-submit {
  height: 52px;
  min-width: 64px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
#settingsDialog.menu-book .mb-search-suggestions {
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 5;
  max-height: min(56dvh, 420px);
}

/* 現在地 */
#settingsDialog.menu-book .mb-here {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1.5px dashed #CDBFA5;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
#settingsDialog.menu-book .mb-here > span:last-child { min-width: 0; overflow-wrap: anywhere; }
#settingsDialog.menu-book .mb-here-label {
  flex: none;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--cream);
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

/* 区分 */
#settingsDialog.menu-book .mb-section { margin: 24px 0 0; }
#settingsDialog.menu-book .mb-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 1.5px solid var(--ink);
}
#settingsDialog.menu-book .mb-no {
  font-family: var(--num-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--primary);
}
#settingsDialog.menu-book .mb-section-name {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
#settingsDialog.menu-book .mb-en {
  margin-left: auto;
  font-family: var(--num-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}
#settingsDialog.menu-book .mb-list { margin: 0; padding: 0; list-style: none; }
#settingsDialog.menu-book .mb-list li { margin: 0; border-bottom: 1px dashed #CFC3AC; }
#settingsDialog.menu-book .mb-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  grid-template-areas: "name go" "desc go";
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 10px 4px 10px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}
#settingsDialog.menu-book .mb-item:hover { background: rgb(246 238 223 / 0.7); }
#settingsDialog.menu-book .mb-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
#settingsDialog.menu-book .mb-item-name {
  grid-area: name;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
#settingsDialog.menu-book .mb-item-desc {
  grid-area: desc;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
#settingsDialog.menu-book .mb-item-go {
  grid-area: go;
  justify-self: end;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}
#settingsDialog.menu-book .mb-item.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}
#settingsDialog.menu-book .mb-item.is-current .mb-item-name { color: var(--primary); }
#settingsDialog.menu-book .mb-item.is-current .mb-item-name::after {
  content: "現在地";
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 2px;
}

/* 設定 */
#settingsDialog.menu-book .mb-settings { display: grid; gap: 10px; }
#settingsDialog.menu-book .mb-settings .mb-section-head { margin-bottom: 4px; }
#settingsDialog.menu-book .mb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  margin: 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #DCCFB6;
  border-radius: 12px;
  box-shadow: none;
}
#settingsDialog.menu-book .mb-row-text { display: grid; gap: 2px; min-width: 0; }
#settingsDialog.menu-book .mb-row-text strong { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
#settingsDialog.menu-book .mb-row-text small { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
#settingsDialog.menu-book .mb-select-row select {
  flex: none;
  width: 9.5em;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
#settingsDialog.menu-book .mb-toggle-row input[type="checkbox"] {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  accent-color: var(--primary);
}
#settingsDialog.menu-book .mb-note { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
#settingsDialog.menu-book .mb-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#settingsDialog.menu-book .mb-tool,
#settingsDialog.menu-book .mb-danger {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: none;
  cursor: pointer;
}
#settingsDialog.menu-book .mb-danger { border-color: var(--accent); background: transparent; color: var(--accent); }

/* 姉妹サイト */
#settingsDialog.menu-book .mb-network {
  margin: 28px 0 0;
  padding: 16px 16px 8px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.025) 0 62px, rgb(0 0 0 / 0.18) 62px 64px),
    var(--night);
  color: var(--cream);
}
#settingsDialog.menu-book .mb-network-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--cream);
}
#settingsDialog.menu-book .mb-network-head .mb-en { order: 2; margin: 0; color: rgb(255 250 242 / 0.62); }
#settingsDialog.menu-book .mb-network-list { margin: 0; padding: 0; list-style: none; }
#settingsDialog.menu-book .mb-network-list li { border-top: 1px dashed rgb(255 250 242 / 0.18); }
#settingsDialog.menu-book .mb-site {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  grid-template-areas: "dot name tag" "dot role tag";
  align-items: center;
  column-gap: 10px;
  min-height: 52px;
  padding: 8px 2px;
  color: var(--cream);
  text-decoration: none;
}
#settingsDialog.menu-book .mb-site i { grid-area: dot; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px rgb(255 250 242 / 0.25); }
#settingsDialog.menu-book .mb-site b { grid-area: name; font-size: 15px; font-weight: 700; line-height: 1.4; }
#settingsDialog.menu-book .mb-site > span { grid-area: role; font-size: 13px; line-height: 1.5; color: rgb(255 250 242 / 0.74); }
#settingsDialog.menu-book .mb-site em {
  grid-area: tag;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--cream);
  font-style: normal;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 12px;
}
#settingsDialog.menu-book a.mb-site:hover b { text-decoration: underline; text-underline-offset: 3px; }
#settingsDialog.menu-book a.mb-site:focus-visible { outline: 2px solid #7FD6CB; outline-offset: 2px; }

/* 検索候補：ページ・都道府県の行と0件の案内（探す画面とメニューで共通） */
.search-suggestions .search-suggestions-head + .search-suggestion { margin-top: 0; }
.search-suggestions .search-suggestion + .search-suggestions-head { margin-top: 4px; border-top: 1px dashed #DCCFB6; padding-top: 10px; }
.search-suggestion-page .search-suggestion-name,
.search-suggestion-pref .search-suggestion-name { color: var(--primary); }
.search-suggestions-empty { display: grid; gap: 4px; padding: 10px; }
.search-suggestions-empty strong { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.search-suggestions-empty span { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.search-suggestions-head { font-size: 12px; }
.search-suggestion-meta { font-size: 12px; }
.search-suggestion { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  #settingsDialog.menu-book[open] { animation: none; }
}

/* 全ページ監査（2026-11-17）の是正
   - 日本語が12px未満になっていた箇所（記事の注記 <small>、照合札、サ飯見出しの県名ラベル、制覇マップのマス）を12pxに
   - タップ領域が44px未満の操作（フッター帯のリンク、見出し横の「一覧 →」「コレクション →」、共有・更新などの小ボタン、記事のパンくず）を44pxに */
.main small,
.settings-dialog small { font-size: max(12px, 0.8em); }
.fact-badge,
.facility-h3-label { font-size: 12px; }
.tile-cell { font-size: 12px; line-height: 1; color: rgb(255 250 242 / 0.72); }
.stage-foot button { min-height: 44px; padding: 10px 2px; }
.book-section-link,
.facility-h3-link { min-height: 44px; display: inline-flex; align-items: center; }
.tiny-share-button,
.mini-button { min-height: 44px; }
.main nav[aria-label*="パンくず"] a,
.main .breadcrumb a,
.main .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.main a.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
/* 称号ダイアログの閉じるボタンがカードの角に接していた → 内側に収め、タップ領域を44pxに */
.achievement-dialog .achievement-close { top: 14px; right: 14px; width: 44px; height: 44px; background: rgb(255 250 242 / 0.92); border: 1px solid #DCCFB6; border-radius: 12px; }
/* SP：「トップへ」の横長ボタンがカードの「行きたい」等のボタンに重なって押せなかった →
   帳面の右の余白に寄せた44pxの丸ボタンにし、重なる幅を小さくする（読み上げ名は aria-label のまま） */
@media (max-width: 1023px) {
  .back-to-top {
    right: 4px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
    background: rgb(11 21 20 / 0.9);
    border: 1.5px solid rgb(255 250 242 / 0.5);
  }
  .back-to-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .back-to-top-arrow { font-size: 18px; }
}
/* 押印帳の施設名：長いカタカナ名（例「ホテルモントレエーデルホフ札幌」）が文節改行（keep-all）のまま
   グリッドの最小幅を押し広げ、カードの外へはみ出して切れていた → グリッド項目の最小幅を0にして枠内で折り返す */
.stamp-tile > * { min-width: 0; max-width: 100%; }
.facility-title-link { max-width: 100%; }
/* 記録：県別の進捗マス
   - 先頭の「県マスター」マスが白文字×生成り地で読めなかった → 称号の帯と同じ夜色の地に金の縁
   - 「0/140湯 / あと／140」のように数字だけが次の行に残っていた → 「0/140湯 /」「あと140」の塊ごとに折り返す */
.pref-board .pref-progress.pref-progress-master { background: var(--night); color: var(--cream); border-color: var(--gold2); }
.pref-board .pref-progress.pref-progress-master strong { color: var(--cream); }
.pref-board .pref-progress.pref-progress-master span { color: rgb(255 250 242 / 0.8); }
.pref-progress .pp-chunk { display: inline-block; white-space: nowrap; }
/* Gear の写真ラベル（「サウナハット」など）が92px幅の写真で「サウナハッ／ト」と1文字だけ折れていた → 1行に収める */
.gear-card-visual span { left: 5px; bottom: 5px; max-width: calc(100% - 10px); padding: 4px 5px; white-space: nowrap; letter-spacing: -0.01em; }
/* PC：帳面（中央の列）は最大560pxなのに施設カードを2列にしていたため、施設名が「RENOS／AUNA」、
   経路ボタンが「経／路」と縦に割れていた → 帳面の中では1列にする */
@media (min-width: 1100px) {
  .view-explore .facility-list { grid-template-columns: minmax(0, 1fr); }
}
/* PC 左列のロゴ：縦書きの p に既定の余白が入り、タグライン「一湯、一印。」と英字が帳面の裏に隠れていた
   （1024〜1440px のどの幅でも左列の外へ出ていた）→ 余白を0にし、左列が細い幅では間隔と印を詰めて英字を省く */
@media (min-width: 1024px) {
  .rail-logo p { margin: 0; padding: 0; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .rail-left { padding-left: 24px; padding-right: 24px; }
  .rail-logo { gap: 10px; }
  .rail-logo-side { gap: 10px; }
  .rail-seal { width: 52px; height: 52px; font-size: 26px; }
  .rail-en { display: none; }
}
/* PC 1024〜1199px：右列が232pxしかなく、Gear ボタンが帳面の裏に隠れ、制覇マップのマスがカードの外へはみ出し、
   「次のサ活」が1文字ずつ縦に折れていた → 余白を詰め、ボタンは折り返して並べ、マスは色だけで示す（県名は読み上げ名と title に残る） */
@media (min-width: 1024px) and (max-width: 1199px) {
  .rail-right { padding: 32px 14px; gap: 14px; }
  .rail-actions { flex-wrap: wrap; justify-content: stretch; gap: 8px; }
  .rail-actions .rail-action-button { flex: 1 1 auto; height: 44px; padding: 0 10px; }
  .rail-card { padding: 16px 12px; border-radius: 14px; }
  .rail-card-title { flex-wrap: wrap; gap: 4px 8px; font-size: 16px; }
  .rail-right .tile-map { gap: 2px; }
  .rail-right .tile-cell { font-size: 0; }
  .rail-right .tile-map-legend { flex-wrap: wrap; gap: 6px 12px; }
  .rail-next-row { grid-template-columns: 1fr; gap: 6px; }
  .rail-next-num { width: 36px; height: 36px; }
}
/* 「サウナスタンプラリーの始め方」「サウナ御朱印とサ印の違い」：PC の帳面（560px）で見出しの最小幅に
   グリッドが引っ張られ、見出しと3列の手順が帳面の右へはみ出して切れていた → 列を帳面の幅に収め、手順は縦に並べる */
.intent-page { grid-template-columns: minmax(0, 1fr); }
.intent-page > h2 { font-family: "Shippori Mincho B1", serif; font-weight: 800; letter-spacing: 0.04em; }
@media (min-width: 701px) {
  .intent-page > h2 { font-size: 34px; line-height: 1.35; max-width: none; }
  .intent-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 運営・データ方針：PC の帳面（560px）で4列にしていたため「4,954」が枠からはみ出し、注記が隣の枠に重なっていた → 2列に */
@media (min-width: 701px) {
  .about-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-metrics strong { font-family: var(--num-font); font-weight: 600; font-size: 40px; }
}
.about-metrics article { min-width: 0; overflow-wrap: anywhere; }
/* 探す画面の検索欄：右側の余白を「検索」ボタン分より広く取っていたため入力欄が114px（360px幅では84px）しかなく、
   案内文が「施設名・都道府県」で切れていた → 余白をボタン幅に合わせ、案内文を短くして全文を見せる */
#viewExplore .search-box { padding-right: 76px; }
#viewExplore .search-submit-button { padding: 0 16px; }
/* サウナ入門の記事一覧：題名の最後の1文字（「…日があ／る」）だけが次の行に残っていた → 文節で折り返し、行長をそろえる */
.article-card summary strong { text-wrap: balance; }
/* サウナ仲間「集合施設」の施設候補（探す画面・メニューと同じ候補欄） */
.venue-field { position: relative; }
.venue-field .venue-suggestions { top: calc(100% + 4px); z-index: 30; }
/* 施設追加・サウナ仲間の都道府県など、帳面内のセレクトが高さ約24pxで押しにくかった → 44px・16px に */
.main .view select { min-height: 44px; font-size: 16px; }
/* 存在しない URL の案内（帳面の先頭） */
.route-notfound { display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 16px; border: 1.5px dashed var(--accent); border-radius: 12px; background: #fff; }
.route-notfound-eyebrow { margin: 0; font-family: var(--num-font); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: var(--accent); }
.route-notfound strong { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 20px; line-height: 1.4; color: var(--ink); }
.route-notfound span { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
/* サウニュ〜記事の目次から飛んだ見出しが帳面の上端に密着しない／ヘッダーに隠れないように */
[id^="news-h2-"] { scroll-margin-top: 16px; }
@media (max-width: 1023px) { [id^="news-h2-"] { scroll-margin-top: 12px; } }
/* 消去ボタンは文字があるときだけ出す設計だが、非表示でも幅44pxを占めて入力欄を狭めていた */
#viewExplore .search-clear-button[hidden] { display: none; }
.route-notfound span { text-wrap: balance; }
#viewExplore .search-box input { flex: 1 1 auto; width: auto; min-width: 0; }
#viewExplore .search-box { grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 8px; padding-left: 14px; }
#viewExplore .search-box { column-gap: 6px; }
/* 「サ活の進捗・次の一湯」を開いたとき、411px以上の幅で中の列が548pxに広がり、進捗・スロット・リンクが帳面の右へはみ出していた → 列を帳面の幅に収める */
.explore-extras-content { grid-template-columns: minmax(0, 1fr) !important; }
.explore-extras-content > * { min-width: 0; max-width: 100%; }
.summary-band { grid-template-columns: minmax(0, 1fr) auto; }
/* 残りの小さなタップ領域：施設詳細のパンくず（36px）、ホーム画面追加カードの閉じる（34px）、記事の目次（20px） */
.facility-crumbs button { min-height: 44px; }
.install-dismiss { min-width: 44px; min-height: 44px; }
.news-toc li a { display: inline-block; padding: 10px 0; }
/* 「次の一手」のボタン列が最小356pxの4列で、帳面（PC 560px の内側・430px幅）から「行きたい」「サ飯」がはみ出していた → 2×2 にそろえる */
.quest-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; min-width: 0 !important; }
.quest-actions button { min-height: 44px; }
.text-link-button { min-height: 44px; display: inline-flex; align-items: center; }
#viewCommunity .feature-chip { min-height: 44px; }
#settingsDialog.menu-book .mb-item-desc,
#settingsDialog.menu-book .mb-site > span { text-wrap: balance; }
#settingsDialog.menu-book .mb-search-box input::placeholder { font-size: 15px; }
.lodging-search-card a { min-height: 44px; display: inline-flex; align-items: center; }

/* =====================================================================
   全ページ レイアウト監査（2026-11-17 夜・iPhone 390 で全 5,232 ページを機械走査）
   ===================================================================== */
/* (1) 行頭の長音・小書き仮名：「施設ペ／ージ」「ジャグジ／ー」「データベ／ース」。
   WebKit の line-break: auto は長音符・小書き仮名の前で折り返すため、サイト全体を strict にする */
html { line-break: strict; }
/* (2) 1列グリッドの列幅が「折り返せない一番長い語」に引っ張られ、ページ全体が画面の右へはみ出していた
   （施設名「みのたにグリーンスポーツホテル」等で施設詳細の札・ボタン・本文がすべて右に見切れる。
   ニュース見出し「…2025年11月15日再始動｜フィンランド…」で記事全体が57px はみ出す）。
   列を minmax(0, 1fr) に固定し、長い語は枠の内側で折り返す */
.facility-detail-shell,
.facility-detail,
.facility-near-list,
.ssr-content { grid-template-columns: minmax(0, 1fr); }
.facility-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .facility-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facility-detail > *,
.ssr-content > * { min-width: 0; }
.facility-crumbs > [aria-current] { min-width: 0; overflow-wrap: anywhere; }
.facility-near-main,
.facility-shelf-item { min-width: 0; }
.facility-near-main strong,
.facility-shelf-item strong { overflow-wrap: anywhere; }
/* (3) 施設名・店名：折り返せない1塊が行幅を超える名前（「グリーンスポーツホテル」「サウナリゾートオリエンタル神戸」など）は、
   その塊が1行に収まる大きさまで文字を下げる（--name-run は app.js の nameRunStyle が数えた最長の塊の字数。下限あり）。
   これで枠を押し広げず、語の途中で折れたり1〜2字だけ次の行へ落ちたりしない。塊が行に収まる名前は従来の大きさのまま。
   末尾が漢字2字の地名の名前（「…オリエンタル神戸」）は、下限の大きさまでで名前全体が1行に入るならそうし、入らないときだけ地名の前で折る（--name-len） */
.facility-dh,
.facility-near-main,
.facility-shelf-item,
.facility-card .card-head .facility-name,
.sameshi-card .card-head .facility-name { container-type: inline-size; }
.facility-dh h2 { font-size: clamp(18px, max(calc(100cqi / (var(--name-len, var(--name-run, 1)) * 1.06)), min(18px, calc(100cqi / (var(--name-run, 1) * 1.06)))), 34px); text-wrap: balance; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .facility-dh h2 { font-size: clamp(18px, max(calc(100cqi / (var(--name-len, var(--name-run, 1)) * 1.06)), min(18px, calc(100cqi / (var(--name-run, 1) * 1.06)))), 26px); }
}
.facility-near-main strong[style],
.facility-shelf-item strong[style] { font-size: clamp(12px, max(calc(100cqi / (var(--name-len, var(--name-run, 1)) * 1.06)), min(12px, calc(100cqi / (var(--name-run, 1) * 1.06)))), 16px); }
.facility-card .facility-name[style] .facility-title-link { font-size: clamp(12px, max(calc(100cqi / (var(--name-len, var(--name-run, 1)) * 1.06)), min(12px, calc(100cqi / (var(--name-run, 1) * 1.06)))), 17px); }
.sameshi-card .facility-name[style] { font-size: clamp(12px, max(calc(100cqi / (var(--name-len, var(--name-run, 1)) * 1.06)), min(12px, calc(100cqi / (var(--name-run, 1) * 1.06)))), 17px); }
/* (4) 施設詳細の小見出し「〇〇区のほかのサウナ」：flex の中の素の文字列が字単位で折れ「サウ／ナ」になっていた。
   題を span に入れて文節で折り、英字ラベル・「一覧 →」は収まらなければ次の行へ回す */
.facility-h3 { flex-wrap: wrap; row-gap: 2px; }
.facility-h3-title { min-width: 0; text-wrap: balance; }
/* (5) 施設カードの項目名：62px 固定の列に「施設営業時間」「サウナストーブ」（6〜7字）が入らず「施設営業時／間」「サウナスト／ーブ」と折れていた。
   列をカードの中の一番長い項目名の幅（上限7字）にそろえ、行どうしの頭は subgrid で揃えたままにする */
.card-facts { grid-template-columns: fit-content(7.2em) minmax(0, 1fr); column-gap: 6px; }
.card-facts > div { grid-column: 1 / -1; grid-template-columns: subgrid; }
.card-facts dt { word-break: keep-all; }
/* (6) カード・一覧の施設名：最後の行に1〜2字だけ落ちる（「…サッ／ポロ」「…パーク／岡崎」）のを行の長さをそろえて避ける */
.facility-card .facility-name,
.sameshi-card .facility-name,
.stay-card h3 { text-wrap: balance; }
/* (9) サ印（押印帳）のタイル名：2列のタイルで長い名前の最後の1字が次の行へ落ちていた（「…サッポ／ロ」）→ 施設名と同じく塊が1行に入る大きさへ */
.stamp-title[style] { container-type: inline-size; }
.stamp-title[style] .facility-title-link { font-size: clamp(12px, max(calc(100cqi / (var(--name-len, var(--name-run, 1)) * 1.06)), min(12px, calc(100cqi / (var(--name-run, 1) * 1.06)))), 13px); }

/* =====================================================================
   PC デザイン改善（2026-11-18）。ここから下は PC（1024px 以上）だけに効く指定と、
   SP では見た目が変わらない修正（はみ出しの保険）だけ（フッターは 2026-11-18 監査で main の末尾の共通フッターに変更）。
   ===================================================================== */
/* 記事の要点枠：項目の値が列の最小幅で枠の右へはみ出していた（PC 1280 で 9〜20px）→ 値の列を枠に収める（SP も同じ指定だがはみ出しが無いので見た目は不変） */
.news-factbox-row { grid-template-columns: 104px minmax(0, 1fr); }
.news-factbox-row dd { min-width: 0; overflow-wrap: anywhere; }
/* 要点枠の dl に記事全体向けの「.ssr-content dl は3列」（720px 以上）が当たり、PC で項目が3列に詰め込まれて値が1〜2字ずつ折れていた → 要点枠は1列（SP は元から1列） */
.ssr-content .news-factbox dl { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 1024px) {
  /* 帳面の幅：560px 固定で、1280px では左右の墨色の柱が 360px ずつ・1440px では 440px ずつ空き、
     本文の帳面だけが細く間延びして見えていた → 画面幅に合わせて 560〜700px（1280px で 640px）。左右の柱は 290px 以上を保つ */
  .app-shell { grid-template-columns: minmax(0, 1fr) clamp(560px, 50vw, 700px) minmax(0, 1fr); }
  .rail-left { padding: 40px 36px; }
  .rail-right { padding: 40px 32px; }

  /* 記事（ニュース・入門）の本文：14px の太字で詰まって読みにくかった → 本文は 16px の標準の太さ・行間 1.9。
     要点・表・出典などの小さな文字はそのまま */
  .is-article .ssr-content > p:not(.eyebrow):not(.news-facility-chips),
  .is-article .ssr-content > ul > li { font-size: 16px; font-weight: 400; line-height: 1.9; color: var(--ink); }
  .is-article .ssr-content > p:not(.eyebrow) + p { margin-top: 0.6em; }

}

@media (min-width: 1024px) {
  /* 探す：「全部・未押印・行きたい・お気に入り」と「特徴」が別の行で中央寄せになり、下の「現在地・マイ県・温泉付き…」と行頭がずれていた
     → 検索欄の下に表示切替と「特徴」を1行に並べ、どの群も左端をそろえる */
  #viewExplore .tool-band { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 8px; }
  #viewExplore .tool-band > .search-form,
  #viewExplore .tool-band > .feature-filter-panel { flex: 1 1 100%; }
  #viewExplore .tool-band > .segment { flex: 0 1 auto; margin-top: 12px; }
  #viewExplore .tool-band > .search-refiners { flex: 0 0 auto; margin-top: 12px; }
  #viewExplore .tool-band .feature-filter-toggle { min-height: 38px; height: 38px; border-radius: 999px; padding: 0 16px; }
  /* 「現在地・マイ県」と「温泉付き・個室・セルフロウリュ・外気あり」：1つの行に混ざって最後の1つだけ次の行に落ちていた → 2群を別の行に */
  #viewExplore .area-shortcut { justify-content: flex-start; }
  #viewExplore .area-shortcut .feature-pills { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
  #viewExplore .area-shortcut .feature-pills { order: 2; }
  #viewExplore .area-shortcut .nearby-result { order: 3; }
  #viewExplore .area-shortcut .feature-pills button { width: auto; }

  /* サウナ入門の記事一覧：2列で、開いた記事の本文が約270px（1行17字）に詰まり、隣の列に大きな空白ができていた → 1列 */
  .article-list { grid-template-columns: minmax(0, 1fr); }
  /* サウナ仲間：2列で左の「募集中のサ活」が約160pxに潰れ、見出しが1〜2字ずつ縦に折れていた → 一覧と募集フォームを縦に並べる */
  .community-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1024px) {
  /* 記事の見出しの縦罫と文字が 6px しか離れず詰まって見えた → PC は 14px。要点枠も内側を広げ、項目名と値の間を空ける */
  .news-article-body h2, .ssr-content h2, .article-body h2 { padding-left: 14px; }
  .news-points h2, .news-factbox h3 { padding-left: 12px; }
  .news-factbox { padding: 18px 20px; }
  .news-factbox-row { gap: 14px; }
  .news-nav-heading { margin-left: 0; padding-left: 14px; }
}

/* =====================================================================
   独立監査（2026-11-18）の指摘の是正
   ===================================================================== */
/* SP-H1 / PC-M6 印のページ：上から 印（種別の一字＋サ印）→ 施設名1行 → 日付 → 営業状況かメモ1行。縦書きの所在地は右の列。
   どの要素も絶対配置をやめ、重ならない。名前・メモは1行に収め、収まらなければ「…」（全文は title・読み上げ名） */
.book-stamp-page:not(.is-empty) { aspect-ratio: auto; min-height: 168px; justify-content: flex-start; gap: 4px; padding: 14px 28px 10px 8px; text-align: center; }
.book-stamp-page:not(.is-empty) .book-stamp-seal { flex: none; width: 64px; height: 64px; padding: 4px; margin: 0 0 4px; }
.book-stamp-seal-kanji { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; }
.book-stamp-page .book-stamp-seal-mark { font-size: 12px; line-height: 1.2; margin-top: 2px; }
.book-stamp-name,
.book-stamp-sub { display: block; width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-stamp-name { font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1.4; color: var(--ink); }
.book-stamp-page .book-stamp-date { position: static; max-width: none; display: block; font-family: var(--num-font); font-size: 13px; line-height: 1.3; letter-spacing: 0.02em; color: var(--ink-soft); text-align: center; }
.book-stamp-sub { font-family: var(--hand-font); font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.book-stamp-sub.is-status { font-family: inherit; font-weight: 700; color: var(--accent); }
.book-stamp-page .book-stamp-place { top: 12px; right: 8px; max-height: calc(100% - 24px); overflow: hidden; letter-spacing: 0.02em; line-height: 1.15; font-size: 12px; }
@media (min-width: 1024px) {
  .book-stamp-page:not(.is-empty) { min-height: 196px; padding-right: 34px; }
  .book-stamp-page:not(.is-empty) .book-stamp-seal { width: 80px; height: 80px; }
  .book-stamp-seal-kanji { font-size: 32px; }
  .book-stamp-page .book-stamp-place { font-size: 14px; }
  .book-stamp-name { font-size: 14px; }
}

/* PC-H1・SP-M1 フッター：main.main の末尾に置いた1枚の墨色の帯（FOOTER_SPEC の骨格）。
   PC（1024px 以上）はフッターが文書の外（main の下）にあり、本文は main の中だけがスクロールするため、利用者がたどり着けなかった。
   SP は従来の1行のリンク帯（.stage-foot）だったのを、2列のリンク格子＋小見出し＋注記＋最下段に。旧帯は出さない */
.stage-foot, .app-shell .stage-foot { display: none !important; }
.site-foot { display: block; margin: 40px 0 0; background: #16181d; color: var(--cream); border-radius: 18px 18px 0 0; }
.site-foot-in { padding: 40px 20px calc(96px + env(safe-area-inset-bottom)); }
.site-foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-bottom: 28px; border-bottom: 1px dashed rgb(255 250 242 / 0.22); }
.site-foot-brand { grid-column: 1 / -1; }
.site-foot-logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--cream); text-decoration: none; }
.site-foot-seal { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--cream); font-family: var(--font-display); font-weight: 800; font-size: 22px; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3.5px rgb(255 250 242 / 0.6); }
.site-foot-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: 0.06em; }
.site-foot-brand p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: rgb(255 250 242 / 0.72); }
.site-foot-h { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #7FD6CB; }
.site-foot-col ul { margin: 0; padding: 0; list-style: none; display: grid; }
.site-foot-col a { display: flex; align-items: center; min-height: 44px; color: var(--cream); font-size: 14px; line-height: 1.4; text-decoration: none; }
.site-foot-col a:hover, .site-foot-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-foot-note { margin: 20px 0 0; font-size: 13px; line-height: 1.7; color: rgb(255 250 242 / 0.66); }
.site-foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 8px; font-size: 13px; }
.site-foot-legal a, .site-foot-legal button { min-height: 44px; display: inline-flex; align-items: center; padding: 0; background: none; border: 0; color: rgb(255 250 242 / 0.8); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.site-foot-copy { color: rgb(255 250 242 / 0.5); font-family: var(--num-font); letter-spacing: 0.04em; }
@media (min-width: 1024px) {
  .site-foot { margin-top: 64px; border-radius: 18px; }
  .site-foot-in { padding: 56px 36px 48px; }
  .site-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 24px; padding-bottom: 36px; }
  .site-foot-col a { font-size: 15px; }
  .site-foot-h { font-family: var(--num-font); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
  .site-foot-note { max-width: 44em; margin-top: 24px; }
  .site-foot-legal { gap: 4px 24px; margin-top: 12px; }
  .site-foot-copy { margin-left: auto; }
}

/* SP-M2 / PC-M1 ニュース記事下のナビカード：記事本文向けの「.ssr-content span は緑の12px」が分類チップ・題名にも当たり、
   濃い地に緑の字（コントラスト 1.05〜1.57）・12px の題名になっていた → 本来の指定に戻す */
.ssr-content .news-chip { color: #fff; font-size: 12px; font-weight: 800; }
.ssr-content .news-nav-title { color: var(--ink); font-size: 0.95rem; font-weight: 700; line-height: 1.5; }
.ssr-content .news-nav-kind { color: var(--primary); }
.ssr-content .news-nav-meta { color: rgb(17 24 23 / 0.66); font-weight: 400; }
.ssr-content .news-nav-meta time, .ssr-content .news-nav-meta span:not(.news-chip) { color: inherit; font-weight: 400; }

/* SP-M3 / PC-M5 未確認の項目をまとめた1行：項目名が並ぶので折り返しを文節で */
.facts-missing-row .fact-missing-note { color: var(--ink-soft); line-height: 1.7; }

/* SP-M4 名前の折れ：検索候補・押印帳・サ活ログの施設名は行の長さをそろえる */
.search-suggestion-name, .stamp-title, .visit-log-recent-item strong { text-wrap: balance; }

/* SP-M5 押せる部品を44px以上に：絞り込みの「全部・未押印…」、並び替え、SP 制覇マップの県の選択 */
#viewExplore .segment button { height: 44px; min-height: 44px; }
#viewExplore .tool-band .feature-filter-toggle { height: 44px; min-height: 44px; }
.sort-label select { min-height: 44px; }
.book-map-sp .tile-cell { cursor: default; }
.tile-map-pick { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--cream); }
.tile-map-pick select { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgb(255 250 242 / 0.4); background: #fffdf7; color: var(--ink); font: inherit; font-size: 16px; }

/* SP-L1 / PC-L1 一覧の上の1回だけの注記 */
.list-verify-note { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
#viewExplore .list-verify-note { order: 15; margin-top: 4px; }
#viewExplore #searchResultsStatus { order: 15; }

/* SP-L4 施設詳細の「出典」・「情報修正を知らせる」：文の中の小さなリンクの押せる範囲を上下に広げる（行の高さは変えない） */
.facility-facts dd a { display: inline-block; padding: 10px 6px; margin: -10px -2px; }
.facility-warn button { display: inline-block; padding: 10px 2px; margin: -10px 0; }

/* PC-M3 押印帳：未押印の升の「施設を共有」は線のボタン（黒い塗りのボタンが全升に並んで単調だった） */
.tiny-share-button.is-quiet { color: var(--ink); background: transparent; border: 1px solid #CDBFA5; }

@media (min-width: 1024px) {
  /* PC-M3 押印帳：640〜760px の帳面に4列で、施設名が1字だけの行・語の途中で折れていた → 3列 */
  .stamp-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  /* PC-M4 掲載・お問い合わせ：4列の小カードが約140px で見出しが「経／路」と折れていた → 2列。料金プランの5枚目だけが1枚で残る → 最後の奇数枚は全幅 */
  .business-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-plan-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* PC-L3 サ飯候補：3列で店名が語の途中で折れていた → 2列 */
  .facility-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* PC-M2 1440px 以上：左右の柱の中身（ロゴ・目次／制覇マップ・次のサ活）が外側に寄り、帳面との間が大きく空いていた
   → 帳面を最大 760px に広げ、柱の中身は帳面の側へ寄せる（外側の余白だけが残る） */
@media (min-width: 1440px) {
  .app-shell { grid-template-columns: minmax(0, 1fr) clamp(560px, 50vw, 760px) minmax(0, 1fr); }
  .rail-left { padding-left: max(36px, calc(100% - 360px)); }
  .rail-right { padding-right: max(32px, calc(100% - 380px)); }
}
/* 印のページの施設名は2行まで（文節で折り、収まらなければ「…」）。SP（640px 以下）は1ページ約110px と狭く、縦書きの所在地の列を取ると
   名前が3字しか入らなかった → 所在地は上に横書きの1行で置き、名前・日付・状況は全幅を使う */
.book-stamp-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-wrap: balance; line-height: 1.35; }
@media (max-width: 640px) {
  .book-stamp-page:not(.is-empty) { min-height: 0; padding: 10px 6px; }
  .book-stamp-page .book-stamp-place { position: static; order: -1; writing-mode: horizontal-tb; width: 100%; max-height: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.4; letter-spacing: 0; color: var(--ink-soft); }
  .book-stamp-page:not(.is-empty) .book-stamp-seal { width: 60px; height: 60px; margin: 2px 0 4px; }
  .book-stamp-seal-kanji { font-size: 24px; }
}
@media (max-width: 640px) {
  /* 所在地は「・」の後で2行まで（「福島県・／福島市」） */
  .book-stamp-page .book-stamp-place { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
}
/* SP-M1 SP のフッター：見出しの下にリンクを2列の格子で並べる（FOOTER_SPEC の SP 骨格）。帳面（main）の左右と下の余白まで帯を伸ばす */
@media (max-width: 1023px) {
  .site-foot { margin: 40px -12px -96px; }
  .site-foot-in { padding: 36px 20px 40px; }
  .site-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 24px; }
  .site-foot-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}

/* SP-M5 選択欄：WebKit の標準の見た目のままでは高さの指定が効かず 29px だった → 標準の見た目を外して 44px、矢印は線で描く */
.sort-label select,
.tile-map-pick select { -webkit-appearance: none; appearance: none; height: 44px; min-height: 44px; padding: 0 36px 0 12px; line-height: 1.2;
  background: #fffdf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1d18' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
.tile-map-pick > span { flex: none; white-space: nowrap; }
/* 押印帳（/passport/）：同じ行のタイルの高さにそろえるとき、グリッドの行が伸びて「施設を共有」ボタンだけ縦長（約72px）になっていた
   → タイルの中身は上から詰めて置き、ボタンは中身の高さのまま（2026-11-19 目視確認で発見） */
.stamp-tile { align-content: start; }

/* =====================================================================
   独立監査2（2026-11-19）の指摘の是正
   ===================================================================== */
/* 高-2 記事（ニュース・入門）の本文：SP では「.ssr-content p, li, dd は 14px・太字・灰色」（一覧の SSR 要約向けの指定）が
   本文の段落にも当たり、本文全体が 14px の太字の灰色になっていた（PC だけ 16px に上書きしていた）→ SP も PC と同じ 16px・標準の太さ・本文色 */
.is-article .ssr-content > p:not(.eyebrow):not(.news-facility-chips),
.is-article .ssr-content > ul > li { font-size: 16px; font-weight: 400; line-height: 1.9; color: var(--ink); }
.is-article .ssr-content > p:not(.eyebrow) + p { margin-top: 0.6em; }

/* 中-2 押せる部品を 44px 以上に */
/* 探す：「現在地 2km」「マイ県」・特徴チップ（34px＋見えない当たり判定だった）→ 箱そのものを 44px */
#viewExplore .area-shortcut button { height: 44px; min-height: 44px; }
#viewExplore .area-shortcut button::after { content: none; }
/* 押印帳・施設詳細の「取り消す」（32px）、押印帳の県チップ（40px） */
.tiny-undo-button { min-height: 44px; }
.pref-chip { min-height: 44px; }
/* /add/・/community/ の県の選択欄：WebKit の標準の見た目のままでは高さの指定が効かず 29px だった → 標準の見た目を外して 44px、矢印は線で描く */
.add-form select,
.community-form-grid select,
.community-form select { -webkit-appearance: none; appearance: none; height: 44px; min-height: 44px; padding: 0 36px 0 12px; line-height: 1.2;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1d18' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
@media (min-width: 1024px) {
  /* PC 右の柱の「Gear」「施設を追加」「メニュー」（42px） */
  .rail-action-button { height: 44px; }
}
/* 高-1・中-2 制覇マップの升は見るだけ（13px の升を押す部品にしない）。県の一覧へは下の選択欄から開く */
.tile-cell { cursor: default; }
.rail-map-card .tile-map-pick { flex-direction: column; align-items: stretch; gap: 6px; }
.rail-map-card .tile-map-pick select { width: 100%; }

/* 中-3 ニュース記事下のナビカード：360px では本文の列が約150px しかなく、分類チップ（「受賞・発／表」）と日付（「…12／日」）が
   途中で折れていた → チップと日付はそれぞれ1行のまま、入らなければ日付を次の行へ */
.news-nav-meta { flex-wrap: wrap; row-gap: 4px; }
.news-nav-meta .news-chip,
.news-nav-meta time { flex: none; white-space: nowrap; }

/* 中-5 トップの「サウニュ〜」の帯：流し続けず、横に送ったとき（手でも自動送りでも。app.js）はカードの切れ目で止める */
.news-rail-track { scroll-snap-type: x mandatory; scroll-padding-inline: 2px; }
.news-rail-card { scroll-snap-align: start; }
/* 流していたころは複製の特集カード（240px）に合わせて全カードが 240px の高さにそろっていた → 複製をやめても同じ高さを保つ */
#viewExplore .news-rail-card { min-height: 240px; }
/* SP：先頭カード（84vw）が帯の幅より広く右端が切れ、次のカードがあることも見えなかった → 帯の幅から次のカードの端が覗く分を引いた幅 */
@media (max-width: 640px) {
  #viewExplore .news-rail-card:first-child { flex-basis: calc(100% - 36px); min-width: calc(100% - 36px); }
}
/* サウニュ〜の帯のカード（2026-11-19 オーナー指示「写真なしの色だけのカードは殺風景」）：
   上半分の無地の色面に、帳面の上端（.book-steam）と同じ湯気の線を生成り色で淡く立ちのぼらせ、右上に記事の都道府県を
   ロゴの「サ」（.brand-kakuiin）と同じ朱の角印で押す（app.js の newsRailSealHtml。都道府県が無い記事は湯気だけ）。
   色は既存の --accent / --cream と分類の色面のまま、書体も既存の明朝。カードの高さ（240px）と文字の位置は変えない。 */
#viewExplore .news-rail-card-art { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; pointer-events: none; }
#viewExplore .news-rail-card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='84'%3E%3Cpath d='M20 84c-14-14 14-22 0-36s14-22 0-36' fill='none' stroke='%23FFFAF2' stroke-width='1.3'/%3E%3C/svg%3E") 0 100% / 40px 84px repeat-x;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}
#viewExplore .news-rail-card-seal {
  position: absolute;
  top: 14px;
  right: 16px;
  writing-mode: vertical-rl;
  padding: 10px 7px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--cream);
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3.5px rgb(255 250 242 / 0.65);
}
/* 分類の札と日付の文字：受賞・発表（渋金）とリニューアルの色面で 4.5:1 に届かなかった（札 3.55、日付 3.88）→ 札は白の塗りをやめて生成りの細い枠に、日付と連番は題名と同じ白に */
#viewExplore .news-rail-card .news-chip { background: transparent; box-shadow: inset 0 0 0 1px rgb(255 250 242 / 0.6); }
#viewExplore .news-rail-card-meta,
#viewExplore .news-rail-card-title::before { color: #fff; }

/* 中-6 施設詳細：「営業時間・料金・休館日は、訪問前に公式ページで再確認してください。」が本文の注意書きとページ下のフッターの注記で2回出ていた
   → 施設詳細ではフッターの注記を出さない（本文の注意書きに同じ文がある） */
body[data-active-view="facility"] .site-foot-note { display: none; }
/* 中-6 押印帳：県チップの分母の説明（SP で5行）を折りたたむ。1文目だけを見出しにして、続きは開いて読む */
details.passport-scope-note > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; }
details.passport-scope-note > summary::-webkit-details-marker { display: none; }
details.passport-scope-note > summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
details.passport-scope-note[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.passport-scope-note > p { margin: 0 0 4px; }

/* 中-7 SP のニュース記事：最初の画面に題名が3回（パンくずの最後・見出し・アイキャッチのカード）出ていた
   → SP ではパンくずの最後（今のページの題名）を画面に出さず（読み上げには残す）、アイキャッチは題名の手前（誌名と分類の帯）だけを見せる */
@media (max-width: 1023px) {
  .ssr-content .crumb-current { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ssr-content img[src*="-hero.webp"],
  .news-article-hero { aspect-ratio: 1280 / 238; height: auto; object-fit: cover; object-position: center top; border-bottom: 3px solid #111817; }
}

/* 検索・入力欄（owner 11-19「入力すると画面がズレる」）：iPhone の Safari は文字が 16px 未満の入力欄にフォーカスすると画面を拡大し、
   入力のあとも拡大したまま横にずれる。/contact/（12px）・/ranking/ の参加欄（12px）・/add/（13px）・/community/ の募集欄と集合施設（15px）を 16px に */
:root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
:root :is(select, textarea):not([data-keep-font]) { font-size: max(16px, 1em); }
/* owner-1119 押せる範囲を 44px に（前回の指示に含まれず残っていた部品）。見た目と行の位置はほぼ変えない
   ・枠や塗りのある部品：見た目の大きさはそのまま、枠の外に見えない当たり判定（::after）を足す。::after の上下は calc((100% - 44px) / 2) で、箱の高さによらず 44px にそろう（％は枠線の内側の高さ・幅から測る）
   ・透明な文字の部品：余白を足し、同じだけ負の margin で打ち消す（行の高さ・位置は変わらない） */
.stats-chip-nav button,
.feature-option,
.install-button,
.growth-actions button,
.stay-card a,
.contact-choice,
.business-payment-button,
.visit-log-share-button,
#communityFilter .feature-chip,
.lodging-search-card a,
.spotlight-gear-head .mini-button,
.source-row a,
#guideReferences a,
.sameshi-card .source-badge { position: relative; }
/* 記録（/ranking/）の項目チップ「行きたい」など 40px・記録の「共有」40px */
.stats-chip-nav button::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) -1px; }
.growth-actions button::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) 0; }
/* /add/ の特徴のチェック（label）：SP 38px・PC 34px */
.feature-option::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) -1px; }
/* 421px 以上は特徴のチェックが 34px・行の間 8px で、当たり判定を 44px にすると上下の行と重なる → 行の間を 10px に */
@media (min-width: 421px) { .feature-picker-grid { row-gap: 10px; } }
/* 「ホーム画面に追加」の「手順」38px */
.install-button::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) -1px; }
/* /stay/ の「掲載ページを見る」・/contact/ の種別と「問い合わせる」42px */
.stay-card a::after,
.contact-choice::after,
.business-payment-button::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) 0; }
/* 記録のサ活ログ「画像で共有」34px */
.visit-log-share-button::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) 0; }
/* /community/ の「全国」チップ 幅 42px・施設詳細の宿の「一休」幅 32px */
#communityFilter .feature-chip::after { content: ""; position: absolute; inset: -1px -3px; }
.lodging-search-card a::after { content: ""; position: absolute; inset: 0 calc((100% - 44px) / 2); }
/* トップの Gear の「一覧」32px・「参照元」34px・入門の参考リンク 34px・サ飯の「参照」24px */
.spotlight-gear-head .mini-button::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) 0; }
.source-row a::after,
#guideReferences a::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) -1px; }
#guideReferences { row-gap: 12px; }
.sameshi-card .source-badge::after { content: ""; position: absolute; inset: 0 0 -20px -6px; }
/* 横に送る「参照元」の列は、縦にはみ出した当たり判定が切れるため、列の上下に余白を足して同じだけ詰める */
.source-row { padding-block: 6px; margin-top: -6px; margin-bottom: 6px; }
@media (max-width: 420px) { .source-row { margin-bottom: 4px; } }
/* Amazon・楽天の購入リンク 32〜38px */
a[data-affiliate-vendor] { position: relative; }
a[data-affiliate-vendor]::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2) 0; }
/* 入門の FAQ の問い 42px */
.faq-card summary { padding-block: 13px; }
/* 施設詳細の「出典」40px・「情報修正を知らせる」43px・パンくず「サ印帳」幅 40px */
.facility-facts dd a { padding-block: 12px; margin-block: -12px; }
.facility-warn button { padding-block: 11px; margin-block: -11px; }
.facility-crumbs button { padding-inline: 4px; margin-inline: -2px; }
/* ニュース記事の目次：見出し 32px・項目 42px */
.news-toc summary { min-height: 44px; padding-block: 6px; margin-block: -6px; }
.news-toc li a { padding-block: 11px; margin-block: -1px; }
/* 記録の折りたたみ見出し「告知文テンプレ」24px・「記録のバックアップ・復元」29px・「対象データ・注意点」25px */
.promotion-copy-details > summary { padding-block: 10px; margin: 0 0 -6px; }
.record-backup > summary { padding-block: 7.5px; margin-block: -7.5px; }
.record-backup details > summary { padding-block: 9.5px; margin-block: -9.5px; }
/* 記録の地図の出典リンク 20px */
.map-attribution { padding-block: 12px; margin: -4px 0 -12px; }
/* 記録のランキングの「押印した施設を見る」24px（本番のランキングの行にだけ出る文字のボタン）→ 余白と負の margin で 44px（行の位置は変えない） */
.leaderboard-facilities-button { padding-block: 12px; margin-block: -10px; }

/* ============================================================
   design-extra PR-A（SE-17 特徴パネル / SE-18 並び替え / SE-19 検索候補）
   Mac側Claude の sa-extra.css が正。変数は現行トークンへ読み替えた
   （--num→--num-font、--red→--accent、--sub→--ink-soft、--paper→--paper2）。
   移植時の範囲調整（決定キュー #59、2026-11-25）：SE-19 は探索画面の検索候補が
   対象のため、パネルの外観と行の組みは #searchSuggestions と .se-sug 行に限定し、
   後から増えたメニュー検索・開催地の候補（同じクラスを共用）の見た目は変えない。
   ============================================================ */
/* SE-17 特徴の全件パネル */
.feature-filter-toggle, .feature-filter-toggle[aria-expanded="true"] { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 999px; min-height: 44px; padding: 0 16px; }
.feature-filter-toggle strong { color: #fff; }
#featureFilterPanel.se-fp { margin: 12px 0 0; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 0 16px; box-shadow: none; }
.se-fp-hd { display: flex; align-items: center; gap: 10px; min-height: 56px; border-bottom: 1.5px solid var(--ink); }
.se-fp-hd b { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 18px; }
.se-fp-hd span { font-size: 14px; color: var(--primary); font-weight: 700; }
.se-fp-x { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-size: 20px; cursor: pointer; flex: none; }
.se-fp .form-help { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; margin: 10px 0 0; }
/* 現行の SP 向け規則（#featureFilterPanel .feature-filter-grid の2列・内部スクロール）は
   SE-17 の「群を縦に積む」組みと両立しないため、se-fp の範囲では組みを戻す */
#featureFilterPanel.se-fp .feature-filter-grid { display: block; max-height: none; overflow-y: visible; padding: 0; }
.se-fp-gp { padding: 12px 0; border-bottom: 1px dashed #CFC3AC; }
.se-fp-gp h5 { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.se-fp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.se-fp#featureFilterPanel .feature-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 700; }
.se-fp#featureFilterPanel .feature-chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.se-fp#featureFilterPanel .feature-chip[disabled] { opacity: 0.45; }
.se-fp#featureFilterPanel .feature-chip-count { font-style: normal; font-family: var(--num-font); font-size: 13px; opacity: 0.7; }
.se-fp#featureFilterPanel .feature-unavailable { border-bottom: 1px dashed #CFC3AC; }
.se-fp#featureFilterPanel .feature-unavailable summary { padding: 12px 0; }
.se-fp-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; }
.se-fp-tl { min-height: 44px; border: 0; background: none; font: inherit; font-weight: 700; border-bottom: 1.5px solid var(--ink); font-size: 14px; cursor: pointer; }
.se-fp-tl[hidden] { visibility: hidden; }
.se-fp#featureFilterPanel .search-submit-button { position: static; width: auto; height: auto; margin-top: 0; background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 999px; min-height: 48px; padding: 0 20px; }
/* SE-18 並び替えセレクト */
.results-controls.se-bar { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.se-bar-cnt { font-size: 14px; }
.se-bar-cnt .num { font-family: var(--num-font); font-size: 26px; font-weight: 600; margin-right: 2px; }
.se-sort { margin-left: auto; position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 36px 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }
.se-sort .k { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.se-sort select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 700; min-height: 44px; padding: 0; cursor: pointer; }
.se-sort .cv { position: absolute; right: 14px; pointer-events: none; }
/* SE-19 検索候補パネル（探索画面の #searchSuggestions のみ） */
#searchSuggestions { background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 14px 30px rgb(0 0 0 / 0.18); padding: 0 0 6px; }
#searchSuggestions .search-suggestions-head { padding: 12px 16px 6px; font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0; }
.search-suggestions-subhead { padding: 8px 16px 2px; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
#searchSuggestions .search-suggestion.se-sug { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 58px; padding: 6px 16px; border: 2px solid transparent; border-radius: 0; }
#searchSuggestions .search-suggestion:hover, #searchSuggestions .search-suggestion-active { background: var(--paper2); }
#searchSuggestions .search-suggestion.se-sug.search-suggestion-active { border-color: var(--ink); }
.search-suggestion-main { min-width: 0; }
.search-suggestion-main b { display: block; font-size: 16px; line-height: 1.45; }
.search-suggestion-main small { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.search-suggestions mark { background: linear-gradient(transparent 58%, #BFE3DE 58%); color: inherit; font-weight: 900; }
.st0 { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px dashed #CDBFA5; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 12px; color: #8C8170; }
.st0.d { border: 2.5px solid var(--accent); color: var(--accent); transform: rotate(-10deg); }
.st0.w { border: 2.5px solid var(--teal2); color: var(--teal2); }
.st0.p { border: 2px solid var(--ink); color: var(--ink); border-radius: 8px; }
.search-suggestions-all { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-top: 1px dashed #CFC3AC; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; }

/* ============================================================
   design-extra PR-B1（SE-29 経路リンク / SE-26 施設詳細のタブと地図）
   ============================================================ */
/* SE-29 経路・公式サイトの行 */
.se-route { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.se-route a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.se-route a.r1 { grid-column: 1 / -1; background: #E6F3F1; border-color: var(--primary); }
.se-route a.wide { grid-column: 1 / -1; }
.se-route .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 13px; flex: none; }
.se-route a.r1 .ic { background: var(--primary); }
.se-route b { display: block; font-size: 15px; line-height: 1.35; }
.se-route small { font-size: 12px; color: var(--ink-soft); }
.se-route .go { margin-left: auto; color: var(--ink-soft); }
/* SE-26 タブ（52px・件数つき） */
.facility-tabs.se-dtabs { display: flex; border-bottom: 1.5px solid var(--ink); margin: 18px 0 14px; }
.facility-tabs.se-dtabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; font-weight: 700; font-size: 15px; color: var(--ink-soft); border: 0; border-bottom: 4px solid transparent; margin-bottom: -1.5px; background: transparent; cursor: pointer; }
.facility-tabs.se-dtabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.facility-tab-num { font-size: 14px; color: var(--primary); font-family: var(--num-font); }
/* SE-26 地図（情報タブ内・情報表の直後） */
.facility-h3-more { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--primary); text-decoration: none; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; letter-spacing: 0; }
.facility-map-box { border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--paper2); }
.facility-map-box iframe { display: block; width: 100%; height: 190px; border: 0; }
/* SE-26 サ活ノートの保存済み記録（罫紙＋手書き） */
#facility-pane-note .visit-log-list article { background: #fff; border: 1px solid #DCCFB6; border-radius: 12px; padding: 12px 14px; background-image: repeating-linear-gradient(transparent 0 31px, #F0E6D3 31px 32px); }
#facility-pane-note .visit-log-note { font-family: var(--hand-font); font-size: 16px; line-height: 2; }

/* ============================================================
   design-extra PR-B2（SE-23 更新通知バナー / SE-22 称号ダイアログ）
   ============================================================ */
/* SE-23 更新通知バナー */
.app-update-notice.se-upd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 12px 12px 14px; margin-bottom: 20px; border: 2px solid var(--primary); border-radius: 14px; background: #E6F3F1; color: var(--ink); font-size: 14px; line-height: 1.6; }
.app-update-notice.se-upd[hidden] { display: none; }
.se-upd .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-family: "Shippori Mincho B1", serif; font-weight: 800; flex: none; }
.se-upd div { flex: 1; min-width: 200px; }
.se-upd b { display: block; font-size: 16px; }
.se-upd small { font-size: 13.5px; color: #2C4A46; line-height: 1.7; }
.se-upd-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--primary); background: var(--primary); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.se-upd-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-size: 18px; cursor: pointer; flex: none; }
/* SE-22 称号ダイアログ */
.se-tdlg .achievement-card { background: var(--night); color: var(--cream); border: 1px solid rgb(255 250 242 / 0.16); border-radius: 20px; padding: 34px 26px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); }
.se-tdlg .achievement-card::before, .se-tdlg .achievement-card::after { content: none; }
.se-tdlg-md { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--gold2); display: grid; place-items: center; font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 34px; color: var(--gold2); justify-self: center; box-shadow: 0 0 0 3px var(--night), 0 0 0 4.5px var(--gold2); }
.se-tdlg-seal { width: 120px; height: 120px; margin: 6px auto; display: grid; place-items: center; border: 3px solid var(--accent); border-radius: 18px; color: var(--accent); font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 52px; transform: rotate(-6deg); background: rgb(255 250 242 / 0.06); }
.se-tdlg .eyebrow { color: var(--gold2); }
.se-tdlg .achievement-card h2 { font-family: "Shippori Mincho B1", serif; font-weight: 800; font-size: 26px; letter-spacing: 0.08em; color: var(--cream); }
.se-tdlg .achievement-card p { font-size: 15px; opacity: 0.85; }
.se-tdlg .achievement-card p.eyebrow { opacity: 1; }
.se-tdlg .primary-button { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 999px; min-height: 48px; padding: 0 26px; justify-self: center; }
.se-tdlg .achievement-close { width: 44px; height: 44px; border-radius: 50%; color: var(--cream); background: rgb(255 250 242 / 0.12); }
