:root {
  --ink: #17242b;
  --muted: #5a6a72;
  --line: #d9e2e5;
  --soft-line: #eaf0f2;
  --paper: #ffffff;
  --surface: #f6f9fa;
  --surface-strong: #eaf5f4;
  --brand: #0b6b6f;
  --brand-dark: #075257;
  --brand-soft: #dff1ef;
  --accent: #e96b35;
  --accent-soft: #fff0e8;
  --warning: #8a4b10;
  --warning-soft: #fff5df;
  --danger: #a63838;
  --dark: #102f35;
  --shadow: 0 18px 45px rgba(17, 45, 54, .10);
  --shadow-small: 0 8px 24px rgba(17, 45, 54, .08);
  --radius: 18px;
  --radius-small: 11px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--brand-dark); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.38; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.65rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid rgba(11, 107, 111, .35); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; background: var(--dark); color: #fff; transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: inline-block; margin: 0 0 10px; color: var(--brand); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--brand); font-weight: 800; text-decoration: none; }
.text-link span { transition: transform .18s ease; }
a:hover .text-link span, .text-link:hover span { transform: translateX(4px); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--soft-line); backdrop-filter: blur(12px); }
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 285px; }
.site-brand img { flex: 0 0 auto; }
.site-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.site-brand strong { font-size: 1.05rem; letter-spacing: .02em; }
.site-brand small { margin-top: 3px; color: var(--muted); font-size: .68rem; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a { color: var(--ink); font-size: .91rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav > a:hover { color: var(--brand); }
.site-nav > a.site-nav__cta { padding: 9px 14px; color: #fff; background: var(--brand); border-radius: 10px; box-shadow: 0 7px 18px rgba(11, 107, 111, .16); }
.site-nav > a.site-nav__cta:hover { color: #fff; background: var(--brand-dark); }
.header-search { display: flex; width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.header-search input { min-width: 0; width: 100%; padding: 8px 4px 8px 13px; border: 0; background: transparent; font-size: .85rem; outline: none; }
.header-search button { width: 40px; border: 0; background: transparent; color: var(--brand); font-size: 1.25rem; }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.menu-button span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--ink); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 11px; padding: 11px 19px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; line-height: 1.35; text-align: center; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(11, 107, 111, .20); }
.button--primary:hover { background: var(--brand-dark); color: #fff; }
.button--secondary { background: var(--paper); color: var(--brand); border-color: var(--brand); }
.button--secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--ghost:hover { background: var(--surface); color: var(--brand); }
.button--light { background: #fff; color: var(--dark); }
.button--light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.button--large { min-height: 54px; padding: 14px 23px; }
.button--block { width: 100%; }
.text-button { padding: 8px 2px; color: var(--brand); background: transparent; border: 0; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }

.home-hero { padding: 54px 0 40px; background: linear-gradient(155deg, #f8fbfb 0%, #eef7f5 72%, #fff 72%); overflow: hidden; }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; gap: 50px; }
.home-hero h1 { max-width: 730px; margin-bottom: 20px; font-weight: 850; }
.home-hero__lead { max-width: 650px; color: #3d5058; font-size: 1.08rem; line-height: 1.9; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 0; list-style: none; color: #3b5057; font-size: .9rem; font-weight: 700; }
.hero-points span { color: var(--brand); }
.home-hero__visual { padding-top: 8px; }
.home-hero__visual img { display: block; width: 100%; }

.quick-paths { margin-top: -8px; position: relative; z-index: 2; }
.quick-paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); overflow: hidden; }
.quick-paths a { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; padding: 22px 24px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); }
.quick-paths a:last-child { border-right: 0; }
.quick-paths a:hover { background: var(--surface); }
.quick-paths__number { grid-row: span 2; color: var(--accent); font-size: .8rem; font-weight: 900; letter-spacing: .06em; }
.quick-paths strong { font-size: .98rem; }
.quick-paths small { color: var(--muted); font-size: .78rem; }

.section { padding: 78px 0; }
.section--tint { background: var(--surface); }
.section--dark { background: var(--dark); color: #fff; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading--split { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading--split > p { max-width: 430px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.category-card { display: flex; min-height: 260px; flex-direction: column; padding: 23px; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-card:hover { transform: translateY(-4px); border-color: #a9cdca; box-shadow: var(--shadow-small); }
.category-card__icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 20px; color: var(--brand); background: var(--brand-soft); border-radius: 14px; font-weight: 900; }
.category-card h3 { margin-bottom: 10px; }
.category-card p { flex: 1; color: var(--muted); font-size: .9rem; }
.category-card .text-link { font-size: .86rem; }

.diagnose-band { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.diagnose-band__copy > p:not(.eyebrow) { color: var(--muted); }
.diagnose-band__criteria { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.diagnose-band__criteria h3 { margin-bottom: 20px; }
.diagnose-band__criteria ol { padding: 0; margin: 0; list-style: none; }
.diagnose-band__criteria li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--soft-line); }
.diagnose-band__criteria li:first-child { border-top: 0; }
.diagnose-band__criteria li > span { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 900; }
.diagnose-band__criteria strong { display: block; margin-bottom: 2px; }
.diagnose-band__criteria p { margin: 0; color: var(--muted); font-size: .88rem; }

.article-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { min-width: 0; }
.article-card > a { display: flex; min-height: 100%; flex-direction: column; padding: 24px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.article-card > a:hover { transform: translateY(-3px); border-color: #a9cdca; box-shadow: var(--shadow-small); }
.article-card__category { align-self: flex-start; margin-bottom: 12px; padding: 4px 9px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; font-size: .72rem; font-weight: 800; }
.article-card h3 { margin-bottom: 10px; font-size: 1.06rem; }
.article-card p { flex: 1; margin-bottom: 17px; color: var(--muted); font-size: .88rem; }
.article-card .text-link { font-size: .83rem; }
.article-card-grid--compact { grid-template-columns: repeat(4, 1fr); }
.article-card-grid--compact .article-card > a { padding: 20px; }

.method-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.method-section .eyebrow { color: #8edbd5; }
.method-section__intro p:not(.eyebrow) { color: #cbd9dc; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.method-grid > div { padding: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 15px; }
.method-grid span { display: inline-block; margin-bottom: 10px; color: #9fe1da; font-size: .77rem; font-weight: 900; }
.method-grid strong { display: block; margin-bottom: 6px; }
.method-grid p { margin: 0; color: #cbd9dc; font-size: .87rem; }
.final-path { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 36px 40px; background: var(--accent-soft); border: 1px solid #f1c8b5; border-radius: var(--radius); }
.final-path > div:first-child { max-width: 690px; }
.final-path h2 { margin-bottom: 8px; }
.final-path p:not(.eyebrow) { margin: 0; color: #654839; }
.final-path .final-path__support { margin-top: 10px; color: #795746; font-size: .88rem; }
.final-path__actions { display: flex; min-width: 270px; flex-direction: column; gap: 10px; }

.breadcrumbs { padding: 21px 0 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .76rem; }
.breadcrumbs li { display: inline-flex; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--muted); }

.article-shell { padding-bottom: 80px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 800px) minmax(250px, 300px); gap: 48px; align-items: start; }
.article-layout > *, .category-layout > *, .tool-layout > * { min-width: 0; }
.article-header { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.article-category { display: inline-flex; margin-bottom: 15px; padding: 5px 11px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; font-size: .78rem; font-weight: 800; text-decoration: none; }
.article-header h1 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.1rem); }
.article-lead { color: #40545c; font-size: 1.06rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .78rem; }
.article-toc { margin: 28px 0; padding: 20px 23px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.article-toc__toggle { display: flex; width: 100%; justify-content: space-between; padding: 0; color: var(--ink); background: transparent; border: 0; font-weight: 900; text-align: left; }
.article-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 22px; padding-left: 1.25em; margin: 15px 0 0; }
.article-toc a { color: #3d5961; font-size: .86rem; }
.article-content { font-size: 1rem; }
.article-content > p { margin-bottom: 1.35em; }
.article-content h2 { scroll-margin-top: 96px; margin: 2.4em 0 .85em; padding: 0 0 .55em 15px; border-left: 5px solid var(--brand); border-bottom: 1px solid var(--line); font-size: clamp(1.45rem, 2.6vw, 2rem); }
.article-content h3 { margin: 1.7em 0 .65em; }
.article-content li { margin: .42em 0; }
.article-summary { margin: 26px 0 32px; padding: 23px 25px; background: var(--brand-soft); border: 1px solid #b8ded9; border-radius: var(--radius-small); }
.article-summary span { display: block; margin-bottom: 8px; color: var(--brand); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.article-summary p { margin: 0; font-size: 1.05rem; font-weight: 700; }
.check-list, .warning-list, .plain-list { margin: 1em 0 1.5em; padding: 0; list-style: none; }
.check-list li, .warning-list li, .plain-list li { position: relative; padding: 10px 12px 10px 38px; border-bottom: 1px solid var(--soft-line); }
.check-list li::before { content: "✓"; position: absolute; left: 10px; top: 10px; color: var(--brand); font-weight: 900; }
.warning-list li::before { content: "!"; position: absolute; left: 10px; top: 11px; display: grid; width: 19px; height: 19px; place-items: center; color: #fff; background: var(--accent); border-radius: 50%; font-size: .7rem; font-weight: 900; }
.plain-list li::before { content: "—"; position: absolute; left: 10px; top: 10px; color: var(--brand); font-weight: 900; }
.process-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 1.2em 0 1.8em; list-style: none; }
.process-flow li { position: relative; display: flex; flex-direction: column; padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.process-flow__number { display: grid; width: 31px; height: 31px; place-items: center; margin-bottom: 12px; color: #fff; background: var(--brand); border-radius: 50%; font-size: .75rem; font-weight: 900; }
.process-flow strong { display: block; margin-bottom: 5px; }
.process-flow p { margin: 0; color: var(--muted); font-size: .83rem; }
.table-scroll { max-width: 100%; margin: 1.2em 0 1.8em; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: .89rem; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--surface-strong); color: var(--brand-dark); font-size: .8rem; }
tbody th { width: 18%; background: var(--surface); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.inline-tool { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 34px 0; padding: 24px 26px; background: var(--accent-soft); border: 1px solid #f1c8b5; border-radius: var(--radius); }
.inline-tool h2 { margin: 0 0 7px; padding: 0; border: 0; font-size: 1.35rem; }
.inline-tool p { margin: 0; color: #684a3a; font-size: .9rem; }
.context-cta { display: grid; grid-template-columns: 48px 1fr; gap: 18px; margin: 38px 0; padding: 28px; background: linear-gradient(135deg, #eef8f6, #fff); border: 1px solid #b8ded9; border-radius: var(--radius); box-shadow: var(--shadow-small); }
.context-cta__icon { display: grid; width: 46px; height: 46px; place-items: center; color: #fff; background: var(--brand); border-radius: 14px; font-size: 1.25rem; }
.context-cta h2 { margin: 0 0 7px; padding: 0; border: 0; font-size: 1.35rem; }
.context-cta p { margin-bottom: 13px; }
.cta-context { color: var(--brand-dark); font-size: .91rem; font-weight: 700; }
.cta-note { margin: 10px 0 0 !important; color: var(--muted); font-size: .74rem; }
.source-box { margin: 34px 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.source-box h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.2rem; }
.source-box p, .source-box li { font-size: .84rem; }
.source-box ul { margin-bottom: 0; }
.article-faq details { margin: 10px 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.article-faq summary { padding: 16px 18px; cursor: pointer; font-weight: 800; }
.article-faq details > div { padding: 0 18px 17px; color: #41555d; }
.article-faq details p { margin: 0; }
.article-sidebar { position: sticky; top: 98px; display: grid; gap: 15px; padding-top: 28px; }
.sidebar-card { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.sidebar-card--accent { background: var(--brand-soft); border-color: #b8ded9; }
.sidebar-card--warning { background: var(--warning-soft); border-color: #ead3a3; }
.sidebar-card--consult { background: #fff9f5; border-color: #f0cdbb; }
.sidebar-card h2 { margin-bottom: 10px; font-size: 1.08rem; }
.sidebar-card p { color: var(--muted); font-size: .85rem; }
.sidebar-card__sub-link { margin-top: 14px; font-size: .8rem; }
.mini-checks { padding: 0; margin: 0 0 15px; list-style: none; }
.mini-checks li { position: relative; padding: 6px 0 6px 23px; font-size: .85rem; }
.mini-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.related-section { margin-top: 75px; padding-top: 45px; border-top: 1px solid var(--line); }

.category-shell { padding-bottom: 80px; }
.category-header { display: grid; grid-template-columns: 84px 1fr; gap: 25px; align-items: start; padding: 35px 0 42px; }
.category-header__icon { display: grid; width: 76px; height: 76px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 22px; font-size: 1.65rem; font-weight: 900; }
.category-header h1 { margin-bottom: 13px; }
.category-header p:not(.eyebrow) { max-width: 800px; color: var(--muted); font-size: 1.02rem; }
.category-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: start; }
.category-list { display: grid; gap: 13px; }
.category-list__item a { display: grid; grid-template-columns: 1fr 42px; gap: 20px; align-items: center; padding: 24px 26px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.category-list__item a:hover { transform: translateY(-2px); border-color: #a9cdca; box-shadow: var(--shadow-small); }
.category-list__tag { display: inline-block; margin-bottom: 7px; color: var(--brand); font-size: .74rem; font-weight: 900; }
.category-list h2 { margin-bottom: 7px; font-size: 1.22rem; }
.category-list p { margin: 0; color: var(--muted); font-size: .9rem; }
.category-list__arrow { display: grid; width: 38px; height: 38px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 50%; font-weight: 900; }
.category-aside { position: sticky; top: 98px; display: grid; gap: 15px; }
.aside-links { padding: 0; margin: 0; list-style: none; }
.aside-links li { border-top: 1px solid var(--line); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none; }

.tools-shell, .tool-shell { padding-bottom: 80px; }
.tools-header { max-width: 820px; padding: 36px 0 42px; }
.tools-header h1 { margin-bottom: 14px; }
.tools-header > p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; }
.tool-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool-card a { display: grid; grid-template-columns: 64px 1fr; gap: 20px; min-height: 250px; padding: 28px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, border-color .2s, box-shadow .2s; }
.tool-card a:hover { transform: translateY(-3px); border-color: #a9cdca; box-shadow: var(--shadow-small); }
.tool-card__icon { display: grid; width: 60px; height: 60px; place-items: center; color: #fff; background: var(--brand); border-radius: 18px; font-size: 1.35rem; font-weight: 900; }
.tool-card__time { display: inline-block; margin-bottom: 7px; color: var(--accent); font-size: .75rem; font-weight: 900; }
.tool-card h2 { margin-bottom: 10px; font-size: 1.45rem; }
.tool-card p { color: var(--muted); }
.tool-note { margin-top: 30px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.tool-note h2 { margin-bottom: 8px; font-size: 1.2rem; }
.tool-note p { margin: 0; color: var(--muted); }
.tool-header { display: grid; grid-template-columns: 78px 1fr; gap: 24px; max-width: 940px; padding: 32px 0 40px; }
.tool-header__icon { display: grid; width: 72px; height: 72px; place-items: center; color: #fff; background: var(--brand); border-radius: 21px; font-size: 1.55rem; font-weight: 900; }
.tool-header h1 { margin-bottom: 12px; }
.tool-header p:not(.eyebrow) { color: var(--muted); }
.privacy-inline { display: inline-flex; gap: 7px; align-items: center; margin: 5px 0 0 !important; padding: 7px 11px; color: var(--brand-dark) !important; background: var(--brand-soft); border-radius: 8px; font-size: .78rem !important; font-weight: 700; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 780px) 280px; gap: 38px; align-items: start; }
.tool-form { display: grid; gap: 17px; }
.tool-form fieldset { min-width: 0; padding: 24px 26px 26px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tool-form legend { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 0; font-weight: 900; }
.tool-form legend > span { display: grid; width: 29px; height: 29px; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-size: .75rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.choice-grid--three { grid-template-columns: repeat(3, 1fr); }
.choice-card, .stacked-choices label, .check-grid label { position: relative; cursor: pointer; }
.choice-card input, .stacked-choices input, .check-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { display: flex; min-height: 88px; flex-direction: column; justify-content: center; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice-card strong, .stacked-choices strong { display: block; }
.choice-card small, .stacked-choices small { color: var(--muted); font-size: .78rem; }
.choice-card input:checked + span, .stacked-choices input:checked + span, .check-grid input:checked + span { color: var(--brand-dark); background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-card input:focus-visible + span, .stacked-choices input:focus-visible + span, .check-grid input:focus-visible + span { outline: 3px solid rgba(11,107,111,.3); outline-offset: 2px; }
.stacked-choices { display: grid; gap: 9px; margin-top: 8px; }
.stacked-choices label > span { display: block; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: 11px; }
.stacked-choices label > span::before { content: ""; position: absolute; left: 17px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); border: 2px solid #8a9ba2; border-radius: 50%; background: #fff; }
.stacked-choices input:checked + span::before { border: 5px solid var(--brand); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 8px; }
.check-grid label > span { display: block; min-height: 52px; padding: 13px 14px 13px 45px; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; font-weight: 700; }
.check-grid label > span::before { content: ""; position: absolute; left: 15px; top: 16px; width: 17px; height: 17px; border: 2px solid #8a9ba2; border-radius: 4px; background: #fff; }
.check-grid input:checked + span::before { content: "✓"; display: grid; place-items: center; color: #fff; background: var(--brand); border-color: var(--brand); font-size: .72rem; font-weight: 900; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.field-row label, .full-field { position: relative; display: grid; gap: 6px; color: #33484f; font-size: .86rem; font-weight: 800; }
.field-row input, .full-field input, .full-field textarea, .tool-form textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: #fff; border: 1px solid #b7c5ca; border-radius: 9px; outline: none; }
.field-row input:focus, .full-field input:focus, .full-field textarea:focus, .tool-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,107,111,.12); }
.field-row label > small { position: absolute; right: 12px; bottom: 10px; color: var(--muted); font-size: .75rem; }
.field-row label:has(> small) input { padding-right: 48px; }
.full-field { margin-top: 12px; }
.full-field:first-of-type { margin-top: 8px; }
.field-help { margin: 9px 0 0; color: var(--muted); font-size: .76rem; }
.range-field { display: grid; gap: 12px; margin-top: 8px; }
.range-field > span { display: flex; justify-content: space-between; }
.range-field output { color: var(--brand); font-size: 1.1rem; font-weight: 900; }
.range-field input { width: 100%; accent-color: var(--brand); }
.form-error { padding: 13px 15px; color: var(--danger); background: #fff0f0; border: 1px solid #e4b4b4; border-radius: 9px; font-weight: 700; }
.tool-side { position: sticky; top: 98px; display: grid; gap: 14px; }
.tool-result { margin-top: 50px; padding: 34px; background: #fff; border: 2px solid #a7d2cd; border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 95px; }
.result-heading { max-width: 800px; margin-bottom: 28px; }
.result-badge { display: inline-flex; margin-bottom: 12px; padding: 5px 10px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; font-size: .76rem; font-weight: 900; }
.result-heading h2 { margin-bottom: 10px; }
.result-heading p { color: var(--muted); }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 25px; }
.result-metrics--four { grid-template-columns: repeat(4, 1fr); }
.result-metrics > div { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.result-metrics span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.result-metrics strong { color: var(--brand-dark); font-size: 1.75rem; line-height: 1.2; }
.result-metrics small { margin-left: 4px; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 25px; }
.result-grid > div { padding: 21px; border: 1px solid var(--line); border-radius: 12px; }
.result-grid h3 { margin-bottom: 8px; }
.result-grid p, .result-grid li { color: var(--muted); font-size: .88rem; }
.result-message { padding: 22px; margin-bottom: 25px; background: var(--surface); border-radius: 12px; }
.result-message h3 { margin-bottom: 9px; }
.result-message textarea, .request-output textarea { width: 100%; min-height: 190px; padding: 14px; margin-bottom: 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; resize: vertical; }
.method-ranking { display: grid; gap: 10px; margin-bottom: 25px; }
.method-rank { display: grid; grid-template-columns: 44px 1fr; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.method-rank--1 { background: var(--brand-soft); border-color: #a7d2cd; }
.method-rank__number { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 900; }
.method-rank h3 { margin-bottom: 5px; }
.method-rank p { margin: 4px 0; color: var(--muted); font-size: .86rem; }
.request-output textarea { min-height: 520px; }
.request-output__actions { display: flex; align-items: center; gap: 16px; }
.is-copied { background: var(--brand-soft) !important; color: var(--brand-dark) !important; }

.site-footer { padding: 54px 0 22px; background: #102c32; color: #dbe5e7; }
.site-footer__grid { display: grid; grid-template-columns: 1.55fr repeat(3, .75fr); gap: 44px; }
.footer-brand { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 15px; color: #fff; font-weight: 900; text-decoration: none; }
.site-footer__about > p { max-width: 440px; color: #b7c8cc; font-size: .85rem; }
.footer-disclosure { padding: 12px 14px; background: rgba(255,255,255,.06); border-radius: 8px; font-size: .75rem !important; }
.site-footer h2 { margin-bottom: 12px; color: #fff; font-size: .93rem; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #c8d7da; font-size: .82rem; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 25px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); color: #9eb2b7; }
.site-footer__bottom small { max-width: 620px; font-size: .7rem; }

@media (max-width: 1080px) {
  .site-brand { min-width: auto; }
  .site-brand small { display: none; }
  .site-nav { gap: 14px; }
  .header-search { width: 160px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .article-card-grid--compact { grid-template-columns: repeat(2, 1fr); }
  .result-metrics--four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-small); }
  .site-nav.is-open { display: grid; }
  .site-nav > a { padding: 10px; border-bottom: 1px solid var(--soft-line); }
  .site-nav > a.site-nav__cta { padding: 12px 14px; text-align: center; border-bottom: 0; }
  .header-search { width: 100%; }
  .home-hero__grid { grid-template-columns: 1fr; gap: 10px; }
  .home-hero__visual { max-width: 610px; margin: 0 auto; }
  .quick-paths__grid { grid-template-columns: 1fr; }
  .quick-paths a { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-paths a:last-child { border-bottom: 0; }
  .section-heading--split { display: block; }
  .section-heading--split > p, .section-heading--split > a { margin-top: 14px; }
  .diagnose-band, .method-section { grid-template-columns: 1fr; gap: 35px; }
  .article-layout, .category-layout, .tool-layout { grid-template-columns: 1fr; }
  .article-sidebar, .category-aside, .tool-side { position: static; padding-top: 0; }
  .article-sidebar { grid-template-columns: repeat(2, 1fr); }
  .category-aside, .tool-side { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .container { width: min(calc(100% - 24px), var(--container)); }
  .site-header__inner { min-height: 66px; }
  .site-brand img { width: 36px; height: 36px; }
  .site-brand strong { font-size: .94rem; }
  .home-hero { padding: 37px 0 24px; background: linear-gradient(155deg, #f8fbfb 0%, #eef7f5 86%, #fff 86%); }
  .home-hero__actions { display: grid; }
  .home-hero__actions .button { width: 100%; }
  .home-hero__visual { margin-top: 8px; }
  .section { padding: 56px 0; }
  .category-grid, .article-card-grid, .tool-card-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 215px; }
  .diagnose-band__criteria { padding: 21px; }
  .method-grid { grid-template-columns: 1fr; }
  .final-path { display: block; padding: 27px 22px; }
  .final-path__actions { margin-top: 22px; }
  .article-header { padding-top: 18px; }
  .article-header h1 { font-size: 2rem; }
  .article-toc ol { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; }
  .inline-tool { display: block; padding: 22px; }
  .inline-tool .button { width: 100%; margin-top: 17px; }
  .context-cta { grid-template-columns: 1fr; padding: 22px; }
  .article-sidebar, .category-aside, .tool-side { grid-template-columns: 1fr; }
  .article-card-grid--compact { grid-template-columns: 1fr; }
  .category-header, .tool-header { grid-template-columns: 1fr; gap: 13px; }
  .category-header__icon, .tool-header__icon { width: 58px; height: 58px; border-radius: 16px; }
  .category-list__item a { grid-template-columns: 1fr; padding: 21px; }
  .category-list__arrow { display: none; }
  .tool-card a { grid-template-columns: 52px 1fr; min-height: 0; padding: 22px; }
  .tool-card__icon { width: 50px; height: 50px; border-radius: 14px; }
  .tool-form fieldset { padding: 20px 16px 21px; }
  .choice-grid, .choice-grid--three, .field-row, .check-grid, .result-grid { grid-template-columns: 1fr; }
  .choice-card > span { min-height: 70px; }
  .result-metrics, .result-metrics--four { grid-template-columns: repeat(2, 1fr); }
  .tool-result { padding: 22px 16px; }
  .method-rank { grid-template-columns: 36px 1fr; padding: 16px; }
  .method-rank__number { width: 32px; height: 32px; }
  .request-output__actions { align-items: stretch; flex-direction: column; }
  .request-output textarea { min-height: 430px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 410px) {
  .site-brand strong { font-size: .86rem; }
  .site-brand img { width: 33px; height: 33px; }
  .home-hero h1 { font-size: 2rem; }
  .hero-points { display: grid; gap: 8px; }
  .result-metrics, .result-metrics--four { grid-template-columns: 1fr; }
  .tool-card a { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Standard, search, contact and error pages */
.standard-shell, .search-shell, .contact-shell { padding-bottom: 82px; }
.standard-content { max-width: 880px; padding: 34px 0 10px; }
.standard-header { margin-bottom: 42px; }
.standard-header h1 { margin-bottom: 15px; }
.standard-header > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.standard-content section { padding: 27px 0; border-top: 1px solid var(--line); }
.standard-content section h2 { margin-bottom: 14px; font-size: 1.55rem; }
.standard-content section p { color: #40545c; }
.plain-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.plain-card-grid > div { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.plain-card-grid strong { display: block; margin-bottom: 7px; }
.plain-card-grid p { margin: 0; font-size: .88rem; }
.standard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.search-header { max-width: 820px; padding: 34px 0 36px; }
.search-form { display: grid; gap: 8px; margin-top: 23px; }
.search-form > label { font-weight: 800; }
.search-form > div { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.search-form input { width: 100%; min-height: 51px; padding: 12px 15px; border: 1px solid #aebfc4; border-radius: 11px; }
.search-empty { max-width: 780px; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search-empty h2 { margin-bottom: 10px; }
.search-empty p { color: var(--muted); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 9px; }
.search-suggestions a { padding: 7px 12px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; font-weight: 800; text-decoration: none; }
.search-results { padding-top: 12px; }
.contact-layout { display: grid; grid-template-columns: minmax(0,780px) 280px; gap: 40px; padding-top: 34px; align-items: start; }
.contact-side { position: sticky; top: 98px; display: grid; gap: 14px; }
.contact-form { display: grid; gap: 18px; }
.contact-form > label { display: grid; gap: 7px; color: #33484f; font-weight: 800; }
.contact-form label > span { color: var(--danger); font-size: .74rem; }
.contact-form label > small { color: var(--muted); font-size: .76rem; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #b7c5ca; border-radius: 9px; }
.contact-form textarea { resize: vertical; }
.form-privacy { color: var(--muted); font-size: .8rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 20px 22px; margin-bottom: 25px; border-radius: 12px; }
.notice h2, .notice p { margin-bottom: 6px; }
.notice--success { color: #155b43; background: #e7f6ef; border: 1px solid #a5dac5; }
.notice--error { color: var(--danger); background: #fff0f0; border: 1px solid #e4b4b4; }
.notice ul { margin-bottom: 0; }
.error-shell { display: grid; min-height: 62vh; place-items: center; padding: 70px 0; }
.error-card { max-width: 720px; padding: 50px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.error-code { display: block; margin-bottom: 9px; color: var(--brand); font-size: 3rem; font-weight: 900; line-height: 1; }
.error-card p { color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 27px; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-side { position: static; grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .plain-card-grid, .contact-side { grid-template-columns: 1fr; }
  .search-form > div { grid-template-columns: 1fr; }
  .search-form .button { width: 100%; }
  .search-empty, .error-card { padding: 26px 20px; }
}
.article-hero-image { margin: 28px 0 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.article-hero-image img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
