:root {
  --green: #8ec220;
  --deep-green: #6fa00f;
  --eyebrow-green: #add558;
  --orange: #e8530f;
  --orange-red: #e94709;
  --amber: #ea901e;
  --blue: #59a0d6;
  --pink: #f0878e;
  --purple: #a076a4;
  --stripe-green: #e1f0c7;
  --stripe-peach: #fadacf;
  --fill-peach: #fbe1d2;
  --fill-green: #e6f6d2;
  --fill-blue: #dceefa;
  --bg: #fffbfa;
  --text: #34302e;
  --muted: #7d7773;
  --nav-width: clamp(150px, 14vw, 220px);
  /* ウインドウ幅1600pxの時点のコンテンツ実測幅（1140px）で固定。
     これ以上ウインドウを広げても、コンテンツ幅は増やさず左右余白だけを広げる（ヒーローは対象外＝別途100%固定） */
  --content-max: 1140px;
  /* 縦リズムの基本単位（見本の 150px グリッド）。大画面で 150px、狭い画面は縮小 */
  --u: clamp(72px, 10vw, 150px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* button/input/select/textarea はブラウザ既定でbodyのfont-familyを継承しないため明示的にリセット
   （公開情報の3タブ・求人の正社員/パート・お問合せの一般/求人応募など <button> 要素が
   Zenフォントではなくブラウザ既定フォントで表示されていた原因） */
button, input, select, textarea { font-family: inherit; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: clamp(20px, 1.35vw, 22px);
  line-height: 1.95;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ─── レイアウト ─── */
.site-main {
  width: calc(100% - var(--nav-width));
  min-height: 100vh;
  min-height: 100dvh;   /* Android Chrome等でアドレスバーの表示/非表示により100vhがずれる対策 */
}

/* ─── サイドナビ ─── */
.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: var(--nav-width);
  height: 100vh;
  height: 100dvh;   /* Android Chrome等でアドレスバーの表示/非表示により100vhがずれる対策 */
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-left: 1px solid rgba(0,0,0,0.05);
}
.side-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vh, 38px) clamp(14px, 1.4vw, 26px) clamp(14px, 2vh, 26px);
}
.logo-img { width: 86%; max-width: 150px; height: auto; display: block; }

.side-menu {
  padding-top: calc(clamp(6px,1vh,12px) + 54px);   /* お知らせの開始位置を旧サービス案内の高さまで下げる */
  padding-left: clamp(16px, 1.8vw, 30px);
  padding-right: clamp(16px, 1.8vw, 30px);
  padding-bottom: clamp(6px,1vh,12px);
  font-size: clamp(15px, 1.13vw, 18px);
  font-weight: 500;
  flex: 1;
  overflow-y: auto;
  /* メニュー項目内のテキストは左揃えのまま、ブロック全体を最長項目の幅に縮めて
     ナビ（ロゴ）と左右中心を揃える。align-self で親の stretch を上書き */
  width: max-content;
  max-width: 100%;
  align-self: center;
  text-align: left;
}
.side-menu a {
  display: block;
  padding: 0.62em 0;
  color: #4a423d;
  transition: color .15s;
}
.side-menu a:hover,
.side-menu a.active { color: var(--orange); }
.side-menu > a::before,
.accordion-trigger::before {
  content: "＋";
  color: var(--orange);
  margin-right: 0.55em;
  font-weight: 700;
}
.side-menu a.sub {
  padding-left: 1.5em;    /* 階層が分かるようインデント */
  font-size: 0.94em;
  color: #6b635e;
}
.side-menu a.sub::before { content: ""; }
.side-menu a.sub:hover { color: var(--orange); }

/* ── アコーディオン ── */
.accordion-item { }
.accordion-trigger.is-open::before { content: "－"; }
.submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.submenu.is-open { max-height: 220px; }

/* ── CTA ── */
.side-cta { margin-top: auto; }
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: clamp(96px, 11vh, 132px);
  color: #fff;
  font-weight: 700;
  font-size: clamp(15px, 1.1vw, 18px);
  letter-spacing: 0.08em;
  transition: opacity .15s;
}
.cta:hover { filter: brightness(0.92); }
.cta.recruit { background: var(--orange-red); }
.cta.recruit::before { content: ""; display: block; width: 30px; height: 30px; background: url('images/human_icon.png') no-repeat center / contain; filter: brightness(0) invert(1); }
.cta.contact { background: var(--green); }
.cta.contact::before { content: ""; display: block; width: 30px; height: 30px; background: url('images/mail_icon.png') no-repeat center / contain; filter: brightness(0) invert(1); }

/* ─── ヒーロー（写真⇄動画クロスフェード＋ズーム） ─── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2500 / 1667;   /* hero1.jpg の比率（写真は無トリミング） */
  overflow: hidden;
  background: #fff;
}
.hero-video,
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video {
  z-index: 1;
  opacity: 0;                  /* 初期状態：白背景（poster画像も含めて非表示） */
  transition: opacity 1.6s ease;
  will-change: opacity;
}
.hero-photo {
  z-index: 2;
  opacity: 0;                  /* 初期状態：白背景からフェードイン */
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}
.hero-title {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  width: min(86%, 1060px);
  height: auto;
  opacity: 0;                  /* JS でフェードイン後は表示し続ける */
  transition: opacity 1.1s ease;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}
/* 動きを減らす設定の利用者には静止表示 */
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-title { opacity: 1 !important; transform: translateX(-50%) !important; transition: none !important; }
  .hero-photo { transform: none !important; }
  .hero-video { display: none; }
}

/* ─── セクション共通 ─── */
.section {
  /* 縦：見出し上の空き＝padding-top（見本の 150px / 300px）。下は次セクションの上余白で取る
     左右：パディングでコンテンツ枠（--content-max）自体を中央寄せ＝左端が常に揃う */
  padding-top: var(--u);
  padding-bottom: 0;
  /* コンテンツ（--content-max=1500px）をメインエリア内で中央寄せするパディング計算。
     ビューポートが広い場合は (100vw - nav - content-max) / 2 が片側の正確なセンタリング量になる
     （content-maxを画面中央に収めるための自動センタリング量のため、これは2倍にしない＝2倍にすると
     ウインドウを広げるほど余白が過剰になりコンテンツ幅が縮み続けるバグになる）。
     狭い〜中間幅では、見本の余白の2倍（クライアント指定）である clamp(24px,4vw,60px) の2倍を最低値として使う。
     --side-pad として変数化し、右端まで伸ばしたい要素（求人募集の写真など）から打ち消せるようにする。
     ％ではなく 100vw 基準にすることで、グリッド内の子要素から参照しても同じ値になるようにする */
  --side-pad: max(calc(2 * clamp(24px, 4vw, 60px)), calc((100vw - var(--nav-width) - var(--content-max)) / 2));
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}
/* セクションごとの背景色（見本準拠）：サービス案内＝薄緑／一日の流れ＝薄ピーチ／ご利用の流れ＝薄緑
   隣接セクション間は常に300pxの間隔を確保しつつ、色付きセクションは自分の最後のコンテンツの
   下にも同じ色のpadding-bottomを持たせ、コンテンツ端で背景色がぱっつり切れないようにする。
   ・白→色（news→service）：前セクション側は白余白(margin)、自セクションは色付き余白(padding)で半分ずつ
   ・色→色（service→flow→guide）：両セクションとも自分の色のpaddingを150pxずつ持ち、境界で直接色が接する
   ・色→白（guide→classroom）：guide側は色のpadding-bottom、classroom側は白のpadding-topで半分ずつ */
#service { margin-top: var(--u); padding-top: var(--u); padding-bottom: var(--u); }
#flow    { padding-top: var(--u); padding-bottom: var(--u); }
#guide   { padding-top: var(--u); padding-bottom: var(--u); }
#classroom { padding-top: var(--u); }
.service-section { background: var(--fill-green); }
/* 一日の流れは白背景（色付き背景は使わない） */
.guide-section { background: var(--fill-green); }
.section-head { margin-bottom: clamp(26px, 3vw, 44px); }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.eyebrow {
  display: block;
  color: var(--eyebrow-green);
  font-size: clamp(16px, 1.11vw, 20px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
h2 {
  margin: 0;
  font-size: clamp(36px, 3.15vw, 45px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #312d2a;
}

/* ★ 見出し（サブ） */
.sub-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--u) 0 clamp(20px, 2.2vw, 30px);   /* ★見出し上の空き＝150px */
  font-size: clamp(24px, 1.88vw, 32px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #312d2a;
  white-space: nowrap;
}
.sub-head .star { color: var(--orange); font-size: 1.05em; flex-shrink: 0; }
.sub-head::after {
  content: "";
  flex: 1 1 auto;
  border-top: 2px dotted #222;
}
/* セクション先頭の★見出し（例：一日の流れ）はセクションの padding-top が空きを作るので上余白なし */
.section > .sub-head:first-child { margin-top: 0; }

/* 一覧はこちら 等 ボタン */
.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 40px;
  padding: 0 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  transition: background .15s;
}
.more-button:hover { background: var(--deep-green); }
.more-button::after { content: "›"; margin-left: 0.7em; font-size: 1.1em; }

/* ─── お知らせ ─── */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: grid;
  grid-template-columns: 132px 124px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 2px dotted #222;
  font-size: clamp(18px, 1.29vw, 22px);
}
.news-list li:first-child { border-top: 2px dotted #222; }
.news-list time { color: #6f6862; font-weight: 500; letter-spacing: 0.04em; }
.badge {
  color: #fff;
  text-align: center;
  border-radius: 3px;
  font-size: clamp(12px, 0.86vw, 15px);
  font-weight: 700;
  padding: 0.22em 0.6em;
  letter-spacing: 0.04em;
}
.badge.orange { background: var(--orange-red); }
.badge.green { background: var(--green); }
.news-list a { transition: color .15s; }
.news-list a:hover { color: var(--orange); }

/* ─── サービス案内 ─── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 80px);
  /* 見出し「サービス案内」と左ツラを揃えるため、コンテンツ幅いっぱいに広げる（中央寄せの max-width は使わない）。
     コンテンツ幅自体が1600px時点（--content-max）で頭打ちになるため、写真もそこで自然に拡大が止まる */
}
.service-card { text-align: center; }
.card-photo {
  aspect-ratio: 4 / 2.3;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  background-size: cover;
  background-position: center;
}
.photo-kids { background-image: url("images/service-kids.jpg"); }
.photo-study { background-image: url("images/service-study.jpg"); }
.service-card h3 {
  margin: 16px 0 0;
  font-size: clamp(20px, 1.38vw, 22px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #4a443f;
}

/* 療育方針 リード文 */
.policy-lead {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 2.05;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #3a3531;
}
.policy-lead .q { font-weight: 700; }
.policy-lead .c-orange { color: var(--orange); }
.policy-lead .c-amber  { color: var(--amber); }
.policy-lead .c-green  { color: var(--green); }
.policy-lead .c-blue   { color: var(--blue); }
.policy-lead .c-pink   { color: var(--pink); }

.support-intro {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-size: clamp(20px, 1.42vw, 24px);
  color: #3a3531;
}

/* 5領域バー */
.domain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* 1列目はカラーセルの中で一番長い「04.言語・コミュニケーション」の幅に全行が揃う */
  grid-template-columns: max-content 1fr;
  column-gap: clamp(20px, 2.4vw, 38px);
  row-gap: clamp(14px, 1.6vw, 22px);
}
.domain-list li {
  display: contents;   /* li 自身は箱を持たず、子要素を親グリッドの列に揃える */
}
.domain-tag {
  background: var(--c);
  color: #fff;
  border-radius: 10px;
  padding: 0.9em 1.4em;   /* スリムな元の高さに戻す */
  font-size: clamp(21px, 1.58vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;   /* セル内で文字が折り返さないように */
  align-self: start;      /* 上揃え：説明文の行数に左右されない。タグ・説明文とも
    余計なpadding-topでの手動位置合わせはせず、グリッドの上端に素直に揃える
    （フォントサイズのclampカーブが違うため、padding-topでの帳尻合わせは画面幅によってズレる） */
}
.domain-desc { align-self: start; }
.domain-tag .no { margin-right: 0.35em; }
.domain-desc {
  margin: 0;
  font-size: clamp(18px, 1.27vw, 21px);
  line-height: 1.85;
  min-height: 5.55em;   /* 3行分の高さを常に確保し、01〜05すべての行間を揃える（04が3行になりやすいため） */
  color: #4a443f;
}

/* ─── 一日の流れ ─── */
.flow-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 52px);
  align-items: stretch;
}
/* 左カラム：上部に子どもイラスト、表は下揃え（休日クラスと底辺を合わせる） */
.flow-col {
  display: flex;
  flex-direction: column;
}
.flow-kids {
  display: block;
  width: clamp(220px, 84%, 380px);
  margin-inline: auto;
  margin-block: auto;       /* 上部の余白に均等配置し、表を下端へ寄せる */
}
.flow-card.holiday { align-self: start; }
.flow-card { }
.flow-head {
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  text-align: center;
  font-size: clamp(20px, 1.5vw, 26px);
  letter-spacing: 0.06em;
  border-radius: 8px;
  margin-bottom: 12px;
}
.flow-head.green { background: var(--green); }
.flow-head.orange { background: var(--orange-red); }
.flow-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.flow-table tr { border-bottom: 1px dotted #cfc9c3; }
.flow-table td {
  padding: 13px 10px;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.6;
  vertical-align: middle;
}
.flow-table .t-time {
  width: 17%;            /* 見本の列幅比率（時刻16〜17%）に合わせる */
  font-weight: 700;
  color: #2f2b28;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
/* PC：従来通り「13:30〜」1行目／「14:00」2行目のシンプル表示（〜の縦書きはスマホ限定） */
.flow-table .t-time-b { display: block; }
.flow-table .t-act {
  width: 30%;             /* 見本の列幅比率（項目名28〜30%）。「帰りの準備」等が1行に収まる幅 */
  text-align: center;
  font-weight: 700;
  color: #2f2b28;
  line-height: 1.4;
}
.flow-card.weekday .t-act { background: var(--stripe-green); }
.flow-card.holiday .t-act { background: var(--stripe-peach); }
.flow-table .t-desc { color: #5a534e; padding-left: 16px; }

.flow-notes {
  margin: clamp(26px, 3vw, 40px) 0 0;
  color: var(--text);   /* 2・3行目は黒 */
  font-size: clamp(16px, 1.17vw, 20px);
  line-height: 1.95;
}
.flow-notes-red { color: var(--orange-red); }   /* 1行目（昼食時の注意事項）だけ赤のまま */
.flow-notes span { display: block; }

/* リンクボタン（支援プログラム・行事計画） */
.link-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 56px);
  /* max-width で固定せず、コンテンツ幅いっぱいに伸ばす（左ブロック＝左端／右ブロック＝右端） */
}
.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 1.15em 1.6em;
  border-radius: 10px;
  font-size: clamp(19px, 1.58vw, 27px);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.link-btn::after { content: "→"; font-weight: 400; }
.link-btn:hover { filter: brightness(0.94); }
.link-btn.orange { border: 4px solid var(--orange-red); background: var(--fill-peach); color: #3a3531; }
.link-btn.green  { border: 4px solid var(--green);      background: var(--fill-green); color: #3a3531; }

/* ─── ご利用の流れ ─── */
.usage-steps { list-style: none; margin: 0; padding: 0; }
.usage-steps > li { margin-bottom: clamp(28px, 3vw, 44px); }
.usage-steps > li:last-child { margin-bottom: 0; }
.usage-box {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  background: #fff;
  border: 5px solid var(--green);
  border-radius: 12px;
  padding: clamp(16px, 1.6vw, 24px) clamp(22px, 2.4vw, 40px);
}
.usage-no { color: var(--green); font-weight: 800; font-size: clamp(24px, 1.95vw, 33px); }
.usage-title { font-weight: 700; font-size: clamp(21px, 1.95vw, 33px); color: #312d2a; letter-spacing: 0.04em; }
.usage-detail { padding: 16px 4px 0; }
.usage-detail h4 {
  margin: 0 0 6px;
  font-size: clamp(19px, 1.58vw, 26px);
  font-weight: 700;
  color: #312d2a;
  letter-spacing: 0.03em;
}
.usage-detail h4::before { content: "● "; color: #312d2a; }
.usage-detail p { margin: 0; color: #5a534e; font-size: clamp(18px, 1.29vw, 21px); line-height: 1.9; }

/* ─── 教室案内 ─── */
.classroom-table { display: grid; grid-template-columns: clamp(120px,14vw,190px) 1fr; margin: 0; border-top: 1px dotted #cfc9c3; }
.classroom-table dt,
.classroom-table dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px dotted #cfc9c3;
  font-size: clamp(18px, 1.32vw, 22px);
  line-height: 1.85;
}
.classroom-table dt {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.classroom-table dd { color: #4a443f; }
.map-note { margin: clamp(30px, 3.5vw, 48px) 0 14px; color: #5a534e; font-size: clamp(16px, 1.2vw, 20px); }
.classroom-map-frame {
  width: 100%;
  height: clamp(260px, 26vw, 380px);
  border: 0;
  display: block;
}

/* ─── 運営会社 ─── */
#company { padding-bottom: var(--u); }  /* フッターとの間に150pxの間隔（public.htmlと統一） */
.company-photo-banner {
  width: 100%;
  max-width: none;
  aspect-ratio: 1740 / 601;   /* 見本（cmpany.jpg）実測比率。画面幅が変わってもトリミングを維持 */
  background: url("images/company-photo.jpg") center / cover no-repeat;
  margin-bottom: clamp(36px, 4vw, 60px);
}
.company-photo-banner.public-banner {
  background-image: url("images/public.png");
}
.company-table { display: grid; grid-template-columns: clamp(120px,14vw,170px) 1fr; margin: 0; border-top: 1px dotted #cfc9c3; }
.company-table dt,
.company-table dd { margin: 0; padding: 16px 0; border-bottom: 1px dotted #cfc9c3; font-size: clamp(18px, 1.29vw, 22px); }
.company-table dt { color: var(--orange); font-weight: 700; letter-spacing: 0.03em; }
.company-table dd { color: #4a443f; line-height: 1.85; }

/* ─── 求人募集（ティーザー） ─── */
.job-section { padding-bottom: var(--u); }  /* 詳細はこちらボタンの下に150pxの間隔 */
.job-content {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 42%);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
}
.job-text h3 { margin: 16px 0 18px; font-size: clamp(26px, 2.25vw, 39px); font-weight: 700; color: #312d2a; letter-spacing: 0.04em; }
.job-text p { max-width: 600px; color: #4a443f; line-height: 2; margin: 0; }
.job-teaser-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;               /* line-height継承で太くならないよう高さを直接指定 */
  padding: 0 32px;
  margin-top: 28px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: clamp(15px, 1.05vw, 18px);
  border-radius: 999px;
  letter-spacing: 0.06em;
  transition: background .15s, transform .15s;
}
.job-teaser-link:hover { background: var(--deep-green); }
.job-teaser-link::after { content: "›"; margin-left: 0.6em; font-size: 1.1em; }
.job-photo {
  min-height: clamp(220px, 24vw, 320px);
  height: 100%;
  background: url("images/job-photo2.jpg") center / cover no-repeat;
  /* 右側はサイドナビまでフルブリードで隣接させ、右端の角丸は付けない。左側のみ角丸 */
  margin-right: calc(-1 * var(--side-pad));
  border-radius: 14px 0 0 14px;
}

/* ─── フッター ─── */
.footer {
  background: var(--bg);
  color: #4a443f;
  text-align: center;
  padding: calc(var(--u) / 2) clamp(24px, 4vw, 60px) clamp(40px, 5vw, 68px);
  font-size: 18px;
}
.footer-children {
  display: block;
  width: clamp(220px, 30%, 360px);
  margin: 0 auto clamp(24px, 3vw, 40px);
}
.footer-title {
  font-size: clamp(14px, 4.2vw, 22px);  /* 幅が足りない画面では自動で縮小し、折り返さない */
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  color: #312d2a;
  white-space: nowrap;
}
.footer address { font-style: normal; line-height: 2; color: #5a534e; letter-spacing: 0.03em; }
.footer-nav {
  display: flex;
  justify-content: center;
  margin: clamp(20px, 2.4vw, 32px) auto;
}
.footer-nav a { padding: 4px 0; color: #5a534e; transition: color .15s; white-space: nowrap; }
.footer-nav a:hover { color: var(--orange); }
.footer-nav a::before,
.footer-nav a::after { content: "｜"; padding: 0 14px; color: #c9c4bf; }
.footer small { display: block; color: #8a837d; margin-top: 8px; line-height: 1.8; letter-spacing: 0.02em; }
/* 淡いグリーン背景のフッター（下層ページ） */
.footer--green { background: #e4eecb; }
.footer--green small { color: #6f7a52; }

/* ─── プライバシー / 求人情報 個別ページ ─── */
#privacy { padding-bottom: var(--u); }  /* フッターとの間に150pxの間隔（public.html等と統一） */
#newslist { padding-bottom: var(--u); }  /* フッターとの間に150pxの間隔（news.html） */
.privacy-body, .jobinfo-lead, .jobinfo-table, .jobinfo-apply { max-width: var(--content-max); }
.privacy-article { margin-bottom: clamp(24px, 3vw, 40px); }
.privacy-article:last-child { margin-bottom: 0; }
.privacy-article h3 {
  margin: 0 0 12px;
  font-size: clamp(21px, 1.5vw, 26px);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.03em;
}
.privacy-article p { margin: 0 0 8px; color: #4a443f; line-height: 2; }
.privacy-article ol { margin: 8px 0 8px 1.4em; padding: 0; color: #4a443f; line-height: 2; }
.privacy-article ol li { margin-bottom: 2px; }
.privacy-body .privacy-article + .privacy-article { margin-top: clamp(28px, 3.2vw, 44px); }
.privacy-contact {
  font-style: normal; line-height: 2.1; color: #4a443f;
  display: block; margin-top: 8px;
}
.privacy-contact a { color: var(--deep-green); text-decoration: underline; }
/* 求人ページ バナー */
.recruit-banner {
  background-image: url("images/job-photo2.jpg");
  background-position: center 15%;   /* 頭ギリギリ上で揃える（見本同様） */
  height: clamp(240px, 26vw, 420px);
}
/* お知らせ一覧ページ バナー（トップのヒーローと同じ写真） */
.news-banner { background-image: url("images/hero1.jpg"); background-position: center 20%; }

/* 正社員 / パート 切替タブ */
.job-tabs { display: flex; gap: clamp(10px, 1.2vw, 16px); flex-shrink: 0; }
.job-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(120px, 12vw, 150px);
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: clamp(18px, 1.29vw, 21px);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
#public .job-tab { font-size: clamp(15px, 1.05vw, 17px); }  /* 公開情報ページの3タブだけ少し小さく */
.job-tab::after { content: "›"; margin-left: 0.8em; font-size: 1.15em; }
.job-tab[data-tab="fulltime"] { background: var(--green); }
.job-tab[data-tab="parttime"] { background: var(--orange-red); }
.job-tab:not(.is-active) { opacity: 0.4; }
.job-tab:hover { filter: brightness(0.92); }

#jobinfo { padding-bottom: var(--u); }  /* フッターとの間に150pxの間隔（public.html/company.htmlと統一） */

.jobinfo-lead {
  color: #3a3531;
  line-height: 2.1;
  margin: 0 0 clamp(34px, 4vw, 56px);
  font-size: clamp(20px, 1.42vw, 24px);
}
.job-panel.is-hidden { display: none; }
.job-emp-head {
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-size: clamp(24px, 2.03vw, 32px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #312d2a;
}

.jobinfo-table { display: grid; grid-template-columns: clamp(104px,12vw,150px) 1fr; margin: 0; border-top: 1px dotted #cfc9c3; }
.jobinfo-table dt, .jobinfo-table dd { margin: 0; padding: 15px 0; border-bottom: 1px dotted #cfc9c3; font-size: clamp(18px,1.29vw,22px); }
.jobinfo-table dt { color: var(--orange); font-weight: 700; letter-spacing: 0.03em; }
.jobinfo-table dd { color: #4a443f; line-height: 1.85; }
.jobinfo-note { margin: clamp(20px,2.4vw,32px) 0 0; color: var(--muted); font-size: clamp(16px,1.17vw,20px); line-height: 1.9; }

/* ─── お問い合わせフォーム ─── */
.job-tab[data-tab="general"] { background: var(--green); }
.job-tab[data-tab="recruit"] { background: var(--orange-red); }

.contact-lead {
  color: #3a3531;
  line-height: 2.1;
  margin: 0 0 clamp(34px, 4vw, 52px);
  font-size: clamp(20px, 1.42vw, 24px);
}
.contact-form { max-width: 880px; margin: 0 auto; }
.form-row {
  display: grid;
  grid-template-columns: clamp(130px, 17vw, 210px) 1fr;
  gap: 6px 28px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px dotted #cfc9c3;
}
.form-row:first-of-type { border-top: 1px dotted #cfc9c3; }
.form-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  color: var(--orange);
  font-weight: 700;
  font-size: clamp(20px, 1.35vw, 22px);
  letter-spacing: 0.03em;
}
.req {
  background: var(--orange-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6d0ca;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: clamp(20px, 1.35vw, 22px);
  color: var(--text);
  line-height: 1.6;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input[type="file"] {
  width: 100%;
  font-family: inherit;
  font-size: clamp(20px, 1.35vw, 22px);
  color: var(--text);
}
.form-field-suffix { display: inline-flex; align-items: center; gap: 10px; }
.form-field-suffix input[type="number"] { width: auto; min-width: 140px; }
.form-field-suffix .suffix { font-size: clamp(20px, 1.35vw, 22px); color: var(--text); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(142,194,32,0.16);
}
.form-field .field-note { margin: 6px 0 0; color: var(--muted); font-size: clamp(16px, 1.17vw, 20px); }

.form-agree { text-align: center; margin: clamp(28px, 3.2vw, 44px) 0 0; font-size: clamp(20px, 1.35vw, 22px); color: #3a3531; }
.form-agree label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form-agree input { width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.form-agree a { color: var(--deep-green); text-decoration: underline; }

.form-submit { text-align: center; margin: clamp(24px, 3vw, 36px) 0 0; }
.contact-section { padding-bottom: var(--u); }  /* フッターとの間に150pxの間隔（他ページと統一） */
.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 56px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: clamp(22px, 1.65vw, 27px);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.form-button:hover { background: var(--deep-green); }
.form-button::after { content: "›"; margin-left: 0.7em; font-size: 1.1em; }

/* ハニーポット（スパム対策・非表示） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 一般 / 求人応募 の出し分け */
.contact-form .only-recruit { display: none; }
.contact-form.mode-recruit .only-general { display: none; }
.contact-form.mode-recruit .only-recruit { display: grid; }
.msg-recruit { display: none; }
.mode-recruit .msg-recruit { display: inline; }
.mode-recruit .msg-general { display: none; }

/* 送信結果ページ（form.php） */
.form-result { max-width: 720px; margin: 0 auto; text-align: center; }
.form-result h2 { margin-bottom: 20px; }
.form-result p { color: #4a443f; line-height: 2; margin: 0 0 10px; }
.form-result .errors { display: inline-block; text-align: left; margin: 10px auto 24px; padding: 16px 22px; border: 1px solid #f0b9a4; background: #fdeee7; border-radius: 8px; color: #c0431a; line-height: 1.9; }
.form-result .errors li { margin-left: 1.1em; }
.back-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; height: 50px; padding: 0 30px; margin-top: 8px;
  border-radius: 999px; background: var(--green); color: #fff; font-weight: 700;
  letter-spacing: 0.08em; transition: background .15s, transform .15s;
}
.back-button:hover { background: var(--deep-green); }

/* ─── ページトップ ─── */
.page-top {
  position: fixed;
  right: calc(var(--nav-width) + 18px);
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(142, 194, 32, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 27px;
  z-index: 40;
  box-shadow: 0 4px 14px rgba(0,0,0,0.16);
  transition: background .15s;
}
.page-top:hover { background: var(--deep-green); }

.mobile-menu { display: none; }
.side-nav-close { display: none; }

/* ─── 公開情報ページ（3タブ切替） ─── */
#public { padding-bottom: var(--u); }  /* フッターとの間に150pxの間隔（public.html専用、#publicは他ページに存在しない） */
.job-tab[data-tab="evaluation"] { background: var(--blue); }
.job-tab[data-tab="schedule"] { background: var(--green); }
.job-tab[data-tab="safety"] { background: var(--orange-red); }

.public-eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.public-eval-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--orange-red);
  color: #fff;
  border-radius: 10px;
  padding: 1.1em 1.4em;
  font-size: clamp(18px, 1.29vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  transition: transform .15s, box-shadow .15s;
}
.public-eval-btn:hover { filter: brightness(0.92); }

.public-schedule-list { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.public-schedule-btn {
  display: block;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 0.9em 1.6em;
  font-size: clamp(18px, 1.29vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background .15s, transform .15s;
}
.public-schedule-btn:hover { background: var(--deep-green); }

.public-safety-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 0.9em 2em;
  font-size: clamp(18px, 1.29vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: filter .15s, transform .15s;
}
.public-safety-btn:hover { filter: brightness(0.92); }

/* ─── モバイル ─── */
@media (max-width: 980px) {
  :root { --nav-width: 0px; --content-max: 100vw; }
  body { font-size: 15px; }
  .site-main { width: 100%; }
  /* スマホ：左右の余白が広すぎるため、従来（2倍）の半分＝元の単純な余白量に縮小 */
  .section { --side-pad: clamp(24px, 4vw, 60px); }
  /* スマホ：横長比率のままだと帯状に潰れて見えるため、縦長トリミングに変更して画角に余裕を持たせる */
  .hero { aspect-ratio: 4 / 5; }
  .hero-title {
    width: clamp(200px, 62vw, 360px);
    bottom: 6%;
  }
  .more-button {
    min-width: 0;
    height: 32px;
    padding: 0 18px;
    font-size: 14px;
  }
  /* 長いタイトル（プライバシーポリシー等）でも1行に収まるようモバイル専用サイズに縮小 */
  h2 { font-size: clamp(22px, 7vw, 32px); }
  .side-nav {
    right: 0; left: auto; top: 0;
    width: min(82vw, 320px);
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: -4px 0 40px rgba(0,0,0,0.16);
    background: #fff;
  }
  .side-nav.is-open { transform: translateX(0); }
  .mobile-menu {
    display: grid; place-items: center;
    position: fixed; top: 14px; right: 14px; z-index: 70;
    width: 46px; height: 46px; padding: 11px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,0.96); box-shadow: 0 4px 20px rgba(0,0,0,0.14); cursor: pointer;
  }
  .mobile-menu span { display: block; width: 20px; height: 2px; background: var(--deep-green); margin: 3px 0; }
  .side-nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 14px; left: 14px; z-index: 60;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255,255,255,0.96); box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    color: var(--deep-green); font-size: 22px; line-height: 1; cursor: pointer;
  }
  /* grid だとタイトル（フル幅スパン）の文字数が時刻・バッジ列の幅計算に逆流してしまうため、
     flexbox＋flex-basis:100%でタイトルを強制改行させる方式に変更（バッジ幅が安定する） */
  .news-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  .news-list li time,
  .news-list li .badge { flex: 0 0 auto; }
  .news-list li a { flex: 1 1 100%; }
  .badge { white-space: nowrap; }
  .service-cards,
  .job-content,
  .link-btns,
  .flow-columns { grid-template-columns: 1fr; }
  .domain-list { grid-template-columns: 1fr; row-gap: 8px; }
  .domain-tag { white-space: normal; }
  /* スマホ限定：評価表／行事計画／安全計画タブが画面幅に収まらず切れるため縦積み・中央揃えに */
  .job-tabs { flex-direction: column; align-items: center; width: 100%; }
  .job-tab { width: 100%; max-width: 220px; }
  /* スマホ限定：13:30〜14:00 を縦積みにし、間の〜を縦書きで中央に表示 */
  .flow-table .t-time-range { display: inline-flex; flex-direction: column; align-items: center; }
  .flow-table .t-tilde { writing-mode: vertical-rl; height: 0.8em; line-height: 1; font-weight: 400; }
  /* 「グループ活動」等4文字の項目名が1行に収まる幅がないため縮小(平日・休日クラス共通) */
  .flow-table .t-act { font-size: 14px; }
  .company-table { grid-template-columns: 1fr; }
  .company-table dt { padding-bottom: 2px; border-bottom: 0; }
  .company-table dd { padding-top: 0; }
  .jobinfo-table { grid-template-columns: 1fr; }
  .classroom-table { grid-template-columns: 1fr; }
  .classroom-table dt { padding-bottom: 2px; border-bottom: 0; }
  .classroom-table dd { padding-top: 0; }
  .public-eval-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .form-label { padding-top: 0; }
  .footer-children { width: clamp(200px, 60%, 320px); }
  .page-top { right: 16px; }

  /* ── フォントサイズを全体的に縮小（本文基準 17px→15px、約12%減） ── */
  .side-menu { font-size: clamp(13px, 0.99vw, 16px); }
  .cta { font-size: clamp(13px, 0.97vw, 16px); }
  .eyebrow { font-size: clamp(14px, 0.98vw, 18px); }
  h2 { font-size: clamp(19px, 6vw, 28px); }
  .sub-head { font-size: clamp(21px, 1.65vw, 28px); }
  .more-button { font-size: 12px; }
  .news-list li { font-size: clamp(16px, 1.13vw, 19px); }
  .badge { font-size: clamp(11px, 0.76vw, 13px); }
  .service-card h3 { font-size: clamp(17px, 1.21vw, 19px); }
  .policy-lead { font-size: clamp(18px, 1.76vw, 26px); }
  .support-intro { font-size: clamp(18px, 1.25vw, 21px); }
  .domain-tag { font-size: clamp(18px, 1.39vw, 23px); }
  .domain-desc { font-size: clamp(16px, 1.12vw, 18px); }
  .flow-head { font-size: clamp(18px, 1.32vw, 23px); }
  .flow-table td { font-size: clamp(14px, 1.06vw, 18px); }
  .flow-table .t-act { font-size: 12px; }
  .flow-notes { font-size: clamp(14px, 1.03vw, 18px); }
  .link-btn { font-size: clamp(17px, 1.39vw, 24px); }
  .usage-no { font-size: clamp(21px, 1.72vw, 29px); }
  .usage-title { font-size: clamp(18px, 1.72vw, 29px); }
  .usage-detail h4 { font-size: clamp(17px, 1.39vw, 23px); }
  .usage-detail p { font-size: clamp(16px, 1.14vw, 18px); }
  .classroom-table dt, .classroom-table dd { font-size: clamp(16px, 1.16vw, 19px); }
  .map-note { font-size: clamp(14px, 1.06vw, 18px); }
  .company-table dt, .company-table dd { font-size: clamp(16px, 1.14vw, 19px); }
  .job-text h3 { font-size: clamp(23px, 1.98vw, 34px); }
  .job-teaser-link { font-size: clamp(13px, 0.92vw, 16px); }
  .footer { font-size: 16px; }
  .footer-title { font-size: clamp(12px, 3.7vw, 19px); }
  .privacy-article h3 { font-size: clamp(18px, 1.32vw, 23px); }
  .job-tab { font-size: clamp(16px, 1.13vw, 18px); }
  #public .job-tab { font-size: clamp(13px, 0.92vw, 15px); }
  .jobinfo-lead { font-size: clamp(18px, 1.25vw, 21px); }
  .job-emp-head { font-size: clamp(21px, 1.79vw, 28px); }
  .jobinfo-table dt, .jobinfo-table dd { font-size: clamp(16px, 1.14vw, 19px); }
  .jobinfo-note { font-size: clamp(14px, 1.03vw, 18px); }
  .contact-lead { font-size: clamp(18px, 1.25vw, 21px); }
  .form-label { font-size: clamp(18px, 1.19vw, 19px); }
  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="tel"],
  .form-field input[type="date"],
  .form-field input[type="number"],
  .form-field input[type="file"],
  .form-field select,
  .form-field textarea { font-size: clamp(18px, 1.19vw, 19px); }
  .form-field-suffix .suffix { font-size: clamp(18px, 1.19vw, 19px); }
  .req { font-size: 13px; }
  .form-field .field-note { font-size: clamp(14px, 1.03vw, 18px); }
  .form-agree { font-size: clamp(18px, 1.19vw, 19px); }
  .form-button { font-size: clamp(19px, 1.45vw, 24px); }
  .public-eval-btn,
  .public-schedule-btn,
  .public-safety-btn { font-size: clamp(16px, 1.14vw, 19px); }
}

/* ─── 管理画面（admin/*.php） ─── */
.errors { display: inline-block; text-align: left; margin: 10px auto 24px; padding: 16px 22px; border: 1px solid #f0b9a4; background: #fdeee7; border-radius: 8px; color: #c0431a; line-height: 1.9; }
.errors li { margin-left: 1.1em; }
.admin-flash { text-align: center; color: var(--deep-green); font-weight: 700; margin: 0 0 24px; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(24px, 4vw, 60px);
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 15px;
}
.admin-topbar-title { font-weight: 700; color: #312d2a; }
.admin-topbar-user { color: #5a534e; }
.admin-topbar-user a { margin-left: 10px; color: var(--deep-green); text-decoration: underline; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.admin-table th,
.admin-table td { padding: 12px 10px; text-align: left; border-bottom: 1px dotted #cfc9c3; font-size: 16px; vertical-align: middle; }
.admin-table th { color: var(--muted); font-weight: 700; font-size: 14px; }
.admin-table-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.admin-table-actions form { display: inline; margin: 0; }
.admin-link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--orange-red);
  text-decoration: underline;
  cursor: pointer;
}
.admin-link-button:hover { color: var(--orange); }
.admin-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.admin-menu-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 18px;
  color: #312d2a;
  transition: border-color .15s, transform .15s;
}
.admin-menu-item small { font-weight: 500; font-size: 14px; color: var(--muted); }
.admin-menu-item:hover { border-color: var(--deep-green); transform: translateY(-2px); }
