/* =====================================================================
   リンスタランド 公式サイト 共通スタイルシート
   ---------------------------------------------------------------------
   ■ 構成
     1. デザイントークン(CSS変数) … 配色・フォント・角丸・影など
     2. リセット / ベース
     3. 共通パーツ(コンテナ・見出し・ボタン・バッジ)
     4. ヘッダー / グローバルナビ / ハンバーガーメニュー
     5. トップページ各セクション
     6. フッター / スマホ固定発信バー
     7. 下層ページ共通(ページヘッダー・本文ブロック)
     8. ユーティリティ / アニメーション
     9. レスポンシブ(375px / 768px / 1024px)
   ■ 配色を変更したい場合は「1. デザイントークン」の値だけを変更してください。
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. デザイントークン(CSS変数)
   --------------------------------------------------------------------- */
:root {
  /* メインカラー(黄緑) */
  --c-main: #9ac036;
  --c-main-dark: #7fa328;
  --c-main-light: #eef5dc;
  --c-main-pale: #f6f9ec;

  /* アクセント(オレンジ系) */
  --c-accent: #ffa537;
  --c-accent-2: #ffbc49;
  --c-accent-3: #ffc977;
  --c-accent-pale: #fff4e3;

  /* ベース(背景) */
  --c-white: #ffffff;
  --c-gray: #f7f7f7;
  --c-cream: #f8f6f4;

  /* テキスト */
  --c-text: #4e3b30;
  --c-text-light: #7d6b60;
  --c-text-muted: #a3958c;
  --c-line: #e9e3de;

  /* フッター等の濃色 */
  --c-dark: #4e3b30;
  --c-dark-2: #3f2f26;

  /* フォント */
  --font-head: 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --font-en: 'Zen Maru Gothic', 'Nunito', sans-serif;

  /* 角丸 */
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* 影(柔らかく) */
  --shadow-s: 0 2px 8px rgba(78, 59, 48, 0.06);
  --shadow-m: 0 8px 24px rgba(78, 59, 48, 0.08);
  --shadow-l: 0 16px 40px rgba(78, 59, 48, 0.12);

  /* レイアウト */
  --container: 1120px;
  --container-narrow: 820px;
  --header-h: 80px;
  --section-pad: clamp(64px, 9vw, 120px);

  /* トランジション */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------
   2. リセット / ベース
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--c-text);
  background: var(--c-white);
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

ul, ol { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* キーボード操作時のフォーカス表示(アクセシビリティ) */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 視覚的に非表示(スクリーンリーダー向け) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
   3. 共通パーツ
   --------------------------------------------------------------------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 40px, var(--container-narrow));
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--gray { background: var(--c-gray); }
.section--cream { background: var(--c-cream); }
.section--main-pale { background: var(--c-main-pale); }

/* 見出し: 英語見出し + 日本語見出しの2段構成 */
.sec-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}
.sec-head--center { text-align: center; }
.sec-head__en {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.22em;
  color: var(--c-main);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.sec-head__en::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-right: 10px;
  vertical-align: 1px;
}
.sec-head__ja {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.sec-head__lead {
  margin-top: 18px;
  color: var(--c-text-light);
  font-size: clamp(14px, 1.3vw, 16px);
}

/* 行間ゆったりの本文 */
.text {
  line-height: 2;
}
.text p + p { margin-top: 1.4em; }
.text strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--c-accent-3) 62%);
}

/* ボタン(高さ48px以上・角丸・押しやすい) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 32px;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
  box-shadow: var(--shadow-s);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--main { background: var(--c-main); color: #fff; }
.btn--main:hover { background: var(--c-main-dark); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: #f29a2e; }
.btn--outline {
  background: #fff;
  color: var(--c-text);
  border: 2px solid var(--c-line);
  box-shadow: none;
}
.btn--outline:hover { border-color: var(--c-main); color: var(--c-main-dark); }
.btn--white { background: #fff; color: var(--c-text); }
.btn--lg { min-height: 60px; padding: 16px 44px; font-size: 17px; }

/* タグ・バッジ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-full);
  background: #fff;
  color: var(--c-main-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-s);
}
.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-main);
}

/* 写真: 角丸+やさしい色調 */
.photo {
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--c-cream);
  box-shadow: var(--shadow-s);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(1.02);
}

/* ---------------------------------------------------------------------
   4. ヘッダー / グローバルナビ
   --------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.header.is-scrolled {
  box-shadow: var(--shadow-s);
  background: rgba(255, 255, 255, 0.98);
}
.header__inner {
  height: 100%;
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ロゴ(横ロゴ画像) */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}
.logo:hover { opacity: 0.85; }
.logo__img {
  height: 46px;
  width: auto;
}
/* フッター: 濃色背景なので白い角丸カードに乗せる */
.logo--footer {
  display: inline-flex;
  background: #fff;
  border-radius: var(--r-m);
  padding: 12px 18px;
}
.logo--footer .logo__img { height: 44px; }

/* グローバルナビ(PC) */
.gnav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.gnav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gnav__link {
  display: block;
  white-space: nowrap;
  padding: 10px 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  position: relative;
  border-radius: var(--r-s);
}
.gnav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--c-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.gnav__link:hover::after,
.gnav__link[aria-current="page"]::after { transform: scaleX(1); }

/* ヘッダー内 電話番号 */
.header__tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.header__tel-num {
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header__tel-num svg { width: 18px; height: 18px; color: var(--c-main); }
.header__tel-note { font-size: 11px; color: var(--c-text-light); margin-top: 3px; }

.header__cta { min-height: 48px; padding: 10px 24px; font-size: 14.5px; white-space: nowrap; }
.header__tel-note { white-space: nowrap; }

/* 1280px以下: ナビの文字と余白を少し詰める */
@media (max-width: 1280px) {
  .gnav { gap: 16px; }
  .gnav__link { font-size: 13.5px; padding: 10px 9px; }
  .header__tel-num { font-size: 19px; }
  .header__cta { padding: 10px 18px; font-size: 13.5px; }
  .logo__img { height: 42px; }
}
/* 1140px以下: 電話番号テキストを隠してアイコン+CTAのみ */
@media (max-width: 1140px) and (min-width: 1025px) {
  .header__tel { display: none; }
}

/* ハンバーガーボタン(スマホ) */
.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-m);
  background: var(--c-main);
  color: #fff;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
}
.menu-btn__bar {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.menu-btn__bar:nth-child(1) { top: 17px; }
.menu-btn__bar:nth-child(2) { top: 23px; }
.menu-btn__bar:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ドロワーメニュー(スマホ) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--c-cream);
  padding: calc(var(--header-h) + 16px) 24px 40px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.drawer.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.drawer__list { border-top: 1px solid var(--c-line); }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
}
.drawer__link small {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-main);
  display: block;
  margin-bottom: 2px;
}
.drawer__link svg { width: 18px; height: 18px; color: var(--c-main); }
.drawer__cta { margin-top: 28px; display: grid; gap: 12px; }
.drawer__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px;
  background: #fff;
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
}
.drawer__tel-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
}
.drawer__tel-note { font-size: 12px; color: var(--c-text-light); }
.drawer__sns { margin-top: 28px; display: flex; justify-content: center; gap: 12px; }

body.is-menu-open { overflow: hidden; }

/* ---------------------------------------------------------------------
   5. トップページ各セクション
   --------------------------------------------------------------------- */

/* --- 5-1. ヒーロー --- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  padding: 16px 16px 0;
}
.hero__visual {
  position: relative;
  height: min(78vh, 760px);
  min-height: 520px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-main-light);
}
/* スライドショー: 全スライドを重ねて配置し、.is-active だけ表示(クロスフェード) */
.hero__slides {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.95) brightness(1.02);
  transform: scale(1);
}
/* 表示中のスライドはゆっくりズーム(Ken Burns 効果)。
   フェードアウト中(.is-leaving)もズームを継続し、前の写真が"戻る"動きを出さない */
.hero__slide.is-active img,
.hero__slide.is-leaving img {
  animation: heroZoom 8s linear forwards;
}
.hero__slide.is-leaving { z-index: 0; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* インジケーター */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 1px 4px rgba(78,59,48,0.25);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.hero__dot:hover { transform: scale(1.25); }
.hero__dot[aria-selected="true"] { background: var(--c-accent); transform: scale(1.3); }
/* タップしやすいよう当たり判定を広げる */
.hero__dot::before { content: ''; position: absolute; inset: -8px; }
.hero__dot { position: relative; }

/* 写真上の読みやすさを確保するグラデーション */
.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 34%, rgba(255,255,255,0.15) 64%, rgba(255,255,255,0) 100%);
  z-index: 2;
}
.hero__body {
  position: absolute;
  inset: 0;
  z-index: 3;   /* グラデーション(::after z-index:2)より上に文字を置く */
  display: flex;
  align-items: center;
}
.hero__content {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.hero__badge { margin-bottom: 22px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--c-text);
  text-shadow: 0 2px 16px rgba(255,255,255,0.8);
}
.hero__title em {
  font-style: normal;
  color: var(--c-main-dark);
}
.hero__sub {
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 20px);
  letter-spacing: 0.1em;
  color: var(--c-text);
  text-shadow: 0 1px 10px rgba(255,255,255,0.9);
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
/* スクロール案内 */
.hero__scroll {
  position: absolute;
  right: 36px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-text-light);
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 44px;
  background: var(--c-text-light);
  animation: scrollLine 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- 5-2. リード文(理念) --- */
.lead {
  text-align: center;
  padding-block: clamp(80px, 11vw, 140px);
  position: relative;
  overflow: hidden;
}
.lead__deco {
  position: absolute;
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: 0.55;
}
.lead__deco--1 { top: -60px; left: -80px; }
.lead__deco--2 { bottom: -100px; right: -60px; width: 380px; height: 380px; }
.lead__mark {
  position: absolute;
  right: -40px;
  bottom: 24px;
  width: min(420px, 50vw);
  height: auto;
  opacity: 0.16;
  pointer-events: none;
}
.lead__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 32px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--c-text);
  position: relative;
}
.lead__title .mark { color: var(--c-main-dark); }
.lead__text {
  margin-top: 36px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2.3;
  letter-spacing: 0.08em;
  position: relative;
}
.lead__text p + p { margin-top: 1.6em; }

/* --- 5-3. 写真ギャラリー(横並び/スマホ横スクロール) --- */
.gallery {
  padding-bottom: var(--section-pad);
}
.gallery__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}
.gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.gallery__item:nth-child(even) { transform: translateY(28px); }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(1.02);
  transition: transform 0.8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

/* --- 5-4. ABOUT --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about__photo {
  aspect-ratio: 8 / 7;
  border-radius: var(--r-xl);
  position: relative;
}
.about__photo img { object-position: center 60%; }
.about__photo::before {
  /* 写真の背後に差し色の角丸シェイプ */
  content: '';
  position: absolute;
  inset: 28px -28px -28px 28px;
  border-radius: var(--r-xl);
  background: var(--c-main-light);
  z-index: -1;
}
.about__catch {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.about__catch .mark { color: var(--c-main-dark); }
.about__actions { margin-top: 32px; }

/* --- 5-5. 施設長・代表メッセージ --- */
.message__card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-m);
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.message__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.message__role {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--c-text-light);
}
.message__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.message__name small {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-light);
  margin-left: 12px;
  letter-spacing: 0.16em;
}
.message__catch {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.8;
  letter-spacing: 0.08em;
}
.message__catch .mark { color: var(--c-main-dark); }
.message__body { margin-top: 24px; }
.message__actions { margin-top: 32px; }
.note-tmp {
  /* 仮文・ダミー差し替え予定の注記(公開時は削除) */
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: var(--r-s);
  background: var(--c-accent-pale);
  color: #b26a12;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* --- 5-6. 支援内容(3本柱) --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px 32px 36px;
  box-shadow: var(--shadow-s);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m);
}
.pillar__num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--c-main);
}
.pillar__icon {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: var(--c-main-pale);
  margin-bottom: 26px;
}
.pillar__icon svg { width: 46px; height: 46px; }
.pillar:nth-child(1) .pillar__icon { background: var(--c-main-pale); color: var(--c-main-dark); }
.pillar:nth-child(2) .pillar__icon { background: var(--c-accent-pale); color: var(--c-accent); }
.pillar:nth-child(3) .pillar__icon { background: #fdf0ea; color: #e98a6c; }
.pillar__tag {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--c-text-light);
  margin-bottom: 6px;
}
.pillar__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.pillar__title sup { font-size: 0.55em; vertical-align: super; }
.pillar__text {
  margin-top: 16px;
  font-size: 15px;
  color: var(--c-text-light);
  flex: 1;
}
.pillar__link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-main-dark);
}
.pillar__link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.pillar__link:hover svg { transform: translateX(3px); }

/* 統合支援の帯 */
.pillars__note {
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--r-l);
  background: #fff;
  border: 2px dashed var(--c-main-light);
  display: flex;
  align-items: center;
  gap: 24px;
}
.pillars__note-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: var(--c-main);
}
.pillars__note-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
}
.pillars__note p { font-size: 14.5px; color: var(--c-text-light); }
.pillars__note--top { margin: -16px 0 40px; }

/* 連携歯科医院 紹介ブロック */
/* ABOUT と SERVICE の間に置く独立セクション */
.partner-sec { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); background: #fff; }
.partner-sec .partner--solo { margin-top: 0; box-shadow: var(--shadow-m, var(--shadow-s)); }

.partner {
  margin-top: 40px;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-s);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.partner::before {
  /* 左端のアクセントライン */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--c-accent-2), var(--c-accent));
}
.partner__icon {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: var(--c-accent-pale);
  color: var(--c-accent);
  display: grid;
  place-items: center;
}
.partner__icon svg { width: 46px; height: 46px; }
.partner__label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-accent);
  margin-bottom: 6px;
}
.partner__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.partner__text {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--c-text-light);
  line-height: 1.9;
}
.partner__text sup, .partner__tags sup { font-size: 0.6em; vertical-align: super; }
.partner__tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.partner__tags li {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--c-cream);
  color: var(--c-text);
  letter-spacing: 0.04em;
}
.partner__action { text-align: center; }
.partner__action .btn { white-space: nowrap; }
.partner__note { margin-top: 8px; font-size: 11.5px; color: var(--c-text-muted); }

/* Instagram フィード(2アカウント横並び) */
.ig { margin-top: 56px; }
.ig__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.ig__head-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 13px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
}
.ig__head-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.ig__head-lead { margin-top: 4px; font-size: 14px; color: var(--c-text-light); }
.ig__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ig__card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-s);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ig__card-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ig__badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--r-full);
  color: #fff;
}
.ig__badge--main { background: var(--c-main); }
.ig__badge--accent { background: var(--c-accent); }
.ig__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.ig__name small {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
}
/* 埋め込み枠: 公式embedはプロフィール+投稿3列×2段。横幅に応じて高さを確保 */
.ig__frame {
  position: relative;
  width: 100%;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--c-gray);
  border: 1px solid var(--c-line);
  /* 投稿サムネイルが見切れないよう、幅に対して高さを比例させる */
  aspect-ratio: 1 / 1;
}
.ig__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ig__btn { min-height: 48px; align-self: stretch; }
.ig__btn svg { width: 18px; height: 18px; }
.ig__btn:hover svg { transform: none; }
.section__actions { margin-top: 48px; text-align: center; }

/* --- 5-7. ご利用の流れ(要約) --- */
.flow__intro {
  background: #fff;
  border-radius: var(--r-l);
  padding: 28px 32px;
  box-shadow: var(--shadow-s);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}
.flow__intro-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--c-accent-pale);
  color: var(--c-accent);
  display: grid;
  place-items: center;
}
.flow__intro-icon svg { width: 34px; height: 34px; }
.flow__intro-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.flow__intro p { font-size: 14.5px; color: var(--c-text-light); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: #fff;
  border-radius: var(--r-l);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow-s);
  position: relative;
  text-align: center;
}
/* ステップ間の矢印 */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--c-accent);
  border-right: 3px solid var(--c-accent);
  transform: translateY(-50%) rotate(45deg);
}
.step__label {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #fff;
  background: var(--c-main);
  padding: 4px 14px;
  border-radius: var(--r-full);
}
.step__icon {
  width: 64px;
  height: 64px;
  margin: 22px auto 18px;
  color: var(--c-main-dark);
}
.step__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}
.step__text {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--c-text-light);
  text-align: left;
}

/* --- 5-8. よくあるご質問(アコーディオン) --- */
.faq__list { display: grid; gap: 14px; }
.faq__item {
  background: #fff;
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.6;
}
.faq__q:hover { color: var(--c-main-dark); }
.faq__q-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-main);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 15px;
}
.faq__q-text { flex: 1; }
.faq__q-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
}
.faq__q-toggle::before,
.faq__q-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.faq__q-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__q-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

/* grid-template-rows の 0fr → 1fr で高さアニメーション */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-body {
  display: flex;
  gap: 18px;
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--c-text-light);
}
.faq__a-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
}
.faq__a-text { padding-top: 6px; }
.faq__a-text a { color: var(--c-main-dark); text-decoration: underline; text-underline-offset: 3px; }

/* --- 5-9. アクセス --- */
.access__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.access__map {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-m);
  aspect-ratio: 4 / 3;
  background: var(--c-gray);
}
.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.85);
}
.access__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.08em;
}
.access__name small {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-main);
  margin-bottom: 4px;
}
.info-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 15px;
}
.info-table th,
.info-table td {
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.info-table th {
  width: 108px;
  font-weight: 700;
  color: var(--c-text-light);
  white-space: nowrap;
}
.info-table a[href^="tel:"] { font-family: var(--font-en); font-weight: 700; letter-spacing: 0.04em; }
.access__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* --- 5-10. CTA --- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 100px);
  background: linear-gradient(135deg, var(--c-main) 0%, #b3d35c 100%);
  color: #fff;
}
.cta__deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
}
.cta__deco--1 { width: 360px; top: -120px; left: -80px; }
.cta__deco--2 { width: 300px; bottom: -120px; right: -40px; }
.cta__mark {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: min(380px, 45vw);
  height: auto;
  opacity: 0.22;
  pointer-events: none;
  filter: brightness(1.6) saturate(0.6);
}
.cta__inner {
  position: relative;
  text-align: center;
}
.cta__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.cta__lead {
  margin-top: 14px;
  font-size: clamp(14px, 1.3vw, 16px);
  opacity: 0.95;
}
.cta__box {
  margin: 40px auto 0;
  max-width: 820px;
  background: #fff;
  color: var(--c-text);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-l);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}
.cta__divider {
  width: 1px;
  height: 100%;
  min-height: 90px;
  background: var(--c-line);
  position: relative;
}
.cta__divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 6px 0;
  font-size: 12px;
  color: var(--c-text-muted);
  letter-spacing: 0.1em;
}
.cta__col-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-text-light);
  letter-spacing: 0.1em;
}
.cta__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 40px);
  letter-spacing: 0.04em;
  color: var(--c-text);
  line-height: 1.2;
}
.cta__tel svg { width: 30px; height: 30px; color: var(--c-main); }
.cta__tel:hover { color: var(--c-main-dark); }
.cta__note { margin-top: 6px; font-size: 13px; color: var(--c-text-light); }
.cta__btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------------
   6. フッター / スマホ固定発信バー
   --------------------------------------------------------------------- */
.footer {
  background: var(--c-dark);
  color: #fff;
  padding: clamp(56px, 7vw, 80px) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__desc {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.78);
}
.footer__address {
  margin-top: 18px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
}
.footer__address a { font-family: var(--font-en); font-weight: 700; letter-spacing: 0.04em; }
.footer__address a:hover { color: var(--c-accent-3); }
.footer__sns { margin-top: 20px; display: flex; gap: 10px; }
.sns-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.sns-btn:hover { background: var(--c-accent); transform: translateY(-2px); }
.sns-btn svg { width: 22px; height: 22px; }
.footer__heading {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--c-main);
  margin-bottom: 18px;
}
.footer__nav li + li { margin-top: 10px; }
.footer__nav a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__nav a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.8;
}
.footer__nav a:hover { color: var(--c-accent-3); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}
.footer__bottom a:hover { color: #fff; }

/* スマホ固定発信バー(768px未満で表示) */
.sp-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(78,59,48,0.1);
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sp-bar .btn { min-height: 52px; padding-inline: 12px; font-size: 15px; }
.sp-bar .btn svg { width: 18px; height: 18px; }
.sp-bar .btn:hover svg { transform: none; }

/* ページトップへ */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-dark);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.to-top svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------
   7. 下層ページ共通
   --------------------------------------------------------------------- */
.page-header {
  margin-top: var(--header-h);
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
  background: var(--c-main-pale);
  position: relative;
  overflow: hidden;
}
.page-header__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--c-main);
  margin-bottom: 10px;
}
.page-header__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.page-header__lead {
  margin-top: 18px;
  color: var(--c-text-light);
  max-width: 640px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--c-text-light);
  margin-bottom: 20px;
}
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.breadcrumb a:hover { color: var(--c-main-dark); }

/* ---------------------------------------------------------------------
   8. ユーティリティ / アニメーション
   --------------------------------------------------------------------- */
.mark { color: var(--c-main-dark); }
.ta-c { text-align: center; }
.nowrap { white-space: nowrap; }
.sp-only { display: none; }   /* 768px以下でのみ表示(改行調整用) */
@media (max-width: 768px) { .sp-only { display: inline; } .pc-only { display: none; } }
.mt-l { margin-top: 48px; }

/* スクロール連動のフェードイン(JSで .is-inview 付与) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-up.is-inview { opacity: 1; transform: none; }
.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }

/* ---------------------------------------------------------------------
   9. レスポンシブ
   --------------------------------------------------------------------- */

/* ===== 1024px以下(タブレット横〜) ===== */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .logo__img { height: 44px; }
  .gnav__list { display: none; }       /* ナビはドロワーへ */
  .header__tel { display: none; }
  .menu-btn { display: block; }
  .header__cta { display: none; }
  .gnav { gap: 12px; }

  .hero__visual { height: min(70vh, 640px); min-height: 480px; }
  .hero__visual::after {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 35%, rgba(255,255,255,0.88) 60%, rgba(255,255,255,0.96) 100%);
  }
  .hero__body { align-items: flex-end; padding-bottom: 56px; }
  .hero__scroll { display: none; }

  .gallery__track { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(even) { transform: none; }

  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .partner { grid-template-columns: auto 1fr; }
  .partner__action { grid-column: 1 / -1; }
  .pillar { padding: 32px 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

/* ===== 768px以下(タブレット縦・スマホ横) ===== */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container, .container--narrow { width: min(100% - 32px, var(--container)); }

  /* スマホ: 写真を上に大きく見せ、コピーは写真の下(白背景)に配置して可読性を確保 */
  .hero { padding: 10px 10px 0; }
  .hero__visual { height: auto; min-height: 0; max-height: none; overflow: visible; border-radius: 0; background: transparent; }
  .hero__visual::after { display: none; }
  .hero__slides { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-s); }
  .hero__dots { position: static; transform: none; justify-content: center; margin-top: 16px; }
  .hero__body { position: static; display: block; padding: 22px 6px 0; }
  .hero__content { width: 100%; }
  .hero__title { font-size: clamp(26px, 7vw, 36px); text-shadow: none; letter-spacing: 0.05em; }
  .hero__sub { text-shadow: none; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .lead__title { font-size: 20px; letter-spacing: 0.05em; }
  .lead__mark { width: 220px; right: -30px; bottom: 8px; opacity: 0.12; }
  .cta__mark { width: 220px; }
  .lead__deco { width: 220px; height: 220px; }
  .lead__deco--2 { width: 260px; height: 260px; }

  /* ギャラリー: 横スクロール + スクロールスナップ */
  .gallery__track {
    display: flex;
    gap: 14px;
    width: auto;
    margin: 0;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery__track::-webkit-scrollbar { display: none; }
  .gallery__item {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__photo { order: -1; aspect-ratio: 4 / 3; }
  .about__photo img { object-position: center 65%; }
  .about__photo::before { inset: 20px -12px -20px 20px; }

  .message__card { grid-template-columns: 1fr; padding: 24px 20px 32px; }
  .message__photo { position: static; max-width: 280px; aspect-ratio: 1 / 1; margin-inline: auto; }

  .pillars__note { flex-direction: column; text-align: center; align-items: center; padding: 24px 20px; }
  .partner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px 20px; }
  .ig__head { flex-direction: column; text-align: center; }
  .ig__grid { grid-template-columns: 1fr; gap: 18px; }
  .ig__card { padding: 18px 16px 20px; }
  .ig__frame { aspect-ratio: 1 / 1.12; }
  .partner::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 6px; background: linear-gradient(90deg, var(--c-accent-2), var(--c-accent)); }
  .partner__tags { justify-content: center; }
  .partner__action { width: 100%; }
  .partner__action .btn { width: 100%; white-space: normal; }
  .flow__intro { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::after {
    top: auto;
    bottom: -20px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
  .step:nth-child(2)::after { display: block; }
  .step__text { text-align: center; }

  .faq__q { padding: 18px 16px; font-size: 15.5px; gap: 12px; }
  .faq__q-mark, .faq__a-mark { width: 30px; height: 30px; font-size: 13px; }
  .faq__a-body { padding: 0 16px 20px; gap: 12px; }

  .access__grid { grid-template-columns: 1fr; }
  .access__map { aspect-ratio: 4 / 3; }
  .access__actions .btn { flex: 1 1 100%; }

  .cta__box { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .cta__divider { width: 100%; height: 1px; min-height: 0; }
  .cta__divider span { padding: 0 12px; }
  .cta__btn-wrap .btn { width: 100%; }

  .footer { padding-bottom: 84px; }   /* 固定発信バーぶん余白 */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .sp-bar { display: grid; }
  .to-top { bottom: 90px; right: 14px; }
}

@media (max-width: 520px) {
  .hero__slides { aspect-ratio: 4 / 3; }
}

/* ===== 375px付近(小型スマホ) ===== */
@media (max-width: 400px) {
  .logo__img { height: 40px; }
  .hero__title { font-size: 25px; }
  .hero__sub { font-size: 14px; }
  .sec-head__ja { font-size: 24px; }
  .btn { padding-inline: 24px; font-size: 14px; }
  .pillar { padding: 28px 22px; }
  .gallery__item { flex-basis: 84%; }
}

/* =====================================================================
   10. 下層ページ用コンポーネント
   ===================================================================== */

/* --- ページヘッダー(飾り) --- */
.page-header__inner { position: relative; }
.page-header__mark {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: min(340px, 36vw);
  opacity: 0.18;
  pointer-events: none;
}

/* --- 導入文(保護者の不安に寄り添う一文) --- */
.intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.intro__catch {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.intro p { color: var(--c-text-light); }

/* --- 小見出し付きブロック --- */
.block + .block { margin-top: clamp(48px, 7vw, 80px); }
.block__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: 0.06em;
  line-height: 1.5;
  padding-left: 18px;
  border-left: 5px solid var(--c-main);
  margin-bottom: 24px;
}
.block__title small {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-main);
  margin-bottom: 4px;
}

/* --- Purpose / Vision / Mission --- */
.pvm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pvm__item {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-s);
  text-align: center;
}
.pvm__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--c-main);
}
.pvm__ja {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  margin: 6px 0 18px;
}
.pvm__text { font-size: 15px; line-height: 1.95; text-align: left; }
.pvm__item:nth-child(1) { border-top: 5px solid var(--c-main); }
.pvm__item:nth-child(2) { border-top: 5px solid var(--c-accent); }
.pvm__item:nth-child(3) { border-top: 5px solid #e98a6c; }

/* --- 困りごとの視点(ミスマッチ図) --- */
.mismatch {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-s);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.mismatch__box {
  padding: 24px 18px;
  border-radius: var(--r-l);
}
.mismatch__box--a { background: var(--c-main-pale); }
.mismatch__box--b { background: var(--c-accent-pale); }
.mismatch__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}
.mismatch__box p { font-size: 14px; color: var(--c-text-light); }
.mismatch__x {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 32px;
  color: var(--c-text-muted);
}
.mismatch__result {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px dashed var(--c-line);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
}
.mismatch__result .mark { font-size: 1.15em; }

/* --- 価値観リスト --- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: v; }
.values__item {
  background: #fff;
  border-radius: var(--r-l);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-s);
  position: relative;
}
.values__item::before {
  counter-increment: v;
  content: counter(v, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--c-accent);
}
.values__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17.5px;
  margin: 6px 0 10px;
  line-height: 1.5;
}
.values__item p { font-size: 14.5px; color: var(--c-text-light); }

/* --- 会社概要などの定義表 --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.spec-table th, .spec-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.8;
}
.spec-table th {
  width: 200px;
  background: var(--c-main-pale);
  font-weight: 700;
  color: var(--c-text);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table a { color: var(--c-main-dark); text-decoration: underline; text-underline-offset: 3px; }

/* --- 支援内容 詳細(写真なしの2カラム) --- */
.detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-s);
}
.detail + .detail { margin-top: 24px; }
.detail__side { text-align: center; }
.detail__icon {
  width: 120px;
  height: 120px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.detail__icon svg { width: 62px; height: 62px; }
.detail--1 .detail__icon { background: var(--c-main-pale); color: var(--c-main-dark); }
.detail--2 .detail__icon { background: var(--c-accent-pale); color: var(--c-accent); }
.detail--3 .detail__icon { background: #fdf0ea; color: #e98a6c; }
.detail__tag { font-size: 13px; letter-spacing: 0.1em; color: var(--c-text-light); }
.detail__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  margin-top: 4px;
  line-height: 1.4;
}
.detail__title sup { font-size: 0.5em; }
.detail__catch {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.detail__body p + p { margin-top: 1em; }
/* 用語解説ボックス */
.glossary {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  background: var(--c-cream);
  font-size: 14px;
  line-height: 1.85;
}
.glossary dt {
  font-weight: 700;
  color: var(--c-main-dark);
  display: inline;
}
.glossary dt::after { content: ' ―  '; color: var(--c-text-muted); }
.glossary dd { display: inline; }
.glossary div + div { margin-top: 8px; display: block; }

/* --- 統合の流れ(横矢印チェーン) --- */
.chain {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 28px 20px;
  box-shadow: var(--shadow-s);
  flex-wrap: wrap;
  justify-content: center;
}
.chain__item {
  flex: 1 1 0;
  min-width: 150px;
  text-align: center;
  padding: 14px 10px;
  position: relative;
}
.chain__item + .chain__item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--c-accent);
  border-right: 3px solid var(--c-accent);
  transform: translateY(-50%) rotate(45deg);
}
.chain__num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-main);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}
.chain__item:nth-child(4) .chain__num { background: var(--c-accent); }
.chain__title { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.5; }
.chain__text { font-size: 13px; color: var(--c-text-light); margin-top: 6px; }

/* --- 支援領域5分野 --- */
.areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.area {
  background: #fff;
  border-radius: var(--r-l);
  padding: 24px 18px;
  box-shadow: var(--shadow-s);
  text-align: center;
}
.area__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--c-main-pale);
  color: var(--c-main-dark);
}
.area__icon svg { width: 32px; height: 32px; }
.area:nth-child(2) .area__icon { background: var(--c-accent-pale); color: var(--c-accent); }
.area:nth-child(3) .area__icon { background: #fdf0ea; color: #e98a6c; }
.area:nth-child(4) .area__icon { background: #eaf3f7; color: #6fa8c7; }
.area:nth-child(5) .area__icon { background: #f3eaf7; color: #a57cc0; }
.area__title { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.5; }
.area__text { font-size: 13px; color: var(--c-text-light); margin-top: 8px; text-align: left; }

/* --- 変化のステップ(矢印ステップ図) --- */
.journey {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: stretch;
}
.journey__step {
  background: #fff;
  border-radius: var(--r-m);
  padding: 18px 10px 16px;
  text-align: center;
  box-shadow: var(--shadow-s);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  padding-left: 20px;
  padding-right: 22px;
}
.journey__step:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-left: 12px; }
.journey__step:last-child {
  background: var(--c-main);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
  border-radius: var(--r-m);
  padding-right: 12px;
}
.journey__num { font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--c-accent); }
.journey__step:last-child .journey__num { color: #fff; opacity: 0.85; }
.journey__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.4; margin-top: 4px; }
.journey__note { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--c-text-light); }

/* --- ご利用の流れ(縦フロー) --- */
.vflow { position: relative; counter-reset: s; }
.vflow::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background: var(--c-main-light);
}
.vflow__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}
.vflow__step + .vflow__step { margin-top: 28px; }
.vflow__badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-main);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  box-shadow: 0 0 0 8px #fff;
  position: relative;
  z-index: 1;
}
.vflow__badge b { display: block; font-size: 26px; letter-spacing: 0; }
.vflow__step:last-child .vflow__badge { background: var(--c-accent); }
.vflow__card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-s);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.vflow__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin-bottom: 8px; line-height: 1.5; }
.vflow__card p { font-size: 15px; color: var(--c-text-light); }
.vflow__card svg { width: 64px; height: 64px; color: var(--c-main-dark); flex-shrink: 0; }
.vflow__step:last-child .vflow__card svg { color: var(--c-accent); }
.vflow__where {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--c-main-pale);
  color: var(--c-main-dark);
  font-size: 12.5px;
  font-weight: 700;
}
.vflow__step:nth-child(3) .vflow__where { background: var(--c-accent-pale); color: #b26a12; }

/* --- 料金表 --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.price-table th, .price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
}
.price-table thead th {
  background: var(--c-main);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.price-table tbody th { background: var(--c-main-pale); font-weight: 700; width: 38%; }
.price-table tr:last-child td, .price-table tr:last-child th { border-bottom: 0; }
.price-table .is-free { color: var(--c-main-dark); font-weight: 700; }
.note {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--r-m);
  background: var(--c-accent-pale);
  color: #8a5312;
  font-size: 13.5px;
  line-height: 1.8;
}
.note strong { font-weight: 700; }

/* --- 施設案内(写真+設備) --- */
.facility { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facility__item { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-s); }
.facility__item .photo { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; }
.facility__body { padding: 20px 22px 22px; }
.facility__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.facility__body p { font-size: 14px; color: var(--c-text-light); }
.equip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.equip__item {
  background: #fff;
  border-radius: var(--r-l);
  padding: 20px 16px;
  box-shadow: var(--shadow-s);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 700;
}
.equip__item svg { width: 28px; height: 28px; color: var(--c-main-dark); flex-shrink: 0; }

/* --- お知らせ 一覧 --- */
.news-list { display: grid; gap: 14px; }
.news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border-radius: var(--r-l);
  padding: 16px;
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.news-item__thumb { aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; background: var(--c-cream); }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.news-item__date { font-family: var(--font-en); font-weight: 700; font-size: 13px; color: var(--c-text-light); letter-spacing: 0.04em; }
.news-item__cat {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--c-main-pale);
  color: var(--c-main-dark);
}
.news-item__cat--event { background: var(--c-accent-pale); color: #b26a12; }
.news-item__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.5; }
.news-item__excerpt { margin-top: 6px; font-size: 14px; color: var(--c-text-light); }

/* --- お知らせ 詳細 --- */
.article { background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-s); }
.article__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; margin: 12px 0 24px; }
.article__eyecatch { border-radius: var(--r-l); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16 / 9; }
.article__eyecatch img { width: 100%; height: 100%; object-fit: cover; }
.article__body { line-height: 2; }
.article__body h2 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--c-main);
}
.article__body p + p { margin-top: 1.2em; }
.article__body ul { padding-left: 1.4em; list-style: disc; }
.article__nav { margin-top: 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* --- お問い合わせフォーム --- */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.form { background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-s); }
.form__row + .form__row { margin-top: 24px; }
.form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.form__req, .form__opt {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.form__req { background: #e06c5b; }
.form__opt { background: var(--c-text-muted); }
.form__input, .form__textarea, .form__select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--c-line);
  border-radius: var(--r-m);
  background: var(--c-gray);
  font: inherit;
  font-size: 16px; /* iOSの自動ズーム防止 */
  color: var(--c-text);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--c-main);
  background: #fff;
}
.form__input[aria-invalid="true"], .form__textarea[aria-invalid="true"] { border-color: #e06c5b; }
.form__textarea { min-height: 180px; resize: vertical; }
.form__help { margin-top: 6px; font-size: 12.5px; color: var(--c-text-light); }
.form__error { margin-top: 6px; font-size: 13px; color: #c0392b; display: none; }
.form__error.is-visible { display: block; }
.form__agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  background: var(--c-cream);
  font-size: 14.5px;
  line-height: 1.7;
  cursor: pointer;
}
.form__agree input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c-main); flex-shrink: 0; }
.form__agree a { color: var(--c-main-dark); text-decoration: underline; text-underline-offset: 3px; }
.form__submit { margin-top: 28px; text-align: center; }
.form__submit .btn { min-width: 280px; }
.form__status {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--r-m);
  font-size: 15px;
  display: none;
}
.form__status.is-success { display: block; background: var(--c-main-pale); color: var(--c-main-dark); }
.form__status.is-error { display: block; background: #fdeeec; color: #c0392b; }
.contact-side { display: grid; gap: 16px; }
.contact-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow-s);
  text-align: center;
}
.contact-card__label { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--c-text-light); }
.contact-card__tel { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--font-en); font-weight: 700; font-size: 30px; letter-spacing: 0.03em; }
.contact-card__tel svg { width: 24px; height: 24px; color: var(--c-main); }
.contact-card__note { margin-top: 6px; font-size: 13px; color: var(--c-text-light); }
.contact-card--soft { background: var(--c-main-pale); box-shadow: none; text-align: left; font-size: 14px; line-height: 1.85; }
.contact-card--soft .contact-card__label { color: var(--c-main-dark); margin-bottom: 8px; display: block; }

/* --- プライバシーポリシー等の長文 --- */
.legal { background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-s); line-height: 2; }
.legal h2 { font-family: var(--font-head); font-size: 19px; margin: 32px 0 12px; padding-left: 14px; border-left: 4px solid var(--c-main); }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.4em; list-style: disc; }
.legal p + p { margin-top: 1em; }
.legal .date { margin-top: 32px; text-align: right; font-size: 13.5px; color: var(--c-text-light); }

/* --- 下層ページ レスポンシブ --- */
@media (max-width: 1024px) {
  .pvm { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: repeat(4, 1fr); }
  .facility { grid-template-columns: 1fr 1fr; }
  .equip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail__side { display: flex; align-items: center; gap: 20px; text-align: left; }
  .detail__icon { margin: 0; width: 88px; height: 88px; border-radius: 26px; }
  .detail__icon svg { width: 46px; height: 46px; }
  .page-header__mark { width: 220px; opacity: 0.12; }
}
@media (max-width: 768px) {
  .values { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr 1fr; }
  .mismatch { grid-template-columns: 1fr; }
  .mismatch__x { transform: rotate(90deg); }
  .spec-table th, .spec-table td { display: block; width: 100%; padding: 12px 18px; }
  .spec-table th { border-bottom: 0; padding-bottom: 6px; }
  .journey { grid-template-columns: 1fr 1fr; }
  .journey__step, .journey__step:first-child, .journey__step:last-child { clip-path: none; padding: 16px 12px; }
  .chain__item { flex: 1 1 100%; }
  .chain__item + .chain__item::before { left: 50%; top: -6px; transform: translateX(-50%) rotate(135deg); }
  .vflow::before { left: 27px; }
  .vflow__step { grid-template-columns: 56px 1fr; gap: 14px; }
  .vflow__badge { width: 56px; height: 56px; font-size: 9px; box-shadow: 0 0 0 6px var(--c-main-pale); }
  .vflow__badge b { font-size: 20px; }
  .vflow__card { grid-template-columns: 1fr; padding: 22px 20px; }
  .vflow__card svg { display: none; }
  .price-table thead { display: none; }
  .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tbody th { padding-bottom: 6px; border-bottom: 0; }
  .facility { grid-template-columns: 1fr; }
  .equip { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-item__thumb { aspect-ratio: 16 / 9; }
  .form__submit .btn { width: 100%; min-width: 0; }
  .intro__catch { font-size: 18px; letter-spacing: 0.04em; }
}

/* ===== 開所日お知らせ(ヒーロー) ===== */
.hero__open { display:inline-flex; align-items:center; gap:10px; margin:12px 0 4px; padding:7px 16px 7px 7px; background:#fff; border-radius:999px; box-shadow:var(--shadow-s); font-size:14px; font-weight:700; color:var(--c-text); text-decoration:none; transition:transform .2s, box-shadow .2s; }
.hero__open:hover { transform:translateY(-1px); box-shadow:var(--shadow-m); }
.hero__open-tag { white-space:nowrap; flex-shrink:0; background:var(--c-accent); color:#fff; font-family:var(--font-head); font-size:12px; letter-spacing:.1em; padding:3px 10px; border-radius:999px; }
.hero__open-text { line-height:1.4; }
.nowrap { white-space:nowrap; display:inline-block; }
@media (max-width:520px){
  .hero__open { font-size:13px; gap:8px; padding:7px 14px 7px 7px; align-items:center; text-align:left; }
  .hero__open-sep { display:none; }
  .hero__open-sub { display:block; font-size:11px; font-weight:500; color:var(--c-text-sub, #6b5a4e); }
  .docs-banner__title { font-size:17px; }
}
@media (max-width:768px){
  .cta__title { letter-spacing:.06em; }
  .intro__catch { letter-spacing:.05em; }
}

/* ===== 支援プログラム・自己評価表 バナー ===== */
.docs-banner-sec { padding-top: 0; }
.docs-banner { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 28px); padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 36px); background: linear-gradient(135deg, #fff6e8 0%, #fff 60%); border: 2px solid var(--c-accent-light, #ffc977); border-radius: var(--r-xl); box-shadow: var(--shadow-s); cursor: pointer; text-align: left; font: inherit; color: var(--c-text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.docs-banner:hover, .docs-banner:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--c-accent); outline: none; }
.docs-banner__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--c-accent); color: #fff; display: grid; place-items: center; flex: none; }
.docs-banner__icon svg { width: 34px; height: 34px; }
.docs-banner__body { display: flex; flex-direction: column; gap: 2px; }
.docs-banner__en { font-family: var(--font-head); font-size: 11px; letter-spacing: .18em; color: var(--c-accent-dark, #d97f00); font-weight: 700; }
.docs-banner__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); }
.docs-banner__lead { font-size: 14px; color: var(--c-text-light); }
.docs-banner__arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--c-accent); color: var(--c-accent); display: grid; place-items: center; transition: background .2s, color .2s; }
.docs-banner__arrow svg { width: 20px; height: 20px; }
.docs-banner:hover .docs-banner__arrow { background: var(--c-accent); color: #fff; }

/* ===== モーダル ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(78,59,48,.45); opacity: 0; transition: opacity .22s; }
.modal__panel { position: relative; width: min(680px, 100%); background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-l); transform: translateY(14px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-cream); color: var(--c-text); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: var(--c-accent-pale, #fff6e8); }
.modal__en { font-family: var(--font-head); font-size: 11px; letter-spacing: .18em; color: var(--c-main); font-weight: 700; text-align: center; }
.modal__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2.4vw, 22px); text-align: center; margin: 4px 0 24px; }
.modal__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 18px 22px; border-radius: var(--r-l); background: var(--c-cream); border: 2px solid transparent; color: var(--c-text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.choice:hover, .choice:focus-visible { border-color: var(--c-main); background: #fff; transform: translateY(-2px); outline: none; }
.choice__icon { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--c-main); display: grid; place-items: center; box-shadow: var(--shadow-s); }
.choice__icon svg { width: 32px; height: 32px; }
.choice__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-top: 4px; }
.choice__lead { font-size: 13px; color: var(--c-text-light); }
.choice__go { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--c-main-dark); }

/* ===== 資料ページ ===== */
.doc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.doc-tab { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: var(--r-l); background: #fff; border: 2px solid var(--c-border, #e5ded8); color: var(--c-text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 16px; transition: border-color .2s, background .2s; }
.doc-tab svg { width: 24px; height: 24px; color: var(--c-main); }
.doc-tab:hover { border-color: var(--c-main); }
.doc-tab.is-active { background: var(--c-main); border-color: var(--c-main); color: #fff; }
.doc-tab.is-active svg { color: #fff; }
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.doc-year__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--c-main-dark); border-left: 5px solid var(--c-main); padding-left: 12px; margin-bottom: 10px; }
.doc-year__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-item__link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-s); color: var(--c-text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.doc-item__link:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.doc-item__pdf { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #fff; background: #e5484d; padding: 6px 8px; border-radius: 6px; }
.doc-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-item__title { font-weight: 700; font-size: 15px; }
.doc-item__meta { font-size: 12.5px; color: var(--c-text-muted); }
.doc-item__icon { width: 20px; height: 20px; color: var(--c-main); }
.doc-empty, .news-empty { list-style: none; padding: 28px; text-align: center; background: var(--c-cream); border-radius: var(--r-l); color: var(--c-text-light); }
.doc-note { margin-top: 20px; font-size: 12.5px; color: var(--c-text-muted); }
.news-item__thumb--none { background: var(--c-cream) url('/static/img/logo/star.png') center/40% no-repeat; }
@media (max-width: 768px) {
  .docs-banner { grid-template-columns: auto 1fr; }
  .docs-banner__arrow { display: none; }
  .docs-banner__icon { width: 52px; height: 52px; } .docs-banner__icon svg { width: 28px; height: 28px; }
  .modal__choices { grid-template-columns: 1fr; }
  .doc-tabs { grid-template-columns: 1fr; }
}
