:root {
  --ink: #20312d;
  --muted: #65736f;
  --line: #d9dfd7;
  --paper: #fbfcf8;
  --wash: #eef3ee;
  --panel: #ffffff;
  --forest: #24473f;
  --teal: #2f6f73;
  --brick: #a9473a;
  --gold: #c48a3a;
  --violet: #62507f;
  --shadow: 0 12px 28px rgba(28, 43, 39, 0.1);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(47, 111, 115, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 8px 12px;
  color: #fff;
  background: var(--forest);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner,
.section,
.hero__inner,
.page-hero__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--forest), var(--teal));
  border-radius: 50%;
  font-size: 0.78rem;
}

.brand__text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--wash);
}

.hero {
  background:
    linear-gradient(135deg, rgba(36, 71, 63, 0.95), rgba(47, 111, 115, 0.88)),
    radial-gradient(circle at top right, rgba(196, 138, 58, 0.48), transparent 40%);
  color: #fff;
}

.hero__inner {
  display: grid;
  gap: 28px;
  padding: 42px 0 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.article-header h1 {
  margin: 12px 0 10px;
  line-height: 1.22;
  font-size: 2rem;
}

.hero p,
.page-hero p,
.article-header p {
  margin: 0;
  color: inherit;
  max-width: 760px;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.86);
}

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

.quick-stat {
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.quick-stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.quick-stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
}

.section {
  padding: 34px 0;
}

.section--tight {
  padding-top: 20px;
}

.section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section__head h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  background: linear-gradient(135deg, #eaf1ed, #fbfcf8 72%);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  padding: 34px 0 26px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--teal);
  text-decoration: none;
}

.breadcrumbs span:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #99a59f;
}

.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: #e7efea;
  font-size: 0.86rem;
  font-weight: 700;
}

.meta-chip {
  color: var(--muted);
  background: #f0f3ef;
}

.card-grid,
.theme-grid,
.column-grid,
.municipality-grid {
  display: grid;
  gap: 14px;
}

.spot-grid {
  display: grid;
  gap: 16px;
}

.municipality-card,
.theme-card,
.column-card,
.spot-card,
.info-panel,
.article-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(28, 43, 39, 0.05);
}

.municipality-card,
.theme-card,
.column-card,
.article-link-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  text-decoration: none;
}

.municipality-card:hover,
.theme-card:hover,
.column-card:hover,
.article-link-card:hover {
  border-color: rgba(47, 111, 115, 0.42);
  box-shadow: var(--shadow);
}

.card-kicker {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.municipality-card h3,
.theme-card h3,
.column-card h3,
.article-link-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.municipality-card p,
.theme-card p,
.column-card p,
.article-link-card p {
  margin: 0;
  color: var(--muted);
}

.spot-card {
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.spot-card:hover {
  border-color: rgba(47, 111, 115, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

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

.spot-card__link {
  display: grid;
  grid-template-columns: 1fr;
  color: inherit;
  text-decoration: none;
}

.spot-media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  overflow: hidden;
  background: var(--wash);
}

.spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.placeholder::before,
.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.placeholder::before {
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 76%, rgba(0, 0, 0, 0.16), transparent 32%);
}

.placeholder::after {
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
}

.placeholder__symbol {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 1.3rem;
}

.placeholder__label {
  display: block;
  font-weight: 800;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.24);
}

.placeholder__sub {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.placeholder--history {
  background: linear-gradient(135deg, #6b3c36, #c48a3a);
}

.placeholder--museum {
  background: linear-gradient(135deg, #3b5275, #8b6f9e);
}

.placeholder--nature {
  background: linear-gradient(135deg, #2c644d, #8aa659);
}

.placeholder--onsen {
  background: linear-gradient(135deg, #a9473a, #d7a45a);
}

.placeholder--roadside {
  background: linear-gradient(135deg, #2f6f73, #c48a3a);
}

.placeholder--park {
  background: linear-gradient(135deg, #376b52, #78a86a);
}

.placeholder--culture {
  background: linear-gradient(135deg, #544a78, #b76b61);
}

.placeholder--leisure {
  background: linear-gradient(135deg, #2f6f73, #6a90a8);
}

.placeholder--food {
  background: linear-gradient(135deg, #8a4b32, #c48a3a);
}

.spot-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.spot-title-line {
  display: grid;
  gap: 6px;
}

.spot-title-line h3 {
  margin: 0;
  line-height: 1.35;
  font-size: 1.18rem;
}

.spot-summary {
  margin: 0;
  color: var(--muted);
}

.spot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spot-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f0f3ef;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.score-chip {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.score-chip__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.score-chip__top strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9e4;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.filter-panel {
  display: grid;
  gap: 16px;
}

.filter-controls {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f8f4;
}

.field {
  display: grid;
  gap: 5px;
}

.field span,
.check-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c9d2cc;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.check-row {
  display: grid;
  gap: 8px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #dce3de;
  border-radius: var(--radius);
  background: #fff;
}

.check-field input {
  width: 18px;
  height: 18px;
}

.result-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.result-line strong {
  color: var(--ink);
}

.no-results {
  padding: 18px;
  border: 1px dashed #b8c5bd;
  border-radius: var(--radius);
  color: var(--muted);
  background: #f6f8f4;
}

.detail-layout {
  display: grid;
  gap: 18px;
}

.detail-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--wash);
}

.detail-media .spot-media {
  min-height: 240px;
}

.detail-main,
.article-body {
  display: grid;
  gap: 22px;
}

.detail-main h2,
.article-body h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  line-height: 1.35;
}

.detail-main p,
.article-body p {
  margin: 0;
  color: var(--muted);
}

.info-panel {
  padding: 16px;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1ed;
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
}

.score-table {
  display: grid;
  gap: 10px;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(88px, 120px) 1fr 32px;
  align-items: center;
  gap: 10px;
}

.score-row span:first-child {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.score-row strong {
  text-align: right;
}

.article-header {
  background: linear-gradient(135deg, #eef3ee, #fff 76%);
  border-bottom: 1px solid var(--line);
}

.article-header__inner {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 26px;
}

.article-body {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.article-section {
  padding-bottom: 8px;
}

.markdown-content {
  display: grid;
  gap: 14px;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin: 0;
  line-height: 1.35;
}

.markdown-content h1 {
  font-size: 1.48rem;
}

.markdown-content h2 {
  font-size: 1.22rem;
  margin-top: 6px;
}

.markdown-content h3 {
  font-size: 1.06rem;
}

.markdown-content p,
.markdown-content ul {
  margin: 0;
  color: var(--muted);
}

.markdown-content ul {
  padding-left: 1.2em;
}

.markdown-content li + li {
  margin-top: 4px;
}

.related-band {
  background: #eef3ee;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: #20312d;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
  display: grid;
  gap: 6px;
  padding: 26px 0;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

@media (min-width: 680px) {
  .hero__inner {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    padding: 56px 0 38px;
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: 2.5rem;
  }

  .card-grid,
  .theme-grid,
  .column-grid,
  .municipality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spot-card__link {
    grid-template-columns: minmax(220px, 34%) 1fr;
  }

  .spot-media {
    min-height: 100%;
  }

  .filter-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .check-row {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
  }
}

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

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

  .filter-controls {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .check-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 420px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .site-nav {
    width: 100%;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }
}
