:root {
  color-scheme: light;
  --ink: #17171d;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --soft: #f4f1f8;
  --line: #ddd7cf;
  --muted: #68636d;
  --violet: #7b5dff;
  --violet-soft: #eee9ff;
  --cyan: #138f8a;
  --cyan-soft: #e0f5f1;
  --gold: #b98a18;
  --shadow: rgba(29, 27, 38, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic", "Meiryo", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  text-decoration: none;
  font-size: 18px;
}
.brand span { color: var(--violet); }
.brand strong { font-weight: 800; }
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}
nav a { text-decoration: none; }
nav a:hover { color: var(--ink); }
.home-shell, .page-shell, .article-shell, .character-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 70px;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 34px;
  align-items: stretch;
  padding: 26px 0 32px;
  border-bottom: 1px solid var(--line);
}
.home-copy {
  align-self: center;
}
.home-copy p:not(.eyebrow), .page-header p:not(.eyebrow), .emergence-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #3c3843;
  font-size: 17px;
  line-height: 1.85;
}
.observer-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.observer-card {
  display: grid;
  grid-template-rows: 220px auto auto;
  align-items: end;
  min-width: 0;
  padding: 18px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px var(--shadow);
  text-align: center;
  text-decoration: none;
}
.observer-card.noia {
  background: linear-gradient(180deg, #fff, var(--violet-soft));
}
.observer-card.sil {
  background: linear-gradient(180deg, #fff, var(--cyan-soft));
}
.observer-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.observer-card span {
  margin-top: 8px;
  font-weight: 800;
}
.observer-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.page-header {
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.08;
}
.news-section, .comment-section {
  padding-top: 32px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.section-title h2 {
  margin: 0;
  font-size: 24px;
}
.date-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.date-column {
  min-width: 0;
}
.date-column h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-size: 18px;
}
.article-card-list {
  display: grid;
  gap: 16px;
}
.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px var(--shadow);
}
.thumb-link {
  display: block;
  background: var(--ink);
}
.thumb-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card-body {
  padding: 18px;
}
.card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.card-kicker span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}
.article-card h4 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.45;
}
.article-card h4 a {
  text-decoration: none;
}
.article-card h4 a:hover {
  color: var(--cyan);
}
.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.comment-list {
  display: grid;
  gap: 18px;
}
.comment-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px var(--shadow);
}
.comment-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.comment-card-header a {
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}
.comment-card-header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.voice-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.voice-box {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.voice-box.noia {
  background: var(--violet-soft);
}
.voice-box.sil {
  background: var(--cyan-soft);
}
.voice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.voice-head img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.voice-head strong {
  font-size: 15px;
}
.voice-text {
  color: #3f3a47;
  font-size: 14px;
  line-height: 1.82;
}
.voice-text p, .voice-text ul {
  margin: 0 0 12px;
}
.voice-text p:last-child, .voice-text ul:last-child {
  margin-bottom: 0;
}
.article-page {
  max-width: 860px;
  margin: 0 auto;
}
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
}
.article-visual {
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 14px 34px var(--shadow);
}
.article-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.article-header h1, .page-header h1, .character-hero h1, .emergence-hero h1 {
  font-size: 42px;
  line-height: 1.16;
}
.article-meta {
  color: var(--muted);
  font-size: 14px;
}
.article-header p {
  color: var(--muted);
  line-height: 1.85;
}
.article-body {
  padding: 22px 0;
  font-size: 17px;
  line-height: 1.95;
}
.article-body h2 {
  margin: 34px 0 12px;
  font-size: 25px;
  line-height: 1.35;
}
.article-body h3 {
  margin: 28px 0 8px;
  font-size: 20px;
}
.article-body p, .article-body ul {
  margin: 0 0 18px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body a {
  color: var(--cyan);
  text-underline-offset: 3px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
th {
  background: var(--soft);
  font-weight: 800;
}
tr:last-child td {
  border-bottom: 0;
}
.article-footer {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1.8;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.source-panel {
  display: grid;
  gap: 12px;
  padding-top: 24px;
}
.source-panel a, .source-panel p {
  display: block;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.source-panel span {
  display: inline-block;
  min-width: 90px;
  color: var(--muted);
  font-size: 13px;
}
.character-hero, .emergence-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: end;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.character-hero img {
  width: 280px;
  height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 16px 40px var(--shadow);
}
.character-hero p {
  color: #3c3843;
  line-height: 1.9;
  font-size: 17px;
}
.emergence-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}
.emergence-portraits img {
  height: 220px;
  width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 12px 28px var(--shadow);
}
.emergence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding-top: 28px;
}
.lab-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px var(--shadow);
}
.lab-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.lab-card p {
  color: var(--muted);
  line-height: 1.8;
}
.lab-body {
  color: #3c3843;
  line-height: 1.85;
}
.button-link {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.muted {
  color: var(--muted);
  line-height: 1.8;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 980px) {
  .home-hero, .voice-pair {
    grid-template-columns: 1fr;
  }
  .observer-duo {
    max-width: 640px;
  }
}
@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }
  nav {
    justify-content: flex-start;
  }
  h1 {
    font-size: 36px;
  }
  .article-header h1, .page-header h1, .character-hero h1, .emergence-hero h1 {
    font-size: 32px;
  }
  .home-shell, .page-shell, .article-shell, .character-page {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }
  .date-columns, .character-hero, .emergence-hero {
    grid-template-columns: 1fr;
  }
  .observer-duo {
    grid-template-columns: 1fr;
  }
  .observer-card {
    grid-template-rows: 190px auto auto;
  }
  .observer-card img {
    height: 190px;
  }
  .character-hero img {
    width: 100%;
    height: 300px;
  }
  .comment-card-header {
    display: block;
  }
  .comment-card-header span {
    display: block;
    margin-top: 6px;
  }
  .site-footer {
    display: block;
    padding: 22px 20px;
  }
}