/* やまぶき福祉用具店: 読む人は40〜60代の家族と、ご本人。文字は20pxから、色数は緑・黒・白と注意の橙だけ。
   装飾を減らし、太い線と余白で区切る。電話番号は画面のどこにいても見える/押せる位置に置く */
:root {
  --paper: #fffdf7;
  --ink: #1a1a1a;
  --mute: #4a4a44;
  --green: #1d5c3a;
  --green-dark: #144329;
  --soft: #eef3ea;
  --warn: #9a3d00;
  --line: #bfbfb2;
  --sans: "BIZ UDPGothic", "Meiryo", "Yu Gothic", "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 20px; scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-gutter: stable; }
html.large { font-size: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.8; padding-bottom: 76px; -webkit-text-size-adjust: 100%; }
h1, h2 { margin: 0; line-height: 1.4; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--warn); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 40; font-size: 16px; }

/* 見出し帯は px 固定: 文字サイズを切り替えても、ボタンの位置が動かない */
.head { position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; background: var(--paper); border-bottom: 4px solid var(--green); font-size: 16px; }
.brand { font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.size { display: flex; align-items: center; gap: 6px; }
.size span { display: none; font-size: 14px; }
.size button { width: 64px; height: 44px; border: 2px solid var(--green); background: #fff; color: var(--green); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.size button[aria-pressed="true"] { background: var(--green); color: #fff; }
.head-tel { display: none; }

.hero { padding: 36px 16px 44px; max-width: 880px; margin: 0 auto; }
h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; }
.lead { margin-bottom: 28px; }
.lead strong { background: #ffe58a; padding: 0 .15em; }
.call { display: flex; flex-direction: column; gap: 10px; }
.call-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 104px; padding: 12px; background: var(--green); color: #fff; text-decoration: none; border: 3px solid var(--green-dark); }
.call-btn:hover { background: var(--green-dark); }
.call-label { font-size: .8rem; }
.call-num { font-size: 1.9rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.call-hours { font-size: .8rem; color: var(--mute); }

.sec { padding: 40px 16px; max-width: 880px; margin: 0 auto; border-top: 4px solid var(--ink); }
h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 14px; }
.sub { margin-bottom: 20px; color: var(--mute); }

.worry { list-style: none; margin: 0; padding: 0; }
.worry li { border-bottom: 2px solid var(--line); }
.worry li:first-child { border-top: 2px solid var(--line); }
.worry a { display: block; padding: 16px 40px 16px 4px; text-decoration: none; position: relative; min-height: 76px; }
.worry a::after { content: "›"; position: absolute; right: 8px; top: 50%; transform: translateY(-52%); font-size: 2rem; color: var(--green); }
.worry b { display: block; font-size: 1.05rem; }
.worry span { color: var(--green); font-size: .85rem; text-decoration: underline; }
.worry a:hover { background: var(--soft); }

/* 割合の切り替え: 選んだボタンは色の反転のみ（太さ・幅は同じ）。表は行数固定で数字だけ入れ替わる */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; min-height: 56px; border: 3px solid var(--green); background: #fff; color: var(--green); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--green); color: #fff; }
.price { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.price thead th { text-align: left; font-size: .8rem; padding: 8px 4px; border-bottom: 3px solid var(--ink); }
.price thead th:last-child { text-align: right; width: 7rem; }
.price th, .price td { padding: 14px 4px; border-bottom: 2px solid var(--line); text-align: left; font-weight: 700; vertical-align: top; }
.price td { text-align: right; font-size: 1.15rem; white-space: nowrap; }
.price small { display: block; font-weight: 400; color: var(--mute); font-size: .75rem; }
.notes { margin: 20px 0 0; padding: 0; list-style: none; color: var(--mute); font-size: .85rem; }
.notes li { margin-bottom: 8px; padding-left: 1.1em; text-indent: -1.1em; }
.notes li::before { content: "※"; }

.buy { list-style: none; margin: 0; padding: 0; }
.buy li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 2px solid var(--line); font-weight: 700; }
.buy span { font-variant-numeric: tabular-nums; white-space: nowrap; }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.flow li { counter-increment: s; padding: 16px 0 16px 56px; border-bottom: 2px solid var(--line); position: relative; }
.flow li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 40px; height: 40px; background: var(--green); color: #fff; font-weight: 700; text-align: center; line-height: 40px; }
.flow b { display: block; font-size: 1.05rem; }
.flow span { color: var(--mute); font-size: .9rem; }

.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 4px; font-weight: 700; position: relative; min-height: 64px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 8px; top: 16px; color: var(--green); font-size: 1.2rem; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 4px 16px; color: var(--mute); font-size: .92rem; }

.form { display: grid; gap: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 700; font-size: .9rem; }
input, select { font: inherit; font-size: 1rem; width: 100%; min-height: 60px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--warn); background: #fff3e8; }
.err { min-height: 2em; line-height: 1.5; font-size: .8rem; font-weight: 700; color: var(--warn); }
.submit-row { display: flex; flex-direction: column; gap: 10px; }
.submit { min-height: 64px; background: var(--green); color: #fff; border: 3px solid var(--green-dark); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.submit:hover { background: var(--green-dark); }
.status { min-height: 4em; font-size: .85rem; color: var(--mute); }
.status[data-state="error"] { color: var(--warn); font-weight: 700; }

.shop { margin: 0; }
.shop div { padding: 14px 4px; border-bottom: 2px solid var(--line); }
.shop dt { font-weight: 700; color: var(--green); font-size: .85rem; }
.shop dd { margin: 0; }

.foot { padding: 28px 16px 36px; border-top: 4px solid var(--ink); text-align: center; }
.sample-note { font-size: 13px; color: var(--mute); line-height: 1.7; }

/* 画面下の電話帯（スマホ）: 常に同じ場所・同じ高さ */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; border-top: 3px solid var(--green-dark); }

@media (min-width: 880px) {
  .head { padding: 0 40px; }
  .size span { display: inline; }
  .head-tel { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; font-size: 18px; }
  body { padding-bottom: 0; }
  .bar { display: none; }
  .hero { padding: 72px 40px 64px; }
  h1 { font-size: 2.2rem; }
  .call { flex-direction: row; align-items: center; gap: 24px; }
  .call-btn { min-width: 420px; }
  .sec { padding: 64px 40px; }
  .form { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .submit-row { grid-column: 1 / -1; }
  .submit { width: 360px; }
}
