:root {
  color-scheme: light;
  --ink: #101417;
  --muted: #68716e;
  --paper: #fbfbf7;
  --mist: #eef3ee;
  --line: #d9ded8;
  --coal: #222626;
  --night: #111616;
  --teal: #00756f;
  --cedar: #2d6a4f;
  --coral: #d85a3a;
  --gold: #bb8d23;
  --water: #2473a6;
  --shadow: 0 14px 34px rgb(16 20 23 / 0.12);
  --nav-height: 74px;
}

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

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

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgb(10 143 138 / 0.18), transparent 320px),
    linear-gradient(135deg, #f7faf6 0%, #e6efea 46%, #f7efe1 100%);
  font-family:
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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: #101417;
  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:
    linear-gradient(90deg, rgb(9 13 15 / 0.9) 0%, rgb(9 13 15 / 0.72) 32%, rgb(9 13 15 / 0.1) 72%),
    url("./assets/saincho-header-ritual.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.topbar::after {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgb(255 214 111 / 0.2), transparent 24%),
    linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(16 20 23 / 0.42));
  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: 11px;
  font-weight: 800;
}

.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: 11px;
  font-weight: 900;
  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: #101417;
  background: linear-gradient(180deg, #ffe47e, #c39122);
  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: 1000;
}

.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:
    linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(238 247 244 / 0.94)),
    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: 800;
  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: 900;
}

.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:
    linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(238 247 244 / 0.95)),
    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: 800;
  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: 900;
  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:
    linear-gradient(180deg, rgb(16 20 23 / 0.18), rgb(16 20 23 / 0.74)),
    linear-gradient(90deg, rgb(16 20 23 / 0.82), rgb(16 20 23 / 0.12) 64%),
    url("./assets/sauna-hero.webp") center / cover no-repeat,
    linear-gradient(135deg, #101417, #2a3330 58%, #3d3023);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.summary-band::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 68%, rgb(16 20 23 / 0.72)),
    radial-gradient(circle at 88% 18%, rgb(10 143 138 / 0.36), transparent 30%);
  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: 800;
}

.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:
    radial-gradient(circle, #101417 54%, transparent 55%),
    conic-gradient(var(--teal) var(--progress, 0%), rgb(255 255 255 / 0.2) 0);
  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: 11px;
  font-weight: 900;
}

.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: 10px;
  font-style: normal;
  font-weight: 900;
  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: 900;
}

.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:
    linear-gradient(135deg, rgb(16 20 23 / 0.96), rgb(24 62 58 / 0.94)),
    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: 10px;
  font-weight: 1000;
  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: 11px;
  font-style: normal;
  font-weight: 900;
  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: #101417;
  background: #f7d773;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  font-weight: 900;
}

.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: linear-gradient(180deg, rgb(251 251 247 / 0.96), rgb(251 251 247 / 0.88));
  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: 800;
  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: 800;
}

.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: 800;
  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: 11px;
  font-weight: 900;
}

.seo-answer-panel summary strong {
  color: #31413d;
  font-size: 13px;
  font-weight: 900;
  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: 800;
  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: 900;
  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: 900;
  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:
    linear-gradient(135deg, rgb(16 20 23 / 0.94), rgb(30 58 54 / 0.95)),
    linear-gradient(135deg, var(--night), var(--cedar));
  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: 11px;
  font-weight: 900;
}

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

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

.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: 900;
  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: linear-gradient(135deg, var(--night), var(--teal));
  border-radius: 8px;
  font-weight: 900;
  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:
    linear-gradient(90deg, rgb(10 143 138 / 0.045), transparent 56%),
    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:
    radial-gradient(circle at center, transparent 56%, var(--stamp-color) 58%, var(--stamp-color) 61%, transparent 63%),
    linear-gradient(145deg, var(--stamp-bg), white);
  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:
    linear-gradient(currentColor, currentColor) center / 34px 3px no-repeat,
    radial-gradient(circle at 50% 35%, currentColor 0 10px, transparent 11px);
  opacity: 0.12;
}

.stamp-kanji {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: 900;
  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: 11px;
  font-weight: 900;
  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: 11px;
  font-weight: 800;
  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: 11px;
  font-weight: 800;
}

.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: 900;
  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: #101417;
  border-radius: 8px;
  font-weight: 900;
}

.facility-share-button {
  width: 100%;
  margin-top: 8px;
  color: white;
  background: #101417;
  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: #101417;
  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: 900;
}

.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: linear-gradient(180deg, rgb(16 20 23 / 0.02), rgb(16 20 23 / 0.42));
}

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

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

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

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

.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: 900;
  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: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  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: 11px;
  font-weight: 900;
  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: 11px;
  font-weight: 900;
}

.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: #101417;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.detail-gear-grid article a:nth-child(2) {
  color: #101417;
  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: 11px;
  font-weight: 900;
  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: linear-gradient(135deg, #f8fffc, #ecf7f2);
  border: 1px solid rgb(10 143 138 / 0.2);
  border-radius: 8px;
  text-align: left;
}

.quick-note-button span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 1000;
}

.quick-note-button strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  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: 900;
}

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

.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: 900;
  cursor: pointer;
  list-style: none;
}

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

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

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

.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:
    linear-gradient(135deg, rgb(16 20 23 / 0.93), rgb(36 64 59 / 0.94)),
    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: 11px;
  font-weight: 900;
}

.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: 800;
  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: linear-gradient(90deg, var(--teal), var(--gold));
  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;
}

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

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

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

.stamp-note {
  width: 100%;
  margin: 0;
  padding: 8px;
  color: #34413d;
  background: #f5f7f3;
  border-radius: 8px;
  font-size: 11px;
  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: 11px;
  font-weight: 900;
}

.tiny-share-button {
  min-height: 32px;
  padding: 0 10px;
  color: white;
  background: #101417;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

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

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

.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:
    linear-gradient(135deg, rgb(10 143 138 / 0.12), rgb(247 215 115 / 0.14)),
    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: 800;
  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: 900;
  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: 11px;
  font-weight: 1000;
}

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

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

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

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

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

.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: 900;
  white-space: nowrap;
}

.leaderboard-summary {
  padding: 10px;
  color: #33413d;
  background: #f6fbf8;
  border: 1px solid #d8ebe5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  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: linear-gradient(135deg, #f7d773, #b6841e);
}

.leaderboard-row.is-top-2 > strong {
  color: #263039;
  background: linear-gradient(135deg, #eef3f6, #a8b4bd);
}

.leaderboard-row.is-top-3 > strong {
  color: #302218;
  background: linear-gradient(135deg, #e5b486, #9b5c2d);
}

.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: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

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

.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: 800;
  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: 900;
  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: 900;
  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:
    linear-gradient(135deg, rgb(16 20 23 / 0.96), rgb(44 74 66 / 0.94)),
    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:
    linear-gradient(135deg, rgb(36 115 166 / 0.95), rgb(16 20 23 / 0.94)),
    var(--water);
}

.sameshi-hero {
  background:
    linear-gradient(135deg, rgb(187 141 35 / 0.92), rgb(16 20 23 / 0.94)),
    var(--gold);
}

.stay-hero {
  background:
    linear-gradient(135deg, rgb(36 64 59 / 0.95), rgb(16 20 23 / 0.94)),
    var(--cedar);
}

.contact-hero {
  background:
    linear-gradient(135deg, rgb(10 143 138 / 0.9), rgb(16 20 23 / 0.95)),
    var(--teal);
}

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

.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: 800;
  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:
    linear-gradient(135deg, rgb(16 20 23 / 0.18), rgb(16 20 23 / 0.02)),
    linear-gradient(135deg, #f7d773, #d85a3a);
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}

.meal-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgb(16 20 23 / 0.7));
}

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

.meal-photo-ramen {
  background-image:
    linear-gradient(135deg, rgb(16 20 23 / 0.18), rgb(16 20 23 / 0.02)),
    radial-gradient(circle at 78% 16%, rgb(255 255 255 / 0.58), transparent 34%),
    linear-gradient(135deg, #f7d773, #d85a3a);
}

.meal-photo-curry {
  background-image:
    linear-gradient(135deg, rgb(16 20 23 / 0.18), rgb(16 20 23 / 0.02)),
    radial-gradient(circle at 82% 18%, rgb(255 255 255 / 0.48), transparent 32%),
    linear-gradient(135deg, #c3903e, #3d2b20);
}

.meal-photo-meat {
  background-image:
    linear-gradient(135deg, rgb(16 20 23 / 0.18), rgb(16 20 23 / 0.02)),
    radial-gradient(circle at 74% 18%, rgb(255 255 255 / 0.45), transparent 34%),
    linear-gradient(135deg, #b84c35, #5b1f1a);
}

.meal-photo-don,
.meal-photo-friedrice {
  background-image:
    linear-gradient(135deg, rgb(16 20 23 / 0.18), rgb(16 20 23 / 0.02)),
    radial-gradient(circle at 78% 18%, rgb(255 255 255 / 0.5), transparent 34%),
    linear-gradient(135deg, #f2c36b, #2c6e63);
}

.meal-photo-teishoku,
.meal-photo-cafe,
.meal-photo-gyoza,
.meal-photo-pasta,
.meal-photo-hotpot {
  background-image:
    linear-gradient(135deg, rgb(16 20 23 / 0.18), rgb(16 20 23 / 0.02)),
    radial-gradient(circle at 76% 18%, rgb(255 255 255 / 0.48), transparent 34%),
    linear-gradient(135deg, #f7d773, #0a8f8a);
}

.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: 800;
  line-height: 1.45;
}

.sameshi-source {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  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: 11px;
  font-weight: 900;
}

.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: 800;
  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: 900;
  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: 11px;
  font-weight: 900;
}

.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: 800;
  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: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.business-payment-button-inquiry {
  color: #101417;
  background: linear-gradient(180deg, #ffe26d, #bf8f1a);
}

.business-value-card {
  background: linear-gradient(135deg, rgb(255 255 255 / 0.94), rgb(237 248 245 / 0.92));
}

.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: 800;
  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: 900;
  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: 900;
}

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

.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: 900;
  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: linear-gradient(180deg, var(--teal), var(--gold));
}

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

.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: 800;
  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: 11px;
  font-weight: 900;
}

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

.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: 900;
  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: 900;
  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: 900;
  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: 800;
  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: 900;
  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: linear-gradient(135deg, var(--night), var(--gold));
  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: 11px;
}

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

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

.form-hint {
  margin: -2px 0 0;
  color: #52605b;
  font-size: 12px;
  font-weight: 800;
  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: 11px;
  font-weight: 900;
}

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

.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: 900;
  text-align: left;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #34413d;
  font-size: 14px;
  font-weight: 800;
  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: 900;
}

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

.install-steps span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  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:
    radial-gradient(circle at 50% 30%, rgb(187 141 35 / 0.3), transparent 32%),
    rgb(16 20 23 / 0.68);
  backdrop-filter: blur(4px);
}

.achievement-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  text-align: center;
  background:
    linear-gradient(180deg, #fffaf0, #f4fbf6),
    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: 900;
  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: 800;
  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: 10px;
  }

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

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

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

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