:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #33302C;
  --muted: #6B655E;
  --line: #E8E3DC;
  --brand: #A8502F;
  --brand-dark: #8C4127;
  --brand-soft: #F6F1EB;
  --on-brand: #FFFFFF;
  --sun: #F5C64A;
  --sun-soft: #F6F1EB;
  --measure: 40em;
  --gutter: 16px;
  --body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --head: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
}
a { color: var(--brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { word-break: auto-phrase; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- header ---------- */
.site-head { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.beam {
  position: absolute; inset: 0; pointer-events: none;
  background: none;
}
.head-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding-top: 14px; padding-bottom: 12px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: 0.04em; }
.logo, .foot-name { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: block; flex: none; }
.gnav { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 0.9375rem; }
@media (max-width: 640px) {
  .head-inner { flex-direction: column; align-items: flex-start; }
  .gnav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; white-space: nowrap; scrollbar-width: none; padding-bottom: 2px; }
  .gnav::-webkit-scrollbar { display: none; }
}
.gnav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.gnav a:hover { border-bottom-color: var(--line); }
.gnav a[aria-current="page"] { border-bottom-color: var(--brand); }

/* ---------- home hero ---------- */
.hero { position: relative; margin: 0 calc(-1 * var(--gutter)); padding: 72px var(--gutter) 64px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { display: none; }
.hero::after { display: none; }
.hero > * { position: relative; }
.hero h1 {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem); line-height: 1.35; letter-spacing: 0.02em;
  margin: 0 0 24px; max-width: 15em;
}
.hero .lead { max-width: 34em; font-size: 1.0625rem; color: var(--ink); margin: 0; }
/* hero with photo (home) */
.hero.has-media { display: grid; grid-template-columns: 1fr; gap: 32px; }
.hero.has-media::after { display: none; }
.hero-media { margin: 0; }
.hero-media img, .page-hero img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--brand-soft); }
@media (min-width: 900px) {
  .hero.has-media { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .hero.has-media h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
}
/* photo on first-level pages */
.page-hero { margin: 0 0 20px; }

.home-section { margin: 56px 0; }
.home-section > h2 { font-family: var(--head); font-size: 1.5rem; line-height: 1.5; margin: 0 0 8px; }
.home-section > p { max-width: var(--measure); color: var(--muted); margin: 0 0 20px; }

.scenes { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.scenes li { border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 12rem 1fr; gap: 6px 32px; align-items: baseline; }
.scenes h3 { margin: 0; font-family: var(--head); font-size: 1.3rem; line-height: 1.5; }
.scenes h3 a { color: var(--ink); text-decoration: none; }
.scenes h3 a:hover { color: var(--brand); }
.scenes p { margin: 0 0 6px; }
.scenes .sub { font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (max-width: 640px) { .scenes li { grid-template-columns: 1fr; } }

.starter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 32px; }
.starter li { border-top: 1px solid var(--line); padding: 16px 0; }
.starter a { font-weight: 700; }
.starter span { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }

.policy { background: var(--brand-soft); border-radius: 4px; padding: 20px 24px; max-width: var(--measure); }
.policy p { margin: 0 0 8px; }
.policy p:last-child { margin: 0; }

/* ---------- article ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; padding: 0; margin: 20px 0 0; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--muted); }

.article { max-width: var(--measure); }
.article-head { padding: 28px 0 8px; }
.article-head h1 { font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 4.2vw, 2.3rem); line-height: 1.45; margin: 0 0 14px; letter-spacing: 0.02em; }
.byline { font-size: 0.8125rem; color: var(--muted); margin: 0 0 18px; }
.article-head .lead { font-size: 1.0625rem; margin: 0; padding: 16px 20px; background: var(--sun-soft); border-radius: 4px; }

.toc { margin: 28px 0 8px; padding: 18px 22px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.toc-title { margin: 0 0 6px; font-weight: 700; font-size: 0.9375rem; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 0.9375rem; line-height: 1.8; }

.prose h2 { font-family: var(--head); font-size: 1.45rem; line-height: 1.5; margin: 56px 0 16px; padding-top: 14px; border-top: 2px solid var(--ink); }
.prose h3 { font-size: 1.125rem; line-height: 1.6; margin: 32px 0 8px; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: 0.25em 0; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }

.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.7; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--brand-soft); font-weight: 700; white-space: nowrap; }

.note, .caution { padding: 16px 20px; margin: 0 0 1.4em; border-radius: 4px; }
.note { background: var(--brand-soft); border-radius: 4px; }
.caution { background: #FFF1EC; border: 1px solid #E9C3B6; }
.note > :last-child, .caution > :last-child { margin-bottom: 0; }
.note-title { font-weight: 700; margin: 0 0 4px !important; }

/* 3 conditions — the recurring device */
.conditions { margin: 32px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.conditions-title { margin: 0; padding: 12px 20px; font-weight: 700; background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.conditions dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.conditions dl > div { padding: 14px 20px 16px; border-right: 1px solid var(--line); }
.conditions dl > div:last-child { border-right: 0; }
.conditions dt { font-family: var(--head); font-size: 1.6rem; line-height: 1.3; color: var(--brand); margin-bottom: 4px; }
.conditions dd { margin: 0; font-size: 0.9375rem; line-height: 1.75; }
@media (max-width: 640px) {
  .conditions dl { grid-template-columns: 1fr; }
  .conditions dl > div { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 3rem 1fr; gap: 12px; align-items: baseline; }
  .conditions dl > div:last-child { border-bottom: 0; }
}

.faq h2, .sources h2, .related h2 { font-family: var(--head); font-size: 1.3rem; margin: 56px 0 12px; padding-top: 14px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style-position: outside; margin-left: 1.1em; }
.faq details[open] summary { color: var(--brand); }
.faq details p { margin: 0 0 12px; }

.sources ul { padding-left: 1.2em; font-size: 0.875rem; line-height: 1.8; color: var(--muted); }

.related { max-width: var(--measure); margin-bottom: 64px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 14px 0; text-decoration: none; color: var(--ink); }
.related a:hover .rel-t { color: var(--brand); text-decoration: underline; }
.rel-t { display: block; font-weight: 700; }
.rel-d { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-top: 2px; }

/* ---------- footer ---------- */
.site-foot { margin-top: 72px; background: var(--brand-soft); color: var(--ink); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 0.875rem; }
.site-foot a { color: var(--ink); }
.foot-name { font-family: var(--head); font-size: 1.05rem; color: var(--ink); margin: 0 0 6px; }
.foot-desc { max-width: 40em; margin: 0 0 16px; line-height: 1.8; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 20px; }
.copy { margin: 0; color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding: 48px var(--gutter) 44px; }
  .prose h2 { margin-top: 44px; }
}
@media print { .site-head, .site-foot, .toc, .related { display: none; } }

/* diagrams */
.diagram { margin: 32px 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--muted); text-align: center; }
.d-sun circle { fill: var(--sun); } .d-sun path { stroke: var(--sun); }
.d-beam { stroke: var(--sun); stroke-width: 10; stroke-linecap: round; opacity: 0.6; }
.d-coat { fill: var(--brand); } .d-coat-t { fill: #fff; font-size: 15px; font-weight: 700; }
.d-wall { fill: var(--line); }
.d-mol circle { fill: var(--muted); opacity: 0.75; }
.d-arrow { fill: none; stroke: var(--ink); stroke-width: 2; }
.d-ink-fill { fill: var(--ink); }
.d-label { fill: var(--ink); font-size: 19px; font-weight: 700; }
.d-small { fill: var(--muted); font-size: 16px; }
.d-dirt ellipse { fill: #6B5B45; } .d-dirt-weak ellipse { opacity: 0.55; }
.d-rain path { stroke: #4A90C2; } .d-water { fill: #A9D3EE; }
.d-zone { fill: var(--paper); stroke: var(--line); }
.d-pt { fill: var(--muted); } .d-pt-uv { fill: var(--brand); } .d-uv-t { fill: var(--brand); }

/* voices (SNS quotes) */
.voice { margin: 28px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.voice blockquote.twitter-tweet { margin: 0; font-size: 0.9375rem; line-height: 1.8; }
.voice blockquote.twitter-tweet p { margin: 0 0 6px; }
.voice blockquote.twitter-tweet a { color: var(--muted); }
.voice figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.voice-src { display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.voice .twitter-tweet-rendered { margin: 0 auto !important; }

/* CTA (click-rate test) */
.cta { margin: 40px 0 32px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.cta-title { margin: 0 0 6px; font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1.5; }
.cta-text { margin: 0 auto 16px; max-width: 32em; font-size: 0.9375rem; color: var(--muted); }
.cta-btn { display: inline-block; padding: 12px 28px; background: var(--brand); color: var(--on-brand); font-weight: 700; letter-spacing: 0.04em; text-decoration: none; border-radius: 8px; }
.cta-btn:hover { background: var(--brand-dark); text-decoration: none; }
.soudan-back { margin-top: 28px; }

/* banner CTA */
.cta-wrap { margin: 40px 0 32px; }
.cta-banner { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.cta-banner[hidden] { display: none; }
.cta-banner img { display: block; width: 100%; height: auto; }
.cta-banner:hover img { filter: brightness(1.04); }

/* ---------- full-bleed home hero (10/23) ---------- */
.hero.hero-full { display: block; width: 100vw; margin: 0 0 0 calc(50% - 50vw); padding: 0; min-height: clamp(460px, 72vh, 680px); overflow: hidden; }
.hero-full .hero-bg { position: absolute; inset: 0; margin: 0; }
.hero-full .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; border-radius: 0; }
.hero-full::after { content: ""; display: block !important; position: absolute; inset: 0; border-radius: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 34%, rgba(255,255,255,.35) 58%, rgba(255,255,255,0) 72%); }
.hero-full .hero-inner { position: relative; z-index: 1; max-width: 64rem; margin: 0 auto; padding: clamp(56px, 10vh, 104px) var(--gutter); }
.hero-full .hero-inner > * { max-width: 36rem; }
.hero-full .hero-inner > h1 { max-width: 44rem; }
.hero-kicker { margin: 0 0 14px; font-size: 0.9375rem; font-weight: 700; color: var(--brand); letter-spacing: 0.04em; }
.hero-full h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.3; margin: 0 0 22px; }
.hero-full .lead { font-size: 1.0625rem; line-height: 1.95; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-chips a { display: inline-block; padding: 9px 16px; background: var(--brand); color: var(--on-brand); border-radius: 999px; font-size: 0.9375rem; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.hero-chips a:hover { background: var(--brand-dark); }
.br-sp { display: none; }
@media (max-width: 720px) {
  .hero.hero-full { min-height: 0; }
  .hero-full .hero-bg { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .hero-full .hero-bg img { object-position: 78% 50%; }
  .hero-full::after { inset: auto 0 auto 0; top: 0; height: 0; background: none; }
  .hero-full .hero-inner { padding: 24px var(--gutter) 40px; }
  .hero-full h1 { font-size: clamp(1.8rem, 7.6vw, 2.3rem); }
  .br-sp { display: inline; }
  .hero-chips a { padding: 8px 14px; font-size: 0.875rem; }
}

/* home: sub links as cushioned pills (10/23) */
.scenes .sub { gap: 10px; margin-top: 12px; }
.scenes .sub a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 16px; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #E6D9CC; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.4; transition: background .15s, color .15s, border-color .15s; }
.scenes .sub a::after { content: "›"; font-size: 1.1em; line-height: 1; }
.scenes .sub a:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.scenes h3 a { border-bottom: 2px solid transparent; }
.scenes h3 a::after { content: " ›"; color: var(--brand); }


/* sticky side TOC on wide screens (10/23) */
/* 11/18: 目次の現在地はブラウザ標準（scroll-target-group / :target-current）で表示。未対応ブラウザはJSが .is-current をつける。
   :is() は未知の疑似クラスがあっても規則全体を捨てないので、併記できる */
.toc { scroll-target-group: auto; }
.toc a:is(:target-current, .is-current) { font-weight: 700; color: var(--brand); }
@media (min-width: 1100px) {
  .article:has(> .toc) { max-width: none; display: grid; grid-template-columns: minmax(0, var(--measure)) 260px; column-gap: 48px; align-items: start; }
  .article:has(> .toc) > * { grid-column: 1; }
  .article:has(> .toc) > .toc { grid-column: 2; grid-row: 1 / span 20; position: sticky; top: 24px; margin: 8px 0 0; max-height: calc(100vh - 48px); overflow: auto; }
  .article:has(> .toc) > script { display: none; }
  .toc ol { padding-left: 1.2em; }
  .toc li { margin: 4px 0; }
  .toc a { text-decoration: none; color: var(--ink); }
  .toc a:hover { color: var(--brand); text-decoration: underline; }
}

/* external shop link (no affiliate) */
.shop-link { display: inline-block; margin: 2px 0 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.875rem; font-weight: 700; text-decoration: none; }
.shop-link::after { content: " ↗"; }
.shop-link:hover { background: var(--brand); color: var(--on-brand); }

/* grouped dropdown global nav (10/23) */
.site-head { overflow: visible; z-index: 20; }
.site-head .beam { overflow: hidden; }
.gnav { display: flex; flex-wrap: nowrap; gap: 4px 6px; align-items: center; }
/* 11/18: <details> から <button popovertarget> + popover="auto" に変更。
   パネルは最前面（トップレイヤー）に出るので、ボタンの位置に CSS アンカー配置で付ける。
   アンカー配置に未対応のブラウザは build.py の NAV_JS が top/left を計算する。 */
.nav-trigger { font: inherit; letter-spacing: inherit; background: none; border: 0; margin: 0; cursor: pointer; padding: 6px 10px; border-radius: 6px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.nav-trigger::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.nav-trigger[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -1px; }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--brand-soft); }
/* いまいるコーナー：色だけに頼らず下線もつける */
.nav-group.is-active > .nav-trigger { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 6px 6px 0 0; }
.nav-panel { list-style: none; position: fixed; inset: auto; margin: 0; min-width: 240px; padding: 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
/* 作者CSSの display は UA の [popover] 非表示を上書きしてしまうので、開いているときだけ指定する。
   :is() でまとめるのは、ポリフィルの .\:popover-open と併記しても規則全体が無効にならないようにするため */
.nav-panel:is(:popover-open, .\:popover-open) { display: flex; flex-direction: column; }
.nav-panel li { margin: 0; }
@supports (position-area: block-end) {
  .nav-panel { position-area: block-end span-inline-end; position-try-fallbacks: flip-inline; margin-block-start: 6px; }
}
.nav-panel a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; border-bottom: 0; white-space: nowrap; }
.nav-panel a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-panel a[aria-current="page"] { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
@media (max-width: 640px) {
  .gnav { overflow: visible; width: 100%; justify-content: space-between; gap: 4px; }
  .nav-trigger { padding: 6px 6px; font-size: 0.8125rem; letter-spacing: 0; }
  .nav-trigger::after { margin-left: 5px; width: 5px; height: 5px; }
  .nav-panel { min-width: 0; }
  .nav-panel a { white-space: normal; }
}
@media (max-width: 640px) {
  @supports (position-area: block-end) {
    /* スマホは画面幅いっぱい（左右に余白）でボタンの下に出す */
    .nav-panel { position-area: block-end; position-try-fallbacks: none; inset-inline: var(--gutter); justify-self: stretch; width: auto; }
  }
}
@media (forced-colors: active) {
  .nav-group.is-active > .nav-trigger { text-decoration: underline; }
}

/* ===== LP (standalone landing pages) ===== */
body.lp { background: var(--paper); }
.lp-wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.lp-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.lp-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.lp-brand { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.lp-brand span { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.lp-head-btn { flex: none; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700; font-size: .875rem; padding: 9px 14px; border-radius: 999px; }
.lp-hero { position: relative; color: #fff; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.lp-hero-bg { position: absolute; inset: 0; margin: 0; }
.lp-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,24,20,.82) 0%, rgba(30,24,20,.6) 55%, rgba(30,24,20,.25) 100%); }
.lp-hero-inner { position: relative; padding-top: 56px; padding-bottom: 56px; width: 100%; }
.lp-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; font-size: .875rem; }
.lp-hero h1 { margin: 0 0 18px; font-size: clamp(1.7rem, 4.6vw, 2.8rem); line-height: 1.35; letter-spacing: .02em; }
.lp-lead { max-width: 34em; margin: 0 0 18px; line-height: 1.85; }
.lp-badges { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-badges li { background: var(--sun); color: #33302C; font-weight: 700; font-size: .875rem; padding: 6px 12px; border-radius: 6px; }
.lp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.lp-cta-note { font-size: .8125rem; opacity: .9; }
.lp-btn { display: inline-block; background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none; padding: 16px 28px; border-radius: 999px; box-shadow: 0 4px 0 var(--brand-dark); transition: transform .1s, box-shadow .1s; }
.lp-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--brand-dark); color: var(--on-brand); }
.lp-btn-lg { font-size: 1.125rem; padding: 18px 36px; }
.lp-sec { padding: 64px 0; }
.lp-alt { background: var(--brand-soft); }
.lp-sec h2, .lp-final h2 { font-size: clamp(1.35rem, 3.4vw, 1.85rem); line-height: 1.45; margin: 0 0 28px; text-align: center; }
.lp-sec h3 { font-size: 1.125rem; margin: 0 0 8px; line-height: 1.5; }
.lp-sec p { line-height: 1.85; }
.lp-note { font-size: .9375rem; color: var(--muted); max-width: 46em; margin: 24px auto 0; }
.lp-note-top { margin: -12px auto 24px; text-align: center; }
.lp-worries { list-style: none; max-width: 40em; margin: 0 auto; padding: 0; display: grid; gap: 10px; }
.lp-worries li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 14px 48px; position: relative; font-weight: 700; }
.lp-worries li::before { content: "✓"; position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.lp-two { display: grid; gap: 20px; }
.lp-two > div, .lp-places > div { background: #fff; border-radius: 12px; padding: 22px; border: 1px solid var(--line); }
.lp-cards { display: grid; gap: 20px; }
.lp-card { border: 2px solid var(--brand); border-radius: 14px; padding: 24px; background: #fff; }
.lp-card-no { display: inline-block; margin: 0 0 10px; background: var(--brand); color: #fff; font-weight: 700; padding: 4px 16px; border-radius: 999px; font-size: 1rem; }
.lp-places { display: grid; gap: 16px; }
.lp-cases { display: grid; gap: 20px; }
.lp-case { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.lp-case-tag { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; color: var(--brand); }
.lp-case dl { margin: 12px 0 0; font-size: .9375rem; line-height: 1.75; }
.lp-case dt { font-weight: 700; margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.lp-case dd { margin: 2px 0 0; }
.lp-flow { list-style: none; counter-reset: f; max-width: 40em; margin: 0 auto; padding: 0; }
.lp-flow li { counter-increment: f; position: relative; padding: 0 0 22px 60px; }
.lp-flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.lp-flow li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.lp-flow p { margin: 0; }
.lp-price { width: 100%; max-width: 40em; margin: 0 auto; border-collapse: collapse; background: #fff; }
.lp-price th, .lp-price td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.lp-price thead th { background: var(--ink); color: #fff; }
.lp-monitor { max-width: 40em; margin: 28px auto 0; background: var(--sun); border-radius: 14px; padding: 24px; text-align: center; }
.lp-monitor-tag { display: inline-block; margin: 0 0 6px; background: var(--ink); color: #fff; font-weight: 700; padding: 3px 12px; border-radius: 4px; font-size: .875rem; }
.lp-monitor-main { margin: 0 0 6px; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; }
.lp-monitor-sub { margin: 0; font-size: .9375rem; }
.lp-faq { max-width: 44em; margin: 0 auto; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.lp-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; }
.lp-faq details p { margin: 0; padding: 0 18px 16px; }
.lp-final { background: var(--ink); color: #fff; text-align: center; padding: 64px 0 72px; }
.lp-final p { max-width: 36em; margin: 0 auto 28px; line-height: 1.85; }
.lp-foot { padding: 28px 0 96px; font-size: .8125rem; color: var(--muted); text-align: center; }
.lp-foot p { margin: 4px 0; }
.lp-foot-note { margin-top: 12px !important; }
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); text-align: center; }
.lp-sticky .lp-btn { display: block; max-width: 420px; margin: 0 auto; padding: 14px; }
@media (min-width: 760px) {
  .lp-two { grid-template-columns: 1fr 1fr; }
  .lp-cards, .lp-places, .lp-cases { grid-template-columns: repeat(3, 1fr); }
  .lp-sticky { display: none; }
  .lp-foot { padding-bottom: 28px; }
  .lp-hero { min-height: 620px; }
}
.foot-mini { margin: 8px 0 0; font-size: .75rem; }
.foot-mini a { color: var(--muted); text-decoration: none; }
.foot-mini a:hover { text-decoration: underline; }
.foot-mini a + a { margin-left: 1.2em; }
.lp-voices { display: grid; gap: 16px; max-width: 44em; margin: 0 auto; }
.lp-voices .voice { margin: 0; background: #fff; }
.lp-case-empty { border-style: dashed; background: var(--paper); color: var(--muted); }

/* 記事内の部品：手順フロー・バッジ・折りたたみ */
.flow { list-style: none; counter-reset: fl; margin: 0 0 1.6em; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flow li { counter-increment: fl; background: var(--brand-soft); border-radius: 4px; padding: 12px 10px 12px; text-align: center; font-weight: 700; font-size: 0.9375rem; line-height: 1.5; position: relative; }
.flow li::before { content: counter(fl); display: block; width: 1.9em; height: 1.9em; line-height: 1.9em; margin: 0 auto 6px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 0.875rem; }
.flow li small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8125rem; margin-top: 4px; }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; } .flow li { text-align: left; display: grid; grid-template-columns: 2.6em 1fr; align-items: center; } .flow li::before { margin: 0; } .flow li small { grid-column: 2; } }
.ok, .ng, .mid { display: inline-block; padding: 1px 8px; border-radius: 3px; font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.ok { background: #E4F1E6; color: #1F5A2B; }
.ng { background: #FBE3DC; color: #8A2A12; }
.mid { background: #FFF3CF; color: #6B4A00; }
details.fold { border: 1px solid var(--line); border-radius: 4px; margin: 0 0 1.2em; background: var(--surface); }
details.fold > summary { cursor: pointer; font-weight: 700; padding: 12px 16px; list-style-position: inside; }
details.fold[open] > summary { color: var(--brand); border-bottom: 1px solid var(--line); }
details.fold > :not(summary) { margin-left: 16px; margin-right: 16px; }
details.fold > summary + * { margin-top: 14px; }
details.fold > :last-child { margin-bottom: 16px; }
.prose ol.flow, ol.flow { padding: 0; margin: 0 0 1.6em; list-style: none; }
.prose ol.flow li { margin: 0; }
.flow li::before { text-align: center; text-indent: 0; box-sizing: border-box; }
@media (max-width: 640px) { .flow li::before { justify-self: center; } .prose td:first-child, .prose th:first-child { min-width: 7em; } }

/* 記事内：ベージュを減らし、白地＋罫線で見せる */
.article-head .lead { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.prose th { background: var(--paper); border-bottom: 2px solid var(--ink); }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.conditions-title { background: var(--paper); }
.flow li { background: var(--paper); border: 1px solid var(--line); }

/* 11/18: 文字組み。見出しは行の長さをそろえ、本文は最終行に1〜2文字だけ残る改行を避ける（未対応ブラウザは通常の折り返し） */
h1, h2, h3, .rel-t, .cta-title, .lp-sec h2, .lp-final h2 { text-wrap: balance; }
.prose p, .prose li, .article-head .lead, .rel-d, .faq details p, .foot-desc, .home-section > p { text-wrap: pretty; }

/* 11/18: 横スクロールの表はキーボードでも動かせる（tabindex=0）。フォーカス時は枠を表示 */
.table-scroll:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
