@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+JP:wght@400;500;700;900&family=Zen+Maru+Gothic:wght@500;700;900&display=swap");

/* ------------------------------------------------------------------
   Design system: "Night Lab"
   deep teal-black + acid lime + aqua + coral, rounded forms, mono labels
------------------------------------------------------------------- */
:root {
  --night: #0a1a24;
  --night-2: #0f2a38;
  --night-3: #173d4f;
  --lime: #c8f564;
  --lime-deep: #8fc41a;
  --aqua: #46d6c4;
  --teal: #0b8f82;
  --coral: #ff7059;
  --coral-deep: #d9442d;
  --paper: #f2f5f1;
  --card: #ffffff;
  --ink: #10222d;
  --muted: #56666f;
  --line: #d3dcd9;
  --on-dark: #c4d4da;
  --heading: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --content-width: 1200px;
  --radius: 24px;
  --shadow: 0 24px 60px -24px rgba(10, 26, 36, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(16, 34, 45, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 45, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 2;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--lime-deep); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--teal); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 18px; border-radius: 999px; color: var(--night); background: var(--lime); font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 64px), var(--content-width)); margin-inline: auto; }

h1, h2, h3, .hero h1, .page-hero h1 { word-break: auto-phrase; text-wrap: balance; }

/* ------------------------------ Header ------------------------------ */
.site-header { position: sticky; z-index: 30; top: 0; background: rgba(10, 26, 36, .94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-family: var(--heading); font-size: 1.02rem; font-weight: 900; letter-spacing: .03em; line-height: 1.35; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 14px; }
.brand small { display: block; margin-top: 2px; color: var(--lime); font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .2em; line-height: 1.3; }
.nav-list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: block; padding: 7px 16px; border-radius: 999px; color: #dbe6ea; font-size: .84rem; font-weight: 700; line-height: 1.7; text-decoration: none; transition: background .18s, color .18s; }
.nav-list a:hover { color: var(--night); background: var(--lime); }
.nav-list a[aria-current="page"] { color: var(--night); background: var(--aqua); }
.menu-button { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; color: var(--night); background: var(--lime); cursor: pointer; font-size: 1.25rem; line-height: 1; }

/* --------------------------- Home: hero ----------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 520px at 85% 20%, rgba(70, 214, 196, .14), transparent 70%), #005b5b; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "copy image" "detail image"; align-content: center; gap: 28px 64px; padding-block: 84px 96px; }
.hero-copy { grid-area: copy; align-self: end; }
.hero-detail { grid-area: detail; align-self: start; }
.hero-image { grid-area: image; align-self: center; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 32px; background: var(--night-2); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6), 0 0 0 10px rgba(255, 255, 255, .04); }
.hero-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 4px 14px; border: 1px solid currentColor; border-radius: 999px; color: var(--lime); font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .16em; line-height: 1.8; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero h1 { margin: 0; font-family: var(--heading); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 900; line-height: 1.36; letter-spacing: .01em; }
.hero-kicker { max-width: 34rem; margin: 22px 0 0; color: var(--on-dark); font-size: 1rem; }
.audit-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 28px; max-width: 34rem; }
.audit-panel span { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; color: #fff; background: rgba(255, 255, 255, .06); font-size: .88rem; font-weight: 700; line-height: 1.6; }
.audit-panel span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(70, 214, 196, .2); }
.audit-panel span:nth-child(odd)::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 245, 100, .2); }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 10px 30px; border: 2px solid var(--lime); border-radius: 999px; color: var(--night); background: var(--lime); font-family: var(--heading); font-weight: 900; letter-spacing: .04em; text-decoration: none; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { color: var(--night); background: #fff; border-color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(200, 245, 100, .6); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); box-shadow: none; }

/* ----------------------------- Sections ----------------------------- */
.section { padding-block: 96px; }
.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading .eyebrow { color: var(--teal); }
.section-heading h2 { margin: 0 0 14px; font-family: var(--heading); font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 900; line-height: 1.4; }
.section-heading p:last-child { margin: 0; color: var(--muted); }
.beginner-intro { padding-block: 80px 0px; }

/* Bento article grid: one hero card + four tiles */
.article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.article-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .22s, box-shadow .22s, border-color .22s; }
.article-card:hover { transform: translateY(-5px); border-color: var(--aqua); box-shadow: var(--shadow); }
.article-card::before { content: attr(data-number); position: absolute; z-index: 2; top: 14px; left: 14px; padding: 2px 14px; border-radius: 999px; color: var(--night); background: var(--lime); font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; line-height: 1.9; }
.card-visual { margin: 0; overflow: hidden; background: var(--night); }
.card-visual img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.article-card:hover .card-visual img { transform: scale(1.05); }
.card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px 24px 26px; }
.tag { display: inline-block; margin-bottom: 12px; padding: 1px 12px; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .04em; line-height: 1.9; }
.article-card h3 { margin: 0 0 10px; font-family: var(--heading); font-size: 1.12rem; font-weight: 900; line-height: 1.55; }
.article-card p { margin: 0 0 20px; color: var(--muted); font-size: .88rem; line-height: 1.9; }
.text-link { margin-top: auto; padding-bottom: 1px; color: var(--ink); font-size: .86rem; font-weight: 900; text-decoration-color: var(--lime-deep); }
.text-link::after { content: ""; position: absolute; inset: 0; }
.article-card:hover .text-link { color: var(--teal); }


/* Principles strip */
.guide-strip { color: var(--night); background: var(--lime); background-image: radial-gradient(600px 300px at 90% 0, rgba(255, 255, 255, .45), transparent 70%); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-grid h2 { grid-column: 1 / -1; margin: 0 0 12px; font-family: var(--heading); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.5; }
.guide-grid h2 br { display: none; }
.guide-item { padding: 28px 28px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .6); border: 1px solid rgba(10, 26, 36, .12); }
.guide-item img { width: 52px; height: 52px; margin-bottom: 18px; padding: 8px; border-radius: 16px; background: var(--lime); }
.guide-item strong { display: block; margin-bottom: 8px; font-family: var(--heading); font-size: 1.15rem; font-weight: 900; }
.guide-item p { margin: 0; font-size: .92rem; line-height: 1.9; }

/* Notice */
.notice { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 28px; margin: 0; padding: 28px 32px 28px 52px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.notice::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; background: repeating-linear-gradient(135deg, var(--night) 0 8px, var(--lime) 8px 16px); }
.notice strong { color: var(--coral-deep); font-family: var(--heading); font-size: 1.05rem; font-weight: 900; letter-spacing: .06em; line-height: 1.8; }
.notice p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------------------------- Article page --------------------------- */
.page-hero { color: #fff; background: radial-gradient(800px 420px at 90% 0, rgba(70, 214, 196, .14), transparent 70%), #005b5b; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0; padding: 22px 0 0; list-style: none; color: var(--slate, #9db0b8); font-family: var(--mono); font-size: .76rem; }
.breadcrumbs a { color: #fff; text-decoration-color: var(--lime); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 44px 72px; }
.page-hero .eyebrow { margin-bottom: 18px; padding: 3px 14px; color: var(--night); background: var(--lime); border-color: var(--lime); }
.page-hero h1 { margin: 0; font-family: var(--heading); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.5; }
.page-hero .lead { margin: 22px 0; color: var(--on-dark); font-size: .98rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta span { display: inline-flex; align-items: center; gap: 8px; padding: 3px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #e6eef1; background: rgba(255, 255, 255, .06); font-size: .76rem; font-weight: 500; }
.meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.featured-image { margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px; box-shadow: 0 36px 80px -20px rgba(0, 0, 0, .6), 0 0 0 8px rgba(255, 255, 255, .04); }
.featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Body left, index right */
.article-layout { width: min(calc(100% - 64px), var(--content-width)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 40px; align-items: start; padding: 64px 0 110px; }
.article-body { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; counter-reset: sec; }
.toc { grid-column: 2; grid-row: 1; position: sticky; top: 100px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.toc strong { display: block; padding: 14px 22px; color: #fff; background: var(--night); font-family: var(--heading); font-size: .95rem; font-weight: 900; letter-spacing: .06em; line-height: 1.6; }
.toc ol { counter-reset: toc; margin: 0; padding: 10px; list-style: none; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 12px; padding: 9px 12px; border-radius: 12px; font-size: .84rem; font-weight: 500; line-height: 1.6; text-decoration: none; transition: background .15s; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; color: var(--teal); font-family: var(--mono); font-size: .8rem; line-height: 1.9; }
.toc a:hover { background: #eef4f2; color: var(--ink); }

.article-body p { margin: 0 0 1.6em; }
.article-body > .notice { display: block; margin-bottom: 8px; padding: 24px 28px 24px 50px; }
.article-body > .notice strong { display: block; margin-bottom: 4px; background: none; }
.article-body strong { background: linear-gradient(transparent 62%, rgba(200, 245, 100, .75) 62%); font-weight: 800; }

.article-body h2 { display: flex; flex-direction: column; align-items: flex-start; margin: 76px 0 24px; padding-top: 30px; border-top: 1px solid var(--line); font-family: var(--heading); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 900; line-height: 1.55; counter-increment: sec; }
.article-body h2::before { content: counter(sec, decimal-leading-zero); margin-bottom: 12px; padding: 0 14px; border-radius: 999px; color: var(--lime); background: var(--night); font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em; line-height: 2; }
.heading-mark { display: block; width: 56px; height: 6px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--lime), var(--aqua)); }
.article-body h3 { margin: 40px 0 12px; font-family: var(--heading); font-size: 1.25rem; font-weight: 900; line-height: 1.6; }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body li { margin-bottom: .6em; }
.article-body li::marker { color: var(--teal); font-weight: 700; }

.summary-box { margin: 32px 0; padding: 28px 32px; border-radius: var(--radius); border-left: 8px solid var(--lime); color: #e8f0f2; background: #005b5b; background-image: radial-gradient(420px 240px at 100% 0, rgba(70, 214, 196, .12), transparent 70%); box-shadow: var(--shadow); }
.summary-box p { margin: 0; }
.summary-box p + p { margin-top: 1em; }
.summary-box strong { color: var(--lime); background: none; }
.check-box { margin: 32px 0; padding: 26px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.check-box ul { margin: 0; padding: 0; list-style: none; }
.check-box li { position: relative; margin: 0; padding: 12px 0 12px 42px; border-bottom: 1px dashed var(--line); line-height: 1.8; }
.check-box li:last-child { border-bottom: 0; }
.check-box li::before { content: ""; position: absolute; left: 0; top: 16px; width: 24px; height: 24px; border: 2px solid var(--teal); border-radius: 8px; background: #fff; }
.check-box li::after { content: ""; position: absolute; left: 8px; top: 20px; width: 6px; height: 11px; border: solid var(--teal); border-width: 0 3px 3px 0; transform: rotate(45deg); opacity: .75; }
.check-box p, .notice p { margin: 0; }

.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { padding: 64px 0 28px; color: var(--on-dark); background: radial-gradient(700px 300px at 100% 0, rgba(70, 214, 196, .14), transparent 70%), var(--night); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.footer-brand { max-width: 480px; }
.footer-brand .brand { font-size: 1.05rem; }
.footer-brand p { margin: 18px 0 0; color: #9fb3bb; font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.footer-links a { padding: 6px 18px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; transition: background .18s, color .18s; }
.footer-links a:hover { color: var(--night); background: var(--lime); border-color: var(--lime); }
.copyright { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #7f949d; font-family: var(--mono); font-size: .74rem; }

/* ---------------------------- Back to top --------------------------- */
.back-to-top { position: fixed; z-index: 40; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px 8px 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #fff; background: var(--night); box-shadow: 0 18px 40px -10px rgba(10, 26, 36, .6); cursor: pointer; font-size: .84rem; font-weight: 700; line-height: 1.2; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .2s, transform .2s, background .2s; }
.back-to-top span:first-child { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: var(--night); background: var(--lime); font-size: 1.1rem; line-height: 1; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--night-3); }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 1080px) {
  .container, .article-layout { width: calc(100% - 48px); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 232px; gap: 40px; }
}

@media (max-width: 960px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 24px 22px; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-list a { padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; font-size: .92rem; }
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "image" "detail"; gap: 32px; padding-block: 56px 64px; }
  .hero-copy, .hero-detail { align-self: auto; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 52px; }
  .article-layout { display: flex; flex-direction: column; gap: 32px; padding: 40px 0 72px; }
  .toc { position: static; width: 100%; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container, .article-layout { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; }
  .site-nav { padding-inline: 18px; }
  .brand { font-size: .92rem; gap: 10px; }
  .brand img { width: 38px; height: 38px; border-radius: 12px; }
  .brand small { display: none; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-image { border-radius: 22px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6); }
  .audit-panel { grid-template-columns: 1fr 1fr; }
  .audit-panel span { padding: 8px 12px; font-size: .8rem; }
  .section { padding-block: 64px; }
  .article-grid { grid-template-columns: 1fr; gap: 18px; }
  .guide-grid { grid-template-columns: 1fr; gap: 14px; }
  .guide-item { padding: 22px; }
  .notice { grid-template-columns: 1fr; gap: 6px; padding: 24px 22px 24px 40px; }
  .notice::before { width: 14px; }
  .article-body > .notice { padding: 22px 20px 22px 40px; }
  .page-hero-grid { padding-block: 26px 40px; }
  .featured-image { border-radius: 22px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6); }
  .toc ol { grid-template-columns: 1fr; }
  .article-body h2 { margin-top: 56px; }
  .summary-box, .check-box { padding: 22px 20px; }
  .article-nav { flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .back-to-top { right: 14px; bottom: 14px; padding: 6px; }
  .back-to-top span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

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

/* Service navigation and inline reading index. */
.site-layout { width: min(calc(100% - 64px), var(--content-width)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 272px; align-items: start; gap: 40px; }
.site-layout > main { grid-column: 1; grid-row: 1; min-width: 0; }
.service-sidebar { grid-column: 2; grid-row: 1; min-width: 0; position: sticky; top: 100px; }
.site-layout > .service-sidebar { margin-top: 32px; }
.service-menu { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.service-menu summary { padding: 16px 20px; color: #fff; background: var(--night); font-family: var(--heading); font-weight: 900; font-size: .95rem; cursor: pointer; }
.service-menu ul { margin: 0; padding: 10px; list-style: none; }
.service-menu a { display: block; padding: 12px; border-radius: 12px; font-size: .86rem; font-weight: 700; line-height: 1.6; text-decoration: none; }
.service-menu a:hover { color: var(--ink); background: #eef4f2; }
.service-menu a[aria-current="page"] { color: var(--night); background: var(--lime); }
.article-body .toc { grid-column: auto; grid-row: auto; position: static; width: 100%; margin: 32px 0 0; box-shadow: none; }
.article-body .toc strong { margin: 0; color: #fff; background: var(--night); }
.article-body .toc ol { margin: 0; padding: 10px; }
.article-body .toc li { margin: 0; }
.article-body .toc + h2 { margin-top: 32px; }
.site-layout .container { width: calc(100% - 48px); }
.site-layout .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "copy image" "detail image"; gap: 28px 56px; padding-block: 44px 72px; }
.site-layout .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-layout .form-card { width: calc(100% - 48px); }
.footer-inner { grid-template-columns: 1fr; }
@media (max-width: 1080px) {
  .site-layout { width: calc(100% - 48px); grid-template-columns: minmax(0, 1fr) 232px; gap: 32px; }
}
@media (max-width: 960px) {
  .site-layout { width: 100%; display: flex; flex-direction: column; gap: 0; }
  .site-layout > main { width: 100%; }
  .service-sidebar { position: static; width: 100%; }
  .site-layout > .service-sidebar { width: calc(100% - 48px); margin: 24px auto; }
  .article-layout > .service-sidebar { margin-bottom: 0; }
  .service-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-layout .container, .site-layout .form-card { width: calc(100% - 36px); }
  .site-layout > .service-sidebar { width: calc(100% - 36px); margin-block: 18px; }
  .site-layout .article-grid { grid-template-columns: 1fr; }
  .service-menu ul { grid-template-columns: 1fr; }
}
/* Home report rows and compact survey methodology. */
.home-page .guide-strip { padding-block: 32px; }
.home-page .guide-strip h2 { margin: 0 0 16px; }
.home-page .guide-strip h3 { margin: 24px 0 10px; }
.home-page .guide-strip p { margin: 0 0 16px; }
.home-page .guide-strip .container > :last-child { margin-bottom: 0; }
.home-page .site-layout .article-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.home-page .site-layout .article-card { display: grid; grid-column: auto; grid-template-columns: minmax(160px, .65fr) minmax(0, 1fr); }
.home-page .site-layout .card-visual { display: flex; align-items: center; height: 100%; }
.home-page .site-layout .card-visual img { width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 2; object-fit: contain; }
.home-page .site-layout .card-content { min-width: 0; padding: 24px; justify-content: center; }
.home-page .site-layout .article-card h3 { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.55; }
.home-page .site-layout .article-card p { margin: 0 0 16px; font-size: .88rem; line-height: 1.9; }
.home-page main > .section:last-child .notice { grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (max-width: 640px) {
  .home-page .guide-strip { padding-block: 28px; }
  .home-page .site-layout .article-card { grid-template-columns: 112px minmax(0, 1fr); }
  .home-page .site-layout .card-content { padding: 18px 16px; }
  .home-page .site-layout .article-card::before { top: 10px; left: 10px; padding-inline: 10px; }
}
@media (max-width: 360px) {
  .home-page .site-layout .article-card { grid-template-columns: 88px minmax(0, 1fr); }
}


@media (max-width: 960px) {
  .site-layout .hero-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "image" "detail"; gap: 36px; padding-block: 32px 52px; }
}
@media (max-width: 640px) {
  .site-layout .hero-inner { padding-block: 26px 40px; }
}

/* Full-width introduction aligned with the survey report headers. */
.home-page .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 56px; padding-block: 64px 72px; }
.home-page .hero h1 { font-size: 2.6rem; line-height: 1.5; }
@media (max-width: 960px) {
  .home-page .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 52px; }
}
@media (max-width: 640px) {
  .home-page .hero-inner { padding-block: 26px 40px; }
  .home-page .hero h1 { font-size: 1.9rem; }
}

/* Align the methodology band with the cards and scope notice. */
.home-page .site-layout .guide-strip { width: calc(100% - 48px); margin-inline: auto; padding-inline: 24px; }
.home-page .site-layout .guide-strip .container { width: 100%; }
@media (max-width: 640px) {
  .home-page .site-layout .guide-strip { width: calc(100% - 36px); padding-inline: 18px; }
}

/* Match report content to the home content column at each breakpoint. */
@media (min-width: 961px) {
  .article-layout .article-body { width: calc(100% - 48px); margin-inline: auto; }
}
@media (min-width: 961px) and (max-width: 1080px) {
  .article-layout { gap: 32px; }
}

/* Contact form controls and validation states. */
.form-card { margin: 40px auto 72px; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.field { display: grid; gap: 8px; margin-bottom: 28px; min-width: 0; }
.field label { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-weight: 800; }
.required { padding: 2px 8px; border-radius: 4px; color: #fff; background: #005b5b; font-size: .75rem; line-height: 1.6; }
.field input, .field textarea { display: block; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #839b9b; border-radius: 6px; color: var(--ink); background: #f8fbfa; font: inherit; line-height: 1.6; }
.field input { min-height: 48px; }
.field textarea { min-height: 240px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid #005b5b; outline-offset: 2px; background: #fff; }
.field small { color: var(--muted); font-size: .8rem; }
.field [aria-invalid="true"] { border: 2px solid #b33124; background: #fff6f4; }
.field .field-error { margin: 0; color: #a92d20; font-size: .88rem; }
.error-summary { margin-bottom: 28px; padding: 18px 20px; border: 1px solid #b33124; border-left-width: 4px; border-radius: 6px; color: #8b261c; background: #fff6f4; }
.error-summary h2 { margin: 0 0 8px; font-size: 1.1rem; }
.error-summary p { margin: 0; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 4px; }
.form-actions .button { cursor: pointer; border-radius: 6px; }
.form-actions .button:hover { border-color: #005b5b; background: #e5f6ef; transform: none; box-shadow: none; }
.form-actions .button:focus-visible { outline: 3px solid #005b5b; outline-offset: 3px; }
.form-actions > span { color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) {
  .form-card { margin-block: 28px 48px; padding: 24px 18px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; padding-inline: 12px; }
}


/* Contact submission confirmation. */
.status-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 64px 32px; }
.status-card { width: min(100%, 640px); padding: 48px 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; }
.status-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%; color: #005b5b; background: var(--lime); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.status-card h1 { margin: 0 0 20px; font-size: 1.7rem; line-height: 1.5; }
.status-card p { margin: 0 0 32px; color: var(--muted); line-height: 1.9; }
.status-card .button { max-width: 100%; border-radius: 6px; }
.status-card .button:hover { border-color: #005b5b; background: #e5f6ef; transform: none; box-shadow: none; }
.status-card .button:focus-visible { outline: 3px solid #005b5b; outline-offset: 3px; }
@media (max-width: 640px) {
  .status-page { padding: 40px 18px; }
  .status-card { padding: 32px 20px; }
  .status-card h1 { font-size: 1.35rem; }
  .status-card .button { padding-inline: 16px; }
}


/* Beginner reading entry. */
.beginner-entry { margin: 20px 0 0; padding: 16px 12px; border-top: 2px solid #005b5b; font-size: .9rem; line-height: 1.8; }
.beginner-entry a { color: #005b5b; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.beginner-intro h2 { margin: 0 0 20px; font-size: 1.5rem; line-height: 1.7; }
.beginner-intro p { margin: 0 0 16px; line-height: 2; }
.article-body li { overflow-wrap: anywhere; }
