/* =============================================
   アメプレスラボ 共通スタイルシート
   Design: Feminine / Elegant / Editorial
   ============================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,700;1,500&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg:            #f7f4f0;
  --bg-card:       #ffffff;
  --bg-section:    #f0ebe4;
  --primary:       #2c1f14;
  --primary-mid:   #5a3d28;
  --accent:        #bf8c5e;
  --accent-light:  #e8d5be;
  --accent-hover:  #a67545;
  --text:          #2a1f17;
  --text-muted:    #7a6a5e;
  --text-light:    #a89880;
  --border:        #e2d5c8;
  --border-light:  #f0e8df;
  --header-bg:     #1c1109;
  --header-text:   #f5ece2;
  --cta-from:      #8b5e3a;
  --cta-to:        #c99a6e;
  --tag-bg:        #f0e8df;
  --tag-text:      #7a5c42;
  --success:       #6a9c7a;
  --warning:       #c9924a;
  --shadow-sm:     0 2px 8px rgba(44,31,20,0.06);
  --shadow-md:     0 4px 20px rgba(44,31,20,0.10);
  --shadow-lg:     0 8px 40px rgba(44,31,20,0.14);
  --radius:        12px;
  --radius-sm:     6px;
  --radius-lg:     20px;
  --transition:    0.25s ease;
  --font-serif:    'Noto Serif JP', 'Playfair Display', Georgia, serif;
  --font-sans:     'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.5em; }

/* ---------- Utility ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #e8b87a 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .main {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--header-text);
  letter-spacing: 0.02em;
}

.logo-text .sub {
  font-size: 0.65rem;
  color: rgba(245,236,226,0.55);
  letter-spacing: 0.08em;
  font-weight: 300;
}

.header-tagline {
  font-size: 0.72rem;
  color: rgba(245,236,226,0.5);
  letter-spacing: 0.06em;
  font-weight: 300;
}

@media (max-width: 600px) {
  .header-tagline { display: none; }
  .logo-text .main { font-size: 0.9rem; }
}

/* =============================================
   READING PROGRESS BAR
   ============================================= */
#progress-bar {
  position: fixed;
  top: 68px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #e8b87a 100%);
  width: 0%;
  z-index: 99;
  transition: width 0.1s linear;
}

/* =============================================
   HERO - TOP PAGE
   ============================================= */
.hero {
  background: linear-gradient(160deg, #1c1109 0%, #3a2210 50%, #5c3820 100%);
  padding: 80px 20px 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(191,140,94,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(191,140,94,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(191,140,94,0.2);
  border: 1px solid rgba(191,140,94,0.4);
  color: #e8c090;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 5px 16px;
  border-radius: 40px;
  margin-bottom: 22px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #f5ece2;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(245,236,226,0.7);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 700;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(245,236,226,0.5);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(245,236,226,0.15);
  align-self: center;
}

@media (max-width: 500px) {
  .stat-divider { display: none; }
  .hero { padding: 56px 20px 64px; }
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.4;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 14px auto 0;
}

/* =============================================
   CATEGORY TABS
   ============================================= */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.cat-tab {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 7px 18px;
  border-radius: 40px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  font-weight: 500;
}

.cat-tab:hover,
.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =============================================
   ARTICLE CARDS - TOP PAGE
   ============================================= */
.articles-section { padding: 70px 0; }
.articles-section.alt { background: var(--bg-section); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(45deg, var(--primary) 0px, var(--primary) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(-45deg, var(--primary) 0px, var(--primary) 1px, transparent 1px, transparent 12px);
}

.card-thumb-icon {
  position: relative;
  font-size: 2.6rem;
  opacity: 0.55;
}

.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 40px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-tag {
  font-size: 0.62rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 10px;
  flex: 1;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.card-meta {
  font-size: 0.7rem;
  color: var(--text-light);
}

.card-arrow {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* Featured card */
.article-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.article-card.featured .card-thumb {
  width: 240px;
  min-width: 240px;
  height: auto;
  flex-shrink: 0;
  border-radius: 0;
}

.article-card.featured .card-title {
  font-size: 1.1rem;
}

@media (max-width: 700px) {
  .article-card.featured { grid-column: span 1; flex-direction: column; }
  .article-card.featured .card-thumb { width: 100%; height: 160px; }
}

/* Coming soon */
.article-card.coming-soon { opacity: 0.5; pointer-events: none; }
.coming-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.85);
  color: var(--text-muted);
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* =============================================
   ABOUT / CTA SECTION - TOP
   ============================================= */
.about-section {
  padding: 70px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .about-lead {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 600;
}

.about-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

.about-features {
  list-style: none;
  padding: 0;
}

.about-features li {
  font-size: 0.85rem;
  padding: 8px 0 8px 26px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.about-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-cta-box {
  background: linear-gradient(160deg, var(--cta-from), var(--cta-to));
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  text-align: center;
}

.about-cta-box .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.75;
  margin-bottom: 12px;
}

.about-cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.45;
}

.about-cta-box p {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.75;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =============================================
   BTN - COMMON
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #fff 0%, #f5ece2 100%);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  color: var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  color: #fff;
  box-shadow: 0 4px 16px rgba(139,94,58,0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139,94,58,0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-lg { padding: 16px 36px; font-size: 0.95rem; }
.btn-sm { padding: 8px 18px; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--header-bg);
  padding: 50px 0 30px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.78rem;
  color: rgba(245,236,226,0.45);
  line-height: 1.75;
  max-width: 280px;
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: rgba(245,236,226,0.3);
  line-height: 1.75;
  max-width: 420px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(245,236,226,0.3);
  letter-spacing: 0.04em;
}

/* =============================================
   ARTICLE PAGE LAYOUT
   ============================================= */
.article-hero {
  background: linear-gradient(160deg, #1c1109 0%, #3a2210 100%);
  padding: 50px 20px 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(245,236,226,0.5);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(245,236,226,0.6); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: rgba(245,236,226,0.4); }

.article-hero-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-cat-badge {
  background: rgba(191,140,94,0.2);
  border: 1px solid rgba(191,140,94,0.4);
  color: #e8c090;
  font-size: 0.68rem;
  padding: 4px 12px;
  border-radius: 40px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: #f5ece2;
  line-height: 1.5;
  font-weight: 700;
  max-width: 780px;
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: rgba(245,236,226,0.5);
  flex-wrap: wrap;
}

.article-meta-bar span { display: flex; align-items: center; gap: 5px; }

/* Article layout container */
.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; position: static; }
}

/* ---------- Article Content ---------- */
.article-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 44px 48px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 680px) {
  .article-content { padding: 28px 22px; }
}

.article-content .lead-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 36px;
  font-weight: 400;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.5;
  margin-top: 52px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-light);
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary-mid);
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.55;
}

.article-content h4 {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-content p {
  font-size: 0.93rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 18px;
  font-size: 0.93rem;
  line-height: 2;
}

.article-content li { margin-bottom: 6px; color: var(--text); }

.article-content strong { color: var(--primary); }

/* Article special elements */
.article-content .info-box {
  background: #f0f7f2;
  border: 1px solid #b8d8c4;
  border-left: 4px solid #6a9c7a;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.88rem;
  line-height: 1.8;
}

.article-content .warn-box {
  background: #fdf5ec;
  border: 1px solid #e8c490;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.88rem;
  line-height: 1.8;
}

.article-content .warn-box strong,
.article-content .info-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--bg-section);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.85rem;
}

.compare-table th {
  background: var(--primary);
  color: #f5ece2;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

.compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.75;
}

.compare-table tr:nth-child(even) td { background: var(--bg-section); }
.compare-table tr:hover td { background: var(--accent-light); }

.table-good { color: var(--success); font-weight: 600; }
.table-bad { color: #c0524a; font-weight: 600; }
.table-mid { color: var(--warning); font-weight: 600; }

/* Pros/Cons boxes */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.pros-box, .cons-box {
  border-radius: var(--radius-sm);
  padding: 20px;
}

.pros-box {
  background: #f0f7f2;
  border: 1px solid #b8d8c4;
}

.cons-box {
  background: #fdf2f1;
  border: 1px solid #e8b8b4;
}

.pros-box h4 { color: #3d7a55; margin-bottom: 12px; margin-top: 0; }
.cons-box h4 { color: #9e3d38; margin-bottom: 12px; margin-top: 0; }

.pros-box li, .cons-box li {
  font-size: 0.84rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

@media (max-width: 580px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* Rating stars */
.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.rating-row:last-child { border-bottom: none; }

.rating-label { width: 120px; color: var(--text-muted); font-size: 0.82rem; }

.stars { display: flex; gap: 3px; }
.star { color: var(--accent); font-size: 1.1rem; }
.star.empty { color: var(--border); }

.rating-score { font-weight: 700; color: var(--primary); font-size: 0.9rem; }

/* ---------- CTA Boxes in Article ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
  border-radius: var(--radius);
  padding: 36px;
  margin: 44px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.cta-box .cta-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.75;
  margin-bottom: 10px;
  font-weight: 500;
}

.cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.cta-box p {
  font-size: 0.85rem;
  opacity: 0.88;
  line-height: 1.8;
  margin-bottom: 24px;
}

.cta-box .cta-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-feat {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.78rem;
  opacity: 0.9;
}

.cta-box .btn-cta-main {
  display: inline-block;
  background: #fff;
  color: var(--cta-from);
  padding: 15px 40px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-box .btn-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  color: var(--cta-from);
}

.cta-box .cta-note {
  font-size: 0.7rem;
  opacity: 0.55;
  margin-top: 12px;
}

/* Inline CTA (smaller) */
.cta-inline {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-inline p { font-size: 0.88rem; line-height: 1.7; flex: 1; margin: 0; }
.cta-inline p strong { color: var(--primary); }
.cta-inline .btn { flex-shrink: 0; }

/* ---------- TOC Sidebar ---------- */
.article-sidebar { position: sticky; top: 88px; }
@media (max-width: 900px) {
  .article-sidebar { position: static; top: auto; }
}

.toc-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.toc-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li { margin: 0; }

.toc-list a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border);
  line-height: 1.5;
  transition: all var(--transition);
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 14px;
}

.toc-list .toc-h3 a { font-size: 0.75rem; padding-left: 24px; }
.toc-list .toc-h3 a.active { padding-left: 26px; }

/* Sidebar mini CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  text-align: center;
}

.sidebar-cta h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.45;
}

.sidebar-cta p {
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sidebar-cta .btn-cta-sm {
  display: block;
  background: #fff;
  color: var(--cta-from);
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.sidebar-cta .btn-cta-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: var(--cta-from);
}

/* ---------- FAQ Items ---------- */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-q {
  background: var(--bg-section);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--heading);
  border-left: 4px solid var(--accent);
  line-height: 1.6;
}

.faq-a {
  padding: 14px 18px;
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg-card);
}

.faq-a p { margin: 0; }

/* ---------- Author Box ---------- */
.author-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 48px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
  margin-top: 0;
}

.author-role {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.author-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Related Articles ---------- */
.related-section {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

.related-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.related-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.related-card .r-cat {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.related-card .r-title {
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.55;
  font-family: var(--font-serif);
}

.related-card .r-title a { color: inherit; }
.related-card .r-title a:hover { color: var(--accent); }

/* =============================================
   INDEX PAGE - special elements
   ============================================= */
.top-cta-section {
  background: linear-gradient(160deg, var(--cta-from), var(--cta-to));
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.top-cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.45;
}

.top-cta-section p {
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.top-cta-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.top-cta-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.top-cta-feat::before {
  content: '✓';
  font-weight: 700;
  color: #f5ece2;
}

/* =============================================
   DECORATIVE ELEMENTS
   ============================================= */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 28px;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.ornament-text {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-weight: 500;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 480px) {
  .article-layout { padding: 24px 16px 60px; }
  .article-hero { padding: 40px 16px 50px; }
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
  .cta-box { padding: 26px 20px; }
  .author-box { flex-direction: column; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.5s ease forwards; }

/* =============================================
   PRINT
   ============================================= */
@media print {
  .site-header, .article-sidebar, .cta-box, #progress-bar { display: none !important; }
  .article-layout { grid-template-columns: 1fr; }
  .article-content { box-shadow: none; border: none; }
}
