:root {
  --paper: #f7f6f3;
  --ink: #23262b;
  --stone: #6b7078;
  --line: #e2e0da;
  --accent: #3f5b8c;
  --accent-soft: #eaeef5;
  --ongoing: #8a6b3f;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1120px;
  --gap: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "tnum" 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
}

/* ============ layout ============ */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-size: 20px;
  font-weight: 600;
}

.brand-sub {
  font-size: 12px;
  color: var(--stone);
  font-weight: 500;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--stone);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: color .18s ease, background-color .18s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--stone);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--stone);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.page-title {
  font-size: 34px;
  font-weight: 600;
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  color: var(--stone);
  font-size: 15px;
}

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 46px 24px;
}

.section-head {
  margin-bottom: 26px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
}

.section-desc,
.section-lead {
  margin-top: 10px;
  color: var(--stone);
  font-size: 15px;
  max-width: 720px;
}

.section-more {
  margin-top: 22px;
}

.link-more,
.text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.link-more::after {
  content: " →";
}

/* ============ components ============ */

.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--stone);
  white-space: nowrap;
}

.status-ongoing {
  color: var(--ongoing);
  border-color: #ddcfb4;
  background: #faf6ef;
}

.status-done {
  color: var(--accent);
  border-color: #ccd7e8;
  background: var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #33507d;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.back-to-top {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--stone);
  font-size: 16px;
  cursor: pointer;
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ index hero ============ */

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-fact {
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.hero-title {
  margin-top: 16px;
  font-size: 38px;
  font-weight: 600;
}

.hero-lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--stone);
  max-width: 560px;
}

.hero-tags-label {
  margin-top: 26px;
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
}

.hero-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tag-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  min-width: 0;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.hero-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--stone);
}

/* ============ index genres ============ */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.genre-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.genre-card:hover {
  border-color: #cfd6e2;
  box-shadow: 0 2px 10px rgba(35, 38, 43, .06);
}

.genre-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.genre-name {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
}

.genre-scope {
  margin-top: 8px;
  font-size: 14px;
  color: var(--stone);
  flex: 1 1 auto;
}

.genre-works {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.genre-works li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.work-link {
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-link:hover {
  color: var(--accent);
}

/* ============ index updates ============ */

.update-list {
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 120px 110px 90px;
  align-items: center;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--stone);
}

.update-work {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-work:hover {
  color: var(--accent);
}

.update-genre {
  color: var(--stone);
  font-size: 13px;
}

.update-chapter {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--stone);
}

/* ============ index ranking + guide ============ */

.ranking-layout,
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.ranking-main,
.guide-main {
  min-width: 0;
}

.rank-list {
  border-top: 1px solid var(--line);
}

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 110px minmax(0, 1.1fr);
  align-items: baseline;
  gap: 14px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-no {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.rank-work {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-work:hover {
  color: var(--accent);
}

.rank-genre {
  color: var(--stone);
  font-size: 13px;
}

.rank-note {
  color: var(--stone);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-aside,
.guide-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.aside-title {
  font-size: 17px;
  font-weight: 600;
}

.editorial-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editorial-item {
  font-size: 14px;
  color: var(--stone);
  padding-left: 14px;
  position: relative;
}

.editorial-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.aside-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--stone);
}

.aside-more {
  margin-top: 16px;
}

.field-list {
  margin-top: 4px;
}

.field-name {
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
}

.field-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--stone);
}

/* ============ index site index ============ */

.index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 22px;
}

.index-col {
  border-top: 2px solid var(--accent);
  padding-top: 12px;
  min-width: 0;
}

.index-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.index-link:hover {
  color: var(--accent);
}

.index-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--stone);
}

/* ============ footer ============ */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 40px;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
}

.footer-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--stone);
  max-width: 420px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
}

.footer-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 14px;
  color: var(--stone);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--stone);
}

/* ============ genres page ============ */

.page-layout.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.genre-overview,
.genre-archive,
.genre-fields {
  margin-bottom: 46px;
}

.overview-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.overview-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.overview-name {
  font-weight: 600;
  color: var(--ink);
}

.overview-desc {
  color: var(--stone);
}

.genre-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.genre-block:last-child {
  border-bottom: 1px solid var(--line);
}

.genre-block-note {
  min-width: 0;
}

.genre-block-title {
  font-size: 18px;
  font-weight: 600;
}

.genre-cover {
  margin-top: 14px;
  max-width: 200px;
}

.genre-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.genre-block-text {
  margin-top: 14px;
  font-size: 14px;
  color: var(--stone);
}

.genre-block-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--stone);
}

.genre-work-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.genre-work-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.genre-work-item:first-child {
  padding-top: 0;
}

.genre-work-link {
  color: var(--ink);
  font-weight: 500;
}

.genre-work-link:hover {
  color: var(--accent);
}

.genre-work-tag {
  font-size: 12px;
  color: var(--stone);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
}

.genre-work-status {
  font-size: 12px;
  color: var(--ongoing);
}

.genre-work-status.is-finished {
  color: var(--accent);
}

.field-list .field-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.field-list .field-item:first-child {
  border-top: 1px solid var(--line);
}

.genre-related {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.related-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item {
  font-size: 14px;
}

.related-link {
  color: var(--ink);
}

.related-link:hover {
  color: var(--accent);
}

/* ============ updates page ============ */

.update-section,
.update-fields,
.genre-entry,
.update-related {
  margin-bottom: 48px;
}

.update-section .update-list {
  border-top: 1px solid var(--line);
}

.update-section .update-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.update-cover {
  width: 72px;
}

.update-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.update-section .update-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--stone);
}

.update-body {
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.update-title:hover {
  color: var(--accent);
}

.update-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--stone);
}

.update-section .update-chapter {
  font-family: var(--mono);
}

.update-status {
  font-size: 12px;
  color: var(--stone);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1px 8px;
  white-space: nowrap;
  justify-self: start;
}

.update-status.is-ongoing {
  color: var(--ongoing);
  border-color: #ddcfb4;
  background: #faf6ef;
}

.update-status.is-completed {
  color: var(--accent);
  border-color: #ccd7e8;
  background: var(--accent-soft);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.field-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.field-block .field-name {
  margin-top: 0;
  font-size: 16px;
}

.field-block .field-text {
  margin-top: 10px;
  font-size: 14px;
  color: var(--stone);
}

.genre-entry-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.genre-entry-item {
  min-width: 0;
}

.genre-entry-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}

.genre-entry-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.related-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.related-name {
  font-size: 16px;
  font-weight: 600;
}

.related-name a {
  color: var(--ink);
}

.related-name a:hover {
  color: var(--accent);
}

.related-text {
  margin-top: 10px;
  font-size: 14px;
  color: var(--stone);
}

/* ============ ranking page ============ */

.page-layout.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.ranking-list-section {
  min-width: 0;
}

.ranking-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-index {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  padding-top: 2px;
}

.rank-cover {
  width: 72px;
}

.rank-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.rank-body {
  min-width: 0;
}

.rank-name {
  font-size: 16px;
  font-weight: 600;
}

.rank-name a {
  color: var(--ink);
}

.rank-name a:hover {
  color: var(--accent);
}

.rank-body .rank-genre {
  margin-top: 6px;
  font-size: 13px;
  color: var(--stone);
}

.rank-body .rank-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--stone);
  white-space: normal;
  overflow: visible;
}

.ranking-tail {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.editorial-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}

.editorial-note .editorial-list {
  margin-top: 16px;
}

.editorial-name {
  font-size: 15px;
  font-weight: 600;
}

.editorial-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--stone);
}

.editorial-foot {
  margin-top: 18px;
}

.distribution-section {
  margin-top: 48px;
}

.distribution-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.distribution-item {
  border-top: 2px solid var(--line);
  padding-top: 12px;
  min-width: 0;
}

.distribution-name {
  font-size: 15px;
  font-weight: 600;
}

.distribution-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--stone);
}

.distribution-tail {
  margin-top: 22px;
}

/* ============ guide page ============ */

.guide-section {
  margin-bottom: 48px;
}

.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.order-card-title {
  font-size: 16px;
  font-weight: 600;
}

.order-card-text {
  margin-top: 10px;
  font-size: 14px;
  color: var(--stone);
}

.guide-figure {
  margin-top: 28px;
  max-width: 560px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.guide-figure-cap {
  margin-top: 10px;
  font-size: 13px;
  color: var(--stone);
}

.field-accordion {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.field-accordion .field-item {
  border-bottom: 1px solid var(--line);
}

.field-summary {
  cursor: pointer;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.field-summary::-webkit-details-marker {
  display: none;
}

.field-summary::after {
  content: "＋";
  float: right;
  color: var(--stone);
  font-weight: 400;
}

.field-item[open] .field-summary::after {
  content: "－";
}

.field-body {
  padding: 0 4px 16px;
}

.field-accordion .field-text {
  font-size: 14px;
  color: var(--stone);
}

.field-example {
  margin-top: 8px;
  font-size: 13px;
  color: var(--stone);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.feedback-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}

.feedback-col-title {
  font-size: 16px;
  font-weight: 600;
}

.feedback-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-item {
  font-size: 14px;
  color: var(--stone);
  padding-left: 14px;
  position: relative;
}

.feedback-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.feedback-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--stone);
}

.guide-related {
  margin-top: 8px;
}

.guide-related .related-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-related .related-item {
  min-width: 0;
}

.guide-related .related-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14px;
}

.guide-related .related-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ============ 404 ============ */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.error-block {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
}

.error-code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.error-title {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 600;
}

.error-text {
  margin-top: 14px;
  max-width: 640px;
  color: var(--stone);
  font-size: 15px;
}

.error-text + .error-text {
  margin-top: 8px;
}

.error-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links {
  padding: 34px 0 0;
}

.error-link-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ============ responsive ============ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 20px 36px;
  }

  .hero-title {
    font-size: 30px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-layout,
  .guide-layout,
  .page-layout.layout-shell,
  .page-layout.ranking-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-grid,
  .distribution-list,
  .order-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .genre-entry-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-related .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .update-row {
    grid-template-columns: 84px minmax(0, 1fr) 100px 90px;
  }

  .update-row .status {
    grid-column: 2 / -1;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 0 4px;
  }

  .inner-main,
  .error-main {
    padding: 0 16px 44px;
  }

  .section {
    padding: 32px 16px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-title,
  .error-title {
    font-size: 26px;
  }

  .page-header {
    padding: 18px 0 22px;
    margin-bottom: 26px;
  }

  .genre-grid,
  .index-grid,
  .field-grid,
  .distribution-list,
  .order-summary-grid,
  .feedback-grid,
  .related-grid,
  .genre-entry-list,
  .guide-related .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .overview-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-row,
  .update-section .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .update-row .status {
    grid-column: auto;
    justify-self: start;
  }

  .rank-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-row .rank-genre,
  .rank-row .rank-note {
    grid-column: 2 / -1;
  }

  .ranking-item {
    grid-template-columns: 30px 64px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover,
  .rank-cover img {
    width: 64px;
  }

  .rank-cover img {
    height: 86px;
  }

  .update-cover,
  .update-cover img {
    width: 64px;
  }

  .update-cover img {
    height: 86px;
  }

  .footer-inner {
    padding: 32px 16px 22px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    padding: 14px 16px 22px;
    flex-wrap: wrap;
  }
}
