/* ============================================================
   ARTICLE / NEWS — SEO content hub + long-form reading experience
   Loaded on app routes (news, story, case …) via app/layout.tsx.
   Tokens come from shared.css; --accent defined here additively.
   ============================================================ */
:root { --accent: #1a4fd6; --accent-soft: #f4f7fe; }

/* ---- Reading progress bar (under the fixed .nav header) ---- */
.reading-progress {
  position: fixed; top: 64px; left: 0; right: 0; height: 3px;
  z-index: 99; background: transparent; pointer-events: none;
}
.reading-progress__bar {
  height: 100%; width: 0; background: var(--accent);
  transition: width .12s linear;
}

/* ============================================================
   MEDIA NAV — APERTURE masthead (replaces .nav on the content section)
   Matches .nav geometry (fixed, 64px) so body padding-top stays valid.
   ============================================================ */
.media-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 64px;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 32px; padding: 0 8vw;
}
.media-nav__brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); flex-shrink: 0; }
.media-nav__mark { display: block; width: 26px; height: 26px; flex-shrink: 0; }
.media-nav__word {
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: 25px; font-weight: 600; letter-spacing: .01em; color: #2b2b2b; line-height: 1;
}
.media-nav__tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--sub);
  padding-left: 13px; margin: 0 0 0 3px; border-left: 1px solid var(--border); line-height: 1.35;
}
.media-nav__tag--desk a { color: var(--accent); font-weight: 700; }
.media-nav__tag--desk a:hover { text-decoration: underline; }
.media-nav__tag--mob { display: none; }
.media-nav__search-btn { display: none; }
@media (max-width: 860px) {
  .media-nav { gap: 11px; padding: 0 5vw; }
  .media-nav__tag--desk { display: none; }
  .media-nav__tag--mob { display: inline; font-size: 9px; letter-spacing: .02em; padding-left: 10px; white-space: nowrap; }
  .media-nav__word { font-size: 23px; }
  .media-nav__mark { width: 24px; height: 24px; }
  .media-nav__search-btn {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 40px; height: 40px; border-radius: 8px; background: transparent; border: none;
    color: var(--text); cursor: pointer; flex-shrink: 0;
  }
  .media-nav__search-btn:active { background: var(--sec-bg); }
  /* search & owned-media line follow the header breakpoint, not the card one */
  .ahub-search { display: none; }
  .ahub-note { display: block; }
}

/* Mobile discovery sheet (search + categories + tags) */
.media-search { position: fixed; inset: 64px 0 0 0; z-index: 95; }
.media-search__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(10,12,16,.32); border: none; cursor: pointer; }
.media-search__sheet {
  position: relative; z-index: 1; background: #fff; border-bottom: 1px solid var(--border);
  padding: 18px 5vw 26px; box-shadow: 0 18px 34px -20px rgba(0,0,0,.4);
  animation: media-search-in .2s ease; max-height: calc(100vh - 64px); overflow-y: auto;
}
@keyframes media-search-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.media-search__form { display: flex; align-items: center; gap: 10px; color: var(--sub); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; }
.media-search__form input { border: none; outline: none; font-size: 15px; width: 100%; background: transparent; color: var(--text); }
.media-search__h { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--sub); margin: 22px 0 11px; }
.media-search__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.media-search__chip { font-size: 13.5px; font-weight: 600; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 9px 15px; }
.media-search__chip--tag { color: var(--sub); }

/* Popular tags row (hub) */
.ahub-tags { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.ahub-tags__h { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.ahub-tags__list { display: flex; flex-wrap: wrap; gap: 9px; }
.ahub-tag {
  font-size: 13px; font-weight: 600; color: var(--sub);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  transition: border-color .15s, color .15s, background .15s;
}
.ahub-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Subtle owned-media line (hub top / article foot) */
.media-note { font-size: 12.5px; color: var(--sub); line-height: 1.9; }
.media-note__brand { font-weight: 700; letter-spacing: .01em; color: var(--text); }
.media-note a { color: var(--accent); font-weight: 600; }
.media-note a:hover { text-decoration: underline; }
/* Desktop shows the owned-media line in the header; the hub note is mobile-only. */
.ahub-note { display: none; padding: 16px 5vw 0; }
.article-foot-note { padding: 22px 8vw; border-top: 1px solid var(--border); }

/* ============================================================
   MEDIA INDEX HEADER — minimal media masthead (replaces page-hd on /article)
   ============================================================ */
.media-index-hd {
  padding: 52px 8vw 40px; border-bottom: 1px solid var(--border);
}
.media-index-hd__label {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.media-index-hd__h1 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15;
}
@media (max-width: 768px) {
  .media-index-hd { padding: 36px 5vw 28px; }
}

/* ============================================================
   ARTICLE EDITORIAL HEADER — inline header replacing page-hd on article detail
   ============================================================ */
/* 8vw fluid gutter — must match .article-cover so title and hero align. */
.article-hd {
  padding: 56px 8vw 0;
}
.article-hd__inner { max-width: 820px; }
.article-hd__bc {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub);
  margin-bottom: 22px;
}
.article-hd__bc a { color: var(--sub); text-decoration: none; }
.article-hd__bc a:hover { color: var(--text); }
.article-hd__bc span { color: #bbb; }
.article-hd__h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.28;
  letter-spacing: -.01em; word-break: auto-phrase; text-wrap: balance;
}
.article-hd__summary {
  font-size: 16px; color: var(--sub); line-height: 1.85; margin-top: 16px;
  max-width: 680px; word-break: auto-phrase;
}
.article-hd__meta {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--sub);
  margin-top: 20px; flex-wrap: wrap;
}
.article-hd__meta time { color: var(--sub); }
.article-hd__meta span[aria-hidden] { color: #ccc; }
.article-hd__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.article-hd__tag {
  font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 12px; text-decoration: none; transition: background .15s;
}
.article-hd__tag:hover { background: #dce6fb; }
@media (max-width: 980px) {
  .article-hd { padding: 40px 5vw 0; }
}
@media (max-width: 600px) {
  .article-hd { padding: 28px 5vw 0; }
  .article-hd__h1 { font-size: 1.55rem; }
}

/* ============================================================
   TOC FLOATING BUTTON (mobile only — appears after scrolling past inline toggle)
   ============================================================ */
.toc-fab {
  display: none; /* shown only on mobile via responsive block below */
  position: fixed; right: 14px; bottom: 78px; z-index: 88;
  align-items: center; gap: 6px;
  background: #fff; color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px 8px 10px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  box-shadow: 0 4px 16px -4px rgba(0,0,0,.18);
  cursor: pointer; opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.toc-fab--visible { opacity: 1; transform: translateY(0); }
.toc-fab--open { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   ARTICLE HUB (list page) — PIVOT-style layout (light)
   ============================================================ */
.sec.hub { padding: 0 0 96px; }

/* ── Category tab bar (sticky, full-width, PIVOT-style) ── */
.ahub-catbar {
  position: sticky; top: 64px; z-index: 80;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 6px 18px -16px rgba(0,0,0,.4);
}
.ahub-catbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8vw; overflow-x: auto;
  scrollbar-width: none;
}
.ahub-catbar__inner::-webkit-scrollbar { display: none; }
.ahub-cats { display: flex; align-items: stretch; gap: 0; flex-shrink: 0; }
.ahub-cat {
  position: relative; display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 700; color: var(--sub); cursor: pointer;
  background: transparent; border: none; border-bottom: 3px solid transparent;
  padding: 17px 20px; white-space: nowrap; transition: color .15s, border-color .15s;
}
.ahub-cat:hover { color: var(--text); }
.ahub-cat.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.ahub-search {
  display: flex; align-items: center; gap: 8px; color: var(--sub); flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 14px;
}
.ahub-search input {
  border: none; outline: none; font-size: 13.5px; width: 180px;
  background: transparent; color: var(--text);
}

/* ── Hub body (padded area below catbar) ── */
.ahub-body { padding: 48px 8vw; }

/* ── Split hero: text left / image right (PIVOT-style) ── */
.ahub-split {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 0;
  border-radius: 16px; overflow: hidden; background: #f7f8fb;
  margin-bottom: 56px; min-height: 380px; text-decoration: none; color: inherit;
  transition: box-shadow .2s;
}
.ahub-split:hover { box-shadow: 0 8px 40px -8px rgba(0,0,0,.14); }
.ahub-split__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 44px 48px; gap: 0;
}
.ahub-split__cat {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.ahub-split__title {
  font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.42;
  word-break: auto-phrase; text-wrap: balance; color: var(--text);
}
.ahub-split__sub {
  font-size: 14px; line-height: 1.85; color: var(--sub); margin-top: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ahub-split__meta {
  display: flex; align-items: center; gap: 12px; font-size: 12.5px;
  color: #999; margin-top: 20px;
}
.ahub-split__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--accent);
  margin-top: 24px; transition: gap .15s;
}
.ahub-split:hover .ahub-split__btn { gap: 10px; }
.ahub-split__media {
  position: relative; overflow: hidden; min-height: 280px;
}
.ahub-split__media img { object-fit: cover; transition: transform .5s ease; }
.ahub-split:hover .ahub-split__media img { transform: scale(1.04); }
.ahub-split__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #1a4fd6 0%, #6a3df0 100%);
}

/* ── Section heading ── */
.ahub-section-h {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 18px; font-weight: 700; color: var(--text);
  border-top: 2px solid var(--text); padding-top: 18px; margin-bottom: 28px;
}
.ahub-section-h span { font-size: 12.5px; font-weight: 600; color: var(--sub); }

/* ── Card grid: thumbnail-first, 4 columns, PIVOT-style ── */
.ahub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 22px; }
.ahub-card { display: flex; flex-direction: column; cursor: pointer; min-width: 0; text-decoration: none; color: inherit; }
.ahub-card__thumb {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 10px; background: var(--sec-bg); isolation: isolate;
}
.ahub-card__thumb img { object-fit: cover; transition: transform .45s ease; }
.ahub-card:hover .ahub-card__thumb img { transform: scale(1.05); }
.ahub-card__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #20242c 0%, #2f3947 100%);
}
.ahub-card__cat {
  position: absolute; left: 10px; top: 10px;
  font-size: 10.5px; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 4px 10px;
}
.ahub-card__cat-inline { display: none; font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.ahub-card__body { display: flex; flex-direction: column; padding-top: 14px; }
.ahub-card__title {
  font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--text);
  word-break: auto-phrase; transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ahub-card:hover .ahub-card__title { color: var(--accent); }
.ahub-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #999; margin-top: 10px; }
.ahub-card__avatar { width: 20px; height: 20px; border-radius: 999px; object-fit: cover; }
.ahub-card__dot { color: #ccc; }
.ahub-empty { color: var(--sub); text-align: center; padding: 72px 0; }

/* ============================================================
   ARTICLE READING LAYOUT
   ============================================================ */
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--sub); margin-top: 22px;
}
.article-meta__dot { color: #ccc; }
.article-meta__tag {
  background: #fff; border: 1px solid var(--border); color: var(--sub);
  padding: 2px 10px; border-radius: 999px; text-decoration: none; transition: border-color .2s, color .2s;
}
.article-meta__tag:hover { border-color: #c5c5c5; color: var(--text); }

/* HP 全体（.sec）と同じ 8vw 流体ガターで揃える。中央寄せキャップは置かない。 */
.article-cover { padding: 36px 8vw 0; }
.article-cover__frame {
  position: relative; width: 100%; aspect-ratio: 12/5; max-height: 460px;
  border-radius: 12px; overflow: hidden; background: var(--sec-bg);
}

.article-shell {
  padding: 48px 8vw 8px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 96px;
  align-items: stretch; /* aside fills the full row so its sticky child can follow the whole article */
}
.article-main { min-width: 0; order: 1; }
.article-aside { order: 2; min-height: 100%; }
.article-aside__sticky {
  position: sticky; top: 92px;
  /* keep within the viewport so a long TOC never hides the toolbar/CTA/share below it */
  max-height: calc(100vh - 112px); display: flex; flex-direction: column; overflow: hidden;
}
/* the TOC list is the only part allowed to scroll; the rest (toolbar/CTA/share) stays pinned */
.article-aside__sticky .toc { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.article-aside__sticky .toc__list { overflow-y: auto; min-height: 0; }
.article-aside__sticky .art-toolbar,
.article-aside__sticky .aside-cta,
.article-aside__sticky .article-aside__share { flex-shrink: 0; }

/* ---- prose typography ---- */
.article-prose { font-size: 17px; line-height: 1.95; color: #2b2b2b; word-break: auto-phrase; }
.article-prose > *:first-child { margin-top: 0; }
.article-prose h2 {
  font-size: 23px; font-weight: 700; line-height: 1.5; color: var(--text);
  margin: 56px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
  scroll-margin-top: 88px; letter-spacing: .01em;
}
.article-prose h3 {
  font-size: 18.5px; font-weight: 700; color: var(--text);
  margin: 38px 0 12px; scroll-margin-top: 88px;
}
.article-prose p { margin: 0 0 22px; }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-prose strong { font-weight: 700; color: var(--text); }
.article-prose ul, .article-prose ol { margin: 0 0 22px; padding-left: 26px; }
.article-prose li { margin-bottom: 9px; line-height: 1.85; }
.article-prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; }
.article-prose blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 8px 8px 0;
  font-size: 16px; line-height: 1.85; color: #33405e;
}
.article-prose blockquote p:last-child { margin-bottom: 0; }
.article-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: var(--sec-bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px;
}
.article-table-wrap {
  overflow-x: auto; margin: 8px 0 28px; -webkit-overflow-scrolling: touch;
  border-radius: 8px; border: 1px solid var(--border);
}
.article-table-wrap table { margin: 0; border: none; }
.article-prose table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 28px; }
.article-prose th, .article-prose td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.7; }
.article-prose thead th { background: var(--sec-bg); font-weight: 700; }
.article-prose tbody th { background: #fafafa; font-weight: 700; white-space: nowrap; }

/* ---- table of contents ---- */
.toc { border-left: 2px solid var(--border); padding-left: 18px; }
.toc__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #999; margin-bottom: 14px; }
.toc__toggle {
  display: none; width: 100%; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--text); background: var(--sec-bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; cursor: pointer;
}
.toc__toggle svg { transition: transform .2s; }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__item { line-height: 1.5; margin-bottom: 2px; }
.toc__item a {
  display: block; font-size: 13px; color: var(--sub); text-decoration: none;
  padding: 6px 0; transition: color .18s; word-break: auto-phrase;
}
.toc__item--h3 a { padding-left: 14px; font-size: 12.5px; }
.toc__item a:hover { color: var(--text); }
.toc__item.is-active > a { color: var(--accent); font-weight: 700; }

/* ---- share bar ---- */
.share-bar { display: flex; align-items: center; gap: 10px; position: relative; }
.article-aside__share { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
/* narrow rail: keep all share buttons on one row — chat becomes icon-only */
.article-aside__share .share-bar { flex-wrap: nowrap; gap: 8px; }
.article-aside__share .share-bar__btn--chat { width: 38px; padding: 0; border-radius: 50%; }
.article-aside__share .share-bar__btnlabel { display: none; }
.share-bar__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #999; margin-right: 2px; }
.share-bar__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text); background: #fff; transition: all .18s; text-decoration: none;
}
.share-bar__btn:hover { border-color: var(--text); transform: translateY(-2px); }
.share-bar__btn.is-copied { color: #16a34a; border-color: #16a34a; }
/* primary B2B action: pill with label */
.share-bar__btn--chat { width: auto; border-radius: 999px; gap: 7px; padding: 0 15px; font-size: 13px; font-weight: 700; }
.share-bar__btnlabel { white-space: nowrap; }
.share-bar__copied {
  position: absolute; left: 0; top: calc(100% + 8px); font-size: 12px; color: #16a34a;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.share-bar__copied.show { opacity: 1; transform: translateY(0); }
.article-share-inline { display: none; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }

/* ============================================================
   RELATED + END CTA
   ============================================================ */
.related { background: var(--sec-bg); border-top: 1px solid var(--border); margin-top: 64px; padding: 64px 8vw; }
.related__inner { margin: 0; }
/* 続きを読む — prominent next read */
.nextread {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  margin-bottom: 52px; transition: box-shadow .2s, transform .2s;
}
.nextread:hover { box-shadow: 0 18px 44px -22px rgba(0,0,0,.35); transform: translateY(-2px); }
.nextread__media {
  position: relative; min-height: 200px; background: #e9edf6 center/cover no-repeat;
  background-image: linear-gradient(135deg, #1a4fd6 0%, #6a3df0 100%);
}
.nextread__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.nextread__body { display: flex; flex-direction: column; justify-content: center; padding: 28px 32px 28px 0; min-width: 0; }
.nextread__k { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.nextread__cat { font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.nextread__title { font-size: 21px; font-weight: 700; line-height: 1.45; color: var(--text); word-break: auto-phrase; text-wrap: balance; }
.nextread__sub {
  font-size: 13.5px; line-height: 1.85; color: var(--sub); margin-top: 10px; word-break: auto-phrase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nextread__cta { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: 18px; transition: gap .15s; }
.nextread:hover .nextread__cta { text-decoration: underline; }

.related__bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; border-top: 2px solid var(--text); padding-top: 18px; margin-bottom: 8px;
}
.related__head { font-size: 18px; font-weight: 700; color: var(--text); }
.related__more { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.related__more:hover { text-decoration: underline; }
/* Card grid — 4 columns × 2 rows (thumbnail-first, like the hub) */
.related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 22px; margin-top: 24px; }
.related__card { display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.related__thumb {
  position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
  background: #fff center/cover no-repeat;
  background-image: linear-gradient(135deg, #e9edf6 0%, #dfe4ef 100%);
  transition: transform .3s, box-shadow .3s;
}
.related__card:hover .related__thumb { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(0,0,0,.4); }
.related__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #8a93a6;
}
.related__body { display: flex; flex-direction: column; min-width: 0; padding-top: 14px; }
.related__cat { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 7px; }
.related__title {
  font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--text); word-break: auto-phrase;
  transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.related__card:hover .related__title { color: var(--accent); }
.related__meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #999; margin-top: 11px; }
.related__dot { color: #ccc; }

.article-cta { background: #0f1115; color: #fff; padding: 72px 24px; }
.article-cta__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.article-cta__kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8aa2ff; margin-bottom: 16px; }
.article-cta__title { font-size: 28px; font-weight: 700; line-height: 1.5; letter-spacing: .01em; word-break: auto-phrase; }
.article-cta__sub { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.72); margin: 18px auto 32px; max-width: 560px; word-break: auto-phrase; }
.article-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.article-cta__btn { font-size: 15px; font-weight: 700; padding: 14px 30px; border-radius: 8px; text-decoration: none; transition: all .2s; }
.article-cta__btn--primary { background: #fff; color: #0f1115; }
.article-cta__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255,255,255,.4); }
.article-cta__btn--ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.article-cta__btn--ghost:hover { background: rgba(255,255,255,.1); }
.article-cta__lk { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); text-decoration: none; }
.article-cta__lk:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   CONVERSION — layered by intent (資料DL → 診断 → 相談)
   ============================================================ */
/* in-content lead magnet (low commitment) */
.doc-cta {
  display: flex; align-items: center; gap: 20px; margin: 48px 0; padding: 22px 24px;
  background: linear-gradient(180deg, #f4f7fe, #eaf1fd); border: 1px solid #d7e2fa; border-radius: 12px;
}
.doc-cta__icon {
  flex: none; width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; background: #fff; color: var(--accent); border: 1px solid #d7e2fa;
}
.doc-cta__body { flex: 1; min-width: 0; }
.doc-cta__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.doc-cta__title { font-size: 16.5px; font-weight: 700; line-height: 1.5; color: var(--text); word-break: auto-phrase; }
.doc-cta__desc { font-size: 13px; line-height: 1.75; color: var(--sub); margin-top: 6px; word-break: auto-phrase; }
.doc-cta__btn {
  flex: none; font-size: 14px; font-weight: 700; color: #fff; background: var(--accent);
  border-radius: 8px; padding: 12px 22px; text-decoration: none; white-space: nowrap; transition: all .2s;
}
.doc-cta__btn:hover { background: #1542b8; transform: translateY(-1px); }

/* sticky aside card (mid funnel — free diagnosis) */
.aside-cta { margin-top: 30px; padding: 22px; background: #0f1115; color: #fff; border-radius: 12px; }
.aside-cta__k { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #8aa2ff; margin-bottom: 8px; }
.aside-cta__t { font-size: 16px; font-weight: 700; line-height: 1.5; word-break: auto-phrase; }
.aside-cta__d { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.72); margin: 8px 0 16px; word-break: auto-phrase; }
.aside-cta__btn {
  display: block; text-align: center; font-size: 14px; font-weight: 700; color: #0f1115;
  background: #fff; border-radius: 8px; padding: 11px; text-decoration: none; transition: transform .2s;
}
.aside-cta__btn:hover { transform: translateY(-1px); }
.aside-cta__lk { display: block; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 12px; text-decoration: none; }
.aside-cta__lk:hover { color: #fff; }

/* mobile sticky bar (replaces the aside card on phones) */
.mcta { display: none; }
.mcta__txt { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.mcta__txt strong { font-size: 14px; }
.mcta__txt span { font-size: 11.5px; color: rgba(255,255,255,.7); }
.mcta__btn { flex: none; font-size: 13.5px; font-weight: 700; color: #0f1115; background: #fff; border-radius: 8px; padding: 10px 18px; text-decoration: none; }
.mcta__x { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: rgba(255,255,255,.6); cursor: pointer; }

/* author bio (E-E-A-T) */
.author-bio { display: flex; gap: 18px; margin: 52px 0 0; padding: 26px; background: var(--sec-bg); border: 1px solid var(--border); border-radius: 12px; }
.author-bio__avatar { flex: none; border-radius: 50%; width: 60px; height: 60px; object-fit: cover; }
.author-bio__body { min-width: 0; }
.author-bio__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--sub); margin-bottom: 8px; }
.author-bio__name { font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; }
.author-bio__name:hover { color: var(--accent); }
.author-bio__title { font-size: 12.5px; color: var(--sub); margin-left: 10px; }
.author-bio__desc { font-size: 13.5px; line-height: 1.85; color: var(--sub); margin: 10px 0 12px; word-break: auto-phrase; }
.author-bio__links { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.author-bio__links a { color: var(--accent); text-decoration: none; }
.author-bio__links a:hover { text-decoration: underline; }
.author-bio__links span { color: #ccc; }

/* ============================================================
   TRUST · AEO/GEO · 回遊 · 拡散 (added components)
   ============================================================ */
/* action toolbar (listen / copy-for-AI / share-internal) */
.art-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
/* When placed under the TOC in the aside rail — always one compact row */
.article-aside__sticky .art-toolbar { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: nowrap; gap: 6px; }
.article-aside__sticky .art-toolbar__btn { flex: 1 1 0; justify-content: center; min-width: 0; padding: 9px 6px; gap: 5px; }
.article-aside__sticky .art-toolbar__lbl { display: none; }
.article-aside__sticky .art-toolbar__lbl--sm { display: inline; white-space: nowrap; }
.art-toolbar__btn {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--sub); background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; transition: all .18s;
}
.art-toolbar__lbl--sm { display: none; }
.art-toolbar__btn:hover { border-color: #bfbfbf; color: var(--text); }
.art-toolbar__btn.is-on { background: var(--accent-soft); border-color: #cdddfb; color: var(--accent); }
.art-toolbar__btn.is-done { color: #16a34a; border-color: #16a34a; }

/* original-research badge */
.orig-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  color: #a36a00; background: #fff7e6; border: 1px solid #f0d089; border-radius: 999px; padding: 3px 10px;
}

/* 「◯◯とは」definition box */
.term-def {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; background: #fff; padding: 18px 22px; margin: 0 0 32px;
}
.term-def__t { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.term-def__d { font-size: 14.5px; line-height: 1.85; color: var(--sub); word-break: auto-phrase; }

/* structured comparison table */
.cmp-table { margin: 32px 0; }
.cmp-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: left; line-height: 1.7; vertical-align: top; }
.cmp-table thead th { background: #0f1115; color: #fff; font-weight: 700; border-color: #0f1115; }
.cmp-table tbody th { background: var(--sec-bg); font-weight: 700; white-space: nowrap; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: none; }
.cmp-table th:last-child, .cmp-table td:last-child { border-right: none; }
.cmp-table figcaption { font-size: 12.5px; color: var(--sub); margin-top: 10px; text-align: center; }

/* mid-article recap */
.recap { background: var(--accent-soft); border: 1px solid #dbe5fb; border-radius: 10px; padding: 18px 22px; margin: 36px 0; }
.recap__l { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.recap__t { font-size: 14.5px; line-height: 1.85; color: #33405e; word-break: auto-phrase; }

/* references / sources */
.article-refs { margin: 52px 0 0; border-top: 1px solid var(--border); padding-top: 36px; }
.article-refs h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.article-refs ol { padding-left: 22px; margin: 0; }
.article-refs li { font-size: 14px; line-height: 1.8; color: var(--sub); margin-bottom: 10px; }
.article-refs a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-refs__pub { color: #999; margin-left: 8px; font-size: 12.5px; }

/* changelog */
.article-changelog { margin: 28px 0 0; border: 1px solid var(--border); border-radius: 8px; background: var(--sec-bg); }
.article-changelog summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--text); padding: 14px 18px; list-style: none; }
.article-changelog summary::-webkit-details-marker { display: none; }
.article-changelog summary::before { content: "＋"; margin-right: 8px; color: var(--sub); }
.article-changelog[open] summary::before { content: "−"; }
.article-changelog ul { list-style: none; margin: 0; padding: 0 18px 14px; }
.article-changelog li { display: flex; gap: 14px; font-size: 13px; line-height: 1.7; color: var(--sub); padding: 8px 0; border-top: 1px solid var(--border); }
.article-changelog time { flex: none; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* editorial note */
.editorial-note { font-size: 12.5px; color: var(--sub); margin-top: 24px; }
.editorial-note a { color: var(--accent); text-decoration: underline; }

/* author bio extras */
.author-bio__cred { font-size: 12.5px; color: var(--accent); font-weight: 600; margin: 6px 0 0; }
.author-bio__lk { display: inline-flex; align-items: center; gap: 10px; }

/* pillar / series navigation */
.pillar-nav { border-top: 1px solid var(--border); background: #fff; padding: 48px 24px; }
.pillar-nav__inner { max-width: 1060px; margin: 0 auto; }
.pillar-nav__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pillar-nav__k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #999; }
.pillar-nav__cluster { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.pillar-nav__cluster:hover { text-decoration: underline; }
.pillar-nav__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar-nav__item { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.pillar-nav__item:not(.is-empty):hover { border-color: #c5c5c5; box-shadow: 0 12px 28px -20px rgba(0,0,0,.4); }
.pillar-nav__item.is-empty { border: none; background: transparent; }
.pillar-nav__item--next { text-align: right; align-items: flex-end; }
.pillar-nav__dir { font-size: 12px; color: var(--sub); font-weight: 600; }
.pillar-nav__t { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.55; word-break: auto-phrase; }

/* highlight-to-share floating button */
.hl-share { position: absolute; transform: translate(-50%, -130%); z-index: 95; }
.hl-share a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #fff; background: #0f1115; border-radius: 8px; padding: 9px 14px; text-decoration: none; box-shadow: 0 10px 26px -8px rgba(0,0,0,.5); white-space: nowrap; }
.hl-share a:hover { background: #000; }
.hl-share::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: #0f1115; }

/* code blocks + copy */
.article-prose pre { position: relative; background: #0f1115; color: #e8e8e8; border-radius: 10px; padding: 18px 20px; overflow: auto; font-size: 13.5px; line-height: 1.7; margin: 24px 0; }
.article-prose pre code { background: none; border: none; color: inherit; padding: 0; }
.code-copy { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.code-copy:hover { background: rgba(255,255,255,.24); }

/* image lightbox + glossary tooltip */
.article-prose img.zoomable { cursor: zoom-in; }
.img-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.img-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.glossary-term { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .article-cover, .related { padding-left: 5vw; padding-right: 5vw; }
  .article-shell { display: flex; flex-direction: column; gap: 0; padding: 36px 5vw 8px; }
  .article-aside { order: -1; width: 100%; margin-bottom: 32px; }
  .article-aside__sticky { position: static; }
  .toc { border-left: none; padding-left: 0; }
  .toc__label { display: none; }
  .toc__toggle { display: flex; }
  .toc__list { max-height: 0; overflow: hidden; transition: max-height .28s ease; margin-top: 0; }
  .toc--open .toc__list { max-height: 65vh; overflow: auto; margin-top: 14px; }
  .toc--open .toc__toggle svg { transform: rotate(180deg); }
  .article-aside__share { display: none; }
  .article-share-inline { display: block; }
  .aside-cta { display: none; }
  .mcta {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: 12px;
    z-index: 90; background: #0f1115; color: #fff; border-radius: 12px; padding: 12px 14px;
    box-shadow: 0 14px 34px -10px rgba(0,0,0,.5); transform: translateY(150%); opacity: 0;
    transition: transform .3s, opacity .3s;
  }
  .mcta.show { transform: translateY(0); opacity: 1; }
  .doc-cta { flex-wrap: wrap; gap: 14px; padding: 20px; }
  .doc-cta__btn { width: 100%; text-align: center; }
  .author-bio { flex-direction: column; gap: 14px; }
  .pillar-nav__pair { grid-template-columns: 1fr; }
  .pillar-nav__item--next { text-align: left; align-items: flex-start; }
  .cmp-table { overflow-x: auto; }
  .cmp-table table { min-width: 480px; }
  .ahub-catbar__inner { padding: 0 5vw; }
  .ahub-body { padding: 36px 5vw; }
  .ahub-split { grid-template-columns: 1fr; min-height: auto; }
  .ahub-split__copy { padding: 32px 28px; }
  .ahub-split__media { min-height: 240px; }
  .ahub-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .related__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .nextread { grid-template-columns: 240px 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  /* stick just below the fixed 64px media-nav (was 0 → hid behind the header) */
  .ahub-catbar { top: 64px; }
  /* search moved into the header sheet on mobile */
  .ahub-search { display: none; }
  .ahub-note { display: block; }
  .ahub-body { padding: 24px 5vw; }
  .ahub-split__copy { padding: 24px 20px; }
  .ahub-grid { grid-template-columns: 1fr; gap: 24px; }
  /* PIVOT-style mobile rows: thumbnail height matches the text block (top+bottom aligned) */
  .ahub-card { flex-direction: row; gap: 14px; align-items: stretch; }
  .ahub-card__thumb { flex: 0 0 142px; aspect-ratio: auto; align-self: stretch; min-height: 90px; border-radius: 8px; }
  .ahub-card__cat { display: none; } /* overlay chip overflows the small thumb — show as eyebrow instead */
  .ahub-card__cat-inline { display: block; font-size: 11.5px; margin-bottom: 5px; }
  .ahub-card__body { flex: 1; padding-top: 0; justify-content: center; }
  .ahub-card__title { font-size: 16px; line-height: 1.45; -webkit-line-clamp: 2; }
  .ahub-card__meta { margin-top: 8px; font-size: 12.5px; }
  .nextread { grid-template-columns: 1fr; gap: 0; }
  .nextread__media { min-height: 170px; }
  .nextread__body { padding: 22px 20px; }
  .nextread__title { font-size: 18px; }
  .related__grid { grid-template-columns: 1fr; gap: 18px; }
  .related__card { flex-direction: row; gap: 14px; align-items: stretch; }
  .related__thumb { flex: 0 0 142px; aspect-ratio: auto; align-self: stretch; min-height: 90px; border-radius: 8px; }
  .related__body { flex: 1; padding-top: 0; justify-content: center; }
  .related__title { font-size: 16px; line-height: 1.45; -webkit-line-clamp: 2; }
  .article-prose { font-size: 16px; }
  .article-prose h2 { font-size: 21px; }
  .article-prose table { min-width: 460px; }
  .article-cta__title { font-size: 23px; }
  /* TOC removed on phones (no 目次 button); keep aside for the toolbar only */
  /* 高特異度の .article-aside__sticky .toc を上書きするため同特異度で指定 */
  .article-aside__sticky .toc { display: none; }
  .article-aside { margin-bottom: 24px; }
  .article-aside__sticky .art-toolbar { border-top: none; padding-top: 0; margin: 0; }
  .art-toolbar { flex-wrap: nowrap; gap: 6px; margin-bottom: 0; }
  .art-toolbar__btn { flex: 1 1 0; justify-content: center; padding: 9px 6px; min-width: 0; gap: 5px; }
  .art-toolbar__lbl { display: none; }
  .art-toolbar__lbl--sm { display: inline; white-space: nowrap; }
}
