/*
Theme Name:   kiwo — 他愛もない日々 1.1.1
Theme URI:    https://kiwo.jp
Author:       kiwo
Author URI:   https://kiwo.jp
Description:  The Editorial Monolith — kiwo.jp のカスタム WordPress テーマ。タイポグラフィとグリッドを核としたエディトリアルデザインシステム "The Editorial Monolith" を実装。Smart Custom Fields によるコンテンツ管理、Contact Form 7 によるお問い合わせフォームに対応。
Version:      1.1.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License:      Private
License URI:  #
Text Domain:  kiwo
Tags:         blog, editorial, minimal, japanese
*/

/* =======================================================
   kiwo.jp — The Editorial Monolith
   Design tokens, base styles, typography, components
   WordPress版: Tailwind なし、バニラCSSで完全実装
   ======================================================= */

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

/* ── CSS Custom Properties ────────────────────────────── */
:root {
  /* Surfaces */
  --surface:          #FAFAFA;
  --surface-low:      #F3F3F3;
  --surface-container:#EEEEEE;
  --surface-high:     #E8E8E8;
  --surface-highest:  #E2E2E2;
  --surface-lowest:   #FFFFFF;
  --surface-dim:      #DADADA;

  /* Brand */
  --primary:      #7B1E31;
  --primary-dark: #5C041C;
  --primary-on:   #FFFFFF;

  /* Text */
  --text-body:   #333333;
  --text-muted:  #564243;
  --text-subtle: #897173;

  /* Structural */
  --outline:         #897173;
  --outline-variant: #DCC0C1;

  /* Code */
  --code-bg:     #414242;
  --code-text:   #F0F1F1;
  --code-accent: var(--primary);

  /* Layout */
  --max-width: 1792px;
  --gutter:    clamp(1.5rem, 5vw, 3rem);
  --nav-h:     5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--surface);
  color: var(--text-body);
  line-height: 1.8;
  min-height: 100vh;
}

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-body);
}

p { line-height: 1.8; color: var(--text-body); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.1s linear;
}
a:hover { color: var(--primary-dark); }

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

ul, ol { list-style: none; }

::selection {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--text-body);
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--surface-low); }
::-webkit-scrollbar-thumb  { background: var(--outline-variant); }
::-webkit-scrollbar-thumb:hover { background: var(--outline); }

/* ── Layout Utilities ─────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Narrower content container (roughly 70% of max-width) */
.container-article {
  max-width: 1000px; /* Base width for Articles */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Page container (120% of Article width) */
.container-page {
  max-width: 1200px; /* 1000px * 1.2 = 1200px */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Content Sheet: A white card area that separates content from the site background */
.content-sheet {
  background-color: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 4px;
  padding: clamp(2rem, 6vw, 5rem);
  margin-bottom: 5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}
.content-sheet > :first-child { margin-top: 0; }
.content-sheet > :last-child { margin-bottom: 0; }

.section-break { padding-block: clamp(4rem, 8vw, 6rem); }

/* ── Surfaces ─────────────────────────────────────────── */
.surface         { background-color: var(--surface); }
.surface-low     { background-color: var(--surface-low); }
.surface-high    { background-color: var(--surface-high); }
.surface-lowest  { background-color: var(--surface-lowest); }
.surface-dim     { background-color: var(--surface-dim); }
.surface-highest { background-color: var(--surface-highest); }

/* ── Glass Nav ────────────────────────────────────────── */
.glass-nav {
  background-color: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Grid Layouts ─────────────────────────────────────── */
.grid-55-45 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .grid-55-45 { grid-template-columns: 55fr 45fr; gap: 5rem; align-items: start; }
}

.grid-60-40 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .grid-60-40 { grid-template-columns: 60fr 40fr; gap: 4rem; }
}

.grid-40-60 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .grid-40-60 { grid-template-columns: 40fr 60fr; gap: 5rem; align-items: start; }
}

.grid-35-65 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .grid-35-65 { grid-template-columns: 35fr 65fr; gap: 5rem; }
}

.grid-38-62 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .grid-38-62 { grid-template-columns: 38fr 62fr; gap: 5rem; align-items: start; }
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .grid-2col { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
}

.grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 640px)  { .grid-3col { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }
@media (min-width: 768px)  { .grid-3col { grid-template-columns: repeat(3, 1fr); gap: 4rem; } }

.grid-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .grid-footer { grid-template-columns: repeat(3, 1fr); gap: 4rem; }
}

/* About philosophy grid */
.grid-philosophy {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--outline-variant);
}
@media (min-width: 768px) {
  .grid-philosophy {
    grid-template-columns: repeat(3, 1fr);
    border: none;
    border-top: 1px solid var(--outline-variant);
  }
}
.philosophy-card {
  padding: 2.5rem;
  border-bottom: 1px solid var(--outline-variant);
}
@media (min-width: 768px) {
  .philosophy-card {
    border-bottom: none;
    border-right: 1px solid var(--outline-variant);
  }
  .philosophy-card:last-child { border-right: none; }
}

/* ── Flex Utilities ───────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2  { gap: 0.5rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }

/* ── Spacing ──────────────────────────────────────────── */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }
.mb-28 { margin-bottom: 7rem; }
.mb-32 { margin-bottom: 8rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-8  { padding-top: 2rem; }
.py-3  { padding-block: 0.75rem; }
.py-4  { padding-block: 1rem; }
.py-5  { padding-block: 1.25rem; }
.py-16 { padding-block: 4rem; }
.py-24 { padding-block: 6rem; }
.px-1 { padding-inline: 0.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }

/* ── Text Utilities ───────────────────────────────────── */
.text-center { text-align: center; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.text-xs   { font-size: 0.75rem; }
.font-serif   { font-family: 'Newsreader', Georgia, serif; }
.font-sans    { font-family: 'Inter', 'Noto Sans JP', sans-serif; }
.font-mono    { font-family: 'Space Grotesk', monospace; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-medium   { font-weight: 500; }
.leading-none  { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug  { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-body  { line-height: 1.9; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Color utilities */
.text-body   { color: var(--text-body); }
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-primary { color: var(--primary); }
.text-white  { color: #fff; }

/* ── Label Meta ───────────────────────────────────────── */
.label-meta {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Transition Snap ──────────────────────────────────── */
.transition-snap {
  transition-duration: 100ms;
  transition-timing-function: linear;
}

/* ── Dividers ─────────────────────────────────────────── */
.border-t { border-top: 1px solid var(--outline-variant); }
.border-b { border-bottom: 1px solid var(--outline-variant); }
.border-l { border-left: 1px solid var(--outline-variant); }
.divide-y > * + * { border-top: 1px solid var(--outline-variant); }
.divide-x > * + * { border-left: 1px solid var(--outline-variant); }

/* ── Sticky ───────────────────────────────────────────── */
.sticky-top28 {
  position: sticky;
  top: calc(var(--nav-h) + 0.5rem);
}

/* ── Misc ─────────────────────────────────────────────── */
.w-full   { width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.hidden { display: none; }
.block  { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.resize-none { resize: none; }
.appearance-none { appearance: none; -webkit-appearance: none; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.opacity-0   { opacity: 0; }
.opacity-40  { opacity: 0.4; }
.opacity-60  { opacity: 0.6; }
.w-fit { width: fit-content; }
.min-h-screen { min-height: 100vh; }

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
}

/* ── Image Placeholder ────────────────────────────────── */
.img-placeholder {
  background-color: var(--surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* WordPress アイキャッチ画像 */
.post-thumbnail {
  width: 100%;
  overflow: hidden;
}
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.aspect-16-9  { aspect-ratio: 16/9; }
.aspect-4-3   { aspect-ratio: 4/3; }
.aspect-3-4   { aspect-ratio: 3/4; }
.aspect-4-3   { aspect-ratio: 4/3; }
.aspect-16-7  { aspect-ratio: 16/7; }
.aspect-1-1   { aspect-ratio: 1/1; }
.aspect-5-3   { aspect-ratio: 5/3; }
.aspect-silver { aspect-ratio: 1.414 / 1; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: #fff;
  background-color: var(--primary-dark);
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 100ms linear;
}
.btn-primary:hover { background-color: var(--primary); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--primary-dark);
  background: transparent;
  border: 1px solid rgba(92, 4, 28, 0.3);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 100ms linear;
}
.btn-secondary:hover {
  background-color: rgba(92, 4, 28, 0.05);
  border-color: rgba(92, 4, 28, 0.6);
  color: var(--primary-dark);
}
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Article Card ─────────────────────────────────────── */
.article-card {
  cursor: pointer;
  background-color: var(--surface-lowest);
  transition: background-color 100ms linear;
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-card:hover { background-color: var(--surface-low); }
.article-card:hover h3 { color: var(--primary); }
.article-card .read-more { opacity: 0; transition: opacity 100ms linear; }
.article-card:hover .read-more { opacity: 1; }

.article-card h3 {
  padding-inline: 0.375rem;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.375;
  transition: color 100ms linear;
}
.article-card .card-excerpt {
  padding-inline: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* ── Category Chip ────────────────────────────────────── */
.category-chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--surface-high);
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color 100ms linear;
}
.category-chip:hover { background-color: var(--surface-highest); color: var(--text-muted); }
.category-chip.active { background-color: var(--primary); color: #fff; }
.category-chip.active:hover { background-color: var(--primary-dark); color: #fff; }

/* ── Code Block ───────────────────────────────────────── */
.code-block {
  padding: 1.5rem;
  overflow-x: auto;
  background-color: var(--code-bg);
  border-left: 4px solid var(--primary);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--code-text);
}

/* WordPress code/pre */
pre {
  background-color: var(--code-bg);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--code-text);
  margin-bottom: 1.5rem;
}
code {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8125rem;
}

/* ── Input Editorial ──────────────────────────────────── */
.input-editorial {
  width: 100%;
  background: transparent;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  outline: none;
  color: var(--text-body);
  border-radius: 0;
  transition: border-color 100ms linear;
}
.input-editorial:focus {
  border-bottom-width: 2px;
  border-bottom-color: var(--primary);
}
.input-editorial::placeholder { color: var(--text-subtle); }
.input-editorial.error { border-bottom-color: var(--primary) !important; }
select.input-editorial { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; }

/* ── Navigation ───────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
#site-header.scrolled {
  background-color: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 var(--outline-variant);
}

.site-nav {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  opacity: 1;
  transition: opacity 100ms linear;
}
.site-logo:hover { opacity: 0.8; }

.site-logo .logo-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-body);
  line-height: 1.2;
}
.site-logo .logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Desktop nav */
.nav-desktop {
  display: none;
}
@media (min-width: 768px) { .nav-desktop { display: flex; align-items: center; gap: 2rem; } }

.nav-desktop a {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 100ms linear;
}
.nav-desktop a:hover { color: var(--primary); }

/* Mobile toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-body);
  transition: color 100ms linear;
}
.nav-toggle:hover { color: var(--primary); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

/* Mobile menu */
#mobile-menu {
  display: none;
  background-color: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--outline-variant);
  padding: 1.5rem var(--gutter);
}
#mobile-menu.open { display: block; }
#mobile-menu ul { display: flex; flex-direction: column; gap: 1.25rem; }
#mobile-menu a {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  transition: color 100ms linear;
}
#mobile-menu a:hover { color: var(--primary); }

/* ── Content Push (fixed header) ──────────────────────── */
.content-wrap { padding-top: var(--nav-h); }

/* ── Hero Section ─────────────────────────────────────── */
.hero-section {
  background-color: var(--surface);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.hero-section .order-text { order: 2; }
.hero-section .order-image { order: 1; }
@media (min-width: 1024px) {
  .hero-section .order-text  { order: 1; }
  .hero-section .order-image { order: 2; }
}

.hero-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-body);
  margin-bottom: 2rem;
}

/* ── Page Hero ────────────────────────────────────────── */
.page-hero {
  background-color: var(--surface-lowest);
  padding-block: clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--outline-variant);
}
.page-hero .eyebrow {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.page-hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42rem;
}

/* ── Breadcrumb ───────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.breadcrumb a, .breadcrumb span {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--outline); }
.breadcrumb .current { color: var(--primary); }

/* ── Timeline ─────────────────────────────────────────── */
.timeline-list {
  position: relative;
  border-left: 1px solid var(--outline-variant);
  padding-left: 2rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: calc(-2rem - 0.25rem);
  top: 0.3rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  display: block;
}
.timeline-year {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}
.timeline-event {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar-section {
  background-color: var(--surface);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.profile-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.profile-portrait {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--surface-dim);
}
.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Category Nav ─────────────────────────────────────── */
.category-nav-bar {
  background-color: var(--surface-low);
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--outline-variant);
}
.category-nav-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Pagination ───────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--outline-variant);
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color 100ms linear;
}
.page-numbers:hover { background-color: var(--surface-high); color: var(--text-muted); }
.page-numbers.current {
  background-color: var(--primary);
  color: #fff;
}

/* ── Contact Sidebar ──────────────────────────────────── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.contact-info-block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.contact-info-block h3 svg {
  color: var(--primary);
}
.social-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--outline-variant);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 100ms linear;
}
.social-list li a:hover { color: var(--primary); }
.social-handle {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  transition: color 100ms linear;
}
.social-list li a:hover .social-handle { color: var(--primary); }

/* ── Author Bio Card ──────────────────────────────────── */
.author-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: var(--surface-low);
  margin-bottom: 3rem;
}
.author-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--surface-dim);
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Skills ───────────────────────────────────────────── */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-subtle);
  border: 1px solid var(--outline-variant);
  background-color: var(--surface);
}

/* ── Social Links ─────────────────────────────────────── */
.social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 100ms linear;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.social-links a:hover { color: var(--primary); }

/* ── Footer ───────────────────────────────────────────── */
#site-footer {
  background-color: var(--surface-highest);
  padding-block: clamp(4rem, 8vw, 5rem);
}
.footer-brand a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  opacity: 1;
  transition: opacity 100ms linear;
}
.footer-brand a:hover { opacity: 0.8; }
.footer-brand .logo-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.2;
}
.footer-brand .logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-top: 0.375rem;
}
.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.625;
  max-width: 18rem;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.footer-socials a {
  color: var(--text-muted);
  transition: color 100ms linear;
  text-decoration: none;
}
.footer-socials a:hover { color: var(--primary); }

.footer-nav h3, .footer-newsletter h3 {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 100ms linear;
}
.footer-nav a:hover { color: var(--primary); }

.footer-newsletter p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}
.newsletter-form { display: flex; gap: 0; }
.newsletter-form .input-editorial { font-size: 0.75rem; }
.newsletter-form .btn-primary { font-size: 0.75rem; padding: 0.5rem 1rem; flex-shrink: 0; }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline-variant);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-bottom span {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

/* ── WP Nav Menu Override ─────────────────────────────── */
.nav-desktop ul, .nav-desktop ul li { list-style: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 2rem; }

/* ── Article Single ───────────────────────────────────── */
.article-lede {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-family: 'Newsreader', Georgia, serif;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
}

/* ── Article Content (Editor standard) ────────────────── */
.article-content {
  line-height: 1.9;
  color: var(--text-body);
}
.article-content p {
  margin-bottom: 1.75rem;
}
.article-content h2 {
  font-family: 'Newsreader', serif;
  font-size: 2rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.article-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.article-content blockquote {
  margin-block: 2.5rem;
  padding-left: 2rem;
  border-left: 4px solid var(--primary);
}
.article-content blockquote p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--text-body);
  line-height: 1.4;
}

/* Sidebar sticky */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Accent border */
.accent-border-l { border-left: 4px solid var(--primary); padding-left: 1.25rem; }

/* CF7 移行メモボックス */
.dev-note {
  background-color: var(--surface-low);
  border-left: 2px solid var(--primary);
  padding: 1.25rem;
}
.dev-note .dev-note-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.dev-note p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Scroll Animation (Intersection Observer) ─────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 404 ──────────────────────────────────────────────── */
.error-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 6rem;
}

/* ── WordPress Core Overrides ─────────────────────────── */
.wp-block-image img { border-radius: 0; }

/* Caption styling */
.wp-caption {
  margin-bottom: 2rem;
  max-width: 100%;
}
.wp-caption img {
  display: block;
  width: 100%;
  height: auto;
}
.wp-caption .wp-caption-text {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

/* Premium Table Styling for Editor */
.article-content table,
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 2;
  margin: 3rem 0;
}
.article-content table tr,
.company-table tr {
  border-bottom: 1px solid var(--outline-variant);
}
.article-content table th,
.company-table th {
  padding: 2rem 1rem 2rem 0;
  text-align: left;
  vertical-align: top;
  width: 10rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.article-content table td,
.company-table td {
  padding: 2rem 0;
  vertical-align: top;
  color: var(--text-body);
}

/* ── Custom Components (AF Style) ─────────────────────── */
.af-mybutton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 90%;
  margin: 3rem auto;
  padding: 1.25rem 2rem;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(to bottom, var(--af-btn-bg-top, #14b4fc), var(--af-btn-bg, #03A9F4));
  border: 1px solid var(--af-btn-border, #039BE5);
  border-radius: 5px;
  box-shadow: 0 4px 0 var(--af-btn-shadow, #039BE5);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  font-weight: 700;
}
.af-mybutton:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--af-btn-shadow, #039BE5);
}
.af-mybutton:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--af-btn-shadow, #039BE5);
}
.af-mybutton__icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-shrink: 0;
}
.af-mybutton__icon svg {
  fill: currentColor;
}
.af-mybutton__text {
  font-size: 1rem;
}

/* ── CF7 Overrides ─────────────────────────────────────── */
/* Contact Form 7 が出力するクラスをデザインシステムに適合させる */
.wpcf7 form { width: 100%; }
.wpcf7-form-control-wrap { display: block; }

.wpcf7-text,
.wpcf7-email,
.wpcf7-textarea,
.wpcf7-select {
  width: 100%;
  background: transparent;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  outline: none;
  color: var(--text-body);
  transition: border-color 100ms linear;
  border-radius: 0;
}
.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-textarea:focus,
.wpcf7-select:focus {
  border-bottom-width: 2px;
  border-bottom-color: var(--primary);
}
.wpcf7-textarea { resize: none; line-height: 1.8; }

.wpcf7 label {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 0.5rem;
}

.wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.25rem;
  display: block;
}

.wpcf7 .ajax-loader { display: none; }

.wpcf7-response-output {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  border-left: 2px solid var(--primary);
  color: var(--text-body);
  background-color: var(--surface-low);
}
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng {
  border-left-color: var(--primary);
  color: var(--primary);
}
.wpcf7-response-output.wpcf7-mail-sent-ok {
  border-left-color: #2D6A4F;
  color: #2D6A4F;
}

.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background-color: var(--primary-dark);
  border: none;
  border-radius: 0;
  cursor: pointer;
  width: 100%;
  transition: background-color 100ms linear;
}
.wpcf7-submit:hover { background-color: var(--primary); }
.wpcf7-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.wpcf7-acceptance input[type="checkbox"] {
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
}
.wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.625;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

/* CF7 フォーム各フィールドの間隔 */
.wpcf7 .field-group { margin-bottom: 2rem; }

/* ── Company Table ────────────────────────────────────── */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 2;
  margin-top: 3rem;
}
.company-table tr {
  border-bottom: 1px solid var(--outline-variant);
}
.company-table tr:last-child {
  border-bottom: none;
}
.company-table th {
  padding: 2.5rem 1rem 2.5rem 0;
  text-align: left;
  vertical-align: top;
  width: 10rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.company-table td {
  padding: 2.5rem 0;
  vertical-align: top;
  color: var(--text-body);
}
.company-table a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.company-table img.alignleft {
  float: left;
  margin-right: 0.75rem;
  border-radius: 4px;
}
@media (max-width: 639px) {
  .company-table th, 
  .company-table td {
    display: block;
    width: 100%;
    padding: 1rem 0;
  }
  .company-table th {
    padding-bottom: 0.25rem;
  }
}

/* ── Responsive Helpers ───────────────────────────────── */
@media (max-width: 767px) {
  .hide-sp { display: none !important; }
}
@media (min-width: 768px) {
  .hide-pc { display: none !important; }
}
