/*
Theme Name: Yumiko Lab
Theme URI: https://ai-tools-db.jp/
Author: あべゆみこ (FUN WEB DESIGN)
Author URI: https://ai-tools-db.jp/
Description: あべゆみこラボ専用カスタムテーマ。AIで働く、を楽しく。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: yumiko-lab
*/

/* ================================================================
   CSS Custom Properties (Design Tokens)
   ================================================================ */
:root {
  /* Colors */
  --vermilion:        #d94f3e;
  --vermilion-deep:   #b8392a;
  --vermilion-light:  #e87a6c;
  --vermilion-pale:   #fce6e1;
  --ink:              #2a2a2a;
  --ink-soft:         #3a3a3a;
  --paper:            #fffaf3;
  --cream:            #fef5e8;
  --cream-deep:       #f5e6cf;
  --muted:            #7a7a7a;
  --gold:             #d4a534;
  --gold-pale:        #f9efd3;
  --line:             #e8d5b7;

  /* Typography */
  --text-xs:   10px;
  --text-sm:   12px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   16px;
  --text-xl:   18px;
  --text-2xl:  22px;
  --text-3xl:  28px;
  --text-4xl:  36px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  12px;
  --space-lg:  16px;
  --space-xl:  20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;
  --space-5xl: 48px;
  --space-6xl: 60px;
  --space-7xl: 80px;

  /* Border Radius */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-btn:        0 4px 0 var(--vermilion-deep);
  --shadow-btn-hover:  0 6px 0 var(--vermilion-deep);
  --shadow-card:       0 8px 18px rgba(217,79,62,0.08);
  --shadow-card-hover: 0 12px 24px rgba(217,79,62,0.12);
  --shadow-mobile-cta: 0 6px 20px rgba(217,79,62,0.4);

  /* Layout */
  --container-max:    1080px;
  --container-narrow: 720px;
  --layout-max:       1180px;
  --sidebar-width:    280px;
  --layout-gap:       40px;

  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-weight: 500;
  font-size: var(--text-md);
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ================================================================
   読書進捗バー
   ================================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--vermilion);
  width: 0%;
  z-index: 100;
  transition: width 0.1s linear;
}

/* ================================================================
   ナビゲーション
   ================================================================ */
.top-nav {
  background: var(--paper);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo-en {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--vermilion);
  font-weight: 700;
  line-height: 1;
}

.nav-logo-jp {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
}

.nav-cta {
  background: var(--vermilion);
  color: white;
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--vermilion-deep);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

/* ================================================================
   コンテナ・レイアウト
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.layout-two-col {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--layout-gap);
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
  align-items: start;
}

/* ================================================================
   サイドバー
   ================================================================ */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: white;
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.sidebar-card + .sidebar-card {
  margin-top: 0;
}

/* プロフィール */
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  background: var(--vermilion);
}

.profile-avatar svg,
.profile-avatar img {
  width: 100%;
  height: 100%;
}

.profile-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.profile-title {
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.profile-bio {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* SNSボタン */
.sns-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink);
  transition: all var(--transition-fast);
}

.sns-btn:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

/* サイドバーCTA */
.sidebar-cta-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-sm);
}

.sidebar-cta-btn.primary {
  background: var(--vermilion);
  color: white;
  box-shadow: var(--shadow-btn);
}

.sidebar-cta-btn.primary:hover {
  background: var(--vermilion-deep);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}

.sidebar-cta-btn.secondary {
  background: white;
  color: var(--ink);
  border: 2px solid var(--line);
}

.sidebar-cta-btn.secondary:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

/* 目次(サイドバー) */
.toc-sidebar-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.toc-sidebar-list {
  list-style: none;
}

.toc-sidebar-list li {
  margin-bottom: var(--space-sm);
}

.toc-sidebar-list a {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: var(--space-sm);
  transition: all var(--transition-fast);
  line-height: 1.5;
}

.toc-sidebar-list a:hover,
.toc-sidebar-list a.active {
  color: var(--vermilion);
  border-left-color: var(--vermilion);
}

/* ================================================================
   ヒーローセクション (トップページ)
   ================================================================ */
.hero {
  background: var(--cream);
  padding: var(--space-6xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(217,79,62,0.06) 2px, transparent 2px);
  background-size: 20px 20px;
  border-radius: 50%;
}

.hero-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: var(--text-xl);
  color: var(--vermilion);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.hero-title-en {
  font-family: 'Caveat', cursive;
  font-size: clamp(60px, 12vw, 100px);
  color: var(--vermilion);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: var(--space-md);
}

.hero-title-jp {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}

.hero-desc {
  font-size: var(--text-md);
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.9;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-xl);
  background: var(--vermilion);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(217,79,62,0.2);
}

.hero-avatar svg {
  width: 100%;
  height: 100%;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--vermilion);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-fast);
}

.hero-cta:hover {
  background: var(--vermilion-deep);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}

/* ================================================================
   セクション共通
   ================================================================ */
.section {
  padding: var(--space-6xl) var(--space-xl);
}

.section-alt {
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: var(--text-xl);
  color: var(--vermilion);
  display: block;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink);
}

/* ================================================================
   About Card
   ================================================================ */
.about-card {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4xl);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: var(--space-3xl);
  align-items: center;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--vermilion);
  overflow: hidden;
}

.about-avatar svg {
  width: 100%;
  height: 100%;
}

.about-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.about-role {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.about-bio {
  font-size: var(--text-md);
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ================================================================
   ニュース
   ================================================================ */
.news-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px dashed var(--line);
}

.news-date {
  font-family: 'Caveat', cursive;
  font-size: var(--text-md);
  color: var(--muted);
  flex-shrink: 0;
  width: 90px;
}

.news-link {
  font-size: var(--text-md);
  color: var(--ink);
  transition: color var(--transition-fast);
}

.news-link:hover {
  color: var(--vermilion);
}

/* ================================================================
   カテゴリカード
   ================================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.category-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--line);
  transition: all var(--transition-base);
}

.category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--vermilion-light);
}

.category-icon {
  font-size: 40px;
  margin-bottom: var(--space-lg);
  display: block;
}

.category-name-en {
  font-family: 'Caveat', cursive;
  font-size: var(--text-lg);
  color: var(--vermilion);
  display: block;
  margin-bottom: var(--space-xs);
}

.category-name-jp {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.category-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.category-count {
  font-size: var(--text-sm);
  color: var(--vermilion);
  font-weight: 700;
}

/* ================================================================
   記事カード
   ================================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.article-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--line);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.article-card-thumb {
  background: var(--cream);
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.04);
}

.article-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.article-card-body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-category {
  font-family: 'Caveat', cursive;
  font-size: var(--text-sm);
  color: var(--vermilion);
  margin-bottom: var(--space-sm);
  display: block;
}

.article-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: var(--space-md);
  flex: 1;
}

.article-card-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: auto;
}

.article-card-tag {
  background: var(--cream);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

/* ================================================================
   CTAバナー
   ================================================================ */
.cta-banner {
  background: var(--vermilion);
  color: white;
  text-align: center;
  padding: var(--space-6xl) var(--space-xl);
}

.cta-banner-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: var(--text-xl);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.cta-banner-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-banner-desc {
  font-size: var(--text-md);
  opacity: 0.9;
  margin-bottom: var(--space-4xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-white {
  background: white;
  color: var(--vermilion);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
  transition: all var(--transition-fast);
}

.cta-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}

.cta-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.cta-btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* ================================================================
   記事ページ (single.php)
   ================================================================ */
.article-breadcrumb {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-xl);
}

.article-breadcrumb a {
  color: var(--vermilion);
  transition: opacity var(--transition-fast);
}

.article-breadcrumb a:hover {
  opacity: 0.8;
}

.article-breadcrumb span {
  margin: 0 var(--space-sm);
}

.article-header {
  border-bottom: 1.5px solid var(--cream-deep);
  padding-bottom: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.article-meta-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.tag-category {
  background: var(--vermilion);
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.tag-outline {
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

.article-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--space-xl);
}

.article-lead {
  font-size: var(--text-lg);
  line-height: 2;
  color: var(--ink-soft);
  background: var(--cream);
  padding: var(--space-2xl) var(--space-3xl);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--vermilion);
  margin-bottom: var(--space-3xl);
}

/* ヒーローイラスト */
.article-hero-illustration {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.article-hero-illustration img {
  max-height: 280px;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.hero-caption-badge {
  display: inline-block;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-family: 'Caveat', cursive;
  font-size: var(--text-lg);
  color: var(--ink);
  margin-top: var(--space-xl);
}

/* 目次 */
.toc {
  background: white;
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.toc-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.toc-list li {
  counter-increment: toc-counter;
  margin-bottom: var(--space-sm);
}

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  font-size: var(--text-md);
  color: var(--ink-soft);
  transition: color var(--transition-fast);
  border-bottom: 1px dashed var(--line);
  padding-bottom: var(--space-sm);
}

.toc-list a:hover {
  color: var(--vermilion);
}

.toc-list a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: 'Caveat', cursive;
  font-size: var(--text-xl);
  color: var(--vermilion);
  flex-shrink: 0;
  width: 28px;
}

/* ================================================================
   記事本文
   ================================================================ */
.article-body {
  font-size: var(--text-md);
  line-height: 2;
  color: var(--ink);
}

.article-body p {
  margin-bottom: var(--space-xl);
}

.article-body h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-top: var(--space-5xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-md) var(--space-xl) var(--space-md) 72px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  position: relative;
  counter-increment: section-counter;
}

.article-body h2::before {
  content: counter(section-counter, decimal-leading-zero);
  font-family: 'Caveat', cursive;
  font-size: var(--text-3xl);
  color: var(--vermilion);
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

.article-body h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--vermilion-deep);
}

.article-body h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-body strong {
  background: linear-gradient(transparent 60%, rgba(212,165,52,0.35) 60%);
  font-weight: 700;
}

.article-body a {
  color: var(--vermilion);
  border-bottom: 1px solid var(--vermilion-light);
  transition: opacity var(--transition-fast);
}

.article-body a:hover {
  opacity: 0.8;
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-xl);
  padding-left: var(--space-xl);
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: var(--space-sm);
}

.article-body blockquote {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-2xl) 0;
  font-style: italic;
}

.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: var(--cream-deep);
  padding: 2px 6px;
  border-radius: 4px;
}

.article-body pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-sm);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-2xl);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: var(--space-2xl) 0;
}

/* カスタムブロックスタイル */
.article-body .highlight-box {
  background: var(--gold-pale);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.article-body .yumiko-note {
  background: var(--vermilion-pale);
  border-left: 4px solid var(--vermilion);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-2xl) 0;
}

.article-body .yumiko-note::before {
  content: '💡 ゆみこの考察';
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--vermilion);
  display: block;
  margin-bottom: var(--space-sm);
}

/* ================================================================
   インラインCTA
   ================================================================ */
.inline-cta {
  background: linear-gradient(135deg, var(--cream) 0%, var(--vermilion-pale) 100%);
  border: 2px solid var(--vermilion-light);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  margin: var(--space-4xl) 0;
}

.inline-cta-label {
  font-family: 'Caveat', cursive;
  font-size: var(--text-lg);
  color: var(--vermilion);
  display: block;
  margin-bottom: var(--space-sm);
}

.inline-cta-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.inline-cta-desc {
  font-size: var(--text-md);
  color: var(--ink-soft);
  margin-bottom: var(--space-2xl);
}

.inline-cta-btn {
  display: inline-block;
  background: var(--vermilion);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-md);
  font-weight: 700;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-fast);
}

.inline-cta-btn:hover {
  background: var(--vermilion-deep);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}

/* ================================================================
   参考文献
   ================================================================ */
.reference-section {
  margin-top: var(--space-5xl);
  padding-top: var(--space-3xl);
  border-top: 2px solid var(--cream-deep);
}

.reference-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.reference-list {
  list-style: none;
  counter-reset: ref-counter;
}

.reference-list li {
  counter-increment: ref-counter;
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--text-sm);
  align-items: baseline;
}

.reference-list li::before {
  content: '[' counter(ref-counter) ']';
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-xs);
  color: var(--vermilion);
  flex-shrink: 0;
}

.reference-list a {
  color: var(--vermilion);
}

.ref-source {
  color: var(--muted);
  font-size: var(--text-xs);
  display: block;
  margin-top: 2px;
}

/* ================================================================
   シェアボタン
   ================================================================ */
.share-section {
  margin: var(--space-4xl) 0;
  padding: var(--space-3xl) 0;
  border-top: 1.5px dashed var(--line);
  border-bottom: 1.5px dashed var(--line);
}

.share-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.share-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.share-btn-x {
  background: #000;
  color: white;
}

.share-btn-x:hover {
  background: #333;
}

.share-btn-copy {
  background: white;
  color: var(--ink);
  border: 2px solid var(--line);
}

.share-btn-copy:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

/* ================================================================
   著者カード
   ================================================================ */
.author-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
  margin: var(--space-4xl) 0;
}

.author-card-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--vermilion);
  overflow: hidden;
}

.author-card-avatar svg {
  width: 100%;
  height: 100%;
}

.author-card-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.author-card-role {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.author-card-bio {
  font-size: var(--text-md);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ================================================================
   関連記事
   ================================================================ */
.related-section {
  margin-top: var(--space-5xl);
}

.related-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--cream-deep);
}

/* ================================================================
   モバイルフローティングCTA
   ================================================================ */
.mobile-cta-float {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  z-index: 40;
}

.mobile-cta-float-btn {
  display: block;
  text-align: center;
  background: var(--vermilion);
  color: white;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: 700;
  box-shadow: var(--shadow-mobile-cta);
}

/* ================================================================
   アーカイブページ
   ================================================================ */
.archive-header {
  background: var(--cream);
  padding: var(--space-5xl) var(--space-xl);
  text-align: center;
  border-bottom: 2px solid var(--cream-deep);
}

.archive-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.archive-desc {
  font-size: var(--text-md);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.archive-count {
  font-family: 'Caveat', cursive;
  font-size: var(--text-xl);
  color: var(--vermilion);
  margin-top: var(--space-md);
}

/* ================================================================
   ページネーション
   ================================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-5xl);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  border: 1.5px solid var(--line);
  transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
  background: var(--vermilion);
  color: white;
  border-color: var(--vermilion);
}

/* ================================================================
   フッター
   ================================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-6xl) var(--space-xl) var(--space-3xl);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-3xl);
}

.footer-logo-en {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  color: var(--vermilion-light);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: var(--text-sm);
  opacity: 0.6;
  margin-bottom: var(--space-lg);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: var(--text-sm);
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  font-size: var(--text-xs);
  opacity: 0.4;
}

/* ================================================================
   404ページ
   ================================================================ */
.error-404 {
  text-align: center;
  padding: var(--space-7xl) var(--space-xl);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.error-404-num {
  font-family: 'Caveat', cursive;
  font-size: 120px;
  color: var(--vermilion);
  line-height: 1;
  margin-bottom: var(--space-xl);
}

.error-404-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.error-404-desc {
  color: var(--muted);
  margin-bottom: var(--space-3xl);
}

/* ================================================================
   固定ページ
   ================================================================ */
.page-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-6xl) var(--space-xl);
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-4xl);
  padding-bottom: var(--space-xl);
  border-bottom: 2px solid var(--cream-deep);
}

/* ================================================================
   Gutenbergエディタ対応
   ================================================================ */
.wp-block-image {
  margin: var(--space-3xl) 0;
}

.wp-block-image img {
  border-radius: var(--radius-sm);
}

.wp-block-quote {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--space-2xl) 0;
  font-style: italic;
}

.wp-block-separator {
  border: none;
  border-top: 2px dashed var(--line);
  margin: var(--space-3xl) 0;
}

/* ================================================================
   レスポンシブ (タブレット: 960px以下)
   ================================================================ */
@media (max-width: 960px) {
  .layout-two-col {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-cta-float {
    display: block;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .about-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================================
   レスポンシブ (モバイル: 600px以下)
   ================================================================ */
@media (max-width: 600px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-title-en {
    font-size: 60px;
  }

  .about-card {
    padding: var(--space-xl);
  }

  .author-card {
    flex-direction: column;
  }

  .cta-banner-buttons {
    flex-direction: column;
    align-items: center;
  }

  .layout-two-col {
    padding: var(--space-2xl) var(--space-lg);
  }

  .article-lead {
    padding: var(--space-lg) var(--space-xl);
  }
}
