/* 届出レーダー LP。色・書体は製品（todokede-app src/public-layout-css.ts）と同じ値。
   装飾は製品の「角印（医・介）」の 1 つだけ。角丸と影は画面の額縁にだけ使う。
   ブレイクポイント: 768px（2 列に）と 1024px（ヒーローの 40:60） */
:root {
  --ink: #1b1f24; --sub: #56606d; --faint: #6b7684; --line: #d5dae1; --wash: #f4f5f7; --paper: #fff;
  --field-line: #8793a1;
  --iryo: #1d4c8f; --iryo-wash: #e9f0f9; --iryo-fg: #1d4c8f;
  --kaigo: #b5500f; --kaigo-wash: #fbeee2; --kaigo-fg: #a3480d;
  --mid: #7a5200; --mid-bg: #fff3c9; --caution: #d99a00;
  --band: #1b1f24; --band-ink: #fff; --band-sub: #c9d0d8; --band-line: #3a434e;
  --shadow: 0 1px 2px rgba(27, 31, 36, .06), 0 10px 28px rgba(27, 31, 36, .10);
  --gutter: 16px; --max: 1120px; --bar: 56px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7eaee; --sub: #a3adba; --faint: #8f9aa8; --line: #2e3640; --wash: #171c23; --paper: #0f1318;
    --field-line: #5b6673;
    --iryo: #173e77; --iryo-wash: #16233a; --iryo-fg: #9cc2ff;
    --kaigo: #8f400c; --kaigo-wash: #33200f; --kaigo-fg: #ffb685;
    --mid: #f0c772; --mid-bg: #3a2d08; --caution: #f0c772;
    --band: #171c23; --band-line: #2e3640;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 8px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 1rem; line-height: 1.8; font-variant-numeric: tabular-nums; line-break: strict; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--iryo-fg); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--iryo-fg); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.4; word-break: auto-phrase; text-wrap: balance; margin: 0; }
h2 { font-size: 1.35rem; }
@media (min-width: 1024px) { h2 { font-size: 1.6rem; } }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 .9em; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap > *, .hero__grid > *, .two > *, .band__grid > *, .feat > *, .price-grid > * { min-width: 0; }
.note { font-size: .875rem; color: var(--sub); }
.lead { color: var(--sub); max-width: 46em; }

/* ── 角印（製品の「医」「介」の印。この LP の唯一の装飾＝医療・介護の区別を符号化する） ── */
.seal {
  display: inline-grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; margin-right: .45em; vertical-align: -.25em;
  border-radius: 5px; font-size: .95em; font-weight: 700; line-height: 1; color: #fff;
}
.seal--iryo { background: var(--iryo); }
.seal--kaigo { background: var(--kaigo); }

/* ── 上の帯 ── */
.bar { position: sticky; top: 0; z-index: 30; background: var(--iryo); color: #fff; }
.bar__in { display: flex; align-items: center; gap: 12px; max-width: var(--max); min-height: var(--bar); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.bar :focus-visible { outline-color: #fff; }
.menu-btn {
  margin-left: auto; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 8px;
  background: transparent; color: #fff; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
}
.no-js .menu-btn { display: none; }
.no-js .bar { position: static; } /* JS なしは目次が帯の中に並んで帯が高くなるため、固定しない（R2 実装 MEDIUM-N1） */
.js .nav { display: none; }
@media (max-width: 767px) {
  .no-js .bar__in { flex-wrap: wrap; }
  .no-js .nav { display: block; width: 100%; padding: 0 0 10px; }
  .no-js .nav ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .no-js .nav li a { padding: 6px 0; border: 0; }
}
.nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 16px; background: var(--iryo); border-top: 1px solid rgba(255, 255, 255, .25); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li a { display: block; padding: 10px 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.nav .btn--small { margin-top: 12px; background: #fff; color: var(--iryo); }
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav, .js .nav, .nav.is-open { display: flex; position: static; align-items: center; gap: 20px; margin-left: auto; padding: 0; border: 0; background: none; }
  .nav ul { display: flex; gap: 18px; }
  .nav li a { padding: 6px 0; border: 0; font-size: .92rem; }
  .nav li a:hover { text-decoration: underline; }
  .nav .btn--small { margin-top: 0; }
}

/* ── ボタン（製品と同じ角の丸め。丸薬形にしない） ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  border: 1.5px solid var(--iryo); border-radius: 10px; background: var(--iryo); color: #fff;
  font-weight: 700; text-decoration: none; line-height: 1.4; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn--line { background: transparent; color: var(--iryo-fg); border-color: var(--iryo-fg); }
.btn--small { min-height: 40px; padding: 6px 14px; font-size: .9rem; }
.btn--on-dark { background: #fff; color: #1d4c8f; border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }

/* ── ヒーロー（スマホ: 見出し → 画面 → 本文 → ボタン） ── */
.hero { background: var(--iryo-wash); padding: 28px 0 32px; }
.hero__grid { display: grid; gap: 20px; }
.hero__h { font-size: clamp(1.5rem, calc((100vw - 2 * var(--gutter)) / 12.6), 2.3rem); line-height: 1.38; }
.hero__h span { display: block; }
.hero__lead { font-size: 1.02rem; }
.hero__price { font-size: .95rem; color: var(--sub); margin: 0; }
.hero__note { margin: .5em 0 0; }
.hero__shots { position: relative; }
.frame { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.frame figcaption { padding: 10px 14px; font-size: .85rem; color: var(--sub); background: var(--paper); border-top: 1px solid var(--line); }
.frame--phone { display: none; }
.frame--phone-flat { max-width: 300px; border-radius: 18px; padding: 8px; background: var(--wash); }
.frame--phone-flat img { border-radius: 10px; }
@media (max-width: 767px) { .hero .frame--desk, .feat__shot { padding: 8px; background: var(--wash); } .hero .frame--desk img, .feat__shot img { border-radius: 6px; } }
.hero .frame--desk { max-width: 420px; margin: 0 auto; }
.facts4 { display: grid; grid-template-columns: 1fr; margin: 4px 0 0; border-top: 1px solid var(--line); }
.facts4 > div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts4 dt { font-weight: 700; }
.facts4 dd { margin: 0; color: var(--sub); }
@media (min-width: 768px) {
  .hero { padding: 48px 0 44px; }
  .hero__grid { grid-template-columns: 42fr 58fr; grid-template-areas: "h shots" "text shots" "facts facts"; column-gap: 40px; row-gap: 16px; align-items: start; }
  .hero__h { grid-area: h; font-size: min(2.3rem, calc((min(100vw, var(--max)) - 2 * var(--gutter) - 40px) * .42 / 12.6)); align-self: end; }
  .hero__text { grid-area: text; }
  .hero__shots { grid-area: shots; padding: 0 56px 56px 0; }
  .hero .frame--desk { max-width: none; }
  .frame--phone { display: block; position: absolute; right: 0; bottom: 0; width: 28%; border: 5px solid var(--ink); border-radius: 22px; }
  .facts4 { grid-area: facts; grid-template-columns: repeat(4, 1fr); border: 0; gap: 0; margin-top: 12px; }
  .facts4 > div { grid-template-columns: 1fr; align-content: start; gap: 2px; padding: 12px 16px 4px 0; border-bottom: 0; border-top: 2px solid var(--iryo); margin-right: 16px; }
}

/* ── 章 ── */
.sec { padding: 52px 0; }
.sec h2 { margin-bottom: .6em; }
.sec + .sec { border-top: 1px solid var(--line); }
.narrow { max-width: 780px; }

/* 表 */
.table-scroll { position: relative; overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 2px solid var(--ink); font-size: .95rem; }
.cmp th[scope="row"] { width: 7.5em; color: var(--sub); font-weight: 700; font-size: .92rem; }
.cmp td { width: 46%; }
@media (max-width: 767px) {
  /* スマホは 1 項目ずつ縦に（表の意味は保ったまま見た目だけ組み替え） */
  .cmp thead { display: none; }
  .cmp tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cmp th[scope="row"], .cmp td { display: block; width: auto; padding: 4px 0; border: 0; }
  .cmp td::before { display: block; font-size: .82rem; font-weight: 700; }
  .cmp td:nth-of-type(1)::before { content: "医療の届出"; color: var(--iryo-fg); }
  .cmp td:nth-of-type(2)::before { content: "介護の事業所"; color: var(--kaigo-fg); }
}

/* ── 画面で見る ── */
.feat { margin-top: 40px; }
.feat h3 { margin-bottom: .7em; }
.feat__shot { margin-top: 18px; }
.feat--wide .feat__shot { max-width: 480px; }
@media (min-width: 768px) {
  .feat--wide { display: grid; grid-template-columns: 30fr 70fr; gap: 32px; align-items: start; }
  .feat--wide .feat__shot { max-width: none; margin-top: 0; }
}
.caution { margin: 16px 0 0; padding: 12px 14px; background: var(--mid-bg); border-left: 4px solid var(--caution); }
.caution p { margin: 0; font-size: .92rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 28px 44px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px;
  border: 2px solid var(--kaigo-fg); border-radius: 50%; color: var(--kaigo-fg); font-weight: 700; font-size: .95rem; background: var(--paper);
}
.steps > li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h4 { padding-top: 2px; }
.steps p { color: var(--sub); margin: .3em 0 .8em; }
.steps .frame { max-width: 640px; }
.steps .frame--phone-flat { max-width: 320px; }
.steps > li > figure { position: relative; z-index: 1; }
@media (max-width: 767px) { .steps > li > figure { margin-left: -44px; } .steps > li > .frame--phone-flat { margin-left: -44px; } }
@media (min-width: 768px) {
  .steps > li { display: grid; grid-template-columns: 34fr 66fr; grid-template-rows: auto 1fr; column-gap: 32px; }
  .steps > li > h4, .steps > li > p { grid-column: 1; }
  .steps > li > figure { grid-column: 2; grid-row: 1 / span 2; }
}

/* 濃い帯 */
.band { margin-top: 48px; padding: 48px 0; background: var(--band); color: var(--band-ink); }
.band a { color: #fff; }
.band :focus-visible { outline-color: #fff; }
.band__grid { display: grid; gap: 28px; }
.band h3 { font-size: 1.5rem; margin-bottom: .6em; }
.band .notify th, .band .notify td { border-color: var(--band-line); }
.band .notify thead th { border-bottom-color: var(--band-ink); color: var(--band-sub); }
.band .notify th[scope="row"] { width: 11em; font-weight: 700; }
.band .notify td { color: var(--band-sub); }
.band__note { font-size: .88rem; color: var(--band-sub); margin-top: 12px; }
.band__shots { display: grid; gap: 16px; align-content: start; }
.band__shots .frame { border-color: var(--band-line); }
.band__shots .frame--phone-flat { max-width: 340px; }
@media (min-width: 768px) { .band__shots { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 767px) {
  .band .notify thead { display: none; }
  .band .notify tr, .band .notify th[scope="row"], .band .notify td { display: block; width: auto; }
  .band .notify th[scope="row"] { padding: 12px 0 4px; border: 0; }
  .band .notify td { padding: 0 0 12px; }
}
@media (min-width: 1024px) {
  .band__grid { grid-template-columns: 52fr 48fr; gap: 40px; }
  .band__shots { grid-template-columns: 1fr; justify-items: start; }
  .band__shots .frame--phone-flat { max-width: 380px; }
}

/* 罫線の一覧 */
.ruled { margin: 0; border-top: 1px solid var(--line); }
.ruled > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ruled dt { font-weight: 700; }
.ruled dd { margin: 4px 0 0; color: var(--sub); }
@media (min-width: 768px) {
  .ruled > div { display: grid; grid-template-columns: 16em 1fr; gap: 24px; }
  .ruled dd { margin: 0; }
}

/* できないこと */
.sec--cannot { background: var(--wash); }
.cannot { margin: 0; padding-left: 1.2em; max-width: 52em; }
.cannot li { margin-bottom: .7em; }

/* 料金 */
.price2 { border-top: 2px solid var(--ink); }
.price2__row { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price2__row p { margin: 0; }
.price2__what { font-weight: 700; color: var(--sub); }
.price2__num { font-size: 2rem; font-weight: 700; line-height: 1.3; }
.price2__cond { font-size: 1.05rem; }
@media (min-width: 768px) {
  .price2__row { grid-template-columns: 13em 1fr; align-items: baseline; column-gap: 16px; }
  .price2__num, .price2__cond { grid-column: 2; }
}
.warn { margin: 18px 0; padding: 12px 14px; background: var(--mid-bg); border: 1px solid var(--caution); border-radius: 4px; }
.warn p { margin: 0; }
.price-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .price-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.ex caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.ex td:not(:first-child), .ex th:not(:first-child) { text-align: right; }
.ex td:last-child, .ex th:last-child { padding-right: 0; }
.ex td:not(:first-child) { white-space: nowrap; } /* 「24,500 円」を折らない（R2 デザイン R-1） */
.calc { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--field-line); border-radius: 8px; }
.calc__h { font-weight: 700; margin-bottom: 8px; }
.calc__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.calc input { width: 6.5em; min-height: 44px; padding: 6px 10px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--field-line); border-radius: 6px; }
.calc__out { margin: 12px 0 0; font-size: 1.3rem; font-weight: 700; }
.conds { padding-left: 1.2em; color: var(--sub); max-width: 52em; }
.conds li { margin-bottom: .5em; }

/* 運営会社 */
.two { display: grid; gap: 28px; }
@media (min-width: 1024px) { .two { grid-template-columns: 55fr 45fr; gap: 48px; } }
.kv th { width: 8em; color: var(--sub); font-weight: 700; font-size: .92rem; }
.kv--num th { width: auto; }
.kv--num td { text-align: right; white-space: normal; padding-right: 0; }
.two__b h3 { margin: 6px 0 .6em; }
.plain { padding-left: 1.2em; }
.plain li { margin-bottom: .5em; }
.src { padding-left: 1.2em; color: var(--sub); font-size: .92rem; }
.sec--src .kv--num { max-width: 640px; }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 14px 32px 14px 0; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; content: "＋" / ""; position: absolute; right: 4px; top: 14px; color: var(--sub); }
.faq details[open] summary::after { content: "－"; content: "－" / ""; }
.faq details p { margin: 0 0 16px; color: var(--sub); }

/* 最後の CTA */
.last { padding: 52px 0; background: var(--iryo); color: #fff; }
.last h2 { font-size: 1.5rem; margin-bottom: .5em; }
.last a:not(.btn) { color: #fff; }
.last :focus-visible { outline-color: #fff; }

.foot { padding: 28px 0 40px; font-size: .9rem; color: var(--sub); }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; margin: 8px 0; padding: 0; }
.foot ul a { display: inline-block; padding: 8px 0; }

/* 画面下の追従 CTA（スマホ・最初のボタンが見えていない間だけ） */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); }
.dock .btn { width: 100%; }
@media (max-width: 767px) { html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 768px) { .dock { display: none !important; } }

@media print {
  .bar, .dock, .skip { display: none !important; }
  .band, .last { background: #fff !important; color: #000 !important; }
  .band a, .last a, .band .notify td, .band .notify thead th, .band__note { color: #000 !important; }
  .seal { color: #000 !important; background: #fff !important; border: 1px solid #000; }
  .faq details::details-content { content-visibility: visible; display: block; }
}
