@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

:root {
  --ink: #172623;
  --ink-soft: #3c4c46;
  --muted: #5f6d66;
  --teal: #5cc6b0;
  --teal-deep: #2b8574;
  --sand: #d4c4a8;
  --sand-soft: #ece0cb;
  --paper: #f6efe4;
  --paper-deep: #eee4d4;
  --clay: #b9755a;
  --line: rgba(23, 38, 35, 0.16);
  --line-soft: rgba(23, 38, 35, 0.085);
  --serif: "Noto Serif JP", "Songti SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Noto Sans JP", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.9;
  overflow-x: hidden;
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(212, 196, 168, 0.4), transparent 70%),
    linear-gradient(180deg, #f7f1e7 0%, #f4ece0 60%, #f2e9dc 100%);
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

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

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

.frame {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px);
}

/* ── 顶部细条 ─────────────────────────── */
.rule {
  margin: 0;
  padding: 9px 12px;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}

/* ── 导航 ─────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 228, 0.93);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--line);
}

.bar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 58px;
}

.bar__side {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 0;
}

.bar__side--r {
  justify-content: flex-end;
}

.bar__link {
  display: inline-block;
  padding: 12px 9px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.3s ease-out, background-color 0.3s ease-out;
}

.bar__link:hover,
.bar__link:focus-visible {
  color: var(--ink);
  background: rgba(92, 198, 176, 0.18);
}

.bar__link[aria-current] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.bar__brand {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 16px;
  white-space: nowrap;
}

/* ── 正文容器 ─────────────────────────── */
main div {
  scroll-margin-top: 92px;
}

.page > div {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 76px) 0;
}

.page > div + div {
  border-top: 1px solid var(--line-soft);
}

/* 首屏 */
.page > div.hero {
  max-width: none;
  min-height: 68vh;
  padding: clamp(52px, 9vw, 100px) 10px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  border-top: 0;
  background-image:
    radial-gradient(rgba(23, 38, 35, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 82%, transparent 100%);
}

.hero__h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 9.5vw, 5.6rem);
  line-height: 1.16;
  letter-spacing: 0.06em;
  text-indent: 0.06em;
}

.hero__dek {
  max-width: 30em;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 2;
  color: var(--muted);
}

/* 装饰图版 */
.page > div.plinth {
  max-width: none;
  padding: clamp(26px, 5vw, 52px) 0 clamp(30px, 6vw, 64px);
  border-top: 0;
}

.plinth__fig {
  position: relative;
  margin: 0;
  height: clamp(170px, 30vw, 290px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 180px 180px 12px 12px;
  background: linear-gradient(180deg, #f3e8d7 0%, #e8d9be 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.plinth__fig--bare {
  background-image:
    radial-gradient(rgba(185, 117, 90, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, #f3e8d7 0%, #e6d6b9 100%);
  background-size: 18px 18px, auto;
}

.plinth__arc {
  position: absolute;
  bottom: -46%;
  left: 50%;
  width: 68%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border: 1px solid rgba(185, 117, 90, 0.4);
  border-radius: 50%;
}

.plinth__arc--b {
  width: 44%;
  border-color: rgba(43, 133, 116, 0.45);
}

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

/* ── 正文排版 ─────────────────────────── */
.page h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.page hr {
  width: 56px;
  height: 2px;
  margin: 0 0 26px;
  border: 0;
  background: var(--teal);
}

.page h3 {
  margin: 34px 0 4px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.page p {
  margin: 0 0 1.15em;
}

.page ul,
.page ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.page li {
  margin: 0.4em 0;
}

.page li::marker {
  color: var(--teal-deep);
}

.page strong {
  font-weight: 600;
}

.page a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.page blockquote {
  margin: 1.4em 0;
  padding: 14px 22px;
  border-left: 3px solid var(--sand);
  background: rgba(212, 196, 168, 0.22);
  border-radius: 0 10px 10px 0;
}

.page figure {
  margin: 1.5em 0;
}

.page img {
  border-radius: 10px;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 1rem;
}

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

.page th {
  background: rgba(212, 196, 168, 0.25);
}

/* ── 页脚 ─────────────────────────────── */
.base {
  margin-top: clamp(30px, 6vw, 60px);
  padding: clamp(52px, 9vw, 92px) 16px 36px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.base__brand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 10.5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: rgba(23, 38, 35, 0.22);
}

.base__small {
  display: block;
  margin-top: 16px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── 动效 ─────────────────────────────── */
html.js .page > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

html.js .page > div.is-in {
  opacity: 1;
  transform: none;
}

/* ── 移动端 ───────────────────────────── */
@media (max-width: 860px) {
  .bar__nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px 0 8px;
    min-height: 0;
  }

  .bar__brand {
    order: -1;
    flex: 0 0 100%;
    padding: 8px 0 4px;
    text-align: center;
    font-size: 1.32rem;
  }

  .bar__side {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    padding-top: 4px;
    border-top: 1px solid var(--line-soft);
  }

  .bar__side--r {
    justify-content: center;
    border-top: 0;
    padding-top: 0;
  }

  .bar__link {
    padding: 11px 10px;
  }

  main div {
    scroll-margin-top: 128px;
  }

  .page > div.hero {
    min-height: 54vh;
    padding: 44px 6px 52px;
  }

  .hero__h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
    margin-bottom: 16px;
  }

  .plinth__fig {
    border-radius: 120px 120px 10px 10px;
  }

  .base__brand {
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }
}

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

  html.js .page > div {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body {
    background-attachment: scroll;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
