/* ============================================================
   AI集客ラボ v3｜セブンセンシズ株式会社
   青 × 白 — クリーン / ワイド / タイル
   見出し: Zen Kaku Gothic New / EN・数字: Outfit / 本文: Noto Sans JP
   ============================================================ */

:root {
  --navy: #0b2447;
  --navy-deep: #071a38;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --sky: #eaf2fe;
  --sky-2: #dcebfd;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --line: #e3eaf3;
  --text: #10203a;
  --muted: #5b6b84;
  --cat-aio: #2563eb;
  --cat-seo: #4f46e5;
  --cat-meo: #0d9488;
  --cat-ai: #0284c7;
  --chart-base: #0d9488;   /* グラフ基本色（CVD/コントラスト検証PASS・直接ラベル併用） */
  --chart-accent: #2563eb; /* グラフ強調色 */
  --max-article: 820px;
  --max-wide: 1760px;
  --gutter: clamp(1.25rem, 5vw, 6.5rem);
  --head: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --en: "Outfit", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --shadow-sm: 0 1px 2px rgba(11,36,71,.05), 0 4px 12px -4px rgba(11,36,71,.06);
  --shadow-md: 0 2px 4px rgba(11,36,71,.05), 0 12px 32px -12px rgba(11,36,71,.14);
  --shadow-lg: 0 24px 64px -24px rgba(11,36,71,.28);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--sky-2); color: var(--navy); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #c3d2e8; border-radius: 6px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.45; letter-spacing: .01em; margin: 0; }
.en-num, .kicker { font-family: var(--en); }
a { color: var(--text); }
p { margin: 0 0 1.4em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- スクロール演出 ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(7px);
  transition:
    opacity .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms),
    transform .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms),
    filter .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms);
}
html.js .reveal.in { opacity: 1; transform: none; filter: none; }
html.js .reveal-d1 { transition-delay: .1s; }
html.js .reveal-d2 { transition-delay: .2s; }
html.js .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--max-wide); margin: 0 auto; padding: .8rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: .8rem; }
.brand-glyph { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; }
.brand-logo { height: 34px; width: auto; flex-shrink: 0; }
.footer-logo { height: 38px; width: auto; margin-bottom: .7rem; display: block; }
.brand .mark { font-family: var(--head); font-weight: 900; font-size: 1.2rem; color: var(--navy); line-height: 1.15; }
.brand .by { display: block; font-family: var(--sans); font-weight: 500; font-size: .6rem; color: var(--muted); letter-spacing: .14em; }
.global-nav { margin-left: auto; display: flex; gap: 1.5rem; align-items: center; }
.global-nav a { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--muted); padding: .3em 0; position: relative; transition: color .2s; }
.global-nav a:not(.nav-cta):hover { color: var(--blue); }
.global-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out); }
.global-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.global-nav .nav-cta { color: #fff; background: var(--blue); padding: .65em 1.5em; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow-sm); transition: background .2s, transform .2s var(--ease-out); }
.global-nav .nav-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* モバイルメニュー */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; border-radius: 2px;
  background: var(--navy); transform: translateX(-50%); transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .global-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: .6rem 1.25rem 1.1rem; }
  .nav-open .global-nav { display: flex; }
  .global-nav a:not(.nav-cta) { display: block; padding: .8em .2em; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .global-nav a:not(.nav-cta)::after { display: none; }
  .global-nav .nav-cta { margin-top: .9rem; text-align: center; padding: .9em; }
}

.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), #60a5fa); z-index: 60; }

/* ---------- パンくず ---------- */
.breadcrumb { max-width: var(--max-wide); margin: 0 auto; padding: .9rem var(--gutter) 0; font-size: .76rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4em; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- フルスクリーンヒーロー（青） ---------- */
.hero-dark {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0d3585 0%, #1d4ed8 52%, #3b82f6 100%);
  display: flex; flex-direction: column;
  min-height: clamp(560px, 88vh, 920px);
}
.hero-dark::before { /* ブルーグロー */
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(36% 42% at 80% 18%, rgba(147,197,253,.7), transparent 70%),
    radial-gradient(30% 36% at 10% 88%, rgba(96,165,250,.55), transparent 70%),
    radial-gradient(22% 28% at 55% 45%, rgba(219,234,254,.3), transparent 70%);
  filter: blur(44px);
  animation: aurora 14s ease-in-out infinite alternate;
}
/* 背景の巨大アウトライン文字 */
.hero-watermark {
  position: absolute; right: -1rem; top: .5rem; z-index: 1; pointer-events: none;
  font-family: var(--en); font-weight: 700; line-height: .95; text-align: right;
  font-size: clamp(5rem, 13vw, 12rem); letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.13);
  user-select: none;
}
/* キーワードマーキー */
.ticker { position: relative; z-index: 2; overflow: hidden; padding: .4rem 0 1.6rem; }
.ticker-track { display: flex; gap: 3.5rem; white-space: nowrap; width: max-content; animation: ticker 30s linear infinite; font-family: var(--en); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.35rem); color: rgba(255,255,255,.38); letter-spacing: .08em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
@keyframes aurora {
  0%   { transform: translate3d(-2%, -2%, 0) scale(1); }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}
.hero-dark::after { /* 斜光ビーム */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255,255,255,.05) 42.5%, rgba(255,255,255,.05) 47%, transparent 47.5%),
    linear-gradient(115deg, transparent 60%, rgba(255,255,255,.04) 60.5%, rgba(255,255,255,.04) 68%, transparent 68.5%),
    radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 25%, transparent 100%);
}
.hero-dark .inner { position: relative; z-index: 2; width: 100%; max-width: var(--max-wide); margin: auto; padding: 5rem var(--gutter) 5.5rem; }
.hero-wave { position: relative; z-index: 2; display: block; width: 100%; height: 70px; margin-top: auto; }
.kicker { display: inline-flex; align-items: center; gap: .6em; font-size: .74rem; letter-spacing: .16em; font-weight: 600; color: #eaf3ff; text-transform: uppercase; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); backdrop-filter: blur(6px); padding: .5em 1.2em; border-radius: 999px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9be8c8; box-shadow: 0 0 10px #9be8c8; }
.trust-row { display: flex; gap: 1.6em; flex-wrap: wrap; margin-top: 1.8rem; font-size: .8rem; color: rgba(255,255,255,.85); }
.trust-row span { display: inline-flex; align-items: center; gap: .45em; }
.trust-row span::before { content: "✓"; display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: rgba(255,255,255,.18); font-size: .78em; font-weight: 800; }
.float-d1 { animation-delay: 1.2s; }
.float-d2 { animation-delay: 2.4s; }
.hero-dark h1 { font-size: clamp(2.3rem, 5.4vw, 4.5rem); font-weight: 900; margin: .5em 0 .45em; max-width: 22em; letter-spacing: 0; line-height: 1.3; text-shadow: 0 8px 40px rgba(4,16,44,.35); }
.hero-dark h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #8fc3ff, #ffffff 30%, #a5f3fc 55%, #ffffff 80%, #8fc3ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: gradFlow 6s linear infinite; }
@keyframes gradFlow { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .hero-dark h1 em { animation: none; } }
.hero-dark .lead { color: rgba(255,255,255,.92); max-width: 38em; font-size: clamp(1rem, 1.3vw, 1.15rem); }
/* 登場アニメーション（初回のみ・reduced-motion時は無効） */
@keyframes riseIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
html.js .rise { animation: riseIn .9s var(--ease-out) both; }
html.js .rise-1 { animation-delay: .05s; }
html.js .rise-2 { animation-delay: .18s; }
html.js .rise-3 { animation-delay: .32s; }
html.js .rise-4 { animation-delay: .46s; }
html.js .rise-5 { animation-delay: .6s; }
/* ヒーローアートの脈動リング + 3Dチルト */
.hero-art { position: relative; transition: transform .3s ease-out; transform-style: preserve-3d; will-change: transform; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); animation: pulseRing 4.5s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,520px); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 440px; margin: 0 auto; } }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(2,10,30,.45)); }
.float-slow { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- ライトヒーロー（下層） ---------- */
.hero { max-width: var(--max-wide); margin: 0 auto; padding: 4.5rem var(--gutter) 2.5rem; }
.hero .kicker { color: var(--blue); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin: .45em 0; }
.hero .lead { max-width: 42em; color: var(--muted); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  text-decoration: none; font-weight: 700; padding: 1em 2.3em; border-radius: 12px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
}
.btn .arw { transition: transform .25s var(--ease-out); }
.btn:hover .arw { transform: translateX(5px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px -10px rgba(37,99,235,.65); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- 実績タイル（ヒーロー下・浮き） ---------- */
.stat-band {
  position: relative; z-index: 3;
  max-width: var(--max-wide); margin: 0 auto; width: 100%;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
  transform: translateY(50%); margin-top: -1rem;
}
.stat-band > div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; text-align: center; box-shadow: var(--shadow-md);
}
.stat-band .num { font-family: var(--en); font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1.25; }
.stat-band .num small { font-family: var(--sans); font-size: .82rem; font-weight: 700; color: var(--blue); }
.stat-band .label { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.after-stats { padding-top: 7rem !important; }
@media (max-width: 720px) { .stat-band { transform: none; margin-top: 1rem; } .after-stats { padding-top: 3rem !important; } }

/* ---------- セクション ---------- */
.section { max-width: var(--max-wide); margin: 0 auto; padding: clamp(3rem, 6.5vw, 6rem) var(--gutter); }
.section-full { padding: clamp(3rem, 6.5vw, 6rem) 0; }
.section-head { margin-bottom: 2.8rem; }
.section-head .en { font-family: var(--en); font-size: .8rem; letter-spacing: .34em; color: var(--blue); font-weight: 600; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; margin: .3em 0 0; }
.section-head .sub { color: var(--muted); margin-top: .9em; max-width: 46em; }
.bg-deep { background: var(--bg-alt); }
.bg-white { background: var(--bg); }

/* ---------- タイルグリッド（カテゴリ等） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.2rem; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: .2rem;
  text-decoration: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--cat-color, var(--blue)) 40%, var(--line)); }
.cat-card .icon { width: 52px; height: 52px; padding: 11px; margin-bottom: 1rem; color: var(--cat-color, var(--blue)); background: color-mix(in srgb, var(--cat-color, var(--blue)) 10%, #fff); border-radius: 14px; }
.cat-card .cat-label { font-family: var(--en); font-size: .68rem; font-weight: 600; letter-spacing: .24em; color: var(--cat-color, var(--blue)); text-transform: uppercase; }
.cat-card h3 { margin: .25em 0 .45em; font-size: 1.14rem; }
.cat-card p { font-size: .86rem; color: var(--muted); margin: 0 0 .8em; line-height: 1.9; flex: 1; }
.cat-card .more { font-size: .8rem; font-weight: 700; color: var(--cat-color, var(--blue)); }
.cat-aio { --cat-color: var(--cat-aio); }
.cat-seo { --cat-color: var(--cat-seo); }
.cat-meo { --cat-color: var(--cat-meo); }
.cat-ai  { --cat-color: var(--cat-ai); }

/* ---------- 用語辞典タイル ---------- */
.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.2rem; }
.term-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--cat-color, var(--blue)); }
.term-tile .abbr { font-family: var(--en); font-weight: 700; font-size: 1.5rem; color: var(--cat-color, var(--blue)); line-height: 1.2; }
.term-tile .full { font-family: var(--en); font-size: .68rem; color: var(--muted); letter-spacing: .08em; display: block; margin-bottom: .7em; }
.term-tile p { font-size: .87rem; color: var(--text); margin: 0; line-height: 1.9; }

/* ---------- 記事タイル（post-list = タイル表示） ---------- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.2rem; }
.post-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.post-list li:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-list a { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.post-list a::before { /* サムネイル帯（アイキャッチ未設定時のプレースホルダー） */
  content: ""; display: block; aspect-ratio: 16 / 7;
  background:
    radial-gradient(60% 90% at 80% 10%, color-mix(in srgb, var(--cat-color, var(--blue)) 55%, transparent), transparent 70%),
    linear-gradient(150deg, var(--navy) 0%, color-mix(in srgb, var(--cat-color, var(--blue)) 60%, var(--navy)) 100%);
}
.post-list a:has(.thumb)::before { display: none; }
.post-list .thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-list .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.post-list li:hover .thumb img { transform: scale(1.04); }
.post-list time { font-family: var(--en); font-size: .74rem; color: var(--muted); padding: 1rem 1.3rem 0; }
.post-list h3 { font-size: .98rem; font-weight: 700; margin: .3em 0 0; padding: 0 1.3rem 1.2rem; line-height: 1.7; transition: color .2s; }
.post-list a:hover h3 { color: var(--blue); }
.post-list .tag { display: inline-block; font-size: .64rem; font-weight: 700; margin-left: .7em; padding: .2em .8em; border-radius: 999px; color: var(--cat-color, var(--blue)); background: color-mix(in srgb, var(--cat-color, var(--blue)) 10%, #fff); border: 1px solid color-mix(in srgb, var(--cat-color, var(--blue)) 30%, #fff); vertical-align: middle; }
.empty-note { color: var(--muted); font-size: .88rem; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; background: var(--bg-alt); }

/* ============================================================
   記事ページ（ワイド2カラム: 本文 + 追従サイドバー）
   ============================================================ */
main.article { max-width: 1360px; margin: 0 auto; padding: 3rem var(--gutter) 4rem; font-size: 1.02rem; }
.article-header { max-width: 980px; }
.article-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.5rem; }
.article-body { min-width: 0; max-width: 900px; }
.article-side .side-sticky { position: sticky; top: 92px; display: grid; gap: 1.2rem; }
.side-cta { background: linear-gradient(150deg, var(--navy-deep), var(--navy) 60%, #10387a); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.4rem; text-align: center; }
.side-cta .t { font-family: var(--head); font-weight: 900; font-size: 1rem; margin-bottom: .9rem; }
.side-cta .btn { width: 100%; padding: .85em 1em; font-size: .9rem; }
.side-cta .s { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: .7rem; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.5rem, 4vw, 4.5rem); }
  .article-side { grid-column: 2; grid-row: 1; }
  .article-body { grid-column: 1; grid-row: 1; }
  .article-side .toc { margin: 0; }
}
.article-header .cat-badge { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--cat-color, var(--blue)); background: color-mix(in srgb, var(--cat-color, var(--blue)) 10%, #fff); border: 1px solid color-mix(in srgb, var(--cat-color, var(--blue)) 30%, #fff); padding: .3em 1em; border-radius: 999px; }
.article-header h1 { font-size: clamp(1.6rem, 3.8vw, 2.25rem); font-weight: 900; margin: .6em 0 .4em; }
.article-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 1.2em; flex-wrap: wrap; }
.article-eyecatch { margin: 1.8rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }

main.article h2 { font-size: 1.45rem; margin: 2.8em 0 1em; padding: .6em 1.1em; background: var(--sky); border-left: 5px solid var(--blue); border-radius: 0 12px 12px 0; }
main.article h3 { font-size: 1.18rem; margin: 2.2em 0 .8em; padding: 0 0 .35em .8em; border-left: 4px solid var(--sky-2); border-bottom: 2px solid var(--line); }
main.article h4 { font-size: 1.02rem; margin: 1.8em 0 .6em; color: var(--blue-deep); }
main.article h4::before { content: "▶ "; font-size: .8em; color: var(--blue); }

/* ---------- 記事本文の強調・装飾（自動生成記事にも全適用） ---------- */
main.article .article-body { font-size: 1.05rem; }
main.article strong { background: linear-gradient(transparent 58%, #ffe873 58%); padding: 0 .12em; font-weight: 700; }
main.article mark { background: linear-gradient(transparent 45%, #ffef9e 45%); padding: 0 .12em; color: inherit; }
main.article mark.blue, main.article .marker-blue { background: linear-gradient(transparent 45%, var(--sky-2) 45%); padding: 0 .12em; }
main.article .txt-red { color: #d92d20; font-weight: 700; }
main.article .txt-blue { color: var(--blue-deep); font-weight: 700; }
main.article .big { font-size: 1.3em; font-weight: 700; line-height: 1.7; }
main.article em { font-style: normal; font-weight: 700; color: var(--blue-deep); border-bottom: 2px dotted var(--blue); }
/* H2直下の1文結論を自動で目立たせる（パイプラインの「H2直下1文結論」ルールと連動） */
main.article .article-body h2 + p { font-size: 1.1em; font-weight: 600; color: var(--navy); }
/* リストの視認性 */
main.article .article-body ul > li::marker { color: var(--blue); }
main.article .article-body ol > li::marker { color: var(--blue); font-weight: 700; }
main.article .article-body li { margin: .35em 0; }
/* 冒頭の断言段落をリード扱いで一回り大きく */
main.article .article-body > p:first-child { font-size: 1.13em; line-height: 2; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); padding: 1.4em 1.8em; margin: 2em 0; }
.toc .toc-title { font-weight: 700; font-size: .88rem; letter-spacing: .14em; display: flex; align-items: center; gap: .6em; }
.toc .toc-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.toc ol { margin: .7em 0 0 1.2em; padding: 0; font-size: .9rem; }
.toc li { margin: .4em 0; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--blue); }

.article-summary-box { border: 1px solid var(--line); border-left: 4px solid var(--blue); background: #fff; padding: 1.2em 1.5em; margin: 1.6em 0; border-radius: 0 12px 12px 0; box-shadow: var(--shadow-sm); }
.article-summary-box .box-title { font-weight: 700; font-size: .92rem; }
.article-summary-box ul { margin: .5em 0 0 1.2em; padding: 0; font-size: .92rem; }
.target-reader { font-size: .88rem; color: var(--muted); background: var(--bg-alt); padding: .9em 1.2em; border-radius: 10px; margin: 1.2em 0; }
.definition-box { border: 1.5px solid var(--blue); border-radius: var(--radius); background: var(--sky); padding: 1.3em 1.5em; margin: 2em 0 1.8em; position: relative; }
.definition-box::before { content: "定義"; position: absolute; top: -0.9em; left: 1.2em; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; padding: .2em 1em; border-radius: 999px; letter-spacing: .18em; }
.definition-box .term { font-weight: 700; color: var(--blue-deep); }
.caution-box { border: 1.5px solid #dc6803; border-radius: var(--radius); background: #fffaf3; padding: 1.3em 1.5em; margin: 2em 0 1.8em; position: relative; }
.caution-box::before { content: "注意"; position: absolute; top: -0.9em; left: 1.2em; background: #dc6803; color: #fff; font-size: .68rem; font-weight: 700; padding: .2em 1em; border-radius: 999px; letter-spacing: .18em; }
.caution-box .box-title { font-weight: 700; color: #b54708; }
.freshness { font-size: .84rem; color: var(--muted); }

/* テーブル */
.table-wrap { overflow-x: auto; margin: 1.8em 0; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: .75em 1.05em; text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; border-color: rgba(255,255,255,.14); }
tbody th { background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) td { background: #fafcff; }
.th-hl { background: var(--blue) !important; }
td.td-hl { background: var(--sky) !important; font-weight: 500; }

figure { margin: 1.8em 0; text-align: center; }
figcaption { font-size: .78rem; color: var(--muted); margin-top: .6em; }
pre { background: var(--navy); color: #e9f1ff; border-radius: var(--radius); padding: 1.2em 1.5em; overflow-x: auto; font-size: .88rem; line-height: 1.7; }
code { font-family: Consolas, "Courier New", monospace; }

/* FAQ */
.faq-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 0 1.5rem; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: .8em 0; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: var(--sky-2); }
.faq summary { cursor: pointer; font-weight: 700; padding: 1.05em 3em 1.05em 1.4em; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: .8em; border-radius: 8px; background: var(--sky); color: var(--blue); font-family: var(--en); font-size: .84em; }
.faq summary::after { content: "+"; position: absolute; right: 1.2em; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--en); font-size: 1.25rem; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-a { padding: 0 1.5em 1.2em 4em; font-size: .93rem; position: relative; }
.faq .faq-a::before { content: "A"; position: absolute; left: 1.45em; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 8px; background: var(--navy); color: #fff; font-family: var(--en); font-size: .84em; }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; background: linear-gradient(150deg, var(--navy-deep), var(--navy) 55%, #10387a); border-radius: 24px; padding: 3.2rem 1.8rem; margin: 3em 0; color: #fff; }
.cta::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(34% 44% at 82% 18%, rgba(37,99,235,.5), transparent 70%), radial-gradient(28% 38% at 12% 88%, rgba(2,132,199,.4), transparent 70%); filter: blur(34px); animation: aurora 16s ease-in-out infinite alternate; }
.cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 30px 30px; }
.cta > * { position: relative; z-index: 1; }
.cta .cta-copy { font-family: var(--head); font-size: 1.3rem; font-weight: 900; margin-bottom: 1.3rem; }
.cta .cta-sub { font-size: .78rem; color: rgba(255,255,255,.72); margin-top: 1rem; }

/* 著者情報 */
.author-box { display: flex; gap: 1.3em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.5em; margin-top: 3.5em; box-shadow: var(--shadow-sm); }
.author-box .avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--sky-2)); flex-shrink: 0; overflow: hidden; display: grid; place-items: center; font-family: var(--head); font-weight: 900; color: var(--blue); font-size: 1.4rem; }
.author-box .name { font-weight: 700; }
.author-box .role { font-size: .78rem; color: var(--muted); }
.author-box p { font-size: .88rem; margin: .5em 0 0; }

/* ============================================================
   LP
   ============================================================ */
/* 課題タイル */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 1rem; }
.check-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3em 1.4em 1.3em 3.5em; position: relative; font-weight: 600; box-shadow: var(--shadow-sm); line-height: 1.8; }
.check-list li::before { content: "✓"; position: absolute; left: 1.15em; top: 1.25em; width: 1.55em; height: 1.55em; border-radius: 8px; background: var(--sky); color: var(--blue); font-size: .85em; font-weight: 800; display: grid; place-items: center; }

/* サービスタイル */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1.2rem; }
.pillar { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar .icon { width: 52px; height: 52px; padding: 11px; color: var(--cat-color, var(--blue)); background: color-mix(in srgb, var(--cat-color, var(--blue)) 10%, #fff); border-radius: 14px; margin-bottom: 1rem; }
.pillar .num { font-family: var(--en); font-size: .76rem; color: var(--cat-color, var(--blue)); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.pillar h3 { margin: .4em 0 .6em; font-size: 1.16rem; }
.pillar p { font-size: .89rem; color: var(--muted); margin: 0; line-height: 1.9; }

/* フロー */
.flow-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; }
.flow-list li { counter-increment: step; position: relative; padding: 3.4rem 1.3rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.flow-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1rem; font-family: var(--en); font-weight: 700; font-size: 1.5rem; color: var(--blue); }
.flow-list li::after { content: ""; position: absolute; left: 1.2rem; top: 2.9rem; width: 2.2rem; height: 3px; border-radius: 2px; background: var(--sky-2); }
.flow-list .step-title { font-weight: 700; display: block; font-size: .95rem; }
.flow-list p { font-size: .84rem; color: var(--muted); margin: .3em 0 0; line-height: 1.85; }

/* フォーム */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2.6rem; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.form-panel label { display: block; font-weight: 700; font-size: .88rem; margin: 1.3em 0 .4em; }
.form-panel label .req { color: #fff; background: var(--blue); font-size: .64rem; padding: .18em .75em; border-radius: 999px; margin-left: .6em; vertical-align: middle; }
.form-panel input, .form-panel select, .form-panel textarea { width: 100%; padding: .85em 1.05em; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .95rem; background: var(--bg-alt); transition: border-color .2s, box-shadow .2s, background .2s; }
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.form-panel button { width: 100%; margin-top: 1.8rem; border: none; cursor: pointer; font-size: 1.05rem; font-family: inherit; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 1rem; text-align: center; }

/* LPヒーロー内フォーム */
.hero-form { background: #fff; border-radius: 20px; padding: 1.7rem 1.6rem 1.4rem; box-shadow: 0 30px 70px -20px rgba(2,10,30,.55); color: var(--text); max-width: 460px; margin: 0 auto; width: 100%; }
.hero-form .hf-title { font-family: var(--head); font-weight: 900; font-size: 1.15rem; text-align: center; }
.hero-form .hf-sub { font-size: .78rem; color: var(--muted); text-align: center; margin: .3em 0 1rem; }
.hero-form label { display: block; font-weight: 700; font-size: .8rem; margin: .8em 0 .3em; }
.hero-form input { width: 100%; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 9px; font-family: inherit; font-size: .95rem; background: var(--bg-alt); }
.hero-form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.hero-form .consent { display: flex; gap: .5em; align-items: flex-start; font-size: .76rem; font-weight: 500; margin-top: .9em; cursor: pointer; }
.hero-form .consent input { width: auto; margin-top: .3em; accent-color: var(--blue); }
.hero-form button { width: 100%; margin-top: 1rem; border: none; cursor: pointer; font-family: inherit; font-size: .98rem; }
.hero-form .hf-note { font-size: .72rem; color: var(--muted); text-align: center; margin: .7rem 0 0; }

.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none; background: rgba(11,36,71,.96); backdrop-filter: blur(8px); padding: .7rem 1rem; gap: .7rem; }
.sticky-cta .btn { flex: 1; padding: .85em .5em; font-size: .9rem; }
@media (max-width: 720px) { .sticky-cta { display: flex; } body.has-sticky { padding-bottom: 72px; } }

/* ---------- 重要箇所マーカー（サイト全体・自動適用） ---------- */
.section strong, .check-list strong, .pillar strong, .term-tile strong,
.article-summary-box strong, .form-panel strong {
  background: linear-gradient(transparent 58%, #ffe873 58%); padding: 0 .12em; font-weight: 700;
}
.hero-dark strong, .cta strong, .side-cta strong, .site-footer strong,
.media-slot strong, thead strong, .stat-band strong {
  background: none; padding: 0;
}

/* ---------- 診断クイズ（/diagnosis/meo/・/diagnosis/aio/ 共通） ---------- */
.quiz-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.6rem); max-width: 760px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.q-progress { height: 8px; background: var(--bg-alt); border-radius: 4px; margin-bottom: 1.6rem; overflow: hidden; }
.q-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #60a5fa); border-radius: 4px; transition: width .3s var(--ease-out); }
.q-num { font-family: var(--en); color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .12em; }
.q-title { font-family: var(--head); font-weight: 900; font-size: clamp(1.1rem, 2.4vw, 1.4rem); margin: .4em 0 1.2em; }
.q-opts { display: grid; gap: .7rem; }
.q-opt { text-align: left; background: var(--bg-alt); border: 2px solid var(--line); border-radius: 12px; padding: .95em 1.2em; font-family: inherit; font-size: .98rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease-out); }
.q-opt:hover { border-color: var(--blue); background: var(--sky); transform: translateX(4px); }
.result-type { text-align: center; padding: 1.2rem 0 .4rem; }
.result-type .rt-label { font-family: var(--en); font-size: .78rem; letter-spacing: .3em; color: var(--blue); font-weight: 600; }
.result-type h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; margin: .3em 0; }
.score-ring { width: 150px; height: 150px; margin: 1rem auto; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .sv { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--en); font-size: 2rem; font-weight: 700; color: var(--navy); }
.score-ring .sv small { font-size: .8rem; color: var(--muted); }
.action-list { counter-reset: n; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; text-align: left; }
.action-list li { counter-increment: n; background: var(--bg-alt); border-radius: 10px; padding: .85em 1.1em .85em 3em; position: relative; font-weight: 500; }
.action-list li::before { content: counter(n); position: absolute; left: 1em; top: 50%; transform: translateY(-50%); width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--en); font-weight: 700; font-size: .85em; display: grid; place-items: center; }

/* ---------- チャート・図解 ---------- */
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.3rem; margin: 1.8em 0; box-shadow: var(--shadow-md); }
.chart-card .chart-title { font-weight: 700; font-size: 1rem; font-family: var(--head); }
.chart-card .chart-sub { font-size: .78rem; color: var(--muted); margin-bottom: 1.2em; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card .chart-source { font-size: .72rem; color: var(--muted); margin-top: .9em; }
.chart-label { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.chart-value { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--text); }
html.js .line-draw path.line { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.8s var(--ease-out) .2s; }
html.js .in .line-draw path.line, html.js .line-draw.in path.line { stroke-dashoffset: 0; }

/* 写真・動画スロット */
.media-slot { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, var(--navy-deep), var(--navy) 60%, #10387a); display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.78); font-size: .84rem; padding: 1rem; margin: 1.8em 0; aspect-ratio: 16 / 9; box-shadow: var(--shadow-md); }
.media-slot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(44% 54% at 76% 22%, rgba(37,99,235,.4), transparent 70%); }
.media-slot::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 30px 30px; }
.media-slot > div { position: relative; z-index: 1; }
.media-slot .slot-type { font-family: var(--en); font-weight: 600; letter-spacing: .32em; font-size: .7rem; color: #8fc0ff; }
.media-slot .play { width: 68px; height: 68px; margin: 0 auto .9rem; border-radius: 50%; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.45); display: grid; place-items: center; backdrop-filter: blur(4px); }
.media-slot .play::after { content: ""; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin: 1.8em 0; background: var(--navy); box-shadow: var(--shadow-lg); }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); margin-top: 5rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(46% 60% at 88% 8%, rgba(37,99,235,.22), transparent 70%); }
.site-footer .inner { position: relative; max-width: var(--max-wide); margin: 0 auto; padding: 3.4rem var(--gutter) 2rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; }
.site-footer .brand-f { font-family: var(--head); font-weight: 900; font-size: 1.2rem; color: #fff; }
.site-footer .addr { font-size: .78rem; margin-top: .8em; line-height: 1.9; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: .55em 2.4em; font-size: .85rem; align-content: start; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #8fc0ff; }
.site-footer .copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; font-size: .74rem; color: rgba(255,255,255,.45); }
@media (max-width: 640px) { .site-footer .inner { grid-template-columns: 1fr; } }

/* ---------- 記事サイドバー: 補助金サポートバナー ---------- */
.side-banner {
  display: block;
  margin-top: 1.1rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0b2447 0%, #1d4ed8 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.side-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.side-banner .sb-kicker {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: #ffd76a;
  margin-bottom: .45em;
}
.side-banner .sb-title {
  display: block;
  font-family: var(--head);
  font-weight: 900;
  font-size: 1.18rem;
  line-height: 1.35;
}
.side-banner .sb-sub {
  display: block;
  font-size: .74rem;
  color: rgba(255,255,255,.85);
  margin-top: .6em;
}

/* ---------- 目次スクロールスパイ ---------- */
.toc a.toc-active { color: var(--blue); font-weight: 700; }
.toc a.toc-active::before { background: var(--blue); }

/* ---------- トップへ戻るボタン ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 5.2rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease-out), background .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--sky); }
@media (max-width: 720px) { .to-top { bottom: 6.2rem; right: .9rem; } }

/* ---------- 記事一覧検索ボックス ---------- */
.blog-search {
  display: block; width: min(480px, 100%);
  margin: 0 0 2rem;
  padding: .85em 1.2em;
  font: inherit; font-size: .95rem;
  border: 2px solid var(--line); border-radius: 12px;
  background: #fff;
  transition: border-color .2s;
}
.blog-search:focus { outline: none; border-color: var(--blue); }
.blog-search-empty { color: var(--muted); padding: 1rem 0; display: none; }

/* ---------- シェアボタン ---------- */
.share-row { display: inline-flex; gap: .5em; flex-wrap: wrap; align-items: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: .35em;
  font: inherit; font-size: .74rem; font-weight: 700;
  color: var(--muted); background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .35em 1em; cursor: pointer; text-decoration: none;
  transition: color .2s, border-color .2s, transform .2s var(--ease-out);
}
.share-btn:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.share-btn.copied { color: #0e7a46; border-color: #0e7a46; }

/* ---------- カテゴリ連動 診断バナー（記事末） ---------- */
.diag-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem; margin: 3rem 0 0;
  background: linear-gradient(135deg, var(--sky), #fff 70%);
  border: 2px solid var(--blue); border-radius: var(--radius);
  padding: 1.5rem clamp(1.2rem, 2.5vw, 2rem);
}
.diag-banner .db-text { flex: 1 1 26em; min-width: min(24em, 100%); }
.diag-banner .db-kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--blue); margin-bottom: .4em; }
.diag-banner .db-title { display: block; font-family: var(--head); font-weight: 900; font-size: 1.25rem; line-height: 1.4; }
.diag-banner .db-desc { display: block; font-size: .84rem; color: var(--muted); margin-top: .35em; }
.diag-banner .btn { flex-shrink: 0; }

/* ---------- 前後記事ナビ ---------- */
.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
  margin: 2.5rem 0 0;
}
@media (max-width: 640px) { .prev-next { grid-template-columns: 1fr; } }
.prev-next .pn {
  display: block; padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.prev-next a.pn:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prev-next .pn span { display: block; font-size: .7rem; font-weight: 700; color: var(--blue); letter-spacing: .1em; margin-bottom: .35em; }
.prev-next .pn strong { font-size: .88rem; font-weight: 700; line-height: 1.5; background: none; }
.prev-next .pn-next { text-align: right; }
.prev-next .pn-empty { border: none; background: none; }

/* ---------- ニュースレター購読ボックス ---------- */
.newsletter-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem; margin-top: 1.5rem;
  background: linear-gradient(135deg, #0b2447, #14345c);
  border-radius: var(--radius); padding: 1.6rem clamp(1.2rem, 2.5vw, 2rem);
  color: #fff;
}
.newsletter-box .nl-text { flex: 1 1 24em; min-width: min(22em, 100%); }
.newsletter-box .nl-text strong { display: block; font-family: var(--head); font-weight: 900; font-size: 1.1rem; background: none; color: #fff; margin-bottom: .3em; }
.newsletter-box .nl-text span { font-size: .82rem; color: rgba(255,255,255,.8); }
.nl-form { display: flex; gap: .6rem; flex: 1 1 20em; max-width: 26em; }
.nl-form input[type="email"] {
  flex: 1; min-width: 0; font: inherit; font-size: .92rem;
  padding: .8em 1.1em; border: none; border-radius: 10px; background: #fff;
}
.nl-form input[type="email"]:focus { outline: 3px solid rgba(96,165,250,.6); }
.nl-form .btn { white-space: nowrap; }
@media (max-width: 560px) { .nl-form { flex-direction: column; max-width: none; } }

/* reduced-motion: スムーススクロールも停止（アニメーションと整合） */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   MOTION SYSTEM v2 — 清潔感×高揚感（Awwwardsグレードの動き）
   すべて prefers-reduced-motion で完全停止する
   ============================================================ */

/* ---------- ページ遷移: View Transitions（対応ブラウザのみ・自動強化） ---------- */
@view-transition { navigation: auto; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
::view-transition-old(root) { animation: vtOut .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vtIn .5s .12s cubic-bezier(.16, 1, .3, 1) both; }

/* ---------- キネティックタイプ: 見出しが1文字ずつ立ち上がる ---------- */
html.js .kinetic .k-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.1em) rotate(4deg);
  filter: blur(6px);
  animation: kChIn .7s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: calc(180ms + var(--i) * 26ms);
}
@keyframes kChIn { to { opacity: 1; transform: none; filter: none; } }

/* ---------- 見出し下線: 到達時にグラデーションが走る ---------- */
html.js .section-head.reveal h2 { position: relative; display: inline-block; }
html.js .section-head.reveal h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.22em;
  width: 100%; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), #7cc4ff, var(--blue));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s .25s cubic-bezier(.16, 1, .3, 1);
}
html.js .section-head.reveal.in h2::after {
  transform: scaleX(1);
  animation: gradSlide 3s 1.2s linear infinite;
}
@keyframes gradSlide { to { background-position: -200% 0; } }
body.lp-doc .section-head.reveal h2::after { background: linear-gradient(90deg, var(--gold), #e8c766, var(--gold)); background-size: 200% 100%; }

/* ---------- 回転コニック枠: ホバーで光が一周する ---------- */
body:not(.lp-doc) .cat-card, .term-tile, body:not(.lp-doc) .pillar { position: relative; }
body:not(.lp-doc) .cat-card::before,
.term-tile::before,
body:not(.lp-doc) .pillar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--ang, 0deg), transparent 8%, var(--blue) 18%, #8ec8ff 24%, transparent 34%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
body:not(.lp-doc) .cat-card:hover::before,
.term-tile:hover::before,
body:not(.lp-doc) .pillar:hover::before {
  opacity: 1;
  animation: angSpin 2.4s linear infinite;
}
@keyframes angSpin { to { --ang: 360deg; } }

/* ---------- ボタン: 光沢スイープ+押下フィードバック（全サイト共通化） ---------- */
.btn { will-change: transform; }
.btn:active { transform: scale(.965) !important; transition-duration: .08s; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: left .55s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.btn-primary:hover::after { left: 125%; }

/* ---------- カーソルグロー（pointer:fineのみ・控えめな青の残光） ---------- */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 340px; height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.10), transparent 65%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity .4s;
}
body.lp-doc .cursor-glow { background: radial-gradient(circle, rgba(183,146,46,.09), transparent 65%); }

/* ---------- 数値のポップ（count-up完了時） ---------- */
@keyframes numPop { 30% { transform: scale(1.12); } }
.num-pop { animation: numPop .45s cubic-bezier(.16, 1, .3, 1); display: inline-block; }

/* ---------- reduced-motion: v2モーション全停止 ---------- */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  html.js .kinetic .k-ch { opacity: 1; transform: none; filter: none; animation: none; }
  html.js .section-head.reveal h2::after { transition: none; animation: none; transform: scaleX(1); }
  body:not(.lp-doc) .cat-card:hover::before, .term-tile:hover::before,
  body:not(.lp-doc) .pillar:hover::before { animation: none; }
  .btn-primary::after { display: none; }
  .cursor-glow { display: none; }
  .num-pop { animation: none; }
}
