:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --text: #2f2f33;
  --text-soft: #6b6b72;
  --line: #e2e0db;
  --line-strong: #d3d0c9;
  --blue: #7c8fa6;
  --green: #7f9a86;
  --orange: #c39a76;
  --purple: #9187a8;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-soft: 0 1px 2px rgba(47, 47, 51, 0.04);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --container: 1120px;
  --gutter: 24px;
}

/* =========================================================
   base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: #1d1d20;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

time,
.entry-date,
.update-date,
.timeline-date,
.ranking-position,
.ranking-rank,
.batch-date time,
.step-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* =========================================================
   layout — shell
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 6px 0 0 var(--green), 12px 0 0 var(--orange);
  margin-right: 14px;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.nav-link.is-current {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-main {
  display: block;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}

.inner-main {
  padding-top: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  margin-top: 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 28px 24px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 260px;
}

.footer-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  font-size: 13px;
  color: var(--text-soft);
}

.footer-list a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter) 22px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-soft);
}

/* =========================================================
   components — shared
   ========================================================= */

.section-title {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.section-lead,
.section-intro {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 20px;
  max-width: 760px;
}

.section-lead a,
.section-intro a,
.page-description a,
.field-note a,
.timeline-footnote a,
.batch-footnote a,
.feedback-note a {
  color: var(--blue);
  border-bottom: 1px solid rgba(124, 143, 166, 0.4);
}

.section-lead a:hover,
.section-intro a:hover,
.page-description a:hover,
.field-note a:hover,
.timeline-footnote a:hover,
.batch-footnote a:hover,
.feedback-note a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--blue);
  border-bottom: 1px solid rgba(124, 143, 166, 0.4);
}

.text-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  margin-right: 6px;
}

.tag-genre {
  color: var(--blue);
  border-color: rgba(124, 143, 166, 0.42);
  background: rgba(124, 143, 166, 0.09);
}

.tag-status {
  color: var(--green);
  border-color: rgba(127, 154, 134, 0.42);
  background: rgba(127, 154, 134, 0.09);
}

/* breadcrumb + page header */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 0 14px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

.page-header {
  padding: 6px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 780px;
}

/* field tables */

.field-table {
  width: 100%;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 10px 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.field-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}

.field-table tbody td {
  padding: 12px 16px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

/* =========================================================
   pages — index
   ========================================================= */

.top-fact-bar {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter);
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}

.home-main {
  padding-top: 32px;
}

.focus-section {
  margin-bottom: 48px;
}

.focus-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.focus-copy {
  padding-top: 6px;
}

.home-title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 14px;
}

.focus-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 22px;
  max-width: 560px;
}

.focus-paths {
  display: grid;
  gap: 10px;
}

.focus-path {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.18s ease;
}

.focus-path:hover {
  border-color: var(--line-strong);
}

.focus-path-link {
  display: block;
  padding: 12px 16px;
}

.focus-path-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.focus-path-desc {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
}

.focus-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.focus-visual img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.focus-caption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.content-media {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.content-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.genre-overview,
.updates-section,
.ranking-section,
.fields-section,
.index-section {
  margin-bottom: 48px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.genre-card {
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px 16px;
  transition: border-color 0.18s ease;
}

.genre-card-blue {
  border-top-color: var(--blue);
}

.genre-card-green {
  border-top-color: var(--green);
}

.genre-card-orange {
  border-top-color: var(--orange);
}

.genre-card-purple {
  border-top-color: var(--purple);
}

.genre-card:hover {
  border-color: var(--line-strong);
  border-top-color: inherit;
}

.genre-card-blue:hover {
  border-top-color: var(--blue);
}

.genre-card-green:hover {
  border-top-color: var(--green);
}

.genre-card-orange:hover {
  border-top-color: var(--orange);
}

.genre-card-purple:hover {
  border-top-color: var(--purple);
}

.genre-name {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.genre-trait {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.genre-status {
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 4px 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 12px;
}

.genre-samples {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.genre-sample a {
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid transparent;
}

.genre-sample a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.genre-more,
.updates-more,
.ranking-more,
.fields-more {
  margin-top: 18px;
}

.update-timeline {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  display: grid;
  gap: 14px;
}

.update-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.update-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--orange);
}

.update-item.is-current-batch {
  border-color: rgba(195, 154, 118, 0.55);
  background: rgba(195, 154, 118, 0.06);
}

.update-item.is-current-batch::before {
  background: var(--orange);
  border-color: var(--orange);
}

.update-date {
  font-size: 13px;
  color: var(--text-soft);
}

.update-body {
  min-width: 0;
}

.update-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.update-title:hover {
  color: var(--blue);
}

.update-meta {
  font-size: 13px;
  color: var(--text-soft);
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.ranking-position {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  text-align: center;
}

.ranking-body {
  min-width: 0;
}

.ranking-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.ranking-title:hover {
  color: var(--blue);
}

.ranking-meta {
  font-size: 13px;
  color: var(--text-soft);
}

.fields-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fields-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 18px 8px;
}

.fields-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fields-list {
  display: grid;
  gap: 4px;
}

.field-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding-top: 8px;
}

.field-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.fields-list .field-desc:last-child {
  border-bottom: 0;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.index-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.index-name a {
  color: var(--text);
}

.index-name a:hover {
  color: var(--blue);
}

.index-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* =========================================================
   pages — genre
   ========================================================= */

.genre-directions,
.genre-entries,
.genre-fields {
  margin-bottom: 44px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.direction-card {
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px;
  transition: border-color 0.18s ease;
}

.direction-card--blue {
  border-top-color: var(--blue);
}

.direction-card--green {
  border-top-color: var(--green);
}

.direction-card--orange {
  border-top-color: var(--orange);
}

.direction-card--purple {
  border-top-color: var(--purple);
}

.direction-card:hover {
  border-color: var(--line-strong);
}

.direction-card--blue:hover {
  border-top-color: var(--blue);
}

.direction-card--green:hover {
  border-top-color: var(--green);
}

.direction-card--orange:hover {
  border-top-color: var(--orange);
}

.direction-card--purple:hover {
  border-top-color: var(--purple);
}

.direction-name {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.direction-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

.direction-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.direction-trait {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.direction-fields {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 4px 12px;
  font-size: 13px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 12px;
}

.direction-fields dt {
  color: var(--text-soft);
}

.direction-fields dd {
  color: var(--text);
}

.direction-samples {
  display: grid;
  gap: 6px;
}

.direction-samples a {
  font-size: 13.5px;
  color: var(--text);
}

.direction-samples a:hover {
  color: var(--blue);
}

.entry-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 100px 110px 110px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-row:hover {
  background: var(--surface-soft);
}

.entry-name a {
  color: var(--text);
  font-weight: 600;
}

.entry-name a:hover {
  color: var(--blue);
}

.entry-direction {
  font-size: 13px;
  color: var(--text-soft);
}

.entry-status {
  display: inline-block;
  font-size: 12.5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: var(--surface-soft);
  text-align: center;
}

.entry-status--ongoing {
  color: var(--green);
  border-color: rgba(127, 154, 134, 0.45);
  background: rgba(127, 154, 134, 0.09);
}

.entry-status--done {
  color: var(--blue);
  border-color: rgba(124, 143, 166, 0.45);
  background: rgba(124, 143, 166, 0.09);
}

.entry-status--pause {
  color: var(--orange);
  border-color: rgba(195, 154, 118, 0.5);
  background: rgba(195, 154, 118, 0.09);
}

.entry-date {
  font-size: 13px;
  color: var(--text-soft);
  text-align: right;
}

.field-table + .field-note,
.genre-fields .field-table {
  margin-top: 0;
}

/* =========================================================
   pages — updates
   ========================================================= */

.update-current,
.update-timeline,
.update-fields {
  margin-bottom: 44px;
}

.current-batch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.current-batch-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.current-batch-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.media-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.current-batch-body {
  min-width: 0;
}

.batch-date {
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.field-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--orange);
  background: rgba(195, 154, 118, 0.1);
  border: 1px solid rgba(195, 154, 118, 0.45);
  border-radius: var(--radius-sm);
}

.batch-item-list {
  display: grid;
  gap: 12px;
}

.batch-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.batch-item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.batch-item-meta {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.batch-item-note {
  font-size: 13px;
  color: var(--text-soft);
}

.batch-footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.timeline-list {
  border-left: 2px solid var(--line);
  padding-left: 22px;
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--orange);
}

.timeline-date {
  font-size: 13px;
  color: var(--text-soft);
}

.timeline-body {
  min-width: 0;
}

.timeline-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-meta {
  margin-bottom: 6px;
}

.timeline-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

.timeline-footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.field-footnote {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-soft);
}

/* =========================================================
   pages — ranking
   ========================================================= */

.section {
  margin-bottom: 44px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--purple);
  border-radius: var(--radius-md);
  padding: 16px;
}

.note-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.note-card-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.section-ranking-list .ranking-list {
  gap: 12px;
}

.section-ranking-list .ranking-item {
  grid-template-columns: 48px 96px minmax(0, 1fr);
  align-items: start;
  padding: 14px 16px;
}

.ranking-rank {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  text-align: center;
  padding-top: 2px;
}

.ranking-cover {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.ranking-cover img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.ranking-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ranking-name a {
  color: var(--text);
}

.ranking-name a:hover {
  color: var(--blue);
}

.ranking-genre {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.ranking-note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.related-item a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.related-item a:hover {
  border-color: var(--line-strong);
  color: var(--blue);
}

/* =========================================================
   pages — reading-guide
   ========================================================= */

.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 44px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.guide-intro-text h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.guide-intro-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.guide-intro-text p:last-child {
  margin-bottom: 0;
}

.guide-intro-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.guide-intro-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.guide-intro-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.guide-section {
  margin-bottom: 44px;
}

.guide-section h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.field-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.taxonomy-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.taxonomy-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.taxonomy-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.boundary-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.boundary-item.is-covered {
  border-left: 3px solid var(--green);
}

.boundary-item.is-excluded {
  border-left: 3px solid var(--line-strong);
}

.boundary-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feedback-step {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feedback-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(124, 143, 166, 0.1);
  border: 1px solid rgba(124, 143, 166, 0.4);
  border-radius: 50%;
}

.feedback-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feedback-step p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.feedback-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-soft);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 16px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-soft);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.guide-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-link-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.guide-link-item a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.guide-link-item a:hover {
  color: var(--blue);
}

.guide-link-desc {
  font-size: 13px;
  color: var(--text-soft);
}

/* =========================================================
   pages — 404
   ========================================================= */

.error-main {
  padding-top: 48px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 24px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 14px;
}

.error-title {
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  min-height: 44px;
  line-height: 22px;
}

.btn-primary {
  background: var(--text);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d1d20;
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.error-paths {
  max-width: 720px;
  margin: 36px auto 0;
}

.error-paths .section-title {
  text-align: center;
  margin-bottom: 16px;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.error-list a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
}

.error-list a:hover {
  border-color: var(--line-strong);
  color: var(--blue);
}

/* =========================================================
   responsive
   ========================================================= */

@media (max-width: 1024px) {
  .focus-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .focus-visual img {
    height: 260px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .note-grid,
  .taxonomy-grid,
  .feedback-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    padding: 10px var(--gutter);
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(47, 47, 51, 0.06);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 0;
    border-left: 3px solid transparent;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    font-size: 15px;
  }

  .nav-link.is-current {
    border-left-color: var(--blue);
    background: var(--surface-soft);
  }

  .site-main {
    padding-bottom: 40px;
  }

  .home-main {
    padding-top: 22px;
  }

  .page-header {
    padding: 2px 0 18px;
    margin-bottom: 22px;
  }

  .page-title,
  .home-title {
    font-size: 24px;
    line-height: 1.35;
  }

  .section-title,
  .guide-section h2,
  .guide-intro-text h2 {
    font-size: 19px;
  }

  .focus-section,
  .genre-overview,
  .updates-section,
  .ranking-section,
  .fields-section,
  .index-section,
  .genre-directions,
  .genre-entries,
  .genre-fields,
  .update-current,
  .update-timeline,
  .update-fields,
  .section,
  .guide-section,
  .guide-intro {
    margin-bottom: 32px;
  }

  .focus-visual img,
  .content-media img {
    height: 200px;
  }

  .genre-grid,
  .direction-grid,
  .fields-columns,
  .note-grid,
  .taxonomy-grid,
  .feedback-steps,
  .boundary-list,
  .related-list,
  .guide-link-list,
  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-item,
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .update-item::before,
  .timeline-item::before {
    left: -27px;
    top: 18px;
  }

  .update-timeline,
  .timeline-list {
    padding-left: 18px;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: start;
  }

  .entry-name {
    grid-column: 1 / -1;
    font-size: 15px;
  }

  .entry-direction {
    grid-column: 1 / -1;
  }

  .entry-status {
    justify-self: start;
  }

  .entry-date {
    text-align: left;
  }

  .current-batch-grid,
  .guide-intro {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .current-batch-media img,
  .guide-intro-media img {
    height: 180px;
  }

  .section-ranking-list .ranking-item {
    grid-template-columns: 40px 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ranking-cover img {
    height: 88px;
  }

  .field-table {
    font-size: 13px;
  }

  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    padding: 10px 12px;
  }

  .field-table tbody th {
    white-space: normal;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
    padding: 30px var(--gutter) 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-bottom {
    padding: 12px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .focus-path-link,
  .related-item a,
  .error-list a {
    padding: 12px 14px;
  }

  .error-code {
    font-size: 38px;
  }

  .error-title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
