/* ============================================================
   韩漫漫画 huangejia.cn
   base / layout / components / pages / responsive
   ============================================================ */

/* ------------------------------------------------------------
   base
   ------------------------------------------------------------ */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #23252b;
  --ink-soft: #6b6f78;
  --line: #c9ccd2;
  --line-soft: #e4e6ea;
  --tone-blue: #7d8ea6;
  --tone-green: #8aa48f;
  --tone-purple: #9a8fae;
  --tone-orange: #c19a7c;
  --tone-brown: #8d8378;
  --radius: 5px;
  --radius-sm: 4px;
  --container: 1180px;
  --gap: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #4d5763;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   layout
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  display: block;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  margin: 0 0 6px;
}

.section-desc,
.section-note,
.section-lead {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 860px;
}

.section-more {
  margin-top: 16px;
  font-size: 13px;
}

.section-more a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.section-more a:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-side {
  min-width: 0;
}

/* ------------------------------------------------------------
   components : header / nav / footer
   ------------------------------------------------------------ */
.utility-bar {
  background: #f0f0ee;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.utility-note {
  color: var(--ink-soft);
  min-width: 0;
}

.quick-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-paths a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  white-space: nowrap;
}

.quick-paths a:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  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);
}

.nav-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--ink);
}

.nav-toggle::after {
  top: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-soft);
  border: 1px solid transparent;
}

.nav-list a:hover {
  color: var(--ink);
  border-color: var(--line);
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 600;
  background: #f0f0ee;
  border-color: var(--line);
}

.site-footer {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 26px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-about {
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  margin: 0 0 10px;
}

.footer-list li + li {
  margin-top: 6px;
}

.footer-list a {
  color: var(--ink-soft);
}

.footer-list a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.footer-boundary,
.footer-copy {
  margin: 0;
}

/* ------------------------------------------------------------
   components : buttons / tags / badges / tables
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #3a3d45;
  border-color: #3a3d45;
  color: #ffffff;
}

.btn-ghost {
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  background: #f0f0ee;
}

.tone {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
  flex: 0 0 auto;
}

.tone-blue {
  background: var(--tone-blue);
}

.tone-green {
  background: var(--tone-green);
}

.tone-purple {
  background: var(--tone-purple);
}

.tone-orange {
  background: var(--tone-orange);
}

.tone-brown {
  background: var(--tone-brown);
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-soft);
  background: #f4f4f2;
}

.data-table,
.field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  font-size: 14px;
}

.data-table th,
.data-table td,
.field-table th,
.field-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.data-table thead th,
.field-table thead th {
  background: #f0f0ee;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th {
  width: 30%;
  font-weight: 600;
  background: #fafaf8;
}

.field-caption,
.table-caption {
  caption-side: top;
  text-align: left;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   components : shared lists
   ------------------------------------------------------------ */
.update-list {
  display: block;
}

.update-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 78px 78px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-date,
.update-chapter,
.update-time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 13px;
}

.update-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.related-list a,
.related-item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}

.related-list a:hover,
.related-item a:hover {
  border-color: var(--ink-soft);
  background: #f4f4f2;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.entry-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}

.entry-list a:hover {
  border-color: var(--ink-soft);
  background: #f4f4f2;
}

/* ------------------------------------------------------------
   components : breadcrumb / page header
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.page-title {
  font-size: 28px;
  margin: 0 0 8px;
}

.page-description {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 860px;
}

.inner-main > .container {
  padding-top: 34px;
}

/* ------------------------------------------------------------
   pages : index
   ------------------------------------------------------------ */
.hero {
  padding-top: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 34px;
  margin: 0 0 12px;
}

.hero-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-visual figcaption {
  padding: 9px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

.hero-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.status-strip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}

.status-label {
  font-size: 12px;
  color: var(--ink-soft);
}

.status-value {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.path-list {
  display: grid;
  gap: 10px;
}

.path-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.path-name {
  font-weight: 600;
  font-size: 15px;
}

.path-audience {
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 0;
}

.path-link {
  justify-self: end;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.path-link:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.genre-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.genre-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.genre-row:last-child {
  border-bottom: 0;
}

.genre-head {
  background: #f0f0ee;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.genre-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.genre-name {
  font-weight: 600;
}

.genre-head .genre-name {
  font-weight: 600;
}

.genre-feature,
.genre-structure {
  color: var(--ink-soft);
}

.genre-count {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 13px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}

.cover-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}

.cover-name {
  font-size: 15px;
  padding: 11px 14px 4px;
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.cover-card .badge {
  margin: 0 14px 13px;
  align-self: flex-start;
}

.update-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.update-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  min-width: 0;
}

.update-month {
  font-size: 15px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ranking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  min-width: 0;
}

.ranking-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.ranking-basis {
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-list {
  display: block;
}

.ranking-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-item:last-child {
  border-bottom: 0;
}

.rank-no {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 13px;
}

.rank-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.note-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.note-fields {
  min-width: 0;
}

.field-list {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-top: 12px;
}

.field-list dt,
.field-list dd {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  margin: 0;
}

.field-list dt {
  background: #fafaf8;
  font-weight: 600;
  border-right: 1px solid var(--line-soft);
}

.field-list dd {
  color: var(--ink-soft);
  min-width: 0;
}

.field-list dt:nth-last-of-type(1),
.field-list dd:nth-last-of-type(1) {
  border-bottom: 0;
}

.note-boundary {
  min-width: 0;
}

.note-boundary p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.index-section .index-grid,
.index-section {
  min-width: 0;
}

.index-s {
  display: block;
}

.index-section {
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
}

.index-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}

.index-name {
  font-size: 15px;
  font-weight: 600;
}

.index-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   pages : genres
   ------------------------------------------------------------ */
.genres-table-section {
  min-width: 0;
}

.genres-table th,
.genres-table td {
  font-size: 14px;
}

.genres-table tbody th {
  font-weight: 600;
  width: 130px;
}

.genres-path-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.step-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f0f0ee;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.step-body {
  min-width: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-entry {
  margin-top: 14px;
  font-size: 13px;
}

.aside-entry a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.aside-entry a:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.genres-blocks {
  margin-top: 34px;
}

.genre-block {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  margin-top: 18px;
}

.genre-block-blue {
  border-left-color: var(--tone-blue);
}

.genre-block-green {
  border-left-color: var(--tone-green);
}

.genre-block-purple {
  border-left-color: var(--tone-purple);
}

.genre-block-orange {
  border-left-color: var(--tone-orange);
}

.genre-block-brown {
  border-left-color: var(--tone-brown);
}

.genre-block-head {
  margin-bottom: 14px;
}

.genre-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.genre-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
}

.tag-blue {
  background: var(--tone-blue);
}

.tag-green {
  background: var(--tone-green);
}

.tag-purple {
  background: var(--tone-purple);
}

.tag-orange {
  background: var(--tone-orange);
}

.tag-brown {
  background: var(--tone-brown);
}

.genre-block-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.genre-entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.genre-entry {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fcfcfa;
  overflow: hidden;
  min-width: 0;
}

.entry-cover {
  min-width: 0;
}

.entry-cover img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}

.entry-body {
  padding: 11px 13px 13px;
  min-width: 0;
}

.entry-name {
  font-size: 15px;
  margin-bottom: 5px;
}

.entry-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

.related-entry {
  margin-top: 34px;
}

/* ------------------------------------------------------------
   pages : timetable
   ------------------------------------------------------------ */
.section-update-fields,
.section-timetable,
.section-timetable-path,
.section-related {
  min-width: 0;
}

.timetable-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
  margin-top: 14px;
}

.group-date {
  font-size: 15px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

.section-timetable .update-row {
  grid-template-columns: 74px minmax(0, 1fr) 84px 84px;
}

.update-thumb {
  width: 74px;
  min-width: 74px;
}

.update-thumb img {
  display: block;
  width: 74px;
  height: 46px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.section-timetable-path .path-list {
  display: grid;
  gap: 12px;
  counter-reset: none;
}

.section-timetable-path .path-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.section-timetable-path .path-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f0f0ee;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.section-timetable-path .path-text {
  min-width: 0;
  font-size: 14px;
  color: var(--ink-soft);
  padding-top: 1px;
}

.section-timetable-path .path-text a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.section-timetable-path .path-text a:hover {
  border-color: var(--ink-soft);
}

/* ------------------------------------------------------------
   pages : ranking
   ------------------------------------------------------------ */
.basis-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.basis-item {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-left-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  min-width: 0;
}

.basis-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.basis-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.basis-scope {
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.ranking-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ranking-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  min-width: 0;
}

.board-head {
  margin-bottom: 12px;
}

.board-name {
  font-size: 17px;
  margin-bottom: 6px;
}

.board-basis {
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.board-media {
  min-width: 0;
  margin-bottom: 12px;
}

.board-media img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.board-list {
  display: block;
}

.board-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-rank {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 13px;
}

.board-work {
  min-width: 0;
  overflow-wrap: anywhere;
}

.board-tag {
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 6px;
  white-space: nowrap;
}

.relation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px;
  align-items: start;
}

.relation-text {
  min-width: 0;
}

.relation-text p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.relation-links {
  min-width: 0;
}

.relation-links-title {
  font-size: 16px;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------
   pages : guide
   ------------------------------------------------------------ */
.boundary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.boundary-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px;
  min-width: 0;
}

.boundary-include {
  border-top: 3px solid var(--tone-green);
}

.boundary-exclude {
  border-top: 3px solid var(--tone-brown);
}

.block-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--line);
}

.media-figure {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.media-figure img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.figure-caption {
  padding: 9px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

.field-name {
  width: 180px;
  font-weight: 600;
}

.field-desc {
  color: var(--ink-soft);
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-steps .path-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  min-width: 0;
}

.path-steps .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f0f0ee;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.path-steps .step-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.path-steps .step-desc {
  font-size: 14px;
  color: var(--ink-soft);
}

.path-steps .step-desc a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.path-steps .step-desc a:hover {
  border-color: var(--ink-soft);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-soft);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  background: #fafaf8;
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

/* ------------------------------------------------------------
   pages : 404
   ------------------------------------------------------------ */
.error-main {
  padding: 56px 0 20px;
}

.error-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 34px 28px;
  max-width: 720px;
}

.error-block h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.error-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-paths {
  margin-top: 34px;
}

.error-paths h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

.error-path-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.error-path-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}

.error-path-list a {
  font-size: 15px;
  font-weight: 600;
}

.error-path-list a:hover {
  color: #4d5763;
}

.error-path-list span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   responsive
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 28px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
  }
}

@media (max-width: 900px) {
  .container,
  .breadcrumb,
  .page-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-nav {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 18px 12px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    display: block;
  }

  .nav-list a {
    display: flex;
    min-height: 46px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .site-header {
    position: relative;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-visual img {
    height: 240px;
  }

  .hero-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .genres-path-aside {
    order: -1;
  }

  .cover-grid,
  .update-groups,
  .ranking-grid,
  .basis-list,
  .ranking-columns,
  .path-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-grid,
  .relation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body.site-body {
    font-size: 14.5px;
  }

  .container,
  .breadcrumb,
  .page-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .utility-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .quick-paths {
    width: 100%;
  }

  .quick-paths a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-visual img {
    height: 200px;
  }

  .hero-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 30px 0;
  }

  .path-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .path-link {
    justify-self: start;
  }

  .genre-table {
    border: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .genre-head {
    display: none;
  }

  .genre-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 10px;
    padding: 12px 14px;
  }

  .genre-row:last-child {
    margin-bottom: 0;
  }

  .cover-grid,
  .update-groups,
  .ranking-grid,
  .basis-list,
  .ranking-columns,
  .genre-entry-list,
  .path-steps,
  .boundary-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-card img {
    height: 210px;
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 4px 10px;
  }

  .update-name {
    grid-column: 1 / -1;
  }

  .section-timetable .update-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .section-timetable .update-thumb {
    grid-row: 1 / span 2;
  }

  .section-timetable .update-chapter,
  .section-timetable .update-time {
    grid-column: 2;
  }

  .field-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-list dt {
    border-right: 0;
    border-bottom: 0;
    padding-bottom: 2px;
  }

  .field-list dd {
    padding-top: 0;
  }

  .field-table tbody th,
  .field-name {
    width: auto;
  }

  .data-table,
  .field-table {
    font-size: 13.5px;
  }

  .data-table th,
  .data-table td,
  .field-table th,
  .field-table td {
    padding: 9px 10px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .error-main {
    padding: 32px 0 12px;
  }

  .error-block {
    padding: 24px 18px;
  }

  .page-title {
    font-size: 22px;
  }

  .board-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .board-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
}
