/* =========================================================
   放課後等デイサービス しん  — デザイン案
   スマホを基準に書き、広い画面で段組みを足していく。
   ========================================================= */

:root {
  --c-bg: #fcfaf6;          /* 生成りの白 */
  --c-surface: #ffffff;
  --c-tint: #eef5f1;        /* うすい緑：交互の背景 */
  --c-text: #33302b;
  --c-muted: #6b665e;
  --c-line: #e6e1d7;

  --c-primary: #2e7d6b;     /* 落ち着いた緑（白地で 4.9:1） */
  --c-primary-dark: #215e50;
  --c-primary-soft: #e3f1ec;
  --c-accent: #e2843f;      /* 飾り用のオレンジ */
  --c-accent-strong: #c2571a; /* ボタン用（白文字で 4.6:1） */
  --c-accent-soft: #fdeee2;
  --c-yellow: #f7d774;

  --c-ok: #2e7d6b;
  --c-few: #b7791f;
  --c-full: #9a948a;

  --font-body: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-round: "Zen Maru Gothic", var(--font-body);

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 2px 4px rgba(51, 48, 43, .04), 0 8px 24px rgba(51, 48, 43, .06);
  --header-h: 68px;
}

/* ---------- リセットと基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt" 0;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-round); font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: .04em; }
/* 見出しは文節の途中で折り返さない（<wbr> の位置でだけ折る） */
h1, h2 { word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-primary-dark); text-underline-offset: .2em; }
a:hover { color: var(--c-primary); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
small { font-size: .85em; }
table { border-collapse: collapse; width: 100%; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--c-primary-dark); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 840px; }
.i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* 仮の内容の目印（公開前にすべて差し替える） */
.ph { background: #fff3bf; color: #5c4a00; border-bottom: 1px dashed #c9a400; border-radius: 3px; padding: 0 .15em; }

.draft-bar { background: var(--c-yellow); color: #4a3b00; font-size: .8125rem; text-align: center; padding: 6px 16px; line-height: 1.6; }
.draft-bar .ph { background: #fff; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.4em;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-round); font-weight: 700; font-size: 1rem; line-height: 1.4;
  text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--c-accent-strong); color: #fff; box-shadow: 0 4px 0 #9a4313; }
.btn-accent:hover { background: #b14d14; color: #fff; }
.btn-accent:active { transform: translateY(2px); box-shadow: 0 2px 0 #9a4313; }
.btn-ghost { background: var(--c-surface); color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-lg { min-height: 56px; font-size: 1.0625rem; padding: .7em 1.8em; }
.btn-block { width: 100%; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--c-line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-text); }
.logo-mark { width: 42px; height: 42px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--font-round); }
.logo-text small { font-size: .6875rem; color: var(--c-muted); letter-spacing: .08em; }
.logo-text strong { font-size: 1.5rem; letter-spacing: .12em; color: var(--c-primary-dark); }

.nav-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--c-text); font: inherit; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -8px; }
.nav-toggle-bar::after { top: 8px; }
.nav-toggle-bar { margin: 10px 0 6px; }
.nav-toggle-label { font-size: .625rem; line-height: 1; letter-spacing: .05em; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

.global-nav { display: none; }
.global-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--c-surface); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
  padding: 8px 20px 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.global-nav.is-open ul li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); font-weight: 500; }
.global-nav.is-open .nav-cta { margin-top: 20px; width: 100%; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .global-nav, .global-nav.is-open { display: flex; align-items: center; gap: 20px; position: static; padding: 0; box-shadow: none; border: 0; background: none; max-height: none; overflow: visible; }
  .global-nav ul { display: flex; gap: 2px; }
  .global-nav ul li a, .global-nav.is-open ul li a { display: block; padding: 8px 10px; border: 0; border-radius: 8px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--c-text); }
  .global-nav ul li a:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
  .global-nav .nav-cta, .global-nav.is-open .nav-cta { margin: 0; width: auto; min-height: 44px; padding: .5em 1.2em; font-size: .9375rem; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(circle at 92% 12%, var(--c-accent-soft) 0 180px, transparent 181px),
    radial-gradient(circle at 4% 96%, var(--c-primary-soft) 0 220px, transparent 221px),
    var(--c-bg);
}
.hero-inner { display: grid; gap: 36px; align-items: center; }
.hero-label { display: inline-block; font-family: var(--font-round); font-weight: 700; color: var(--c-primary-dark); background: var(--c-primary-soft); border-radius: 999px; padding: 2px 14px; font-size: .875rem; }
.hero-title { font-size: clamp(2rem, 7.4vw, 3.25rem); line-height: 1.35; margin: 16px 0 18px; color: var(--c-text); }
.hero-lead { color: var(--c-text); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: .875rem; color: var(--c-muted); }
.hero-visual { position: relative; }
/* イラストの枠（Midjourney の画像を置くと上にかぶさる。なければ仮の縞模様とラベル） */
.illust {
  position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; border-radius: var(--radius-l);
  background:
    repeating-linear-gradient(135deg, rgba(226, 132, 63, .08) 0 12px, rgba(226, 132, 63, .03) 12px 24px),
    var(--c-accent-soft);
}
.illust-label { background: rgba(255, 255, 255, .88); color: #9a4313; padding: 4px 12px; border-radius: 999px; font-size: .875rem; font-weight: 500; }
.illust img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.illust:has(> img) > .illust-label { visibility: hidden; }
.illust-hero { border-radius: 40% 60% 46% 54% / 52% 44% 56% 48%; }
.illust-visit { margin: -8px -4px 20px; border-radius: var(--radius); }
.hero-badge {
  position: absolute; left: -4px; bottom: -14px;
  display: flex; align-items: center; gap: 8px;
  background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 18px;
  font-family: var(--font-round);
}
.hero-badge { gap: 4px; align-items: baseline; }
.hero-badge-num { font-size: 2.25rem; font-weight: 700; color: var(--c-accent-strong); line-height: 1; }
.hero-badge-text { font-size: .9375rem; line-height: 1.4; font-weight: 700; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-badge { left: -24px; bottom: 8px; }
}

/* 写真の仮置き */
.photo {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(46, 125, 107, .07) 0 12px, rgba(46, 125, 107, .03) 12px 24px),
    var(--c-primary-soft);
  color: var(--c-primary-dark); font-size: .875rem; font-weight: 500;
}
.photo span { background: rgba(255, 255, 255, .85); padding: 4px 12px; border-radius: 999px; }
/* ギャラリー：ダミーの上に本物の写真（photo-*.jpg）が重なる */
figure.photo { position: relative; overflow: hidden; margin: 0; }
figure.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
figure.photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .9); color: var(--c-text); font-size: .8125rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
/* ダミー画像の目印（本物が上に重なれば隠れる） */
.illust:has(> img.dummy:last-child)::after, figure.photo:has(> img.dummy + figcaption)::after {
  content: "仮のイラスト"; position: absolute; right: 10px; top: 10px; font-size: .6875rem; font-weight: 700;
  color: #5c4a00; background: #fff3bf; border: 1px dashed #c9a400; border-radius: 4px; padding: 0 6px;
}

/* ---------- お知らせ ---------- */
.news { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding: 28px 0; }
.news-inner { display: grid; gap: 12px; }
.news-title { font-size: 1.125rem; color: var(--c-primary-dark); }
.news-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); }
.news-list li:last-child { border-bottom: 0; }
.news-list time { font-size: .875rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.news-list a { flex-basis: 100%; color: var(--c-text); }
.tag { font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; line-height: 1.8; }
.tag-info { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.tag-open { background: var(--c-accent-soft); color: #9a4313; }
.tag-report { background: #f1ede4; color: #6b5a3a; }
.link-more { justify-self: end; font-size: .9375rem; font-weight: 500; }
.link-more::after { content: " →"; }
@media (min-width: 768px) {
  .news-inner { grid-template-columns: 140px 1fr auto; align-items: start; gap: 24px; }
  .news-title { padding-top: 8px; }
  .news-list a { flex-basis: auto; }
  .link-more { padding-top: 8px; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--c-tint); }
.section-en { font-family: var(--font-round); font-weight: 700; color: var(--c-accent); letter-spacing: .16em; font-size: .875rem; text-align: center; }
.section-title { font-size: clamp(1.625rem, 5vw, 2.125rem); text-align: center; margin-top: 4px; }
.section-title::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--c-yellow); margin: 14px auto 0; }
.section-lead { max-width: 44em; margin: 24px auto 0; text-align: center; color: var(--c-text); }
@media (max-width: 599px) { .section-lead { text-align: left; } }
.sub-title { font-size: 1.125rem; margin-bottom: 12px; color: var(--c-primary-dark); }
.note { font-size: .875rem; color: var(--c-muted); margin-top: 10px; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

/* ---------- しんについて ---------- */
.features { display: grid; gap: 20px; margin-top: 44px; }
.feature { background: var(--c-surface); border-radius: var(--radius-l); padding: 32px 28px; box-shadow: var(--shadow); text-align: center; }
/* 特徴の丸。イラスト（feature-*.png）があればそれを、なければ線のアイコンを出す */
.feature-icon { position: relative; overflow: hidden; width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent-soft); }
.feature-icon svg { width: 48px; height: 48px; fill: none; stroke: var(--c-accent-strong); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature p { text-align: left; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- 支援内容 ---------- */
.domains { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.domain { position: relative; background: var(--c-surface); border-radius: var(--radius); padding: 28px 22px 24px; border-top: 6px solid var(--c-primary); }
.domain:nth-child(2) { border-top-color: var(--c-accent); }
.domain:nth-child(3) { border-top-color: #4f8fb8; }
.domain:nth-child(4) { border-top-color: #c9a227; }
.domain:nth-child(5) { border-top-color: #b46a8f; }
.domain-num { position: absolute; top: 14px; right: 18px; font-family: var(--font-round); font-weight: 700; font-size: 1.75rem; color: var(--c-line); line-height: 1; }
.domain h3 { font-size: 1.0625rem; margin-bottom: 8px; padding-right: 28px; }
.domain p { font-size: .9375rem; line-height: 1.8; }
.program-examples { margin-top: 40px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 16px; font-size: .9375rem; }

/* ---------- 1日の流れ ---------- */
.tabs { max-width: 760px; margin: 40px auto 0; }
.tab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--c-primary-soft); padding: 6px; border-radius: 999px; }
.tab { min-height: 48px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-round); font-weight: 700; font-size: 1rem; color: var(--c-primary-dark); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--c-surface); box-shadow: var(--shadow); }
.tab-panel { margin-top: 28px; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 78px; top: 12px; bottom: 12px; width: 2px; background: var(--c-line); }
.timeline li { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 28px; padding: 10px 0; }
.timeline li::before { content: ""; position: absolute; left: 72px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--c-primary); }
.timeline time { font-family: var(--font-round); font-weight: 700; color: var(--c-primary-dark); text-align: right; padding-top: 6px; font-variant-numeric: tabular-nums; align-self: start; justify-self: end; }
.timeline h3 { font-size: 1.0625rem; }
.timeline p { font-size: .9375rem; color: var(--c-muted); }

/* ---------- ご利用の流れ ---------- */
.steps { display: grid; gap: 28px; margin-top: 44px; counter-reset: step; }
.step { position: relative; background: var(--c-surface); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  border: 10px solid transparent; border-top: 12px solid var(--c-primary); border-bottom: 0;
}
.step-num { display: inline-block; font-family: var(--font-round); font-weight: 700; font-size: .8125rem; letter-spacing: .1em; color: #fff; background: var(--c-primary); border-radius: 999px; padding: 0 12px; }
.step h3 { font-size: 1.125rem; margin: 10px 0 6px; }
.step p { font-size: .9375rem; line-height: 1.8; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .step:not(:last-child)::after { left: auto; right: -17px; top: 50%; bottom: auto; transform: translateY(-50%); border: 9px solid transparent; border-left: 11px solid var(--c-primary); border-right: 0; }
}

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; }
.table { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table caption { font-family: var(--font-round); font-weight: 700; font-size: 1.125rem; text-align: left; padding-bottom: 12px; color: var(--c-primary-dark); }
.table th, .table td { padding: 14px 18px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table thead th { background: var(--c-primary); color: #fff; font-weight: 700; font-size: .9375rem; }
.table tbody th { font-weight: 500; background: #faf8f3; }
.table td strong { font-family: var(--font-round); font-size: 1.25rem; color: var(--c-primary-dark); }

/* ---------- 料金 ---------- */
.fee-grid { display: grid; gap: 32px; margin-top: 44px; }
.fee-grid .table tbody th { width: 64%; }
.fee-side { background: var(--c-surface); border-radius: var(--radius); padding: 24px 24px; border: 1px solid var(--c-line); align-self: start; }
.list-dot li { position: relative; padding-left: 1.1em; }
.list-dot li::before { content: ""; position: absolute; left: 0; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
@media (min-width: 900px) { .fee-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } .fee-side { margin-top: 44px; } }

/* ---------- よくある質問 ---------- */
.faq { display: grid; gap: 12px; margin-top: 40px; }
.faq details { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 60px; font-weight: 700; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 18px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-round); font-size: .9375rem; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { position: relative; padding: 0 24px 20px 60px; }
.faq-a::before { content: "A"; position: absolute; left: 18px; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-strong); font-family: var(--font-round); font-weight: 700; font-size: .9375rem; }

/* ---------- 事業所案内 ---------- */
.facility-grid { display: grid; gap: 32px; margin-top: 44px; }
.table-info tbody th { width: 30%; min-width: 7em; white-space: nowrap; }
.map { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius); background: repeating-linear-gradient(0deg, #e9e5dc 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, #e9e5dc 0 1px, transparent 1px 32px), #f5f2ec; color: var(--c-muted); font-size: .875rem; }
.map span { background: #fff; padding: 4px 12px; border-radius: 999px; }
.access { margin-top: 12px; font-size: .9375rem; }
.availability { margin-top: 28px; }
.table-avail th, .table-avail td { text-align: center; padding: 10px 6px; }
.avail { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; }
.avail-ok { background: var(--c-primary-soft); color: var(--c-ok); }
.avail-few { background: #fbf0d9; color: var(--c-few); }
.avail-full { background: #efede8; color: var(--c-full); }
.gallery { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 900px) { .facility-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* ---------- 公表資料 ---------- */
.docs { display: grid; gap: 10px; margin-top: 36px; }
.doc { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; background: var(--c-surface); border-radius: var(--radius-s); padding: 16px 18px; text-decoration: none; color: var(--c-text); border: 1px solid var(--c-line); transition: border-color .15s, box-shadow .15s; }
.doc:hover { border-color: var(--c-primary); box-shadow: var(--shadow); color: var(--c-text); }
.doc-type { grid-row: span 2; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; color: #fff; background: #b4483c; border-radius: 6px; padding: 4px 8px; }
.doc-type-page { background: var(--c-primary); }
.doc-name { font-weight: 500; line-height: 1.6; }
.doc-date { font-size: .8125rem; color: var(--c-muted); }
@media (min-width: 768px) { .doc { grid-template-columns: auto 1fr auto; } .doc-type { grid-row: auto; } }

/* ---------- 見学・相談の予約 ---------- */
.contact { background: linear-gradient(180deg, var(--c-accent-soft), var(--c-bg) 60%); }
.contact-grid { display: grid; gap: 28px; margin-top: 44px; }
.contact-tel { background: var(--c-surface); border-radius: var(--radius-l); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; align-self: start; }
.contact-tel-label { font-family: var(--font-round); font-weight: 700; color: var(--c-primary-dark); }
.contact-tel-num { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px; font-family: var(--font-round); font-weight: 700; font-size: clamp(1.5rem, 6vw, 1.875rem); text-decoration: none; color: var(--c-text); white-space: nowrap; }
.contact-tel-num .i { color: var(--c-primary); }
.contact-tel-time { font-size: .9375rem; }
.contact-tel .note { text-align: left; }

.form { background: var(--c-surface); border-radius: var(--radius-l); padding: 28px 22px; box-shadow: var(--shadow); display: grid; gap: 20px; }
.form-note { font-size: .875rem; color: var(--c-muted); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: .9375rem; padding: 0; }
.field-row { display: grid; gap: 20px; }
.req { display: inline-block; font-size: .6875rem; font-weight: 700; color: #fff; background: var(--c-accent-strong); border-radius: 4px; padding: 0 6px; line-height: 1.7; vertical-align: .1em; margin-left: 4px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"], .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--c-text);
  background: #fdfcf9; border: 1.5px solid #cfc8bb; border-radius: var(--radius-s); transition: border-color .15s, box-shadow .15s;
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); background: #fff; }
.form [aria-invalid="true"] { border-color: #c0392b !important; box-shadow: 0 0 0 3px #f9e0dd !important; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; }
.radios label, .field-check label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form input[type="radio"], .form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--c-primary); margin: 0; }
.field-check { padding: 4px 0; }
.form-result { font-weight: 700; text-align: center; min-height: 1.5em; }
.form-result.is-error { color: #b03a2e; }
.form-result.is-ok { color: var(--c-primary-dark); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } .form { padding: 36px 36px; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.9fr; gap: 32px; } }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-primary-dark); color: #e9f2ee; padding: 48px 0 0; }
.footer-inner { display: grid; gap: 28px; }
.footer-name { font-family: var(--font-round); font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 6px; }
.footer-info p { font-size: .9375rem; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.footer-nav a { color: #e9f2ee; text-decoration: none; font-size: .9375rem; line-height: 2.2; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { text-align: center; padding: 28px 0 24px; margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, .15); color: #bcd3cb; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr 1.2fr; } .footer-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- スマホ下部の固定ボタン ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-line); box-shadow: 0 -4px 16px rgba(51, 48, 43, .08);
}
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 999px; font-family: var(--font-round); font-weight: 700; text-decoration: none; }
.mobile-cta-tel { background: var(--c-surface); color: var(--c-primary-dark); border: 2px solid var(--c-primary); }
.mobile-cta-form { background: var(--c-accent-strong); color: #fff; }
body { padding-bottom: 74px; }
@media (min-width: 768px) { .mobile-cta { display: none; } body { padding-bottom: 0; } }

/* =========================================================
   ページを分けたときの部品
   ========================================================= */

/* 今いるページのメニュー */
.global-nav a[aria-current="page"] { color: var(--c-primary-dark); font-weight: 700; }
@media (min-width: 1080px) {
  .global-nav ul li a[aria-current="page"] { background: var(--c-primary-soft); }
}
@media (max-width: 1079px) {
  .global-nav.is-open ul li a[aria-current="page"] { color: var(--c-primary-dark); border-left: 4px solid var(--c-primary); padding-left: 12px; }
}

/* 下層ページの見出し */
.page-head {
  padding: 28px 0 44px;
  background:
    radial-gradient(circle at 96% 0%, var(--c-accent-soft) 0 140px, transparent 141px),
    var(--c-tint);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: .8125rem; color: var(--c-muted); }
.breadcrumb li + li::before { content: "›"; margin: 0 6px 0 2px; }
.breadcrumb a { color: var(--c-muted); }
.page-en { margin-top: 28px; font-family: var(--font-round); font-weight: 700; color: var(--c-accent); letter-spacing: .16em; font-size: .875rem; }
.page-title { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-top: 2px; }
.page-lead { margin-top: 14px; max-width: 40em; }
@media (min-width: 768px) { .page-head { padding: 32px 0 56px; } }

/* 区画の見出しを外したとき、上の余白を少し詰める */
.page-head + .section { padding-top: 56px; }

/* トップの「もっと知る」カード */
.link-cards { display: grid; gap: 16px; margin-top: 40px; }
.link-card {
  position: relative; display: grid; gap: 4px; height: 100%;
  background: var(--c-surface); border-radius: var(--radius); padding: 24px 56px 24px 24px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--c-text);
  border: 2px solid transparent; transition: border-color .15s, transform .15s;
}
.link-card:hover { border-color: var(--c-primary); transform: translateY(-2px); color: var(--c-text); }
.link-card::after { content: "→"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--c-primary); font-size: 1.25rem; }
.link-card-en { font-family: var(--font-round); font-weight: 700; color: var(--c-accent); letter-spacing: .14em; font-size: .75rem; }
.link-card-title { font-family: var(--font-round); font-weight: 700; font-size: 1.25rem; }
.link-card-text { font-size: .9375rem; color: var(--c-muted); line-height: 1.7; }
@media (min-width: 768px) { .link-cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1080px) { .link-cards { grid-template-columns: repeat(4, 1fr); } .link-card { padding: 28px 24px 56px; } .link-card::after { top: auto; bottom: 20px; transform: none; } }

/* 各ページの下の「見学・相談」帯 */
.cta-band { background: var(--c-primary-dark); color: #fff; padding: 48px 0; }
.cta-band-inner { display: grid; gap: 24px; align-items: center; }
.cta-band-title { font-size: clamp(1.375rem, 4.5vw, 1.75rem); color: #fff; margin-bottom: 6px; }
.cta-band p { color: #e9f2ee; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-accent { box-shadow: 0 4px 0 #7a3510; }
.cta-band + .site-footer { border-top: 1px solid rgba(255, 255, 255, .15); }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1fr auto; } }

/* お知らせ一覧 */
.news-list-full li { padding: 18px 0; }
.news-text { flex-basis: 100%; }

/* 文章ページ（個人情報の取り扱い） */
.prose h2 { font-size: 1.25rem; margin: 40px 0 10px; padding-left: 14px; border-left: 5px solid var(--c-primary); }
.prose p + p { margin-top: 12px; }
.prose .list-dot li + li { margin-top: 4px; }

/* 準備中の資料リンク */
.doc[aria-disabled="true"] { cursor: default; }
/* 見出しのすぐ下が色付きの区画のとき、境目をつける */
.page-head + .section-tint { background: var(--c-bg); }
/* 地図（Googleマップの埋め込み） */
.map iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); display: block; }
.map:has(iframe) { background: none; overflow: hidden; }
.map-link { margin-top: 8px; font-size: .875rem; text-align: right; }
.map-link a::after { content: " ↗"; }
