: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 h1,
.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 h1 {
  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);
}

.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: none;
  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 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: #007f77;
  --primary-soft: #e0f1ed;
  --accent: #e74834;
  --accent-soft: #ffebe6;
  --gold: #f0c84b;
  --stamp: #e74834;
  --stamp-dark: #b93225;
  --wishlist: #008a80;
  --share: #4a5ec7;
  --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: 11px;
  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: 10px;
  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: 10px;
  }

  .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: 10px;
  }
}

@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-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);
}

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

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

  .topbar h1 {
    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 h1 {
    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));
  }
}

@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 h1 {
  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 h1 {
    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 h1 {
  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 h1 {
    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: 11px;
  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: 11px;
}

.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: 11px; }

.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: 11px; font-weight: 900; }
.community-participation { display: grid; gap: 7px; text-align: center; }
.community-participation span { color: var(--muted); font-size: 11px; 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: 10px;
  }

  .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: #007f77;
  --primary-soft: #e0f1ed;
  --accent: #e74834;
  --accent-soft: #ffebe6;
  --gold: #f0c84b;
  --stamp: #e74834;
  --stamp-dark: #b93225;
  --wishlist: #008a80;
  --share: #4a5ec7;
  --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: 11px; 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: 10px;
  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: 10px; }
  .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: 10px; }
}

@media (max-width: 390px) {
  .nearby-notification-row small { display: inline; font-size: 9px; }
  .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: 10px;
    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;
  }
}
