/* 福祉相談所こころ 共通スタイル（全ページで読み込み） */
:root {
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --surface-2: #f1ece1;
  --ink: #26332f;
  --ink-soft: #55605b;
  --haze: #e2dacb;
  --accent: #2f6f62;
  --accent-deep: #245a4f;
  --accent-soft: #dbe7e1;
  --warm: #cf7f3f;
  --focus: #2f6f62;
  --cta-fg: #ffffff;
  --shadow: 0 1px 2px rgba(38, 51, 47, .06), 0 8px 30px rgba(38, 51, 47, .05);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191d1b;
    --surface: #212824;
    --surface-2: #2a322e;
    --ink: #ece7dd;
    --ink-soft: #a9b1ab;
    --haze: #38413c;
    --accent: #7fbeae;
    --accent-deep: #6aa998;
    --accent-soft: #2a3733;
    --warm: #e2a06c;
    --focus: #7fbeae;
    --cta-fg: #10221d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 34px rgba(0, 0, 0, .28);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17.5px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 700px) { body { font-size: 18px; } }

h1, h2, h3 {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: balance;
  letter-spacing: .01em;
}

a { color: var(--accent-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { color: var(--warm); }

:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

/* ヘッダー */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--haze);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 58px;
}
.brand {
  display: flex; align-items: baseline; gap: .5em;
  font-family: "Zen Old Mincho", serif; font-weight: 600;
  font-size: 1.05rem; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand small {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500;
  font-size: .66rem; letter-spacing: .12em; color: var(--ink-soft);
}
.tel-mini {
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.tel-mini::before { content: "\260E\FE0E  "; color: var(--accent); }
@media (max-width: 560px) { .brand small { display: none; } }
@media (max-width: 380px) { .tel-mini { display: none; } }

nav.gnav ul {
  list-style: none; margin: 0; padding: 0 0 8px;
  display: flex; flex-wrap: wrap; gap: 2px 20px;
  font-size: .86rem; font-weight: 500;
}
nav.gnav a { color: var(--ink-soft); text-decoration: none; padding: 4px 0; display: inline-block; border-bottom: 2px solid transparent; }
nav.gnav a:hover { color: var(--accent-deep); }
nav.gnav a[aria-current="page"] { color: var(--accent-deep); border-bottom-color: var(--warm); }

/* トップの大見出し */
.hero {
  padding: 64px 0 58px; border-bottom: 1px solid var(--haze);
  background:
    radial-gradient(65% 90% at 82% -10%, var(--accent-soft) 0%, transparent 62%),
    var(--surface);
}
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em;
  color: var(--accent-deep); margin: 0 0 18px;
}
.hero h1 { margin: 0 0 22px; font-size: clamp(1.5rem, 5.2vw, 2.4rem); }
.hero p.lead { margin: 0 0 34px; font-size: 1.05rem; color: var(--ink-soft); max-width: 32em; }
.cta {
  display: inline-flex; flex-direction: column; gap: 3px;
  padding: 15px 26px; background: var(--accent); color: var(--cta-fg);
  border-radius: 3px; text-decoration: none; box-shadow: var(--shadow);
  transition: background .18s ease, transform .18s ease;
}
.cta:hover { background: var(--accent-deep); color: var(--cta-fg); transform: translateY(-1px); }
.cta .num { font-size: 1.3rem; font-weight: 700; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.cta .hrs { font-size: .78rem; opacity: .9; letter-spacing: .03em; }

/* 下層ページの見出し */
.lead-sec { padding: 52px 0 40px; border-bottom: 1px solid var(--haze); background: var(--surface); }
.crumb { font-size: .82rem; color: var(--ink-soft); margin: 0 0 16px; }
.crumb a { font-weight: 500; }
h1.page { margin: 0 0 16px; font-size: clamp(1.5rem, 5.2vw, 2.1rem); }
.lead-sec p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; max-width: 34em; }

/* セクション */
section { padding: 56px 0; border-bottom: 1px solid var(--haze); }
section.alt { background: var(--surface); }
.kicker {
  display: flex; align-items: center; gap: .7em;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  color: var(--accent-deep); margin: 0 0 14px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--warm); display: inline-block; flex: none; }
section h2 { margin: 0 0 24px; font-size: clamp(1.35rem, 3.6vw, 1.7rem); }
section h3 { margin: 30px 0 8px; font-size: 1.1rem; color: var(--accent-deep); }
section p { margin: 0 0 16px; }
.muted { color: var(--ink-soft); font-size: .95rem; }

.lede { font-size: 1.06rem; border-left: 3px solid var(--accent-soft); padding-left: 20px; }

.sign { text-align: right; margin-top: 26px; font-family: "Zen Old Mincho", serif; }
.sign small { display: block; font-family: "Zen Kaku Gothic New", sans-serif; font-size: .8rem; color: var(--ink-soft); }

.cards { display: grid; gap: 18px; margin-top: 8px; }
.card { background: var(--surface-2); border: 1px solid var(--haze); border-radius: 5px; padding: 22px 24px; }
section.alt .card { background: var(--paper); }
.card h3 { margin: 0 0 6px; }
.card .tag { font-size: .78rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; }
.card p { margin: 10px 0 0; font-size: .96rem; }

/* ページ案内カード（トップ） */
.links { display: grid; gap: 14px; }
@media (min-width: 640px) { .links { grid-template-columns: 1fr 1fr; } }
a.link-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--haze); border-radius: 5px;
  padding: 18px 22px; transition: border-color .18s ease, transform .18s ease;
}
a.link-card:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--ink); }
a.link-card b { display: block; font-family: "Zen Old Mincho", serif; font-size: 1.05rem; color: var(--accent-deep); }
a.link-card span { font-size: .88rem; color: var(--ink-soft); }

ol.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.flow li { counter-increment: step; position: relative; padding: 0 0 24px 56px; }
ol.flow li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--cta-fg);
  font-family: "Zen Old Mincho", serif; font-weight: 600; font-size: 1rem;
}
ol.flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 6px;
  width: 2px; background: var(--haze);
}
ol.flow li b { display: block; font-size: 1.03rem; }
ol.flow li span { color: var(--ink-soft); font-size: .95rem; }

/* 表 */
.facts { width: 100%; border-collapse: collapse; font-size: .96rem; }
.facts th, .facts td { text-align: left; padding: 13px 8px; border-bottom: 1px solid var(--haze); vertical-align: top; }
.facts th { width: 32%; font-weight: 700; color: var(--ink-soft); font-size: .86rem; letter-spacing: .02em; }
.facts td { font-variant-numeric: tabular-nums; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 2px solid var(--ink); }
@media (max-width: 520px) {
  .facts th, .facts td { display: block; width: 100%; padding: 4px 4px; border-bottom: 0; }
  .facts th { padding-top: 12px; }
  .facts td { padding-bottom: 12px; border-bottom: 1px solid var(--haze); }
  .facts tr:first-child th { border-top: 2px solid var(--ink); }
  .facts tr:first-child td { border-top: 0; }
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .9rem; }
.grid-table th, .grid-table td { padding: 10px 8px; border-bottom: 1px solid var(--haze); text-align: left; vertical-align: top; }
.grid-table thead th { font-size: .8rem; color: var(--ink-soft); border-bottom: 2px solid var(--ink); white-space: nowrap; }

[id] { scroll-margin-top: 110px; }
.grid-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.map-link { display: inline-block; margin-top: 18px; font-weight: 700; font-size: .95rem; }

ul.dots { margin: 0 0 16px; padding-left: 1.2em; }
ul.dots li { margin-bottom: 6px; }

/* 目次 */
.toc { background: var(--surface-2); border: 1px solid var(--haze); border-radius: 5px; padding: 18px 22px; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin: 2px 0; }

/* お知らせ */
ul.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--haze); }
ul.news li { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 16px; padding: 14px 4px; border-bottom: 1px solid var(--haze); font-size: .96rem; }
ul.news time { color: var(--ink-soft); font-size: .88rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
@media (max-width: 480px) { ul.news li { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--haze); }
.faq details { border-bottom: 1px solid var(--haze); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 40px 14px 30px;
  position: relative; font-weight: 700; font-family: "Zen Old Mincho", serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 14px; color: var(--warm); font-weight: 700; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 11px;
  font-size: 1.3rem; color: var(--ink-soft); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 8px 16px 30px; color: var(--ink-soft); font-size: .96rem; }

.contact-box {
  background: var(--surface-2); border: 1px solid var(--haze);
  border-radius: 6px; padding: 24px 24px 20px; display: grid; gap: 14px;
}
section.alt .contact-box { background: var(--paper); }
.contact-row { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; }
.contact-row .lbl {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-soft); min-width: 60px;
}
.contact-row .val { font-size: 1.02rem; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; }
.contact-row .val.big { font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; }

/* お問い合わせページ */
.phone-card {
  background: var(--accent); color: var(--cta-fg);
  border-radius: 6px; padding: 26px 26px 22px; box-shadow: var(--shadow);
}
.phone-card .lbl { font-size: .8rem; letter-spacing: .08em; opacity: .9; margin: 0 0 4px; }
.phone-card a.num {
  display: inline-block; color: var(--cta-fg); text-decoration: none;
  font-size: clamp(1.7rem, 7vw, 2.2rem); font-weight: 700; letter-spacing: .03em;
  font-variant-numeric: tabular-nums; line-height: 1.3;
}
.phone-card .hrs { font-size: .86rem; opacity: .92; margin: 6px 0 0; }
.note {
  margin: 18px 0 0; padding: 16px 18px;
  background: var(--surface-2); border: 1px solid var(--haze); border-radius: 5px;
  font-size: .92rem; color: var(--ink-soft);
}
.form-frame {
  margin-top: 8px; border: 1px solid var(--haze); border-radius: 6px;
  overflow: hidden; background: var(--surface-2);
}
.form-frame iframe { display: block; width: 100%; border: 0; min-height: 780px; }
.form-fallback { margin: 16px 0 0; font-size: .95rem; }

/* フッター */
footer { padding: 40px 0 52px; background: var(--surface); color: var(--ink-soft); font-size: .82rem; line-height: 1.75; }
footer .fn { font-family: "Zen Old Mincho", serif; color: var(--ink); font-size: .95rem; letter-spacing: .04em; }
footer p { margin: 8px 0 0; }
footer a { font-weight: 500; }
footer ul.fnav { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }

.fade { opacity: 0; transform: translateY(12px); animation: rise .7s ease forwards; }
.fade.d1 { animation-delay: .08s; }
.fade.d2 { animation-delay: .16s; }
.fade.d3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; transform: none; }
  .cta, .faq summary::after, a.link-card { transition: none; }
}
