:root {
  --ink: #17343b;
  --ink-soft: #4f696e;
  --paper: #f7f4ed;
  --paper-deep: #ece7dc;
  --white: #fffdf8;
  --teal: #0f7371;
  --teal-dark: #085556;
  --mint: #b9dbd0;
  --coral: #ed7c5f;
  --amber: #e7b65c;
  --line: rgba(23, 52, 59, 0.14);
  --shadow: 0 24px 70px rgba(25, 68, 70, 0.12);
  --radius: 1.4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

.site-frame {
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 8% 10%, rgba(185, 219, 208, 0.48), transparent 26rem), var(--paper);
}
.section-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 750; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: .7rem;
  letter-spacing: .08em;
}
.language-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .76);
  backdrop-filter: blur(12px);
}
.language-button {
  min-width: 46px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.language-button.active { background: var(--teal); color: white; }

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .78fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  min-height: 680px;
  padding-block: 72px 108px;
}
.hero-copy h1, .section-heading h2, .diary-copy h2, .ongoing-copy h2, .signal-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.038em;
}
.hero-copy h1 { max-width: 720px; font-size: clamp(2.75rem, 5.2vw, 5rem); line-height: 1.01; }

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}
.eyebrow, .card-label {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
}

.hero-links-heading {
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 115, 113, 0.28);
  border-radius: 999px;
  background: rgba(185, 219, 208, 0.2);
  color: var(--teal-dark);
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-link:hover,
.hero-link:focus-visible {
  border-color: var(--teal);
  background: rgba(185, 219, 208, 0.42);
}

.signal-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: calc(var(--radius) + .5rem);
  background: var(--teal-dark);
  box-shadow: var(--shadow);
  color: #f6fbf8;
}
.signal-card .card-label { margin-top: 80px; color: var(--mint); }
.signal-card h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); line-height: 1.04; }
.signal-text { margin: 22px 0 0; color: rgba(246,251,248,.76); line-height: 1.75; }
.source-link { display: inline-block; margin-top: 18px; border-bottom: 1px solid rgba(185,219,208,.45); color: var(--mint); font-size: .82rem; font-weight: 700; }
.source-link:hover { border-bottom-color: var(--coral); color: #fff; }
.signal-visual { position: absolute; inset: 22px 22px auto; display: flex; align-items: center; height: 58px; }
.signal-visual::before { position: absolute; right: 0; left: 0; height: 2px; background: rgba(185,219,208,.32); content: ""; }
.signal-visual span { position: relative; z-index: 1; width: 12px; height: 12px; margin-right: calc((100% - 60px) / 4); border: 3px solid var(--teal-dark); border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 7px rgba(185,219,208,.12); }
.signal-visual span:nth-child(2), .signal-visual span:nth-child(4) { transform: translateY(-16px); background: var(--coral); box-shadow: 0 0 0 7px rgba(237,124,95,.12); }

.story-section { padding-block: 110px 130px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 28px 80px; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }
.section-heading h2, .diary-copy h2, .ongoing-copy h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.03; }
.section-heading > p:last-child, .ongoing-copy > p:last-child { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 58px; }
.chapter-card { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.84); }
.chapter-icon { display: block; margin-top: 48px; color: var(--teal); font-family: Georgia, serif; font-size: 2.4rem; line-height: 1; }
.chapter-number { position: absolute; top: 26px; right: 28px; color: rgba(23,52,59,.22); font-family: Georgia, serif; font-size: 1.2rem; font-style: italic; }
.chapter-card h3 { margin: 24px 0 12px; font-size: 1.1rem; }
.chapter-card p { margin: 0 0 24px; color: var(--ink-soft); line-height: 1.72; }
.chapter-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 15px;
  border: 1px solid rgba(15, 115, 113, .28);
  border-radius: 999px;
  background: rgba(185, 219, 208, .2);
  color: var(--teal-dark);
  font-size: .86rem;
  font-weight: 800;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.chapter-link:hover, .chapter-link:focus-visible {
  border-color: var(--teal);
  background: rgba(185, 219, 208, .42);
  transform: translateY(-1px);
}
.chapter-link:focus-visible { outline: 3px solid rgba(15, 115, 113, .22); outline-offset: 3px; }

.diary-section { position: relative; overflow: hidden; padding-block: 120px; background: var(--ink); color: #f9f7f0; }
.diary-section::after { position: absolute; top: -180px; right: -180px; width: 520px; height: 520px; border: 1px solid rgba(185,219,208,.12); border-radius: 50%; box-shadow: 0 0 0 90px rgba(185,219,208,.035), 0 0 0 180px rgba(185,219,208,.025); content: ""; }
.diary-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(50px,8vw,110px); align-items: center; }
.eyebrow.light { color: var(--mint); }
.diary-copy > p:not(.eyebrow) { max-width: 610px; margin: 28px 0 0; color: rgba(249,247,240,.7); line-height: 1.8; }
.feature-list { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 13px; color: rgba(249,247,240,.84); line-height: 1.55; }
.feature-list li span { color: var(--coral); font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metric-card { min-height: 190px; padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.metric-card:nth-child(2), .metric-card:nth-child(3) { background: rgba(185,219,208,.1); }
.metric-card span, .metric-card strong { display: block; }
.metric-card span { margin-top: 58px; color: rgba(249,247,240,.58); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong { margin-top: 6px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }

.ongoing-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.65fr); gap: clamp(48px,9vw,120px); align-items: start; padding-block: 130px 110px; }
.ongoing-copy > p:last-child { max-width: 670px; margin-top: 28px; }
.notice-card { display: flex; gap: 18px; padding: 28px; border-left: 4px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper-deep); }
.notice-icon { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font-weight: 850; }
.notice-card h3 { margin: 0; font-size: 1rem; }
.notice-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }

.site-footer { display: flex; align-items: center; justify-content: space-between; padding-block: 28px 40px; border-top: 1px solid var(--line); }
.site-footer > div { display: flex; flex-direction: column; gap: 4px; }
.site-footer strong { font-size: .88rem; }
.site-footer span { color: var(--ink-soft); font-size: .78rem; }
.site-footer a { color: var(--ink-soft); font-size: .86rem; font-weight: 650; }
.site-footer a:hover { color: var(--teal); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }

.content-page { min-height: calc(100vh - 170px); padding-block: 70px 110px; }
.content-intro { max-width: 850px; }
.content-intro h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -.038em;
  line-height: 1.01;
}
.content-intro h1.page-title-medium {
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1.05;
}
.content-intro > p:last-child { max-width: 720px; margin: 26px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.8; }
.content-status { display: inline-flex; margin-top: 28px; padding: 10px 14px; border-radius: 999px; background: rgba(185, 219, 208, .3); color: var(--teal-dark); font-size: .82rem; font-weight: 750; }
.content-toc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 64px; }
.content-toc a { padding: 18px; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,253,248,.72); color: var(--ink-soft); font-size: .88rem; font-weight: 700; line-height: 1.45; }
.content-toc a:hover, .content-toc a:focus-visible { border-color: rgba(15,115,113,.45); color: var(--teal-dark); }
.content-list { display: grid; gap: 18px; margin-top: 36px; }
.content-section { scroll-margin-top: 24px; padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.84); }
.content-section-number { color: var(--teal); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-style: italic; }
.content-section h2 { margin: 12px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.025em; }
.content-section p { max-width: 760px; margin: 18px 0 0; color: var(--ink-soft); line-height: 1.8; }
.content-note { margin-top: 34px; padding: 24px 28px; border-left: 4px solid var(--amber); background: var(--paper-deep); color: var(--ink-soft); line-height: 1.75; }

.legal-page { min-height: calc(100vh - 170px); padding-block: 70px 110px; }
.legal-intro { max-width: 760px; margin-bottom: 54px; }
.legal-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -.038em;
  line-height: 1.01;
}
.legal-intro > p:last-child { margin: 24px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; }
.legal-content { display: grid; gap: 18px; max-width: 860px; }
.legal-card { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.84); }
.legal-card h2 { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -.025em; }
.legal-card h3 { margin: 26px 0 10px; font-size: 1rem; }
.legal-card p, .legal-card li, .legal-card address { color: var(--ink-soft); line-height: 1.75; }
.legal-card p { margin: 12px 0 0; }
.legal-card ul { margin: 12px 0 0; padding-left: 22px; }
.legal-card address { font-style: normal; }
.legal-card a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-card a:hover { color: var(--teal-dark); }
.legal-updated { margin-top: 26px; color: var(--ink-soft); font-size: .82rem; }

@media (max-width: 900px) {
  .hero-section, .diary-layout, .ongoing-section { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; padding-block: 68px 90px; }
  .signal-card { max-width: 620px; }
  .section-heading { grid-template-columns: 1fr; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card { min-height: auto; }
  .notice-card { max-width: 650px; }
  .content-toc { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .section-shell { width: min(100% - 28px, 1160px); }
  .site-header { padding-block: 18px; }
  .brand > span:last-child { display: none; }
  .hero-section { gap: 42px; padding-block: 52px 76px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .signal-card, .chapter-card, .notice-card { padding: 24px; }
  .story-section, .ongoing-section, .diary-section { padding-block: 86px; }
  .metric-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; gap: 24px; }
  .footer-links { justify-content: flex-start; }
  .legal-page { padding-block: 52px 80px; }
  .content-page { padding-block: 52px 80px; }
  .content-toc { grid-template-columns: 1fr; margin-top: 44px; }
}

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