/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  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: 15px;
  line-height: 1.7;
  color: #1f1f1f;
  background-color: #f7f3ea;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #4a6572;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c0392b;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
  color: #1f1f1f;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

h4 {
  font-size: 1rem;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-main.inner-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.site-home .site-main {
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   components
   ========================================================================== */

/* ---------- header ---------- */

.site-header {
  background-color: #f7f3ea;
  border-bottom: 1px solid #e9e2d2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f1f1f;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand:hover .brand-name {
  color: #c0392b;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4a6572;
  border-bottom: 2px solid transparent;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list li a:hover {
  color: #c0392b;
}

.nav-list li a.is-current {
  color: #c0392b;
  border-bottom-color: #c0392b;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 6px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1f1f1f;
  transition: background-color 0.2s ease;
}

/* ---------- breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 12px;
  font-size: 0.875rem;
  color: #4a6572;
}

.breadcrumb a {
  color: #4a6572;
}

.breadcrumb a:hover {
  color: #c0392b;
}

.breadcrumb-sep {
  color: #c0392b;
  margin: 0 2px;
}

.breadcrumb-current {
  color: #1f1f1f;
  font-weight: 600;
}

/* ---------- page header ---------- */

.page-header {
  background-color: #f7f3ea;
  padding: 32px 0 28px;
  border-bottom: 1px solid #e9e2d2;
  margin-bottom: 48px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1f1f1f;
  line-height: 1.25;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #4a6572;
  max-width: 720px;
  line-height: 1.7;
}

/* ---------- section heading ---------- */

.section-heading,
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.chapter-num,
.section-number,
.section-no,
.section-index {
  font-size: 1.25rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1.2;
  flex-shrink: 0;
}

.section-heading h2,
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f1f1f;
}

.section-intro,
.section-desc,
.section-note {
  color: #4a6572;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 720px;
}

/* ---------- more link ---------- */

.more-link {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  border: 1px solid #c0392b;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c0392b;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.more-link:hover {
  background-color: #c0392b;
  color: #f7f3ea;
}

/* ---------- related links ---------- */

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e9e2d2;
}

.related-links-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-right: 8px;
}

.related-links-item {
  font-size: 0.875rem;
  color: #4a6572;
  padding: 4px 10px;
  border: 1px solid #e9e2d2;
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.related-links-item:hover {
  color: #c0392b;
  border-color: #c0392b;
}

/* ---------- footer ---------- */

.site-footer {
  background-color: #1f1f1f;
  color: #e9e2d2;
  padding: 48px 0 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f7f3ea;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #e9e2d2;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f7f3ea;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #e9e2d2;
  transition: color 0.2s ease;
}

.footer-col ul li a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #c0392b;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-col ul li a:hover {
  color: #c0392b;
}

.footer-bottom {
  border-top: 1px solid rgba(233, 226, 210, 0.2);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #e9e2d2;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   components: tags and cards
   ========================================================================== */

.tag-group {
  margin-bottom: 32px;
}

.group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li a {
  display: inline-block;
  padding: 6px 16px;
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

.tag-list li a:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- topic cards ---------- */

.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.topic-card {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 16px rgba(31, 31, 31, 0.08);
  transform: translateY(-2px);
}

.topic-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.topic-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card-body {
  padding: 16px;
}

.topic-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c0392b;
  background-color: rgba(192, 57, 43, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.topic-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 6px;
}

.topic-card-body p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

/* ==========================================================================
   pages: index
   ========================================================================== */

.home-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ---------- magazine hero ---------- */

.magazine-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
  border-bottom: 1px solid #e9e2d2;
  margin-bottom: 64px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.issue-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #c0392b;
  background-color: rgba(192, 57, 43, 0.08);
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1f1f1f;
  margin: 0;
}

.hero-lead {
  font-size: 1rem;
  color: #4a6572;
  line-height: 1.7;
  max-width: 440px;
}

.hero-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 28px;
  background-color: #c0392b;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background-color: #a93226;
  color: #fff;
  transform: translateY(-2px);
}

.hero-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e9e2d2;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- section block ---------- */

.section-block {
  margin-bottom: 64px;
}

.section-block .section-heading {
  border-bottom: 1px solid #e9e2d2;
  padding-bottom: 12px;
}

/* ---------- home updates ---------- */

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 96px 1fr 120px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e9e2d2;
}

.timeline-item:last-child {
  border-bottom: 0;
}

.date-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c0392b;
}

.update-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-content a {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.4;
}

.update-content a:hover {
  color: #c0392b;
}

.update-content p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

.timeline-item img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- home ranking ---------- */

.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ranking-item {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(31, 31, 31, 0.08);
  transform: translateY(-2px);
}

.rank-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
  flex-shrink: 0;
}

.rank-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f1f1f;
}

.rank-body p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

/* ---------- home guide ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
}

.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
  flex-shrink: 0;
}

.step-item p {
  font-size: 0.9375rem;
  color: #4a6572;
  line-height: 1.6;
}

.step-item p a {
  font-weight: 600;
  color: #1f1f1f;
}

.step-item p a:hover {
  color: #c0392b;
}

/* ---------- home about ---------- */

.section-about {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 0;
}

.section-about p {
  color: #4a6572;
  line-height: 1.7;
  max-width: 720px;
}

.section-about p a {
  font-weight: 600;
  color: #c0392b;
}

/* ==========================================================================
   pages: inner shared
   ========================================================================== */

.site-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-inner .site-main {
  flex: 1 0 auto;
}

/* ==========================================================================
   pages: tags
   ========================================================================== */

.tags-intro {
  margin-bottom: 64px;
}

.intro-content {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-text p {
  color: #4a6572;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.intro-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 24px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.4;
}

/* ---------- tag matrix ---------- */

.tag-matrix {
  margin-bottom: 64px;
}

.tag-matrix .tag-group {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #e9e2d2;
}

.tag-matrix .tag-group:last-child {
  border-bottom: 0;
}

.tag-group-head h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.tag-group-head p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

.tag-group-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tag-group-figure {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e9e2d2;
}

.tag-group-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-group-body .tag-list {
  flex: 1;
  align-content: flex-start;
}

/* ---------- related topics ---------- */

.related-topics {
  margin-bottom: 64px;
}

.section-cta {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 24px;
  margin-top: 32px;
}

.section-cta p {
  color: #4a6572;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ==========================================================================
   pages: update
   ========================================================================== */

.update-section {
  margin-bottom: 64px;
}

.update-timeline {
  display: flex;
  flex-direction: column;
}

.update-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #e9e2d2;
}

.update-item:last-child {
  border-bottom: 0;
}

.update-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-date {
  font-size: 0.875rem;
  font-weight: 700;
  color: #c0392b;
}

.update-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a6572;
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 999px;
  padding: 2px 10px;
  align-self: flex-start;
}

.update-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.update-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f1f1f;
}

.update-text p {
  font-size: 0.9375rem;
  color: #4a6572;
  line-height: 1.6;
}

.update-text a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c0392b;
  align-self: flex-start;
}

.update-thumb {
  width: 96px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e9e2d2;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- update note ---------- */

.update-note-section {
  margin-bottom: 64px;
}

.note-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.note-item {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 24px;
}

.note-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.note-item p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

/* ==========================================================================
   pages: ranking
   ========================================================================== */

.ranking-intro {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-copy h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f1f1f;
}

.intro-copy p {
  color: #4a6572;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.ranking-meta {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a6572;
  text-transform: uppercase;
}

.meta-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #c0392b;
}

.meta-tip {
  font-size: 0.8125rem;
  color: #4a6572;
  line-height: 1.5;
  border-top: 1px solid #e9e2d2;
  padding-top: 12px;
  margin-top: 4px;
}

/* ---------- ranking groups ---------- */

.ranking-groups {
  margin-bottom: 64px;
}

.ranking-groups > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 32px;
}

.ranking-group {
  margin-bottom: 48px;
}

.group-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9e2d2;
}

.group-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f1f1f;
}

.group-header p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

.ranking-group .ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ranking-group .ranking-item {
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #e9e2d2;
  border-radius: 0;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 56px 1fr 80px;
  gap: 16px;
  align-items: center;
}

.ranking-group .ranking-item:hover {
  box-shadow: none;
  transform: none;
}

.rank-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
}

.rank-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
}

.rank-content p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

.rank-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a6572;
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 999px;
  padding: 2px 10px;
  text-align: center;
  justify-self: end;
}

/* ---------- ranking figure ---------- */

.ranking-figure {
  margin: 48px 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e9e2d2;
}

.ranking-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.ranking-figure figcaption {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: #4a6572;
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-top: 0;
}

/* ---------- ranking statement ---------- */

.ranking-statement {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 32px;
}

.ranking-statement h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 16px;
}

.ranking-statement p {
  color: #4a6572;
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.ranking-statement p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   pages: guide
   ========================================================================== */

.guide-steps,
.guide-demo,
.guide-faq,
.guide-tips {
  margin-bottom: 64px;
}

/* ---------- steps list ---------- */

.steps-list {
  display: flex;
  flex-direction: column;
}

.steps-list .step-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e9e2d2;
  background-color: transparent;
  border-radius: 0;
}

.steps-list .step-item:last-child {
  border-bottom: 0;
}

.steps-list .step-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f1f1f;
}

.step-body p {
  font-size: 0.9375rem;
  color: #4a6572;
  line-height: 1.7;
}

.step-body p a {
  font-weight: 600;
  color: #c0392b;
}

/* ---------- demo card ---------- */

.demo-card {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  overflow: hidden;
}

.demo-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.demo-caption {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c0392b;
  text-transform: uppercase;
}

.demo-path {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f1f1f;
}

.demo-caption p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

.demo-caption p a {
  font-weight: 600;
  color: #c0392b;
}

/* ---------- faq ---------- */

.faq-item {
  border-bottom: 1px solid #e9e2d2;
}

.faq-item summary {
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f1f1f;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: #c0392b;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: #c0392b;
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 0.9375rem;
  color: #4a6572;
  line-height: 1.7;
}

/* ---------- tips ---------- */

.tips-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tip-item {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tip-mark {
  font-size: 1.25rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
  flex-shrink: 0;
}

.tip-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tip-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
}

.tip-body p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

.tip-body p a {
  font-weight: 600;
  color: #c0392b;
}

/* ==========================================================================
   pages: about
   ========================================================================== */

.about-section {
  margin-bottom: 64px;
}

/* ---------- positioning ---------- */

.positioning-content {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}

.positioning-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.positioning-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f1f1f;
}

.positioning-text p {
  color: #4a6572;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.positioning-text p a {
  font-weight: 600;
  color: #c0392b;
}

.positioning-figure {
  border-radius: 8px;
  overflow: hidden;
  background-color: #e9e2d2;
}

.positioning-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.positioning-figure figcaption {
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: #4a6572;
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-top: 0;
}

/* ---------- copyright ---------- */

.copyright-list {
  display: flex;
  flex-direction: column;
}

.copyright-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e9e2d2;
}

.copyright-item:last-child {
  border-bottom: 0;
}

.copyright-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1.2;
}

.copyright-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.copyright-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
}

.copyright-body p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

/* ---------- feedback ---------- */

.feedback-lead {
  color: #4a6572;
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 24px;
  max-width: 720px;
}

.feedback-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feedback-step {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-step .step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
}

.feedback-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
}

.feedback-step p {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

.feedback-step p a {
  font-weight: 600;
  color: #c0392b;
}

/* ---------- related grid ---------- */

.related-links {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.related-links h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background-color: #fff;
  border: 1px solid #e9e2d2;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(31, 31, 31, 0.08);
  transform: translateY(-2px);
}

.related-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1f1f;
}

.related-card-desc {
  font-size: 0.875rem;
  color: #4a6572;
  line-height: 1.6;
}

/* ==========================================================================
   pages: 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex: 1 0 auto;
}

.error-section {
  text-align: center;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
}

.error-section h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f1f1f;
}

.error-desc {
  font-size: 0.9375rem;
  color: #4a6572;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-back,
.btn-tags {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn-back {
  background-color: #c0392b;
  color: #fff;
}

.btn-back:hover {
  background-color: #a93226;
  color: #fff;
}

.btn-tags {
  border: 1px solid #c0392b;
  color: #c0392b;
}

.btn-tags:hover {
  background-color: #c0392b;
  color: #fff;
}

.error-tip {
  font-size: 0.8125rem;
  color: #4a6572;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .magazine-hero {
    gap: 32px;
    padding: 40px 0 48px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps .step-item:last-child {
    grid-column: 1 / -1;
  }

  .note-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-list .tip-item:last-child {
    grid-column: 1 / -1;
  }

  .feedback-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feedback-steps .feedback-step:last-child {
    grid-column: 1 / -1;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid .related-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-main.inner-main {
    padding: 0 16px 48px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #f7f3ea;
    border-bottom: 1px solid #e9e2d2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    box-shadow: 0 8px 16px rgba(31, 31, 31, 0.08);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid #e9e2d2;
    border-radius: 0;
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .nav-list li a.is-current {
    border-bottom-color: #c0392b;
  }

  .page-header {
    padding: 24px 0 20px;
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-description {
    font-size: 0.9375rem;
  }

  .breadcrumb {
    padding: 16px 0 8px;
  }

  .magazine-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 40px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-figure {
    order: 2;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .date-label {
    font-size: 0.8125rem;
  }

  .timeline-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps .step-item:last-child {
    grid-column: auto;
  }

  .intro-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tag-matrix .tag-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tag-group-body {
    flex-direction: column;
  }

  .tag-group-figure {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 3 / 4;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }

  .update-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .update-content {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .update-thumb {
    width: 100%;
    max-width: 160px;
  }

  .note-list {
    grid-template-columns: 1fr;
  }

  .ranking-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ranking-group .ranking-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .rank-tag {
    grid-column: 2;
    justify-self: start;
  }

  .ranking-figure img {
    aspect-ratio: 4 / 3;
  }

  .steps-list .step-item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 16px 0;
  }

  .demo-cover {
    aspect-ratio: 4 / 3;
  }

  .tips-list {
    grid-template-columns: 1fr;
  }

  .tips-list .tip-item:last-child {
    grid-column: auto;
  }

  .positioning-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .positioning-figure img {
    max-width: 280px;
  }

  .copyright-item {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .feedback-steps {
    grid-template-columns: 1fr;
  }

  .feedback-steps .feedback-step:last-child {
    grid-column: auto;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-grid .related-card:last-child {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px 24px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-back,
  .btn-tags {
    text-align: center;
  }
}
