/* 訪問看護ステーション ともづな（デモ）
   白・青緑・薄い黄だけ。絵はすべて青緑の細いペン線に、薄い黄の塗りをずらして重ねる */
:root {
  --w: #fff;
  --t: #3A8F8A;        /* 絵の線・見出しの下の線 */
  --td: #2B706C;       /* 文字にする青緑（白地で 5:1 以上） */
  --y: #F7E9A8;        /* 絵の塗り */
  --yp: #FCF7DE;       /* 区画の地（ごく薄く） */
  --ink: #2F3A3A;
  --mute: #56625F;
  --rule: #CFE0DD;
  --r: 8px;
  --hand: "Klee One", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(.22,.7,.25,1);
  --arw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M1.5 6.4C8 5.6 16 6.6 27 5.8M22 1.6c1.8 1.6 3.4 2.8 5.2 4.2-1.9 1.3-3.4 2.6-5 4.4' fill='none' stroke='%232B706C' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arw-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M1.5 6.4C8 5.6 16 6.6 27 5.8M22 1.6c1.8 1.6 3.4 2.8 5.2 4.2-1.9 1.3-3.4 2.6-5 4.4' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --uline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.2C14 4.4 26 7.2 40 5.4S68 3.8 88 5.6' fill='none' stroke='%233A8F8A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --harw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24'%3E%3Cpath d='M2 13C14 10.5 30 14.5 52 11.6M45 5.5c2.6 2.2 5 4 7.6 6.1-2.8 1.9-5 3.8-7.3 6.4' fill='none' stroke='%233A8F8A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --varw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 44'%3E%3Cpath d='M12.4 2C11 14 13.4 26 11.8 38M6 32.5c2 2.4 3.8 4.6 5.8 7 1.9-2.6 3.6-4.6 6-6.8' fill='none' stroke='%233A8F8A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 132px; }
body { margin: 0; background: var(--w); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: clamp(15px, 0.9rem + 0.25vw, 17px); line-height: 1.85; letter-spacing: .02em; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--td); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--td); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 .9em; }
h1, h2, h3 { font-family: var(--hand); font-weight: 600; line-height: 1.45; letter-spacing: .03em; margin: 0; font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; }
.small { font-size: .86em; color: var(--mute); line-height: 1.75; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.wrap--m { width: min(880px, 100% - 48px); }

/* 絵の線（どの絵も同じ太さ） */
.ill .ln { fill: none; stroke: var(--t); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ill .ln.thin { stroke-width: 1.1; }
.ill .ln.wf { fill: #fff; }
.ill .ln.dash { stroke-dasharray: 5 6; stroke-width: 1.5; }
.ill .fy { fill: var(--y); }
.ill .draw { filter: url(#hand); }
.ill .lb { font-family: var(--hand); font-weight: 600; font-size: 22px; fill: var(--td); paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.ill .lb.town-n { font-size: 24px; stroke: var(--y); }
.ill .lb.out { font-size: 20px; }
.ic { width: 72px; height: 72px; display: block; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .55em 1.3em; border-radius: var(--r); font-weight: 700; font-size: .95rem; text-decoration: none; letter-spacing: .06em; border: 1.5px solid var(--td); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn--fill { background: var(--td); color: #fff; box-shadow: 3px 3px 0 var(--y); }
.btn--fill:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--y); }
.btn--white { background: #fff; color: var(--td); border-color: #fff; box-shadow: 3px 3px 0 var(--y); }
.btn--white:hover { transform: translate(-1px, -1px); }
.btn--line { background: #fff; color: var(--td); }
.btn--line:hover { background: var(--yp); }
.btn--lg { min-height: 54px; padding: .7em 1.8em; font-size: 1rem; }
.arw { display: inline-block; width: 30px; height: 12px; background: var(--arw) no-repeat center / contain; transition: transform .35s var(--ease); flex: none; }
.arw--lg { width: 38px; height: 16px; }
.more { display: inline-flex; align-items: center; gap: .7em; font-weight: 700; text-decoration: none; padding: .5em 0; border-bottom: 1.5px solid var(--t); }
.more:hover .arw { transform: translateX(5px); }
.act { margin-top: 1.6rem; }
.ic-tel { width: 1.1em; height: 1.1em; flex: none; }
.ic-msg { width: 1.2em; height: 1.2em; }

/* 見出し（下に手描きの1本線） */
.h2 { font-size: clamp(24px, 1.1rem + 1.2vw, 34px); color: var(--ink); }
.h2::after { content: ""; display: block; width: 84px; height: 10px; margin-top: .35em; background: var(--uline) no-repeat left / 100% 100%; }
.h2--s { font-size: clamp(21px, 1rem + .7vw, 26px); }
.h2--s::after { width: 60px; }
.h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.sh { margin-bottom: 2.2rem; }
.sh p { margin-top: 1rem; max-width: 40em; }
.sec { padding: clamp(56px, 7vw, 104px) 0; }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule); }
.hd__in { width: min(1240px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 14px; padding: 12px 0 6px; }
.brand { display: block; line-height: 0; }
.logo { width: 212px; height: auto; display: block; overflow: visible; }
.logo__mark path { fill: none; stroke: var(--t); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo__mark .roof { stroke-width: 1.9; }
.logo__sub { font-family: var(--hand); font-weight: 600; font-size: 13px; fill: var(--mute); }
.logo__name { font-family: var(--hand); font-weight: 600; font-size: 29px; fill: var(--ink); letter-spacing: .08em; }
.demo { align-self: center; font-size: 10px; letter-spacing: .14em; color: var(--mute); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 6px; line-height: 1.5; }
.hd__contact { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.hd__tel { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.hd__tel .ic-tel { color: var(--td); }
.hd__no { font-weight: 500; font-size: 1.3rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hd__time { font-size: .78rem; color: var(--mute); }
.hd__fax { font-size: .8rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.hd__telsp, .menu { display: none; }
.gnav { width: min(1240px, 100% - 40px); margin-inline: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 30px; }
.gnav a { display: inline-block; padding: 6px 0 10px; text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; position: relative; }
.gnav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 7px; background: var(--uline) no-repeat center / 100% 100%; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.gnav ul a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav a[aria-current="page"] { color: var(--td); font-weight: 700; }
.gnav__contact { display: none; }

@media (max-width: 1080px) {
  .hd__fax, .hd__time { display: none; }
}
@media (max-width: 920px) {
  html { scroll-padding-top: 76px; }
  .hd__in { padding: 10px 0; }
  .logo { width: 176px; }
  .hd__contact { display: none; }
  .hd__telsp { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--td); color: var(--td); }
  .hd__telsp .ic-tel { width: 20px; height: 20px; }
  .menu { display: grid; place-items: center; gap: 2px; width: 52px; height: 48px; border: 0; background: var(--td); color: #fff; border-radius: var(--r); cursor: pointer; padding: 6px 0 4px; }
  .menu__bars, .menu__bars::before, .menu__bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease); }
  .menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
  .menu__bars::before { top: -6px; } .menu__bars::after { top: 6px; }
  .menu__label { font-size: 9px; font-weight: 700; letter-spacing: .12em; line-height: 1; margin-top: 6px; }
  .is-menu .menu__bars { background: transparent; }
  .is-menu .menu__bars::before { transform: translateY(6px) rotate(45deg); }
  .is-menu .menu__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .gnav { position: fixed; inset: 68px 0 0; width: auto; background: #fff; padding: 20px 24px 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; border-top: 1px solid var(--rule); }
  .is-menu .gnav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul li { border-bottom: 1px dashed var(--rule); }
  .gnav ul a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .gnav ul a::after { bottom: 8px; right: auto; width: 80px; }
  .gnav__contact { display: grid; gap: 10px; margin-top: 24px; }
  .gnav__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 500; text-decoration: none; color: var(--ink); }
  .gnav__tel small { font-size: .78rem; color: var(--mute); }
  .gnav__fax { color: var(--mute); font-size: .9rem; }
}

/* 最初の画面 */
.hero { position: relative; }
.hero__map { margin: 0; line-height: 0; }
.hero__svg { width: 100%; height: clamp(300px, 43vw, 640px); display: block; }
.hero__card { position: absolute; top: clamp(28px, 4vw, 64px); left: max(24px, calc((100% - 1240px) / 2)); width: min(540px, 44vw); background: #fff; border: 1.5px solid var(--t); border-radius: var(--r); padding: clamp(24px, 2.6vw, 40px) clamp(24px, 2.8vw, 44px); box-shadow: 8px 8px 0 var(--y); }
.hero__t { font-size: clamp(30px, 1rem + 2.2vw, 48px); line-height: 1.4; letter-spacing: .04em; }
.hero__t span { display: block; white-space: nowrap; }
.hero__lead { margin: 1.1em 0 0; font-size: .98rem; }
.entry { position: relative; z-index: 2; width: min(1160px, 100% - 48px); margin: -64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.entry__a { display: flex; align-items: center; gap: 20px; padding: 22px 26px; background: #fff; border: 1.5px solid var(--t); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: 5px 5px 0 var(--y); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.entry__a:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--y); }
.entry__a:hover .arw { transform: translateX(6px); }
.entry__ic .ic { width: 76px; height: 76px; }
.entry__b { flex: 1; display: grid; gap: 4px; }
.entry__t, .entry__d { word-break: auto-phrase; }
.entry__t { font-family: var(--hand); font-weight: 600; font-size: clamp(18px, .9rem + .45vw, 21px); color: var(--td); line-height: 1.45; }
.entry__d { font-size: .9rem; color: var(--mute); line-height: 1.7; }
/* 自転車が道に沿って進み、家の前で止まる（止まったあとは車輪だけゆっくり） */
.ill .wheel { transform-box: fill-box; transform-origin: center; }
.js .rider { animation: ride 6s cubic-bezier(.42,.05,.3,1) .5s both; }
.js .rider .wheel { animation: spin .8s linear .5s 7, spin 6s linear 6.1s infinite; }
@keyframes ride { from { transform: translateX(-450px); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .hero__card { position: relative; top: auto; left: auto; width: auto; margin: -36px 20px 0; z-index: 2; }
  .entry { margin-top: 24px; grid-template-columns: 1fr; gap: 14px; width: calc(100% - 40px); }
}
@media (max-width: 600px) {
  .hero__svg { height: 290px; }
  .hero__t { font-size: 30px; }
  .entry__a { padding: 18px; gap: 14px; }
  .entry__ic .ic { width: 58px; height: 58px; }
}

/* お知らせ */
.news { padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.news__in { width: min(1160px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 160px 1fr auto; gap: 8px 32px; align-items: start; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px 0; }
.news__h { font-size: 1.25rem; color: var(--td); padding-top: 4px; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 8px 0; }
.news__list li + li { border-top: 1px dashed var(--rule); }
.news__list time { font-weight: 500; color: var(--td); font-variant-numeric: tabular-nums; }
.news__list p { margin: 0; }
.news__more { white-space: nowrap; font-size: .9rem; font-weight: 500; padding-top: 8px; }
@media (max-width: 760px) {
  .news__in { grid-template-columns: 1fr; }
  .news__list li { grid-template-columns: 1fr; gap: 0; }
  .news__more { justify-self: end; }
}

/* できること */
.can__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.can__i { padding: 28px 32px 30px; display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; align-content: start; }
.can__i .ic { grid-row: span 2; width: 76px; height: 76px; }
.can__i h3 { font-size: 1.2rem; color: var(--ink); align-self: end; }
.can__i p { margin: .3em 0 0; font-size: .92rem; color: var(--mute); }
.can__i:not(:nth-child(3n+1)) { border-left: 1px dashed var(--rule); }
.can__i:nth-child(n+4) { border-top: 1px dashed var(--rule); }
@media (max-width: 900px) {
  .can__grid { grid-template-columns: 1fr 1fr; }
  .can__i { border: 0 !important; padding: 22px 12px; }
  .can__i:nth-child(n+3) { border-top: 1px dashed var(--rule) !important; }
}
@media (max-width: 560px) {
  .can__grid { grid-template-columns: 1fr; }
  .can__i { padding: 18px 0; grid-template-columns: 64px 1fr; }
  .can__i .ic { width: 64px; height: 64px; }
  .can__i:nth-child(n+2) { border-top: 1px dashed var(--rule) !important; }
}

/* 伺う地域 */
.area { background: var(--yp); }
.area__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.tm1 { margin: 0; background: #fff; border: 1.5px solid var(--t); border-radius: var(--r); padding: 10px; line-height: 0; }
.tm1__svg { width: 100%; height: auto; display: block; }
.area__towns { font-family: var(--hand); font-weight: 600; font-size: clamp(19px, 1rem + .6vw, 24px); line-height: 1.7; margin: 1.1rem 0 .8rem; color: var(--ink); }
.st-area .area__in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 860px) { .area__in, .st-area .area__in { grid-template-columns: 1fr; } .area__txt { order: -1; } }

/* 依頼から訪問が始まるまで（TM-2） */
.tm2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.tm2__s { position: relative; display: grid; justify-items: center; text-align: center; padding: 0 10px; align-content: start; }
.tm2__s:not(:last-child)::after { content: ""; position: absolute; top: 30px; right: -22px; width: 44px; height: 18px; background: var(--harw) no-repeat center / contain; }
.tm2__ic .ic { width: 80px; height: 80px; }
.tm2__n { display: flex; align-items: baseline; gap: .4em; margin-top: 10px; font-family: var(--hand); font-weight: 600; font-size: 1.1rem; line-height: 1.45; }
.tm2__no { font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--td); }
.tm2--big .tm2__ic .ic { width: 104px; height: 104px; }
.tm2--big .tm2__s:not(:last-child)::after { top: 40px; }
.tm2--big .tm2__n { font-size: 1.25rem; }
.tm2__branch, .tm2__note { display: block; margin-top: 14px; font-size: .82rem; line-height: 1.6; color: var(--mute); max-width: 13em; }
.tm2__branch { border: 1.5px dashed var(--t); border-radius: var(--r); padding: 8px 10px; background: var(--yp); position: relative; }
.tm2__branch::before { content: ""; position: absolute; top: -15px; left: 50%; height: 14px; border-left: 1.5px dashed var(--t); }
.flow__note { text-align: center; margin: 2.2rem 0 0; }
.flow .act { text-align: center; }
@media (max-width: 760px) {
  .tm2 { grid-template-columns: 1fr; gap: 26px; max-width: 380px; margin-inline: auto; }
  .tm2__s { grid-template-columns: 72px 1fr; justify-items: start; text-align: left; column-gap: 16px; padding: 0; }
  .tm2__ic { grid-row: span 3; }
  .tm2__ic .ic, .tm2--big .tm2__ic .ic { width: 72px; height: 72px; }
  .tm2__n { margin-top: 18px; }
  .tm2__s:not(:last-child)::after, .tm2--big .tm2__s:not(:last-child)::after { top: auto; bottom: -30px; left: 26px; right: auto; width: 20px; height: 36px; background-image: var(--varw); }
  .tm2__branch, .tm2__note { margin-top: 6px; max-width: none; }
  .tm2__branch::before { display: none; }
  .flow__note { text-align: left; }
}

/* 管理者から */
.mgr__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.mgr__txt .h2 { margin-bottom: 1.6rem; }
.mgr__txt p:not(.mgr__name) { font-size: 1.02rem; line-height: 2; }
.mgr__name { font-size: .92rem; color: var(--mute); margin-top: 1.4rem; }
.mgr__art { margin: 0; }
.mgr__svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .mgr__in { grid-template-columns: 1fr; } .mgr__art { max-width: 440px; margin-inline: auto; } }

/* お問い合わせ（トップの最後・青緑の地） */
.cta { background: var(--td); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.cta__in { width: min(960px, 100% - 48px); margin-inline: auto; text-align: center; }
.cta__t { font-size: clamp(22px, 1rem + 1.3vw, 32px); color: #fff; }
.cta p { margin: 1rem 0 1.8rem; }
.cta__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 30px; }
.cta__tel, .band__tel { white-space: nowrap; flex-wrap: wrap; justify-content: center; column-gap: 8px !important; }
.cta__tel small, .band__tel small { flex-basis: 100%; text-align: center; margin-top: -4px; }
.band__tel small { text-align: left; padding-left: 1.6em; }
@media (min-width: 761px) { .cta__tel small, .band__tel small { flex-basis: auto; margin-top: 0; padding-left: 0; } }
.cta__tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.cta__tel small { font-size: .8rem; }

/* 下層の頭 */
.ph { padding-top: clamp(24px, 3vw, 40px); }
.ph__in { width: min(1160px, 100% - 48px); margin-inline: auto; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--mute); margin-bottom: 14px; }
.crumb a { color: var(--mute); }
.ph__t { font-size: clamp(28px, 1.2rem + 2vw, 46px); }
.ph__art { margin: clamp(10px, 2vw, 24px) 0 0; line-height: 0; border-bottom: 1px solid var(--rule); }
.ph__svg { width: 100%; height: clamp(190px, 30vw, 440px); display: block; }
.ph__lead { width: min(1160px, 100% - 48px); margin: clamp(28px, 3vw, 44px) auto 0; font-size: 1.05rem; }
.road { display: block; width: 100%; height: 28px; }
.road .ln { fill: none; stroke: var(--t); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linecap: round; }

/* できること（下層） */
.kango { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 7vw, 104px); }
.toc { position: sticky; top: 140px; align-self: start; }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1.5px solid var(--t); }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: .92rem; }
.toc a:hover { color: var(--td); }
.ki { padding: 34px 0; border-top: 1px dashed var(--rule); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 12px 40px; }
.ki:first-child { border-top: 0; padding-top: 0; }
.ki__h { display: flex; align-items: center; gap: 14px; align-self: start; }
.ki__h .ic { width: 64px; height: 64px; flex: none; }
.ki__b p:last-child { margin-bottom: 0; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.tbl th { font-weight: 700; white-space: nowrap; }
.tbl--shochi thead th { font-family: var(--hand); font-weight: 600; color: var(--td); border-bottom: 1.5px solid var(--t); font-size: .92rem; }
.tbl--shochi tbody th { color: var(--td); }
.tbl + .small { margin-top: .8rem; }
.shinai { margin-top: 24px; padding: 26px 30px; border: 1.5px dashed var(--t); border-radius: var(--r); background: var(--yp); }
.shinai__t { font-size: 1.25rem; margin-bottom: .5rem; }
.shinai p { margin: 0; }
@media (max-width: 900px) {
  .kango { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ul { columns: 2; column-gap: 20px; }
  .ki { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .toc ul { columns: 1; } .tbl th { white-space: normal; } }

/* 流れと料金 */
.rflow .tm2 { margin-bottom: clamp(48px, 6vw, 80px); }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 30px; border-left: 1.5px dashed var(--t); }
.steps__i { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 0 0 30px; }
.steps__no { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--t); border-radius: 50%; font-family: var(--hand); font-weight: 600; font-size: 1.15rem; color: var(--td); box-shadow: 3px 3px 0 var(--y); position: relative; }
.steps h3 { font-size: 1.25rem; padding-top: 6px; }
.steps p { margin: .4em 0 0; }
.tm3 { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.tm3__top { display: inline-block; margin: 0; padding: 14px 28px; border: 1.5px solid var(--t); border-radius: var(--r); background: #fff; font-family: var(--hand); font-weight: 600; font-size: 1.2rem; box-shadow: 5px 5px 0 var(--y); }
.tm3__fork { display: block; width: 100%; height: 56px; }
.tm3__fork .ln { fill: none; stroke: var(--t); stroke-width: 1.7; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.tm3__ways { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tm3__way { padding: 0 14px; display: grid; justify-items: center; align-content: start; }
.tm3__who { margin: 0; padding: 14px 18px; list-style: none; border: 1.5px dashed var(--t); border-radius: var(--r); font-size: .95rem; line-height: 1.7; text-align: left; background: #fff; }
.tm3__who li + li { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--rule); }
.tm3__down { display: block; width: 24px; height: 44px; margin: 6px 0; background: var(--varw) no-repeat center / contain; }
.tm3__res { margin: 0; padding: 12px 26px; background: var(--y); border-radius: var(--r); font-family: var(--hand); font-weight: 600; font-size: 1.35rem; line-height: 1.4; }
.tm3__res small { font-family: var(--sans); font-weight: 500; font-size: .8rem; }
.tm3__bottom { margin: 34px 0 0; padding: 14px 20px; border: 1.5px solid var(--t); border-radius: var(--r); font-weight: 500; }
.hoken__txt { max-width: 760px; margin: 32px auto 0; }
.ryoukin { padding-top: 0; }
.tbl--fee th { width: 13em; color: var(--td); font-family: var(--hand); font-weight: 600; font-size: 1.1rem; padding: 18px 14px; }
.tbl--fee td { padding: 18px 14px; }
.tbl--fee tr:first-child th, .tbl--fee tr:first-child td { border-top: 1.5px solid var(--t); }
.yoru { padding-top: 0; }
.yoru__in { border: 1.5px dashed var(--t); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); }
.yoru__in { display: grid; grid-template-columns: 96px 1fr; gap: 28px; align-items: start; }
.yoru__ic { width: 96px; height: 96px; }
.yoru .h2 { margin-bottom: 1rem; }
@media (max-width: 640px) {
  .tm3__ways { grid-template-columns: 1fr; gap: 26px; }
  .tm3__fork { display: none; }
  .tm3__top { margin-bottom: 18px; }
  .tbl--fee th, .tbl--fee td { display: block; width: auto; }
  .tbl--fee th { border-bottom: 0; padding-bottom: 2px; }
  .tbl--fee td { padding-top: 4px; }
  .tbl--fee tr:first-child td { border-top: 0; }
  .yoru__in { grid-template-columns: 1fr; gap: 6px; }
  .yoru__ic { width: 72px; height: 72px; }
}

/* 医療機関・ケアマネジャーの方へ（短く、要るものを先に） */
.pg-kankei { font-size: clamp(14.5px, .88rem + .2vw, 16px); }
.pg-kankei .ph__svg { height: clamp(160px, 22vw, 300px); }
.pro { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 7vw, 96px); }
.pro__side { grid-column: 2; grid-row: 1; position: sticky; top: 140px; align-self: start; border: 1.5px solid var(--t); border-radius: var(--r); padding: 18px 20px; box-shadow: 5px 5px 0 var(--y); background: #fff; }
.pro__side dl { margin: 0; display: grid; gap: 4px; }
.pro__side dt { font-size: .78rem; font-weight: 700; color: var(--mute); letter-spacing: .1em; }
.pro__side dt + dd + dt { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.pro__side dd { margin: 0; display: grid; }
.pro__side dd a, .pro__side dd span { font-size: 1.45rem; font-weight: 500; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.pro__side dd small { font-size: .78rem; color: var(--mute); }
.pro__main { grid-column: 1; grid-row: 1; min-width: 0; }
.pro__sec { padding: 0 0 clamp(32px, 4vw, 48px); }
.h2p { font-family: var(--sans); font-weight: 700; font-size: clamp(18px, 1rem + .4vw, 21px); padding: 2px 0 2px 14px; border-left: 4px solid var(--t); margin-bottom: 18px; letter-spacing: .04em; }
.tm4 { position: relative; border: 1.5px solid var(--t); border-radius: var(--r); padding: 18px 20px 14px; background: #fff; max-width: 640px; }
.tm4__now { position: absolute; top: 10px; right: 14px; margin: 0; font-size: .78rem; color: var(--mute); }
.tm4__t { border-collapse: collapse; width: 100%; margin-top: 18px; font-variant-numeric: tabular-nums; }
.tm4__t th, .tm4__t td { text-align: center; padding: 10px 4px; border-bottom: 1px dashed var(--rule); }
.tm4__t thead th { font-family: var(--hand); font-weight: 600; font-size: 1.1rem; color: var(--td); border-bottom: 1.5px solid var(--t); }
.tm4__t tbody th { font-weight: 700; font-size: .92rem; white-space: nowrap; text-align: left; }
.mk { display: inline-grid; place-items: center; }
.mk svg, .tm4__legend svg { width: 30px; height: 30px; display: block; }
.mk-o { fill: none; stroke: var(--t); stroke-width: 2.6; }
.mk-d { fill: var(--y); stroke: #B89B2E; stroke-width: 1.3; stroke-linejoin: round; }
.mk-x { stroke: #A9B3B1; stroke-width: 2.4; stroke-linecap: round; }
.tm4__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; font-size: .85rem; }
.tm4__legend span { display: inline-flex; align-items: center; gap: 4px; }
.tm4__legend svg { width: 20px; height: 20px; }
.tm4 + .small { margin-top: 10px; }
.line { margin-top: 26px; padding: 20px 22px; background: var(--yp); border-radius: var(--r); max-width: 640px; }
.line .btn { margin: 4px 0 12px; }
.line .small { margin: 0; }
.tejun { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.tejun li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.tejun li:first-child { border-top: 1px dashed var(--rule); }
.tejun__no { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--td); color: #fff; font-weight: 700; font-size: .9rem; margin-top: 2px; }
.tejun p { margin: 0; }
.dots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--t); }
.pro__two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pro__areain { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.pro__areain .area__towns { font-size: 1.15rem; margin: 0; }
.tbl--pro th { width: 11em; background: var(--yp); }
.tbl--pro tr:first-child th, .tbl--pro tr:first-child td { border-top: 1px solid var(--rule); }
@media (max-width: 960px) {
  .pro { grid-template-columns: 1fr; }
  .pro__side { grid-column: 1; grid-row: auto; position: static; order: -1; display: block; }
  .pro__side dl { grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 16px; }
  .pro__side dt + dd + dt { margin-top: 0; padding-top: 0; border-top: 0; }
  .pro__main { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .dots, .pro__two, .pro__areain { grid-template-columns: 1fr; }
  .pro__two { gap: 0; }
  .tbl--pro th { width: auto; white-space: normal; }
  .pro__side dd a, .pro__side dd span { font-size: 1.25rem; }
}

/* ご家族の方へ（大きめの字・ゆったり） */
.pg-kazoku { font-size: clamp(16px, .95rem + .3vw, 18px); }
.pg-kazoku .ph__lead { text-align: center; width: min(760px, 100% - 48px); }
.fam { width: min(760px, 100% - 48px); margin: 0 auto; padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 7vw, 104px); }
.fam p { line-height: 2.05; }
.fam__sec { padding: clamp(36px, 4.5vw, 60px) 0; }
.fam__sec + .fam__sec { border-top: 1px dashed var(--rule); }
.fam .h2 { margin-bottom: 1.4rem; }
.visit { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 14px; }
.visit li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; }
.visit__no { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--y); font-family: var(--hand); font-weight: 600; font-size: 1.5rem; color: var(--td); }
.visit p { margin: 0; }
.fam__ask { }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 14px 18px 14px 52px; background: var(--yp); border-radius: var(--r); line-height: 1.8; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 1.1em; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5c2 1.6 3.4 3.2 4.8 5.2C10 11 13 7 17.4 3.6' fill='none' stroke='%233A8F8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.faq { margin: 0; display: grid; gap: 28px; }
.faq__i { padding: 0 0 26px; border-bottom: 1px dashed var(--rule); }
.faq dt { font-family: var(--hand); font-weight: 600; font-size: 1.2rem; line-height: 1.6; display: grid; grid-template-columns: 2.2em 1fr; }
.faq dd { margin: 12px 0 0; display: grid; grid-template-columns: 2.2em 1fr; line-height: 2.05; }
.faq__q { color: var(--td); }
.faq__a { font-family: var(--hand); font-weight: 600; color: #7D6614; }

/* ステーションのご案内 */
.st-info { padding-top: 0; }
.st-info__in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.st-info__wide { grid-column: 1 / -1; max-width: 760px; }
.tbl--st th { width: 9em; color: var(--td); }
.tbl--st tr:first-child th, .tbl--st tr:first-child td { border-top: 1.5px solid var(--t); }
.keiji { background: var(--yp); }
.keiji__in { display: grid; grid-template-columns: 80px 1fr; gap: 26px; align-items: start; }
.keiji__ic { width: 80px; height: 80px; }
.keiji .h2 { margin-bottom: 1rem; }
.form__pre { margin: 1.4rem 0 1.8rem; }
.form { display: grid; gap: 18px; }
.fr { display: grid; grid-template-columns: 15em 1fr; gap: 6px 24px; align-items: start; }
.fr label { font-weight: 700; padding-top: 10px; }
.fr label small { display: block; font-weight: 400; font-size: .82rem; color: var(--mute); }
.req { display: inline-block; margin-left: .7em; font-size: .72rem; font-weight: 700; color: #fff; background: var(--td); border-radius: 3px; padding: 0 6px; vertical-align: 2px; }
.fr input:not([type="checkbox"]), .fr select, .fr textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 11px 12px; border: 1.5px solid #B9CDCA; border-radius: var(--r); background: #fff; }
.fr textarea { resize: vertical; }
.fr--agree { grid-template-columns: auto 1fr; justify-content: start; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--rule); }
.fr--agree input { width: 22px; height: 22px; accent-color: var(--td); }
.fr--agree label { padding: 0; font-weight: 500; }
.is-checked :invalid:not(form) { border-color: #B34A3A; outline: 1px solid #B34A3A; }
.form__err { color: #A33A2B; font-weight: 700; }
.form__send { justify-self: start; }
.st-news { padding-top: 0; }
.st-news .news__list { margin-top: 1.4rem; }
@media (max-width: 760px) {
  .st-info__in { grid-template-columns: 1fr; }
  .fr { grid-template-columns: 1fr; }
  .fr label { padding-top: 0; }
  .fr--agree { grid-template-columns: auto 1fr; }
  .keiji__in { grid-template-columns: 1fr; gap: 8px; }
  .keiji__ic { width: 64px; height: 64px; }
  .tbl--st th { width: 7.5em; white-space: normal; }
}

/* 各ページの最後の帯 */
.band { background: var(--yp); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--rule); }
.band__in { width: min(960px, 100% - 48px); margin-inline: auto; }
.band__t { font-size: clamp(21px, 1rem + 1vw, 28px); }
.band p { margin: .9rem 0 1.6rem; }
.band__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.band__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 1.4rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.band__tel .ic-tel { color: var(--td); }
.band__tel small { font-size: .8rem; color: var(--mute); }

/* フッター */
.ft { padding: 0 0 28px; }
.ft .road { margin-bottom: 36px; }
.ft__in { width: min(1160px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; }
.ft__brand .logo { width: 220px; margin-bottom: 16px; }
.ft__brand p { font-size: .84rem; color: var(--mute); margin: 0 0 .3em; line-height: 1.75; }
.ft__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; align-content: start; }
.ft__links a { font-size: .86rem; color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.ft__links a:hover { color: var(--td); text-decoration: underline; }
.ft__copy { width: min(1160px, 100% - 48px); margin: 32px auto 0; font-size: .76rem; color: var(--mute); }
@media (max-width: 760px) { .ft__in { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ft__links { grid-template-columns: 1fr; } }

/* 見えたら出す（JSがクラスを付けたときだけ隠す） */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .dg .tm2__s, .js .tm2.dg > li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 160ms); }
.js .tm2.dg > li::after { transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 160ms + 200ms); }
.js .tm2.is-in > li { opacity: 1; transform: none; }
.js .tm2.is-in > li::after { transform: none; }
.js .tm1.dg .tm1-area { opacity: 0; transform: scale(.9); transform-origin: 300px 262px; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .tm1.dg .tm1-names { opacity: 0; transition: opacity .8s var(--ease) .6s; }
.js .tm1.dg .tm1-out { opacity: 0; transform: translate(-10px, -10px); transition: opacity .8s var(--ease) 1s, transform .8s var(--ease) 1s; }
.js .tm1.is-in .tm1-area, .js .tm1.is-in .tm1-names, .js .tm1.is-in .tm1-out { opacity: 1; transform: none; }
.js .tm3.dg > * { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .tm3.dg .tm3__fork { transition-delay: .25s; }
.js .tm3.dg .tm3__ways { transition-delay: .45s; }
.js .tm3.dg .tm3__bottom { transition-delay: .7s; }
.js .tm3.is-in > * { opacity: 1; transform: none; }
.js .tm4.dg .mk { transform: scale(0); transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.js .tm4.dg tr:nth-child(2) .mk { transition-delay: .25s; }
.js .tm4.is-in .mk { transform: none; }
@media (max-width: 760px) { .js .tm2.dg:not(.is-in) > li::after { transform: scaleY(0); transform-origin: top; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .hd { position: static; } .js .rv, .js .dg * { opacity: 1 !important; transform: none !important; } }
