/*
 Theme Name: ai3d-lab Theme
 Description: Custom theme for ai3d-lab.com — AI 3D実践ガイド
 Version: 1.0
 Author: ai3d-lab.com
*/

/* ============================================================
   1. CSS VARIABLES（site-design.md § 1-2 確定値）
============================================================ */
:root {
  --color-primary:        #6D28D9;
  --color-secondary:      #2563EB;
  --color-bg:             #EFF1F9;
  --color-surface:        #FFFFFF;
  --color-surface-dark:   #0D1117;
  --color-text-primary:   #0D1117;
  --color-text-secondary: #6E7891;
  --color-text-on-dark:   #F1F5F9;
  --color-text-link:      #6D28D9;
  --color-accent-green:   #10B981;
  --color-accent-orange:  #F59E0B;
  --color-accent-red:     #EF4444;
  --color-border:         #DDE1EF;
  --color-border-strong:  #C4C9D8;
  --shadow-sm: 0 1px 3px rgba(13,17,23,0.05), 0 6px 20px -6px rgba(13,17,23,0.09);
  --shadow-md: 0 4px 12px rgba(13,17,23,0.09), 0 20px 40px -8px rgba(13,17,23,0.13);
  --shadow-lg: 0 12px 20px rgba(13,17,23,0.12), 0 4px 8px rgba(13,17,23,0.08);
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-full: 9999px;
  --gradient-brand: linear-gradient(135deg, #6D28D9 0%, #2563EB 100%);
  --max-w: 1200px;
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ============================================================
   3. WP 管理バー対応
============================================================ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ============================================================
   4. LAYOUT UTILITIES
============================================================ */
.ai3d-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.page-section { padding: 72px 32px; }
.page-section-alt { background: transparent; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-left: 4px;
}
.section-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }

/* ============================================================
   5. CHIPS（カテゴリタグ）
============================================================ */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.chip-blue   { background: rgba(37,99,235,0.1);  color: #1D4ED8; }
.chip-violet { background: rgba(124,58,237,0.1); color: #6D28D9; }
.chip-green  { background: rgba(16,185,129,0.1); color: #059669; }
.chip-orange { background: rgba(245,158,11,0.1); color: #D97706; }
.chip-slate  { background: rgba(71,85,105,0.1);  color: #475569; }

/* ============================================================
   6. HEADER & NAVIGATION
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 66px;
  display: flex;
  align-items: center;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 40px;
  gap: 10px;
}
.site-logo:hover { text-decoration: none; }
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-text { font-size: 18px; font-weight: 700; color: var(--color-text-primary); }
.logo-text span { font-weight: 400; }

/* WP custom_logo override */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current-menu-ancestor > a,
.nav-links li.current-page-ancestor > a {
  color: var(--color-primary);
  background: rgba(109,40,217,0.07);
  font-weight: 700;
  text-decoration: none;
}

.nav-search {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--color-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
  text-decoration: none;
}
.nav-search:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

/* モバイルハンバーガー（.nav-toggle / JS: .is-open） */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  display: block;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー（.nav-links.is-open で全画面表示） */
.nav-links.is-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--color-surface-dark);
  z-index: 800;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-links.is-open li { margin: 0; }
.nav-links.is-open a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  padding: 14px 32px;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  display: block;
}
.nav-links.is-open a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }

/* ============================================================
   7. FOOTER
============================================================ */
.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  padding: 48px 32px 32px;
  margin-top: 80px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-icon { background: rgba(255,255,255,0.15); }
.footer-logo .logo-text { color: var(--color-text-on-dark); font-size: 16px; }
.footer-tagline {
  font-size: 13.5px;
  color: rgba(241,245,249,0.6);
  line-height: 1.85;
  max-width: 280px;
  margin-bottom: 10px;
}
.footer-aff-note { font-size: 12px; color: rgba(241,245,249,0.35); }

.footer-nav-group { min-width: 130px; }
.footer-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241,245,249,0.4);
  margin-bottom: 14px;
}
.footer-nav-list { list-style: none; padding: 0; margin: 0; }
.footer-nav-list li { margin-bottom: 9px; }
.footer-nav-list a {
  font-size: 13px;
  color: rgba(241,245,249,0.65);
  transition: color 0.15s;
  text-decoration: none;
}
.footer-nav-list a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(241,245,249,0.35); }

/* ============================================================
   8. BREADCRUMB
============================================================ */
.breadcrumb-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}
.breadcrumb-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--color-text-secondary); }
.breadcrumb-inner a:hover { color: var(--color-primary); text-decoration: none; }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--color-text-primary); font-weight: 500; }

/* ============================================================
   9. HOMEPAGE — HERO
============================================================ */
.hero {
  background: var(--color-bg);
  padding: 60px 32px 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(109,40,217,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  background: rgba(109,40,217,0.18);
  border: 1px solid rgba(109,40,217,0.32);
  border-radius: var(--radius-full);
  padding: 5px 16px 5px 8px;
}
.eyebrow-dot {
  width: 22px;
  height: 22px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.eyebrow-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-h1 {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.22;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero-h1 em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(109,40,217,0.45);
  transition: transform 0.15s, filter 0.15s;
  white-space: nowrap;
}
.btn-hero-primary:hover { transform: translateY(-2px); filter: brightness(1.1); text-decoration: none; }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(109,40,217,0.35);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-hero-outline:hover { background: rgba(109,40,217,0.08); border-color: var(--color-primary); text-decoration: none; }

/* ============================================================
   10. HOMEPAGE — HERO 著者カード
============================================================ */
.author-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.author-card::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border: 1px solid rgba(109,40,217,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.author-card::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 160px; height: 160px;
  border: 1px solid rgba(109,40,217,0.22);
  border-radius: 50%;
  pointer-events: none;
}
.ac-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.ac-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(109,40,217,0.3);
}
.ac-name { font-size: 15px; font-weight: 700; color: var(--color-text-primary); }
.ac-role { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.ac-bio {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.ac-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.ac-stat-item { text-align: center; }
.ac-stat-num { font-size: 1.5rem; font-weight: 700; color: var(--color-text-primary); display: block; }
.ac-stat-lbl { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }
.ac-sign {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: right;
  position: relative; z-index: 1;
}

/* ============================================================
   11. HOMEPAGE — FEATURED 記事カード
============================================================ */
.feat-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}
.feat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }

.feat-thumb {
  min-height: 240px;
  background: linear-gradient(135deg, #1E3A5F 0%, #1D4ED8 60%, #7C3AED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feat-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 1;
}
.feat-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}
.feat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.feat-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  display: block;
}
.feat-card:hover .feat-title { color: var(--color-primary); }
.feat-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 18px;
}
.feat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}
.meta-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-border-strong); flex-shrink: 0; }

/* ============================================================
   12. HOMEPAGE — 記事カードグリッド（3列 / 2列）
============================================================ */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.post-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.post-card-thumb .thumb-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 1;
}
.badge-new { background: var(--color-accent-red); color: #fff; }
.badge-hot { background: var(--gradient-brand); color: #fff; }

.post-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; }
.post-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card:hover .post-card-title { color: var(--color-primary); }
.post-card-excerpt {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--color-text-secondary);
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}
.foot-views { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }

/* List card（最新記事用 2カラム横型） */
.list-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}
.list-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.list-card-thumb {
  width: 96px; height: 72px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.25);
}
.list-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-card-body { flex: 1; min-width: 0; }
.list-card-chips { display: flex; gap: 5px; margin-bottom: 6px; flex-wrap: wrap; }
.list-card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card:hover .list-card-title { color: var(--color-primary); }
.list-card-meta { font-size: 11px; color: var(--color-text-secondary); display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   13. HOMEPAGE — CATEGORY カード
============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.cat-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.cat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 2px;
}
.cat-en { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-secondary); }
.cat-name { font-size: 13.5px; font-weight: 700; color: var(--color-text-primary); }
.cat-count { font-size: 12px; color: var(--color-text-secondary); }
.cat-count strong { color: var(--color-primary); font-weight: 700; }

/* ============================================================
   14. HOMEPAGE — TOOLS TABLE
============================================================ */
.tools-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tools-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tools-table thead { background: var(--color-surface-dark); }
.tools-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(241,245,249,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tools-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.tools-table tbody tr:last-child td { border-bottom: none; }
.tools-table tbody tr:hover { background: var(--color-surface); }
.tool-cell { display: flex; align-items: center; gap: 12px; }
.tool-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.tool-name { font-size: 14px; font-weight: 700; }
.tool-desc { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.aff-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(109,40,217,0.1);
  color: var(--color-primary);
  margin-left: 6px;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.stars { font-size: 14px; color: var(--color-accent-orange); letter-spacing: 1px; }
.stars .empty { opacity: 0.25; }
.plan-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.plan-free  { background: rgba(16,185,129,0.12); color: #059669; }
.plan-trial { background: rgba(109,40,217,0.1); color: var(--color-primary); }
.review-link { font-size: 12.5px; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.review-link:hover { text-decoration: underline; }

/* ============================================================
   15. HOMEPAGE — NEWSLETTER
============================================================ */
.newsletter-box {
  background: linear-gradient(135deg, #1E1B4B 0%, #3730A3 40%, #1D4ED8 100%);
  border-radius: 20px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 10px 48px rgba(30,27,75,0.3);
  position: relative;
  overflow: hidden;
}
.newsletter-box::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.nl-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}
.nl-title { font-size: 1.5rem; font-weight: 700; line-height: 1.5; color: #fff; margin-bottom: 10px; }
.nl-desc { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.85; }
/* CF7フォームのスタイリング */
.newsletter-box .wpcf7-form-control-wrap { display: block; }
.newsletter-box .nl-form-row { display: flex; gap: 8px; margin-bottom: 14px; }
.newsletter-box input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  outline: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  backdrop-filter: blur(4px);
}
.newsletter-box input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-box input[type="email"]:focus { background: rgba(255,255,255,0.2); }
.newsletter-box input[type="submit"],
.nl-btn {
  padding: 12px 22px;
  background: #fff;
  color: #1D4ED8;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.newsletter-box input[type="submit"]:hover,
.nl-btn:hover { opacity: 0.92; }
.nl-note { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ============================================================
   16. ARTICLE PAGE LAYOUT
============================================================ */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   17. ARTICLE HEADER & META
============================================================ */
.article-header { margin-bottom: 32px; }
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.article-category:hover { text-decoration: none; opacity: 0.85; }
.article-date,
.article-reading-time {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.article-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name { font-size: 14px; font-weight: 700; color: var(--color-text-primary); }
.author-role { font-size: 12px; color: var(--color-text-secondary); }
.article-update-date { font-size: 12.5px; color: var(--color-text-secondary); }

.article-eyecatch {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-eyecatch img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   18. ARTICLE TOC
============================================================ */
.toc-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.toc-list { list-style: none; padding: 0; counter-reset: toc-counter; }
.toc-list li {
  padding: 3px 0;
  font-size: 14px;
  counter-increment: toc-counter;
}
.toc-list li::before {
  content: counter(toc-counter) ". ";
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 4px;
}
.toc-list li a { color: var(--color-text-secondary); text-decoration: none; }
.toc-list li a:hover { color: var(--color-primary); }
.toc-list .toc-h3 { padding-left: 20px; font-size: 13px; }
.toc-list .toc-h3::before { content: ""; counter-increment: none; }

/* ============================================================
   19. ARTICLE BODY TYPOGRAPHY
============================================================ */
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding: 12px 16px;
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-primary);
}
.article-body p {
  margin-bottom: 1.25rem;
  line-height: 1.9;
  color: var(--color-text-primary);
}
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; line-height: 1.8; }
.article-body strong { font-weight: 700; color: var(--color-text-primary); }
.article-body a { color: var(--color-primary); }
.article-body a:hover { text-decoration: underline; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.5rem 0;
}
.article-body th {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}
.article-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border);
}
.article-body tr:nth-child(even) td { background: var(--color-surface); }
.article-body img { border-radius: var(--radius-md); margin: 1.5rem 0; }

/* まとめセクション */
.article-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 2.5rem 0;
}
.article-summary h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: none;
  border: none;
  padding: 0;
}

/* ============================================================
   20. 記事コンポーネント：INFO CARD
============================================================ */
.ai-tool-super-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  background: var(--color-bg);
}
.ai-tool-title {
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  letter-spacing: 0.03em;
}
.ai-rating-box {
  padding: 16px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.ai-rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}
.ai-rating-row .stars { color: var(--color-accent-orange); font-size: 1rem; }
.ai-spec-table { padding: 0; }
.ai-spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--color-border);
}
.ai-spec-row:last-child { border-bottom: none; }
.ai-spec-label {
  padding: 10px 16px;
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-right: 1px solid var(--color-border);
}
.ai-spec-content { padding: 10px 16px; font-size: 14px; line-height: 1.7; }
.ai-spec-content a { font-weight: 600; }
.ai-spec-content ul { list-style: disc; padding-left: 1.2em; }
.ai-editor-comment {
  padding: 12px 20px;
  background: rgba(37,99,235,0.05);
  border-top: 1px solid rgba(37,99,235,0.12);
  font-size: 13.5px;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ============================================================
   21. 記事コンポーネント：PROS / CONS
============================================================ */
.jd-procon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.5rem 0;
}
.jd-pro, .jd-con { border-radius: var(--radius-md); padding: 16px 18px; }
.jd-pro {
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.25);
}
.jd-con {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
}
.jd-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.jd-pro .jd-title { color: var(--color-accent-green); }
.jd-con .jd-title { color: var(--color-accent-red); }
.jd-procon ul { list-style: none; padding: 0; margin: 0; }
.jd-procon li {
  font-size: 13.5px;
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.6;
}
.jd-pro li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent-green); font-weight: 700; }
.jd-con li::before { content: "✗"; position: absolute; left: 0; color: var(--color-accent-red); }

/* ============================================================
   22. 記事コンポーネント：AFF ボタン
============================================================ */
.custom-btn-wrap { text-align: center; margin: 1.5rem 0; }
.custom-btn-subtext {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}
.custom-shiny-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.custom-shiny-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: left .45s;
}
.custom-shiny-btn:hover::before { left: 100%; }
.custom-shiny-btn:hover { transform: translateY(-2px); filter: brightness(1.08); text-decoration: none; }
.btn-green {
  background: linear-gradient(135deg, #059669, #10B981);
  box-shadow: 0 4px 16px rgba(5,150,105,.35);
}
.btn-green:hover { box-shadow: 0 6px 22px rgba(5,150,105,.45); }
.btn-blue {
  background: var(--gradient-brand);
  box-shadow: 0 4px 16px rgba(109,40,217,.35);
}
.btn-blue:hover { box-shadow: 0 6px 22px rgba(109,40,217,.45); }
.custom-shiny-btn .icon { flex-shrink: 0; }

/* ============================================================
   23. 記事コンポーネント：比較テーブル
============================================================ */
.comparison-result-table { margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-result-table table {
  min-width: 500px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-result-table th {
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
}
.comparison-result-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}
.comparison-result-table tr:nth-child(even) td { background: var(--color-surface); }
.comparison-note {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-border);
}

/* ============================================================
   24. 記事末尾：著者カード
============================================================ */
.author-card-footer {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 3rem 0 2rem;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-surface);
}
.author-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.author-card-role { font-size: 13px; color: var(--color-primary); font-weight: 600; margin-bottom: 10px; }
.author-card-bio { font-size: 14px; color: var(--color-text-secondary); line-height: 1.8; }

/* ============================================================
   25. 関連記事
============================================================ */
.related-articles { margin: 2rem 0; }
.related-articles h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 0;
  background: none;
  border: none;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  background: var(--color-surface);
  text-decoration: none;
  display: block;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.related-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255,255,255,0.4);
  overflow: hidden;
}
.related-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: 12px 14px; }
.related-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.related-card-title { font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--color-text-primary); }
.related-card:hover .related-card-title { color: var(--color-primary); }

/* ============================================================
   26. SIDEBAR
============================================================ */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}
.sidebar-widget {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}
.sidebar-widget-title {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin: 0;
}
.sidebar-widget-body { padding: 16px; }

/* サイドバー TOC */
.sidebar-toc-list { list-style: none; counter-reset: stoc; padding: 0; }
.sidebar-toc-list li {
  counter-increment: stoc;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-toc-list li:last-child { border-bottom: none; }
.sidebar-toc-list li a {
  color: var(--color-text-secondary);
  display: flex;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
}
.sidebar-toc-list li a:hover { color: var(--color-primary); }
.sidebar-toc-list li a::before {
  content: counter(stoc);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(109,40,217,0.1);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  flex-shrink: 0;
}

/* サイドバー AFF */
.sidebar-aff-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-aff-item:last-child { border-bottom: none; }
.sidebar-tool-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-tool-info { flex: 1; }
.sidebar-tool-name { font-size: 13px; font-weight: 700; }
.sidebar-tool-plan { font-size: 11.5px; color: var(--color-accent-green); font-weight: 600; }
.sidebar-tool-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  text-decoration: none;
}
.sidebar-tool-link:hover { text-decoration: underline; }

/* サイドバー 著者 */
.sidebar-author { text-align: center; }
.sidebar-author-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 12px;
}
.sidebar-author-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.sidebar-author-role { font-size: 12px; color: var(--color-primary); font-weight: 600; margin-bottom: 8px; }
.sidebar-author-bio { font-size: 12.5px; color: var(--color-text-secondary); line-height: 1.7; text-align: left; }

/* サイドバー 関連記事 */
.sidebar-post-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-post-item:last-child { border-bottom: none; }
.sidebar-post-thumb {
  width: 54px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  overflow: hidden;
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-title { font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--color-text-primary); }
.sidebar-post-item a { text-decoration: none; }
.sidebar-post-item a:hover .sidebar-post-title { color: var(--color-primary); }

/* ============================================================
   27. ARCHIVE / CATEGORY PAGE
============================================================ */
.category-hero {
  background: var(--color-bg);
  padding: 56px 32px 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}
.category-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(109,40,217,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.category-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.category-breadcrumb a { color: var(--color-text-secondary); }
.category-breadcrumb a:hover { color: var(--color-primary); text-decoration: none; }
.category-breadcrumb .sep { opacity: 0.4; }
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(109,40,217,0.08);
  border: 1px solid rgba(109,40,217,0.2);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.category-h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}
.category-tagline {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 24px;
}
.category-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.category-stat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text-secondary); }
.category-stat strong { font-size: 1.5rem; font-weight: 700; color: var(--color-text-primary); }

/* ツールバー */
.archive-toolbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
}
.archive-toolbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-cluster-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cluster-tab {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--color-bg);
  text-decoration: none;
}
.cluster-tab:hover, .cluster-tab.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(109,40,217,0.07);
  text-decoration: none;
  font-weight: 700;
}

/* アーカイブグリッド */
.archive-wrap { max-width: var(--max-w); margin: 0 auto; padding: 40px 32px 80px; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
/* アーカイブ用 post-card overrides */
.archive-grid .post-card { text-decoration: none; }
.archive-grid .post-card-thumb { aspect-ratio: 16/9; font-size: 32px; }
.archive-grid .post-card-body { padding: 18px 20px; }
.archive-grid .post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.archive-grid .post-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.archive-grid .post-card-date { font-size: 12px; color: var(--color-text-secondary); }
.archive-grid .post-card-title { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--color-text-primary); margin-bottom: 10px; -webkit-line-clamp: unset; }
.archive-grid .post-card-excerpt { font-size: 13px; -webkit-line-clamp: 2; }
.archive-grid .post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.archive-grid .post-card-readtime { font-size: 12px; color: var(--color-text-secondary); }
.archive-grid .post-card-readmore { font-size: 13px; font-weight: 700; color: var(--color-primary); }

/* Featured（アーカイブ1件目を大きく） */
.post-card-featured {
  grid-column: 1 / 3;
  flex-direction: row;
}
.post-card-featured .post-card-thumb {
  width: 45%;
  aspect-ratio: unset;
  flex-shrink: 0;
  font-size: 48px;
}
.post-card-featured .post-card-body { padding: 24px 28px; }
.post-card-featured .post-card-title { font-size: 1.2rem; }

/* ============================================================
   28. PAGINATION
============================================================ */
.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.page-btn:hover, .page-btn.current {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(109,40,217,0.08);
  text-decoration: none;
}
.page-btn.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* WP standard pagination */
.nav-links .nav-previous a,
.nav-links .nav-next a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all 0.15s;
  text-decoration: none;
}
.nav-links .nav-previous a:hover,
.nav-links .nav-next a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   29. FIXED PAGE TEMPLATE（page.php）
============================================================ */
.page-content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.page-header { margin-bottom: 40px; }
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}
.page-body { font-size: 16px; line-height: 1.9; color: var(--color-text-primary); }
.page-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 1rem; padding: 12px 16px; background: var(--color-surface); border-left: 4px solid var(--color-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.page-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.75rem; padding-bottom: 6px; border-bottom: 2px solid var(--color-border); }
.page-body p { margin-bottom: 1.25rem; }
.page-body ul, .page-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li { margin-bottom: 0.4rem; }
.page-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1.5rem 0; }
.page-body th { background: var(--color-surface-dark); color: var(--color-text-on-dark); padding: 10px 14px; text-align: left; font-weight: 700; }
.page-body td { padding: 9px 14px; border-bottom: 1px solid var(--color-border); }
.page-body tr:nth-child(even) td { background: var(--color-surface); }

/* ============================================================
   30. RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .feat-card { grid-template-columns: 1fr; }
  .feat-thumb { min-height: 200px; }
  .post-card-featured { grid-column: 1 / 3; flex-direction: column; }
  .post-card-featured .post-card-thumb { width: 100%; aspect-ratio: 16/9; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter-box { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .page-section { padding: 56px 24px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; padding: 28px 24px 60px; gap: 32px; }
  .article-sidebar { position: static; order: -1; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .jd-procon { grid-template-columns: 1fr; }
  .hero { padding: 48px 24px 44px; }
  .category-hero { padding: 40px 24px 36px; }
}

@media (max-width: 640px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-column: 1; }
  .hero-h1 { font-size: 2.25rem; }
  .category-h1 { font-size: 1.75rem; }
  .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .archive-toolbar-inner { padding: 0 20px; }
  .archive-wrap { padding: 28px 20px 60px; }
  .page-section { padding: 40px 16px; }
  .article-wrap { padding: 24px 16px 60px; }
  .article-h1 { font-size: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 36px 20px 24px; }
  .ai3d-wrap { padding: 0 20px; }
  .page-content-wrap { padding: 32px 20px 60px; }
}

/* ============================================================
   31. UTILITY BUTTONS（ヘッダー CTA / サイドバー共通ボタン）
============================================================ */
.nav-cta {
  margin-left: 16px;
  flex-shrink: 0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; color: #fff; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-outline:hover { background: rgba(109,40,217,0.08); text-decoration: none; }

/* ============================================================
   32. SIDEBAR — ツールウィジェット（sidebar.php に合わせた追加クラス）
============================================================ */
.sidebar-tool-list { list-style: none; padding: 0; margin: 0; }
.sidebar-tool-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-tool-item:last-child { border-bottom: none; }
.sidebar-tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.sidebar-tool-stars { font-size: 12px; color: var(--color-accent-orange); }
.sidebar-tool-desc {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}
.sidebar-tool-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 9px 16px;
}

/* ============================================================
   33. フッター補足スタイル
============================================================ */
.footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal-links a {
  font-size: 12px;
  color: rgba(241,245,249,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal-links a:hover { color: rgba(241,245,249,0.85); text-decoration: none; }

/* ============================================================
   34. サムネイル背景（アイキャッチなし時のフォールバック）
============================================================ */
.post-card-thumb  { background: linear-gradient(135deg, #2D1B69 0%, #1E3A8A 100%); }
.list-card-thumb  { background: linear-gradient(135deg, #2D1B69 0%, #1E3A8A 100%); }
.feat-thumb       { background: linear-gradient(135deg, #1E3A5F 0%, #1D4ED8 60%, #7C3AED 100%); }

/* ============================================================
   35. 検索オーバーレイ
============================================================ */
.nav-search {
  margin-left: auto;
  width: 36px; height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer; flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
  background: none;
}
.nav-search:hover { border-color: var(--color-primary); color: var(--color-primary); }

.search-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-overlay[hidden] { display: none; }
.search-overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(13,17,23,0.65);
  backdrop-filter: blur(4px);
}
.search-overlay-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px; margin: 0 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 20px;
}
.search-overlay-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.search-overlay-close:hover { color: var(--color-text-primary); background: var(--color-bg); }
.search-overlay-form { display: flex; gap: 8px; align-items: center; }
.search-overlay-input {
  flex: 1; height: 52px; padding: 0 18px;
  font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg); color: var(--color-text-primary);
  outline: none; transition: border-color 0.15s;
}
.search-overlay-input:focus { border-color: var(--color-primary); }
.search-overlay-input::placeholder { color: var(--color-text-secondary); }
.search-overlay-btn {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: opacity 0.15s;
}
.search-overlay-btn:hover { opacity: 0.88; }
.search-overlay-hint {
  font-size: 12px; color: var(--color-text-secondary);
  margin-top: 10px; text-align: center;
}

/* ============================================================
   36. 検索結果ページ（search.php）
============================================================ */
.search-form-bar { margin-top: 24px; max-width: 560px; }
.search-bar-form { display: flex; gap: 8px; align-items: center; }
.search-bar-input {
  flex: 1; height: 48px; padding: 0 16px;
  font-size: 15px; font-family: inherit;
  border: 1.5px solid rgba(109,40,217,0.3);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.8); color: var(--color-text-primary);
  outline: none; transition: border-color 0.15s;
}
.search-bar-input:focus { border-color: var(--color-primary); background: #fff; }
.search-bar-input::placeholder { color: var(--color-text-secondary); }
.search-bar-btn {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: #fff;
  border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: opacity 0.15s;
}
.search-bar-btn:hover { opacity: 0.88; }

.search-no-results { text-align: center; padding: 80px 20px 60px; }
.search-no-results-icon { font-size: 56px; margin-bottom: 20px; opacity: 0.5; }
.search-no-results-title { font-size: 1.4rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: 12px; }
.search-no-results-desc { font-size: 15px; color: var(--color-text-secondary); line-height: 1.9; margin-bottom: 28px; }
.search-no-results .search-bar-form { max-width: 480px; margin: 0 auto 32px; }
.search-suggestions { margin-top: 12px; }
.search-suggestions p { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 12px; }
.search-suggestions-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.search-suggestions-links .chip { font-size: 13px; padding: 6px 14px; text-decoration: none; transition: opacity 0.15s; }
.search-suggestions-links .chip:hover { opacity: 0.8; text-decoration: none; }

