:root {
  --bg: #f7f4ee;
  --paper: #fffdf9;
  --paper-2: #f1ece4;
  --text: #1d1b18;
  --muted: #6d665e;
  --line: #d8d0c4;
  --line-strong: #b6ab9c;
  --accent: #5b4b3a;
  --accent-2: #84715d;
  --shadow: 0 10px 35px rgba(20, 16, 10, 0.08);
  --shadow-soft: 0 6px 18px rgba(20, 16, 10, 0.06);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1240px;
  --max-reading: 760px;
  --header-height: 78px;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "HGS明朝E", "Noto Serif JP", Georgia, serif;
  --font-sans: "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0)),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--text);
  text-decoration-color: rgba(29, 27, 24, 0.3);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: rgba(91, 75, 58, 0.7);
}

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

::selection {
  background: rgba(132, 113, 93, 0.18);
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.reading-width,
.article-body,
.page-body,
.longform {
  max-width: var(--max-reading);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid rgba(182, 171, 156, 0.35);
}

.site-header .wrap {
  display: grid;
  gap: 18px;
  align-items: center;
  min-height: var(--header-height);
  padding: 14px 0;
}

.site-branding {
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: auto 1fr;
}

.site-logo img {
  width: 188px;
  max-width: 48vw;
  height: auto;
}

.site-title-group {
  min-width: 0;
}

.site-title-group .eyebrow,
.eyebrow,
.kicker {
  margin: 0 0 0.35rem;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-title-group h1,
.page-title,
.article-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.site-title-group .deck,
.deck,
.hero-copy p,
.standfirst {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.95;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  padding: 0 0 42px;
}

.hero-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.hero-media img {
  width: 100%;
  min-height: 44vh;
  max-height: 76vh;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(17, 14, 10, 0.58), rgba(17, 14, 10, 0));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  margin-top: -110px;
  z-index: 2;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 208, 196, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
  max-width: 820px;
}

.hero-copy h2,
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.section {
  padding: 48px 0;
}

.section-title,
.article-body h2,
.page-body h2,
.longform h2 {
  margin: 2.6rem 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.article-body h3,
.page-body h3,
.longform h3 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.4;
}

.section-intro,
.article-body p,
.page-body p,
.longform p,
.article-body li,
.page-body li,
.longform li {
  font-size: 1.02rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  padding: 10px 0 72px;
}

.article-meta {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
  display: grid;
  gap: 14px;
}

.meta-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
}

.meta-label {
  margin: 0 0 0.35rem;
  color: var(--accent-2);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-value {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

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

.standfirst {
  margin-top: 0;
  font-size: 1.12rem;
  color: #3a342d;
}

.feature-image,
.inline-image {
  margin: 2.2rem 0;
}

.feature-image img,
.inline-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-image figcaption,
.inline-image figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.grid-2,
.grid-3,
.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.card,
.feature-card,
.place-card,
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-media img,
.feature-card img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.card-body,
.feature-card .copy,
.place-card,
.info-card {
  padding: 20px;
}

.card h3,
.feature-card h3,
.place-card h3,
.info-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.35;
}

.card p,
.feature-card p,
.place-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.place-card + .place-card {
  margin-top: 16px;
}

.place-card ul,
.info-card ul {
  margin: 0.95rem 0 0;
  padding-left: 1.2rem;
}

.place-card li,
.info-card li {
  margin: 0.3rem 0;
  word-break: break-word;
}

blockquote {
  margin: 2rem 0;
  padding: 1.1rem 1.2rem 1.1rem 1.3rem;
  border-left: 4px solid var(--accent-2);
  background: rgba(255, 253, 249, 0.75);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #39342e;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--paper-2);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.related-links ul,
.link-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.related-links li,
.link-list li {
  border-top: 1px solid var(--line);
}

.related-links li:last-child,
.link-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.related-links a,
.link-list a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
}

.practical-guide {
  margin-top: 3rem;
  padding-top: 1rem;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(241,236,228,0.6), rgba(241,236,228,0.92));
}

.site-footer .wrap {
  padding: 32px 0 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.site-footer p {
  margin: 0.3rem 0;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.page-intro,
.section-intro {
  color: var(--muted);
  max-width: 760px;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

.callout {
  padding: 18px 20px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.button,
button.button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button:hover,
button.button:hover,
a.button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
  color: #fff;
}

.button.secondary,
a.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.has-scrolled .site-header {
  box-shadow: 0 10px 25px rgba(20, 16, 10, 0.05);
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-meta {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid,
  .grid-3,
  .card-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .wrap {
    width: min(calc(100% - 24px), var(--max));
  }

  .site-logo img {
    width: 154px;
  }

  .site-header .wrap,
  .site-branding {
    grid-template-columns: 1fr;
  }

  .site-nav {
    padding-top: 4px;
    gap: 8px 14px;
  }

  .hero-copy {
    margin-top: -44px;
    padding: 20px 18px;
  }

  .hero-media img {
    min-height: 34vh;
    max-height: 56vh;
  }

  .article-meta {
    grid-template-columns: 1fr;
  }

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

  th,
  td {
    padding: 12px;
  }
}

@media (max-width: 560px) {
  body {
    line-height: 1.82;
  }

  .site-title-group h1,
  .page-title,
  .article-title {
    font-size: 1.6rem;
  }

  .hero-copy h2,
  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .section {
    padding: 34px 0;
  }

  .card-body,
  .feature-card .copy,
  .place-card,
  .info-card {
    padding: 16px;
  }

  .button-row {
    flex-direction: column;
  }

  .button,
  a.button,
  button.button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
