/* ==========================================================================
   base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2d3436;
  background-color: #f5f6fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #6c5ce7;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5a4bd1;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #2d3436;
}

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #dfe6e9;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #2d3436;
  white-space: nowrap;
}

.brand:hover .brand-name {
  color: #6c5ce7;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #2d3436;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: #f0f0f7;
  color: #6c5ce7;
}

.nav-link.is-current {
  color: #6c5ce7;
  background-color: rgba(108, 92, 231, 0.08);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid #dfe6e9;
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #2d3436;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* footer */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #dfe6e9;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-site-name {
  font-size: 18px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 4px;
}

.footer-slogan {
  font-size: 14px;
  color: #636e72;
  margin-bottom: 8px;
}

.footer-principle {
  font-size: 13px;
  color: #b2bec3;
  line-height: 1.5;
  max-width: 640px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f7;
  margin-bottom: 16px;
}

.footer-link {
  font-size: 14px;
  color: #636e72;
}

.footer-link:hover {
  color: #6c5ce7;
}

.footer-copyright {
  font-size: 13px;
  color: #b2bec3;
  text-align: left;
}

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  color: #636e72;
}

.breadcrumb a {
  color: #6c5ce7;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #b2bec3;
}

.breadcrumb-current {
  color: #636e72;
}

/* page header */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #636e72;
  max-width: 720px;
}

/* section title */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 20px;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #6c5ce7;
  border-radius: 2px;
}

/* ==========================================================================
   components
   ========================================================================== */

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #6c5ce7;
  color: #ffffff;
  border: 1px solid #6c5ce7;
}

.btn-primary:hover {
  background-color: #5a4bd1;
  border-color: #5a4bd1;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: #6c5ce7;
  border: 1px solid #6c5ce7;
}

.btn-secondary:hover {
  background-color: rgba(108, 92, 231, 0.08);
}

/* related links */
.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #dfe6e9;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #2d3436;
  margin-right: 16px;
}

.related-links-item {
  display: inline-block;
  font-size: 14px;
  color: #6c5ce7;
  margin-right: 16px;
  margin-bottom: 8px;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-item {
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  margin-bottom: 12px;
  background-color: #ffffff;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #2d3436;
  cursor: pointer;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #6c5ce7;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ==========================================================================
   pages - index
   ========================================================================== */

/* hero */
.hero-section {
  background-color: #ffffff;
  border-bottom: 1px solid #dfe6e9;
  padding: 48px 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: #2d3436;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 18px;
  font-weight: 500;
  color: #6c5ce7;
  margin-bottom: 12px;
}

.hero-description {
  font-size: 16px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* category nav */
.category-nav-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.genre-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #2d3436;
  transition: border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.genre-tag:hover {
  border-color: #6c5ce7;
  color: #6c5ce7;
  background-color: rgba(108, 92, 231, 0.04);
}

/* recent updates */
.recent-updates-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.update-group {
  margin-bottom: 28px;
}

.update-date {
  font-size: 14px;
  font-weight: 600;
  color: #636e72;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dfe6e9;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.update-item {
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.update-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.update-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.update-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d3436;
  line-height: 1.4;
}

.update-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #e17055;
  background-color: rgba(225, 112, 85, 0.1);
  border-radius: 12px;
}

/* ranking */
.ranking-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 16px 20px;
  transition: box-shadow 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ranking-rank {
  font-size: 22px;
  font-weight: 700;
  color: #6c5ce7;
  min-width: 40px;
  text-align: center;
}

.ranking-info {
  flex: 1;
}

.ranking-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 4px;
}

.ranking-reason {
  font-size: 14px;
  color: #636e72;
  margin-bottom: 0;
}

.ranking-more {
  margin-top: 16px;
  text-align: right;
}

.ranking-more a {
  font-size: 14px;
  font-weight: 500;
}

/* guide entry */
.guide-entry-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  border-color: #6c5ce7;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.08);
}

.guide-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
}

.guide-card-text {
  font-size: 14px;
  color: #636e72;
  line-height: 1.6;
  margin-bottom: 0;
}

/* copyright feedback */
.copyright-feedback-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.copyright-feedback-section p {
  font-size: 14px;
  color: #636e72;
  line-height: 1.7;
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 0;
}

/* ==========================================================================
   pages - category
   ========================================================================== */

.category-progress {
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}

.progress-bar {
  height: 8px;
  background-color: #dfe6e9;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar-fill {
  display: block;
  height: 100%;
  background-color: #6c5ce7;
  border-radius: 4px;
  width: 50%;
}

.progress-bar-fill-full {
  width: 100%;
}

.progress-caption {
  font-size: 14px;
  color: #636e72;
  margin-bottom: 0;
}

.category-index {
  margin-bottom: 40px;
}

.category-letter-group {
  margin-bottom: 28px;
}

.letter-group-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #6c5ce7;
}

.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.category-item {
  display: block;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 16px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 0;
}

.category-desc {
  font-size: 14px;
  color: #636e72;
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
}

.category-link {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.category-link:hover::after {
  transform: translateX(4px);
}

.category-notes {
  margin-bottom: 40px;
}

.note-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.note-card-secondary {
  grid-template-columns: 1fr 280px;
}

.note-card-secondary .note-image {
  order: 2;
}

.note-card-secondary .note-content {
  order: 1;
}

.note-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.note-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
}

.note-content p {
  font-size: 14px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 8px;
}

.note-content a {
  font-weight: 500;
}

.category-faq {
  margin-bottom: 16px;
}

/* ==========================================================================
   pages - guide
   ========================================================================== */

.guide-hero {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.guide-hero-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.guide-hero figcaption {
  font-size: 13px;
  color: #b2bec3;
  padding: 8px 0;
  text-align: right;
}

.guide-section {
  margin-bottom: 40px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
  padding-left: 12px;
  position: relative;
}

.guide-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #6c5ce7;
  border-radius: 2px;
}

.section-intro {
  font-size: 15px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list .step-item {
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  padding-left: 56px;
}

.step-list .step-item::before {
  content: attr(data-step);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 28px;
  height: 28px;
  background-color: #6c5ce7;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.step-list .step-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 6px;
}

.step-list .step-item p {
  font-size: 14px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 0;
}

.step-list .step-item a {
  font-weight: 500;
}

.related-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 16px 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  border-color: #6c5ce7;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.08);
}

.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  color: #636e72;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   pages - romance
   ========================================================================== */

.work-section {
  margin-bottom: 40px;
}

.section-desc {
  font-size: 15px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 20px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  overflow: hidden;
  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 {
  overflow: hidden;
}

.work-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-info {
  padding: 16px 20px;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
}

.work-point {
  font-size: 14px;
  color: #6c5ce7;
  font-weight: 500;
  margin-bottom: 6px;
}

.work-note {
  font-size: 14px;
  color: #636e72;
  line-height: 1.6;
  margin-bottom: 0;
}

.recommendation-section {
  margin-bottom: 16px;
}

.recommendation-content {
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 24px;
}

.recommendation-content p {
  font-size: 15px;
  color: #2d3436;
  line-height: 1.8;
  margin-bottom: 12px;
}

.recommendation-content p:last-child {
  margin-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-grid .related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-label {
  font-size: 12px;
  font-weight: 600;
  color: #6c5ce7;
  background-color: rgba(108, 92, 231, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.related-text {
  font-size: 14px;
  color: #2d3436;
  line-height: 1.5;
}

/* ==========================================================================
   pages - progress
   ========================================================================== */

.step-guide {
  margin-bottom: 40px;
}

.step-guide .step-item {
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 56px;
}

.step-guide .step-item::before {
  content: attr(data-step);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 28px;
  height: 28px;
  background-color: #6c5ce7;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 6px;
}

.step-guide .step-item p {
  font-size: 14px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 0;
}

.progress-figure {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.step-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.progress-figure figcaption {
  font-size: 13px;
  color: #b2bec3;
  padding: 8px 0;
  text-align: right;
}

.habit-tips {
  margin-bottom: 16px;
}

.habit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.habit-item {
  background-color: #ffffff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 20px;
}

.habit-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
}

.habit-item p {
  font-size: 14px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 0;
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-list li::before {
  content: "·";
  color: #6c5ce7;
  font-size: 18px;
  font-weight: 700;
}

.related-list a {
  font-size: 15px;
  color: #6c5ce7;
}

.related-list a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   pages - 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 20px;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: #6c5ce7;
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  background-color: #6c5ce7;
  color: #ffffff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}

.error-back-btn:hover {
  background-color: #5a4bd1;
  color: #ffffff;
}

.error-tip {
  font-size: 14px;
  color: #636e72;
}

.error-tip a {
  margin: 0 4px;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content {
    gap: 32px;
  }

  .hero-title {
    font-size: 32px;
  }

  .update-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 8px 20px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 6px;
  }

  /* hero */
  .hero-section {
    padding: 32px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-figure img {
    height: 220px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .hero-description {
    font-size: 15px;
  }

  /* sections */
  .category-nav-section,
  .recent-updates-section,
  .ranking-section,
  .guide-entry-section,
  .copyright-feedback-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .update-item img {
    height: 140px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* inner pages */
  .inner-main {
    padding: 16px 16px 32px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .note-card,
  .note-card-secondary {
    grid-template-columns: 1fr;
  }

  .note-card-secondary .note-image {
    order: 0;
  }

  .note-card-secondary .note-content {
    order: 0;
  }

  .note-image {
    height: 160px;
  }

  .related-card-list {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-image {
    height: 200px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .habit-list {
    grid-template-columns: 1fr;
  }

  .step-list .step-item,
  .step-guide .step-item {
    padding-left: 48px;
  }

  .step-list .step-item::before,
  .step-guide .step-item::before {
    left: 12px;
    top: 16px;
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .guide-hero-img {
    height: 180px;
  }

  .step-image {
    height: 180px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-links {
    gap: 8px 16px;
  }

  .error-code {
    font-size: 56px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .update-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .update-item img {
    height: 120px;
  }

  .update-info {
    padding: 10px 12px;
  }

  .update-title {
    font-size: 13px;
  }

  .ranking-item {
    padding: 12px 14px;
    gap: 12px;
  }

  .ranking-rank {
    font-size: 18px;
    min-width: 32px;
  }

  .ranking-title {
    font-size: 14px;
  }

  .ranking-reason {
    font-size: 13px;
  }

  .section-title {
    font-size: 19px;
  }

  .category-card {
    padding: 14px 16px;
  }

  .recommendation-content {
    padding: 16px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .error-content h1 {
    font-size: 20px;
  }
}
