/* CHIENOWA 確認版一式（Fable 独立制作 2026-09-10）
   4ページ共通のシェル: 告知帯 / ヘッダー / 道筋（route） / フッター / ボタン / 余白と文字の段階。
   色の役割: 深緑 #174e45 = ブランドと行動（CTA・リンク）。墨緑 #18352f = 見出し。ライム #e7edb5 = 「いまここ」だけ。
   装飾のための図形・グラデーションは使わない。境界線はグループ化が必要な場所だけ。 */

:root {
  --ink: #18352f;
  --text: #283c38;
  --muted: #65736e;
  --green: #174e45;
  --green-deep: #0f3a33;
  --green-tint: #e8f0ec;
  --lime: #e7edb5;
  --lime-deep: #94aa39;
  --wash: #f4f6f0;
  --line: #dbe3dc;
  --paper: #ffffff;
  --note-bg: #f0f2e7;
  --note-text: #53634f;
  --max: 1180px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --radius: 8px;
  --font: Meiryo, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
}
body.has-mobile-bar { padding-bottom: 80px; }

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.35; color: var(--ink); }
p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding-left: 1.3em; }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; color: var(--ink); }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.skip { position: absolute; left: 8px; top: -80px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { top: 8px; }

/* 告知帯 */
.preview-note {
  font-size: 13px; line-height: 1.5; text-align: center; padding: 6px 16px;
  background: var(--note-bg); color: var(--note-text); border-bottom: 1px solid var(--line);
}

/* ヘッダー（4ページ共通） */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-wordmark { height: 28px; width: auto; }
.brand small { font-size: 12px; color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { text-decoration: underline; color: var(--green); }
.nav .nav-cta { background: var(--green); color: #fff; padding: 9px 18px; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.nav .nav-cta:hover { background: var(--green-deep); color: #fff; text-decoration: none; }

/* ボタン */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.3;
  padding: 14px 26px; border-radius: 6px; border: 1px solid transparent; text-align: center; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-onink { background: #fff; color: var(--green); }
.btn-onink:hover { background: var(--lime); color: var(--ink); }
.btn-arrow::after { content: " →"; }

/* 段階 */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--green); }
.section { padding: var(--s6) 0; }
.section-tint { background: var(--wash); }
.section-line { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; }
.section h2 span { display: inline-block; }
.section-head { max-width: 42em; }
.section-lead { margin-top: var(--s2); color: var(--muted); font-size: 17px; }
.note { font-size: 14px; color: var(--muted); line-height: 1.7; }
.micro { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 34em; }

/* 道筋（route）: 4ページ共通の署名。いまここ＝ライム */
.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; counter-reset: route; }
.route-step { position: relative; }
.route-step + .route-step::before {
  content: ""; position: absolute; left: -14px; top: 26px; width: 8px; height: 8px;
  border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg);
}
.route-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px 16px 16px; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--radius);
  background: #fff; color: var(--text); text-decoration: none;
}
a.route-card:hover { border-color: var(--green); }
.route-no { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.route-name { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.route-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
.route-step.is-current .route-card { background: var(--lime); border-color: var(--lime-deep); border-top-color: var(--ink); }
.route-step.is-current .route-no::after { content: "　いまここ"; color: var(--ink); }
.route-step.is-current .route-sub { color: var(--text); }
.route-small { margin-top: var(--s3); }
.route-small .route-card { padding: 10px 12px 12px; }
.route-small .route-name { font-size: 15px; }
.route-small .route-sub { display: none; }

/* フッター（4ページ共通・深緑） */
.site-footer { background: var(--green); color: #fff; padding: var(--s4) 0; font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; gap: var(--s2) var(--s4); flex-wrap: wrap; }
.footer-grid p { color: #fff; }
.footer-note { color: #cfe0da; max-width: 40em; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-links a { color: #fff; }
.site-footer a:focus-visible { outline-color: var(--lime); }

/* ===== LP（media.html） ===== */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.hero h1 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.25; margin-top: 12px; letter-spacing: 0.01em; }
.hero h1 span { display: inline-block; }
.lead { font-size: 17px; margin-top: var(--s3); max-width: 34em; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.hero-actions + .micro { margin-top: 12px; }
.hero-price { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); line-height: 1.7; }
.hero-price-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-right: 8px; }
.hero-price strong { font-size: 17px; }
.hero-price a { margin-left: 6px; white-space: nowrap; }
.hero-visual { margin: 0; }
.hero-visual-link { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 12px 32px rgba(24, 53, 47, 0.12); }
.hero-visual-link:hover { border-color: var(--green); }
.hero-visual figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.6; }

.route-big .route-card { padding: 20px 20px 22px; }
.route-big .route-name { font-size: 19px; }
.route-big .route-sub { font-size: 14px; }
.route-big .route-link { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; }
.route-check { margin-top: var(--s4); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s2) var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.route-check h3 { font-size: 16px; color: var(--muted); }
.route-check ul { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.route-check li { padding-left: 18px; position: relative; }
.route-check li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.anatomy { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.anatomy-item { display: flex; flex-direction: column; padding: var(--s3) var(--s3) var(--s4); border-left: 1px solid var(--line); }
.anatomy-item:first-child { border-left: 0; padding-left: 0; }
.anatomy-item:last-child { padding-right: 0; }
.anatomy-no { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: var(--green); }
.anatomy-name { font-size: 21px; margin-top: 4px; }
.anatomy-body { font-size: 16px; margin-top: 12px; color: var(--text); }
.anatomy-quote { margin-top: var(--s2); font-size: 15px; padding-left: 14px; border-left: 2px solid var(--green); }
.anatomy-quote ul { margin: 0; padding-left: 1.15em; }
.anatomy-quote li + li { margin-top: 6px; }
.anatomy-links { margin-top: auto; padding-top: var(--s3); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 700; }
.anatomy-note { margin-top: var(--s3); max-width: 46em; }

.examples { list-style: none; padding: 0; margin: var(--s4) 0 0; border-top: 1px solid var(--line); }
.example { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s2) var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: start; }
.example-no { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; padding-top: 4px; }
.example-title { font-size: 22px; line-height: 1.45; }
.example-body p + p { margin-top: 12px; }
.example-note { font-size: 14px; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--green); }

/* 合う会社: 箱にせず、罫線と見出し色だけで2列を分ける（序列を平坦にしない） */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); margin-top: var(--s4); }
.fit-col { padding-top: 14px; border-top: 2px solid var(--ink); }
.fit-col--yes h3 { color: var(--green); }
.fit-col--check h3 { color: var(--muted); }
.fit-col h3 { font-size: 18px; }
.fit-col ul { margin-top: var(--s2); padding-left: 0; list-style: none; }
.fit-col li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.fit-col li strong { display: block; }
.fit-col li span { color: var(--muted); font-size: 14px; }

.price-formula { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 2fr); gap: var(--s2); align-items: stretch; margin-top: var(--s4); }
.price-box { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); background: #fff; }
.price-box--monthly { border-color: var(--green); }
.price-name { font-size: 14px; font-weight: 700; color: var(--muted); }
.price-value { font-size: 40px; font-weight: 700; line-height: 1.15; margin-top: var(--s1); color: var(--ink); letter-spacing: 0.01em; }
.price-value span { font-size: 15px; font-weight: 400; margin-left: 4px; color: var(--muted); }
.price-desc { font-size: 14px; color: var(--muted); margin-top: var(--s1); }
.price-plus { display: grid; place-items: center; font-size: 30px; font-weight: 700; color: var(--muted); }
.price-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); margin-top: var(--s1); }
.price-option + .price-option { border-left: 1px solid var(--line); padding-left: var(--s3); }
.scope-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3) var(--s3); margin-top: var(--s4); }
.scope-col h3 { font-size: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.scope-col--you h3 { color: var(--ink); border-bottom-color: var(--ink); }
.scope-col--confirm h3 { color: var(--green); border-bottom-color: var(--green); }
.nowrap { white-space: nowrap; }
.scope-col ul { margin-top: 12px; font-size: 15px; }
.scope-col li + li { margin-top: 6px; }
.price-note { margin-top: var(--s3); max-width: 46em; }

.section-consult { background: var(--ink); color: #fff; }
.section-consult h2, .section-consult h3 { color: #fff; }
.consult-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4) var(--s6); align-items: start; }
.consult-topics { margin-top: var(--s3); font-size: 17px; }
.consult-topics li + li { margin-top: 6px; }
.consult-after { margin-top: var(--s3); padding: var(--s2) var(--s3); border-left: 3px solid var(--lime); }
.consult-after h3 { font-size: 16px; }
.consult-after p { font-size: 15px; color: #dce6dd; margin-top: 6px; }
.consult-main .btn { margin-top: var(--s3); }
.consult-main .micro { color: #c9d3c9; margin-top: 12px; }
.consult-side { border-left: 1px solid rgba(255, 255, 255, 0.28); padding-left: var(--s3); }
.consult-side h3 { font-size: 16px; }
.consult-side ul { margin-top: 12px; font-size: 15px; color: #dce6dd; }
.consult-side li + li { margin-top: 6px; }

.faq { margin-top: var(--s4); max-width: 760px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; color: var(--ink); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 20px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--text); font-size: 15px; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(24, 53, 47, 0.08);
}
.mobile-bar[hidden] { display: none; }
.mobile-bar span { font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--ink); min-width: 0; }
.mobile-bar small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.mobile-bar .btn { padding: 11px 18px; font-size: 15px; white-space: nowrap; }

/* ===== 入口（index.html） ===== */
.home-intro { padding: var(--s5) 0 var(--s4); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s5); align-items: end; }
.home-intro h1 { font-size: clamp(30px, 3vw, 44px); line-height: 1.5; margin-top: 12px; }
.home-intro h1 span { display: block; }
.home-intro .description { font-size: 15px; line-height: 2; color: var(--text); }
.section-head-line { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: var(--s3); }
.section-head-line h2 { font-size: 20px; }
.section-head-line p { font-size: 13px; color: var(--muted); }
.feature { padding: var(--s3) 0 var(--s4); border-bottom: 1px solid var(--line); max-width: 46em; }
.feature a { text-decoration: none; color: inherit; display: block; }
.feature a:hover h3 { color: var(--green); }
.feature h3 { font-size: 28px; line-height: 1.5; margin-top: 8px; }
.feature p { font-size: 15px; color: var(--muted); margin-top: 12px; }
.feature .read-link { display: inline-block; margin-top: var(--s2); font-size: 14px; font-weight: 700; color: var(--green); }
.article-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
.article-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.article-list .cat { font-size: 12px; color: var(--green); font-weight: 700; white-space: nowrap; }
.article-list .pending { font-size: 12px; color: var(--muted); white-space: nowrap; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }
.service { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service h3 { font-size: 18px; }
.service p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.service .btn { margin-top: var(--s2); }
.service .pending { display: inline-block; margin-top: var(--s2); font-size: 13px; color: var(--muted); }
.service--active { border-color: var(--green); border-top: 4px solid var(--green); }

/* ===== 記事（article-*.html） ===== */
.article-main { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: var(--s3) 0 0; }
.article-heading { max-width: 900px; padding: var(--s3) 0 var(--s4); border-bottom: 1px solid var(--line); }
.article-heading h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.55; margin: 10px 0 18px; overflow-wrap: normal; word-break: auto-phrase; }
.article-meta { font-size: 12px; color: var(--muted); max-width: 720px; line-height: 1.9; }
.article-layout { display: grid; grid-template-columns: minmax(0, 740px) 230px; gap: var(--s5); padding: var(--s4) 0 var(--s5); align-items: start; }
.article-content { min-width: 0; font-size: 17px; line-height: 2; }
.article-content > p { margin: var(--s3) 0; }
.article-content h2 { font-size: 26px; line-height: 1.6; margin: var(--s5) 0 var(--s3); padding-top: 20px; border-top: 1px solid var(--line); }
.article-content h3 { font-size: 20px; line-height: 1.7; margin: var(--s4) 0 14px; }
.takeaways { background: var(--wash); border-left: 4px solid var(--lime-deep); padding: 22px 28px; margin: 0 0 var(--s4); font-size: 15px; line-height: 1.85; }
.takeaways .kicker { display: block; margin-bottom: 10px; }
.takeaways ul { margin: 0; }
.takeaways li + li { margin-top: 6px; }
.article-sidebar { position: sticky; top: 24px; }
.article-toc { font-size: 13px; line-height: 1.9; border-top: 2px solid var(--ink); padding-top: 12px; }
.article-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.article-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.article-toc a { display: block; padding: 12px 0; color: var(--muted); text-decoration: none; }
.article-toc a::before { content: counter(toc, decimal-leading-zero) "　"; font-size: 11px; color: var(--green); font-weight: 700; }
.article-toc a:hover { color: var(--green); }
.sidebar-route { margin-top: var(--s3); }
.sidebar-route .route { grid-template-columns: 1fr; gap: 8px; }
.sidebar-route .route-step + .route-step::before { display: none; }
.sidebar-route .route-card { padding: 8px 12px; border-top-width: 1px; }
.sidebar-route .route-name { font-size: 14px; }
.sidebar-route .route-sub { display: none; }
.article-visual { margin: var(--s4) 0; border: 1px solid var(--line); background: var(--wash); padding: var(--s3); }
.article-visual figcaption { font-size: 17px; line-height: 1.6; color: var(--ink); margin-bottom: 18px; }
.article-visual figcaption span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.visual-image { padding: 0; border: 0; background: none; }
.visual-image img { width: 100%; aspect-ratio: 1.7; object-fit: cover; border: 1px solid var(--line); }
.visual-image figcaption { padding: 12px 0 0; margin: 0; font-size: 15px; }
.process-steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.process-steps li { counter-increment: step; padding: 14px 18px 14px 56px !important; background: #fff; position: relative; margin: 0 !important; font-size: 15px; line-height: 1.7; }
.process-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 14px; color: var(--green); font-size: 13px; font-weight: 700; }
.process-steps p { font-size: 14px; line-height: 1.8; margin: 4px 0 0; color: var(--muted); }
.consult-panel { margin-top: var(--s5); padding: var(--s4); background: var(--ink); color: #fff; border-radius: var(--radius); }
.consult-panel h2 { color: #fff; font-size: 24px; border: 0; padding: 0; margin: 0 0 12px; }
.consult-panel p { font-size: 15px; color: #dce6dd; line-height: 1.9; margin: 0 0 var(--s3); }
.consult-panel .micro { color: #c9d3c9; margin-top: 12px; }
.sources, .related { font-size: 14px; line-height: 1.85; margin-top: var(--s4); }
.sources h2, .related h2 { font-size: 18px; margin: 0 0 12px; padding-top: 20px; }
.sources a { overflow-wrap: anywhere; font-size: 13px; }
.sources p, .related p { padding: 10px 0; border-bottom: 1px solid var(--line); }
.related .pending { color: var(--muted); font-size: 13px; }

/* ===== 相談の準備（consult.html） ===== */
.consult-page { padding: var(--s5) 0 var(--s6); }
.consult-page h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.35; margin-top: 12px; }
.consult-page .lead { max-width: 40em; }
.consult-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); margin-top: var(--s4); align-items: start; }
.prep-card { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.prep-card h2 { font-size: 18px; }
.prep-card p { font-size: 15px; margin-top: 8px; }
.prep-card ul { margin-top: 12px; font-size: 15px; }
.prep-card li + li { margin-top: 6px; }
.prep-card + .prep-card { margin-top: var(--s3); }
.prep-form { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.prep-form h2 { font-size: 22px; }
.prep-form .note { margin-top: 8px; }
.field { margin-top: var(--s3); }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); font-size: 15px; padding: 0; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field input[type="text"], .field textarea {
  width: 100%; margin-top: 8px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.choices label { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.prep-actions { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.summary { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--green); border-radius: var(--radius); background: #fff; }
.summary[hidden] { display: none; }
.summary h3 { font-size: 16px; }
.summary pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 15px; line-height: 1.8; margin-top: 12px; padding: 12px 14px; background: var(--wash); border-radius: 6px; }
.summary .note { margin-top: 12px; }
.back-links { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }

/* ===== 端末幅 ===== */
@media (max-width: 1024px) {
  .anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anatomy-item:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .anatomy-item:nth-child(2n) { padding-right: 0; }
  .anatomy-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scope-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: var(--s4); }
}

@media (max-width: 860px) {
  .section { padding: var(--s5) 0; }
  .hero { padding: var(--s4) 0; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-visual { max-width: 640px; }
  .route { grid-template-columns: 1fr 1fr; gap: 16px; }
  .route-step + .route-step::before { display: none; }
  .route-check { grid-template-columns: 1fr; }
  .example { grid-template-columns: 48px minmax(0, 1fr); }
  .example-body { grid-column: 2; }
  .fit-grid { grid-template-columns: 1fr; }
  .price-formula { grid-template-columns: 1fr; }
  .price-plus { min-height: 32px; }
  .consult-grid { grid-template-columns: 1fr; }
  .consult-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: var(--s3); }
  .home-intro { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s4) 0 var(--s3); }
  .feature { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .article-layout { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s3); }
  .article-sidebar { position: static; order: -1; width: 100%; }
  .sidebar-route { display: none; }
  .article-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .consult-layout { grid-template-columns: 1fr; gap: var(--s4); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .article-main { width: calc(100% - 32px); }
  .preview-note { font-size: 12px; }
  .header-inner { height: 64px; }
  /* スマホ: 「記事一覧」だけ残し、「サービス一覧」はフッターへ */
  .nav { gap: 14px; font-size: 13px; }
  .nav a:nth-child(2) { display: none; }
  .brand small { display: none; }
  .brand-wordmark { height: 22px; }
  .nav .nav-cta { padding: 8px 14px; font-size: 13px; }
  /* h1 は各行11文字。375px で 28.5px×11=313.5 ≤ 343、390px で 29.6px。nowrap は使わず、狭ければ行内で折れる */
  .hero h1 { font-size: min(32px, 7.6vw); }
  .lead { font-size: 16px; margin-top: var(--s2); }
  .hero-actions { flex-direction: column; margin-top: var(--s2); }
  .hero-actions .btn { width: 100%; }
  .hero-price { margin-top: var(--s2); }
  .hero-price a { white-space: normal; display: block; margin-left: 0; }
  .section h2 { font-size: 26px; }
  .section-lead { font-size: 15px; }
  .route { grid-template-columns: 1fr; gap: 10px; }
  .route-big .route-card { padding: 14px 16px; }
  .anatomy { grid-template-columns: 1fr; margin-top: var(--s4); }
  .anatomy-item, .anatomy-item:nth-child(2n+1), .anatomy-item:nth-child(2n) { border-left: 0; padding: var(--s3) 0; }
  .anatomy-item + .anatomy-item { border-top: 1px solid var(--line); }
  .anatomy-name { font-size: 18px; }
  .anatomy-links { margin-top: var(--s2); padding-top: 0; }
  .example { grid-template-columns: 1fr; gap: var(--s1); padding: var(--s3) 0; }
  .example-no { padding-top: 0; }
  .example-body { grid-column: 1; margin-top: var(--s1); }
  .example-title { font-size: 19px; }
  .price-options { grid-template-columns: 1fr; }
  .price-option + .price-option { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s2); }
  .price-value { font-size: 32px; }
  .scope-grid { grid-template-columns: 1fr; }
  .consult-topics { font-size: 16px; }
  /* 入口の h1 2行目は13文字。375px で 26px×13=338 ≤ 343 */
  .home-intro h1 { font-size: 26px; }
  .feature h3 { font-size: 22px; }
  .article-heading h1 { font-size: 27px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 23px; margin-top: var(--s4); }
  .article-toc ol { grid-template-columns: 1fr; }
  .takeaways { padding: 18px 20px; font-size: 14px; }
  .article-visual { padding: 18px; }
  .consult-panel { padding: var(--s3); }
  .consult-page h1 { font-size: 26px; }
  .prep-actions .btn { width: 100%; }
  .footer-grid { flex-direction: column; }
}

/* 360px以下: h1 各行11文字を1行に（288px に対し 24px×11=264px）。nowrap は使わない */
@media (max-width: 360px) {
  .hero h1 { font-size: 24px; letter-spacing: 0; }
  .header-inner { gap: 12px; }
  .brand-wordmark { height: 20px; }
}
