:root {
  --color-primary: #3b4a6b;
  --color-accent: #d96a7a;
  --color-bg: #f5f3ef;
  --color-line: #e3ded6;
  --color-text: #2c2f36;
  --color-status: #5a8f7b;
  --color-surface: #ffffff;
  --color-muted: #6b7280;
  --radius-card: 8px;
  --radius-sm: 4px;
  --shell-width: 1120px;
  --shadow-soft: 0 1px 2px rgba(59, 74, 107, 0.08);
  --shadow-hover: 0 4px 14px rgba(59, 74, 107, 0.14);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ============ base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ layout · shell ============ */

.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav {
  margin-left: auto;
}

.site-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

.site-footer {
  background-color: var(--color-primary);
  color: #e8e9ee;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 36px 20px 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 28px;
}

.footer-copy {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 20px 28px;
  font-size: 13px;
  color: #b9bfd0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
}

/* ============ layout · brand & nav ============ */

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

.brand-tag {
  font-size: 12px;
  color: var(--color-muted);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-primary);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

.nav-list a.is-current {
  color: var(--color-accent);
  font-weight: 600;
  background-color: rgba(217, 106, 122, 0.1);
}

/* ============ layout · inner page skeleton ============ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb-sep {
  color: var(--color-line);
}

.breadcrumb-current {
  color: var(--color-primary);
  font-weight: 500;
}

.page-header {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 760px;
}

/* ============ components · shared ============ */

.section {
  margin-bottom: 40px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title,
.section-head h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-desc,
.section-intro {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 820px;
}

.section-more,
.section-note,
.col-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a,
.section-note a,
.col-more a,
.fields-note a {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.tag-genre,
.tag-status,
.tag-dimension,
.tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-genre {
  background-color: rgba(217, 106, 122, 0.12);
  color: #b04b5c;
}

.tag-status {
  background-color: rgba(90, 143, 123, 0.14);
  color: #3f6c5b;
}

.tag-dimension {
  background-color: rgba(59, 74, 107, 0.1);
  color: var(--color-primary);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #c25a6a;
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ============ components · footer ============ */

.footer-brand {
  max-width: 340px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #c3c8d6;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-group a {
  font-size: 13px;
  color: #c3c8d6;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #ffffff;
}

/* ============ pages · index ============ */

.top-notice {
  background-color: var(--color-primary);
  color: #e8e9ee;
  font-size: 13px;
}

.top-notice p {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 8px 20px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 7fr);
  gap: 32px;
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-bottom: 40px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.hero-tags a:hover,
.hero-tags a:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-line);
}

.hero-visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-muted);
}

.genre-compare {
  margin-bottom: 40px;
}

.compare-table,
.genre-table,
.field-table {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.compare-table caption,
.genre-table caption,
.field-table caption {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-line);
}

.compare-table th,
.compare-table td,
.genre-table th,
.genre-table td,
.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.compare-table thead th,
.genre-table thead th,
.field-table thead th {
  background-color: var(--color-bg);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.compare-table tbody th,
.genre-table tbody th {
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td,
.genre-table tbody tr:last-child th,
.genre-table tbody tr:last-child td,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr:hover,
.genre-table tbody tr:hover {
  background-color: rgba(245, 243, 239, 0.7);
}

.cover-wall {
  margin-bottom: 40px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cover-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 12px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.cover-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.cover-figure {
  margin: 0 0 10px;
}

.cover-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
}

.cover-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.updates-rankings {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.updates-col,
.rankings-col,
.guide-col,
.index-col {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 20px;
}

.col-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.col-intro {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.month-group {
  margin-bottom: 18px;
}

.month-group:last-child {
  margin-bottom: 0;
}

.month-title {
  font-size: 15px;
  color: var(--color-primary);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--color-line);
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  padding: 4px 0;
}

.update-date {
  color: var(--color-status);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.update-name {
  color: var(--color-text);
  font-weight: 500;
}

.rank-block {
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-line);
}

.rank-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.rank-basis {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.rank-name {
  color: var(--color-text);
}

.guide-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 8px;
}

.field-list {
  margin: 0 0 4px;
}

.field-list dt {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 14px;
  margin-top: 10px;
}

.field-list dt:first-child {
  margin-top: 0;
}

.field-list dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--color-text);
}

.index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.index-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-line);
  width: 100%;
}

.index-list a:hover,
.index-list a:focus-visible {
  border-bottom-color: var(--color-accent);
}

/* ============ pages · genres ============ */

.section-genre-table {
  margin-bottom: 40px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll .genre-table {
  min-width: 560px;
}

.genre-row th {
  background-color: var(--color-bg);
}

.section-genre-covers {
  margin-bottom: 40px;
}

.genre-cover-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.genre-cover-item {
  display: flex;
}

.genre-cover-item .cover-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.genre-cover-item .cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
}

.cover-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  flex: 1;
}

.cover-title {
  font-size: 16px;
}

.cover-desc {
  font-size: 13px;
  color: var(--color-muted);
  flex: 1;
}

.cover-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

/* ============ pages · updates ============ */

.updates-section {
  margin-bottom: 40px;
}

.updates-section .month-group {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.updates-section .update-list {
  gap: 10px;
}

.updates-section .update-item {
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-line);
}

.updates-section .update-item:last-child {
  border-bottom: 0;
}

.update-genre a {
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(217, 106, 122, 0.12);
  color: #b04b5c;
}

.update-genre a:hover,
.update-genre a:focus-visible {
  background-color: rgba(217, 106, 122, 0.22);
  color: #8f3a49;
}

.updates-figure {
  margin: 24px 0 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-surface);
}

.updates-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.updates-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-line);
}

.fields-section {
  margin-bottom: 40px;
}

.fields-section .field-table {
  margin-top: 16px;
}

.fields-section .field-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.fields-note {
  margin-top: 14px;
  font-size: 14px;
}

.related-section {
  margin-bottom: 8px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  font-size: 14px;
}

.related-list a:hover,
.related-list a:focus-visible {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-soft);
}

/* ============ pages · rankings ============ */

.rank-types {
  margin-bottom: 40px;
}

.rank-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.rank-type-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 18px;
}

.rank-type-popular {
  border-top-color: var(--color-accent);
}

.rank-type-favorite {
  border-top-color: var(--color-status);
}

.rank-type-follow {
  border-top-color: var(--color-primary);
}

.rank-type-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.rank-type-basis,
.rank-type-scope,
.rank-type-note {
  font-size: 14px;
  margin-bottom: 8px;
}

.rank-type-note {
  color: var(--color-muted);
  margin-bottom: 0;
}

.rank-type-basis .label,
.rank-type-scope .label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-bg);
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
}

.rank-entries {
  margin-bottom: 40px;
}

.rank-visual {
  margin: 18px 0 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-surface);
}

.rank-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.rank-visual figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-line);
}

.rank-entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-entry {
  display: flex;
  gap: 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.rank-entry:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
}

.rank-entry-position {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.rank-entry-body {
  flex: 1 1 auto;
  min-width: 0;
}

.rank-entry-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.rank-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.rank-entry-meta .tag-genre {
  font-size: 12px;
}

.rank-entry-desc {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

.rank-entries-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
}

.rank-entries-footer a {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.rank-usage {
  margin-bottom: 8px;
}

.rank-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.rank-usage-col {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 18px;
}

.rank-usage-col h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.rank-usage-col p {
  font-size: 14px;
  color: var(--color-muted);
}

/* ============ pages · guide ============ */

.guide-fields {
  margin-bottom: 40px;
}

.guide-figure {
  margin: 0 0 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-surface);
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure-caption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-line);
}

.field-table {
  display: flex;
  flex-direction: column;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.6fr) minmax(180px, 1.6fr);
  gap: 0;
  border-bottom: 1px solid var(--color-line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-row-head {
  background-color: var(--color-bg);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 14px;
}

.field-cell {
  padding: 12px 16px;
  font-size: 14px;
  min-width: 0;
  overflow-wrap: break-word;
}

.field-name {
  font-weight: 600;
  color: var(--color-primary);
}

.field-mean,
.field-use {
  color: var(--color-text);
}

details.field-row {
  display: block;
}

.field-summary {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.6fr) minmax(180px, 1.6fr);
  cursor: pointer;
  list-style: none;
}

.field-summary::-webkit-details-marker {
  display: none;
}

.field-summary:hover {
  background-color: rgba(245, 243, 239, 0.7);
}

.field-detail {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  background-color: var(--color-surface);
}

.guide-path {
  margin-bottom: 40px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.path-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.path-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.path-text {
  font-size: 14px;
  color: var(--color-muted);
  flex: 1;
}

.path-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.guide-scope {
  margin-bottom: 40px;
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.scope-main {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 20px;
}

.scope-subtitle {
  font-size: 16px;
  margin-bottom: 10px;
}

.scope-subtitle + .scope-text {
  margin-bottom: 20px;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.scope-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
}

.scope-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.scope-text {
  font-size: 14px;
  color: var(--color-muted);
}

.scope-side {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 20px;
  align-self: start;
}

.scope-side-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.scope-side-text {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.scope-side-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scope-side-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-line);
  width: 100%;
}

.scope-side-list a:hover,
.scope-side-list a:focus-visible {
  border-bottom-color: var(--color-accent);
}

.guide-faq {
  margin-bottom: 8px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 0 18px;
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex: 0 0 auto;
}

.faq-item[open] .faq-question::before {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 0 16px 18px;
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
}

/* ============ pages · 404 ============ */

.error-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 40px 28px;
}

.error-code {
  font-size: 44px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============ responsive ============ */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .updates-rankings,
  .guide-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-type-grid,
  .rank-usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--color-line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 10px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .site-main {
    padding: 20px 16px 40px;
  }

  .top-notice p {
    padding: 8px 16px;
  }

  .hero-section {
    padding: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title,
  .section-head h2 {
    font-size: 19px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 16px;
  }

  .footer-copy {
    padding: 14px 16px 24px;
  }

  .field-row-head {
    display: none;
  }

  .field-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 0;
  }

  .field-summary .field-cell {
    padding: 2px 16px;
  }

  .rank-type-grid,
  .rank-usage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-entry {
    padding: 14px;
    gap: 12px;
  }

  .error-panel {
    padding: 28px 18px;
  }
}

@media (max-width: 480px) {
  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
