/* 経営ROI診断 共通スタイル v1（デザイン刷新 2026-10-19〜）
 * 正本＝design/DESIGN.md・値＝design/tokens.json（:root の値はこれと一致させる）。
 * 対象＝トップ（public/top/index.html）・記事（public/guide/<slug>/index.html）。
 * 🔴 見た目だけを変える。本文・見出し・リンクの文字は HTML 側で変えない（scripts/seo_lock.mjs で検査）。
 *    英字の添え書きなど飾りの文字は、CSS の疑似要素で出し、読み上げない（content: … / ""）。
 */

/* ---------- 値（tokens.json と一致） ---------- */
:root {
  --ink: #101317;
  --sub: #4a5059;
  --hair: #cfd3d8;
  --paper: #ffffff;
  --mist: #f4f6f1;
  --g1: #e9b949;
  --g2: #8cc56c;
  --g3: #1d8a63;
  --gt: #136f4f;
  --cta: #0f7a55;
  --navy: #12264a;
  --navy-mid: #143a55;
  --deep: #0f4a3c;
  --gold: #f0cf7a;
  --pale: #dfe5ee;
  --night: #0e1114;
  --marker: rgba(233, 185, 73, 0.5);
  --mc: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --gc: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mo: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 20px;
  --max: 1280px;
  --band: linear-gradient(195deg, var(--g1) 0%, var(--g2) 52%, var(--g3) 100%);
  --band-h: linear-gradient(90deg, var(--g1), var(--g3));
  --last: linear-gradient(90deg, #e9b949 0%, #e9b949 45%, #8cc56c 70%, #1d8a63 100%);
  --last-sp: linear-gradient(180deg, #e9b949 0%, #e9b949 55%, #8cc56c 80%, #1d8a63 100%);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; } }

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--gc); font-size: 16px; line-height: 1.9; line-break: strict; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--gt); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gt); outline-offset: 3px; }
.sr-only, .hero-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: normal; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* 英字の添え書き（飾り・読み上げない） */
[data-en]::before { content: attr(data-en) / ""; font-family: var(--mo); font-size: 11px; font-weight: 400; letter-spacing: .22em; color: var(--gt); display: flex; align-items: center; gap: 14px; }
[data-en]::after { content: none; }
p[data-en] { margin: 0; }
p[data-en]::before { width: max-content; }

/* ---------- 申込ボタン ---------- */
.cta, .btn-cta, .cta-btn, .nav-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px;
  background: var(--cta); color: #fff; padding: 14px 18px 14px 26px; font-family: var(--gc); font-size: 16px; font-weight: 700; letter-spacing: .04em;
  text-decoration: none; border: 0; position: relative; overflow: hidden; box-shadow: 0 10px 24px -14px var(--cta); cursor: pointer;
}
.ar, .cta-btn::after, .nav-cta::after { width: 28px; height: 28px; flex: none; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.ar::before { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateX(-1px) rotate(45deg); }
.cta-btn::after, .nav-cta::after { content: "›" / ""; font-size: 17px; line-height: 1; padding-bottom: 2px; font-weight: 700; }
.cta:hover, .btn-cta:hover, .cta-btn:hover, .nav-cta:hover { background: #0b6b4a; }
.cta-sheen { position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .cta-sheen { animation: roi-sheen 2.6s 1.6s ease-out 1 both; }
}
@keyframes roi-sheen { to { left: 130%; } }

/* ---------- ヘッダー（トップ・記事で共通） ---------- */
.site-header { position: relative; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo, .brand { display: inline-block; font-family: var(--mc); font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: .02em; }
.logo::before, .brand::before { content: ""; display: inline-block; vertical-align: -3px; margin-right: 12px; width: 9px; height: 20px; background: var(--band); transform: skewX(-24deg); }
.logo em, .brand .accent { font-style: normal; color: inherit; }
.gnav { display: none; gap: 26px; font-size: 13px; }
.gnav a { color: var(--sub); text-decoration: none; }
.gnav a:hover { color: var(--ink); text-decoration: underline; }
.header-cta, .nav-cta { min-height: 40px; padding: 8px 10px 8px 16px; font-size: 13px; gap: 10px; box-shadow: none; }
.header-cta .ar, .nav-cta::after { width: 20px; height: 20px; font-size: 13px; }
@media (min-width: 1024px) { .gnav { display: flex; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--night); color: #c9cec8; font-size: 13px; }
.site-footer .wrap, .site-footer > p { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding-top: 40px; padding-bottom: 36px; margin: 0; }
.site-footer > p { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { color: #5d636b; }
.site-footer :focus-visible { outline-color: #ffffff; }

/* ======================================================================
 * トップ
 * ==================================================================== */
.hero { position: relative; overflow: hidden; }
.hero .band { position: absolute; z-index: 0; left: calc(50% + 60px); top: 0; width: 250px; height: 570px; background: var(--band); transform: skewX(-28deg); transform-origin: bottom left; }
.hero .band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0)); }
.hero .trail { position: absolute; z-index: 0; left: calc(50% + 370px); top: 0; width: 1px; height: 520px; background: linear-gradient(180deg, var(--g3), rgba(29, 138, 99, 0)); transform: skewX(-28deg); transform-origin: bottom left; }
@media (prefers-reduced-motion: no-preference) {
  .hero .band, .hero .trail { animation: roi-grow 1.8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .trail { animation-delay: .35s; }
}
@keyframes roi-grow { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-in { position: relative; z-index: 1; padding-top: 88px; }
.hero-title { font-family: var(--mc); font-weight: 800; font-size: clamp(20px, calc((100vw - 2 * var(--gutter)) / 9.4), 104px); line-height: 1.18; letter-spacing: .01em; margin: 26px 0 0; }
.hero-title .ln { display: block; }
.hero-title .k { font-size: .86em; }
.key { margin: 30px 0 0; display: flex; align-items: center; gap: 14px; color: var(--gt); font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.key::before { content: ""; width: 22px; height: 3px; background: var(--band-h); flex: none; }
.hero .rule { height: 1px; background: var(--ink); margin-top: 52px; }
.hero .below { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 32px 0 88px; align-items: start; }
.hero-lead { margin: 0; max-width: 40em; line-height: 2.05; }
.mk { font-weight: 700; background: linear-gradient(transparent 64%, var(--marker) 64%); padding: 0 2px; }
.hero .acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.play { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 2px; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.play .tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.vdesc { margin: 18px 0 0; font-size: 14px; color: var(--sub); line-height: 1.85; max-width: 40em; }
.rintro { min-width: 0; }
.fig-cap { margin: 0; font-family: var(--mo); font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--sub); display: flex; justify-content: space-between; }
.fig-cap::after { content: "表示はサンプルです" / ""; font-family: var(--gc); letter-spacing: .04em; }
.fig { display: block; width: 100%; height: auto; margin-top: 10px; }

.sec-h2 { font-family: var(--mc); font-weight: 800; font-size: clamp(28px, 4vw, 54px); line-height: 1.3; margin: 18px 0 0; letter-spacing: .01em; }
.sec-lead { margin: 22px 0 0; max-width: 40em; }

/* 3つのこと（紺→深緑の面） */
.three { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, var(--navy) 0%, var(--navy-mid) 55%, var(--deep) 100%); }
.three::after { content: "ROI" / ""; position: absolute; right: -30px; bottom: -70px; font-family: var(--mc); font-weight: 800; font-size: clamp(200px, 30vw, 420px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(240, 207, 122, .16); pointer-events: none; }
.three .slash { position: absolute; right: 90px; top: -60px; width: 60px; height: 230px; background: var(--band); transform: skewX(-28deg); }
.three .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 80px; padding-top: 112px; padding-bottom: 120px; }
.three [data-en]::before { color: var(--gold); }
.three .sec-h2 { color: #fff; }
.three .sec-bridge { margin: 26px 0 0; color: var(--pale); line-height: 2; }
.things { display: grid; }
.thing { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 24px; padding: 30px 0; border-top: 1px solid rgba(240, 207, 122, .26); }
.thing:last-child { border-bottom: 1px solid rgba(240, 207, 122, .26); }
.thing::before { font-family: var(--mo); font-size: 11px; letter-spacing: .2em; color: var(--gold); padding-top: 10px; }
.thing:nth-child(1)::before { content: "YOUR TYPE" / ""; }
.thing:nth-child(2)::before { content: "INVESTMENT" / ""; }
.thing:nth-child(3)::before { content: "NEXT MOVE" / ""; }
.thing h3 { font-family: var(--mc); font-weight: 800; font-size: 28px; line-height: 1.4; margin: 0; color: var(--gold); }
.thing p { margin: 8px 0 0; color: var(--pale); line-height: 1.95; }
.three :focus-visible { outline-color: #fff; }

/* 診断の流れ（右上がりの階段） */
.flow { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; }
.flow > .sec-head { grid-column: 1; }
.flow .flow-note { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 14px; color: var(--sub); }
.flow-steps { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.fstep { padding: 26px 24px 28px; border-top: 1px solid var(--ink); border-left: 1px solid var(--hair); }
.fstep:nth-child(1) { margin-top: 84px; border-left: 0; padding-left: 0; }
.fstep:nth-child(2) { margin-top: 56px; }
.fstep:nth-child(3) { margin-top: 28px; }
.fstep:last-child { border-top: 3px solid; border-image: var(--band-h) 1; }
.f-num { display: block; font-family: var(--mc); font-weight: 800; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.fstep:last-child .f-num { color: var(--ink); }
.fstep p { margin: 16px 0 0; font-weight: 700; line-height: 1.75; }
.fstep small { display: block; font-size: 14px; font-weight: 400; color: var(--sub); margin-top: 4px; }

/* 診断のあとにできること（淡い面＋斜めの切り欠き） */
.after-sec { background: var(--mist); clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%); }
.after-sec .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); padding-top: 110px; padding-bottom: 110px; }
.after { display: contents; }
.after-card { display: block; padding: 8px 40px; border-left: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
.after-card::before { display: block; font-family: var(--mo); font-size: 11px; letter-spacing: .2em; color: var(--gt); }
a.after-card::before { content: "CONSULTATION" / ""; }
article.after-card::before { content: "SAVE ON LINE" / ""; }
a.after-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.after-card h3 { font-family: var(--mc); font-weight: 800; font-size: 30px; line-height: 1.4; margin: 12px 0 0; }
.after-card p { margin: 10px 0 0; color: var(--sub); line-height: 1.95; }
.after-sec .sec-h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.35; }

/* コラム（目次風） */
.columns .wrap { padding-top: 120px; padding-bottom: 120px; }
.columns .head { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 80px; align-items: end; }
.columns .sec-bridge { margin: 0; color: var(--sub); line-height: 2; }
.col-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; }
.col-card { display: grid; grid-template-columns: 8em minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px 0; border-top: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
.col-cat { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--gt); letter-spacing: .04em; }
.col-cat::before { content: ""; width: 6px; height: 12px; background: var(--band); transform: skewX(-24deg); flex: none; }
.col-card h3 { margin: 0; font-family: var(--mc); font-weight: 800; font-size: 18px; line-height: 1.6; }
.col-arrow { font-size: 12px; color: var(--sub); white-space: nowrap; }
.col-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.col-wrap-more { margin: 32px 0 0; }
.col-more { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); }

/* よくある質問 */
.faq-sec .wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 80px; padding-bottom: 120px; }
.faq-item { border-top: 1px solid var(--hair); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-item summary { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 10px; align-items: baseline; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q { font-family: var(--mc); font-weight: 800; font-size: 20px; }
.faq-item .a { margin: 8px 0 0 calc(3em + 10px); color: var(--sub); }

/* 最後の申込（帯の色の面） */
.final { position: relative; overflow: hidden; background: var(--last); color: var(--night); }
.final::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-62deg, rgba(255, 255, 255, 0) 0 120px, rgba(255, 255, 255, .14) 120px 121px); }
.final .wrap { position: relative; padding-top: 110px; padding-bottom: 110px; }
.final .wrap > * { max-width: 55%; }
.final [data-en]::before { color: var(--night); }
.final h2 { margin: 18px 0 0; font-family: var(--mc); font-weight: 800; font-size: clamp(28px, 4vw, 54px); line-height: 1.35; }
.final .btn-cta { margin-top: 32px; background: #fff; color: var(--night); box-shadow: 0 16px 32px -18px rgba(14, 17, 20, .8); }
.final .btn-cta:hover { background: #f4f6f1; }
.final :focus-visible { outline-color: var(--night); }

/* 動画の小窓（クリック後に開く） */
.yt-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(14, 17, 20, .86); padding: 20px; }
.yt-modal.open { display: flex; }
.yt-box { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; background: #000; overflow: visible; }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink); display: grid; place-items: center; }
.yt-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.yt-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--navy); color: var(--gold); text-align: center; padding: 22px; }
.yt-msg p { font-family: var(--mc); font-size: 18px; font-weight: 800; margin: 0; }
.yt-cta { display: inline-flex; align-items: center; min-height: 48px; background: var(--cta); color: #fff; font-weight: 700; padding: 12px 24px; text-decoration: none; }

/* トップ：画面幅ごと */
@media (max-width: 1023px) {
  .hero .band { left: auto; right: 40px; width: 160px; height: 420px; }
  .hero .trail { display: none; }
  .three .wrap, .columns .head, .faq-sec .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .col-grid { grid-template-columns: minmax(0, 1fr); }
  .after-sec .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .after-sec .wrap > div:first-child { grid-column: 1 / -1; margin-bottom: 26px; }
  .after-card:first-of-type { border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
  .hero .band { right: -10px; width: 80px; height: 245px; }
  .hero-in { padding-top: 40px; }
  .hero-title { margin-top: 18px; }
  .key { font-size: 18px; margin-top: 20px; }
  .hero .rule { margin-top: 30px; }
  .hero .below { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 24px 0 56px; }
  .hero .acts .cta { width: 100%; }
  .three .slash { right: 20px; top: -40px; width: 36px; height: 140px; }
  .three .wrap { padding-top: 72px; padding-bottom: 80px; }
  .thing { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; }
  .thing::before { padding-top: 0; }
  .thing h3 { font-size: 22px; }
  .flow { padding-top: 72px; padding-bottom: 72px; grid-template-columns: minmax(0, 1fr); }
  .flow .flow-note { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .flow-steps { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .fstep, .fstep:nth-child(n) { margin-top: 0; border-left: 0; padding: 18px 0 18px; display: grid; grid-template-columns: 3.4em minmax(0, 1fr); column-gap: 10px; }
  .fstep:nth-child(1) { margin-right: 60px; }
  .fstep:nth-child(2) { margin-right: 40px; }
  .fstep:nth-child(3) { margin-right: 20px; }
  .f-num { font-size: 44px; }
  .fstep p { margin-top: 0; }
  .after-sec { clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%); }
  .after-sec .wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 80px; padding-bottom: 64px; }
  .after-card, .after-card:first-of-type { border-left: 1px solid var(--hair); padding: 0 0 0 16px; }
  .after-card h3 { font-size: 22px; }
  .columns .wrap { padding-top: 72px; padding-bottom: 72px; }
  .col-grid { margin-top: 28px; }
  .col-card { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 18px 0; }
  .col-cat { grid-column: 1 / -1; }
  .col-card h3 { font-size: 16px; }
  .faq-sec .wrap { padding-bottom: 72px; }
  .faq-item .a { margin-left: 0; }
  .final { background: var(--last-sp); }
  .final .wrap { padding-top: 72px; padding-bottom: 72px; }
  .final .wrap > * { max-width: 100%; }
  .final .btn-cta { width: 100%; }
}

/* ======================================================================
 * 記事（/guide/<slug>/）
 * ==================================================================== */
.art-layout { position: relative; overflow-x: clip; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 280px); column-gap: 72px; justify-content: space-between; }
.art-layout::before { content: ""; position: absolute; right: 150px; top: -1px; width: 90px; height: 300px; background: var(--band); transform: skewX(-28deg); opacity: .95; pointer-events: none; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
.art-layout > main { grid-column: 1; min-width: 0; position: relative; }
.toc { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 24px; margin-top: 320px; font-size: 13px; }
.toc details { border-top: 1px solid var(--ink); padding-top: 12px; }
.toc summary { font-weight: 700; letter-spacing: .2em; cursor: pointer; list-style: none; min-height: 32px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; line-height: 1.6; }
.toc a { display: block; padding: 7px 0 7px 12px; border-left: 1px solid var(--hair); color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--gt); }
.breadcrumb { padding-top: 26px; font-size: 13px; color: var(--sub); }
.breadcrumb a { color: var(--sub); }
.breadcrumb ol, .breadcrumb ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
article > header { position: relative; padding: 40px 0 48px; border-bottom: 1px solid var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--gt); letter-spacing: .06em; }
.eyebrow::before { content: ""; width: 6px; height: 12px; background: var(--band); transform: skewX(-24deg); }
article h1 { font-family: var(--mc); font-weight: 800; font-size: clamp(26px, 4.2vw, 44px); line-height: 1.45; margin: 16px 0 0; letter-spacing: .01em; text-wrap: balance; }
.meta { margin: 18px 0 0; font-size: 13px; color: var(--sub); }
.lead { margin: 26px 0 0; max-width: 40em; line-height: 2; padding-left: 20px; border-left: 3px solid; border-image: linear-gradient(180deg, var(--g1), var(--g3)) 1; }
article h2 { font-family: var(--mc); font-weight: 800; font-size: clamp(23px, 2.6vw, 32px); line-height: 1.45; margin: 72px 0 0; padding-top: 22px; border-top: 1px solid var(--ink); position: relative; scroll-margin-top: 24px; }
article h2::before { content: ""; position: absolute; left: 0; top: -2px; width: 56px; height: 3px; background: var(--band-h); }
article h3 { font-family: var(--mc); font-weight: 800; font-size: clamp(19px, 2vw, 22px); line-height: 1.5; margin: 40px 0 0; }
article p { margin: 20px 0 0; }
article ul, article ol { margin: 20px 0 0; padding-left: 1.4em; }
article li + li { margin-top: 8px; }
article strong { font-weight: 700; }
.answer { background: var(--mist); padding: 20px 22px 20px 24px; line-height: 2; position: relative; margin-top: 22px; }
.answer::before { content: "要点" / ""; display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--gt); margin-bottom: 6px; }
.answer::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--g1), var(--g3)); }
.formula { border: 1px solid var(--ink); padding: 18px 22px; font-family: var(--mc); font-weight: 800; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.7; }
.note, .footnote { font-size: 14px; color: var(--sub); padding-left: 16px; border-left: 1px solid var(--hair); }
.footnote { border-left: 0; padding-left: 0; }
.inline-link a { font-weight: 700; }
.cite { font-size: 13px; color: var(--sub); display: flex; gap: 10px; align-items: baseline; }
.cite::before { content: ""; flex: none; width: 6px; height: 12px; background: var(--band); transform: skewX(-24deg); }
.ctbl-wrap { margin-top: 24px; overflow-x: auto; }
.ctbl { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; line-height: 1.7; }
.ctbl th { text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
.ctbl td { padding: 14px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ctbl td:first-child { font-family: var(--mc); font-weight: 800; }
.ctbl-cap { font-size: 13px; color: var(--sub); }
ol.flow { list-style: none; padding: 0; counter-reset: roi-step; display: grid; }
ol.flow > li { counter-increment: roi-step; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--hair); margin: 0; }
ol.flow > li::before { content: counter(roi-step) / ""; font-family: var(--mc); font-weight: 800; font-size: 38px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--ink); grid-row: span 9; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 12px 0 12px 30px; border-top: 1px solid var(--hair); position: relative; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 6px; border-left: 2px solid var(--gt); border-bottom: 2px solid var(--gt); transform: rotate(-45deg); }
.pattern, .industry { margin-top: 32px; padding: 4px 0 4px 22px; border-left: 3px solid; border-image: linear-gradient(180deg, var(--g1), var(--g3)) 1; }
.pattern h3, .industry h3 { margin-top: 0; }
.pat-cause, .pit { background: var(--mist); padding: 14px 18px; font-size: 15px; }
.field-note { margin-top: 40px; background: var(--mist); padding: 28px 28px 24px; position: relative; }
.field-note::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 3px; background: var(--band-h); }
.field-note__label { margin: 0; font-family: var(--mc); font-weight: 800; font-size: 18px; }
.field-note__by, .field-note__disclaimer { font-size: 13px; color: var(--sub); }
.refs { list-style: none; padding: 0; font-size: 14px; }
.refs li { padding: 12px 0; border-top: 1px solid var(--hair); margin: 0; }
.refs a { word-break: break-all; font-size: 13px; }
dl.faq { margin: 18px 0 0; }
.faq-item dt { font-weight: 700; padding-top: 4px; }
.faq-item dd { margin: 8px 0 0; color: var(--sub); }
article .faq-item { padding: 18px 0; }
.cta-box { margin-top: 64px; position: relative; overflow: hidden; background: var(--last); padding: 40px 36px; color: var(--night); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-62deg, rgba(255, 255, 255, 0) 0 110px, rgba(255, 255, 255, .16) 110px 111px); }
.cta-box > * { position: relative; max-width: 55%; }
.cta-box h2 { margin: 0; padding: 0; border: 0; font-size: clamp(22px, 2.4vw, 28px); }
.cta-box h2::before { display: none; }
.cta-box p { font-size: 15px; margin-top: 14px; }
.cta-box .cta-btn { margin-top: 22px; background: #fff; color: var(--night); box-shadow: 0 16px 32px -18px rgba(14, 17, 20, .8); max-width: none; }
.cta-box .cta-btn:hover { background: var(--mist); }
.cta-box :focus-visible { outline-color: var(--night); }
.related { list-style: none; padding: 0; }
.related li { margin: 0; }
.related a { display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-family: var(--mc); font-weight: 800; font-size: 17px; line-height: 1.6; }
.related a::after { content: "›" / ""; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--gc); font-weight: 700; font-size: 16px; line-height: 1; padding-bottom: 2px; }
.related a:hover { text-decoration: underline; text-underline-offset: 5px; }
code { font-family: var(--mo); font-size: .92em; background: var(--mist); padding: 1px 5px; }

@media (max-width: 1023px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-layout::before { right: -10px; width: 46px; height: 200px; }
  .toc { grid-column: 1; grid-row: 2; position: static; margin: 0; }
  .toc details { border: 1px solid var(--hair); padding: 10px 16px; }
  .art-layout > main { grid-row: 1; }
}
@media (max-width: 1023px) {
  /* スマホ・タブレットでは目次を main の上（パンくず・題名の上）に、閉じた状態で出す。
     目次は本文の外（main の外）に置く決まりのため、題名の下には置けない（題名の下に置くと検索が読む本文が変わる） */
  .art-layout { grid-template-rows: auto auto; }
  .toc { grid-row: 1; margin-top: 20px; }
  .art-layout > main { grid-row: 2; }
}
@media (max-width: 767px) {
  article > header { padding: 26px 0 34px; }
  .answer { padding: 16px 16px 16px 18px; }
  .formula { padding: 14px 16px; }
  .cta-box { padding: 30px 20px; background: var(--last-sp); }
  .cta-box > * { max-width: 100%; }
  .cta-box .cta-btn { display: flex; width: 100%; }
}

/* ======================================================================
 * コラム一覧（/guide/）
 * ==================================================================== */
.page-guide-index main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 64px; position: relative; overflow-x: clip; }
.page-guide-index main::before { content: ""; position: absolute; right: calc(var(--gutter) + 120px); top: -1px; width: 90px; height: 300px; background: var(--band); transform: skewX(-28deg); pointer-events: none; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
.page-guide-index article > header { max-width: 820px; }
.page-guide-index ul.related { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; margin-top: 8px; }
.page-guide-index li.related { padding: 26px 0 28px; border-top: 1px solid var(--hair); }
.page-guide-index li.related a { display: grid; grid-template-columns: minmax(0, 1fr) 26px; padding: 0; border: 0; font-size: 19px; }
.page-guide-index li.related a strong { font-weight: 800; }
.page-guide-index li.related .meta { margin: 10px 0 0; font-size: 12px; font-weight: 700; color: var(--gt); letter-spacing: .04em; }
.page-guide-index li.related p:not(.meta) { margin: 8px 0 0; font-size: 14px; color: var(--sub); line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1023px) { .page-guide-index ul.related { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .page-guide-index main::before { right: -10px; width: 46px; height: 200px; } .page-guide-index li.related a { font-size: 17px; } }

/* ======================================================================
 * 404
 * ==================================================================== */
.page-404 main { min-height: 100vh; max-width: 760px; margin: 0 auto; padding: 96px var(--gutter) 64px; position: relative; overflow-x: clip; }
.page-404 main::before { content: ""; position: absolute; right: var(--gutter); top: 0; width: 80px; height: 260px; background: var(--band); transform: skewX(-28deg); pointer-events: none; -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
.page-404 .code { font-family: var(--mc); font-weight: 800; font-size: clamp(72px, 16vw, 140px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.page-404 h1 { font-family: var(--mc); font-weight: 800; font-size: clamp(24px, 4vw, 36px); line-height: 1.45; margin: 28px 0 0; }
.page-404 .lead { margin: 20px 0 0; padding-left: 20px; border-left: 3px solid; border-image: linear-gradient(180deg, var(--g1), var(--g3)) 1; line-height: 2; }
.page-404 .actions { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 36px; align-items: center; }
.page-404 .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; font-weight: 700; text-decoration: none; }
.page-404 .btn-primary { background: var(--cta); color: #fff; }
.page-404 .btn-primary:hover { background: #0b6b4a; }
.page-404 .btn-secondary { color: var(--ink); border-bottom: 1px solid var(--ink); padding-left: 0; padding-right: 0; }
.page-404 p.brand { margin-top: 56px; font-size: 13px; color: var(--sub); font-family: var(--gc); font-weight: 400; display: block; }
.page-404 p.brand::before { content: none; }

/* 見出しは語の切れ目で折る（Chromium の auto-phrase。他のブラウザでは通常の折り返し） */
.sec-h2, article h1, article h2, article h3, .final h2, .page-404 h1 { word-break: auto-phrase; }

/* 「本文へ移動」で本文（main）にフォーカスを移す。マウス操作では枠を出さず、キーボード操作のときだけ本文の内側に細い線を出す（移動先が見える） */
main[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
main[tabindex="-1"]:focus-visible { outline: 2px solid var(--gt); outline-offset: -2px; }
