/*
Theme Name: FIRE Media
Theme URI: https://fire-media-concept.vercel.app/
Author: Yukio
Description: 資産5万から3年で1億を目指す実験メディア。27〜33歳の強欲層向けダークSEOメディアテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: fire-media
*/

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
  --bg-primary: #080c14;
  --bg-secondary: #0e1320;
  --bg-card: #111827;
  --bg-card-hover: #1a2236;
  --accent-gold: #d4a843;
  --accent-gold-light: #f0c96a;
  --accent-red: #e63946;
  --accent-green: #2dc653;
  --text-primary: #f4f4f5;
  --text-secondary: #9ca3af;
  --text-muted: #4b5563;
  --border: #1e2a3d;
  --border-accent: #d4a843;
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 28px rgba(212,168,67,0.2);
  --max-width: 800px;
  --sidebar-width: 300px;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   LAYOUT
   ========================================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-area {
  display: block;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 24px;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .content-area {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.site-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.site-logo span {
  color: var(--accent-gold);
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--accent-gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold);
  color: #0a0a0a;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.header-cta:hover {
  background: var(--accent-gold-light);
  color: #0a0a0a;
}

/* ==========================================
   HERO / FRONT PAGE
   ========================================== */
.hero {
  background: linear-gradient(160deg, #080c14 0%, #0d1626 50%, #0a0e1a 100%);
  border-bottom: 1px solid var(--border);
  padding: 90px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* グリッドライン */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,168,67,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#koi-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ゴールドグロー（上部・左下・右） */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(212,168,67,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(212,168,67,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 90% 60%, rgba(212,168,67,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

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

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

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  display: block;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================
   PROGRESS MODULE
   ========================================== */
.progress-module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.progress-module-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.progress-bar-wrap {
  margin-bottom: 16px;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-bar-track {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 100px;
  transition: width 1s ease;
}

.progress-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.progress-metric {
  text-align: center;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 12px;
}

.progress-metric-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-primary);
  display: block;
  letter-spacing: -0.02em;
}

.progress-metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================
   CATEGORY TAGS
   ========================================== */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.cat-e { background: rgba(201,168,76,0.15); color: var(--accent-gold); }
.cat-h { background: rgba(230,57,70,0.15); color: var(--accent-red); }
.cat-a { background: rgba(45,198,83,0.15); color: var(--accent-green); }

/* ==========================================
   ARTICLE CARDS
   ========================================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.post-card-thumb {
  display: block;
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-card);
}

.post-card-body {
  padding: 20px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.post-card-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ホバー時のゴールドライン */
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.25s;
}

.post-card:hover::before {
  opacity: 1;
}

/* ==========================================
   ARTICLE FEATURED IMAGE — 固定高さ360px
   ========================================== */
.article-featured-image {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: 360px;
}

.article-featured-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==========================================
   DIALOGUE UPGRADE
   ========================================== */
.dialogue-block {
  margin: 40px 0;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.dialogue-line {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.dialogue-line:last-child {
  margin-bottom: 0;
}

.dialogue-line.right {
  flex-direction: row-reverse;
}

.dialogue-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  border: 2px solid var(--border);
  letter-spacing: -0.05em;
}

.dialogue-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-primary);
  position: relative;
}

.dialogue-line.right .dialogue-text {
  border-radius: var(--radius) 0 var(--radius) var(--radius);
}

.dialogue-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid var(--border);
  border-left: 8px solid transparent;
}

.dialogue-line.right .dialogue-text::before {
  left: auto;
  right: -8px;
  border-top: 8px solid var(--border);
  border-left: none;
  border-right: 8px solid transparent;
}

/* ==========================================
   ARTICLE BODY IMPROVEMENTS
   ========================================== */
.entry-content h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 52px 0 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  letter-spacing: -0.02em;
}

.entry-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--accent-gold-light);
}

.entry-content ul li {
  padding: 4px 0;
  padding-left: 8px;
  border-left: 2px solid var(--accent-gold);
  margin-bottom: 10px;
  list-style: none;
  margin-left: -8px;
}

.entry-content ol li {
  padding: 4px 0;
  margin-bottom: 10px;
}

/* AIO Q&A Box */
.entry-content > div[style*="background"] {
  border-left: 3px solid var(--accent-gold) !important;
}

/* ==========================================
   INLINE IMAGE IN ARTICLE
   ========================================== */
.article-inline-image {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-inline-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ==========================================
   SINGLE ARTICLE
   ========================================== */
.article-header {
  margin-bottom: 40px;
}

.article-opening {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-gold);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-opening strong {
  color: var(--accent-gold);
}

.article-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 16px 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   ARTICLE BODY TYPOGRAPHY
   ========================================== */
.entry-content {
  font-size: 1rem;
  line-height: 1.9;
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-gold);
  letter-spacing: -0.02em;
}

.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text-primary);
}

.entry-content p {
  margin-bottom: 24px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 24px 24px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content strong {
  color: var(--accent-gold-light);
  font-weight: 700;
}

.entry-content blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-gold);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.9rem;
}

.entry-content th {
  background: var(--bg-card);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--accent-gold);
}

.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.entry-content tr:hover td {
  background: var(--bg-card);
}

/* CONCLUSION BOX */
.conclusion-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05));
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0;
}

.conclusion-box-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.conclusion-box-text {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ==========================================
   CHARACTER DIALOGUE
   ========================================== */
.dialogue-block {
  margin: 40px 0;
}

.dialogue-block-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dialogue-line {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.dialogue-line.right {
  flex-direction: row-reverse;
}

.dialogue-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dialogue-crown {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.dialogue-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  border: 2px solid var(--border);
}

/* Aさん：現状維持派（グレー） */
.char-a .dialogue-avatar { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); border-color: #555; color: #aaa; }
/* Bさん：先行経験者（ゴールド） */
.char-b .dialogue-avatar { background: linear-gradient(135deg, #1a1a0a, #2a2a10); border-color: var(--accent-gold); color: var(--accent-gold); }
/* 専門家（グリーン＋王冠） */
.char-expert .dialogue-avatar { background: linear-gradient(135deg, #0a1a0a, #102110); border-color: var(--accent-green); color: var(--accent-green); }

.dialogue-bubble {
  flex: 1;
  max-width: calc(100% - 58px);
}

.dialogue-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.dialogue-line.right .dialogue-name {
  text-align: right;
}

.dialogue-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.char-a .dialogue-text {
  border-color: rgba(100,100,100,0.4);
  color: var(--text-secondary);
}

.char-b .dialogue-text {
  border-color: rgba(201,168,76,0.3);
}

.char-expert .dialogue-text {
  border-color: rgba(45,198,83,0.3);
}

/* ==========================================
   READ METER SIDEBAR
   ========================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.read-meter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.read-meter-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.read-meter-title {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.read-meter-goal {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.read-meter-count {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-gold-light);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.read-meter-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.read-meter-track {
  background: var(--bg-secondary);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.read-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 99px;
  transition: width 1s ease;
  min-width: 2px;
}

.read-meter-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.read-meter-badge {
  display: inline-block;
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 4px;
  font-size: 0.68rem;
  color: var(--accent-gold);
  padding: 4px 10px;
  letter-spacing: 0.05em;
}

/* ==========================================
   POST NUMBER + PERSPECTIVE BADGE
   ========================================== */
.post-number {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.perspective-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pbg, #d4a843);
  border: 1px solid var(--pbg, #d4a843);
  border-radius: 3px;
  padding: 1px 7px;
  opacity: 0.9;
}

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

/* ==========================================
   CTA BLOCKS
   ========================================== */
.cta-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.cta-block-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-block-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.4;
}

.cta-block-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #0a0a0a;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-gold-light);
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* AFFILIATE CTA */
.affiliate-cta {
  background: linear-gradient(135deg, #0d1117, #111111);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.affiliate-cta-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.affiliate-cta-body {
  flex: 1;
}

.affiliate-cta-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.affiliate-cta-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.affiliate-cta-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.affiliate-cta-btn {
  flex-shrink: 0;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
  position: sticky;
  top: 80px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.widget-post-list {
  list-style: none;
}

.widget-post-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.widget-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-post-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: block;
}

.widget-post-link:hover {
  color: var(--accent-gold);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   SERIES OPENING (名探偵コナン方式)
   ========================================== */
.article-greeting {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 2;
}

.series-opening {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.series-opening::before {
  content: '📺 シリーズ概要';
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ==========================================
   TOC (目次)
   ========================================== */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toc ol {
  margin: 0 0 0 20px;
  font-size: 0.9rem;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: var(--text-secondary);
}

.toc a:hover {
  color: var(--accent-gold);
}

/* ==========================================
   READING TIME & SHARE
   ========================================== */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}

.share-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 40px 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--accent-gold);
  color: #0a0a0a;
  border-color: var(--accent-gold);
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ==========================================
   READ PROGRESS BAR
   ========================================== */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ==========================================
   TABLE OF CONTENTS
   ========================================== */
.toc-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.toc-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.toc-list li {
  counter-increment: toc-counter;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.toc-list li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  min-width: 24px;
  margin-top: 2px;
  font-family: var(--font-mono);
}

.toc-list li a {
  color: var(--text-primary);
  transition: color 0.2s, padding-left 0.2s;
}

.toc-list li a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.toc-list li.toc-sub {
  padding-left: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toc-list li.toc-sub::before {
  content: '—';
  color: var(--text-muted);
}

/* ==========================================
   AUTHOR BOX
   ========================================== */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 48px 0 32px;
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #080c14;
  flex-shrink: 0;
}

.author-box-body { flex: 1; }

.author-box-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.author-box-title {
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.author-box-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.author-box-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.author-box-links a {
  font-size: 0.8rem;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.author-box-links a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ==========================================
   RELATED POSTS SECTION
   ========================================== */
.related-posts-section {
  margin-top: 56px;
}

.related-posts-title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ==========================================
   HERO AUTHOR LINE
   ========================================== */
.hero-author-line {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 12px 0 28px;
  letter-spacing: 0.04em;
}

.hero-author-line strong {
  color: var(--accent-gold-light);
  font-weight: 700;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .hero { padding: 48px 16px; }
  .hero-stats { gap: 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .affiliate-cta { flex-direction: column; text-align: center; }
  .progress-metrics { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-box-links { justify-content: center; }
}
