/*
 * COCORO Pulse. — article page (docs/design-system.md §12). Mock: wp/design/mock/article.html.
 * Loaded with site.css on single posts; the body parts come from article.css. The 大カテゴリ colour arrives
 * as --tc / --tb on .cp-ah (cp_list_color_style()). Classes are cp-a* / cp-cta* so the parent CSS cannot collide.
 */
:root { --cp-hd-h: 72px; }
.cp-a { --tc: var(--cp-c4); --tb: var(--cp-c4b); }
.cp-a *, .cp-a *::before, .cp-a *::after { box-sizing: border-box; }
.cp-a a { color: var(--cp-purple); text-decoration: none; }
.cp-a a:hover { color: var(--cp-purple-deep); }
.cp-a :focus-visible { outline: 3px solid var(--cp-teal); outline-offset: 2px; border-radius: 6px; }
.cp-a h1, .cp-a h2, .cp-a h3 { word-break: auto-phrase; text-wrap: pretty; }
.cp-a [id] { scroll-margin-top: calc(var(--cp-hd-h) + 20px); }

/* shared with list.css (list.css is not loaded on singles) */
.cp-new { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--cp-new); color: var(--cp-new-ink); font-family: var(--cp-latin); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; line-height: 18px; vertical-align: 2px; }
.cp-types span { display: inline-block; margin: 2px 5px 2px 0; padding: 0 8px; border-radius: 6px; border: 1px solid var(--cp-line-strong); background: #fff; font-size: 11.5px; line-height: 20px; color: var(--cp-sub); white-space: nowrap; vertical-align: 2px; }
.cp-scard { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--cp-line); }
.cp-scard__cap { margin: 0 0 2px; font-size: 12px; color: var(--cp-muted); }
.cp-scard h2 { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--cp-heading); }
.cp-scard h2 a { color: var(--cp-heading); }
.cp-scard__more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; }

/* ---------- article header (band) ---------- */
.cp-ah { position: relative; border-bottom: 1px solid var(--cp-line); background:
  radial-gradient(700px 360px at 92% -20%, color-mix(in srgb, var(--tc) 12%, transparent), transparent 65%),
  radial-gradient(600px 360px at 0% 120%, rgba(119, 227, 214, .26), transparent 62%),
  linear-gradient(180deg, color-mix(in srgb, var(--tb) 40%, #fff), #fff); }
.cp-ah__in { max-width: var(--cp-wrap); margin: 0 auto; padding: 0 20px; }
.cp-crumb ol { list-style: none; display: flex; margin: 0; padding: 18px 0 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 12.5px; color: var(--cp-muted); }
.cp-crumb ol::-webkit-scrollbar { display: none; }
.cp-crumb li + li::before { content: "›"; margin: 0 8px; color: var(--cp-line-strong); }
.cp-crumb a { color: var(--cp-muted); }
.cp-crumb a:hover { color: var(--cp-purple); }
.cp-crumb li[aria-current] { max-width: 24em; overflow: hidden; text-overflow: ellipsis; }
.cp-ah__head { max-width: 760px; padding: 26px 0 0; }
.cp-ah__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; font-size: 12.5px; font-weight: 700; }
.cp-ah__theme { display: inline-flex; align-items: center; gap: 10px; color: var(--tc) !important; }
.cp-ah__theme::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--tc); }
.cp-ah__cats .cp-ah__sep { color: var(--cp-line-strong); font-weight: 400; }
.cp-ah__cats a:not(.cp-ah__theme) { color: var(--cp-sub) !important; font-weight: 500; }
.cp-ah__cats a:not(.cp-ah__theme):hover { color: var(--cp-purple) !important; }
.cp-ah h1 { margin: 0 0 16px; font-size: 32px; line-height: 1.45; font-weight: 700; letter-spacing: .01em; color: var(--cp-heading); }
.cp-ah__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 12.5px; color: var(--cp-muted); }
.cp-ah__meta .cp-badge { font-size: 11.5px; }
.cp-ah__meta .cp-types { margin: 0 -5px 0 0; }
.cp-ah__dates { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--cp-latin); letter-spacing: .02em; }
.cp-ah__dates b { font-family: var(--cp-sans); font-weight: 500; margin-right: 4px; }
.cp-ah .cp-pr-label { max-width: 760px; margin: 16px 0 0; }
.cp-ah__eye { position: relative; z-index: 1; max-width: 760px; margin: 26px 0 -72px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 22px 40px -28px rgba(83, 43, 118, .45); line-height: 0; }
.cp-ah__eye svg, .cp-ah__eye img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* ---------- body grid ---------- */
.cp-abody { display: grid; grid-template-columns: minmax(0, 760px) 300px; column-gap: 60px; justify-content: start; padding-top: 108px; padding-bottom: 88px; }
.cp-a--one .cp-abody { grid-template-columns: minmax(0, 760px); justify-content: center; }
.cp-a--one .cp-ah__head, .cp-a--one .cp-ah__eye, .cp-a--one .cp-ah .cp-pr-label { margin-left: auto; margin-right: auto; }
.cp-a--one .cp-ah__eye { margin-bottom: -72px; }
.cp-a--one .cp-crumb ol { max-width: 760px; margin: 0 auto; }
.cp-amain { min-width: 0; }
.cp-a--one .cp-arail { display: none; }

/* ---------- one grid: header band + body in the 760px column, rail beside both (2026-09-29) ----------
 * The band keeps its full-bleed background through a pseudo element; the rail starts in the first view. */
html:has(> body.cp-a), .cp-a { overflow-x: clip; }
.cp-apage { display: grid; grid-template-columns: minmax(0, 760px) 300px; column-gap: 60px; justify-content: start; box-sizing: border-box; max-width: var(--cp-wrap); margin: 0 auto; padding: 0 20px; }
.cp-apage > .cp-ah { grid-column: 1; grid-row: 1; background: none; border-bottom: 0; isolation: isolate; }
.cp-apage > .cp-ah::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc((min(100vw, var(--cp-wrap)) - 100vw) / 2 - 20px); width: 100vw; border-bottom: 1px solid var(--cp-line); background:
  radial-gradient(700px 360px at calc(50% + 480px) -20%, color-mix(in srgb, var(--tc) 12%, transparent), transparent 65%),
  radial-gradient(600px 360px at calc(50% - 560px) 120%, rgba(119, 227, 214, .26), transparent 62%),
  linear-gradient(180deg, color-mix(in srgb, var(--tb) 40%, #fff), #fff); }
.cp-apage > .cp-ah .cp-ah__in { max-width: none; padding: 0; }
.cp-apage > .cp-amain { grid-column: 1; grid-row: 2; padding: 108px 0 88px; }
.cp-apage > .cp-arail { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; padding: 64px 0 88px; }
.cp-a--one .cp-apage { grid-template-columns: minmax(0, 760px); justify-content: center; }

/* スクエアバナー (PC only) */
.cp-sq { position: relative; display: grid; align-content: center; justify-items: center; gap: 10px; aspect-ratio: 1; margin: 0 0 18px; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--cp-line); text-align: center; overflow: hidden; }
.cp-sq--img { display: block; padding: 0; border: 0; background: none; }
.cp-sq--img a, .cp-sq--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-sq--img .cp-pr-mark { position: absolute; top: 10px; left: 10px; z-index: 1; }
.cp-sq.cp-cta--k-resource { background: var(--cp-sky); border-color: #dfe8f8; }
.cp-sq:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service) { background: linear-gradient(140deg, #f6effd, #eaf8f5); border-color: #e6def2; }
.cp-sq__vis .cp-cover { height: 150px; width: 128px; }
.cp-sq__vis .cp-cover__back, .cp-sq__vis .cp-cover__front { width: 100px; height: 136px; }
.cp-sq__k { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--cp-sub); }
.cp-sq__brand { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--cp-latin); font-weight: 600; font-size: 13px; color: var(--cp-purple-deep); }
.cp-sq__brand svg { width: 22px; height: 22px; }
.cp-sq__h { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--cp-heading); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-sq__p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--cp-sub); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp-sq .cp-pr-mark { margin-right: 6px; }
.cp-sq .cp-btn { width: 100%; justify-content: center; height: 42px; font-size: 13px; }
/* the inline CONTENTS shows on every device (decided 2026-09-25); the rail TOC is the 現在地 while reading */

/* prose: the lead paragraph */
.cp-prose > p:first-child { font-size: 1.04em; line-height: 2; color: var(--cp-heading); }

/* diagram figure: caption style with a figure number */
.cp-prose figure.cp-diagram { padding: 20px 20px 14px; border-radius: 16px; }
.cp-prose figure.cp-diagram figcaption { margin-top: 12px; text-align: left; font-size: .82em; color: var(--cp-sub); }
.cp-prose figure.cp-diagram figcaption b { font-family: var(--cp-latin); font-weight: 600; color: var(--cp-purple); margin-right: .6em; }
@media (max-width: 560px) { .cp-prose figure.cp-diagram { padding: 12px 12px 10px; } }
.cp-diagram--todo { display: grid; place-items: center; min-height: 220px; border-style: dashed !important; color: var(--cp-muted); font-size: .86em; }

/* sources */
.cp-sources { margin: 3.2em 0 0; padding: 22px 24px; border-radius: 16px; background: var(--cp-bg-soft); border: 1px solid var(--cp-line); }
.cp-a .cp-prose .cp-sources h2 { margin: 0 0 10px; padding: 0; font-size: 14px; color: var(--cp-heading); background: none; border: 0; }
.cp-a .cp-prose .cp-sources h2::before { display: none; }
.cp-sources ol { margin: 0; padding-left: 1.4em; font-size: 13px; line-height: 1.75; color: var(--cp-sub); }
.cp-sources li + li { margin-top: 4px; }
.cp-sources li::marker { color: var(--cp-purple); font-family: var(--cp-latin); }
.cp-sources a { text-decoration: underline; text-decoration-color: var(--cp-line-strong); text-underline-offset: 3px; }
.cp-sources small { color: var(--cp-muted); }

/* words + share */
.cp-awords { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2.4em 0 0; }
.cp-awords > span { margin-right: 4px; font-size: 12.5px; color: var(--cp-muted); }
.cp-awords a { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--cp-line-strong); background: #fff; font-size: 13px; color: var(--cp-text) !important; }
.cp-awords a:hover { border-color: var(--cp-heading); color: var(--cp-heading) !important; }
.cp-ashare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--cp-line); font-size: 12.5px; color: var(--cp-muted); }
.cp-ashare > span { margin-right: 6px; }
.cp-ashare a, .cp-ashare button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--cp-line-strong); background: #fff; color: var(--cp-heading); cursor: pointer; }
.cp-ashare a:hover, .cp-ashare button:hover { border-color: var(--cp-heading); background: var(--cp-lav); }
.cp-ashare svg { width: 18px; height: 18px; }
/* LINE: the green circle with the white mark (the lettering inside the bubble is unreadable at 18px on white) */
.cp-ashare .cp-ashare__line { border-color: #06c755; background: #06c755; color: #fff; }
.cp-ashare .cp-ashare__line svg { width: 27px; height: 27px; }
.cp-ashare .cp-ashare__line:hover { border-color: #05b14b; background: #05b14b; }
/* buttons with a word: リンクをコピー (the way most links are shared, Slack included) and 共有 (the OS sheet, touch only) */
.cp-ashare .cp-ashare__text { width: auto; gap: 7px; padding: 0 16px 0 13px; border-radius: 20px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--cp-heading); white-space: nowrap; }
.cp-ashare button[hidden] { display: none; }
.cp-ashare__done { font-size: 12px; color: var(--cp-teal-deep); font-weight: 700; }

/* ---------- CTA: one 誘導先 per article, rendered in three slots (design-system §12-3) ----------
 * slot classes: .cp-cta--big (本文前) / .cp-cta--mid (記事中, one line) / .cp-cta--normal (記事下)
 * kind classes: .cp-cta--k-resource / -product / -tool-free / -service / -affiliate
 */
.cp-cta { position: relative; overflow: hidden; border-radius: 22px; }
.cp-cta > * { position: relative; z-index: 1; }
.cp-cta__eyebrow { margin: 0 0 8px; font-family: var(--cp-latin); font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--cp-purple); }
.cp-cta__eyebrow--ja { font-family: var(--cp-sans); letter-spacing: .06em; font-size: 12.5px; font-weight: 700; }
.cp-cta__h { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.5; color: var(--cp-heading); word-break: auto-phrase; text-wrap: pretty; }
.cp-cta p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--cp-sub); }
.cp-cta .cp-btn { height: 48px; padding: 0 24px; border-radius: 24px; }
.cp-cta__note { margin: 10px 0 0 !important; font-size: 12px !important; color: var(--cp-muted) !important; }
.cp-cta__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.cp-btn--line { background: #fff !important; color: var(--cp-purple) !important; border: 1.5px solid var(--cp-purple); }
.cp-btn--line:hover { background: var(--cp-lav) !important; }
.cp-cta__bullets { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.cp-cta__bullets li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.7; color: var(--cp-text); }
.cp-cta__bullets li::before { content: ""; position: absolute; left: 0; top: .35em; width: 17px; height: 17px; border-radius: 50%; background: var(--cp-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cp-cta__grid { display: grid; gap: 24px; align-items: center; }
.cp-cta__shot { aspect-ratio: 4 / 3; border-radius: 12px; background: #fff; border: 1px solid #e3dbf3; box-shadow: 0 16px 30px -22px rgba(83, 43, 118, .5); display: grid; place-items: center; font-size: 12px; color: var(--cp-muted); }
.cp-pr-mark { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 3px; background: var(--cp-sub); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
/* resource: the sky surface and the tilted cover from the resource cards */
.cp-cta--k-resource { background: linear-gradient(135deg, #eef4fe 0%, #f7faff 60%, #eefaf6 100%); border: 1px solid #dce6f7; }
.cp-cta--k-resource .cp-cta__eyebrow { color: var(--cp-c2); }
.cp-cover { position: relative; height: 190px; width: 150px; }
.cp-cover__back { position: absolute; left: 22px; top: 10px; width: 118px; height: 160px; border-radius: 8px; background: #e8f1fb; transform: rotate(5deg); }
.cp-cover__front { position: absolute; left: 10px; top: 6px; width: 118px; height: 160px; padding: 14px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--cp-line); box-shadow: 0 14px 28px -16px rgba(43, 39, 64, .35); transform: rotate(-3deg); overflow: hidden; }
.cp-cover__bar { display: block; width: 32px; height: 5px; margin-bottom: 10px; border-radius: 3px; background: var(--cp-c2); }
.cp-cover__k { font-family: var(--cp-latin); font-size: 8px; font-weight: 600; letter-spacing: .16em; color: var(--cp-c2); }
.cp-cover__n { margin: 5px 0 12px; font-size: 11.5px; font-weight: 700; line-height: 1.45; color: var(--cp-heading); }
.cp-cover__ln { display: flex; flex-direction: column; gap: 6px; }
.cp-cover__ln i { display: block; height: 4px; border-radius: 2px; background: var(--cp-line); }
.cp-cover__ln i:nth-child(2) { width: 82%; } .cp-cover__ln i:nth-child(3) { width: 90%; } .cp-cover__ln i:nth-child(4) { width: 64%; }
/* product / tool-free / service: the COCORO Sync. panel treatment with the origin strip */
.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service { background: linear-gradient(135deg, #f3ecfe 0%, #eef3fd 45%, #e3f8f4 100%); border: 1px solid #e3dbf3; }
:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service)::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(119, 227, 214, .45), transparent 65%); pointer-events: none; z-index: 0; }
.cp-cta__strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0 0 22px; padding: 11px 32px; background: rgba(255, 255, 255, .6); border-bottom: 1px solid #e3dbf3; font-size: 12.5px; color: var(--cp-sub); }
.cp-cta__strip b { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; font-family: var(--cp-latin); font-weight: 600; letter-spacing: .18em; color: var(--cp-purple); }
.cp-cta__strip b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cp-teal); }
.cp-cta__strip a { color: var(--cp-sub) !important; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cp-cta__brand { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--cp-latin); font-weight: 600; font-size: 17px; color: var(--cp-wordmark); }
.cp-cta__brand svg { width: 22px; height: 22px; }
/* affiliate: a quiet white card with the PR mark */
.cp-cta--k-affiliate { background: #fff; border: 1px solid var(--cp-line-strong); }
/* slot: big (本文前) */
.cp-cta--big { margin: calc(var(--cp-flow) * 1.6) 0 0; padding: 30px 32px; }
.cp-cta--big.cp-cta--k-resource .cp-cta__grid { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; }
.cp-cta--big .cp-cta__h { font-size: 22px; }
.cp-cta--big:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service) { padding: 0 32px 30px; }
.cp-cta--big:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service) .cp-cta__strip { margin: 0 -32px 22px; }
.cp-cta--big:not(.cp-cta--k-resource) .cp-cta__grid { grid-template-columns: minmax(0, 1fr) 220px; }
.cp-cta--big.cp-cta--k-affiliate .cp-cta__grid { grid-template-columns: 200px minmax(0, 1fr); }
.cp-cta--big.cp-cta--k-affiliate .cp-cta__shot { aspect-ratio: 16 / 10; }
/* slot: normal (記事下) — same parts, tighter, no bullets */
.cp-cta--normal { margin: 3em 0 0; padding: 26px 28px; }
.cp-cta--normal .cp-cta__bullets { display: none; }
.cp-cta--normal.cp-cta--k-resource .cp-cta__grid { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; }
.cp-cta--normal .cp-cover { height: 160px; width: 120px; transform: scale(.8); transform-origin: left top; }
.cp-cta--normal:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service) { padding: 0 28px 26px; }
.cp-cta--normal:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service) .cp-cta__strip { margin: 0 -28px 20px; padding: 10px 28px; }
.cp-cta--normal:not(.cp-cta--k-resource) .cp-cta__grid { grid-template-columns: minmax(0, 1fr) 180px; }
.cp-cta--normal.cp-cta--k-affiliate .cp-cta__grid { grid-template-columns: 160px minmax(0, 1fr); }
.cp-cta--normal.cp-cta--k-affiliate .cp-cta__shot { aspect-ratio: 16 / 10; }
/* slot: mid (記事中) — one line: icon, tagline, button */
.cp-cta--mid { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: calc(var(--cp-flow) * 1.3) 0 0; padding: 14px 16px 14px 18px; border-radius: 16px; }
.cp-cta--mid.cp-cta--k-resource { background: var(--cp-sky); border-color: #dce6f7; }
.cp-cta--mid:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service) { background: var(--cp-lav); border: 1px solid #e3dbf3; }
.cp-cta--mid::after { display: none; }
.cp-cta--mid .cp-cta__ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--cp-purple); font-family: var(--cp-latin); font-size: 11px; font-weight: 700; }
.cp-cta--mid.cp-cta--k-resource .cp-cta__ic { color: var(--cp-c2); }
.cp-cta--mid b { display: block; font-size: 14.5px; color: var(--cp-heading); line-height: 1.5; }
.cp-cta--mid small { display: block; margin-top: 2px; font-size: 12px; color: var(--cp-sub); }
.cp-cta--mid .cp-btn { height: 40px; padding: 0 18px; font-size: 13px; }
.cp-a--nomid .cp-cta--mid { display: none; }
.cp-prose .cp-cta > * + * { margin-top: 0; }
.cp-prose .cp-cta p { margin: 0; }
.cp-prose .cp-cta .cp-cta__h { margin: 0 0 8px; }
.cp-prose .cp-cta .cp-cta__eyebrow { margin: 0 0 8px; }
.cp-prose .cp-cta .cp-cta__note { margin-top: 10px; }
/* PR label under the title: affiliate only (decided 2026-09-25) */
.cp-a .cp-pr-label { display: none; }
.cp-a--affiliate .cp-pr-label { display: block; }
/* newsletter = the site-wide 副 CTA: rail card on PC, after the related list on phones */
.cp-news-cta { position: relative; overflow: hidden; padding: 20px 20px 18px; border-radius: 16px; color: var(--cp-heading); background: linear-gradient(140deg, #a6f0e6 0%, #77e3d6 48%, #b8e3fa 100%); }
.cp-news-cta::before { content: ""; position: absolute; right: -50px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.cp-news-cta > * { position: relative; z-index: 1; }
.cp-news-cta .cp-cta__eyebrow { color: var(--cp-purple-deep); margin-bottom: 6px; }
.cp-news-cta h2 { margin: 0 0 6px; font-size: 15.5px; line-height: 1.55; color: var(--cp-heading); }
.cp-news-cta p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; color: var(--cp-heading); }
.cp-news-cta .cp-btn { height: 42px; padding: 0 18px; font-size: 13px; background: var(--cp-purple-deep); width: 100%; justify-content: center; }
.cp-news-cta .cp-btn:hover { background: #3e1e5a; }

/* ---------- right rail ---------- */
.cp-arail { display: flex; flex-direction: column; min-width: 0; }
.cp-arail__top { flex: 1 0 auto; }
.cp-arail__sticky { position: sticky; top: calc(var(--cp-hd-h) + 24px); display: grid; gap: 18px; }
.cp-atoc { padding: 20px 20px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--cp-line); }
.cp-atoc__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--cp-heading); }
.cp-atoc__h small { font-family: var(--cp-latin); font-size: 12px; font-weight: 500; color: var(--cp-muted); }
.cp-atoc__bar { height: 4px; border-radius: 2px; background: var(--cp-lav); overflow: hidden; margin: 0 0 12px; }
.cp-atoc__bar i { display: block; width: 0; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--cp-violet), var(--cp-teal)); transition: width .2s; }
.cp-atoc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--cp-line); counter-reset: cp-atoc; max-height: calc(100vh - var(--cp-hd-h) - 260px); overflow: auto; scrollbar-width: thin; }
.cp-atoc li { counter-increment: cp-atoc; }
.cp-atoc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; margin-left: -2px; padding: 6px 8px 6px 12px; border-left: 2px solid transparent; font-size: 13px; line-height: 1.55; color: var(--cp-sub); }
.cp-atoc a::before { content: counter(cp-atoc, decimal-leading-zero); font-family: var(--cp-latin); font-size: 11.5px; font-weight: 600; color: var(--cp-muted); padding-top: 2px; }
.cp-atoc a.is-on { border-color: var(--tc); color: var(--cp-heading); font-weight: 700; }
.cp-atoc a.is-on::before { color: var(--tc); }
.cp-atoc a.is-done::before { color: var(--cp-teal-deep); }
.cp-arail .cp-scard { margin-top: 24px; }
.cp-aess { list-style: none; margin: 0; padding: 0; counter-reset: cp-aess; }
.cp-aess li { counter-increment: cp-aess; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--cp-line); font-size: 13px; line-height: 1.55; }
.cp-aess li:first-child { border-top: 0; padding-top: 0; }
.cp-aess li::before { content: counter(cp-aess); width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--cp-line-strong); display: grid; place-items: center; font-family: var(--cp-latin); font-size: 11px; font-weight: 600; color: var(--cp-muted); }
.cp-aess li.is-read::before { content: ""; background: var(--cp-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; border-color: var(--cp-teal); }
.cp-aess a { color: var(--cp-sub); }
.cp-aess li[aria-current] a { color: var(--tc); font-weight: 700; }
.cp-aess a:hover { color: var(--cp-purple); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --cp-hd-h: 60px; }
  .cp-ah__in { padding: 0 16px; }
  .cp-ah__head { padding-top: 18px; }
  .cp-ah h1 { font-size: 23px; margin-bottom: 12px; }
  .cp-ah__meta { gap: 6px 14px; font-size: 12px; }
  .cp-ah__eye { margin: 18px 0 -40px; border-radius: 12px; }
  .cp-abody { grid-template-columns: minmax(0, 1fr); padding: 64px 16px 64px; }
  .cp-arail__top .cp-atoc { display: none; }
  .cp-arail__sticky { position: static; }
  .cp-arail .cp-scard { margin-top: 40px; }
  .cp-a--one .cp-arail { display: block; }
  .cp-apage { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .cp-apage > .cp-ah::before { left: 0; width: 100%; }
  .cp-apage > .cp-ah .cp-ah__in { padding: 0 16px; }
  .cp-apage > .cp-amain { padding: 64px 16px 0; }
  .cp-apage > .cp-arail { grid-column: 1; grid-row: 3; padding: 28px 16px 64px; }
  .cp-sq { display: none; }
  .cp-cta--mid { grid-template-columns: 36px minmax(0, 1fr); padding: 12px 14px; }
  .cp-cta--mid .cp-btn { grid-column: 2; justify-self: start; }
  .cp-cta--big, .cp-cta--normal { padding: 20px 18px; border-radius: 18px; }
  .cp-cta--big:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service), .cp-cta--normal:is(.cp-cta--k-product, .cp-cta--k-tool-free, .cp-cta--k-service) { padding: 0 18px 20px; }
  .cp-cta .cp-cta__grid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
  .cp-cta__strip { margin: 0 -18px 16px !important; padding: 10px 18px !important; flex-direction: column; align-items: flex-start; }
  .cp-cta__shot { display: none; }
  .cp-cta--big.cp-cta--k-affiliate .cp-cta__shot { display: grid; max-width: 220px; }
  .cp-cta .cp-cover { display: none; }
  .cp-cta__h { font-size: 18.5px; }
  .cp-cta .cp-btn { white-space: normal; height: auto; min-height: 48px; padding: 10px 20px; text-align: center; line-height: 1.4; }
  .cp-cta__btns { display: grid; }
  .cp-a .cp-author-box { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 18px 16px; }
  .cp-a .cp-author-box__avatar img { width: 64px; height: 64px; }
  .cp-a .cp-related { margin-top: 48px; }
  .cp-a .cp-related__title { font-size: 19px; }
  .cp-a .cp-related__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cp-a .cp-related__list a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--cp-line); border-radius: 0; background: none; }
  .cp-a .cp-related__list a:hover { transform: none; box-shadow: none; }
  .cp-a .cp-related__thumb { border-radius: 8px; }
  .cp-a .cp-related__body { padding: 0; }
  .cp-a .cp-related__name { margin-top: 4px; font-size: 14px; line-height: 1.55; }
  .cp-a .cp-related__date { margin-top: 4px; }
  .cp-a .cp-related__thumb .cp-thumb-fallback { padding: 6px 8px; font-size: 9.5px; line-height: 1.3; }
}

/* ---------- CONTENTS (inline, before the first H2) and PR label (from article.css) ---------- */
.cp-pr-label {
  display: block;
  margin: 0 0 1.4em;
  padding: 0.7em 1em;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--cp-sub);
  background: var(--cp-bg-soft);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-sm);
}

.cp-pr-label strong {
  margin-right: 0.6em;
  padding: 0.1em 0.5em;
  color: #fff;
  background: var(--cp-sub);
  border-radius: 3px;
  font-size: 0.9em;
}

/* Table of contents */
.cp-toc {
  margin: 2em 0 0;
  padding: 1.3em 1.5em 1.2em;
  background: var(--cp-bg-soft);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
}

.cp-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--cp-latin);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cp-heading);
  cursor: pointer;
  list-style: none;
}

.cp-toc summary::-webkit-details-marker {
  display: none;
}

.cp-toc summary span {
  font-family: var(--cp-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--cp-muted);
}

.cp-toc summary span::after {
  content: "閉じる";
}

.cp-toc:not([open]) summary span::after {
  content: "開く";
}

.cp-toc__list {
  margin: 0.9em 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cp-toc;
  font-size: 0.92rem;
  line-height: 1.6;
}

.cp-toc__list > li {
  counter-increment: cp-toc;
  margin-top: 0.55em;
}

.cp-toc__list > li > a {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  font-weight: 700;
}

.cp-toc__list > li > a::before {
  content: counter(cp-toc, decimal-leading-zero);
  font-family: var(--cp-latin);
  color: var(--cp-purple);
}

.cp-toc__list ol {
  margin: 0.35em 0 0 2em;
  padding: 0;
  list-style: none;
}

.cp-toc__list ol li {
  margin-top: 0.3em;
  font-size: 0.92em;
}

.cp-toc__list ol a::before {
  content: "\2013\00a0";
  color: var(--cp-line-strong);
}

.cp-toc a {
  color: var(--cp-text);
  text-decoration: none;
}

.cp-toc a:hover {
  color: var(--cp-purple);
  text-decoration: underline;
}

.cp-toc__list ol { display: none; }
.cp-cta--noshot .cp-cta__grid { grid-template-columns: minmax(0, 1fr) !important; }

/* ---------- base rules of the author box and related cards (moved from article.css) ---------- */
/* Author box */
.cp-author-box {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  margin: 3.2em 0 0;
  padding: 1.5em;
  background: var(--cp-bg-soft);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
}

.cp-author-box__avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.cp-author-box__eyebrow {
  margin: 0;
  font-family: var(--cp-latin);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cp-purple);
}

.cp-author-box__name {
  margin: 0.2em 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cp-heading);
}

.cp-author-box__name a {
  color: inherit;
  text-decoration: none;
}

.cp-author-box__title {
  margin: 0.1em 0 0;
  font-size: 0.8rem;
  color: var(--cp-muted);
}

.cp-author-box__bio {
  margin: 0.7em 0 0;
  font-size: 0.88rem;
  line-height: 1.8;
}

.cp-author-box__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0.7em 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.cp-author-box__links a {
  color: var(--cp-purple);
}

@media (max-width: 560px) {
  .cp-author-box {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 1.2em;
  }
  .cp-author-box__avatar img {
    width: 64px;
    height: 64px;
  }
}

/* Related posts */
.cp-related {
  margin: 3em 0 0;
}

.cp-related__title {
  margin: 0 0 1em;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cp-heading);
}

.cp-related__title span {
  display: block;
  font-family: var(--cp-latin);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cp-purple);
}

.cp-related__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-related__list a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cp-related__list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(83, 43, 118, 0.1);
}

.cp-related__thumb {
  display: block;
  aspect-ratio: 1200 / 630;
  background: var(--cp-purple-tint);
}

.cp-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cp-related__body {
  display: block;
  padding: 10px 12px 14px;
}

.cp-related__cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cp-purple);
}

.cp-related__name {
  display: block;
  margin-top: 0.25em;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--cp-heading);
}

@media (max-width: 760px) {
  .cp-related__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .cp-related__list {
    grid-template-columns: 1fr;
  }
  .cp-related__list a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
  }
  .cp-related__body {
    padding: 8px 10px;
  }
}

/* ---------- article-page overrides of the author box and related cards (after the base rules) ---------- */
/* ---------- author box ---------- */
.cp-a .cp-author-box { grid-template-columns: 96px minmax(0, 1fr); gap: 22px; margin-top: 3em; padding: 26px 28px; background: #fff; border-radius: 20px; }
.cp-a .cp-author-box__avatar img { width: 96px; height: 96px; }
.cp-a .cp-author-box__eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; border-radius: 1px; background: var(--cp-teal); vertical-align: middle; margin: -2px 10px 0 0; }
.cp-a .cp-author-box__name { font-size: 17px; }
.cp-a .cp-author-box__title { font-size: 12.5px; }
.cp-a .cp-author-box__bio { font-size: 14px; line-height: 1.85; color: var(--cp-text); }
.cp-author-box__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cp-line); font-size: 12.5px; color: var(--cp-muted); }
.cp-author-box__foot a { font-weight: 700; }
.cp-a .cp-author-box__links { margin-top: 10px; }

/* ---------- related ---------- */
.cp-a .cp-related { margin-top: 64px; }
.cp-a .cp-related__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 20px; font-size: 22px; }
.cp-a .cp-related__title span { font-family: var(--cp-latin); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; color: var(--cp-purple); }
.cp-a .cp-related__title span::before { content: ""; display: inline-block; width: 18px; height: 2px; border-radius: 1px; background: var(--cp-teal); vertical-align: middle; margin: -2px 10px 0 0; }
.cp-a .cp-related__list { gap: 24px 20px; }
.cp-a .cp-related__list a { padding: 8px 8px 18px; border-radius: 18px; border-color: #ece6f5; }
.cp-a .cp-related__list a:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(83, 43, 118, .45); }
.cp-a .cp-related__thumb { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; line-height: 0; }
.cp-a .cp-related__thumb svg { width: 100%; height: auto; display: block; }
.cp-a .cp-related__body { padding: 12px 8px 0; }
.cp-a .cp-related__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cp-a .cp-related__cat { font-size: 11.5px; color: var(--tc); }
.cp-a .cp-related__name { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.cp-a .cp-related__date { display: block; margin-top: 8px; font-family: var(--cp-latin); font-size: 12px; color: var(--cp-muted); }


/* Phone: the author box uses the full width (avatar beside the name only; bio and links below) */
@media (max-width: 560px) {
  .cp-a .cp-author-box { display: block; }
  .cp-a .cp-author-box__avatar { float: left; margin: 0 14px 8px 0; }
  .cp-a .cp-author-box__avatar img { width: 56px; height: 56px; }
  .cp-a .cp-author-box__bio, .cp-a .cp-author-box__links, .cp-a .cp-author-box__foot { clear: both; }
}

/* Phone: list thumbnails full width above the title (案A, 2026-10-08). The eyecatch carries the theme word and copy;
   at 120px wide it could not be read. */
@media (max-width: 560px) {
  .cp-a .cp-related__list a { grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; padding: 16px 0; }
  .cp-a .cp-related__thumb { border-radius: 12px; }
  .cp-a .cp-related__thumb .cp-thumb-fallback { padding: 14px 16px; font-size: 15px; }
  .cp-a .cp-related__list li:nth-child(n+5) { display: none; } /* 4 on phones: full-width cards make 6 too long */
}
