:root {
  color-scheme: light;
  --ink: #422c1d;
  --muted: #806650;
  --accent: #8a5733;
  --line: #ddc7a8;
  --paper: #fffdf9;
  --wash: #f6efe4;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: #f3e8d6;
  background-image: radial-gradient(#d8c5aa 0.65px, transparent 0.65px);
  background-size: 9px 9px;
  font-family: var(--sans);
  line-height: 1.8;
}
a { color: inherit; }
.site-header, .site-footer { background: rgba(255, 253, 249, .9); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .page-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.brand { color: var(--accent); font-family: var(--serif); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.header-link { color: var(--muted); font-size: .9rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.column-language { display: flex; align-items: center; gap: 7px; color: #ad967d; font-size: .78rem; white-space: nowrap; }
.column-language a { text-underline-offset: 3px; }
.column-language a[aria-current="page"] { color: var(--accent); font-weight: 700; text-decoration: none; }
.page-shell { padding-block: clamp(42px, 7vw, 84px) 88px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-family: var(--serif); font-size: 1.05rem; letter-spacing: .08em; }
.page-title { margin-bottom: 0; font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: .04em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.5; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: .04em; }
.intro { max-width: 690px; margin: 12px 0 42px; color: var(--muted); }
.title-rule { width: 94px; height: 2px; margin: 18px 0 0; background: var(--accent); }
.column-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.column-card { overflow: hidden; border: 1px solid #e8dccb; border-radius: 12px; background: var(--paper); box-shadow: 0 8px 22px rgba(82, 54, 31, .08); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.column-card:hover, .column-card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(82, 54, 31, .14); }
.column-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--wash); }
.card-copy { padding: 18px 20px 22px; }
.card-number { margin: 0 0 3px; color: var(--accent); font-size: .76rem; letter-spacing: .12em; }
.card-title { margin: 0; font-size: 1.32rem; }
.card-catchphrase { margin: 7px 0 0; color: var(--muted); font-size: .92rem; }
.loading, .error { padding: 30px; text-align: center; color: var(--muted); }
.breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { text-underline-offset: 3px; }
.post-head { max-width: 850px; margin-bottom: 34px; }
.post-head .catchphrase { margin: 8px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-image { display: block; width: 100%; height: auto; max-height: min(60vh, 600px); margin: 0 auto 50px; aspect-ratio: 16 / 9; border-radius: 12px; object-fit: contain; background: var(--paper); box-shadow: 0 12px 32px rgba(82, 54, 31, .11); }
.content-section { max-width: 850px; margin: 0 auto 38px; }
.content-section h2 { margin: 0 0 15px; color: var(--accent); font-size: 1.45rem; }
.oracle-box { padding: clamp(22px, 5vw, 40px); border: 1px solid #ddc3a0; border-left: 5px solid var(--accent); border-radius: 10px; background: #fffaf1; box-shadow: 0 8px 22px rgba(82, 54, 31, .06); }
.oracle-box p, .prose-box p { margin: 0; white-space: pre-wrap; font-family: var(--serif); font-size: clamp(1.07rem, 2.2vw, 1.3rem); line-height: 2; }
.prose-box { padding: 24px 28px; border: 1px solid #e8dccb; border-radius: 10px; background: rgba(255, 253, 249, .86); }
.ogp-preview { width: min(100%, 560px); height: auto; aspect-ratio: 1; display: block; margin-inline: auto; border: 1px solid #e8dccb; border-radius: 8px; box-shadow: 0 8px 22px rgba(82, 54, 31, .1); }
.article-nav { max-width: 850px; margin: 58px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.nav-link { color: var(--accent); text-underline-offset: 4px; }
.nav-link[aria-disabled="true"] { visibility: hidden; }
.back-top { display: block; width: fit-content; margin: 28px auto 0; color: var(--accent); text-underline-offset: 4px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 22px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .85rem; }
.footer-inner p { margin: 0; }
.footer-inner a { text-underline-offset: 3px; }
@media (max-width: 820px) { .column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 560px) {
  .header-inner, .footer-inner, .page-shell { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
  .header-actions { width: 100%; justify-content: space-between; gap: 10px; }
  .header-link { font-size: .8rem; }
  .column-language { font-size: .72rem; }
  .column-grid { grid-template-columns: 1fr; gap: 16px; }
  .column-card { display: grid; grid-template-columns: 38% 1fr; align-items: stretch; }
  .column-card img { height: 100%; min-height: 130px; aspect-ratio: auto; }
  .card-copy { padding: 14px 15px; }
  .card-title { font-size: 1.1rem; }
  .card-catchphrase { font-size: .82rem; line-height: 1.6; }
  .footer-inner { flex-direction: column; }
  .article-nav { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
