/* =========================================================
   base / reset
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e63946;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.3;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  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: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  color: #e63946;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333333;
  border-radius: 4px;
  line-height: 1.4;
}

.site-nav .nav-list a:hover {
  color: #e63946;
  background-color: #f5f5f5;
}

.site-nav .nav-list a.is-current {
  color: #e63946;
  font-weight: 600;
  background-color: #f5f5f5;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background-color: #f5f5f5;
}

.nav-toggle-icon {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background-color: #1a1a1a;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: #1a1a1a;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-main {
  min-height: 60vh;
}

.site-main.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 48px 0 24px;
}

.footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #aaaaaa;
}

.footer-links h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul a {
  font-size: 0.875rem;
  color: #aaaaaa;
  line-height: 1.6;
}

.footer-links ul a:hover {
  color: #ffffff;
}

.copyright {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid #333333;
  font-size: 0.8125rem;
  color: #888888;
  text-align: center;
}

/* =========================================================
   components / buttons, tags, breadcrumb, page header
   ========================================================= */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.4;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: #e63946;
  color: #ffffff;
  border: 1px solid #e63946;
}

.btn-primary:hover {
  background-color: #c92c39;
  border-color: #c92c39;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.btn-secondary:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item,
.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  line-height: 1.4;
  min-height: 40px;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tag-item:hover,
.tag-link:hover {
  border-color: #e63946;
  color: #e63946;
  background-color: #fff5f5;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: #666666;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #666666;
}

.breadcrumb a:hover {
  color: #e63946;
}

.breadcrumb-sep {
  color: #999999;
}

.breadcrumb-current {
  color: #1a1a1a;
  font-weight: 500;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-description {
  font-size: 1rem;
  color: #555555;
  max-width: 720px;
  line-height: 1.7;
}

.section-desc {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 24px;
  max-width: 720px;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

/* =========================================================
   components / cards, lists, figures
   ========================================================= */
.work-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.work-cover,
.rank-cover,
.update-cover,
.hero-figure,
.toc-figure,
.content-media {
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

.work-cover img,
.rank-cover img,
.update-cover img,
.hero-figure img,
.toc-figure img,
.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-cover {
  aspect-ratio: 3 / 4;
}

.work-cover img {
  transition: transform 0.3s ease;
}

.work-card:hover .work-cover img {
  transform: scale(1.03);
}

.work-name {
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 16px 4px;
  color: #1a1a1a;
}

.work-tags {
  font-size: 0.8125rem;
  color: #888888;
  padding: 0 16px 14px;
}

.rank-cover {
  width: 72px;
  height: 96px;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-cover {
  width: 64px;
  height: 88px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hero-figure {
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

.toc-figure {
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  margin-top: 24px;
}

.content-media {
  border-radius: 8px;
  margin: 24px 0;
}

.content-media-inline {
  max-width: 480px;
}

.content-media figcaption {
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: #888888;
  background-color: #fafafa;
  text-align: center;
}

.more-link {
  margin-top: 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

.more-link a {
  color: #e63946;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.more-link a:hover {
  text-decoration: underline;
}

/* =========================================================
   components / related links
   ========================================================= */
.related-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
  font-size: 0.875rem;
  color: #555555;
}

.related-links p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.related-links a {
  color: #e63946;
  font-weight: 500;
  padding: 4px 8px;
}

.related-links a:hover {
  text-decoration: underline;
}

.related-links a + a::before {
  content: "·";
  color: #cccccc;
  margin-right: 8px;
}

/* =========================================================
   pages / index
   ========================================================= */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.hero-copy p {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 12px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.category-strip {
  padding: 48px 24px;
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.category-strip h2,
.updates-preview h2,
.ranking-preview h2,
.guide-faq-entry h2,
.site-feedback-note h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.category-strip .tag-list {
  margin-top: 8px;
}

.updates-preview,
.ranking-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.update-list {
  display: grid;
  gap: 12px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 12px 16px;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.update-item img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.update-info h3 a {
  color: #1a1a1a;
}

.update-info h3 a:hover {
  color: #e63946;
}

.update-meta {
  font-size: 0.8125rem;
  color: #888888;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 12px 16px;
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e63946;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  font-style: italic;
}

.rank-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.rank-info h3 a {
  color: #1a1a1a;
}

.rank-info h3 a:hover {
  color: #e63946;
}

.rank-info p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
}

.guide-faq-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card,
.faq-card {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover,
.faq-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.guide-card h3,
.faq-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-card h3 a,
.faq-card h3 a {
  color: #1a1a1a;
}

.guide-card h3 a:hover,
.faq-card h3 a:hover {
  color: #e63946;
}

.guide-card p,
.faq-card p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
}

.site-feedback-note {
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
  padding: 40px 24px;
}

.site-feedback-note h2 {
  max-width: 1200px;
  margin: 0 auto 12px;
  font-size: 1.125rem;
}

.site-feedback-note p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
}

.site-feedback-note p + p {
  margin-top: 8px;
}

/* =========================================================
   pages / categories
   ========================================================= */
.tag-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-items li {
  margin: 0;
}

.works-grid {
  display: grid;
  gap: 48px;
}

.theme-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid #eeeeee;
}

.theme-block:last-child {
  border-bottom: none;
}

.theme-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.theme-intro {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
  max-width: 280px;
}

.theme-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* =========================================================
   pages / reading guide
   ========================================================= */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 88px;
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 24px;
}

.guide-toc h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.guide-toc ul li {
  margin-bottom: 4px;
}

.guide-toc ul a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: #555555;
  border-radius: 4px;
  border-left: 2px solid transparent;
}

.guide-toc ul a:hover {
  color: #e63946;
  background-color: #fafafa;
  border-left-color: #e63946;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
  color: #1a1a1a;
}

.guide-section p {
  font-size: 0.9375rem;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-section p a {
  color: #e63946;
  font-weight: 500;
}

.guide-section p a:hover {
  text-decoration: underline;
}

/* =========================================================
   pages / ranking
   ========================================================= */
.ranking-section {
  margin-bottom: 48px;
}

.ranking-section .section-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 16px 20px;
  transition: box-shadow 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.rank-badge {
  font-size: 1.75rem;
  font-weight: 700;
  color: #e63946;
  width: 48px;
  text-align: center;
  flex-shrink: 0;
  font-style: italic;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.rank-reason {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
}

/* =========================================================
   pages / updates
   ========================================================= */
.updates-section {
  margin-bottom: 48px;
}

.updates-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
  color: #1a1a1a;
}

.updates-list {
  display: grid;
  gap: 12px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 12px 16px;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.update-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.update-meta {
  font-size: 0.8125rem;
  color: #888888;
}

.read-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e63946;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #e63946;
  margin-top: 8px;
  min-height: 36px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.read-link:hover {
  background-color: #e63946;
  color: #ffffff;
}

.updates-related {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 24px;
  margin-top: 48px;
}

.updates-related h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.updates-related ul li {
  margin-bottom: 8px;
}

.updates-related ul a {
  display: inline-block;
  font-size: 0.875rem;
  color: #555555;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.updates-related ul a:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

/* =========================================================
   pages / faq
   ========================================================= */
.faq-section {
  margin-bottom: 48px;
}

.faq-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
  color: #1a1a1a;
}

.faq-section .content-media {
  margin-bottom: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  min-height: 48px;
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: #e63946;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background-color: #fafafa;
}

.faq-answer {
  padding: 0 20px 20px;
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-more-help {
  margin-top: 48px;
}

.faq-more-help h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.help-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.help-card {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 28px;
}

.help-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.help-card p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 16px;
}

.help-card a {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e63946;
  padding: 8px 16px;
  border: 1px solid #e63946;
  border-radius: 4px;
  min-height: 40px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.help-card a:hover {
  background-color: #e63946;
  color: #ffffff;
}

/* =========================================================
   pages / 404
   ========================================================= */
.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 70vh;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: #e63946;
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.error-panel h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.error-desc {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.error-help {
  font-size: 0.8125rem;
  color: #999999;
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-section {
    gap: 32px;
    padding: 48px 24px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .theme-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .theme-intro {
    max-width: none;
  }

  .guide-layout {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid #eeeeee;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 16px;
    font-size: 0.9375rem;
    border-radius: 4px;
  }

  .site-main.inner-main {
    padding: 24px 16px 48px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 1.625rem;
  }

  .hero-figure {
    max-height: 320px;
  }

  .category-strip,
  .updates-preview,
  .ranking-preview,
  .guide-faq-entry {
    padding: 32px 16px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-toc {
    position: static;
    order: 2;
  }

  .guide-content {
    order: 1;
  }

  .theme-cards {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .rank-badge {
    width: 36px;
    font-size: 1.375rem;
  }

  .rank-cover {
    width: 64px;
    height: 88px;
  }

  .rank-info {
    flex-basis: calc(100% - 120px);
  }

  .help-cards {
    grid-template-columns: 1fr;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 1.375rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .update-item {
    flex-wrap: wrap;
  }

  .update-item img {
    width: 56px;
    height: 76px;
  }

  .update-info {
    flex-basis: calc(100% - 80px);
  }

  .rank-item img {
    width: 56px;
    height: 76px;
  }

  .rank-info {
    flex-basis: calc(100% - 80px);
  }

  .rank-number {
    width: 32px;
    font-size: 1.25rem;
  }

  .ranking-item {
    padding: 12px;
  }

  .rank-cover {
    width: 56px;
    height: 76px;
  }

  .rank-info {
    flex-basis: calc(100% - 100px);
  }

  .rank-badge {
    width: 28px;
    font-size: 1.125rem;
  }

  .related-links p {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .related-links a + a::before {
    display: none;
  }
}
