/* ==========================================================================
   AIO Journal — style.css
   白基調・クリーンなエディトリアルデザイン。外部CDN依存なし・単一ファイル完結。

   タイポグラフィ方針:
     本文/UI  = 游ゴシック系(--font-sans)  … 依頼仕様どおり本文の基本書体
     見出し・引用等の要所のみ = 游明朝系(--font-serif) … 記者媒体としての格・可読性の抑揚
     メタ情報・カテゴリ表示・コード = 等幅(--font-mono) … 「引用・構造化」を視覚的に体現

   シグネチャ: 角カッコ([ ])モチーフ。カテゴリバッジ・pull quote(引用されやすい定義文)・
   ヒーローのタグラインで一貫使用。「AIに引用される」というメディアの核心コンセプトを
   タイポグラフィで表現する(装飾ではなく差別化軸4=メディア自体がAIOショーケードの可視化)。
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --bg-inverse: #12161d;
  --ink: #14181f;
  --ink-soft: #4c5561;
  --ink-faint: #8892a0;
  --rule: #e4e7ec;
  --rule-strong: #ccd2db;
  /* AGI Journalの配色。変数名はフォーク元(AIO Journal)のままだが、値はAGI Journalの
     ブランドカラーへ差し替え済み(正本=lib/config.py BRAND_*)。
       --brand-cyan   = インディゴ #4F46E5(主アクセント)
       --brand-orange = コーラル   #F2643D(副アクセント)
       --brand        = チャコールインディゴ #1E2230(基調) */
  --brand-cyan: #4F46E5;
  --brand-orange: #F2643D;
  --brand: #1E2230;
  --brand-strong: #121520;
  --focus-ring: #1b6de0;

  --cat-news: #b34a28;
  --cat-basics: #2f6b4f;
  --cat-technical: #1f5fa8;
  --cat-measurement: #6b4fa0;
  --cat-research: #14304f;
  --cat-case-study: #9c7a1f;
  --cat-global: #1b7a6e;
  --cat-strategy: #7a2e3d;

  /* 2026-07-28 鈴木さん指摘「フォントがおかしい・読みづらい」を受けて差し替え。
     旧: 游ゴシック優先＋見出しに游明朝。游ゴシックはMacで線が細く、
     明朝見出しは画面での可読性が落ちる。WEBMARKSの他サイト（AIO CAMP）と
     同じシステムフォント優先スタックへ統一した。 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  /* 変数名は履歴上 serif のままだが、値は本文と同じゴシック系。
     見出しの明朝は廃止（25箇所の個別指定を書き換えずに一括で効かせるため、
     変数の値だけを差し替えている）。 */
  --font-serif: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
                "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --content-max: 720px;
  --page-max: 1180px;
  --radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 640px) {
  body { font-size: 16.5px; }
}

:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-size: 0.9rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 960px) { .wrap { padding: 0 2.5rem; } }

/* ---------- Bracket motif(シグネチャ部品) ---------- */
.bracket-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent, var(--brand));
  white-space: nowrap;
}
.bracket-tag .bracket { opacity: 0.5; }
a.bracket-tag { transition: opacity 0.15s ease; }
a.bracket-tag:hover { opacity: 0.7; }

.dot { display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--accent, var(--brand)); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.brand {
  display: block; flex: none; line-height: 1.15; white-space: nowrap;
}
.brand-name {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.22rem; letter-spacing: 0.01em; color: var(--ink);
}

.desk-nav { display: none; }
/* 2026-07-25 ヘッダーナビ折返し崩れ修正: CJKテキストはflexアイテムの既定min-width:auto
   により、単語区切り(スペース)が無いため任意の文字位置で改行され得る
   (「基礎・入」「門」のような崩れの原因)。960px以上ではまず横スクロール容器として
   flex-shrinkを許容しない構造にし、各リンクをwhite-space:nowrap+flex:noneで
   「項目単位」に固定する(文字単位の折返しを構造的に禁止)。 */
@media (min-width: 960px) {
  .desk-nav {
    display: flex; align-items: center;
    gap: 1rem;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .desk-nav::-webkit-scrollbar { display: none; height: 0; }
  .desk-nav a {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
    padding: 0.4rem 0; border-bottom: 2px solid transparent;
    white-space: nowrap; flex: none;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .desk-nav a:hover, .desk-nav a.is-active { color: var(--ink); border-color: var(--accent, var(--brand)); }
}
/* 1280px以上は9カテゴリを一列で見せる。項目内の文字は折り返さない。 */
@media (min-width: 1280px) {
  .desk-nav {
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  flex: 0 0 40px; width: 40px; height: 40px; padding: 9px;
  cursor: pointer; border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
@media (min-width: 960px) { .nav-toggle-label { display: none; } }
.nav-toggle-label span {
  display: block; width: 100%; height: 2px; flex: none;
  background: var(--ink); border-radius: 1px;
}
@media (max-width: 959px) {
  .site-header .wrap { position: relative; padding-right: 4.75rem; }
  .nav-toggle-label {
    display: inline-flex !important; position: absolute; right: 1.25rem; top: 50%;
    transform: translateY(-50%); z-index: 2; background: var(--bg);
  }
}

.mobile-nav {
  /* 注意: .wrapクラスをここで併用しない。.site-header .wrap{display:flex}(詳細度0,2,0)が
     このルール(詳細度0,1,0)より強く勝ってしまい、非表示のはずのモバイルメニューが常時
     展開表示されてしまう不具合を過去に踏んだ(CSS詳細度の衝突)。paddingは独自に持つ。 */
  display: none; border-top: 1px solid var(--rule); background: var(--bg);
  padding: 0.5rem 1.25rem 1rem;
}
.mobile-nav a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
.mobile-nav a:last-child { border-bottom: none; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }
.nav-toggle-input:checked ~ .mobile-nav { display: block; }

/* ---------- Hero slider(トップのみ・2026-07-24全面リッチ化) ----------
   CSS scroll-snap + 軽量vanilla JS(assets/js/hero-slider.js)。外部ライブラリ不使用。
   背景はassets/img/hero/slide-N-bg.svgを参照する構造にし、Image2.0復旧後は同名ファイルを
   差し替えるだけで写真背景へ移行できる設計にしてある。 */
.hero-slider { position: relative; background: var(--bg-inverse); }
.hero-slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hero-slider-track::-webkit-scrollbar { display: none; height: 0; }
.hero-slide {
  flex: 0 0 100%; scroll-snap-align: start; min-height: 440px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--bg-inverse);
  display: flex; align-items: center;
}
@media (min-width: 720px) { .hero-slide { min-height: 520px; } }
.hero-slide-inner { padding: 3.5rem 1.25rem; max-width: 640px; margin: 0 auto; width: 100%; }
@media (min-width: 960px) { .hero-slide-inner { padding: 3.5rem 2.5rem; } }
.hero-wordmark {
  margin-bottom: 2rem;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700; letter-spacing: 0.03em; color: #fff;
}
.hero-slide .hero-tagline {
  font-family: var(--font-serif); font-weight: 700; color: #fff;
  font-size: clamp(1.7rem, 5.4vw, 2.7rem); line-height: 1.42; max-width: 16ch;
}
/* 2026-07-26: 鈴木さん指示でFVタグラインの装飾ブラケット([ ])をマークアップから削除した
   (lib/pages.py _hero_slider_html())ため、この専用スコープルールは対象が無くなり不要。
   カテゴリバッジ等の他の.bracket-tag .bracket(102-115行目)・.pillar h3 .bracket(646行目)は
   別要素・別デザイン意図で現役のため変更していない。 */
.hero-slide .hero-subcopy {
  margin-top: 1.35rem; max-width: 38ch; font-size: 1rem; line-height: 1.9;
  color: rgba(255,255,255,0.82); word-break: keep-all; overflow-wrap: anywhere;
}
.hero-slide .hero-meta {
  margin-top: 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.55); letter-spacing: 0.04em;
}
/* 注目記事スライドの2カラム化(デスクトップのみサムネイルを見せる) */
.hero-slide-inner--split { display: grid; gap: 2.5rem; align-items: center; }
.hero-feature-thumb { display: none; }
@media (min-width: 960px) {
  .hero-slide-inner--split { grid-template-columns: 1.15fr 1fr; max-width: 1080px; }
  .hero-feature-thumb {
    display: block; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 3 / 2;
    box-shadow: 0 28px 56px -26px rgba(0,0,0,0.65);
    transition: transform 0.2s ease;
  }
  .hero-feature-thumb:hover { transform: translateY(-3px); }
  .hero-feature-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
}

.hero-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; color: #A5B4FC; margin-bottom: 1.1rem;
}
.hero-feature-title {
  font-family: var(--font-serif); font-weight: 700; color: #fff;
  font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.5; max-width: 20ch;
}
.hero-feature-title a { color: #fff; }
.hero-feature-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-feature-lead { margin-top: 1.1rem; max-width: 50ch; font-size: 0.98rem; line-height: 1.85; color: rgba(255,255,255,0.82); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem;
  padding: 0.85rem 1.6rem; background: var(--brand-orange, #F2643D); color: #fff;
  font-weight: 700; font-size: 0.92rem; border-radius: 2px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-cta:hover { background: #D14A2B; transform: translateY(-1px); }
.hero-stats {
  margin-top: 1.75rem; display: inline-flex; font-family: var(--font-mono);
  font-size: 0.82rem; color: rgba(255,255,255,0.7); letter-spacing: 0.03em;
  border: 1px dashed rgba(255,255,255,0.3); padding: 0.5rem 0.9rem; border-radius: 2px;
}
.hero-dots {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35);
  border: none; padding: 0; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot:hover { background: rgba(255,255,255,0.6); }
.hero-dot.is-active { background: #fff; transform: scale(1.35); }
/* JS未実行時のフォールバック: スクロールスナップだけで手動スワイプ/横スクロールは機能する */
.hero-slider-track:focus-within { outline: none; }

/* ---------- Section shell ---------- */
.section { padding: 3.25rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section:nth-of-type(even) { background: var(--bg-subtle); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section-title { display: flex; align-items: baseline; gap: 0.7rem; }
.section-title h2 {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--ink);
}
.section-desc { color: var(--ink-soft); font-size: 0.92rem; max-width: 56ch; margin-top: 0.35rem; }
.section-more {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--accent, var(--brand));
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: 0.85rem;
  border: 1px solid var(--rule); border-top: 3px solid var(--accent, var(--brand));
  border-radius: var(--radius); padding: 1.5rem;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(20,24,31,0.04);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.18s ease;
}
.card:hover { box-shadow: 0 16px 36px -20px rgba(20,24,31,0.4); transform: translateY(-3px); }
.card-thumb {
  margin: -1.5rem -1.5rem 0.3rem; border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-subtle);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.card:hover .card-thumb img { transform: scale(1.035); }
.card-badges { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.card-provider { font-size: 0.72rem; color: var(--ink-faint); font-family: var(--font-mono); }
.card h3 { font-size: 1.05rem; line-height: 1.55; font-weight: 700; color: var(--ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a { position: static; }
.card { position: relative; }
.card-excerpt {
  font-size: 0.87rem; color: var(--ink-soft); line-height: 1.75; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 0.9rem; font-size: 0.74rem; color: var(--ink-faint);
  font-family: var(--font-mono); padding-top: 0.6rem; border-top: 1px solid var(--rule);
}
/* ---------- Desk list rows(トップのカテゴリ別セクション) ---------- */
.row-list { display: flex; flex-direction: column; }
.row-item {
  display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0.75rem;
  margin: 0 -0.75rem; border-bottom: 1px solid var(--rule); border-radius: 2px;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.row-item:first-child { }
.row-item:hover { background: var(--bg-subtle); }
.row-item .dot { margin-top: 0.55em; }
.row-item-body { flex: 1; min-width: 0; }
.row-item h3 { font-size: 0.98rem; font-weight: 700; line-height: 1.6; }
.row-item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-item-meta { margin-top: 0.3rem; font-size: 0.76rem; color: var(--ink-faint); font-family: var(--font-mono); display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Category hub header ---------- */
.category-band { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--rule); background: var(--bg-subtle); }
.category-band .eyebrow { color: var(--accent, var(--brand)); }
.category-band h1 { font-family: var(--font-serif); font-size: clamp(1.7rem, 4vw, 2.3rem); margin-top: 0.6rem; }
.category-band p { margin-top: 0.85rem; color: var(--ink-soft); max-width: 62ch; line-height: 1.9; }
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 700; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint);
  max-width: var(--content-max); margin: 0 auto; padding: 1.5rem 1.25rem 0;
}
.breadcrumb > * { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Article header ---------- */
.article-header { max-width: var(--content-max); margin: 0 auto; padding: 1.25rem 1.25rem 0; }
.article-title {
  font-family: var(--font-serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.55rem, 4.4vw, 2.15rem); line-height: 1.55; margin-top: 1rem;
  overflow-wrap: anywhere;
}
.article-lead { margin-top: 1.1rem; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.9; }
.article-meta {
  margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center;
  font-size: 0.8rem; color: var(--ink-soft);
}
.article-meta .meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta .meta-label { font-family: var(--font-mono); color: var(--ink-faint); font-size: 0.7rem; }

/* 記事の内容を言葉の反復ではなく、編集デスク別の世界観で伝えるイメージビジュアル。 */
.article-cover {
  max-width: var(--content-max); margin: 1.75rem auto 0;
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 2; background: var(--bg-subtle);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
/* 図解カバーは切り抜かない。端が欠けると図の意味が壊れるため全体を収める */
.article-cover.is-diagram { aspect-ratio: 16 / 9; background: #fff; }
.article-cover.is-diagram img { object-fit: contain; }
/* 一覧カードのサムネイルも図解なら同じ扱いにする */
.card-thumb.is-diagram { aspect-ratio: 16 / 9; background: #fff; }
.card-thumb.is-diagram img { object-fit: contain; }

/* ---------- 監修者カード（記事・目次直下） ---------- */
.supervisor-card {
  max-width: var(--content-max); margin: 1.25rem auto 0; padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule); border-left: 3px solid var(--brand); border-radius: 0;
  background: var(--bg-subtle); display: flex; gap: 1rem; align-items: flex-start;
}
.supervisor-card-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.supervisor-card-body { min-width: 0; }
.supervisor-card .eyebrow { color: var(--ink-faint); display: block; margin-bottom: 0.3rem; }
.supervisor-card-name { font-size: 0.98rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.supervisor-card-name span { display: block; font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); margin-top: 0.15rem; }
.supervisor-card-bio { margin-top: 0.5rem; font-size: 0.83rem; color: var(--ink-soft); line-height: 1.85; }
.supervisor-card-link { display: inline-block; margin-top: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--brand); }
.supervisor-card-link:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .supervisor-card { flex-direction: column; gap: 0.75rem; }
  .supervisor-card-photo { width: 56px; height: 56px; }
}

/* ---------- フッターのカテゴリ全件アコーディオン ---------- */
.footer-more { margin-top: 0.35rem; }
.footer-more > summary {
  cursor: pointer; font-size: 0.82rem; color: var(--brand); font-weight: 700;
  padding: 0.35rem 0; list-style: none;
}
.footer-more > summary::-webkit-details-marker { display: none; }
.footer-more > summary::before { content: "＋ "; }
.footer-more[open] > summary::before { content: "− "; }
.footer-more > summary:hover { text-decoration: underline; }
.footer-more-body { padding-top: 0.2rem; }

/* ---------- TOC ---------- */
.toc {
  max-width: var(--content-max); margin: 1.75rem auto 0; padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-subtle);
}
.toc summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "\2212"; font-family: var(--font-mono); }
.toc:not([open]) summary::after { content: "+"; }
.toc-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.toc-list a {
  display: flex; gap: 0.75rem; font-size: 0.9rem; color: var(--ink);
}
.toc-list a:hover { color: var(--brand); }
.toc-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); flex: none; }

/* ---------- 記事メディア資産(スライド/音声/動画の自動埋め込み・2026-07-25追加) ----------
   assets/media/<記事id小文字>/ にファイルが1本でもあれば目次直後に表示するカード。
   モバイル既定→min-width:640pxで拡張する、サイト全体のブレークポイント方針に合わせる。 */
.article-media {
  max-width: var(--content-max); margin: 1.75rem auto 0; padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-subtle);
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 640px) {
  .article-media { padding: 1.6rem 1.75rem 1.85rem; gap: 1.75rem; }
}
.article-media-head { display: flex; flex-direction: column; gap: 0.3rem; }
.article-media-head .eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 700;
  color: var(--brand); text-transform: uppercase;
}
.article-media-head h2 { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0; }
.article-media-note { font-size: 0.76rem; color: var(--ink-faint); margin: 0; line-height: 1.6; }
.article-media-item { display: flex; flex-direction: column; gap: 0.6rem; }
.article-media-label {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; font-weight: 700;
  color: var(--ink-soft); margin: 0;
}
.article-media-frame {
  width: 100%; height: 280px; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; background: #ffffff;
}
@media (min-width: 640px) {
  .article-media-frame { height: 480px; }
}
.article-media-frame object { width: 100%; height: 100%; border: 0; display: block; }
.article-media-frame-video { background: var(--bg-inverse); }
.article-media-video { width: 100%; height: 100%; display: block; object-fit: contain; background: var(--bg-inverse); }
.article-media-fallback { padding: 1.5rem; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.8; }
.article-media-fallback a { color: var(--brand); font-weight: 600; }
.article-media-audio { width: 100%; display: block; }
.article-media-download {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  color: var(--brand); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 0.5rem 0.9rem; background: var(--bg); transition: background 0.15s ease;
}
.article-media-download:hover { background: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Article body ---------- */
.article-body { max-width: var(--content-max); margin: 0 auto; padding: 2.25rem 1.25rem 1rem; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { font-size: 1rem; line-height: 1.95; color: var(--ink); margin: 1.35rem 0; }
.article-body strong { font-weight: 700; }
.article-body ul, .article-body ol { margin: 1.4rem 0; padding-left: 1.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 0.55rem 0; line-height: 1.85; }
.article-body li::marker { color: var(--ink-faint); }

h2.section-heading {
  display: flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--font-serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.28rem, 3vw, 1.55rem); margin: 3.25rem 0 1.25rem; scroll-margin-top: 84px;
}
.article-body h2.section-heading:first-of-type { margin-top: 0.5rem; }
.section-no { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--brand); opacity: 0.5; }
.article-body h3 { font-size: 1.08rem; font-weight: 700; margin: 1.75rem 0 0.75rem; scroll-margin-top: 84px; }

/* pull quote(引用されやすい定義文) */
blockquote.pullquote {
  position: relative; margin: 3rem 0; padding: 0.4rem 2.6rem;
}
.pullquote-label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.09em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 0.7rem;
}
.pullquote p {
  font-family: var(--font-serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.85; margin: 0;
}
.pullquote::before, .pullquote::after {
  position: absolute; font-family: var(--font-serif); font-size: 2.6rem; color: var(--brand); opacity: 0.24; line-height: 1;
}
.pullquote::before { content: "\FF3B"; left: -0.15rem; top: 1.5rem; }
.pullquote::after { content: "\FF3D"; right: -0.15rem; top: 1.5rem; }

/* 図解プレースホルダ */
figure.diagram-placeholder {
  position: relative; margin: 2.75rem 0; padding: 2.75rem 1.5rem;
  border: 1.5px dashed var(--rule-strong); border-radius: var(--radius);
  background: var(--bg-subtle); text-align: center;
}
figure.diagram-placeholder .corner { position: absolute; width: 14px; height: 14px; }
.corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--ink-faint); border-left: 2px solid var(--ink-faint); }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--ink-faint); border-right: 2px solid var(--ink-faint); }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--ink-faint); border-left: 2px solid var(--ink-faint); }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--ink-faint); border-right: 2px solid var(--ink-faint); }
.diagram-label {
  display: block; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em;
  color: var(--ink-soft); margin-bottom: 0.75rem;
}
figure.diagram-placeholder figcaption {
  font-family: var(--font-serif); font-style: italic; color: var(--ink-soft);
  font-size: 0.95rem; max-width: 480px; margin: 0 auto; line-height: 1.8;
}

/* 図解SVG埋め込み(2026-07-24 TASK-164で追加。diagram-placeholderの後継=SVGが
   用意された図解はこちらでレンダリングする。破線枠・📊ラベルは使わない=もう
   「制作中」ではなく完成した図解であることを見た目でも示す) */
figure.diagram-embed { margin: 2.75rem 0; }
figure.diagram-embed svg {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: #ffffff;
}
figure.diagram-embed figcaption {
  margin-top: 0.85rem; font-family: var(--font-serif); font-style: italic;
  color: var(--ink-soft); font-size: 0.92rem; text-align: center; line-height: 1.8;
}

/* 表 */
.table-scroll { overflow-x: auto; margin: 2.25rem 0; border: 1px solid var(--rule); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; min-width: 480px; font-size: 0.9rem; }
.table-scroll th, .table-scroll td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; line-height: 1.65; }
.table-scroll thead th { background: var(--bg-subtle); font-weight: 700; white-space: nowrap; }
.table-scroll tbody tr:last-child td { border-bottom: none; }

/* チェックリスト */
.checklist { padding-left: 0; margin: 1.5rem 0; }
.checklist-item { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.4rem 0; }
.check-box { flex: none; width: 1.05em; height: 1.05em; margin-top: 0.28em; border: 1.5px solid var(--rule-strong); border-radius: 3px; }
.checklist-item.is-checked .check-box { background: var(--brand); border-color: var(--brand); }

/* コード */
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-subtle); padding: 0.15em 0.4em; border-radius: 3px; }
/* 2026-07-26改修(鈴木さん指示: プロンプト掲載箇所には必ずコピーボタン): 従来はpre自体が
   "code-block"クラスを持っていたが、コピーボタン(.copy-btn)をpreの兄弟要素として絶対配置し
   pre内のoverflow-x横スクロールに追随させず常に右上に固定表示するため、外枠を
   <div class="code-block">に変更した(lib/markdown_engine.py render_blocks())。
   ダーク背景・文字色など見た目はpre.code-blockのものをそのままdiv.code-blockへ移設。 */
.code-block {
  position: relative; background: var(--brand-strong); color: #e7ebf2; border-radius: 6px;
  margin: 2.25rem 0;
}
.code-block pre {
  margin: 0; padding: 1.35rem 1.5rem; padding-top: 3rem;
  overflow-x: auto; font-size: 0.84rem; line-height: 1.75; -webkit-overflow-scrolling: touch;
}
.code-block pre code { background: none; padding: 0; color: inherit; }
.code-block .copy-btn {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.85rem; font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700;
  color: #e7ebf2; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px; white-space: nowrap; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.code-block .copy-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.45); }
.code-block .copy-btn:focus-visible { outline: 2.5px solid var(--focus-ring); outline-offset: 2px; }
.code-block .copy-btn.is-copied {
  background: var(--brand-cyan); border-color: var(--brand-cyan); color: #121520;
}
@media (max-width: 480px) {
  .code-block pre { padding-top: 3.4rem; }
  .code-block .copy-btn { top: 0.6rem; right: 0.6rem; padding: 0.35rem 0.65rem; font-size: 0.68rem; }
}

/* ※要確認 インライン注記 */
.note-flag { border-bottom: 1px dotted #a9762a; color: #7c500f; background: #fbf1de; padding: 0.03em 0.32em; border-radius: 2px; font-size: 0.95em; white-space: nowrap; }

/* FAQ アコーディオン(details/summary・JSなし) */
.faq-list { margin-top: 0.5rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative; padding: 1.15rem 2.1rem 1.15rem 0;
  font-weight: 700; color: var(--ink); line-height: 1.6; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.15rem; top: 1.0rem;
  font-family: var(--font-mono); font-size: 1.1rem; color: var(--brand);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0.25rem 1.4rem; color: var(--ink-soft); }
.faq-answer p { margin: 0.5rem 0; font-size: 0.96rem; line-height: 1.85; }

/* 結論サマリー ボックス化(2026-07-25 読者体験監査 構造改善①)
   markdown_engine.render_blocks()が「結論サマリー」h2+直後の本文段落群を
   .summary-boxでラップする。既存の.course-cta(背景--bg-subtle・左ボーダー--brand)と
   同じ意匠言語で統一し、白基調エディトリアルと調和させる(過剰装飾はしない)。 */
.summary-box {
  max-width: var(--content-max); margin: 2.75rem auto; padding: 1.75rem 2rem;
  border: 1px solid var(--rule); border-left: 4px solid var(--brand);
  background: var(--bg-subtle); border-radius: var(--radius);
}
.summary-box h2.section-heading { margin-top: 0 !important; margin-bottom: 1rem; }
.summary-box p { margin: 0.9rem 0; }
.summary-box p:first-of-type { margin-top: 0; }
.summary-box > :last-child { margin-bottom: 0; }

/* 講座導線CTA */
.course-cta {
  max-width: var(--content-max); margin: 3.5rem auto 0; padding: 1.75rem 2rem;
  border: 1px solid var(--rule); border-left: 4px solid var(--brand);
  background: var(--bg-subtle); border-radius: var(--radius);
}
.course-cta .eyebrow { color: var(--ink-faint); }
.course-cta p { margin-top: 0.65rem; font-size: 0.95rem; line-height: 1.85; color: var(--ink); }
.course-cta .course-link-pending {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.85rem;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint);
  border: 1px dashed var(--rule-strong); padding: 0.4rem 0.75rem; border-radius: 2px;
}
/* 講座導線CTA 実リンクbox(2026-07-24 TASK-167 WP-J4: course_link実リンク化) */
.course-cta-link-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem;
  margin-top: 1.1rem;
}
.course-cta-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.35rem; background: var(--brand-orange, #F2643D); color: #fff;
  font-weight: 700; font-size: 0.88rem; border-radius: 2px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.course-cta-btn:hover { background: #D14A2B; transform: translateY(-1px); }
.course-cta-btn-secondary {
  font-size: 0.82rem; font-weight: 700; color: var(--brand);
}
.course-cta-btn-secondary:hover { text-decoration: underline; text-underline-offset: 3px; }
.course-cta-preview-note {
  flex-basis: 100%; margin-top: 0 !important; font-size: 0.76rem !important;
  color: var(--ink-faint) !important; font-family: var(--font-mono);
}

/* トップ「このメディアについて」バンド(E-E-A-T 4本柱+監修者。2026-07-24ウルトラコード改修) */
.home-about { background: var(--bg-inverse); color: #fff; padding: 4rem 0; }
.home-about .eyebrow { color: var(--brand-cyan); }
.home-about-grid { display: grid; gap: 2.75rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .home-about-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.home-about h2 { font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.5; margin-top: 0.5rem; }
.home-about-lead { margin-top: 0.9rem; font-size: 0.92rem; line-height: 1.9; color: rgba(255,255,255,0.78); }
.home-about-lead a { color: var(--brand-cyan); text-decoration: underline; text-underline-offset: 3px; }
.pillar-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
.pillar { border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.pillar h3 { font-size: 0.95rem; font-weight: 700; }
.pillar h3 .bracket { color: var(--brand-cyan); font-weight: 400; margin: 0 0.15em; }
.pillar p { margin-top: 0.5rem; font-size: 0.82rem; line-height: 1.8; color: rgba(255,255,255,0.72); }
.home-about-supervisor {
  border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; text-align: center; background: rgba(255,255,255,0.04);
}
.home-about-supervisor img {
  /* 2026-07-25 監修者写真位置ずれ修正: 全体リセット(img,svg{display:block})によりimgが
     ブロック要素化されているため、親.home-about-supervisorのtext-align:centerは効かず
     (text-alignはインライン内容にのみ作用)、写真が左端に寄っていた。margin:0 autoで
     ブロック要素として明示的に中央寄せする。 */
  width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg-inverse), 0 0 0 4px rgba(255,255,255,0.35);
}
.home-about-supervisor .credit-eyebrow { margin-top: 1rem; color: rgba(255,255,255,0.55); }
.home-about-supervisor h3 { font-size: 1.1rem; font-weight: 700; }
.home-about-supervisor p { margin-top: 0.3rem; font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.home-about-link { display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 700; color: var(--brand-cyan); }
.home-about-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 監修者・編集部リッチカード(2026-07-24追加。旧.author-blockを刷新) */
.credit-cards {
  max-width: var(--content-max); margin: 3rem auto 0; padding: 2rem 1.25rem 0;
  border-top: 1px solid var(--rule); display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .credit-cards { grid-template-columns: 1fr 1fr; } }
.credit-card {
  display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-subtle);
}
.credit-avatar-photo {
  flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--rule);
}
.credit-avatar-wordmark {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em;
}
.credit-eyebrow {
  display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 0.35rem;
}
.credit-card h3 { font-size: 1.02rem; font-weight: 700; }
.credit-title { margin-top: 0.15rem; font-size: 0.82rem; color: var(--ink-soft); }
.credit-bio { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.8; }
.credit-link { display: inline-block; margin-top: 0.75rem; font-size: 0.82rem; font-weight: 700; color: var(--brand); }
.credit-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 記事ページ2カラムレイアウト+サイドバー(2026-07-24追加) ----------
   モバイル(既定): display:blockでDOM順どおり(本文→サイドバー)にスタックする。
   デスクトップ(1180px〜): グリッドで本文の右にサイドバーを配置する。 */
.article-layout-grid { display: block; }
@media (min-width: 1180px) {
  .article-layout-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem;
    align-items: start; max-width: 1180px; margin: 0 auto; padding: 0 2.5rem;
  }
  .article-main-col { min-width: 0; }
}
.article-sidebar { margin: 3rem 1.25rem 0; }
@media (min-width: 1180px) {
  .article-sidebar { margin: 6.5rem 0 0; position: sticky; top: 24px; }
}
.sidebar-banner {
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 1.5rem; background: var(--bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sidebar-banner:last-child { margin-bottom: 0; }
.sidebar-banner:hover { box-shadow: 0 12px 28px -18px rgba(20,24,31,0.35); transform: translateY(-2px); }
.sidebar-banner-art {
  aspect-ratio: 3 / 2; background: var(--bg-inverse); display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.sidebar-banner-art svg { width: 56%; height: 56%; opacity: 0.9; }
.sidebar-banner-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-banner-body { padding: 1.1rem 1.25rem 1.35rem; }
.sidebar-banner .eyebrow { color: var(--ink-faint); display: block; margin-bottom: 0.35rem; }
.sidebar-banner h3 { font-size: 0.95rem; font-weight: 700; line-height: 1.5; }
.sidebar-banner p { margin-top: 0.4rem; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.7; }
.sidebar-banner-cta {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.8rem;
  font-size: 0.8rem; font-weight: 700; color: var(--brand);
}
.sidebar-banner-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.sidebar-banner.is-pending .sidebar-banner-cta { color: var(--ink-faint); }
.sidebar-banner-pending-flag {
  display: inline-block; margin-left: 0.4rem; font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--ink-faint); border: 1px dashed var(--rule-strong); padding: 0.05em 0.4em;
  border-radius: 2px; vertical-align: middle;
}

/* 本文中の別記事参照(『タイトル』の自動内部リンク) */
.article-body a.internal-ref { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(15,44,78,0.3); text-underline-offset: 3px; }
.article-body a.internal-ref:hover { text-decoration-color: currentColor; }

/* 海外AIO情報シリーズ・ミニナビ(2026-07-25 読者体験監査 構造改善②)
   category=global-*の記事限定・related-blockの直前に表示。ハブ+6地域総覧への
   小さなチップリスト。現在記事は.is-currentで非リンクのラベル表示にする。 */
.global-series-nav { max-width: var(--content-max); margin: 2.5rem auto 0; padding: 1.5rem 1.25rem 0; }
.global-series-nav-label {
  display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 0.85rem;
}
.global-series-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.global-series-chip {
  display: inline-flex; align-items: center; font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600; line-height: 1;
  padding: 0.5rem 0.9rem; border: 1px solid var(--rule-strong); border-radius: 999px;
  color: var(--ink-soft); transition: border-color 0.15s ease, color 0.15s ease;
}
a.global-series-chip:hover { border-color: var(--cat-global); color: var(--cat-global); }
.global-series-chip.is-current {
  background: var(--cat-global); border-color: var(--cat-global); color: #fff; font-weight: 700;
}

/* 関連記事(記事末尾。frontmatter related_articlesから生成) */
.related-block { max-width: var(--content-max); margin: 3rem auto 0; padding: 2rem 1.25rem 0; border-top: 1px solid var(--rule); }
.related-block .section-head { margin-bottom: 0.5rem; }
.related-block h2 { font-size: 1.15rem; }

/* 一次情報源リスト */
.sources-block { max-width: var(--content-max); margin: 2.5rem auto 0; padding: 0 1.25rem; }
.sources-block h2 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 0.85rem; }
.sources-block ol { padding-left: 1.25rem; list-style: decimal; }
.sources-block li { font-size: 0.85rem; margin: 0.4rem 0; word-break: break-all; }
.sources-block a { color: var(--brand); }
.sources-block a:hover { text-decoration: underline; }

/* ---------- 固定ページ(運営者情報・編集ポリシー) ---------- */
.static-page-body { max-width: var(--content-max); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.static-page-body h2 { font-family: var(--font-serif); font-size: 1.35rem; margin: 2.75rem 0 1rem; }
.static-page-body h2:first-child { margin-top: 0; }
.static-page-body p { margin: 1.1rem 0; line-height: 1.95; color: var(--ink); }
.static-page-body ul { margin: 1.1rem 0; padding-left: 1.4rem; list-style: disc; }
.static-page-body li { margin: 0.5rem 0; line-height: 1.85; }
.info-table { width: 100%; margin: 1.5rem 0; border-top: 1px solid var(--rule); }
.info-table div { display: flex; gap: 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.info-table dt { flex: none; width: 9em; font-weight: 700; font-size: 0.88rem; color: var(--ink-soft); }
.info-table dd { font-size: 0.92rem; line-height: 1.8; }

/* ---------- Footer ---------- */
/* 2026-07-26改修(鈴木さん指示): フッター一帯(キャンプ紹介帯/無料診断帯/フッター本体)を
   暗色(--bg-inverse)からライト基調へ変更。ヒーローFV(.hero-slide)とページ中程の
   .diagnosis-band(トップ限定の暗色CTA)は対象外・変更していない。 */
.site-footer { background: #f5f6f8; color: var(--ink-soft); margin-top: 4rem; border-top: 1px solid var(--rule); }
/* 2026-07-25: トップページはabout帯(.home-about)を最下部=フッター直前へ移動したため、
   暗色の.home-aboutブロックの直後に既定のmargin-top:4remの白い隙間を挟んで
   フッターが続いてしまう(.home-aboutは<main>の子・.site-footerは<main>の兄弟のため
   隣接セレクタでは届かず、body.is-home限定で直接指定する)。
   2026-07-26追記: フッターがライト基調(#f5f6f8)になった現在も、.home-about(暗色)に
   隙間なく隣接させ、境目は.site-footer基底のborder-top(var(--rule)の細いhairline)
   だけで示す方針は変わらない(暗色→ライトの色差そのものが強い区切りになるため、
   is-home専用の追加border色指定は不要=base側のborder-topがそのまま機能する)。 */
body.is-home .site-footer {
  margin-top: 0;
}
/* 2026-07-26修正: 子孫セレクタ(スペース)のままだと、.footer-top-inner/.footer-diagnosis-inner
   に併用した"wrap"クラス(このdivも.site-footerの子孫)にまで詳細度(0,2,0)で勝ってしまい、
   これらの帯専用の縦paddingを意図せず上書きしてしまう。子コンビネータ(>)にして
   footer-grid本体を包む直接の子.wrapだけに絞る(詳細度は変えず対象範囲だけを絞る)。 */
.site-footer > .wrap { padding: 3.5rem 1.25rem 2.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-serif); color: var(--brand); font-size: 1.1rem; font-weight: 700; }
.footer-tagline { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.8; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: #5b6472; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--ink); padding: 0.35rem 0; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); font-size: 0.75rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- 404 ---------- */
.error-page { max-width: 560px; margin: 0 auto; padding: 6rem 1.25rem; text-align: center; }
.error-page .bracket-tag { justify-content: center; margin-bottom: 1rem; }
.error-page h1 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 1rem; }
.error-page p { color: var(--ink-soft); line-height: 1.9; }
.error-page a { display: inline-block; margin-top: 1.75rem; font-weight: 700; color: var(--brand); border-bottom: 2px solid var(--brand); padding-bottom: 0.15rem; }

/* ---------- 講座CTA帯(トップページ・カテゴリページ共通。2026-07-25追加) ----------
   config.SIDEBAR_BANNERS(id="aio-camp")を表示する横幅いっぱいの控えめな帯。
   既存の.course-cta-btn(ブランドオレンジ地・白文字)の意匠を踏襲しつつ、広告色を
   出しすぎないよう背景は--bg-subtleに留める。左=バナー画像サムネイル/中=タイトル+
   本文/右=CTAボタンの3カラム(狭幅では縦積み)。 */
.ops-support-band { background: var(--bg-subtle); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ops-support-band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; padding: 1.75rem 0; }
.ops-support-band-art {
  flex: 0 0 auto; width: 84px; aspect-ratio: 3 / 2; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-inverse);
}
.ops-support-band-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ops-support-band-body { flex: 1 1 320px; min-width: 0; }
.ops-support-band-body .eyebrow { color: var(--ink-faint); display: block; margin-bottom: 0.3rem; }
.ops-support-band-body h2 { font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
.ops-support-band-body p { margin-top: 0.35rem; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.75; max-width: 62ch; }
.ops-support-band-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.35rem; background: var(--brand-orange, #F2643D); color: #fff;
  font-weight: 700; font-size: 0.85rem; border-radius: 2px; white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ops-support-band-btn:hover { background: #D14A2B; transform: translateY(-1px); }
@media (max-width: 640px) {
  .ops-support-band-inner { flex-direction: column; align-items: flex-start; }
  .ops-support-band-art { width: 100%; max-width: 220px; }
  .ops-support-band-btn { width: 100%; justify-content: center; }
}

/* ---------- 無料AIO診断フォーム(/free-diagnosis/。2026-07-25新設) ----------
   既存デザイントークン(--brand/--rule/--radius/--focus-ring/--font-*)にのみ依拠し、
   新しい色は追加しない。
   2026-07-26追記: 任意項目グループ(.form-optional-group)は当初FAQと同じdetails/summaryの
   折りたたみJSゼロ実装だったが、鈴木さん指示で常時展開のfieldset/legendへ変更した
   (初期状態から開いて露出させ、記入を促す意図のため)。 */
.diagnosis-page-body { max-width: var(--content-max); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.diagnosis-page-body h2 { font-family: var(--font-serif); font-size: 1.3rem; margin: 0 0 1.25rem; }
.diagnosis-report-points { margin-bottom: 3rem; }
.report-points-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .report-points-grid { grid-template-columns: 1fr 1fr; } }
.report-point-card {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.4rem;
  background: var(--bg-subtle);
}
.report-point-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--brand); margin-bottom: 0.5rem; }
.report-point-card p { font-size: 0.86rem; line-height: 1.8; color: var(--ink-soft); }

.diagnosis-form-section { border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.diagnosis-form { display: flex; flex-direction: column; gap: 1.4rem; }
.form-required-group { display: flex; flex-direction: column; gap: 1.4rem; }
.form-field label,
.form-checkbox-fieldset legend {
  display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.4rem;
}
.form-required-badge {
  display: inline-block; margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem;
  font-weight: 700; color: #fff; background: var(--brand-orange); border-radius: 2px;
  padding: 0.1rem 0.4rem; vertical-align: middle;
}
.form-field-help { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 0.5rem; line-height: 1.7; }
.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%; font: inherit; font-size: 0.94rem; color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 0.7rem 0.85rem; background: var(--bg);
}
.form-field textarea { resize: vertical; line-height: 1.7; }
.form-field input:focus-visible,
.form-field textarea:focus-visible { outline: 2.5px solid var(--focus-ring); outline-offset: 1px; }

.form-optional-group {
  display: block; min-width: 0; margin: 0;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-subtle);
  padding: 1.15rem 1.1rem 1.3rem;
}
.form-optional-group legend {
  display: block; width: 100%; float: none; padding: 0; margin: 0 0 0.6rem;
  font-weight: 700; font-size: 0.92rem; color: var(--brand); line-height: 1.6;
}
.form-optional-badge {
  display: inline-block; margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem;
  font-weight: 700; color: var(--ink-soft); background: var(--rule); border-radius: 2px;
  padding: 0.1rem 0.4rem; vertical-align: middle;
}
.form-optional-note { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.75; margin: 0 0 1.2rem; }
.form-optional-fields { display: flex; flex-direction: column; gap: 1.25rem; padding: 0; }

.form-checkbox-fieldset { border: none; padding: 0; margin: 0; }
.form-checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
.form-checkbox-item {
  display: flex; align-items: baseline; gap: 0.55rem; font-weight: 400 !important;
  font-size: 0.9rem; color: var(--ink); cursor: pointer;
}
.form-checkbox-item input[type="checkbox"] { flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }

/* ハニーポット(bot対策)。表示上は完全に消すが、display:noneだと一部botに無視されるため
   画面外配置+overflow:hiddenで隠す(functions/api/diagnosis.jsのwebsiteフィールドと対)。 */
.form-honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.form-privacy-note { font-size: 0.78rem; color: var(--ink-faint); line-height: 1.8; }
.form-submit-btn { align-self: flex-start; font-size: 0.95rem; padding: 0.85rem 2.2rem; border: none; }
.form-status {
  font-size: 0.88rem; font-weight: 700; padding: 0.75rem 1rem; border-radius: var(--radius);
}
.form-status.is-success { color: #1b5e3f; background: #e7f4ee; }
.form-status.is-error { color: #8a2c1e; background: #fbeae6; }
.form-fallback-note { font-size: 0.8rem; color: var(--ink-faint); }
.form-fallback-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .form-submit-btn { align-self: stretch; text-align: center; justify-content: center; }
}

/* ---------- 全ページ共通ヘッダー直下アナウンス帯(2026-07-25追加) ----------
   ヘッダー(白背景)の直下に置く細い帯。ブランドネイビー地+オレンジのラベルバッジ+
   シアンの矢印で、既存のブランドカラー3色をそのまま流用する(新規の色を増やさない)。 */
.site-announce { display: block; background: var(--brand); transition: background 0.15s ease; }
.site-announce:hover { background: #1f2c4c; }
.site-announce-inner {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  padding: 0.55rem 1.25rem; flex-wrap: wrap; text-align: center;
}
.site-announce-badge {
  flex: none; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--brand-orange); border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px; padding: 0.15em 0.5em; white-space: nowrap;
}
.site-announce-text { font-size: 0.8rem; font-weight: 600; color: #fff; }
.site-announce-arrow { color: var(--brand-cyan); margin: 0 0.1em; }

/* ---------- トップページFV直下: AI検索最適化講座紹介セクション(2026-07-25追加) ----------
   .ops-support-bandと意匠言語を揃えつつ(アート+本文+ボタンの横並び)、FV直下の単独セクション
   として少しゆとりを持たせる。背景は白基調エディトリアルを崩さないよう--bg-subtleに留める。 */
.camp-intro-band { background: var(--bg-subtle); border-bottom: 1px solid var(--rule); }
.camp-intro-band-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem;
  padding: 2.25rem 1.25rem;
}
.camp-intro-band-art {
  flex: 0 0 auto; width: 128px; aspect-ratio: 3 / 2; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-inverse);
}
.camp-intro-band-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.camp-intro-band-body { flex: 1 1 360px; min-width: 0; }
.camp-intro-band-body .eyebrow { color: var(--accent, var(--brand)); display: block; margin-bottom: 0.35rem; }
.camp-intro-band-body h2 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.5; }
.camp-intro-band-body p { margin-top: 0.5rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.8; max-width: 66ch; }
.camp-intro-band-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem;
  padding: 0.75rem 1.5rem; background: var(--brand-orange, #F2643D); color: #fff;
  font-weight: 700; font-size: 0.86rem; border-radius: 2px; white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.camp-intro-band-btn:hover { background: #D14A2B; transform: translateY(-1px); }
@media (max-width: 640px) {
  .camp-intro-band-art { width: 100%; max-width: 220px; }
}
@media (min-width: 960px) {
  .camp-intro-band-inner { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ---------- 無料診断CTA(2026-07-25追加。記事末尾/トップ/フッター共通の最優先CTA) ----------
   ボタン(.diagnosis-cta-btn)は3箇所共通の1クラスにし、文言のズレを構造でも防ぐ。
   variant別の外枠(.diagnosis-cta=記事末尾/.diagnosis-band=トップ/.footer-diagnosis=フッター)
   で背景・余白・見出しサイズだけを変え、無料診断が全CTAの中で最も視覚優先度が高くなるよう
   .diagnosis-bandは--bg-inverse(トップの.home-about/heroと同じ暗色)で強い対比を作る。 */
.diagnosis-cta-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.85rem 1.7rem; background: var(--brand-orange, #F2643D); color: #fff;
  font-weight: 700; font-size: 0.92rem; border-radius: 2px; white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.diagnosis-cta-btn:hover { background: #D14A2B; transform: translateY(-1px); }

/* 記事末尾variant: 旧.course-ctaと同じ配置・箱幅(article-bodyの直後に続く主CTA)。
   左ボーダーをオレンジにして「これが主CTA」という視覚的な格上げを示す。 */
.diagnosis-cta {
  max-width: var(--content-max); margin: 3rem auto 0; padding: 2rem 2.1rem;
  border: 1px solid var(--rule); border-left: 4px solid var(--brand-orange);
  background: var(--bg-subtle); border-radius: var(--radius);
}
.diagnosis-cta-inner { }
.diagnosis-cta .eyebrow { color: var(--brand-orange); }
.diagnosis-cta h2 {
  font-family: var(--font-serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.7; margin-top: 0.6rem;
}
.diagnosis-cta .diagnosis-cta-btn { margin-top: 1.25rem; }

/* トップページvariant: hero/.home-aboutと同じ暗色帯で最も強い視覚優先度を持たせる。 */
.diagnosis-band { background: var(--bg-inverse); padding: 3.5rem 0; }
.diagnosis-band-inner { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.diagnosis-band .eyebrow { color: var(--brand-orange); }
.diagnosis-band h2 {
  font-family: var(--font-serif); font-weight: 700; color: #fff;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem); line-height: 1.6; margin-top: 0.7rem;
}
.diagnosis-band .diagnosis-cta-btn { margin-top: 1.5rem; padding: 0.95rem 2.1rem; font-size: 0.96rem; }

/* フッターvariant(2026-07-26ライト化): フッター本体と同じライト背景上で視認できるよう、
   見出し・本文ともにダーク系トーンに変更。左=文言/右=ボタンの横並び(狭幅では縦積み)。
   -innerには"wrap"クラスを併用する(lib/pages.py _diagnosis_cta_html())ため、
   ここではpadding-top/bottomの縦方向だけを指定し、横方向は.wrap側のmax-width/paddingに
   委ねる(shorthand paddingで指定すると同じ詳細度の.wrapを完全に上書きしてしまい、
   帯が画面全幅に広がって見出し左端0px・ボタン右端張り付きになるバグの原因だった)。 */
.footer-diagnosis { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.footer-diagnosis-inner { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.footer-diagnosis-body {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.75rem;
}
.footer-diagnosis .eyebrow { color: var(--brand-orange); flex-basis: 100%; }
.footer-diagnosis h2 {
  flex: 1 1 360px; min-width: 0; font-family: var(--font-serif); font-weight: 700; color: var(--ink);
  font-size: 1rem; line-height: 1.7; margin: 0;
}
.footer-diagnosis .diagnosis-cta-btn { flex: none; }

/* ---------- フッター上部: AIOキャンプ訴求バナー(ローテーション。2026-07-25追加/
   2026-07-26ライト化) ----------
   既存のサイドバナー画像資産(assets/img/banners/)を2枚、CSSアニメーションのみで
   フェード切替する(JS不使用)。prefers-reduced-motionはstyle.css冒頭の全体ルールで
   既にアニメーション無効化される。 */
.site-footer .footer-top { border-bottom: 1px solid var(--rule); }
.footer-top-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem;
  /* 2026-07-26修正: 旧`padding: 2.5rem 0`(shorthand)が親".wrap"の左右padding
     (0 1.25rem / min-width:960pxで0 2.5rem)を同詳細度の後勝ちで完全に上書きし、
     本の画像(.footer-camp-rotator)が横paddingゼロでビューポート左端に張り付いて
     見切れる原因だった。縦方向だけをpadding-top/bottomで指定し、横方向は.wrapに委ねる。 */
  padding-top: 2.5rem; padding-bottom: 2.5rem;
}
.footer-camp-rotator {
  flex: 0 0 auto; position: relative; width: 180px; aspect-ratio: 3 / 2;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-subtle);
  display: block;
}
.footer-camp-rotator img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: footerCampFade 12s ease-in-out infinite;
}
.footer-camp-rotator img:nth-child(1) { animation-delay: 0s; }
.footer-camp-rotator img:nth-child(2) { animation-delay: -6s; }
@keyframes footerCampFade {
  0%, 4%   { opacity: 0; }
  8%, 42%  { opacity: 1; }
  46%, 100% { opacity: 0; }
}
.footer-camp-body { flex: 1 1 360px; min-width: 0; }
.footer-camp-body .eyebrow { color: var(--brand-orange); display: block; margin-bottom: 0.35rem; }
.footer-camp-body h2 { font-family: var(--font-serif); color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.footer-camp-body p { margin-top: 0.45rem; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.8; max-width: 62ch; }
.footer-camp-body .ops-support-band-btn { margin-top: 1rem; }
@media (max-width: 640px) {
  .footer-camp-rotator { width: 100%; max-width: 220px; }
}

/* 編集部ロゴ（B案プレスシール・2026-07-26適用） */
.credit-avatar-mark{width:64px;height:64px;flex-shrink:0;border-radius:50%;}
