:root {
  --bg: #f4f0eb;
  --surface: #f8f4ee;
  --surface-soft: #fff8dc;
  --text: #050505;
  --muted: #5f5a53;
  --line: #e3ddd3;
  --accent: #f4cc47;
  --accent-dark: #000000;
  --warning: #fff6d8;
  --warning-line: #ead58f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-shell {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

main,
.sidebar,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 184px;
  align-items: center;
  gap: 24px;
  border-bottom: 0;
  background: var(--accent);
  padding-left: max(18px, calc((100vw - 1120px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.brand-mark {
  display: none;
}

.brand span:last-child {
  display: grid;
  line-height: 0.95;
}

.brand strong {
  display: block;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  max-width: none;
  color: #000;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 22px;
}

.top-nav a,
.quick-links a,
.read-more,
.page-link,
.page-number {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: inherit;
  font-weight: 500;
  padding: 0;
}

.subscribe-link {
  display: grid;
  min-height: 66px;
  place-items: center;
  background: #000;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  padding: 0 24px;
}

.quick-links a,
.read-more,
.page-link,
.page-number {
  border: 1px solid #000;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: #000;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.section-head {
  padding: 28px 0 12px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

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

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

.seo-guide article,
.faq-section {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
}

.seo-guide h3,
.faq-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.seo-guide p,
.faq-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-section {
  margin: 20px 0 4px;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq-section details:first-of-type {
  border-top: 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-section summary + p {
  margin-top: 8px;
}

.mountain-finder {
  margin-top: 44px;
  padding: 48px 52px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.finder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.finder-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.reset-button,
.detail-head button {
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

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

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row strong {
  width: 54px;
  font-size: 14px;
}

.filter-row button,
.check-pill {
  border: 1px solid #d8d0c4;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.filter-row button.is-active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.check-pill input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.finder-search input {
  width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  padding: 12px;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.result-meta strong {
  color: var(--accent-dark);
}

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

.mountain-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 18px;
  text-align: left;
}

.mountain-card:hover {
  border-color: #000;
  box-shadow: none;
}

.mountain-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.15;
}

.mountain-card span {
  color: var(--muted);
  font-size: 14px;
}

.mountain-card .card-region {
  width: fit-content;
  border-radius: 0;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  padding: 3px 9px;
}

.mountain-card .card-access {
  color: #000;
  font-weight: 800;
}

.mountain-card-image {
  width: 100%;
  min-height: 150px;
  max-height: 170px;
  object-fit: cover;
  background: var(--surface-soft);
}

.mountain-card-image-wrap,
.detail-visual-wrap,
.course-image-wrap {
  display: block;
}

.mountain-card-image-wrap .image-placeholder,
.detail-visual-wrap .image-placeholder,
.course-image-wrap .image-placeholder {
  display: none;
}

.image-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mountain-card-image.image-placeholder {
  min-height: 150px;
  max-height: 170px;
}

.mountain-card-body {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0;
}

.empty-result {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.mountain-detail-panel {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  padding: 0;
}

.mountain-finder.is-reading .finder-head,
.mountain-finder.is-reading .filter-panel,
.mountain-finder.is-reading .result-meta,
.mountain-finder.is-reading .mountain-grid {
  display: none;
}

.mountain-finder.is-reading {
  padding: 0;
  border: 0;
  background: transparent;
}

.detail-article {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 52px 56px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.detail-head h3 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.detail-meta {
  margin: 0 0 22px;
  color: #000;
  font-size: 14px;
}

.detail-lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: #000;
  font-size: 17px;
  line-height: 1.55;
}

.detail-visual {
  width: 100%;
  height: min(380px, 50vw);
  margin: 24px 0 34px;
  object-fit: cover;
  background: var(--surface-soft);
}

.detail-visual.image-placeholder {
  height: min(380px, 50vw);
  margin: 24px 0 34px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.detail-facts div {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.mountain-detail-panel h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.detail-info-summary {
  margin: 20px 0 24px;
}

.detail-info-summary dl {
  margin: 0;
  border-top: 2px solid #000;
}

.detail-info-summary div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.detail-info-summary dt {
  width: fit-content;
  background: var(--accent);
  color: #000;
  font-size: 14px;
  font-weight: 900;
  padding: 2px 8px;
}

.detail-info-summary dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.course-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-list li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px;
}

.course-image {
  width: 132px;
  height: 88px;
  object-fit: cover;
  background: var(--surface-soft);
}

.course-image.image-placeholder {
  width: 132px;
  height: 88px;
}

.course-body {
  display: grid;
  gap: 3px;
}

.course-list span,
.course-list em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.course-data-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.course-data-badges span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.official-route-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.official-route-list li {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 12px;
}

.official-route-list span {
  color: var(--muted);
  font-size: 14px;
}

.detail-source {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.detail-source a {
  border-radius: 0;
  background: #000;
  color: #fff;
  font-weight: 800;
  padding: 7px 11px;
}

.detail-warning {
  margin: 14px 0 0;
  border: 1px solid var(--warning-line);
  border-radius: 8px;
  background: var(--warning);
  color: #5f4c12;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.post-card {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  overflow: hidden;
}

.post-card-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.post-thumb {
  min-height: 176px;
  background: var(--surface-soft);
}

.post-content {
  padding: 22px;
}

.post-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-content h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.post-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.read-more {
  display: inline-flex;
}

.article-view {
  padding-top: 42px;
}

.article-header h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.safety-box {
  margin: 20px 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--warning-line);
  border-radius: 8px;
  background: var(--warning);
  color: #5f4c12;
  font-weight: 700;
}

.article-body {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 17px;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
  line-height: 1.3;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.sidebar {
  display: none;
}

.side-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.search-box {
  display: flex;
  gap: 8px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.search-box button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  padding: 10px 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.page-numbers {
  display: flex;
  gap: 6px;
}

.site-footer {
  margin-top: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .mountain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .top-nav {
    justify-content: flex-start;
    gap: 16px;
    font-size: 18px;
  }

  .subscribe-link {
    min-height: 46px;
    width: fit-content;
    padding: 0 18px;
  }

  .hero {
    padding-top: 28px;
  }

  .post-card-link {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    min-height: 190px;
  }

  .finder-head,
  .detail-head {
    flex-direction: column;
  }

  .mountain-finder,
  .detail-article {
    padding: 28px 20px;
  }

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

  .filter-row {
    align-items: flex-start;
  }

  .filter-row strong {
    width: 100%;
  }

  .mountain-grid,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .mountain-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .detail-info-summary div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .course-list li {
    grid-template-columns: 1fr;
  }

  .course-image {
    width: 100%;
    height: 150px;
  }

  .mountain-card-body {
    padding: 0;
  }

  .sidebar {
    padding-top: 0;
  }
}
