/* ==========================================================================
   韩漫漫画 zhongyuanya.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base — 变量、重置、排版基础
   ========================================================================== */

:root {
  --paper: #faf9f6;
  --ink: #14161a;
  --gray: #6b7280;
  --red: #d64545;
  --blue: #2f5fd0;
  --yellow: #e8b23a;
  --line: #dcd9d2;
  --line-strong: #14161a;
  --surface: #ffffff;
  --radius: 6px;
  --radius-sm: 4px;
  --shell: 1120px;
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

figure {
  margin: 0;
}

time {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ==========================================================================
   layout — 全站骨架：页头、导航、主容器、页脚
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
}

/* 顶部信息条 */
.topbar {
  border-bottom: 1px solid var(--line);
  background-color: var(--ink);
  color: #f2f1ed;
}

.topbar-text {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #e6e4de;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 3px solid var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: var(--red);
}

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--blue);
  text-decoration: none;
  border-bottom-color: var(--line);
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--red);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

/* 主容器 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--blue);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  padding: 18px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 34px;
  line-height: 1.25;
}

.page-description {
  max-width: 780px;
  margin-top: 12px;
  font-size: 16px;
  color: var(--gray);
}

/* 页脚 */
.site-footer {
  background-color: var(--ink);
  color: #e6e4de;
  border-top: 3px solid var(--red);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: var(--gap-lg);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #b6b4ae;
}

.footer-group-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-link {
  display: inline-block;
  min-height: 24px;
  font-size: 14px;
  color: #cfcdc7;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid #33363c;
}

.footer-note {
  font-size: 13px;
  line-height: 1.7;
  color: #a5a39d;
}

.footer-copy {
  margin-top: 8px;
  font-size: 13px;
  color: #8b8983;
}

/* ==========================================================================
   components — 区块标题、通用卡片、标签、清单、表格、链接
   ========================================================================== */

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  display: inline-block;
  padding-bottom: 8px;
  font-size: 24px;
  border-bottom: 3px solid var(--line-strong);
}

.section-note,
.section-desc,
.section-sub {
  margin-top: 10px;
  max-width: 760px;
  font-size: 15px;
  color: var(--gray);
}

.section-lead {
  margin-top: 10px;
  max-width: 780px;
  font-size: 16px;
  color: var(--gray);
}

.section-body {
  max-width: 820px;
}

.section-body p + p {
  margin-top: 14px;
}

.section-more,
.section-foot {
  margin-top: 20px;
  font-size: 15px;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.link-inline,
.inline-link,
.text-link {
  color: var(--blue);
  font-weight: 500;
}

.link-inline:hover,
.inline-link:hover,
.text-link:hover,
.link-inline:focus-visible,
.inline-link:focus-visible,
.text-link:focus-visible {
  color: var(--red);
}

/* 题材清单行（首页 + 题材分类页共用 .genre-rows / .genre-row） */
.genre-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.genre-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.6fr);
  gap: var(--gap-md);
  align-items: baseline;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.genre-row:hover {
  border-bottom-color: var(--line-strong);
  transform: translateX(3px);
}

.genre-name,
.genre-row-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.genre-trait,
.genre-row-trait {
  font-size: 15px;
  color: var(--ink);
}

.genre-organize,
.genre-row-organize {
  font-size: 14px;
  color: var(--gray);
}

/* 封面卡片 */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-md);
}

.cover-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cover-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.cover-media,
.cover-figure {
  aspect-ratio: 3 / 4;
  background-color: #efece6;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cover-media img,
.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-title,
.cover-name {
  padding: 12px 14px 0;
  font-size: 17px;
}

.cover-tag,
.cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 0;
  font-size: 13px;
  color: var(--gray);
}

.cover-status {
  padding: 6px 14px 14px;
  font-size: 13px;
  color: var(--gray);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #f4f2ed;
  color: var(--ink);
}

.tag-genre {
  border-color: var(--blue);
  color: var(--blue);
  background-color: #eef2fb;
}

.tag-status {
  border-color: var(--yellow);
  color: #8a6410;
  background-color: #fbf4e2;
}

/* 更新目录条目（首页 + 更新页共用 .update-list / .update-item） */
.update-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1.6fr) minmax(0, 1fr) 96px;
  gap: var(--gap-sm);
  align-items: baseline;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.update-item:hover {
  border-bottom-color: var(--line-strong);
  transform: translateX(3px);
}

.update-date {
  font-size: 14px;
  color: var(--gray);
}

.update-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.update-genre {
  font-size: 14px;
  color: var(--gray);
}

.update-state,
.update-status {
  font-size: 13px;
  font-weight: 500;
  color: #8a6410;
}

.status-new {
  color: var(--red);
}

.status-continue {
  color: var(--blue);
}

.genre-link {
  color: var(--blue);
}

/* 榜单块（首页 + 榜单页共用 .ranking-block） */
.ranking-block {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.ranking-name {
  font-size: 18px;
}

.ranking-basis {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray);
}

.ranking-list,
.ranking-items {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.ranking-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: var(--gap-xs);
  align-items: baseline;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.ranking-entry,
.item-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.ranking-genre,
.item-genre {
  font-size: 13px;
  color: var(--gray);
}

/* 字段说明（首页简表 + 阅读说明页） */
.field-table {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.field-table dt.field-name {
  padding-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.field-table dd.field-desc {
  margin: 4px 0 12px;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
}

/* 站内索引链接组 */
.index-list li + li {
  margin-top: 10px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
}

.btn-primary {
  background-color: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--red);
  border-color: var(--red);
  color: #ffffff;
  text-decoration: none;
}

.btn-line {
  background-color: transparent;
  color: var(--ink);
}

.btn-line:hover,
.btn-line:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  display: block;
}

/* 首屏 */
.hero {
  border-bottom: 3px solid var(--line-strong);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--gap-xl);
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
}

.hero-title {
  margin-top: 16px;
  font-size: 40px;
  line-height: 1.2;
}

.hero-desc {
  max-width: 540px;
  margin-top: 16px;
  font-size: 16px;
  color: var(--gray);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: 26px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hero-action:hover,
.hero-action:focus-visible {
  text-decoration: none;
  color: #ffffff;
  background-color: var(--ink);
}

.hero-action-genres {
  background-color: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.hero-action-genres:hover,
.hero-action-genres:focus-visible {
  background-color: #b83737;
  border-color: #b83737;
}

.hero-action-updates {
  background-color: var(--surface);
  color: var(--ink);
}

.hero-action-rankings {
  background-color: var(--surface);
  color: var(--ink);
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.hero-media-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
}

/* 首页区块容器统一宽度 */
.home-main > .section {
  padding-left: 24px;
  padding-right: 24px;
}

.home-main > .section > * {
  max-width: var(--shell);
  margin-left: auto;
  margin-right: auto;
}

/* 最近更新预览的月份分组 */
.updates-preview .month-group + .month-group {
  margin-top: 22px;
}

.month-title {
  display: inline-block;
  padding-bottom: 6px;
  font-size: 17px;
  border-bottom: 2px solid var(--line-strong);
}

.updates-preview .month-title {
  margin-bottom: 10px;
}

/* 榜单预览三栏 */
.ranking-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-md);
}

.ranking-columns .ranking-list {
  margin-top: 14px;
}

/* 阅读说明摘要两栏 */
.guide-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-lg);
}

.guide-subtitle {
  font-size: 18px;
}

.guide-fields .field-table {
  margin-top: 14px;
}

.guide-text {
  margin-top: 14px;
  font-size: 15px;
  color: var(--gray);
}

.guide-boundary .section-more {
  margin-top: 16px;
}

/* 站内页面索引四栏 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-md);
}

.index-group {
  min-width: 0;
}

.index-title {
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  border-bottom: 2px solid var(--line-strong);
}

/* ==========================================================================
   pages — 题材分类页
   ========================================================================== */

.section-genre-list .genre-rows {
  margin-top: 4px;
}

.section-genre-wall .cover-grid {
  margin-top: 4px;
}

.section-genre-wall .cover-meta {
  padding-bottom: 14px;
}

/* ==========================================================================
   pages — 最近更新页
   ========================================================================== */

.update-intro .section-head {
  margin-bottom: 20px;
}

.update-figure {
  margin-bottom: 22px;
}

.update-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.update-figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
}

.intro-body {
  max-width: 820px;
}

.intro-text + .intro-text {
  margin-top: 14px;
}

.update-months .month-group + .month-group {
  margin-top: 26px;
}

.update-months .month-title {
  margin-bottom: 12px;
}

.month-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 2px solid var(--line-strong);
}

.month-toggle::after {
  content: "收起";
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}

.month-toggle[aria-expanded="false"]::after {
  content: "展开";
}

.month-toggle:hover,
.month-toggle:focus-visible {
  color: var(--blue);
}

.update-months .update-list[hidden] {
  display: none;
}

.update-rhythm .rhythm-body {
  max-width: 820px;
}

.rhythm-text + .rhythm-text {
  margin-top: 14px;
}

/* ==========================================================================
   pages — 榜单排行页
   ========================================================================== */

.section-intro .section-text {
  max-width: 820px;
  font-size: 16px;
  color: var(--ink);
}

.section-intro .section-text + .section-text {
  margin-top: 14px;
}

.section-media {
  margin-top: 22px;
}

.section-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.media-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
}

.section-rankings .ranking-block + .ranking-block {
  margin-top: 22px;
}

.section-rankings .section-text {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--gray);
}

.section-rankings .ranking-items .ranking-item {
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.8fr);
}

.item-index {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

.item-clue {
  font-size: 14px;
  color: var(--gray);
}

/* 榜单线索表 */
.clue-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15px;
}

.table-caption {
  padding-bottom: 10px;
  text-align: left;
  font-size: 14px;
  color: var(--gray);
}

.clue-table th,
.clue-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.clue-table thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--line-strong);
}

.section-clues .section-text {
  max-width: 820px;
  margin-top: 16px;
  color: var(--gray);
}

.section-clues .section-text .text-link + .text-link {
  margin-left: 16px;
}

/* ==========================================================================
   pages — 阅读说明页
   ========================================================================== */

.guide-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.guide-section .section-title {
  display: inline-block;
  padding-bottom: 8px;
  font-size: 24px;
  border-bottom: 3px solid var(--line-strong);
}

.guide-figure {
  margin: 22px 0;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.guide-figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
}

/* 字段说明列表 */
.field-table[role="list"] {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.field-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.field-row .field-name {
  font-size: 16px;
}

.field-meaning {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink);
}

.field-detail {
  margin-top: 10px;
}

.field-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  cursor: pointer;
}

.field-toggle::marker,
.field-toggle::-webkit-details-marker {
  display: none;
  content: "";
}

.field-toggle::before {
  content: "＋ ";
  font-size: 13px;
}

.field-detail[open] .field-toggle::before {
  content: "－ ";
}

.field-detail-text {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--gray);
  border-left: 2px solid var(--line);
}

/* 收录边界两栏 */
.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap-md);
  margin-top: 20px;
}

.boundary-column {
  padding: 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-do {
  border-top: 3px solid var(--blue);
}

.boundary-dont {
  border-top: 3px solid var(--red);
}

.boundary-title {
  font-size: 17px;
}

.boundary-list {
  margin-top: 12px;
}

.boundary-item {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: var(--ink);
}

.boundary-item + .boundary-item {
  margin-top: 10px;
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--yellow);
}

.boundary-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--gray);
}

.boundary-note .inline-link + .inline-link {
  margin-left: 14px;
}

/* 浏览路径步骤 */
.path-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  margin-top: 20px;
}

.path-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--gap-sm);
  align-items: start;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--ink);
  border-radius: 50%;
}

.path-title {
  font-size: 17px;
}

.path-text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--gray);
}

.path-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--gray);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 16px;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-question {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "＋";
  margin-right: 10px;
  font-size: 14px;
  color: var(--blue);
}

.faq-item[open] .faq-question::before {
  content: "－";
}

.faq-answer {
  padding: 0 0 14px 24px;
  font-size: 15px;
  color: var(--gray);
}

/* 下一步入口 */
.guide-next .next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-md);
  margin-top: 20px;
}

.next-card {
  display: block;
  padding: 18px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.next-card:hover,
.next-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  text-decoration: none;
}

.next-title {
  font-size: 16px;
  color: var(--blue);
}

.next-text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray);
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-panel {
  padding: 32px 28px;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.error-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

.error-title {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.25;
}

.error-text {
  max-width: 620px;
  margin-top: 14px;
  font-size: 16px;
  color: var(--gray);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: 24px;
}

.error-hint {
  margin-top: 40px;
}

.error-hint-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.error-hint-list a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
}

/* ==========================================================================
   responsive — 1024 / 768 / 480
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-layout {
    gap: var(--gap-lg);
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 34px;
  }

  .ranking-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-next .next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 6px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--red);
  }

  .topbar-text {
    padding: 8px 18px;
  }

  .inner-main {
    padding: 0 18px 52px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap-lg);
    padding: 32px 18px;
  }

  .hero-title {
    font-size: 28px;
  }

  .home-main > .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 34px 0;
  }

  .guide-section {
    padding: 34px 0;
  }

  .section-title,
  .guide-section .section-title {
    font-size: 20px;
  }

  .genre-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap-md);
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-item {
    grid-template-columns: 96px minmax(0, 1fr);
    row-gap: 2px;
  }

  .update-genre,
  .update-state,
  .update-status {
    grid-column: 2;
  }

  .section-rankings .ranking-items .ranking-item {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 2px;
  }

  .section-rankings .ranking-items .item-genre,
  .section-rankings .ranking-items .item-clue {
    grid-column: 2;
  }

  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-next .next-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .clue-table {
    display: block;
    overflow-x: auto;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-md);
    padding: 32px 18px 22px;
  }

  .footer-bottom {
    padding: 16px 18px 24px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 18px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-action {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    padding: 0 12px;
  }

  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-title {
    font-size: 26px;
  }

  .error-actions .btn {
    width: 100%;
  }

  .path-step {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  .path-index {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
