@charset "UTF-8";
/*!
Theme Name: Hanayama
Description: 花山認定こども園　オリジナルテーマ
Version: 2.0.0
Text Domain: hanayama
*/

/* ==========================================================
   変数
   ========================================================== */
:root {
  /* 色：ブランド */
  --color-brand-main: #f0a3ac;      /* ブランドメインカラー（ピンク系） */
  --color-brand-light: #fbe7e9;     /* ブランドライトカラー（薄ピンク） */
  --color-brand-deep: #b25a66;      /* ブランドディープ（濃いローズ） */
  --color-brand-sub: #7cc1b5;       /* ブランドサブカラー（ミント系） */
  --color-brand-sub-light: #e0f1ec; /* ブランドサブライト（薄ミント） */

  /* 色：アクセント */
  --color-accent-yellow: #f2c14e;       /* アクセントイエロー（お知らせ・装飾） */
  --color-accent-yellow-light: #fdeec4; /* 黄色の薄い面（タグなど） */
  --color-accent-yellow-line: #e0ae3a;  /* 黄色の線・点線 */
  --color-accent-yellow-dark: #9a7215;  /* 黄色系の文字（読める濃さ） */

  /* 色：文字・背景・ボタン */
  --color-text-heading: #5f484c;    /* 見出しテキスト色 */
  --color-text-body: #56504b;       /* 本文テキスト色 */
  --color-text-on-action: #fff;     /* ボタン上の白文字 */
  --color-bg-base: #fdf8f0;         /* 背景ベースカラー（ページ全体） */
  --color-surface-white: #fff;      /* カード・セクションの白 */
  --color-bg-paper: #f6f1ea;        /* 紙の質感の背景（画像の外側を塗る色） */
  --color-action-mint-dark: #357e78; /* 緑のボタン・英字ラベル */
  --color-line-dotted: #e6e3e3;     /* ナビの区切りの点線 */

  /* 色：自然（イラスト風の背景） */
  --color-nature-grass-light: #dcefc6; /* 原っぱ（奥の丘） */
  --color-nature-grass: #a6cf6b;       /* 原っぱ（手前の丘）・FVイラストの黄緑 */
  --color-nature-grass-deep: #467f33;  /* フッター本体（白文字 約4.8:1） */
  --color-nature-sky: #b0ddf6;         /* 晴れた空（保護者向けの背景など） */
  --color-nature-sand: #f3e6cf;        /* 砂場（ベースのクリームより少し濃いベージュ） */
  --color-nature-road: #cccac5;        /* 道路（やわらかいグレーの舗装） */
  --color-nature-road-edge: #f1f0ed;   /* 道路のふち（縁石） */

  /* 色：自然（木・コルク） */
  --color-nature-wood-light: #f3e3c8; /* 看板の板（面） */
  --color-nature-wood: #c9965f;       /* 看板の枠・柱 */
  --color-nature-wood-deep: #8a5b36;  /* 看板の木目・影 */
  --color-nature-cork: #e2be8f;       /* コルクボードの面（お知らせ） */

  /* フォント */
  --font-heading: "Zen Maru Gothic", sans-serif; /* 見出し・ボタン */
  --font-body: "Noto Sans JP", sans-serif;       /* 本文 */
  --font-en: "Quicksand", "Zen Maru Gothic", sans-serif; /* 英字・数字 */

  /* 太さ */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  /* 文字サイズ（SPの値。768px以上は下のメディアクエリでPCの値に上書き） */
  --fs-display: 1.875rem;     /* 30px / PC 44px  ファーストビューのキャッチ */
  --fs-h1: 1.75rem;           /* 28px / PC 40px  下層ページのタイトル */
  --fs-h2: 1.5rem;            /* 24px / PC 32px  セクションの見出し */
  --fs-h3: 1.125rem;          /* 18px / PC 22px  カードの見出し・小見出し */
  --fs-card-title: 0.9375rem; /* 15px / PC 16px  カードの見出し（小） */
  --fs-lead: 1rem;            /* 16px / PC 18px  リード文 */
  --fs-body-lg: 0.9375rem;    /* 15px / PC 16px  本文（標準） */
  --fs-body-sm: 0.875rem;     /* 14px            本文（小）・カードの説明 */
  --fs-caption: 0.75rem;      /* 12px / PC 13px  注記・受付時間など */
  --fs-en-label: 0.75rem;     /* 12px / PC 14px  見出しの上の英字ラベル */
  --fs-button: 0.875rem;      /* 14px / PC 15px  ボタンの文字 */
  --fs-text-link: 0.8125rem;  /* 13px            文字だけのリンク */
  --fs-tel: 1.5rem;           /* 24px / PC 32px  電話番号（大） */
  --fs-tel-sm: 1rem;          /* 16px            電話番号（小・ヘッダー） */
  --fs-en-tagline: 0.875rem;  /* 14px / PC 18px  FVの英字ロゴ */
  --fs-date: 0.9375rem;       /* 15px            お知らせの日付 */
  --fs-badge: 0.6875rem;      /* 11px            小さな番号・バッジ */
  --fs-tab: 0.875rem;         /* 14px            お知らせのカテゴリ（タブ・選択） */
  --fs-goal-word: 2.125rem;   /* 34px            園について：目標の言葉 */
  --fs-goal-badge-label: 0.625rem; /* 10px       バッジの英字 */
  --fs-goal-badge-number: 1.5rem;  /* 24px       丸いバッジの番号 */

  /* 行間（デザインの「auto」は normal） */
  --lh-display: 1.45;
  --lh-heading: 1.5;          /* H1・H2 */
  --lh-heading-sm: 1.6;       /* H3・Card Title */
  --lh-body: 1.9;             /* Lead・Body Large */
  --lh-body-sm: 1.8;
  --lh-caption: 1.7;
  --lh-tel: 1.2;
  --lh-date: 1.27;            /* お知らせの日付・PDFバッジ（15px / 19px） */
  --lh-tight: 1;              /* English Label・Button・Text Link・Tel Small・Goal Word */
  --lh-goal-badge-label: 1.3; /* 10px / 13px */
  --lh-goal-badge-number: 1.25; /* 24px / 30px */

  /* 字間 */
  --ls-heading: 0.04em;       /* Display・H1・H2・Goal Word */
  --ls-heading-sm: 0.02em;    /* H3 */
  --ls-card-title: 0.02em;    /* SP 0.02em / PC 0 */
  --ls-lead: 0.05em;
  --ls-body-lg: 0.03em;
  --ls-body-sm: 0.02em;       /* Body Small・Caption・Tel */
  --ls-en-label: 0.12em;      /* English Label・Tel Small */
  --ls-button: 0.05em;        /* Button・Text Link */
  --ls-en-tagline: 0.03em;
  --ls-goal-badge-label: 0.06em;
  --ls-footer-nav: 0.1em;     /* フッターのナビ */

  /* 余白（スタイルガイドの13段階） */
  --space-4: 0.25rem;   /* 4px   最小余白（アイコンとラベルの間など） */
  --space-8: 0.5rem;    /* 8px   要素内の細かい間隔 */
  --space-12: 0.75rem;  /* 12px  リスト項目間など */
  --space-16: 1rem;     /* 16px  フォーム要素間など */
  --space-24: 1.5rem;   /* 24px  カード内パディングなど */
  --space-32: 2rem;     /* 32px  セクション内の要素間 */
  --space-40: 2.5rem;   /* 40px */
  --space-48: 3rem;     /* 48px  SP版セクション内余白 */
  --space-64: 4rem;     /* 64px  SPセクション間・PC要素グループ間 */
  --space-80: 5rem;     /* 80px  PCセクション内パディング */
  --space-96: 6rem;     /* 96px  PCセクション間の上下余白 */
  --space-120: 7.5rem;  /* 120px ヒーローセクション等の大きな余白 */
  --space-144: 9rem;    /* 144px ページ上下の大きな余白 */

  /* セクションの余白（SPの値。768px以上で画面幅に合わせてPCの値まで広がる） */
  --section-space: var(--space-64); /* セクション間の上下余白 */
  --section-inner: var(--space-48); /* セクション内のパディング */
  --heading-gap: var(--space-40);   /* セクション見出し〜コンテンツ間 */
  --grid-gap: var(--space-24);      /* カラム間余白 */

  /* 角丸 */
  --radius-8: 0.5rem;    /* 8px   ボタン・入力欄 */
  --radius-12: 0.75rem;  /* 12px  小カード */
  --radius-16: 1rem;     /* 16px  カード・画像 */
  --radius-20: 1.25rem;  /* 20px  大カード */
  --radius-24: 1.5rem;   /* 24px  セクション背景 */
  --radius-full: 999px;  /* ピル型ボタン・アバター */

  /* レイアウト */
  /* ブレイクポイントは 768px（CSS変数はメディアクエリに使えないので直接書く） */
  --content-width: 1100px;       /* コンテンツの最大幅 */
  --content-narrow-width: 800px; /* テキスト中心のセクション用 */
  --header-width: 1280px;        /* ヘッダーのナビだけ広い */
  --gutter: 1.25rem;             /* ページ左右余白：SP 20px / PC 40px */
  --tap-size: 44px;

  /* ボタン（SPの値） */
  --button-height: 2.75rem;        /* 44px / PC 55px */
  --button-min-width: 10rem;       /* 160px / PC 200px */
  --button-shadow-offset: 0.3125rem; /* 5px / PC 6px  右下にずらした色 */
  --button-icon-size: 1.5rem;      /* イラストアイコン */
  --shadow-photo-card: 0 0.375rem 1rem rgb(102 77 51 / 0.12); /* 写真カードの影 */
  --shadow-sign: drop-shadow(0 0.5rem 0.375rem rgb(102 77 51 / 0.25)); /* 看板が浮いたときの影 */
  --shadow-memo: 0 0.1875rem 0.5rem rgb(95 72 76 / 0.14);         /* メモ（こんな方へ）の影 */
  --shadow-memo-hover: 0 0.625rem 1.25rem rgb(95 72 76 / 0.2);    /* メモが持ち上がったときの影 */
  --shadow-news-card: 0 0.5rem 1.5rem rgb(95 72 76 / 0.06);       /* お知らせカードの影 */
  --shadow-news-card-hover: 0 0.875rem 1.75rem rgb(95 72 76 / 0.14); /* お知らせカードが持ち上がったときの影 */
  --shadow-recruit-card: 0.625rem 0.625rem 0 var(--color-brand-sub-light); /* 採用カードの右下にずらした色 */
  --duration: 0.2s;
  --duration-drawer: 0.3s;

  /* ヘッダー（SPの値） */
  --header-logo-width: 15rem;      /* 240px / PC 400px */
  --nav-icon-size: 2.5rem;         /* 40px  メニューのイラスト */
  --header-height-sp: 4rem;        /* 64px */
  --z-header: 50;
  --z-drawer: 100;
}

/* PC（768px以上）の文字サイズ・余白 */
@media (min-width: 768px) {
  :root {
    --fs-display: 2.75rem;     /* 44px */
    --fs-h1: 2.5rem;           /* 40px */
    --fs-h2: 2rem;             /* 32px */
    --fs-h3: 1.375rem;         /* 22px */
    --fs-card-title: 1rem;     /* 16px */
    --fs-lead: 1.125rem;       /* 18px */
    --fs-body-lg: 1rem;        /* 16px */
    --fs-caption: 0.8125rem;   /* 13px */
    --fs-en-label: 0.875rem;   /* 14px */
    --fs-button: 0.9375rem;    /* 15px */
    --fs-tel: 2rem;            /* 32px */
    --fs-en-tagline: 1.125rem; /* 18px */
    --ls-card-title: 0;

    /* 768〜1440pxの間はなめらかに広げ、1440px以上でデザインの値（96px / 80px） */
    --section-space: clamp(var(--space-64), 6.667vw, var(--space-96));
    --section-inner: clamp(var(--space-48), 5.556vw, var(--space-80));
    --heading-gap: clamp(var(--space-40), 4.444vw, var(--space-64));
    --gutter: var(--space-40);

    --button-height: 3.4375rem;      /* 55px */
    --button-min-width: 12.5rem;     /* 200px */
    --button-shadow-offset: 0.375rem; /* 6px */
    --button-icon-size: 2rem;        /* 32px */

    --header-logo-width: 25rem;      /* 400px */
  }
}

/* ==========================================================
   リセット
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

/* ==========================================================
   ベース
   ========================================================== */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body-lg);
  color: var(--color-text-body);
  background-color: var(--color-bg-base);
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
}

/* ==========================================================
   レイアウト
   ========================================================== */
/* 中身を最大1100pxで中央寄せ（背景は親要素で横いっぱいに伸ばす） */
.l-container {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* テキスト中心のセクション用（最大800px） */
.l-container--narrow {
  max-width: calc(var(--content-narrow-width) + var(--gutter) * 2);
}

/* ヘッダー用（最大1280px） */
.l-container--header {
  max-width: calc(var(--header-width) + var(--gutter) * 2);
}

/* ==========================================================
   ヘッダー
   ・1100px以上 … PCのナビ（白い帯）と電話・ボタンを表示
   ・1100px未満 … ハンバーガーボタンでメニュー（ドロワー）を開く
     ※ナビ8項目が横に収まらないため、ヘッダーだけ1100pxで切り替える
   ========================================================== */
/* SPは画面上部に追従する */
.l-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-bg-base);
}

/* SPは高さ64px（メニューボタンが上下中央） */
.l-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: var(--header-height-sp);
}

.l-header__logo {
  display: block;
  flex-shrink: 1;
  width: var(--header-logo-width);
  min-width: 0;
}

.l-header__logo img {
  width: 100%;
}

.l-header__contact {
  display: none;
}

.l-header__tel {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-size);
  font-family: var(--font-en);
  font-size: var(--fs-tel-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-en-label);
  color: var(--color-text-heading);
  text-decoration: none;
}

.l-header__tel-icon {
  width: 3rem;
}

.l-header__contact .c-button {
  min-width: 15rem; /* 240px */
}

/* 電話：マウスを乗せている間、受話器が「ブルルッ」とゆれる（0.9秒でくり返し） */
@media (hover: hover) {
  .l-header__tel:hover .l-header__tel-icon {
    animation: tel-shake 0.9s ease-in-out infinite;
  }
}

.l-header__tel:focus-visible .l-header__tel-icon {
  animation: tel-shake 0.9s ease-in-out infinite;
}

.l-header__tel:focus-visible {
  outline: 2px solid var(--color-text-heading);
  outline-offset: 4px;
  border-radius: var(--radius-8);
}

/* 前半の約半分でゆれて、残りは静止 */
@keyframes tel-shake {
  0% { transform: rotate(0); }
  8% { transform: rotate(16deg); }
  16% { transform: rotate(-16deg); }
  24% { transform: rotate(13deg); }
  32% { transform: rotate(-13deg); }
  40% { transform: rotate(6deg); }
  48% { transform: rotate(-6deg); }
  54%, 100% { transform: rotate(0); }
}

/* ハンバーガーボタン（ピンク・ミント・イエローの3本線） */
.l-header__menu-btn {
  --menu-line-width: 1.5rem; /* 24px いちばん長い線 */

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4.5px; /* 線の中心が8pxおき（Figma） */
  flex-shrink: 0;
  width: var(--tap-size);
  height: var(--tap-size);
  padding: 0 calc((var(--tap-size) - var(--menu-line-width)) / 2);
  background: none;
  border: 0;
  border-radius: var(--radius-8);
  cursor: pointer;
}

.l-header__menu-line {
  width: var(--menu-line-width);
  height: 3.5px;
  background-color: var(--color-brand-main);
  border-radius: var(--radius-full);
}

/* 線の長さ：ピンク24px・ミント17px・黄21px で左揃え */
.l-header__menu-line:nth-child(2) {
  width: 1.0625rem; /* 17px */
  background-color: var(--color-brand-sub);
}

.l-header__menu-line:nth-child(3) {
  width: 1.3125rem; /* 21px */
  background-color: var(--color-accent-yellow-line);
}

.l-header__nav {
  display: none;
}

@media (min-width: 768px) {
  .l-header {
    position: static;
    padding-block: var(--space-24) var(--space-16);
  }

  .l-header__top {
    min-height: 0;
  }
}

@media (min-width: 1100px) {
  .l-header__contact {
    display: flex;
    align-items: center;
    gap: var(--space-24);
  }

  .l-header__menu-btn {
    display: none;
  }

  .l-header__nav {
    --nav-gap: min(var(--space-32), calc((100vw - 55rem) / 14)); /* 1440pxで32px。狭い画面では8項目が収まるように詰める */

    display: block;
    margin-top: var(--space-16);
    padding: 0.625rem var(--space-24) 0.875rem; /* 10px 24px 14px */
    background-color: var(--color-surface-white);
    border-radius: var(--radius-full);
  }

  .l-header__nav-list {
    display: flex;
    justify-content: center;
    gap: var(--nav-gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .l-header__nav-list > .c-nav-item {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
  }

  /* 項目の間の点線 */
  .l-header__nav-list > .c-nav-item + .c-nav-item::before {
    content: "";
    flex-shrink: 0;
    height: 2.5rem;
    border-left: 1px dashed var(--color-text-heading);
    opacity: 0.15;
  }

  .l-header__nav .c-nav-item__link {
    padding: 0;
  }

  .l-header__nav .c-nav-item__icon {
    width: 3rem;
    margin-bottom: 0;
  }

  .l-header__nav .c-nav-item__ja {
    font-size: var(--fs-body-sm);
    line-height: var(--lh-body-sm);
    letter-spacing: var(--ls-body-sm);
  }

  /* 現在地の線は日本語の下に少し重ねる */
  .l-header__nav .c-nav-item__ja::after {
    margin-top: -1px;
  }

  .l-header__nav .c-nav-item__en {
    margin-top: 6px;
  }
}

/* ==========================================================
   SPメニュー（ドロワー）
   ========================================================== */
.l-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: var(--space-48);
  background-color: var(--color-bg-base);
  visibility: hidden;
  opacity: 0;
  /* 閉じるときはフェードが終わってから非表示にする */
  transition:
    opacity var(--duration-drawer) ease,
    visibility 0s linear var(--duration-drawer);
}

.l-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity var(--duration-drawer) ease,
    visibility 0s linear 0s;
}

/* 後ろのページを止める。スクロールバーが消えるぶんは右に余白を足して、横にずれないようにする */
body.is-drawer-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0);
}

.l-drawer.has-scrollbar {
  scrollbar-gutter: stable;
}

/* ヘッダーの上段と同じ高さ・位置にして、開いたときにロゴが動かないようにする */
.l-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  min-height: var(--header-height-sp);
}

/* 閉じるボタン（ピンクとミントの×） */
.l-drawer__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--tap-size);
  height: var(--tap-size);
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-8);
  cursor: pointer;
}

.l-drawer__close-line {
  grid-area: 1 / 1;
  width: 1.59rem; /* 18px四方の対角線 */
  height: 3.5px;
  background-color: var(--color-brand-main);
  border-radius: var(--radius-full);
  transform: rotate(45deg);
}

.l-drawer__close-line:nth-child(2) {
  background-color: var(--color-brand-sub);
  transform: rotate(-45deg);
}

.l-drawer__nav {
  margin-top: var(--space-24);
  padding: var(--space-16);
  background-color: var(--color-surface-white);
  border-radius: var(--radius-24);
}

.l-drawer__nav-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* メニュー内は下線を出さない。1マス 159×113px（上下12px）・アイコン48px・日本語14px（Figma） */
.l-drawer .c-nav-item__ja::after {
  display: none;
}

.l-drawer .c-nav-item__link {
  padding-block: var(--space-12);
}

.l-drawer .c-nav-item__icon {
  width: 3rem;
  margin-bottom: 0;
}

.l-drawer .c-nav-item__ja {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body-sm);
}

.l-drawer .c-nav-item__en {
  margin-top: var(--space-4);
}

.l-drawer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-24);
  text-align: center;
}

.l-drawer__tel {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-family: var(--font-en);
  font-size: var(--fs-tel);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tel);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-heading);
  text-decoration: none;
}

.l-drawer__tel-icon {
  width: 2.5rem;
}

.l-drawer__hours {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
}

.l-drawer__button {
  width: 100%;
  max-width: 30rem;
  margin-top: 1.25rem; /* 受付時間の下 24px（すき間4px＋20px） */
}

@media (min-width: 768px) {
  .l-drawer__top {
    min-height: 0;
    padding-block: var(--space-24) var(--space-16);
  }

  .l-drawer__nav {
    padding-inline: var(--space-32);
  }

  .l-drawer__nav-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================
   フッター
   ・背景：空（透明）＋丘と緑の本体（画像）。動くイラストは上に重ねる
   ・空と丘の位置はフッターの幅に対する割合（cqw）で決めて、画面幅に合わせて一緒に縮む
   ・1100px以上で看板とナビが横並び（ヘッダーと同じ切り替え幅）
   ========================================================== */
.l-footer {
  /* 子どもたち・小鳥・親子の動きの速さ（倍率。2にすると半分の速さ） */
  --footer-motion-scale: 1;

  container-type: inline-size;
  overflow-x: clip; /* 雲を画面の左に見切れさせる（横スクロールを出さない） */
  margin-top: var(--section-space);
  color: var(--color-text-on-action);
}

.l-footer__body {
  /* SPの値（デザイン390px幅に対する割合） */
  --footer-sky: 10.26cqw;         /* 丘の画像より上の空の高さ（SP 40px・Figma） */
  --footer-hills-solid: 24cqw;    /* 丘の画像が緑で埋まりきる位置（ここから下は単色で塗る） */
  --footer-content-top: 47.18cqw;  /* 看板の画像の上端の位置（SP 184px・Figma） */

  position: relative;
  padding-block: var(--footer-content-top) var(--space-40);
  background:
    url("assets/images/common/footer-hills-sp.png") center top var(--footer-sky) / 100% auto no-repeat,
    linear-gradient(to bottom, transparent calc(var(--footer-sky) + var(--footer-hills-solid)), var(--color-nature-grass-deep) 0);
}

/* ----------------------------------------------------------
   動くイラスト（飾り）
   位置を決めて重ねるだけなので absolute を使う（レイアウトには関わらない）
   位置・大きさはフッターの幅に対する割合（cqw）
   ---------------------------------------------------------- */
.l-footer__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.l-footer__deco {
  position: absolute;
}

.l-footer__deco img {
  width: 100%;
}

.l-footer__sun {
  top: -18.17cqw;
  left: 77.12cqw;
  width: 19.37cqw;
}

.l-footer__clouds {
  top: -8.21cqw;
  left: -3.08cqw;
  width: 23.59cqw;
}

.l-footer__butterfly {
  top: 6.77cqw;
  left: 85.18cqw;
  width: 7.6cqw;
}

.l-footer__kid-run {
  top: 13.33cqw;
  left: 32.82cqw;
  width: 15.38cqw;
}

.l-footer__kid-ball {
  top: 13.33cqw;
  left: 48.21cqw;
  width: 15.38cqw;
}

.l-footer__kids-hands {
  top: 9.74cqw;
  left: 65.64cqw;
  width: 19.23cqw;
}

.l-footer__flowers-01 {
  top: 24.62cqw; /* SP 65×44px（40, 96）・Figma */
  left: 10.26cqw;
  width: 16.67cqw;
}

.l-footer__flowers-02 {
  top: 25.64cqw; /* SP 34px（344, 100）・Figma */
  left: 88.21cqw;
  width: 8.72cqw;
}

/* おひさま：ゆっくり回りながら大きくなったり小さくなったり（フッターが画面に入ってから） */
.l-footer.is-inview .l-footer__sun {
  animation: sun-scale 2.6s ease-in-out infinite alternate;
}

.l-footer.is-inview .l-footer__sun img {
  animation: sun-rotate 24s linear infinite;
}

/* 雲：左右にゆっくり行ったり来たり */
.l-footer__clouds {
  animation: footer-cloud 10s ease-in-out infinite alternate;
}

/* ちょうちょ：ひらひら上下しながら右へ移動して戻る */
.l-footer__butterfly {
  animation: footer-butterfly-move 3.2s ease-in-out infinite alternate;
}

.l-footer__butterfly img {
  animation: footer-butterfly-flap 0.4s ease-in-out infinite alternate;
}

/* 走っている子：ぴょこぴょこ跳ねながら左右に少し行き来する */
.l-footer__kid-run {
  animation: footer-kid-run-move calc(4s * var(--footer-motion-scale)) ease-in-out infinite alternate;
}

.l-footer__kid-run img {
  animation: footer-kid-run-hop calc(0.32s * var(--footer-motion-scale)) ease-in-out infinite alternate;
}

/* ボール遊びの子：ときどきジャンプ */
.l-footer__kid-ball img {
  transform-origin: 50% 100%;
  animation: footer-kid-ball-jump calc(1.4s * var(--footer-motion-scale)) ease-out infinite;
}

/* 手をつないだ子どもたち：足元を軸にゆらゆら */
.l-footer__kids-hands img {
  transform-origin: 50% 100%;
  animation: footer-kids-sway calc(1.1s * var(--footer-motion-scale)) ease-in-out infinite alternate;
}

/* ----------------------------------------------------------
   看板・ナビ・電話
   ---------------------------------------------------------- */
.l-footer__main {
  display: grid;
  grid-template-areas:
    "sign"
    "nav"
    "contact";
}

.l-footer__sign {
  position: relative;
  grid-area: sign;
  left: 0.3%; /* 看板の板の左端をFigmaの位置（左から26.5px）にそろえる */
  justify-self: center;
  width: 100%;
}

.l-footer__sign img {
  width: 100%;
}

/* 看板の左上にとまる小鳥（看板の画像に対する%） */
.l-footer__bird {
  position: absolute;
  top: -13.25%;
  left: 2.67%;
  width: 13.8%;
}

.l-footer__bird img {
  transform-origin: 50% 100%;
  animation: footer-bird-peck calc(3.2s * var(--footer-motion-scale)) ease-in-out infinite;
}

.l-footer__nav {
  grid-area: nav;
  margin-top: var(--space-24);
}

.l-footer__nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-12);
}

/* SPで文字が長い項目は1行まるごと使う */
.l-footer__nav-item--wide {
  grid-column: 1 / -1;
}

.l-footer__nav-link {
  display: inline-flex;
  align-items: center;
  vertical-align: top; /* 行の下にすき間ができないように */
  gap: var(--space-8);
  min-height: 3rem; /* 48px */
  padding: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-button);
  color: inherit;
  text-decoration: none;
}

.l-footer__nav-icon {
  flex-shrink: 0;
  width: 2.25rem; /* 36px */
}

.l-footer__nav-link .l-footer__arrow {
  width: 1.125rem; /* 18px */
  height: 1.125rem;
}

.l-footer__arrow {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

/* 親子と花のイラスト：SPはナビ最終行の右、PCは線の上の右端
   花は動かさず、親子だけが歩くように揺れる */
.l-footer__family {
  --family-scale: 0.647; /* SP：親子の高さ66px（Figma） */

  display: flex;
  align-items: flex-end;
  gap: 1.125rem;
  margin-right: var(--space-8);
  grid-area: nav;
  align-self: end;
  justify-self: end;
  pointer-events: none;
}

.l-footer__family-flowers {
  width: calc(4.1875rem * var(--family-scale)); /* PC 67px */
}

.l-footer__family-people {
  width: calc(5.0625rem * var(--family-scale)); /* PC 81px */
  transform-origin: 50% 100%;
  animation: footer-family-walk calc(0.45s * var(--footer-motion-scale)) ease-in-out infinite alternate;
}

.l-footer__contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-32);
  padding-bottom: var(--space-32);
  text-align: center;
}

.l-footer__tel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4); /* アイコンの画像は余白が多いので詰める */
  min-height: 2.5rem; /* 40px */
  font-family: var(--font-en);
  font-size: var(--fs-tel);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tel);
  letter-spacing: var(--ls-body-sm);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.l-footer__tel-icon {
  flex-shrink: 0;
  width: 2.5rem;
}

.l-footer__hours {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
}

.l-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  padding-top: var(--space-32);
  border-top: 1px solid var(--color-nature-grass);
}

.l-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8) var(--space-24);
}

.l-footer__links > li {
  display: flex; /* 行の高さをリンクの高さ（20px）にそろえる */
}

.l-footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
  color: inherit;
  text-decoration: none;
}

/* リンク：マウスを乗せると文字と丸矢印が黄色に */
.l-footer__nav-link,
.l-footer__link {
  transition: color var(--duration) ease;
}

@media (hover: hover) {
  .l-footer__nav-link:hover,
  .l-footer__link:hover {
    color: var(--color-accent-yellow);
  }

  .l-footer__tel:hover .l-footer__tel-icon {
    animation: tel-shake 0.9s ease-in-out infinite;
  }
}

.l-footer__nav-link:focus-visible,
.l-footer__link:focus-visible {
  color: var(--color-accent-yellow);
}

.l-footer__tel:focus-visible .l-footer__tel-icon {
  animation: tel-shake 0.9s ease-in-out infinite;
}

.l-footer__nav-link:focus-visible,
.l-footer__tel:focus-visible,
.l-footer__link:focus-visible,
.l-footer__sign:focus-visible {
  outline: 2px solid var(--color-text-on-action);
  outline-offset: 4px;
  border-radius: var(--radius-8);
}

.l-footer__copyright {
  font-family: var(--font-en);
  font-size: var(--fs-en-label);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-en-label);
  text-align: center;
}

.l-footer__link .l-footer__arrow {
  width: 0.875rem; /* 14px */
  height: 0.875rem;
}

.l-footer__copyright small {
  font-size: inherit;
}

@media (min-width: 768px) {
  /* PCの空と丘・イラストの位置（デザイン1440px幅に対する割合） */
  .l-footer__body {
    --footer-sky: 14.09cqw;
    --footer-hills-solid: 12cqw;
    --footer-content-top: 20.87cqw;

    padding-bottom: var(--space-32);

    background-image:
      url("assets/images/common/footer-hills-pc.png"),
      linear-gradient(to bottom, transparent calc(var(--footer-sky) + var(--footer-hills-solid)), var(--color-nature-grass-deep) 0);
  }

  .l-footer__sun {
    top: 0.33cqw;
    left: 88.58cqw;
    width: 10.66cqw;
  }

  .l-footer__clouds {
    top: 5.39cqw;
    left: -2.54cqw;
    width: 12.5cqw;
  }

  .l-footer__butterfly {
    top: 13.57cqw;
    left: 86.49cqw;
    width: 4.05cqw;
  }

  .l-footer__kid-run {
    top: 16.31cqw;
    left: 49.63cqw;
    width: 8.07cqw;
  }

  .l-footer__kid-ball {
    top: 16.15cqw;
    left: 57.82cqw;
    width: 8.27cqw;
  }

  .l-footer__kids-hands {
    top: 14.57cqw;
    left: 75.96cqw;
    width: 10.54cqw;
  }

  .l-footer__flowers-01 {
    top: 20.55cqw;
    left: 66.56cqw;
    width: 9.01cqw;
  }

  .l-footer__flowers-02 {
    top: 21.34cqw;
    left: 90.02cqw;
    width: 4.72cqw;
  }

  /* 768〜1099pxはSPと同じ縦並びで、看板とナビを少し大きく・中央寄せにする */
  .l-footer__sign {
    left: 0;
    max-width: 25rem;
  }

  .l-footer__nav {
    justify-self: center;
    width: 100%;
    max-width: 36rem;
  }

  .l-footer__nav-link {
    gap: var(--space-12);
  }

  .l-footer__nav-icon {
    width: 2.25rem;
  }

  .l-footer__family {
    --family-scale: 0.8;

    gap: calc(0.75rem * var(--family-scale));
    margin-right: 0;
  }

  .l-footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-24);
    padding-top: var(--space-32);
  }

  .l-footer__link {
    min-height: 2.25rem;
    line-height: var(--lh-caption);
  }

  .l-footer__link .l-footer__arrow {
    width: 1em;
    height: 1em;
  }

  .l-footer__copyright {
    line-height: var(--lh-caption);
  }

  .l-footer__links {
    justify-content: flex-start;
    column-gap: var(--space-32);
  }
}

/* 看板とナビの横並びは、ナビが収まる1100px以上（ヘッダーと同じ） */
@media (min-width: 1100px) {
  .l-footer__main {
    grid-template-columns: minmax(0, 37.5rem) minmax(max-content, 1fr); /* 狭いときは看板のほうを縮める */
    grid-template-areas:
      "sign nav"
      "contact nav";
    column-gap: var(--space-24); /* 看板の画像の右の余白と合わせて、看板とナビの間をあける */
    row-gap: var(--space-24);
  }

  /* 看板の画像は左右に少し余白があるので、そのぶん左に出す
     画面が狭いときは列の幅に合わせて縮み、ナビに重ならない */
  .l-footer__sign {
    justify-self: start;
    width: calc(100% + 2.125rem);
    max-width: 39.625rem; /* 634px */
    margin-left: -1.75rem;
  }

  .l-footer__nav {
    justify-self: stretch;
    width: auto;
    max-width: none;
    margin-top: 0;
    padding-top: 6.25rem; /* 看板の板の高さにナビの1行目をそろえる */
  }

  /* 左列5つ・右列4つを縦に並べる */
  .l-footer__nav-list {
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    justify-content: space-between; /* 右の列は下の線の右端にそろえる */
    gap: var(--space-4) var(--space-40);
  }

  .l-footer__nav-item {
    order: var(--pc-order);
  }

  .l-footer__nav-link {
    gap: var(--space-8);
    min-height: 3rem; /* 48px */
    padding: var(--space-4);
    font-size: var(--fs-body-sm);
    letter-spacing: var(--ls-button);
    white-space: nowrap;
  }

  .l-footer__nav-icon {
    width: 2.25rem;
  }

  .l-footer__nav-link .l-footer__arrow {
    width: 1.125rem;
    height: 1.125rem;
  }

  .l-footer__nav-item--wide {
    grid-column: auto;
  }

  /* 親子の足元が下の線に重なるようにする（4px下げる） */
  .l-footer__family {
    --family-scale: 1;

    grid-area: 1 / 2 / 3 / 3; /* ナビの下に重ねて、下の線の上に置く */
    margin-bottom: -0.25rem;
  }

  .l-footer__contact {
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: 0;
    padding-bottom: var(--space-16);
    text-align: left;
  }

  .l-footer__tel-icon {
    width: 3.5rem;
  }
}

/* おひさま（FV・フッター共通）：1回転24秒、0.94倍↔1.1倍 */
@keyframes sun-rotate {
  to { transform: rotate(360deg); }
}

@keyframes sun-scale {
  from { transform: scale(0.94); }
  to { transform: scale(1.1); }
}

@keyframes footer-cloud {
  from { transform: translateX(0); }
  to { transform: translateX(24px); }
}

@keyframes footer-butterfly-move {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

@keyframes footer-butterfly-flap {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(-5px) rotate(6deg); }
}

/* 左へ10px ↔ 右へ14px */
@keyframes footer-kid-run-move {
  from { transform: translateX(-10px); }
  to { transform: translateX(14px); }
}

/* 上へ6px・±2° */
@keyframes footer-kid-run-hop {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-6px) rotate(2deg); }
}

/* 前半でジャンプ（上へ14px、着地で少しつぶれる）、後半は静止 */
@keyframes footer-kid-ball-jump {
  0% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-14px) scale(1); }
  38% { transform: translateY(0) scale(1.06, 0.92); }
  48%, 100% { transform: translateY(0) scale(1); }
}

/* ±3°・上へ4px */
@keyframes footer-kids-sway {
  0% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(0) translateY(-4px); }
  100% { transform: rotate(3deg) translateY(0); }
}

/* 最後の3割で、ついばむように2回（上へ8px・-6° → 戻る → 上へ5px・4° → 戻る） */
@keyframes footer-bird-peck {
  0%, 70% { transform: translateY(0) rotate(0); }
  77.5% { transform: translateY(-8px) rotate(-6deg); }
  85% { transform: translateY(0) rotate(0); }
  92.5% { transform: translateY(-5px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* 歩くように小さく上下・左右に（上へ4px・±1.5°） */
@keyframes footer-family-walk {
  from { transform: translateY(0) rotate(-1.5deg); }
  to { transform: translateY(-4px) rotate(1.5deg); }
}

/* ==========================================================
   共通の出現：画面に入ったら、下から24px上がりながら透明→表示にふわっと出る（0.8秒・1回だけ）
   ・js-inview を付けた要素が対象（FVはページを開いた直後に出る）
   ========================================================== */
.is-js .js-inview {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.22, 0.8, 0.36, 1);
}

.is-js .js-inview.is-inview {
  opacity: 1;
  transform: none;
}
/* ==========================================================
   トップページ：ファーストビュー
   ・SP〜1099pxは縦に並べる（ラベル→タグ→キャッチ→写真→リード→ボタン）
   ・1100px以上は左に文字、右に写真（写真は画面の右へはみ出す）
   ・あしらい（図形・点線・おひさま・小鳥）は位置を決めて重ねる
   ========================================================== */
.p-top-fv {
  --fv-wave-height: 6.154cqw; /* SPの波の画像 780×48 の比率 */

  position: relative;
  container-type: inline-size;
  overflow-x: clip;
  z-index: 1; /* 下の紙の背景より手前に、FVのあしらいを重ねる */
  padding-bottom: var(--space-32);
}

/* いちばん上のクリーム色の波（ヘッダーの色から続く） */
.p-top-fv::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--fv-wave-height);
  background: url("assets/images/top/fv-wave-sp.png") center top / 100% 100% no-repeat;
}

.p-top-fv__deco > * {
  position: absolute;
}

.p-top-fv__shape-yellow {
  top: 3.125rem;
  left: -2rem;
  width: 5.9375rem;
}

.p-top-fv__shape-rose-01 {
  top: 30.5rem;
  left: -1.25rem;
  width: 3.0625rem;
}

.p-top-fv__sun {
  top: 7.6875rem;
  right: -0.25rem;
  width: 5.375rem;
}

.p-top-fv__sun img {
  width: 100%;
}

.p-top-fv__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "label"
    "tag"
    "catch"
    "visual"
    "lead"
    "buttons";
  justify-items: start;
  padding-top: var(--space-48);
}

.p-top-fv__label {
  grid-area: label;
  width: 18.625rem;
}

.p-top-fv__label img {
  width: 100%;
}

.p-top-fv__tag {
  grid-area: tag;
  display: inline-flex;
  align-items: center;
  min-height: 2.375rem;
  margin-top: 0.625rem;
  padding-inline: 1.5625rem;
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-lead);
  color: var(--color-text-on-action);
  background-color: var(--color-brand-deep);
  border-radius: var(--radius-full);
}

/* キャッチコピー：文字ごとに大きさを変える（--catch-size が基準） */
.p-top-fv__catch {
  --catch-size: min(1.875rem, 7.692vw); /* 390pxで30px。せまい画面では縮めて1行に収める */

  grid-area: catch;
  isolation: isolate; /* 色の四角を文字の後ろに敷くため */
  margin-top: 2.1625rem;
  padding-left: 0.3em; /* 左の色の四角が、ほかの文字の左端より少し左に出るぶん */
  font-family: var(--font-heading);
  font-size: var(--catch-size);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--color-text-heading);
}

.p-top-fv__catch-text {
  display: flex;
  flex-direction: column;
  gap: 0.417em; /* SP：行の間 約12.5px（Figma） */
}

.p-top-fv__catch-line {
  display: flex;
  align-items: baseline;
}

/* 文字ごとの大きさ（--size）と左のすき間（--space）は functions.php で指定 */
.p-top-fv__char {
  position: relative;
  top: calc(var(--sp-dy, 0) * var(--catch-size));
  display: inline-block;
  margin-left: calc((var(--space) + var(--sp-space, 0)) * var(--catch-size));
  font-size: calc(var(--size) * 1em);
}

.p-top-fv__char--mint {
  color: var(--color-action-mint-dark);
}

/* 色の四角に乗る文字 */
.p-top-fv__char--box {
  color: var(--color-text-on-action);
}

.p-top-fv__box {
  position: absolute;
  z-index: -1;
  background: center / 100% 100% no-repeat;
}

/* 四角の大きさと位置は、のっている文字の大きさ（em）に対する値 */
.p-top-fv__char--box-rose .p-top-fv__box {
  top: -0.17em;
  left: -0.18em;
  width: 1.29em;
  height: 1.43em;
  background-image: url("assets/images/top/fv-catch-box-rose.png");
}

.p-top-fv__char--box-mint .p-top-fv__box {
  top: -0.23em;
  left: -0.17em;
  width: 1.29em;
  height: 1.53em;
  background-image: url("assets/images/top/fv-catch-box-mint.png");
}

.p-top-fv__char--box-yellow .p-top-fv__box {
  top: -0.43em;
  left: -0.29em;
  width: 1.58em;
  height: 1.77em;
  background-image: url("assets/images/top/fv-catch-box-yellow.png");
}

.p-top-fv__glyph {
  display: inline-block;
}

/* 写真とまわりのあしらい（位置は写真の幅に対する割合） */
.p-top-fv__visual {
  position: relative;
  grid-area: visual;
  container-type: inline-size;
  isolation: isolate; /* ミントの点線を写真の後ろに置くため */
  justify-self: start;
  width: 99.23cqw; /* SPは幅387px（390px時）。右は画面の外へ少しはみ出す */
  margin-top: var(--space-32);
}

.p-top-fv__photo img {
  width: 100%;
}

.p-top-fv__visual > :not(.p-top-fv__photo) {
  position: absolute;
}

.p-top-fv__line-mint {
  z-index: -1;
  top: 60.3cqw;
  left: -22.1cqw;
  width: 40cqw;
}

.p-top-fv__line-yellow {
  display: none;
}

.p-top-fv__shape-mint {
  top: 59.1cqw;
  left: 64.5cqw;
  width: 24.2cqw;
}

.p-top-fv__shape-rose-02 {
  top: 67.9cqw;
  left: 88.4cqw;
  width: 16.3cqw;
}

.p-top-fv__bird {
  top: 0.26cqw;
  left: 77.1cqw;
  width: 15.8cqw;
}

.p-top-fv__lead {
  grid-area: lead;
  max-width: 20.25rem; /* SPはデザインの改行位置に合わせる（324px） */
  margin-top: var(--space-24);
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-lead);
  color: var(--color-text-heading);
}

/* SPは2つ横並び（各169px・間12px）、右の丸矢印は付けない */
.p-top-fv__buttons {
  grid-area: buttons;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
  margin-top: var(--space-24);
}

.c-button.p-top-fv__button {
  min-width: 0;
  padding-inline: var(--space-8);
  white-space: nowrap;
}

.p-top-fv__button .c-button__arrow {
  display: none;
}

/* 電話のアイコンは画像の余白が多いので、大きめにして余白を詰める */
.p-top-fv__tel-icon {
  width: calc(var(--button-icon-size) * 1.5);
  margin-inline: calc(var(--button-icon-size) * -0.25);
}

/* 出てくる動き
   キャッチ：左の文字から順に「ぽんっ」（1文字0.6秒・次の文字まで0.06秒・最初は0.2秒待つ）
   色の四角は、のっている文字より少し先に出る
   おひさま：ふわっと出たあと、回りながら大きくなったり小さくなったり */
.is-js .p-top-fv.is-inview .p-top-fv__glyph {
  animation: fv-char-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.2s + var(--i) * 0.06s) both;
}

.is-js .p-top-fv.is-inview .p-top-fv__box {
  animation: fv-char-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.1s + var(--i) * 0.06s) both;
}

.is-js .p-top-fv__sun {
  opacity: 0;
}

.is-js .p-top-fv.is-inview .p-top-fv__sun {
  opacity: 1;
  transition: opacity 0.8s ease 0.2s;
  animation: sun-scale 2.6s ease-in-out infinite alternate;
}

.is-js .p-top-fv.is-inview .p-top-fv__sun img {
  animation: sun-rotate 24s linear infinite;
}

@keyframes fv-char-pop {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.4);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  /* 768px以上はPCの波（1440px幅で高さ44px。狭いときは中央を切り出す） */
  .p-top-fv {
    --fv-wave-height: 2.75rem;
  }

  .p-top-fv::before {
    background-image: url("assets/images/top/fv-wave.png");
    background-size: auto 100%;
  }

  .p-top-fv__catch {
    --catch-size: 3.25rem;

    margin-top: var(--space-40);
    padding-left: 0.12em;
  }

  .p-top-fv__catch-text {
    gap: 0.3em;
  }

  /* SPだけの文字の調整は使わない */
  .p-top-fv__char {
    top: 0;
    margin-left: calc(var(--space) * var(--catch-size));
  }

  .p-top-fv__label {
    width: 24.4375rem;
  }

  .p-top-fv__lead {
    max-width: none;
  }

  .p-top-fv__tag {
    min-height: 2.5rem;
    padding-inline: var(--space-32);
  }

  .p-top-fv__visual {
    justify-self: center;
    width: min(100%, 40rem);
    margin-inline: 0;
  }

  .p-top-fv__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-24);
  }

  .c-button.p-top-fv__button {
    min-width: var(--button-min-width);
    padding-inline: var(--space-32);
  }

  .p-top-fv__button .c-button__arrow {
    display: block;
  }
}

@media (min-width: 1100px) {
  /* 左の図形は、中身（1100px）の左端からの位置に置く */
  .p-top-fv__shape-yellow {
    top: 4.875rem;
    left: calc(50% - 49.6875rem);
    width: 11.875rem;
  }

  .p-top-fv__shape-rose-01 {
    top: 20.6875rem;
    left: calc(50% - 44.625rem);
    width: 6.5rem;
  }

  .p-top-fv__sun {
    top: 9rem;
    right: auto;
    left: calc(50% - 6.1875rem);
    width: 10rem;
  }

  .p-top-fv__inner {
    grid-template-columns: 56.64% minmax(0, 1fr);
    grid-template-rows: repeat(4, auto) 1fr;
    grid-template-areas:
      "label visual"
      "tag visual"
      "catch visual"
      "lead visual"
      "buttons visual";
    padding-top: 7.15625rem;
  }

  .p-top-fv__label {
    margin-left: -0.625rem;
  }

  .p-top-fv__tag {
    min-height: 2.6875rem; /* 43px */
    margin-top: var(--space-12);
    margin-bottom: -0.1875rem; /* 高さが増えたぶん、下のキャッチの位置は変えない */
    padding-inline: 1.875rem 1.75rem;
  }

  /* 写真は 1440px で幅764px。画面が狭いときは画面の幅に合わせて縮む */
  .p-top-fv__visual {
    justify-self: start;
    align-self: start;
    width: min(53.06cqw, 47.75rem);
    max-width: none;
    margin-top: -0.875rem;
    /* 写真の高さぶん（764×663の比率）下の余白を詰めて、FVの高さは左の文字側で決める。
       はみ出した写真やあしらいは、下の紙の背景に重なる */
    margin-bottom: calc(min(53.06cqw, 47.75rem) * -0.8678);
  }

  .p-top-fv__line-mint {
    top: 56.81cqw;
    left: -16.1cqw;
    width: 30.24cqw;
  }

  .p-top-fv__line-yellow {
    display: block;
    top: 80.89cqw;
    left: 42.02cqw;
    width: 30.37cqw;
  }

  .p-top-fv__shape-mint {
    top: 61.26cqw;
    left: 49.87cqw;
    width: 24.74cqw;
  }

  .p-top-fv__shape-rose-02 {
    top: 81.15cqw;
    left: 65.84cqw;
    width: 18.32cqw;
  }

  .p-top-fv__bird {
    top: -3.74cqw;
    left: 56.18cqw;
    width: 16.23cqw;
  }

  .p-top-fv__lead {
    margin-top: var(--space-40);
  }

  .p-top-fv__buttons {
    align-self: start;
    gap: var(--space-16);
    margin-top: 2.375rem; /* 38px */
  }

  .c-button.p-top-fv__button {
    min-width: 15rem;
    padding-inline: var(--space-16);
  }
}

/* 1440pxより広い画面では、波を横いっぱいに伸ばす */
@media (min-width: 1440px) {
  .p-top-fv::before {
    background-size: 100% 100%;
  }
}

/* ==========================================================
   トップページ：紙の質感の背景（写真とイラストのエリア〜OUR FEATURES）
   ・上が波の形の背景画像。画像より下は同じ色で塗る
   ・トップの地は白（FVは透明にして、紙の背景より手前に置く）
   ========================================================== */
.p-top {
  background-color: var(--color-surface-white);
}

.p-top-paper {
  container-type: inline-size;
  overflow-x: clip;
  margin-top: 2.9375rem; /* FVのボタンの下から写真の上端まで約80px */
  background:
    url("assets/images/top/intro-bg-sp.png") center top / 100% auto no-repeat,
    linear-gradient(transparent 50vw, var(--color-bg-paper) 0); /* 波より下（画像の途中）から塗る */
}

/* ==========================================================
   トップページ：写真とイラストのエリア
   ・SP〜1099pxは画面の幅（390px基準）に対する割合で置く
   ・1100px以上は画面の中央からの距離で置く（1440pxのデザイン基準）
   ・写真はFVの下に少し重なる
   ========================================================== */
.p-top-intro {
  position: relative;
  height: 92.05cqw; /* SPは下のOUR FEATURESがFVの1279px下から始まる（Figma） */
}

.p-top-intro__photo,
.p-top-intro__deco > * {
  position: absolute;
}

.p-top-intro__photo {
  top: -9.77cqw;
  left: 1.54cqw;
  width: 71.47cqw; /* SP 278.72px（Figma） */
}

.p-top-intro__shape-pink {
  top: 57.95cqw;
  left: -3.23cqw;
  width: 12.56cqw;
}

.p-top-intro__leaves {
  top: 42.31cqw;
  left: -0.23cqw;
  width: 14.87cqw;
}

.p-top-intro__crayons {
  top: -11.82cqw;
  left: 75.92cqw;
  width: 16.92cqw;
}

.p-top-intro__tray {
  top: 5.15cqw;
  left: 82.56cqw;
  width: 14.36cqw;
}

.p-top-intro__line-yellow {
  top: 7.9cqw;
  left: 72.03cqw;
  width: 29.74cqw;
}

.p-top-intro__book {
  top: 25.1cqw;
  left: 74.77cqw;
  width: 10cqw;
}

.p-top-intro__highfive {
  top: 58.36cqw;
  left: 35.33cqw;
  width: 27.18cqw;
}

.p-top-intro__table {
  top: 37.03cqw;
  left: 76.62cqw;
  width: 21.03cqw;
}

.p-top-intro__baby {
  top: 61.33cqw;
  left: 1.62cqw;
  width: 21.03cqw;
}

.p-top-intro__ball {
  top: 73.72cqw;
  left: 24.08cqw;
  width: 9.23cqw;
}

.p-top-intro__boy-reading {
  top: 62.72cqw;
  left: 68.79cqw;
  width: 24.1cqw;
}

@media (min-width: 1100px) {
  .p-top-paper {
    margin-top: 6.9375rem; /* FVのボタンの下から写真の上端まで約25px（Figmaの位置） */
    background-image:
      url("assets/images/top/intro-bg.png"),
      linear-gradient(transparent 50vw, var(--color-bg-paper) 0);
    background-size: max(100%, 90rem) auto, auto; /* 1440pxより狭いときは中央を切り出す */
  }

  .p-top-intro {
    height: 22.9375rem;
  }

  .p-top-intro__photo {
    top: -8.675rem;
    left: calc(50% - 39.82rem);
    width: 33.0625rem;
  }

  .p-top-intro__shape-pink {
    top: 7.53rem;
    left: calc(50% - 47.9375rem);
    width: 6.1875rem;
  }

  .p-top-intro__leaves {
    top: 11.9625rem;
    left: calc(50% - 41.925rem);
    width: 7.5rem;
  }

  .p-top-intro__crayons {
    top: -5.7625rem;
    left: calc(50% - 8.906rem);
    width: 8.4375rem;
  }

  .p-top-intro__tray {
    top: -1.556rem;
    left: calc(50% + 2.425rem);
    width: 7.1875rem;
  }

  /* PCではFVの黄色の点線があるので出さない */
  .p-top-intro__line-yellow {
    display: none;
  }

  .p-top-intro__book {
    top: 13.825rem;
    left: calc(50% + 7.769rem);
    width: 4.96875rem;
  }

  .p-top-intro__highfive {
    top: 0.225rem;
    left: calc(50% + 12.706rem);
    width: 13.5rem;
  }

  .p-top-intro__table {
    top: 3.869rem;
    left: calc(50% + 29.4625rem);
    width: 10.5rem;
  }

  .p-top-intro__baby {
    top: 7.025rem;
    left: calc(50% - 7.206rem);
    width: 10.375rem;
  }

  .p-top-intro__ball {
    top: 11.075rem;
    left: calc(50% + 1.375rem);
    width: 4.625rem;
  }

  .p-top-intro__boy-reading {
    top: 19.169rem;
    left: calc(50% + 30.269rem);
    width: 12rem;
  }
}

/* 小物のイラストの動き（ゆっくり、少しだけ揺らす） */
.p-top-intro__leaves {
  transform-origin: 50% 90%;
  animation: intro-sway 3.2s ease-in-out infinite alternate;
}

.p-top-intro__crayons {
  animation: intro-float 2.8s ease-in-out infinite alternate;
}

.p-top-intro__tray {
  animation: intro-float 3.4s ease-in-out -1.2s infinite alternate;
}

.p-top-intro__book {
  transform-origin: 50% 100%;
  animation: intro-sway 2.6s ease-in-out -0.8s infinite alternate;
}

.p-top-intro__shape-pink {
  animation: intro-wobble 6s ease-in-out infinite alternate;
}

.p-top-intro__ball {
  transform-origin: 50% 100%;
  animation: intro-bounce 1.6s ease-in-out infinite;
}

.p-top-intro__highfive {
  transform-origin: 50% 100%;
  animation: intro-wobble 4s ease-in-out -2s infinite alternate;
}

@keyframes intro-sway {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(6deg); }
}

@keyframes intro-float {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-8%) rotate(2deg); }
}

@keyframes intro-wobble {
  from { transform: rotate(-4deg) scale(0.97); }
  to   { transform: rotate(4deg) scale(1.03); }
}

@keyframes intro-bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  10%      { transform: translateY(0) scale(1.08, 0.92); }
  45%      { transform: translateY(-28%) scale(0.96, 1.04); }
  80%      { transform: translateY(0) scale(1, 1); }
}

/* ==========================================================
   トップページ：OUR FEATURES（3つの環境）
   ・SP〜1099px … 1列。写真は画面の幅に合わせて縮む
   ・1100px以上 … 3列。2つ目は下に、3つ目は少し下にずらす
   ========================================================== */
.p-top-features {
  padding-top: var(--space-64);
  padding-bottom: var(--space-48);
}

.p-top-features__inner {
  position: relative;
}

/* 左上の男の子（飾り） */
.p-top-features__boy {
  position: absolute;
  top: -3.5rem; /* セクションの上から8px */
  left: 0.25rem;
  width: 5.9625rem; /* SP 95.4px（Figma） */
}

/* 見出しの「3」：後ろに黄色の形を敷く */
.p-top-features__number {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin-inline: 0.2em 0.28em;
  font-family: var(--font-en);
  font-size: 2.5em;
  font-weight: var(--fw-bold);
  line-height: 0.9;
  color: var(--color-brand-deep);
  vertical-align: 0;
  rotate: 9.83deg;
  -webkit-text-stroke: 0.075em var(--color-surface-white);
  paint-order: stroke fill;
}

.p-top-features__number::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 1.17em;
  aspect-ratio: 201 / 194;
  background: url("assets/images/top/features-number-bg.png") center / contain no-repeat;
  transform: translate(-37.8%, -55%);
}

.p-top-features__list {
  display: grid;
  gap: var(--space-24);
  padding: 0;
  list-style: none;
  margin-top: var(--space-40);
}

.p-top-features__item {
  max-width: 19.9375rem; /* SP 319px（Figma） */
  margin-inline: auto;
}

/* 写真：手書きの文字とバッジを重ねる */
.p-top-features__visual {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 655 / 635; /* 点線の外側までの大きさ */
  max-width: 19.125rem; /* SP 306px */
}

/* 写真は点線の内側に、少し余白をあけて置く */
.p-top-features__photo {
  position: absolute;
  top: 2.36%;
  left: 2.14%;
  width: 95.34%;
}

.p-top-features__word {
  position: absolute;
  top: -7.9cqw;
  left: 0;
  width: 45.6cqw;
}

.p-top-features__item--02 .p-top-features__word,
.p-top-features__item--03 .p-top-features__word {
  left: 52.5cqw;
}

.p-top-features__badge {
  --badge-color: var(--color-brand-deep);
  --badge-text: var(--color-text-on-action);

  position: absolute;
  top: 73.53cqw; /* SP 225px */
  left: -1.31cqw; /* SP -4px */
  display: grid;
  place-content: center;
  width: 3.875rem; /* SP 62px（白いふち込み） */
  aspect-ratio: 1;
  font-family: var(--font-en);
  font-weight: var(--fw-bold);
  text-align: center;
  color: var(--badge-text);
  background-color: var(--badge-color);
  border: 4px solid var(--color-surface-white);
  border-radius: var(--radius-full);
}

.p-top-features__item--02 .p-top-features__badge {
  --badge-color: var(--color-action-mint-dark);
}

.p-top-features__item--03 .p-top-features__badge {
  --badge-color: var(--color-accent-yellow);
  --badge-text: var(--color-text-heading);
}

.p-top-features__badge-label {
  margin-block: -0.125rem;
  font-size: 0.5rem;
  line-height: 1.25; /* 10px */
  letter-spacing: var(--ls-goal-badge-label);
}

.p-top-features__badge-number {
  font-size: 1.3125rem; /* 21px */
  line-height: 1.625rem;
}

/* タグ：アイコンを左にはみ出させる */
.p-top-features__tag {
  position: relative;
  display: inline-block;
  margin-top: 1.875rem; /* 写真エリア（295px）の下から32px */
  margin-left: 0.875rem; /* はみ出したアイコンの分（Figma -14px） */
  padding: var(--space-8) var(--space-12) var(--space-8) var(--space-24);
  font-family: var(--font-heading);
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-button);
  color: var(--color-brand-deep);
  background-color: var(--color-brand-light);
  border-radius: var(--radius-full);
}

.p-top-features__item--02 .p-top-features__tag {
  color: var(--color-action-mint-dark);
  background-color: var(--color-brand-sub-light);
}

.p-top-features__item--03 .p-top-features__tag {
  color: var(--color-accent-yellow-dark);
  background-color: var(--color-accent-yellow-light);
}

.p-top-features__tag-icon {
  position: absolute;
  top: -0.25rem;
  left: -0.875rem;
  width: 2.125rem; /* SP 34px（Figma） */
}

.p-top-features__title {
  margin-top: 0.625rem; /* 10px */
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-sm);
  letter-spacing: 0; /* SPは1行に収める */
  color: var(--color-text-heading);
}

.p-top-features__text {
  margin-top: 0.625rem; /* 10px */
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-heading);
}

.p-top-features__more {
  margin-top: var(--space-40);
  text-align: center;
}

.p-top-features__more .c-button {
  min-width: 13.75rem; /* SP 220px */
}

/* 写真のまわりの点線：ふちに沿って流れ続ける（真ん中だけ逆向き） */
.p-top-features__frame {
  --frame-color: var(--color-brand-main);

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--frame-color);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 0.98 9.02; /* pathLength 980 を98個の点に分ける */
  animation: features-frame 1.2s linear infinite;
}

.p-top-features__item--02 .p-top-features__frame {
  --frame-color: var(--color-brand-sub);

  animation-direction: reverse;
}

.p-top-features__item--03 .p-top-features__frame {
  --frame-color: var(--color-accent-yellow);
}

@keyframes features-frame {
  to { stroke-dashoffset: -10; }
}

@media (min-width: 1100px) {
  .p-top-features {
    padding-top: var(--space-48);
    padding-bottom: var(--space-96);
  }

  .p-top-features__number {
    line-height: 0.3; /* 1行のときは、大きな数字で行の高さが広がらないようにする */
  }

  .p-top-features__boy {
    top: -1.4375rem;
    left: calc(50% - 42.375rem);
    width: 13.25rem;
  }

  .p-top-features__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-40);
    margin-top: var(--space-64);
  }

  .p-top-features__item {
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--space-12);
  }

  .p-top-features__item--02 {
    margin-top: var(--space-64);
  }

  .p-top-features__item--03 {
    margin-top: var(--space-16);
  }

  /* 点線の外側まで含めた大きさ。写真エリア（316px）より少し左上にはみ出す */
  .p-top-features__visual {
    width: 20.5rem;
    max-width: 104%;
    margin: -0.1875rem 0 0 -0.25rem;
  }

  .p-top-features__word {
    top: -6.8cqw;
    left: 1.15cqw;
    width: 42.7cqw;
  }

  .p-top-features__item--02 .p-top-features__word,
  .p-top-features__item--03 .p-top-features__word {
    left: 55cqw;
  }

  .p-top-features__badge {
    top: 68.6cqw;
    left: 0;
    width: 4.75rem;
    border-width: 4px;
  }

  .p-top-features__badge-label {
    margin-block: -0.125rem;
    font-size: var(--fs-goal-badge-label);
    line-height: var(--lh-goal-badge-label);
  }

  .p-top-features__badge-number {
    font-size: 1.625rem;
    line-height: 2rem;
  }

  .p-top-features__tag {
    margin-top: 1.6875rem; /* 写真エリアの下から32px */
    margin-left: 0;
    padding: var(--space-8) var(--space-16) var(--space-8) var(--space-32);
  }

  .p-top-features__tag-icon {
    top: 50%;
    left: -1.125rem;
    width: 2.75rem;
    translate: 0 -55%;
  }

  .p-top-features__title,
  .p-top-features__text {
    margin-top: 0.875rem; /* 14px */
  }

  .p-top-features__more {
    margin-top: var(--space-64);
  }

  .p-top-features__more .c-button {
    min-width: 15rem;
  }

  .p-top-features__title {
    letter-spacing: var(--ls-heading-sm);
  }

  .p-top-features__title,
  .p-top-features__text {
    max-width: 20rem;
  }
}

/* ==========================================================
   コンポーネント：ボタン（CTA Button）
   ・Primary / Secondary … 塗り。「園見学」「電話」だけに使う。イラストアイコン必須
   ・Outline / Outline Green / Outline Yellow … 白地＋点線。「〜を見る」などのリンク
   ・Inset … 白地で、点線をふちの少し内側に引く（Outline系と組み合わせて使う）
   ・マウスを乗せると Hover の見た目に切り替わる（0.2秒）
   ========================================================== */
.c-button {
  --button-color: var(--color-brand-deep);   /* 塗り・線・文字の色 */
  --button-shadow: var(--color-brand-main);  /* 右下にずらした色 */
  --button-text: var(--color-brand-deep);    /* 白地のときの文字色 */
  --button-hover-text: var(--color-text-on-action);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-width: var(--button-min-width);
  min-height: var(--button-height);
  padding: var(--space-8) var(--space-24);
  font-family: var(--font-heading);
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-button);
  color: var(--button-text);
  text-decoration: none;
  background-color: var(--color-surface-white);
  border: 2px dashed var(--button-color);
  border-radius: var(--radius-full);
  box-shadow: var(--button-shadow-offset) var(--button-shadow-offset) 0 var(--button-shadow);
  transition:
    color var(--duration),
    background-color var(--duration),
    border-color var(--duration),
    box-shadow var(--duration);
}

.c-button:focus-visible {
  outline: 2px solid var(--color-text-heading);
  outline-offset: 4px;
}

.c-button__icon {
  flex-shrink: 0;
  width: var(--button-icon-size);
  height: auto;
}

.c-button__arrow {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

/* 白地＋点線（サブ） */
.c-button--outline-green {
  --button-color: var(--color-action-mint-dark);
  --button-shadow: var(--color-brand-sub);
  --button-text: var(--color-action-mint-dark);
}

.c-button--outline-yellow {
  --button-color: var(--color-accent-yellow-line);
  --button-shadow: var(--color-accent-yellow);
  --button-text: var(--color-accent-yellow-dark);
  --button-hover-text: var(--color-accent-yellow-dark);
}

/* 白地＋内側に点線：ふちから少し内側に点線を引く */
.c-button--inset {
  border-style: solid;
  border-color: var(--color-surface-white);
}

.c-button--inset::before {
  content: "";
  position: absolute;
  inset: 0.1875rem;
  border: 2px dashed var(--button-color);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color var(--duration);
}

/* 塗り（メイン）：内側に白い点線 */
.c-button--primary,
.c-button--secondary {
  color: var(--color-text-on-action);
  background-color: var(--button-color);
  border-style: solid;
}

.c-button--primary::before,
.c-button--secondary::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px dashed var(--color-text-on-action);
  border-radius: inherit;
  pointer-events: none;
  transition: opacity var(--duration);
}

.c-button--secondary {
  --button-color: var(--color-action-mint-dark);
  --button-shadow: var(--color-brand-sub);
}

/* Hover：塗りは白地＋実線に、白地は塗りに切り替わる。どちらも右下の色は消える */
@media (hover: hover) {
  .c-button:hover {
    color: var(--button-hover-text);
    background-color: var(--button-color);
    border-style: solid;
    box-shadow: 0 0 0 var(--button-shadow);
  }

  .c-button--outline-yellow:hover {
    --button-color: var(--color-accent-yellow);
  }

  .c-button--primary:hover,
  .c-button--secondary:hover {
    color: var(--button-color);
    background-color: var(--color-surface-white);
  }

  .c-button--primary:hover::before,
  .c-button--secondary:hover::before {
    opacity: 0;
  }

  .c-button--inset:hover {
    border-color: var(--button-color);
  }

  .c-button--inset:hover::before {
    border-color: var(--color-surface-white);
  }
}

/* ==========================================================
   コンポーネント：キーワードのタグ（Keyword Tag）
   ========================================================== */
.c-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-12);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-brand-deep);
  background-color: var(--color-brand-light);
  border-radius: var(--radius-full);
}

/* ==========================================================
   コンポーネント：セクションの見出し（英字ラベル＋3つの点＋見出し＋リード）
   ========================================================== */
.c-section-heading {
  --dot-size: 0.5625rem; /* SP 9px */
  --dot-gap: 0.3125rem;

  text-align: center;
}

.c-section-heading__en {
  font-family: var(--font-en);
  font-size: var(--fs-en-label);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-en-label);
  color: var(--color-action-mint-dark);
}

/* 左寄せの見出し */
.c-section-heading--left {
  text-align: left;
}

.c-section-heading--left .c-section-heading__en::after {
  margin-left: 0;
}

/* ピンク・ミント・黄色の3つの点 */
.c-section-heading__en::after {
  content: "";
  display: block;
  width: calc(var(--dot-size) * 3 + var(--dot-gap) * 2);
  height: var(--dot-size);
  margin: 0.375rem auto 0; /* SP 6px / PC 8px */
  background:
    radial-gradient(circle closest-side, var(--color-brand-main) 96%, transparent) left / var(--dot-size) 100% no-repeat,
    radial-gradient(circle closest-side, var(--color-brand-sub) 96%, transparent) center / var(--dot-size) 100% no-repeat,
    radial-gradient(circle closest-side, var(--color-accent-yellow) 96%, transparent) right / var(--dot-size) 100% no-repeat;
}

.c-section-heading__title {
  margin-top: var(--space-12);
  font-family: var(--font-heading);
  font-size: min(var(--fs-h2), calc((100vw - var(--gutter) * 2) / 14.58)); /* 375pxでも1行14文字が収まる大きさ */
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--color-text-heading);
}

.c-section-heading__lead {
  margin-top: var(--space-12);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-heading);
}

/* 見出しの波：セクションが出てから0.25秒後に、左から1文字ずつ下から上がって出る */
.c-section-heading__char {
  display: inline-block;
}

.is-js .js-inview .c-section-heading__char {
  opacity: 0;
}

.is-js .js-inview.is-inview .c-section-heading__char {
  animation: heading-char-wave 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.25s + var(--i) * 0.05s) both;
}

@keyframes heading-char-wave {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .c-section-heading {
    --dot-size: 0.75rem;
    --dot-gap: 0.4375rem;
  }

  .c-section-heading__en::after {
    margin-top: var(--space-8);
  }

  .c-section-heading__title {
    margin-top: var(--space-40);
  }

  .c-section-heading__lead {
    margin-top: var(--space-16);
    font-size: var(--fs-body-lg);
  }
}

/* ==========================================================
   コンポーネント：ヘッダーのメニュー（nav-item）
   ・今いるページは文字の下に線が出る（aria-current="page"）
   ・英字と線の色は --pink / --yellow / --mint / --rose で切り替え
   ========================================================== */
.c-nav-item {
  --nav-color: var(--color-brand-main);      /* 英字ラベル・下線 */
  --nav-hover-color: var(--color-brand-main); /* マウスを乗せたときの日本語 */
}

.c-nav-item--yellow {
  --nav-color: var(--color-accent-yellow);
  --nav-hover-color: var(--color-accent-yellow-dark);
}

.c-nav-item--mint {
  --nav-color: var(--color-brand-sub);
  --nav-hover-color: var(--color-action-mint-dark);
}

.c-nav-item--rose {
  --nav-color: var(--color-brand-deep);
  --nav-hover-color: var(--color-brand-deep);
}

.c-nav-item__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-12);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-12);
}

.c-nav-item__link:focus-visible {
  outline: 2px solid var(--color-text-heading);
  outline-offset: 2px;
}

.c-nav-item__icon {
  width: var(--nav-icon-size);
  margin-bottom: var(--space-8);
}

.c-nav-item__ja {
  display: inline-flex;
  flex-direction: column;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-heading);
  color: var(--color-text-heading);
  white-space: nowrap;
  transition: color var(--duration) ease;
}

/* 下線（今いるページだけ色が付く）。線の上下を含めて日本語〜英字の間を8pxにそろえる */
.c-nav-item__ja::after {
  content: "";
  height: 3px;
  margin-top: 2.5px;
  background-color: transparent;
  border-radius: var(--radius-full);
}

/* 今いるページの日本語を太くするのはPCのナビだけ（ハンバーガーメニューの中は太くしない） */
.l-header__nav .c-nav-item__link[aria-current="page"] .c-nav-item__ja {
  font-weight: var(--fw-bold);
}

.c-nav-item__link[aria-current="page"] .c-nav-item__ja::after {
  background-color: var(--nav-color);
}

/* PCのナビだけ：マウスを乗せる（キーボードで選ぶ）と、イラストが跳ねて日本語の色が変わる
   今いるページは日本語の色は変えず、イラストだけ跳ねる */
@media (hover: hover) {
  .l-header__nav .c-nav-item__link:hover .c-nav-item__icon {
    animation: nav-icon-hop 0.6s cubic-bezier(0.3, 0.7, 0.4, 1);
  }

  .l-header__nav .c-nav-item__link:not([aria-current="page"]):hover .c-nav-item__ja {
    color: var(--nav-hover-color);
  }
}

.l-header__nav .c-nav-item__link:focus-visible .c-nav-item__icon {
  animation: nav-icon-hop 0.6s cubic-bezier(0.3, 0.7, 0.4, 1);
}

.l-header__nav .c-nav-item__link:not([aria-current="page"]):focus-visible .c-nav-item__ja {
  color: var(--nav-hover-color);
}

/* 上へ8px＋左へ8°・1.08倍 → 戻りながら右へ6°・少しつぶれる → 左へ3° → 元の位置 */
@keyframes nav-icon-hop {
  0% { transform: translateY(0) rotate(0) scale(1); }
  30% { transform: translateY(-8px) rotate(-8deg) scale(1.08); }
  60% { transform: translateY(0) rotate(6deg) scale(1.06, 0.94); }
  80% { transform: translateY(0) rotate(-3deg) scale(1); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

.c-nav-item__en {
  margin-top: 2.5px;
  font-family: var(--font-en);
  font-size: var(--fs-en-label);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-en-label);
  color: var(--nav-color);
  white-space: nowrap;
}

/* ==========================================================
   トップ：保育と教育（OUR EDUCATION）＋写真スライダー
   ・背景の丘・草・見出しの光は動かさず、中身だけ reveal で出す
   ・写真のうしろの多角形はゆっくり回り続け、写真まわりの白い点線は流れ続ける
   ・スライダーは同じ8枚を2回並べて、半分の長さだけ左へ流してつなぐ
   ========================================================== */
.p-top-education {
  position: relative;
  z-index: 0;
  overflow-x: clip;
  padding-top: var(--space-48);
  padding-bottom: 1.25rem; /* 20px（Figma） */
  background-color: var(--color-surface-white);
}

/* 奥の丘と草（上の草は前のセクションに少しかかる） */
.p-top-education::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -3.0625rem;
  bottom: 5.875rem; /* 丘のすそがスライダーの写真の途中にくる位置 */
  left: 0;
  width: 100%;
  background: url("assets/images/top/education-bg-sp.png") center top / 100% 100% no-repeat;
}

/* 見出しまわりの白い光 */
.p-top-education::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 24.5rem;
  left: 50%;
  width: 40rem;
  height: 26rem;
  translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgb(255 255 255 / 0.8) 0%, rgb(255 255 255 / 0.76) 55%, rgb(255 255 255 / 0.44) 78%, rgb(255 255 255 / 0) 100%);
}

.p-top-education__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.p-top-education__heading {
  order: 1;
}

.p-top-education__visual {
  order: 2;
}

.p-top-education__lead {
  order: 3;
}

.p-top-education__buttons {
  order: 4;
}

/* 写真と多角形を重ねる箱（中の位置はFigmaの配置を%にしたもの） */
.p-top-education__visual {
  position: relative;
  width: min(115.7%, 46.17rem);
  aspect-ratio: 738.75 / 619.25;
  margin-top: 4.125rem;
  margin-bottom: var(--space-24); /* 回ったミントが本文にかからない余白 */
  margin-left: -3%;
}

@media (min-width: 768px) {
  .p-top-education__visual {
    margin-bottom: 2.75rem;
  }
}

.p-top-education__shape,
.p-top-education__photo {
  position: absolute;
}

.p-top-education__shape--pink {
  top: 0;
  left: 0;
  width: 79.26%;
  animation: education-spin 60s linear infinite;
}

.p-top-education__shape--mint {
  top: 69.24%;
  left: 73.6%;
  width: 26.4%;
  animation: education-spin 40s linear infinite reverse;
}

.p-top-education__photo--large {
  top: 2.36%;
  left: 6.8%;
  width: 73.57%;
}

.p-top-education__photo--small {
  top: 50.11%;
  left: 56.86%;
  width: 40.74%;
}

.p-top-education__photo img {
  width: 100%;
}

/* 写真のふちから約10pxあけた白い点線（SVGの座標は画像の2倍サイズ） */
.p-top-education__frame {
  position: absolute;
  top: -3.17%;
  left: -2.76%;
  width: 105.52%;
  max-width: none;
  height: 106.35%;
  overflow: visible;
  fill: none;
  stroke: var(--color-surface-white);
  stroke-width: 4.7;
  stroke-dasharray: 4.6 5.4; /* pathLength を10ずつに分けた点線 */
  animation: education-frame 1.2s linear infinite;
}

.p-top-education__photo--small .p-top-education__frame {
  top: -5.1%;
  left: -4.98%;
  width: 109.97%;
  height: 110.2%;
  animation-direction: reverse;
}

@keyframes education-spin {
  to { rotate: 360deg; }
}

@keyframes education-frame {
  to { stroke-dashoffset: -10; }
}

.p-top-education__lead {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-heading);
}

.p-top-education__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-24);
}

.p-top-education__buttons .c-button {
  flex: 1;
  min-width: 0;
}

/* 写真スライダー：止まらずに一定の速さで左へ流れる（SP 84秒・PC 150秒で1周） */
.p-top-education__slider {
  --slide-size: 9.4375rem;   /* 写真1枚の枠（SPはPCの約0.58倍） */
  --slide-gap: calc(var(--slide-size) * 0.2);

  margin-top: 2.25rem; /* ボタンの下 36px（Figma） */
  overflow: hidden;
}

.p-top-education__slider-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  padding: 0 0 calc(var(--slide-size) * 0.168);
  margin: 0 0 0 calc(var(--slide-size) * -0.052); /* 1枚目は左に少し切れて始まる（Figma） */
  list-style: none;
  animation: education-slide 84s linear infinite;
}

.p-top-education__slide {
  flex: none;
  width: var(--slide-size);
  aspect-ratio: 1;
  margin-top: calc(var(--slide-size) * 0.077);
  margin-right: var(--slide-gap);
}

.p-top-education__slide:nth-child(4n + 2) {
  margin-top: calc(var(--slide-size) * 0.196);
}

.p-top-education__slide:nth-child(4n + 3) {
  margin-top: calc(var(--slide-size) * 0.115);
}

.p-top-education__slide:nth-child(4n) {
  margin-top: calc(var(--slide-size) * 0.217);
}

/* 画像は傾きと角丸が入った書き出し（3度は542px・2度は535px／元の枠520px） */
.p-top-education__slide img {
  width: 104.23%;
  max-width: none;
  margin: -2.115%;
}

.p-top-education__slide:nth-child(4n + 2) img,
.p-top-education__slide:nth-child(4n + 3) img {
  width: 102.88%;
  margin: -1.44%;
}

@keyframes education-slide {
  to { translate: -50% 0; }
}

@media (min-width: 1100px) {
  .p-top-education {
    padding-top: var(--space-80);
  }

  .p-top-education::before {
    top: -6.4375rem; /* 丘の上の草が前のセクションにかかる位置（Figma） */
    bottom: auto;
    height: 58.625rem;
    background-image: url("assets/images/top/education-bg.png");
    background-size: max(100%, 90rem) 100%;
  }

  .p-top-education::after {
    top: 0.4375rem;
    left: calc(50% - 13rem); /* 1440pxのとき左から512px */
    width: 62.5rem;
    height: 41.25rem;
    translate: none;
  }

  .p-top-education__inner {
    grid-template-columns: 30.375rem 32.25rem;
    grid-template-rows: 1fr auto auto auto 1fr;
    justify-content: space-between;
  }

  .p-top-education__visual {
    grid-row: 1 / -1;
    grid-column: 1;
    width: 46.17rem;
    margin: -7.25rem 0 0.61rem -13.547rem;
  }

  .p-top-education__heading {
    grid-row: 2;
    grid-column: 2;
  }

  .p-top-education__heading .c-section-heading__title {
    margin-top: 1.125rem; /* 点〜見出し 18px（Figma） */
  }

  .p-top-education__lead {
    grid-row: 3;
    grid-column: 2;
    margin-top: 1.125rem; /* 見出し〜リード 18px（Figma） */
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body-lg);
  }

  .p-top-education__buttons {
    grid-row: 4;
    grid-column: 2;
    gap: var(--space-16);
    margin-top: var(--space-40);
  }

  .p-top-education__buttons .c-button {
    flex: none;
    min-width: 15rem;
  }

  .p-top-education__slider {
    --slide-size: 16.25rem;

    margin-top: var(--space-48);
  }

  .p-top-education__slider-track {
    animation-duration: 150s;
  }
}

/* ==========================================================
   トップ：1日の流れ（DAILY LIFE）
   ・写真の丸を「すごろく」のように上下（SPは左右）交互に並べ、点線の道でつなぐ
   ・道は各ステップの写真の中心から次の写真の中心へ引く（写真のうしろを通る）
   ・時計・写真・道は動かさず、セクションごと reveal で出す
   ========================================================== */
.p-top-daily {
  overflow-x: clip;
  padding-block: var(--space-48);
  background-color: var(--color-surface-white);
}

.p-top-daily__board {
  position: relative;
  margin-top: var(--space-40);
}


.p-top-daily__list {
  --step-width: 10.625rem;  /* 170px */
  --step-shift: 9.375rem;   /* 次のステップまでの上下のずれ 150px */
  --road-dx: calc(100cqw - var(--step-width)); /* 左右の写真の中心どうしの距離 */
  --road-angle: atan2(var(--step-shift), var(--road-dx));
  --road-length: hypot(var(--step-shift), var(--road-dx));
  --road-start-length: 7.653rem; /* はじまり：画面の左はしから（Figma） */
  --road-start-angle: 210.96deg;
  --road-end-length: 7.957rem;   /* おわり：画面の右はしまで（Figma） */
  --road-end-angle: 34.44deg;

  container-type: inline-size;
  isolation: isolate;
  display: grid;
  grid-template-columns: var(--step-width) 1fr var(--step-width);
  grid-template-rows: repeat(6, var(--step-shift)) auto; /* 最後のステップの下半分は auto の行に入る */
  min-height: 63.75rem; /* 1020px（Figma） */
  padding: 0;
  margin: 0;
  list-style: none;
}

.p-top-daily__step {
  --ring-color: var(--color-brand-main);
  --time-color: var(--color-brand-deep);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  grid-column: 1;
  text-align: center;
}

.p-top-daily__step:nth-child(3n + 2) {
  --ring-color: var(--color-brand-sub);
  --time-color: var(--color-action-mint-dark);
}

.p-top-daily__step:nth-child(3n) {
  --ring-color: var(--color-accent-yellow);
  --time-color: var(--color-accent-yellow-dark);
}

.p-top-daily__step:nth-child(even) {
  grid-column: 3;
}

.p-top-daily__step:nth-child(1) { grid-row: 1 / span 2; }
.p-top-daily__step:nth-child(2) { grid-row: 2 / span 2; }
.p-top-daily__step:nth-child(3) { grid-row: 3 / span 2; }
.p-top-daily__step:nth-child(4) { grid-row: 4 / span 2; }
.p-top-daily__step:nth-child(5) { grid-row: 5 / span 2; }
.p-top-daily__step:nth-child(6) { grid-row: 6 / span 2; }

/* 写真（白いふち）＋色の点線の輪＋時計 */
.p-top-daily__visual {
  position: relative;
  width: 10.375rem;
  aspect-ratio: 1;
  padding: var(--space-8);
}

.p-top-daily__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2.5px dashed var(--ring-color);
  border-radius: 50%;
}

.p-top-daily__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid var(--color-surface-white);
  border-radius: 50%;
}

.p-top-daily__clock {
  position: absolute;
  top: -0.25rem;
  left: -0.25rem;
  width: 3.375rem;
  color: var(--color-text-heading);
}

.c-clock__face {
  fill: var(--color-surface-white);
}

/* 道（点線）：写真の中心から次の写真の中心へ */
.p-top-daily__visual::after,
.p-top-daily__step:first-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5.1875rem; /* 写真の中心 */
  left: 50%;
  width: var(--road-length);
  height: 3px;
  margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, var(--color-brand-sub) 0 6px, transparent 0 12px);
  transform-origin: 0 50%;
  rotate: var(--road-angle);
}

.p-top-daily__visual::after {
  top: 50%;
}

/* SP：左の写真からは右下へ、右の写真からは左下へ */
.p-top-daily__step:nth-child(even) .p-top-daily__visual::after {
  rotate: calc(180deg - var(--road-angle));
}

/* はじまり（左上の画面の外から）と、おわり（右下の画面の外へ） */
.p-top-daily__step:first-child::before {
  width: var(--road-start-length);
  rotate: var(--road-start-angle);
}

.p-top-daily__step:nth-child(n):last-child .p-top-daily__visual::after {
  width: var(--road-end-length);
  rotate: var(--road-end-angle);
}

.p-top-daily__time {
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  line-height: 1.2667; /* SP 15px / 19px・PC 18px / 22px */
  color: var(--time-color);
}

.p-top-daily__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-heading-sm);
  color: var(--color-text-heading);
}

.p-top-daily__text {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-body);
}

/* 飾りの太陽と鳥 */
.p-top-daily__sun,
.p-top-daily__bird {
  position: absolute;
  z-index: 1;
}

.p-top-daily__sun {
  top: -2.129rem;
  left: 16.375rem; /* 262px（Figma） */
  width: 3.625rem;
  rotate: -10deg;
}

.p-top-daily__bird {
  top: 36.875rem;
  left: 9.375rem;
  width: 3rem;
}

.p-top-daily__more {
  margin-top: var(--space-32);
  text-align: center;
}

/* タブレット：SPの並びのまま、見出しの改行と道の幅をSPと同じにして中央に置く */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .p-top-daily__heading .u-sp-only {
    display: inline !important;
  }

  .p-top-daily__board {
    max-width: 21.875rem; /* 350px */
    margin-inline: auto;
  }
}

@media (min-width: 1100px) {
  .p-top-daily {
    padding-block: var(--space-80);
  }

  .p-top-daily__heading .c-section-heading__title,
  .p-top-daily__heading .c-section-heading__lead {
    margin-top: 1.125rem; /* 18px（Figma） */
  }

  .p-top-daily__time {
    font-size: 1.125rem;
    line-height: 1.2222;
  }

  .p-top-daily__heading .c-section-heading__lead {
    line-height: var(--lh-body);
  }

  .p-top-daily__board {
    max-width: 68.75rem;
    margin: var(--space-64) auto 0;
  }

  /* 6つを横に並べ、2・4・6番目を150px下げる */
  .p-top-daily__list {
    --road-dx: 11.625rem; /* 186px */
    --road-start-length: 7.13rem; /* 写真の中心から左へ100px・下へ55px（Figma） */
    --road-start-angle: 151.19deg;
    --road-end-length: 7.13rem;
    --road-end-angle: -28.81deg;

    grid-template-columns: repeat(6, var(--step-width));
    grid-template-rows: var(--step-shift) auto;
    min-height: 27.625rem; /* 442px（Figma） */
    column-gap: var(--space-16);
    justify-content: space-between;
  }

  .p-top-daily__step:nth-child(n) {
    grid-column: auto;
    grid-row: 1 / span 2;
  }

  .p-top-daily__step:nth-child(even) {
    grid-row: 2;
  }

  /* PC：上の写真からは右下へ、下の写真からは右上へ */
  .p-top-daily__step:nth-child(even) .p-top-daily__visual::after {
    rotate: calc(var(--road-angle) * -1);
  }

  .p-top-daily__sun {
    top: -5.3125rem;
    left: 5.8125rem;
    width: 6rem;
  }

  .p-top-daily__bird {
    top: 20.25rem;
    left: 31.875rem;
    width: 5rem;
  }

  .p-top-daily__more {
    margin-top: var(--space-48);
  }

  .p-top-daily__more .c-button {
    min-width: 15rem;
  }
}

/* ==========================================================
   トップ：食育（LUNCH & SNACKS）
   ・SPは 見出し → 写真 → 本文 → カード → 注意書き → ボタン の順に縦に並べる
   ・PCは左にテキスト列、右に写真（写真の列は上下中央）
   ・写真のうしろの多角形はゆっくり回り続け、写真まわりの白い点線は流れ続ける（保育と教育と同じ）
   ・写真カードとマスキングテープは動かさない
   ========================================================== */
.p-top-lunch {
  overflow-x: clip;
  padding-block: var(--space-48);
  background-color: var(--color-surface-white);
}

.p-top-lunch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

.p-top-lunch__heading {
  width: 100%;
}

/* 写真と多角形を重ねる箱（PC 520×600 の配置を%にしたもの。SPは0.6倍の 312×360）
   SPは Figma の 350×424 の枠の中で、左8px・上47px の位置に置く */
.p-top-lunch__visual {
  position: relative;
  width: 19.5rem;
  aspect-ratio: 520 / 600;
  margin: calc(var(--space-24) + 2.9375rem) 0 1.75rem 0.5rem; /* 下は回ったピンクが本文にかからない余白 */
}

.p-top-lunch__shape,
.p-top-lunch__photo {
  position: absolute;
}

.p-top-lunch__shape {
  max-width: none;
}

.p-top-lunch__photo img {
  width: 100%;
}

/* ピンクとミントは時計回り、黄色は反時計回り */
.p-top-lunch__shape--pink {
  top: -9.86%;
  left: 0.71%;
  width: 139.42%;
  scale: -1 1; /* デザインの形に合わせて左右反転して使う */
  rotate: -45deg;
  animation: lunch-spin-pink 60s linear infinite;
}

.p-top-lunch__shape--yellow {
  top: 57.17%;
  left: -9.81%;
  width: 52.21%;
  animation: education-spin 40s linear infinite reverse;
}

.p-top-lunch__shape--mint {
  top: 71.65%;
  left: 57.63%;
  width: 37.4%;
  animation: education-spin 40s linear infinite;
}

.p-top-lunch__photo--large {
  top: -3.6%;
  left: 20.1%;
  width: 125.38%;
}

.p-top-lunch__photo--medium {
  top: 52.7%;
  left: -0.31%;
  width: 52.02%;
}

.p-top-lunch__photo--small {
  top: 70.58%;
  left: 64.65%;
  width: 34.71%;
}

@keyframes lunch-spin-pink {
  from { rotate: -45deg; }
  to { rotate: 315deg; }
}

/* 写真のふちから少しあけた白い点線（SVGの座標は画像の2倍サイズ。お盆の写真だけ逆向きに流れる） */
.p-top-lunch__frame {
  position: absolute;
  top: -2.76%;
  left: -2.3%;
  width: 104.6%;
  max-width: none;
  height: 105.52%;
  overflow: visible;
  fill: none;
  stroke: var(--color-surface-white);
  stroke-width: 6;
  stroke-dasharray: 4.6 5.4;
  animation: education-frame 1.2s linear infinite;
}

.p-top-lunch__photo--medium .p-top-lunch__frame {
  top: -5.67%;
  left: -5.55%;
  width: 111.09%;
  height: 111.34%;
  stroke-width: 4;
  animation-direction: reverse;
}

.p-top-lunch__photo--small .p-top-lunch__frame {
  top: -8.5%;
  left: -8.31%;
  width: 116.62%;
  height: 117%;
  stroke-width: 4;
}

.p-top-lunch__lead {
  margin-top: var(--space-24);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-heading);
}

/* 写真カード：2列×2行。カードごとに少し傾ける（傾いた分、列と行の間を少し広げる） */
.p-top-lunch__cards {
  display: grid;
  grid-template-columns: repeat(2, 10.5625rem); /* 169px */
  justify-content: center;
  gap: 1.375rem 1.125rem;
  width: 100%;
  margin: var(--space-24) 0 0;
  padding: 0.1875rem 0 0;
}

.p-top-lunch__card {
  --card-tilt: 2deg;
  --tape-color: var(--color-brand-light);
  --label-color: var(--color-brand-deep);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: var(--space-8) var(--space-8) var(--space-16);
  background-color: var(--color-surface-white);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-photo-card);
  rotate: var(--card-tilt);
}

.p-top-lunch__card:nth-child(2) {
  --card-tilt: -1.5deg;
}

.p-top-lunch__card:nth-child(3) {
  --card-tilt: -1deg;
}

.p-top-lunch__card:nth-child(4) {
  --card-tilt: 1.5deg;
}

.p-top-lunch__card--mint {
  --tape-color: var(--color-brand-sub-light);
  --label-color: var(--color-action-mint-dark);
}

.p-top-lunch__card--yellow {
  --tape-color: var(--color-accent-yellow-light);
  --label-color: var(--color-accent-yellow-dark);
}

/* マスキングテープ（カードの上のまん中に、少し傾けて貼る） */
.p-top-lunch__card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -0.5rem;
  left: 50%;
  width: 4.5rem;
  height: 1.375rem;
  translate: -50% 0;
  rotate: 3deg;
  background-color: var(--tape-color);
  opacity: 0.9;
}

.p-top-lunch__card-photo {
  width: 100%;
  aspect-ratio: 153 / 140;
  object-fit: cover;
  border-radius: 0.625rem;
}

.p-top-lunch__card-label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 2.25rem;
  padding-left: var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-button);
  color: var(--label-color);
}

.p-top-lunch__card-label span {
  white-space: nowrap; /* 「手づくりおやつ」を1行に（2行のものは<br>で分ける） */
}

.p-top-lunch__card-icon {
  flex-shrink: 0;
  width: 2.25rem;
}

.p-top-lunch__note {
  margin-top: var(--space-24);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-body);
}

.p-top-lunch__more {
  justify-self: center;
  margin-top: var(--space-24);
}

.p-top-lunch__more .c-button {
  min-width: 15.625rem; /* 250px */
}

/* タブレット：SPの並びのまま、写真とカードをPCの大きさにする */
@media (min-width: 768px) {
  /* 多角形が回ってもはみ出した分が見出し・本文にかからないよう、上下をあける */
  .p-top-lunch__visual {
    justify-self: center;
    width: 32.5rem;
    margin: 7.125rem 0 5.75rem;
  }

  .p-top-lunch__cards {
    grid-template-columns: repeat(2, 14.75rem); /* 236px */
    gap: 1.9375rem 1.3125rem;
  }

  .p-top-lunch__card-photo {
    aspect-ratio: 220 / 140;
  }
}

@media (min-width: 1100px) {
  .p-top-lunch {
    padding-block: var(--space-80);
  }

  /* 左：テキスト列 516px ／ 右：写真 520px（間 64px。画面が狭いときは間を24pxまで詰める） */
  .p-top-lunch__inner {
    grid-template-columns: minmax(0, 32.25rem) 32.5rem;
    grid-template-rows: auto auto auto auto auto;
    column-gap: clamp(var(--space-24), calc(100vw - 67.25rem), var(--space-64));
    align-items: start;
  }

  .p-top-lunch__heading,
  .p-top-lunch__lead,
  .p-top-lunch__cards,
  .p-top-lunch__note,
  .p-top-lunch__more {
    grid-column: 1;
  }

  .p-top-lunch__heading .c-section-heading__title {
    margin-top: 1.125rem; /* 点〜見出し 18px（Figma） */
  }

  .p-top-lunch__visual {
    grid-row: 1 / -1;
    grid-column: 2;
    align-self: center;
    width: 32.5rem;
    margin: 0;
  }

  .p-top-lunch__lead {
    margin-top: 1.125rem; /* 見出し〜リード 18px（Figma） */
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body-lg);
  }

  .p-top-lunch__cards {
    grid-template-columns: repeat(2, minmax(0, 14.75rem)); /* 236px */
    justify-content: start;
    gap: 1.9375rem 1.3125rem;
    margin-top: var(--space-40);
    padding: 0.25rem 0 0.25rem 0.1875rem;
  }

  .p-top-lunch__note {
    margin-top: var(--space-40);
  }

  .p-top-lunch__more {
    justify-self: start;
  }

  .p-top-lunch__more .c-button {
    min-width: 0;
    padding-inline: var(--space-16);
  }
}

/* ==========================================================
   トップ：保護者向け（FOR PARENTS）
   ・空・芝生・道・園舎など動かないものは背景画像。動くものだけ重ねる
   ・小鳥が左下から飛んできて、車・自転車・歩く親子が園に向かって進み、看板が地面からぴょこっと立つ
   ・おひさま・雲・ちょうちょは、ずっとゆっくり動く
   ・看板は全体が公式サイトへのリンク。マウスを乗せると8px浮いて下に影がつく
   ========================================================== */
.p-top-parents {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: var(--space-48) 0 var(--space-80);
  background-color: var(--color-surface-white);
}

.p-top-parents {
  min-height: calc(100vw * 1317 / 390); /* 背景の絵（390×1317）が全部入る高さ */
}

/* 背景の絵の箱。中の動くものは、この箱に対する%で置く（SP 390×1317 / PC 1440×1095 の配置） */
.p-top-parents__scene {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 390 / 1317;
  background: url("assets/images/top/parents-bg-sp.png") center top / 100% auto no-repeat;
  pointer-events: none;
}

.p-top-parents__deco {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--width);
}

.p-top-parents__deco img {
  width: 100%;
}

.p-top-parents__sun { --top: 1.67%; --left: 81.54%; --width: 14.87%; }
.p-top-parents__clouds { --top: 3.95%; --left: 84.62%; --width: 16.15%; }
.p-top-parents__bird { --top: 11.54%; --left: 80%; --width: 12.82%; }
.p-top-parents__flowers { --top: 34.17%; --left: 2.56%; --width: 20.26%; } /* 花は動かさない */
.p-top-parents__walk { --top: 31.13%; --left: 42.31%; --width: 16.67%; }
.p-top-parents__bicycle { --top: 29%; --left: 2.05%; --width: 13.59%; }
.p-top-parents__car { --top: 26.2%; --left: 17.95%; --width: 21.28%; }
.p-top-parents__butterfly--01 { --top: 33.53%; --left: 28.21%; --width: 5.13%; rotate: -31.24deg; }
.p-top-parents__butterfly--02 { --top: 28.63%; --left: 88.46%; --width: 4.36%; rotate: -10deg; }

/* 動きの幅（SP。PCは下で上書き） */
.p-top-parents {
  --bird-from-x: -330px;
  --bird-from-y: 40px;
  --bird-float: 6px;
  --cloud-from: -10px;
  --cloud-to: 8px;
  --butterfly-x: 14px;
  --butterfly-y: -10px;
}

/* 小鳥：左下の画面外から右上へ弧を描いて飛んでくる（3.2秒）→ そのあと、ふわふわ羽ばたく（1.6秒・往復） */
.is-js .p-top-parents.is-inview .p-top-parents__bird {
  animation:
    parents-bird-x 3.2s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s both,
    parents-bird-y 3.2s cubic-bezier(0.1, 0.9, 0.3, 1) 0.2s both;
}

.is-js .p-top-parents.is-inview .p-top-parents__bird img {
  animation: parents-bird-float 1.6s ease-in-out 3.4s infinite alternate;
}

@keyframes parents-bird-x {
  from { translate: var(--bird-from-x) 0; }
  to { translate: 0 0; }
}

@keyframes parents-bird-y {
  from { transform: translateY(var(--bird-from-y)); }
  to { transform: none; }
}

@keyframes parents-bird-float {
  from { transform: translate(0, 0) rotate(-4deg); }
  to { transform: translate(var(--bird-float), calc(var(--bird-float) * -1)) rotate(4deg); }
}

/* おひさま：ゆっくり回りながら、大きくなったり小さくなったり（FVと同じ） */
.is-js .p-top-parents.is-inview .p-top-parents__sun {
  animation: sun-scale 2.6s ease-in-out infinite alternate;
}

.is-js .p-top-parents.is-inview .p-top-parents__sun img {
  animation: sun-rotate 24s linear infinite;
}

/* 雲：左右にゆっくり行ったり来たり（片道10秒） */
.p-top-parents__clouds {
  animation: parents-cloud 10s ease-in-out infinite alternate;
}

@keyframes parents-cloud {
  from { transform: translateX(var(--cloud-from)); }
  to { transform: translateX(var(--cloud-to)); }
}

/* ちょうちょ：ひらひらと少し上下しながら右へ行って戻る（片道3.2秒。2匹目は0.8倍の速さ） */
.p-top-parents__butterfly img {
  animation: parents-butterfly 3.2s ease-in-out infinite alternate;
}

.p-top-parents__butterfly--02 img {
  animation-duration: 4s;
}

@keyframes parents-butterfly {
  0% { transform: translate(0, 0) rotate(-10deg); }
  50% { transform: translate(calc(var(--butterfly-x) * 0.5), var(--butterfly-y)) rotate(10deg); }
  100% { transform: translate(var(--butterfly-x), 0) rotate(-10deg); }
}

/* 車・自転車：左の画面外から道にそって走り、園の入口の手前で小さくなりながら消える（くり返し。車1周15秒・自転車20秒）
   ・ページを開いたときにデザインの位置にいるよう、マイナスの遅れで途中から始める */
.p-top-parents__car,
.p-top-parents__bicycle {
  transform-origin: 50% 77%; /* タイヤの下を道に合わせたまま小さくする */
}

.p-top-parents__bicycle {
  transform-origin: 50% 95%;
}

.is-js .p-top-parents.is-inview .p-top-parents__car {
  animation: parents-car-sp 15s linear -9.75s infinite;
}

.is-js .p-top-parents.is-inview .p-top-parents__car img {
  animation: parents-bounce 0.45s ease-in-out infinite alternate;
}

.is-js .p-top-parents.is-inview .p-top-parents__bicycle {
  animation: parents-bicycle-sp 20s linear -6.52s infinite;
}

.is-js .p-top-parents.is-inview .p-top-parents__bicycle img {
  animation: parents-bounce 0.6s ease-in-out infinite alternate;
}

@keyframes parents-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-2px); }
}

/* 歩く親子：芝生の上を右へゆっくり歩き、右はしで消えて左から出てくる（1周50秒。車＞自転車＞歩く親子の順に速い） */
.is-js .p-top-parents.is-inview .p-top-parents__walk {
  animation: parents-walk 50s linear -25.3s infinite;
}

.is-js .p-top-parents.is-inview .p-top-parents__walk img {
  animation: footer-family-walk 0.42s ease-in-out infinite alternate;
}

@keyframes parents-walk {
  from { left: calc(var(--width) * -1); }
  to { left: 100%; }
}

@keyframes parents-car-pc {
  0.0% { left: -14.41%; top: 32.58%; scale: 1; opacity: 1; }
  32.6% { left: 7.81%; top: 33.22%; scale: 1; opacity: 1; }
  53.0% { left: 21.70%; top: 33.37%; scale: 1; opacity: 1; }
  73.4% { left: 35.59%; top: 32.94%; scale: 1; opacity: 1; }
  83.6% { left: 42.53%; top: 32.23%; scale: 0.92; opacity: 1; }
  91.8% { left: 48.09%; top: 31.48%; scale: 0.82; opacity: 0.6; }
  100.0% { left: 53.65%; top: 30.45%; scale: 0.7; opacity: 0; }
}
@keyframes parents-bicycle-pc {
  0.0% { left: -9.79%; top: 33.50%; scale: 1; opacity: 1; }
  30.4% { left: 9.65%; top: 34.08%; scale: 1; opacity: 1; }
  52.1% { left: 23.54%; top: 34.23%; scale: 1; opacity: 1; }
  69.5% { left: 34.65%; top: 34.94%; scale: 1; opacity: 1; }
  82.5% { left: 42.99%; top: 34.88%; scale: 0.9; opacity: 1; }
  91.2% { left: 48.54%; top: 34.44%; scale: 0.8; opacity: 0.6; }
  100.0% { left: 54.10%; top: 33.49%; scale: 0.7; opacity: 0; }
}
@keyframes parents-car-sp {
  0.0% { left: -25.51%; top: 27.04%; scale: 1; opacity: 1; }
  45.9% { left: 5.26%; top: 26.55%; scale: 1; opacity: 1; }
  69.0% { left: 20.64%; top: 26.07%; scale: 1; opacity: 1; }
  80.6% { left: 28.33%; top: 25.76%; scale: 0.92; opacity: 1; }
  90.3% { left: 34.74%; top: 25.41%; scale: 0.82; opacity: 0.6; }
  100.0% { left: 41.15%; top: 25.06%; scale: 0.72; opacity: 0; }
}
@keyframes parents-bicycle-sp {
  0.0% { left: -17.28%; top: 29.30%; scale: 1; opacity: 1; }
  43.3% { left: 8.36%; top: 28.88%; scale: 1; opacity: 1; }
  65.0% { left: 21.18%; top: 28.50%; scale: 1; opacity: 1; }
  78.1% { left: 28.87%; top: 28.19%; scale: 0.92; opacity: 1; }
  89.0% { left: 35.28%; top: 27.89%; scale: 0.82; opacity: 0.6; }
  100.0% { left: 41.69%; top: 27.53%; scale: 0.72; opacity: 0; }
}


/* 本文まわりの白いぼかし（SP・タブレット） */
.p-top-parents__lead {
  position: relative;
}

.p-top-parents__lead::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 32.5rem;
  height: 15rem;
  translate: -50% -50%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(255 255 255 / 1) 0%, rgb(255 255 255 / 0.95) 50%, rgb(255 255 255 / 0.6) 75%, rgb(255 255 255 / 0) 100%);
  pointer-events: none;
}

.p-top-parents__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* 園舎のイラストが見える分（SP 340px）をあけてから本文 */
.p-top-parents__lead {
  margin-top: calc(21.25rem + var(--space-24) * 2);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-heading);
}

.p-top-parents__signs {
  display: grid;
  justify-items: center;
  gap: var(--space-16);
  margin: var(--space-24) 0 0;
  padding: 0;
  list-style: none;
}

.p-top-parents__sign {
  width: min(100%, 21.875rem); /* 350px */
}

/* 看板：板の画像は上下のふちを伸ばさず、真ん中だけ伸ばす */
.p-top-parents__sign-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  min-height: 17.1875rem; /* 275px */
  padding: 2.5625rem 2.125rem 0; /* 上41px・左右34px（Figma） */
  color: var(--color-text-body);
  text-decoration: none;
  transition:
    transform var(--duration) ease,
    filter var(--duration) ease;
}

.p-top-parents__sign-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* 画像の上下の透明な余白の分だけ外へ広げ、見える板を 350×275 に合わせる（上のふち70px・下のふちと脚132px） */
  inset: -3.3125rem 0 -2.0625rem;
  border-style: solid;
  border-width: 7.6875rem 0 10.3125rem;
  border-image: url("assets/images/top/parents-sign.png") 306 144 439 fill / 7.6875rem 0 10.3125rem stretch; /* 左右の透明な余白は切り落とす */
}

.p-top-parents__sign:nth-child(2) .p-top-parents__sign-link {
  padding-top: 2.1875rem; /* 35px */
}

.p-top-parents__logo {
  width: 8.3rem; /* 132.8px */
  border-radius: 0.8rem;
}

.p-top-parents__logo--tebura {
  width: 8.15rem; /* 130.4px */
}

.p-top-parents__sign-text {
  align-self: stretch;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  letter-spacing: var(--ls-body-sm);
}

.p-top-parents__sign-more {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-button);
  color: var(--color-brand-deep);
}

.p-top-parents__sign-arrow {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
}

@media (hover: hover) {
  .p-top-parents__sign-link:hover {
    transform: translateY(-0.5rem);
    filter: var(--shadow-sign);
  }
}

.p-top-parents__sign-link:focus-visible {
  outline: 2px solid var(--color-text-heading);
  outline-offset: 4px;
}

/* 看板：地面からぴょこっと立つ（下から30px・縦0.7倍 → 少し弾んで元の大きさ）。2枚目は0.15秒遅れ */
.is-js .p-top-parents .p-top-parents__sign {
  opacity: 0;
  transform-origin: 50% 100%;
}

.is-js .p-top-parents.is-inview .p-top-parents__sign {
  animation:
    parents-sign-pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) 0.4s both,
    parents-sign-fade 0.5s ease 0.4s both;
}

.is-js .p-top-parents.is-inview .p-top-parents__sign:nth-child(2) {
  animation-delay: 0.55s;
}

@keyframes parents-sign-pop {
  from { transform: translateY(1.875rem) scaleY(0.7); }
  to { transform: none; }
}

@keyframes parents-sign-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* タブレット・PC：PCの背景（1440×1095）を使う */
@media (min-width: 768px) {
  .p-top-parents {
    --bird-from-x: -760px;
    --bird-from-y: 90px;
    --bird-float: 12px;
    --cloud-from: -22px;
    --cloud-to: 26px;
    --butterfly-x: 30px;
    --butterfly-y: -22px;

    min-height: 0;
  }

  /* タブレットは園舎が見出しにかからないよう120px下げ、絵の右はし（1380px）を画面の右はしに合わせる */
  .p-top-parents__scene {
    top: 7.5rem;
    left: calc(100% - 86.25rem);
    width: 90rem;
    aspect-ratio: 1440 / 1095;
    background-image: url("assets/images/top/parents-bg.png");
  }

  .p-top-parents__sun { --top: 1.83%; --left: 79.86%; --width: 9.03%; }
  .p-top-parents__clouds { --top: 3.65%; --left: 85.42%; --width: 9.72%; }
  .p-top-parents__bird { --top: 3.65%; --left: 43.06%; --width: 7.64%; }
  .p-top-parents__flowers { --top: 45.28%; --left: 10.69%; --width: 12.22%; }
  .p-top-parents__walk { --top: 45.11%; --left: 44.79%; --width: 10%; }
  .p-top-parents__bicycle { --top: 33.97%; --left: 7.64%; --width: 8.19%; }
  .p-top-parents__car { --top: 33.4%; --left: 20.83%; --width: 12.78%; }
  .p-top-parents__butterfly--01 { --top: 48.83%; --left: 21.17%; --width: 3.06%; }
  .p-top-parents__butterfly--02 { --top: 42.74%; --left: 86.53%; --width: 2.64%; }

  .is-js .p-top-parents.is-inview .p-top-parents__car {
    animation-name: parents-car-pc;
    animation-delay: -7.76s;
  }

  .is-js .p-top-parents.is-inview .p-top-parents__bicycle {
    animation-name: parents-bicycle-pc;
    animation-delay: -5.45s;
  }

  .is-js .p-top-parents.is-inview .p-top-parents__walk {
    animation-delay: -24.9s;
  }

  /* タブレット：本文は歩く親子より下、看板は2枚を横に並べる */
  .p-top-parents__lead {
    margin-top: 35.125rem; /* 本文の上が780px（歩く親子の下）になる位置 */
  }

  .p-top-parents__signs {
    grid-template-columns: repeat(2, minmax(0, 21.875rem));
    justify-content: center;
  }

  .p-top-parents__sign {
    width: 100%;
  }
}

/* タブレットだけ：小鳥は見出しにかからないよう、おひさまの左に置く */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .p-top-parents__bird {
    --left: 72%;
  }

  /* 看板の幅がSPとほぼ同じなので、コドモンの説明もSPと同じ位置で改行する */
  .p-top-parents__sign-text .u-sp-only {
    display: inline !important;
  }
}

@media (min-width: 1100px) {
  .p-top-parents {
    min-height: max(68.4375rem, 100vw * 1095 / 1440); /* 1095px。1440pxより広い画面は絵に合わせて高くする */
    padding-block: var(--space-80);
  }

  .p-top-parents__scene {
    top: 0;
    left: 50%;
    width: max(100%, 90rem);
    translate: -50% 0;
  }

  .p-top-parents__lead::before {
    content: none;
  }

  /* 左：テキスト列 516px（右の 540×380 は園舎のイラスト） */
  .p-top-parents__heading,
  .p-top-parents__lead {
    max-width: 32.25rem;
  }

  .p-top-parents__heading .c-section-heading__title {
    margin-top: 1.125rem; /* 点〜見出し 18px（Figma） */
  }

  .p-top-parents__lead {
    margin-top: 1.125rem;
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body-lg);
  }

  /* 看板 580×387 を2枚、まん中に並べる（見出しの上から 380+140px 下） */
  .p-top-parents__signs {
    grid-template-columns: repeat(2, minmax(0, 36.25rem));
    justify-content: center;
    gap: 0;
    /* コンテンツ幅より広い 1180px を、画面のまん中に置く（画面が狭いときは画面幅まで） */
    margin: 16.5rem calc(50% - min(36.875rem, 50vw)) 0; /* 上は見出しの上から 380+140px（Figma）。テキスト列は256px */
    /* 1440pxより広い画面は背景の絵が大きくなるので、看板も絵に合わせて下げる（1440pxのとき看板の上はセクションの上から601px） */
    margin-top: calc(16.5rem + max(0rem, (100vw - 90rem) * 0.4175));
  }

  /* 画面が1180pxより狭いときは看板が縮むので、中身も看板の幅（cqw）に合わせて縮める */
  .p-top-parents__sign {
    width: 100%;
    container-type: inline-size;
  }

  /* 中身は看板の板の上（580px幅で 上103px・左114px・右110px、リンクは上から220pxの位置） */
  .p-top-parents__sign-link {
    gap: min(0.625rem, 1.724cqw);
    min-height: 0;
    aspect-ratio: 580 / 387;
    padding: 17.76cqw 18.97cqw 25cqw 19.66cqw;
  }

  .p-top-parents__sign:nth-child(2) .p-top-parents__sign-link {
    padding-top: 16.55cqw; /* 96px */
  }

  .p-top-parents__sign:nth-child(2) .p-top-parents__sign-text {
    margin-bottom: -1.034cqw; /* 説明〜リンク 4px（Figma） */
  }

  .p-top-parents__sign-link::before {
    inset: 0;
    border: 0;
    border-image: none;
    background: url("assets/images/top/parents-sign.png") center / 100% 100% no-repeat;
  }

  .p-top-parents__logo {
    width: 28.62cqw; /* 166px */
    border-radius: var(--radius-16);
  }

  .p-top-parents__logo--tebura {
    width: 28.1cqw; /* 163px */
  }

  .p-top-parents__sign-text {
    font-size: min(var(--fs-body-sm), 2.414cqw);
    text-align: center;
  }

  .p-top-parents__sign-more {
    gap: min(0.375rem, 1.034cqw);
    margin-top: auto;
    margin-right: -0.86cqw;
    font-size: min(var(--fs-text-link), 2.241cqw);
  }

  .p-top-parents__sign-arrow {
    width: min(1.375rem, 3.793cqw);
    height: min(1.375rem, 3.793cqw);
  }
}

/* ==========================================================
   トップ：子育て支援（CHILDCARE SUPPORT）
   ・見出し・「こんな方へ」のメモ4枚・ボタンを中央にそろえる
   ・下の写真は2段で左へ流し続ける（上の段4枚・下の段5枚）。上の白い楕円は動かさない
   ・まわりのイラスト（積み木リング・たいこ・にじ・音符）は動かさない
   ========================================================== */
.p-top-support {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background-color: var(--color-surface-white);
}

/* イラスト：SPは画面の左右のはしに置く（390pxの配置）。画像は傾けた状態で書き出してあるので、大きさは傾けたあとの外枠 */
.p-top-support__decos {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.p-top-support__deco {
  position: absolute;
  height: auto;
}

.p-top-support__deco--rings {
  top: 1.32rem;
  left: 0.19rem;
  width: 3.98rem; /* 58pxを6度傾けた外枠 */
}

.p-top-support__deco--drum {
  top: 5.4625rem;
  left: 0.415rem;
  width: 3.67rem; /* 52pxを-8度傾けた外枠 */
}

.p-top-support__deco--rainbow {
  top: 1.25rem;
  right: 0.375rem;
  width: 5.25rem; /* 84px */
}

.p-top-support__deco--notes {
  top: 6.056rem;
  right: 0.6rem;
  width: 3.39rem; /* 48pxを8度傾けた外枠 */
}

.p-top-support__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-40);
  padding-block: var(--space-48) var(--space-24);
}

.p-top-support__heading {
  max-width: 47.5rem; /* リードの幅 760px */
}

.p-top-support__lead {
  text-align: center;
}

/* こんな方へ */
.p-top-support__for {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  width: 100%;
}

.p-top-support__for-title {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-heading-sm);
  color: var(--color-text-heading);
}

.p-top-support__for-icon {
  width: 2.25rem; /* 36px / PC 44px */
  height: auto;
}

.p-top-support__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 10.5625rem)); /* 169px */
  justify-content: center;
  gap: 1.375rem var(--space-12); /* 傾けたメモの外枠どうしが16px空く間隔（Figma） */
  width: 100%;
  margin: 0;
  padding: 0.1875rem 0;
  list-style: none;
}

/* メモ：色の帯・悩み・区切り線・答え。右下にイラスト。1枚ずつ少し傾ける */
.p-top-support__card {
  --card-tilt: 2deg;
  --card-color: var(--color-brand-light);
  --band-color: var(--color-brand-main);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-height: 12.8125rem; /* 205px / PC 191px */
  padding: var(--space-16);
  background-color: var(--card-color);
  border-radius: 0.25rem;
  box-shadow: var(--shadow-memo);
  rotate: var(--card-tilt);
  transition:
    translate 0.25s ease,
    box-shadow 0.25s ease;
}

.p-top-support__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.375rem;
  background-color: var(--band-color);
  border-radius: 0.25rem 0.25rem 0 0;
}

.p-top-support__card:nth-child(2) {
  --card-tilt: -1.5deg;
}

.p-top-support__card:nth-child(3) {
  --card-tilt: 1deg;
}

.p-top-support__card:nth-child(4) {
  --card-tilt: -2deg;
}

.p-top-support__card--mint {
  --card-color: var(--color-brand-sub-light);
  --band-color: var(--color-brand-sub);
}

.p-top-support__card--yellow {
  --card-color: var(--color-accent-yellow-light);
  --band-color: var(--color-accent-yellow);
}

.p-top-support__card--rose {
  --band-color: var(--color-brand-deep);
}

.p-top-support__card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-card-title);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading-sm);
  letter-spacing: var(--ls-card-title);
  color: var(--color-text-heading);
}

/* 答え：上に区切り線（帯の色を40%） */
.p-top-support__card-text {
  padding-top: var(--space-12);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-body);
  border-top: 1px solid color-mix(in srgb, var(--band-color) 40%, transparent);
}

.p-top-support__card-illust {
  position: absolute;
  right: 0.5rem;
  bottom: 0.25rem;
  width: 3.36rem; /* 52px / PC 68px を傾けた外枠 */
  height: auto;
  rotate: calc(var(--card-tilt) * -1); /* 画像はメモと同じ角度で書き出してあるので、メモの傾きを打ち消す */
}

/* メモ：マウスを乗せると6px持ち上がり、影が少し濃く広がる（傾きはそのまま） */
@media (hover: hover) {
  .p-top-support__card:hover {
    translate: 0 -0.375rem;
    box-shadow: var(--shadow-memo-hover);
  }
}

/* 写真スライダー：止まらずに一定の速さで左へ流れる（1秒に流れる距離は全幅で同じ） */
.p-top-support__slider {
  --photo-width: 13.125rem;       /* 上の段 210×175（SPはPCの半分） */
  --photo-height: 10.9375rem;
  --photo-sm-width: 9.375rem;     /* 下の段 150×130 */
  --photo-sm-height: 8.125rem;
  --photo-gap: 0.375rem;
  --photo-radius: 0.375rem;
  --track-start: -3.75rem;        /* 上の段は左に60pxはみ出して始まる */
  --track-sm-start: -1.875rem;    /* 下の段は上の段より右に30pxずらす */
  --track-duration: 36s;          /* 上の段の1周。下の段はその0.9倍 */
  --curve-width: 35rem;           /* 白い楕円 560×260（画面が広いときは画面に合わせて横に伸ばす） */
  --curve-height: 16.25rem;
  --curve-top: -11.25rem;

  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--photo-gap);
  overflow: hidden;
  padding-block: 1.25rem;
}

/* 写真の上をくり抜く白い楕円 */
.p-top-support__slider::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: var(--curve-top);
  left: 50%;
  width: max(var(--curve-width), 143.6%);
  height: var(--curve-height);
  translate: -50% 0;
  background-color: var(--color-surface-white);
  border-radius: 50%;
}

.p-top-support__track {
  display: flex;
  width: max-content;
  margin: 0 0 0 var(--track-start);
  padding: 0;
  list-style: none;
  animation: support-slide var(--track-duration) linear infinite; /* 同じ並びを4回置き、4分の1（1周ぶん）動かす */
}

@keyframes support-slide {
  to { translate: -25% 0; }
}

.p-top-support__track--bottom {
  margin-left: var(--track-sm-start);
  animation-duration: calc(var(--track-duration) * 0.9);
}

.p-top-support__photo {
  flex: none;
  width: var(--photo-width);
  height: var(--photo-height);
  margin-right: var(--photo-gap);
}

.p-top-support__track--bottom .p-top-support__photo {
  width: var(--photo-sm-width);
  height: var(--photo-sm-height);
}

.p-top-support__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--photo-radius);
}

/* タブレット（768〜1099px）：メモは2×2のまま大きく、写真はSPの1.5倍 */
@media (min-width: 768px) {
  .p-top-support__deco--rings {
    top: 1.75rem;
    left: var(--space-12);
    width: 5.77rem;
  }

  .p-top-support__deco--drum {
    top: 8.25rem;
    left: 1.25rem;
    width: 5.36rem;
  }

  .p-top-support__deco--rainbow {
    top: 1.75rem;
    right: var(--space-16);
    width: 7.5rem;
  }

  .p-top-support__deco--notes {
    top: 8.75rem;
    right: 1.25rem;
    width: 4.8rem;
  }

  .p-top-support__inner {
    padding-block: var(--section-inner) var(--space-16);
  }

  .p-top-support__heading .c-section-heading__title {
    margin-top: 1.125rem; /* 点〜見出し 18px（Figma） */
  }

  .p-top-support__lead {
    margin-top: 1.125rem;
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body-lg);
  }

  .p-top-support__for-icon {
    width: 2.75rem;
  }

  .p-top-support__cards {
    grid-template-columns: repeat(2, 15rem); /* 240px */
    gap: var(--space-24) 1.25rem;
    padding-block: var(--space-16); /* 12px＋傾けたメモの外枠ぶん（Figma） */
  }

  .p-top-support__card {
    min-height: 11.9375rem; /* 191px */
    padding: var(--space-24);
  }

  .p-top-support__card-text {
    font-size: var(--fs-body-sm);
    line-height: var(--lh-body-sm);
  }

  .p-top-support__card-illust {
    right: 0.25rem;
    bottom: 0.125rem;
    width: 4.4rem; /* 68pxを傾けた外枠 */
  }

  .p-top-support__slider {
    --photo-width: 19.6875rem;
    --photo-height: 16.40625rem;
    --photo-sm-width: 14.0625rem;
    --photo-sm-height: 12.1875rem;
    --photo-gap: 0.5625rem;
    --photo-radius: 0.5625rem;
    --track-start: -5.625rem;
    --track-sm-start: -2.8125rem;
    --track-duration: 54s;
    --curve-width: 52.5rem;
    --curve-height: 24.375rem;
    --curve-top: -16.875rem;

    margin-top: calc(var(--space-40) * -1); /* 白い楕円をボタンの下に少し重ねて、間が空きすぎないようにする */
    padding-block: 1.875rem;
  }
}

/* PC（1100px以上）：メモを横に4枚。写真の帯はボタンのすぐ下から始まり、上を白い楕円で丸く切り取る */
@media (min-width: 1100px) {
  .p-top-support {
    padding-top: var(--space-80);
  }

  /* イラストは1440pxの配置。1100〜1440pxは画面幅に合わせて中央へ寄せ、小さくする */
  .p-top-support__deco--rings {
    top: 4.356rem;
    left: calc(50% - min(34.19rem, 37.99vw));
    width: min(9.88rem, 10.98vw); /* 143.85pxを傾けた外枠 */
  }

  .p-top-support__deco--drum {
    top: 13.33rem;
    left: calc(50% - min(42.09rem, 46.77vw));
    width: min(11.475rem, 12.75vw); /* 162.55pxを傾けた外枠 */
  }

  .p-top-support__deco--rainbow {
    top: 4.05rem;
    right: auto;
    left: calc(50% + min(26rem, 28.89vw));
    width: min(13.0625rem, 14.51vw); /* 209px */
  }

  .p-top-support__deco--notes {
    top: 17.425rem;
    right: auto;
    left: calc(50% + min(32.75rem, 36.39vw));
    width: min(7.625rem, 8.47vw); /* 108.06pxを傾けた外枠 */
  }

  .p-top-support__inner {
    padding-block: 0 var(--space-16);
  }

  .p-top-support__cards {
    grid-template-columns: repeat(4, 15rem);
    gap: 1.25rem;
  }

  .p-top-support__slider {
    --photo-width: 26.25rem;     /* 420×350 */
    --photo-height: 21.875rem;
    --photo-sm-width: 18.75rem;  /* 300×260 */
    --photo-sm-height: 16.25rem;
    --photo-gap: var(--space-12);
    --photo-radius: var(--radius-12);
    --track-start: -7.5rem;
    --track-sm-start: -3.75rem;
    --track-duration: 72s;
    --curve-width: 140rem;       /* 2240×726 */
    --curve-height: 45.375rem;
    --curve-top: -36.625rem;

    margin-top: -4.467rem; /* ボタンの下に白い楕円が重なる位置（Figma） */
    padding-block: var(--space-40) var(--space-48);
  }

  .p-top-support__slider::after {
    width: max(var(--curve-width), 155.56%);
  }
}

/* ==========================================================
   トップ：お知らせ・おたより（NEWS & LETTERS）
   ・画用紙の背景（上下が波）の上に、コルクボードを1枚かける
   ・ボードの中は、ボードの幅に対する cqw で置く（PC 1100px・SP 350px のデザインの比率）
   ・カテゴリはPCがタブ、1100px未満はドロップダウン。どちらも同じ一覧を切り替える
   ・波・ボード・画鋲・カードの傾きは動かさない。カードはマウスを乗せると持ち上がる
   ========================================================== */
.p-top-news {
  padding-block: var(--space-64);
  background: url("assets/images/top/news-bg-sp.png") center / 100% 100% no-repeat;
}

.p-top-news__inner {
  display: flex;
  justify-content: center;
}

/* SPのボード（350×894）。上（ロープ）と枠は伸ばさず、コルクの面だけ中身に合わせて伸びる */
.p-top-news__board {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 28rem);
}

.p-top-news__board::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-style: solid;
  border-width: 40cqw 8.571cqw 8.571cqw; /* 上140px（ロープと上の枠）・左右30px・下30px */
  border-image: url("assets/images/top/news-board-sp.png") 15.66% 8.571% 3.356% fill / 40cqw 8.571cqw 8.571cqw;
}

/* ロープの上の大きい画鋲 */
.p-top-news__board-pin {
  position: absolute;
  top: 0.857cqw;
  left: 50%;
  width: 4.571cqw; /* 16px */
  height: auto;
  translate: -50% 0;
}

/* 札の見出し（木の枠の板の画像）。見出しの波は付けない（ボードと一緒に出る） */
.p-top-news__title {
  display: grid;
  place-items: center;
  width: 76cqw;       /* 266px */
  height: 20.43cqw;   /* 71.5px */
  margin-top: 22.71cqw; /* ボードの上から79.5px */
  font-family: var(--font-heading);
  font-size: min(var(--fs-h2), 6.857cqw);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--color-text-heading);
  background: url("assets/images/top/news-title-plate-sp.png") center / 100% 100% no-repeat;
}

/* コルクの面：カテゴリ → カード → ボタン */
.p-top-news__cork {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 78.86cqw; /* 276px */
  margin-block: 9.72cqw 14cqw; /* 下の枠まで49px */
}

/* カテゴリ：PCのタブ */
.p-top-news__tabs {
  display: none;
}

/* カテゴリ：SPのドロップダウン */
.p-top-news__select {
  position: relative;
  z-index: 2;
}

.p-top-news__select-button,
.p-top-news__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--tap-size);
  font-family: var(--font-heading);
  font-size: var(--fs-tab);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-button);
  color: var(--color-nature-wood-deep);
  text-align: left;
  cursor: pointer;
}

.p-top-news__select-button {
  padding: 0 var(--space-16) 0 1.25rem;
  background-color: var(--color-surface-white);
  border: 2px solid var(--color-nature-wood);
  border-radius: var(--radius-full);
}

.p-top-news__select-button:focus-visible,
.p-top-news__option:focus-visible,
.p-top-news__tab:focus-visible {
  outline: 2px solid var(--color-text-heading);
  outline-offset: 2px;
}

.p-top-news__chevron {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  transition: rotate 0.2s ease;
}

.p-top-news__select-button[aria-expanded="true"] .p-top-news__chevron {
  rotate: 180deg;
}

/* 一覧：ボタンのすぐ下に、透明→表示＋4px下へ動いて開く（0.2秒） */
.p-top-news__options {
  position: absolute;
  top: calc(100% + var(--space-8));
  left: 0;
  width: 100%;
  margin: 0;
  padding: var(--space-8);
  list-style: none;
  background-color: var(--color-surface-white);
  border: 2px solid var(--color-nature-wood);
  border-radius: var(--radius-16);
  opacity: 0;
  visibility: hidden;
  translate: 0 -0.25rem;
  transition:
    opacity 0.2s ease,
    translate 0.2s ease,
    visibility 0.2s;
}

.p-top-news__select.is-open .p-top-news__options {
  opacity: 1;
  visibility: visible;
  translate: none;
}

.p-top-news__option {
  padding: 0 var(--space-12);
  background: none;
  border: 0;
  border-radius: var(--radius-8);
}

/* 選んでいる項目は薄い木の色＋チェック */
.p-top-news__option[aria-pressed="true"] {
  background-color: var(--color-nature-wood-light);
}

.p-top-news__check {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0; /* 一覧ごと隠すため visibility は使わない */
}

.p-top-news__option[aria-pressed="true"] .p-top-news__check {
  opacity: 1;
}

@media (hover: hover) {
  .p-top-news__option:hover {
    background-color: var(--color-nature-wood-light);
  }
}

/* カード（貼り紙）：1枚ずつ少し傾け、上のまん中に画鋲 */
.p-top-news__list {
  display: grid;
  gap: var(--space-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-top-news__card {
  --card-tilt: 2deg;
  --category-bg: var(--color-brand-light);
  --category-color: var(--color-brand-deep);

  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-height: 10.125rem; /* 162px / PC 182px */
  padding: var(--space-16);
  color: var(--color-text-heading);
  text-decoration: none;
  background-color: var(--color-surface-white);
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-news-card);
  rotate: var(--card-tilt);
  transition:
    translate 0.25s ease,
    box-shadow 0.25s ease;
}

/* 横に並んだカードは、いちばん高いカードに高さをそろえる */
.p-top-news__item {
  display: grid;
}

.p-top-news__item:nth-child(2) .p-top-news__card {
  --card-tilt: -1deg;
}

.p-top-news__item:nth-child(3) .p-top-news__card {
  --card-tilt: 1deg;
}

.p-top-news__card--mint {
  --category-bg: var(--color-brand-sub-light);
  --category-color: var(--color-action-mint-dark);
}

.p-top-news__card--yellow {
  --category-bg: var(--color-accent-yellow-light);
  --category-color: var(--color-accent-yellow-dark);
}

.p-top-news__card:focus-visible {
  outline: 2px solid var(--color-text-heading);
  outline-offset: 4px;
}

.p-top-news__meta {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.p-top-news__category {
  flex: none;
  width: 7rem; /* 112px */
  padding-block: var(--space-4);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
  color: var(--category-color);
  text-align: center;
  background-color: var(--category-bg);
  border-radius: var(--radius-full);
}

.p-top-news__date {
  font-family: var(--font-en);
  font-size: var(--fs-date);
  font-weight: var(--fw-bold);
  line-height: var(--lh-date);
  color: var(--color-text-body);
}

/* タイトルは2行まで。長いときは2行目の最後を「…」で省略する（カードの高さをそろえる） */
.p-top-news__card-title {
  display: -webkit-box;
  flex-grow: 1;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body-lg);
  color: var(--color-text-heading);
}

.p-top-news__card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-12);
}

.p-top-news__pdf {
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-en);
  font-size: var(--fs-badge);
  font-weight: var(--fw-bold);
  line-height: var(--lh-date);
  color: var(--color-text-body);
  border: 1px solid var(--color-text-body);
  border-radius: var(--radius-8);
}

.p-top-news__arrow {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--category-color);
}

.p-top-news__pin {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  width: 1.5rem; /* 24px */
  height: auto;
  translate: -50% 0;
}

.p-top-news__empty {
  padding: var(--space-24) var(--space-16);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--color-text-body);
  text-align: center;
  background-color: var(--color-surface-white);
  border-radius: var(--radius-8);
}

.p-top-news__more {
  display: flex;
  justify-content: center;
}

.p-top-news__more .c-button {
  width: 100%;
  padding-inline: var(--space-8); /* 276px の中に1行で収める（Figma 10px） */
}

/* カード：マウスを乗せると6px持ち上がり、影が少し濃く広がる（傾きはそのまま） */
@media (hover: hover) {
  .p-top-news__card:hover {
    translate: 0 -0.375rem;
    box-shadow: var(--shadow-news-card-hover);
  }
}

/* PC（1100px以上）：横長のボード（1100×735）に、タブ・カード3枚を横並び・ボタンは右下 */
@media (min-width: 1100px) {
  .p-top-news {
    padding-block: 7.5rem 4.75rem; /* 上120px・下76px（Figma） */
    background-image: url("assets/images/top/news-bg.png");
    background-size: max(100%, 90rem) 100%;
  }

  .p-top-news__board {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1377 / 920; /* 中身が多いときだけ縦に伸びる */
  }

  /* 上（ロープ）と枠は伸ばさず、コルクの面だけ伸ばす：上232px・左右56px・下64px（1100pxのとき） */
  .p-top-news__board::before {
    border-width: 21.06cqw 5.083cqw 5.81cqw;
    border-image: url("assets/images/top/news-board.png") 31.52% 5.083% 8.696% fill / 21.06cqw 5.083cqw 5.81cqw;
  }

  .p-top-news__board-pin {
    top: -1.182cqw;
    width: 2.909cqw; /* 32px */
  }

  .p-top-news__title {
    width: 40.38cqw;  /* 444px */
    height: 10.97cqw; /* 121px */
    margin-top: 11.98cqw; /* ボードの上から132px */
    font-size: min(var(--fs-h2), 2.909cqw);
    background-image: url("assets/images/top/news-title-plate.png");
  }

  .p-top-news__cork {
    gap: 2.909cqw;
    width: 92cqw; /* 1012px */
    margin-block: 3.14cqw 0;
    padding: 2.909cqw;
  }

  .p-top-news__select {
    display: none;
  }

  /* タブ：大きさもボードに合わせる（1100pxのとき14px） */
  .p-top-news__tabs {
    display: flex;
    justify-content: center;
    gap: 0.727cqw;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .p-top-news__tab {
    padding: 0.727cqw 2.182cqw; /* 8px 24px */
    font-family: var(--font-heading);
    font-size: 1.273cqw;
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-button);
    color: var(--color-nature-wood-deep);
    background-color: var(--color-surface-white);
    border: 2px solid var(--color-nature-wood);
    border-radius: var(--radius-full);
    cursor: pointer;
  }

  /* 選んでいるタブは茶色の塗り */
  .p-top-news__tab[aria-pressed="true"] {
    color: var(--color-text-on-action);
    background-color: var(--color-nature-wood-deep);
    border-color: var(--color-nature-wood-deep);
  }

  .p-top-news__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.182cqw;
  }

  .p-top-news__card {
    min-height: 11.375rem; /* 182px */
    padding: var(--space-24);
  }

  .p-top-news__more {
    justify-content: flex-end;
  }

  .p-top-news__more .c-button {
    width: auto;
    padding-inline: var(--space-24);
  }
}

/* ==========================================================
   トップ：園見学・入園のご相談（VISIT US）
   ・見出し・ボタン2つ・受付時間を中央に。下の写真は右へ一定の速さで流れ続ける
   ・写真の並びは1440pxのデザインの位置（PCの px の数値）を --unit 倍して置く（SPは0.55倍）
   ・小鳥・おひさま・お花は動かさない（お花は写真の手前）
   ========================================================== */
.p-top-visit {
  --s: 0.55;                            /* 写真の並びの倍率（SP 0.55・タブレット 0.75・PC 1） */
  --unit: calc(0.0625rem * var(--s));   /* デザインの1px */
  /* 写真の帯の左はし。左から3組目がデザインの位置に来るよう、2組ぶん（1836×2）と組の間だけ左にずらす */
  --track-start: -4578;

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding-top: var(--space-48);
  background-color: var(--color-surface-white);
}

.p-top-visit__deco {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
}

/* おひさまは上のセクション（お知らせ）の波にかかる */
.p-top-visit__deco--sun {
  top: -2.23rem;
  left: calc(50% + 6.5rem); /* 390pxのとき左から298px */
  width: 5.25rem;           /* 84px */
}

.p-top-visit__deco--bird {
  top: 2.25rem;
  left: calc(50% - 11.4375rem); /* 390pxのとき左から12px */
  width: 4rem;                  /* 64px */
}

.p-top-visit__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
}

.p-top-visit__lead {
  text-align: center;
}

.p-top-visit__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  width: 100%;
}

/* SPは2つ横並び（各169px・間12px）、右の丸矢印は付けない（ファーストビューと同じ） */
.p-top-visit__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 10.5625rem));
  justify-content: center;
  gap: var(--space-12);
  width: 100%;
}

.c-button.p-top-visit__button {
  min-width: 0;
  padding-inline: var(--space-8);
  white-space: nowrap;
}

.p-top-visit__button .c-button__arrow {
  display: none;
}

/* 電話のアイコンは画像の余白が多いので、大きめにして余白を詰める（ファーストビューと同じ） */
.p-top-visit__tel-icon {
  width: calc(var(--button-icon-size) * 1.5);
  margin-inline: calc(var(--button-icon-size) * -0.25);
}

/* 390pxより狭い画面：ボタンが細くなるぶん、文字を画面幅に合わせて小さくし、点線の中に収める（375pxで12.5px） */
@media (max-width: 389.98px) {
  .c-button.p-top-fv__button,
  .c-button.p-top-visit__button {
    gap: 0.375rem;
    padding-inline: 0.375rem;
    font-size: 3.333vw;
  }
}

.p-top-visit__note {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
  color: var(--color-text-body);
  text-align: center;
}

/* 写真スライダー：4組並べて、1組ぶん（1836px）を右へ動かしてくり返す（約17px/秒） */
.p-top-visit__slider {
  position: relative;
  overflow-x: clip;
  height: calc(var(--unit) * 451); /* SP 248px・PC 451px */
  padding-bottom: var(--space-24);  /* SPだけ写真の下に24px */
  box-sizing: content-box;
}

.p-top-visit__track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  margin: 0 0 0 calc(50% + var(--unit) * var(--track-start));
  padding: 0;
  list-style: none;
  animation: visit-slide calc(108s * var(--s)) linear infinite;
}

.p-top-visit__photo {
  flex: none;
  width: calc(var(--unit) * var(--width));
  margin-top: calc(var(--unit) * var(--top));
  margin-left: calc(var(--unit) * var(--left));
}

.p-top-visit__photo img {
  width: 100%;
  height: auto;
}

@keyframes visit-slide {
  to { translate: 25% 0; }
}

/* お花：写真の手前に置く（デザインの位置） */
.p-top-visit__flowers {
  position: absolute;
  z-index: 1;
  top: calc(var(--unit) * 314.79);
  left: calc(50% + var(--unit) * 287.4); /* 1440pxのとき左から1007px */
  width: calc(var(--unit) * 248);
  height: auto;
}

/* 写真1枚ずつ：前の写真との間（--left）・上からの位置（--top）・幅（--width）。傾けた外枠の大きさ */
.p-top-visit__photo:nth-child(6n + 1) {
  --left: -37.1;
  --top: -15.9;
  --width: 326;
}

.p-top-visit__photo:nth-child(6n + 2) {
  --left: -41;
  --top: 175.3;
  --width: 272.5;
}

.p-top-visit__photo:nth-child(6n + 3) {
  --left: 3.1;
  --top: -0.9;
  --width: 364;
}

.p-top-visit__photo:nth-child(6n + 4) {
  --left: 3.5;
  --top: 132.2;
  --width: 345;
}

.p-top-visit__photo:nth-child(6n + 5) {
  --left: -37.5;
  --top: 0.9;
  --width: 297.5;
}

.p-top-visit__photo:nth-child(6n + 6) {
  --left: -27.5;
  --top: 162.2;
  --width: 367.5;
}



/* タブレット（768〜1099px）：見出しとボタンはPCと同じ。写真の並びは0.75倍 */
@media (min-width: 768px) {
  .p-top-visit {
    --s: 0.75;

    gap: var(--space-16);
    padding-top: var(--section-inner);
  }

  .p-top-visit__deco--sun {
    top: -3.5rem;
    left: auto;
    right: var(--space-24);
    width: 8.75rem;
  }

  .p-top-visit__deco--bird {
    top: var(--space-24);
    left: var(--space-24);
    width: 4.5rem; /* 見出しにかからない大きさ */
  }

  .p-top-visit__inner {
    gap: var(--space-40);
  }

  .p-top-visit__heading .c-section-heading__title {
    margin-top: 1.125rem; /* 点〜見出し 18px（Figma） */
  }

  .p-top-visit__lead {
    margin-top: 1.125rem;
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body-lg);
  }

  .p-top-visit__actions {
    gap: var(--space-16);
  }

  .p-top-visit__buttons {
    display: flex;
    gap: var(--space-16);
    width: auto;
  }

  .c-button.p-top-visit__button {
    min-width: 15rem; /* 240px */
    padding-inline: var(--space-16);
  }

  .p-top-visit__button .c-button__arrow {
    display: block;
  }

  .p-top-visit__slider {
    padding-bottom: 0;
  }
}

/* PC（1100px以上）：1440pxのデザインの位置。イラストは中央からの位置で置く */
@media (min-width: 1100px) {
  .p-top-visit {
    --s: 1;

    padding-top: var(--space-80);
  }

  .p-top-visit__deco--sun {
    top: -4.49rem;
    right: auto;
    left: calc(50% + 29.5rem); /* 1440pxのとき左から1192px */
    width: 11.99rem;           /* 169.86pxを-8度傾けた外枠 */
  }

  .p-top-visit__deco--bird {
    top: 10.61rem;
    left: calc(50% - 37.1875rem); /* 1440pxのとき左から125px */
    width: 8.9375rem;             /* 143px */
  }
}

/* ==========================================================
   トップページ：アクセス・採用
   ・背景の丘のカーブは上のセクション（園見学）の写真の後ろにかかる
     （--access-hill：丘の画像のうち、上のセクションにかかる高さ）
   ・SP〜1099pxは縦に並べる（見出し→ロゴ→住所など→地図→ボタン→採用カード）
   ・1100px以上は左に見出し〜ボタン、右に地図。採用カードは写真と文字を横に並べる
   ========================================================== */
.p-top-visit,
.p-top-access {
  /* 背景の画像（SP・PCとも同じ形）の幅に対する割合。PC 1440pxのとき 185px・カーブの深さ 203px */
  --access-hill: 12.85vw;       /* 上のセクションにかかる高さ */
  --access-hill-curve: 14.1vw;  /* 画像のカーブの深さ（ここまでは丘の外側を白で塗る） */
}

/* 園見学の写真とお花を、アクセスの丘より手前に出す。丘がかかる高さだけ白い背景を抜く */
.p-top-visit {
  z-index: 1;
  background: linear-gradient(var(--color-surface-white) calc(100% - var(--access-hill)), transparent 0);
}

.p-top-access {
  position: relative;
  margin-top: calc(var(--access-hill) * -1);
  /* 下：フッターの丘が緑で埋まる位置まで背景を続ける（その分フッターを上に重ねる） */
  padding-block: calc(var(--access-hill) + var(--space-24)) calc(var(--space-48) + 27.7vw);
  background:
    url("assets/images/top/access-bg-sp.png") center top / 100% auto no-repeat,
    linear-gradient(var(--color-surface-white), var(--color-surface-white)) center top / 100% var(--access-hill-curve) no-repeat,
    var(--color-bg-base);
}

.p-top-access__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-40);
}

.p-top-access__main,
.p-top-recruit {
  width: 100%;
  max-width: 35rem; /* タブレットで広がりすぎないように（560px） */
}

.p-top-access__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
}

.p-top-access__logo {
  width: 12.5rem; /* 200px */
  height: auto;
}

.p-top-access__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: 0;
  list-style: none;
}

.p-top-access__info-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body-lg);
  color: var(--color-text-body);
}

.p-top-access__icon {
  flex: none;
  width: 1.75rem; /* 28px */
  height: auto;
}

.p-top-access__tel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* 電話番号：スマートフォンではタップで電話をかけられる */
.p-top-access__tel-number {
  font-family: var(--font-en);
  font-size: var(--fs-tel-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-en-label);
  color: var(--color-text-heading);
  text-decoration: none;
}

.p-top-access__tel-hours {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-body-sm);
}

/* トップページだけ、フッターの空と丘をアクセスの背景に重ねる（空の高さ＋丘が埋まるまで） */
.home .l-footer {
  margin-top: -22.8vw;
}

@media (min-width: 768px) {
  .p-top-access {
    padding-bottom: calc(var(--space-48) + 10.7vw);
  }

  .home .l-footer {
    margin-top: -19.73vw;
  }
}

/* 地図の列：地図の下、右寄せに「Googleマップで見る」 */
.p-top-access__map-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-16);
  width: 100%;
}

.p-top-access__map {
  position: relative;
  width: 100%;
  aspect-ratio: 14 / 9; /* SP 350×225・PC 560×360 */
  background-color: var(--color-brand-sub-light);
  border-radius: var(--radius-16);
}

/* 地図のまわりの点線のふち（地図から6px外側） */
.p-top-access__map::before {
  content: "";
  position: absolute;
  inset: -0.375rem;
  border: 3px dashed var(--color-brand-sub);
  border-radius: 1.375rem; /* 22px */
  pointer-events: none;
}

.p-top-access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* Googleマップで見る：マウスを乗せると下線が1px→2pxに太くなり、矢印が右上へ2px動く */
.p-top-access__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-button);
  color: var(--color-action-mint-dark);
  text-decoration: none;
}

.p-top-access__map-link-icon {
  flex: none;
  width: var(--button-icon-size); /* SP 24px */
  height: auto;
}

.p-top-access__map-link-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 0.2s ease;
}

.p-top-access__external {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  transition: translate 0.2s ease;
}

.p-top-access__map-link:focus-visible {
  outline: 2px solid var(--color-text-heading);
  outline-offset: 4px;
  border-radius: var(--radius-8);
}

@media (hover: hover) {
  .p-top-access__map-link:hover .p-top-access__map-link-text {
    text-decoration-thickness: 2px;
  }

  .p-top-access__map-link:hover .p-top-access__external {
    translate: 2px -2px;
  }
}

.c-button.p-top-access__button,
.c-button.p-top-recruit__button {
  min-width: 11.25rem; /* SP 180px */
  padding-inline: var(--space-8);
}

/* 採用カード：白いカードの内側に点線。右下にずらした薄いミント */
.p-top-recruit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding: var(--space-16);
  background-color: var(--color-surface-white);
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-recruit-card);
}

.p-top-recruit::before {
  content: "";
  position: absolute;
  inset: var(--space-8);
  border: 0.15625rem dashed var(--color-brand-sub); /* 2.5px */
  border-radius: var(--radius-12);
  pointer-events: none;
}

.p-top-recruit__photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 320;
  object-fit: cover;
  border-radius: var(--radius-12);
}

.p-top-recruit__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--space-8) var(--space-16);
}

.p-top-recruit__heading .c-section-heading__en::after {
  margin-top: var(--space-12);
}

.p-top-recruit__lead {
  margin-top: var(--space-8);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body-lg);
  color: var(--color-text-body);
}

.c-button.p-top-recruit__button {
  margin-top: var(--space-24);
}

/* じょうろ・鉢植え（画像は傾けた状態で書き出し済み。大きさは傾けた外枠） */
.p-top-recruit__deco {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
}

.p-top-recruit__deco--can {
  top: -1.707rem;
  right: 0.25rem;
  width: 4.75rem;    /* 64pxを-12度傾けた外枠 */
}

.p-top-recruit__deco--sprout {
  right: var(--space-12);
  bottom: var(--space-8);
  width: 3.375rem;   /* 54px */
}

@media (min-width: 768px) {
  .p-top-access__map-column {
    gap: var(--space-24);
  }

  .p-top-access__icon {
    width: 2.5rem; /* 40px */
  }

  .p-top-access__map-link-icon {
    width: 1.75rem; /* 28px */
  }

  .p-top-access__heading .c-section-heading__title,
  .p-top-recruit__heading .c-section-heading__title {
    margin-top: 1.125rem; /* 点〜見出し 18px（Figma） */
  }

  .p-top-recruit__heading .c-section-heading__en::after {
    margin-top: var(--space-16);
  }

  .p-top-recruit__heading .c-section-heading__title {
    margin-top: 1.25rem; /* 20px */
  }

  .p-top-recruit__lead {
    margin-top: var(--space-16);
  }

  .c-button.p-top-access__button,
  .c-button.p-top-recruit__button {
    min-width: 15rem; /* 240px */
    padding-inline: var(--space-16);
  }

  .c-button.p-top-recruit__button {
    margin-top: var(--space-32);
  }
}

/* PC（1100px以上）：左に見出し〜ボタン、右に地図 */
@media (min-width: 1100px) {
  .p-top-access {
    padding-block: calc(var(--access-hill) + var(--space-80)) calc(10.375rem + 10.7vw); /* 下 166px＋丘の下まで */
    background-image: url("assets/images/top/access-bg.png"), linear-gradient(var(--color-surface-white), var(--color-surface-white));
  }

  .p-top-access__inner {
    gap: var(--space-64);
  }

  .p-top-access__main,
  .p-top-recruit {
    max-width: none;
  }

  .p-top-access__main {
    display: grid;
    grid-template-columns: 1fr 35rem; /* 地図 560px */
    gap: 0 var(--space-32);
    justify-items: center;
  }

  .p-top-access__main > * {
    grid-column: 1;
  }

  .p-top-access__logo {
    width: 18.75rem; /* 300px */
    margin-block: var(--space-32) var(--space-24);
  }

  .p-top-access__info {
    gap: 0.875rem; /* 14px */
  }

  .p-top-access__info-item {
    font-size: var(--fs-body-lg);
  }

  .c-button.p-top-access__button {
    margin-top: var(--space-32);
  }

  .p-top-access__main > .p-top-access__map-column {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }

  .p-top-access__map {
    border-radius: var(--radius-24);
  }

  .p-top-access__map::before {
    inset: calc(var(--space-8) * -1);
    border-radius: var(--space-32);
  }

  .p-top-recruit {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem; /* 56px */
    padding: var(--space-32) var(--space-64) var(--space-32) var(--space-32);
  }

  .p-top-recruit::before {
    inset: var(--space-12);
    border-radius: var(--radius-16);
  }

  .p-top-recruit__photo {
    flex: none;
    width: 32.5rem; /* 520px */
    border-radius: var(--radius-16);
  }

  .p-top-recruit__body {
    flex: 1;
    padding: 0;
  }

  .p-top-recruit__deco--can {
    top: -2.576rem;
    right: 0.74rem;
    width: 7.89rem;    /* 106.42pxを-12度傾けた外枠 */
  }

  .p-top-recruit__deco--sprout {
    right: 1.25rem;
    bottom: 0.625rem;
    width: 5.625rem;   /* 90px */
  }
}

/* ==========================================================
   「動きを減らす」設定のときは、動きを止めて表示する
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .l-footer__deco,
  .l-footer__deco img,
  .l-footer__bird img,
  .l-footer__family-people,
  .p-top-intro__deco > *,
  .p-top-features__frame,
  .p-top-education__shape,
  .p-top-education__frame,
  .p-top-lunch__shape,
  .p-top-lunch__frame,
  .p-top-education__slider-track,
  .p-top-support__track,
  .p-top-visit__track,
  .p-top-parents__deco,
  .p-top-parents__deco img,
  .p-top-parents__sign {
    animation: none !important;
  }

  .is-js .p-top-parents .p-top-parents__sign {
    opacity: 1;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   ユーティリティ
   ========================================================== */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 768px未満でのみ表示 / 768px以上でのみ表示 */
@media (min-width: 768px) {
  .u-sp-only {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .u-pc-only {
    display: none !important;
  }
}
