:root {
  --bg: #fbf9f6;
  --card: #ffffff;
  --ink: #23202b;
  --ink-soft: #6b6577;
  --brand: #e05a7a;
  --brand-deep: #c8455f;
  --accent: #6f8fd6;
  --line: #e6e1dc;
  --line-soft: #f0ece7;
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1200px;
  --shadow: 0 1px 2px rgba(35, 32, 43, 0.05);
  --shadow-hover: 0 6px 18px rgba(35, 32, 43, 0.1);
}

/* ============ base ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

time {
  font-variant-numeric: tabular-nums;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ============ layout ============ */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main,
.inner-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 24px 64px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  margin-top: 26px;
}

.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.page-content,
.content-column,
.main-column {
  min-width: 0;
}

.page-sidebar,
.sidebar {
  min-width: 0;
  position: sticky;
  top: 22px;
}

/* ============ site header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 246, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(6px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 6px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.brand:hover {
  color: var(--brand);
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--brand);
}

.nav-list a.is-current {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.nav-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--ink);
}

.nav-toggle::after {
  bottom: 16px;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  bottom: 21px;
  transform: rotate(-45deg);
}

/* ============ breadcrumb & page header ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  margin-top: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-description a {
  color: var(--accent);
}

.page-description a:hover {
  color: var(--brand);
}

/* ============ shared section pieces ============ */
.section {
  margin-top: 44px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
}

.section-lead {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-lead a {
  color: var(--accent);
}

.section-lead a:hover {
  color: var(--brand);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
}

.section-head .section-lead {
  margin-top: 0;
}

.sub-title {
  font-size: 17px;
  font-weight: 600;
}

.sub-lead {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.sub-lead a {
  color: var(--accent);
}

.sub-lead a:hover {
  color: var(--brand);
}

/* ============ notice bar ============ */
.site-notice {
  background: #f5f1ec;
  border-bottom: 1px solid var(--line);
}

.site-notice .notice-text,
.site-notice .notice-date {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-notice .notice-text {
  padding-top: 9px;
}

.site-notice .notice-date {
  padding-bottom: 9px;
  color: var(--brand-deep);
}

/* ============ hero ============ */
.hero-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

.hero-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 16px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero-paths {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.path-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.path-item:hover {
  border-color: #dcd4cc;
  box-shadow: var(--shadow-hover);
}

.path-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
}

.path-link:hover {
  color: var(--brand-deep);
}

.path-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-feature {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: #f2ece6;
}

.hero-caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

.hero-series {
  margin-top: 18px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.series-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--card);
}

.series-name {
  font-size: 15px;
  font-weight: 600;
}

.series-tag {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============ genre overview (home) ============ */
.genre-overview {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 24px 0;
}

.genre-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.genre-card:hover {
  border-color: #dcd4cc;
  box-shadow: var(--shadow-hover);
}

.genre-card .genre-name {
  font-size: 18px;
  font-weight: 600;
}

.genre-card .genre-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.genre-figure {
  margin: 14px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.genre-figure img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #f2ece6;
}

.genre-rep {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

.genre-rep a {
  color: var(--accent);
  font-weight: 600;
}

.genre-rep a:hover {
  color: var(--brand);
}

/* ============ shelf + updates (home) ============ */
.shelf-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 24px 0;
}

.shelf-section > .section-title {
  display: block;
}

.shelf-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 36px;
  align-items: start;
}

.shelf-wall,
.update-list {
  min-width: 0;
}

.cover-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 10px 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cover-card:hover {
  border-color: #dcd4cc;
  box-shadow: var(--shadow-hover);
}

.cover-figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f2ece6;
}

.cover-figure img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cover-card:hover .cover-figure img {
  transform: scale(1.04);
}

.cover-name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

.cover-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.tag-genre,
.tag-status,
.meta-tag,
.meta-status {
  display: inline-block;
  padding: 1px 8px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  background: #f4f1ee;
  color: var(--ink-soft);
}

.tag-genre,
.meta-tag {
  color: var(--accent);
  background: #eef2fb;
}

.tag-status,
.meta-status {
  color: var(--brand-deep);
  background: #fceef1;
}

.cover-date {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.update-rows {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.update-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.update-row:hover {
  background: #fdfbf9;
}

.row-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}

.row-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
}

.row-genre,
.row-chapters {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}

.row-status {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--brand-deep);
}

/* ============ rank + field (home) ============ */
.rank-field-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 24px 0;
}

.rank-field-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 36px;
  align-items: start;
}

.rank-panel,
.field-panel {
  min-width: 0;
}

.rank-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.rank-no {
  grid-row: 1 / span 2;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
}

.rank-name {
  font-size: 16px;
  font-weight: 600;
}

.rank-genre {
  grid-column: 2;
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-note {
  grid-column: 2;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.field-points {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.field-point {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.field-key {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.field-boundary {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f5f1ec;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============ column index ============ */
.column-index {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 24px 56px;
}

.column-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.column-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.column-item:hover {
  border-color: #dcd4cc;
  box-shadow: var(--shadow-hover);
}

.column-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
}

.column-link:hover {
  color: var(--brand-deep);
}

.column-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============ genres page ============ */
.genre-anchor-bar {
  margin-top: 22px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.genre-anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.genre-anchor-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--accent);
}

.genre-anchor-list a:hover {
  color: var(--brand);
}

.genre-groups {
  margin-top: 34px;
  display: grid;
  gap: 30px;
}

.genre-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
}

.genre-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}

.genre-block .genre-name {
  font-size: 20px;
  font-weight: 600;
}

.genre-block .genre-desc {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.genre-cover {
  margin: 18px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f2ece6;
}

.genre-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.genre-cover-caption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--card);
  border-top: 1px solid var(--line-soft);
}

.genre-list-title {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
}

.genre-entry-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.genre-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.entry-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

.entry-date {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-status {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--brand-deep);
}

.genre-scope,
.related-links {
  margin-top: 40px;
}

.section-intro {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.genre-scope-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scope-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-item-title {
  font-size: 16px;
  font-weight: 600;
}

.scope-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.related-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-item a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-item a:hover {
  color: var(--brand);
  border-color: #dcd4cc;
  box-shadow: var(--shadow-hover);
}

/* ============ updates page ============ */
.update-highlight {
  margin-top: 34px;
}

.highlight-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.highlight-grid .cover-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.update-list {
  margin-top: 40px;
}

.update-day {
  margin-top: 26px;
}

.day-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.day-title time {
  font-size: 16px;
  color: var(--brand);
}

.update-day .update-rows {
  margin-top: 0;
  border-top: 0;
}

.update-scope {
  margin-top: 40px;
}

.scope-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-name {
  font-size: 16px;
  font-weight: 600;
}

.scope-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============ ranking page ============ */
.rank-section {
  margin-top: 34px;
}

.rank-section .rank-item {
  grid-template-columns: 44px 96px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s ease;
}

.rank-section .rank-item:hover {
  background: #fdfbf9;
}

.rank-position {
  grid-row: 1;
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  text-align: center;
}

.rank-thumb {
  grid-row: 1 / span 3;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f2ece6;
}

.rank-thumb img {
  width: 96px;
  height: 72px;
  object-fit: cover;
}

.rank-body {
  grid-column: 3;
  min-width: 0;
}

.rank-body .rank-name {
  font-size: 16px;
  font-weight: 600;
}

.rank-meta {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.rank-reason {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.rank-scope-section {
  margin-top: 44px;
}

.scope-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scope-card {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-title {
  font-size: 16px;
  font-weight: 600;
}

.scope-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============ fields page ============ */
.field-visual {
  margin-top: 34px;
}

.field-figure {
  margin: 18px 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #f2ece6;
}

.field-caption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

.field-table-section {
  margin-top: 44px;
}

.field-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.field-table-caption {
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}

.field-table th,
.field-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.75;
}

.field-table thead th {
  background: #f5f1ec;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-reading {
  margin-top: 44px;
}

.field-reading-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.field-reading-item {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-reading-name {
  font-size: 16px;
  font-weight: 600;
}

.field-reading-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.field-scope {
  margin-top: 44px;
}

.field-faq {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--brand);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.field-feedback {
  margin-top: 44px;
}

.feedback-steps {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: feedback;
}

.feedback-step {
  position: relative;
  padding: 18px 16px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feedback-step::before {
  counter-increment: feedback;
  content: counter(feedback);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #fceef1;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.feedback-step-name {
  font-size: 16px;
  font-weight: 600;
}

.feedback-step-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============ sidebar ============ */
.sidebar-block {
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-block + .sidebar-block {
  margin-top: 18px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
}

.sidebar-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.sidebar-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.sidebar-list li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.sidebar-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
}

.sidebar-list a:hover {
  color: var(--brand);
}

/* ============ 404 ============ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 88px;
}

.error-panel {
  max-width: 620px;
  width: 100%;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.error-code {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
}

.error-panel h1 {
  margin-top: 16px;
  font-size: 26px;
}

.error-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-paths {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.error-paths a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.error-paths a:hover {
  color: var(--brand);
  border-color: #dcd4cc;
}

.error-action {
  margin-top: 22px;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-home:hover {
  background: var(--brand-deep);
  color: #fff;
}

/* ============ footer ============ */
.site-footer {
  margin-top: 24px;
  background: #f5f1ec;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 24px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
}

.footer-slogan {
  margin-top: 6px;
  font-size: 14px;
  color: var(--brand-deep);
}

.footer-intro {
  margin-top: 12px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
}

.footer-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--brand);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 26px;
  border-top: 1px solid var(--line);
}

.footer-note,
.footer-copy {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-copy {
  margin-top: 6px;
}

/* ============ responsive ============ */
@media (max-width: 1024px) {
  .inner-main {
    padding: 20px 20px 56px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0 20px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 0 12px;
    padding: 6px 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 46px;
    padding: 0 16px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    color: var(--ink);
  }

  .nav-list a.is-current {
    border-bottom: 0;
    border-left-color: var(--brand);
    background: #fdf7f8;
  }

  .page-layout,
  .page-layout.layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-sidebar,
  .sidebar {
    position: static;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-section {
    padding: 32px 20px 4px;
  }

  .genre-overview,
  .shelf-section,
  .rank-field-section,
  .column-index {
    padding-left: 20px;
    padding-right: 20px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shelf-layout,
  .rank-field-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .column-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .feedback-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .inner-main {
    padding: 16px 16px 48px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 58px;
  }

  .brand {
    font-size: 18px;
  }

  .site-nav {
    padding: 0 16px;
  }

  .page-title {
    font-size: 25px;
  }

  .page-description {
    font-size: 15px;
  }

  .site-notice .notice-text,
  .site-notice .notice-date {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding: 26px 16px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-figure img {
    height: 220px;
  }

  .genre-overview,
  .shelf-section,
  .rank-field-section,
  .column-index {
    padding-left: 16px;
    padding-right: 16px;
  }

  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-figure img {
    height: 150px;
  }

  .column-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-entry-list,
  .scope-list,
  .genre-scope-grid,
  .related-list,
  .highlight-grid,
  .scope-grid,
  .field-reading-grid,
  .feedback-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-block {
    padding: 18px 16px 20px;
  }

  .genre-cover img {
    height: 180px;
  }

  .rank-section .rank-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .rank-position {
    grid-row: 1;
    font-size: 18px;
  }

  .rank-thumb {
    grid-row: 2;
  }

  .rank-thumb img {
    width: 84px;
    height: 64px;
  }

  .rank-body {
    grid-column: 2;
  }

  .field-figure img {
    height: 200px;
  }

  .field-table,
  .field-table thead,
  .field-table tbody,
  .field-table tr,
  .field-table th,
  .field-table td {
    display: block;
    width: 100%;
  }

  .field-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .field-table tbody tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .field-table tbody tr:last-child {
    border-bottom: 0;
  }

  .field-table tbody th,
  .field-table tbody td {
    padding: 3px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .field-table tbody td::before {
    content: attr(data-label);
  }

  .error-main {
    padding: 48px 16px 64px;
  }

  .error-panel {
    padding: 26px 20px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 16px 24px;
    gap: 24px;
  }

  .footer-bottom {
    padding: 14px 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cover-card:hover .cover-figure img {
    transform: none;
  }
}
