:root {
  color-scheme: light;
  --paper: #f4f1ea;
  --white: #fffdf8;
  --ink: #19201d;
  --muted: #626862;
  --line: #c9c0b1;
  --green: #0f2a22;
  --soft-green: #e8eee8;
  --blue: #365f86;
  --clay: #b9503e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.series-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, white);
}

.series-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 750;
}

.series-brand img {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.series-hero,
.system-section,
.exhibits-section,
.logic-section,
.series-footer {
  width: min(calc(100% - 36px), 1180px);
  margin: 0 auto;
}

.series-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: end;
  min-height: calc(100svh - 68px);
  padding: clamp(70px, 9vw, 128px) 0 clamp(64px, 8vw, 110px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.series-intro {
  padding-bottom: 8px;
}

.lead {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.42;
}

.note {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.system-section,
.exhibits-section,
.logic-section {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.3fr);
  gap: 28px 64px;
  align-items: start;
}

.section-head .kicker {
  grid-row: span 2;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-head > p:not(.kicker) {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.system-map {
  margin-top: 58px;
}

.system-node {
  position: relative;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.system-node > span,
.exhibit-role {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.system-node h3 {
  margin: 28px 0 42px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.system-node p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.system-node-primary {
  width: min(100%, 760px);
  margin: 0 auto;
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.system-node-primary > span,
.system-node-primary p {
  color: #cedbd3;
}

.system-connector {
  position: relative;
  height: 76px;
}

.system-connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 38px;
  background: var(--line);
}

.system-connector::after {
  content: "";
  position: absolute;
  left: 16.666%;
  right: 16.666%;
  top: 38px;
  height: 1px;
  background: var(--line);
}

.system-connector span::before,
.system-connector span::after {
  content: "";
  position: absolute;
  top: 38px;
  width: 1px;
  height: 38px;
  background: var(--line);
}

.system-connector span::before {
  left: 16.666%;
}

.system-connector span::after {
  right: 16.666%;
}

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

.system-branches .system-node + .system-node {
  border-left: 0;
}

.system-node-pending {
  background: transparent;
  border-style: dashed;
}

.system-node-pending b {
  display: inline-block;
  margin-top: 24px;
  color: var(--clay);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.exhibit-grid,
.logic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.exhibit-grid article {
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.exhibit-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.exhibit-role {
  margin: 72px 0 12px;
}

.exhibit-grid h3 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 40px);
}

.exhibit-grid article > p:not(.exhibit-role) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.exhibit-grid a {
  display: inline-block;
  margin-top: 28px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.logic-grid article {
  min-height: 240px;
  padding: 26px 0 0;
  border-top: 2px solid var(--ink);
}

.logic-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.logic-grid h3 {
  margin: 42px 0 18px;
  font-size: 24px;
}

.logic-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.series-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.series-footer p {
  margin: 0;
}

.series-footer a {
  font-weight: 750;
}

@media (max-width: 820px) {
  .series-hero,
  .section-head {
    grid-template-columns: 1fr;
  }

  .series-hero {
    min-height: auto;
    align-items: start;
  }

  .section-head .kicker {
    grid-row: auto;
  }

  .system-branches,
  .exhibit-grid,
  .logic-grid {
    grid-template-columns: 1fr;
  }

  .system-branches .system-node + .system-node {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .system-connector {
    height: 38px;
  }

  .system-connector::before {
    height: 38px;
  }

  .system-connector::after,
  .system-connector span::before,
  .system-connector span::after {
    display: none;
  }

  .series-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .series-header {
    align-items: flex-start;
  }

  .series-brand span {
    display: none;
  }

  .series-hero,
  .system-section,
  .exhibits-section,
  .logic-section,
  .series-footer {
    width: min(calc(100% - 28px), 1180px);
  }

  h1 {
    font-size: clamp(42px, 14vw, 66px);
  }

  .system-node,
  .exhibit-grid article {
    padding: 22px;
  }
}
