@charset "utf-8";
/* ==========================================================================
   style.css  ―  全ページ共通スタイル
   FLOCSS ベースの命名
     l-  : layout（header / footer / main など大枠）
     c-  : component（ボタン・見出しなど使い回すパーツ）
     p-  : project（ページ固有 → assets/css/page/*.css に記述）
     u-  : utility
     js- : JavaScript のフック（スタイルは当てない）
   目次
     1. 変数（カスタムプロパティ）
     2. ベース
     3. レイアウト（l-）
     4. コンポーネント（c-）
     5. ユーティリティ（u-）
   ========================================================================== */


/* ==========================================================================
   1. 変数
   ========================================================================== */
:root {
  /* --- color（カンプからの実測値。XDのカラーピッカーで最終確認してください） --- */
  --color-cream: #fffaea;        /* 背景・カード */
  --color-soil: #7e5625;        /* 土（#643a00 ＋ テクスチャ41.7% の合成結果） */
  --color-brown: #643a00;        /* 濃茶：見出し文字・フッター背景（実測・完全な単色） */
  --color-green-dark: #465d32;   /* 深緑：保護者の声の背景（実測・完全な単色） */
  --color-green: #447444;        /* 緑：見出し文字 */
  --color-green-btn: #5ca444;    /* 緑：ボタン */
  --color-green-leaf: #749434;   /* 黄緑：ブロブ装飾 */
  --color-orange: #ff9c04;       /* うごきのねっこ・カテゴリ */
  --color-orange-btn: #ff8c04;   /* オレンジボタン（SPのみ） */
  --color-red: #e41c2c;          /* こころのねっこ・集中線 */
  --color-line: #06c755;         /* LINE ブランドカラー */

  --color-text: var(--color-brown);
  --color-bg: var(--color-cream);
  --color-border: #e3ddd3;

  /* --- font ---
     見出し・ポイント・ボタン・英字見出し … モッチーポップ（Google Fonts / 400のみ）
     詳細文 …………………………………… 筑紫A丸ゴシック（要Webフォント契約）
     FVキャッチ ……………………………… Sicたいぷ → 画像で書き出し
     LINEボタン ……………………………… Noto Sans JP Bold（Google Fonts / 700のみ読み込み）
     ※モッチーポップは漢字に Noto Sans を使用（かな＝ポップ体／漢字＝角ゴシックの混植）
     ※モッチーポップはウェイトが1つだけ。太字指定は効きません */
  --font-heading: "Mochiy Pop P One", "Hiragino Maru Gothic ProN", sans-serif;
  --font-btn: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-base: "Tsukushi A Round Gothic", "TsukuARdGothic-Regular",
               "Hiragino Maru Gothic ProN", "Zen Maru Gothic", sans-serif;

  /* --- layout --- */
  --width-content: 1100px;
  --width-narrow: 800px;
  --padding-sp: 24px;
  --header-height: 70px;

  /* --- other --- */
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
  --z-header: 100;
  --z-drawer: 200;
}


/* ==========================================================================
   2. ベース
   ========================================================================== */
html {
  font-size: 62.5%;          /* 1rem = 10px として扱う */
  scroll-behavior: smooth;
  scroll-padding-top: 100px;  /* 追従ヘッダーの下にアンカー先が隠れないように */
}

body {
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 1.6rem;
  line-height: 1.9;
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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


/* ==========================================================================
   3. レイアウト（l-）
   ========================================================================== */

.l-inner {
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: var(--padding-sp);
}

/* --- header --------------------------------------------------------------
   FVの上に浮かせる。カンプ実測：
     白いバー   左28px / 高さ58px / 角丸は全丸
     LINEボタン 幅283px / 高さ66px / 角丸20px（2026-10 カンプ更新）
     バーとボタンの間  10px
   -------------------------------------------------------------------------- */
.l-header {
  /* 横幅はカンプ1366pxのヘッダー位置（x28.5〜1343）と同じ比率。
     ロゴ側はキャッチコピーの文字より55px外、LINEボタン側は45px外に出る。
     1366pxより広い画面では中央の1366px枠を基準にして、それ以上は広げない */
  position: fixed;   /* PC・SPともスクロールに追従 */
  top: 20px;
  left: max(2.085%, calc(50% - 654.5px));
  width: min(96.23%, 1314.5px);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  gap: 10px;
}

.l-header__bar {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 58px;
  padding: 0 30px 0 22px;
  background-color: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgb(60 40 10 / 0.08);
}

.l-header__logo {
  flex-shrink: 0;
  line-height: 0;
}

.l-header__logo img {
  width: 157px;
  height: auto;
}

.l-header__line { flex-shrink: 0; }   /* 大きさは .c-btn より後ろ（4. コンポーネント）で指定 */

.l-header__drawer { display: none; }

/* --- nav --- */
.l-nav {
  margin-left: auto;
}

.l-nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}

.l-nav__item a {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-brown);
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}

.l-nav__item a:hover { color: var(--color-green-btn); }

/* 木のアイコンとLINEボタンはSPのメニューだけで使う */
.l-nav__icon,
.l-nav .l-nav__line { display: none; }   /* .c-btn より強くする */

/* --- main --- */
.l-main { overflow-x: clip; }

/* --- footer -------------------------------------------------------------
   カンプ実測（1366px幅・ページ左上からの絶対座標）
     クリーム→濃茶の波 … 上端 y9014.5（振幅28.5px）
     ロゴ ………………… 左100  上9034  241.5×299.5
     キャッチ …………… 左385  上9044（約54px）
     メニュー …………… 1列目 アイコン429/文字483 ／ 2列目 アイコン700/文字753
                        3行（行送り58px）
     LINEボタン ……… 右端1320  352×74.5・角丸20px（2026-10 カンプ更新。上端はメニュー2行目と中心揃え）
     プライバシー ……… 右端1222 上9342
     コピーライト ……… 右端1270 上9369
   ------------------------------------------------------------------------ */
.l-footer {
  position: relative;
  /* 上のアキはカンプ実測。キャッチコピーの字面の上端が、フッター上端から64px */
  padding: 47px 0 28px;
  color: #fff;
  background-color: var(--color-brown);
}

/* 上端の茶色のうねうね。
   いただいた wave-07-cream-footer.svg は高さ436.664pxの箱の中で、
   上端28.8pxだけがうねっている形。そのまま30pxに潰すとうねりが消えるため、
   曲線部分だけを取り出した wave-07-cream.svg（クリーム側の形）を重ねている。 */
.l-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 30px;
  background-color: var(--color-cream);
  -webkit-mask-image: url(../images/common/wave-07-cream.svg);
          mask-image: url(../images/common/wave-07-cream.svg);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* カンプ基準の1366pxを最大幅にして中央寄せ。
   その中で「左100px／右96px」の余白を取ると、カンプと同じ配置になる。
   ％の余白だと画面が広いときに中身が右へ流れてバランスが崩れる。 */
.l-footer__inner {
  display: flex;
  gap: 39px;
  width: min(1366px, 100%);
  margin-inline: auto;
  padding-right: 46px;   /* LINEボタンの右端 1320px に合わせる */
  padding-left: 100px;
}

.l-footer__logo {
  flex: 0 0 241.5px;
  padding-top: 18px;   /* カンプではロゴの上端がキャッチコピーの字面と同じ高さ */
  line-height: 0;
}

.l-footer__logo a {
  display: block;
  transition: opacity var(--duration) var(--ease);
}

.l-footer__logo a:hover { opacity: .7; }

.l-footer__logo img { width: 100%; height: auto; }

.l-footer__main { flex: 1; min-width: 0; }

/* キャッチコピーはFVと同じ描き文字なので画像。カンプ実測で
   字面が フッター上端から64px・メインカラム左端から12.5px、幅674.5px */
.l-footer__catch {
  margin-top: 16px;
  margin-left: 11.5px;
  line-height: 0;
}

.l-footer__catch img {
  width: min(676.5px, 100%);
  height: auto;
}

.l-footer__row {
  display: flex;
  align-items: flex-start;
  margin-top: 44px;   /* カンプ：1行目のアイコン上端がフッター上端から182px */
}

/* --- メニュー：2列×3行 --- */
.l-footer__nav {
  padding-left: 44px;   /* カンプのアイコン位置 429px に合わせる */
}

.l-footer__nav ul {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, 60px);   /* カンプの行送り60px */
  grid-template-columns: 271px auto;
  align-items: center;
}

.l-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  white-space: nowrap;
  transition: opacity var(--duration) var(--ease);
}

.l-footer__nav a:hover { opacity: .7; }

.l-footer__nav img {
  flex-shrink: 0;
  width: 36px;
  height: auto;
}

/* --- 右側：ボタンと表記 --- */
.l-footer__side {
  margin-left: auto;
  padding-top: 46px;
  text-align: center;
}

.l-footer__side .c-btn {
  min-width: 352px;
  min-height: 74px;
  font-size: 2.3rem;
}

.l-footer__privacy {
  margin-top: 64px;
  font-size: 1.4rem;
}

.l-footer__privacy a {
  font-family: var(--font-heading);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity var(--duration) var(--ease);
}

.l-footer__privacy a:hover { opacity: .7; }

.l-footer__copyright {
  margin-top: -3px;   /* 上のリンクの行間ぶんを詰めてカンプの行位置に合わせる */
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   4. コンポーネント（c-）
   ========================================================================== */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 28px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  background-color: var(--color-green-btn);
  border-radius: 999px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.c-btn:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.c-btn--line { background-color: var(--color-line); }
.c-btn--red  { background-color: var(--color-red); }

/* LINEボタン（ヘッダー・CTA・フッター）はカンプで書体と形が違う：
   Noto Sans JP Bold・全丸ではなく角丸20pxの長方形 */
.c-btn--line {
  font-family: var(--font-btn);
  font-weight: 700;
  border-radius: 20px;
}

/* ヘッダーのLINEボタン。.c-btn より後ろに置いて大きさを上書きする */
.l-header__line {
  min-width: 283px;
  min-height: 66px;
  padding: 0 16px;
  font-size: 2rem;
}

/* ==========================================================================
   体験のご案内（CTA）
   --------------------------------------------------------------------------
   カンプ実測
     カード ……… 左81 上8331  1197×589.5（角丸47px）
     見出し ……… y8506.5
     本文3行 …… y8588 / 8616.5 / 8645（行送り28.5px）

   cta-illust は99.7%が不透明（角丸の部分だけ透過）だったので、
   JPEG＋CSSの角丸に置き換えている（3.6MB → 231KB）。
   ========================================================================== */
.c-cta {
  padding-bottom: 86.5px;
  background-color: var(--color-cream);
}

.c-cta__card {
  width: min(1197px, 92%);
  aspect-ratio: 1197 / 589.5;
  margin-inline: auto;
  padding-top: 10.4%;          /* 589.5px中 175.5px から逆算 */
  text-align: center;
  background-image: url(../images/top/cta-illust.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 47px;
}

.c-cta__title {
  /* padding-left は、字間の最後の1文字ぶんのアキで中央がずれるのを打ち消す分 */
  padding-left: 0.16em;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0.16em;   /* カンプは1文字あたり49.6px送り */
  color: var(--color-green);
}

.c-cta__text {
  margin-top: 34px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.78;
  color: var(--color-brown);
}

.c-cta__mark { color: var(--color-orange); }

/* 2026-10 カンプ更新：ボタン 410×60・見出しの中心からボタンの中心まで215px */
.c-cta__action { margin-top: 46px; }

.c-cta__action .c-btn {
  min-width: 410px;
  min-height: 60px;
  font-size: 2.3rem;
}

/* 768〜1100px：カードの比率のままだと高さが足りず、ボタンが草地にかかるので
   カードを縦に伸ばし、イラストは下揃えにして木と草地を残す */
/* --- 1101〜1365px：ヘッダー・フッターのLINEボタンとメニュー間隔を
   画面幅に比例して縮める（1366pxのカンプ値 × 100vw / 1366）。
   カンプの大きさのままだと、ヘッダーはメニューが白いバーからはみ出し、
   フッターはボタンが画面の右へはみ出す --- */
@media screen and (min-width: 1101px) and (max-width: 1365px) {
  .l-nav__list { gap: calc(34 * 100vw / 1366); }

  .l-header__line {
    min-width: calc(283 * 100vw / 1366);
    font-size: calc(20 * 100vw / 1366);
  }

  /* フッターは文字の大きさはそのままで、ロゴ・余白・列幅だけ縮める
     （ボタンだけ縮めるとメニュー2列目が押されて折り返すため） */
  .l-footer__inner {
    gap: calc(39 * 100vw / 1366);
    padding-right: calc(46 * 100vw / 1366);
    padding-left: calc(100 * 100vw / 1366);
  }

  .l-footer__logo { flex-basis: calc(241.5 * 100vw / 1366); }

  .l-footer__nav { padding-left: calc(44 * 100vw / 1366); }

  .l-footer__nav ul { grid-template-columns: calc(271 * 100vw / 1366) auto; }

  .l-footer__side .c-btn {
    min-width: calc(352 * 100vw / 1366);
    font-size: calc(23 * 100vw / 1366);
  }
}

/* --- フッター：1100px以下は1カラム（PCの固定幅のままだと収まらない） --- */
@media screen and (max-width: 1100px) {
  .l-footer {
    padding-top: 0;
    text-align: center;
  }

  .l-footer__inner {
    display: block;
    padding-right: 6%;
    padding-left: 6%;
  }

  /* カンプ：ロゴの字面がフッター上端から55px・幅131px、
     キャッチの字面が上から290px（ロゴの下から72px） */
  .l-footer__logo {
    width: 131px;
    margin-inline: auto;
    padding-top: 55px;
  }

  .l-footer__main { min-width: 0; }

  .l-footer__catch {
    width: min(100% - 24px, 318px);
    margin: 0 auto;
    padding-top: 72px;   /* margin だと相殺されてロゴにくっつくので padding */
  }

  .l-footer__row {
    display: block;
    margin-top: 36px;
  }

  .l-footer__nav {
    display: inline-block;
    padding-left: 0;
    text-align: left;
  }

  .l-footer__nav ul {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }

  .l-footer__side {
    margin: 36px auto 0;
    padding-top: 0;
  }

  .l-footer__privacy { margin-top: 36px; }
}


.c-section-title {}
/* --- 下層ページの見出し -------------------------------------------------
   カンプ実測（プライバシーポリシー）
     Privacy Policy …… 上170.5（約18px）
     大見出し ………… 上218（約44px）
     本文の開始 ……… 上420.5
     左右の余白 ……… 左134px(9.81%) / 右余白12.15% ／ 本文の折り返し幅1066px
     → 最大幅1366px・左右10%のパディングで、見出しと本文の左端を揃えている
   ヘッダーは position:absolute でページの上に浮くので、
   下層ページでは padding-top で中身を押し下げている。
   ------------------------------------------------------------------------ */
.c-page-head {
  width: min(1366px, 100%);
  margin-inline: auto;
  padding: 169px 10% 0;
}

.c-page-head__en {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--color-green);
}

.c-page-head__title {
  margin-top: 27px;
  font-family: var(--font-heading);
  font-size: 4.4rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-green);
}
.c-breadcrumb {}
/* --- 記事リスト（TOP・お知らせ一覧で共通） --------------------------------
   カンプ実測（TOP／お知らせ一覧とも同寸）
     サムネイル ……… 115×115（枠1px込み）
     行ピッチ ………… 153px ＝ 上21 ＋ 115 ＋ 下16 ＋ 区切り線1
     サムネ→本文 …… 31.5px
     日付 …………… サムネ上端＋11.5px の位置に文字（幅82px＝12px）
     カテゴリ ……… サムネ上端＋30.5px、124×24
     タイトル ……… サムネ上端＋63px（16px・1行）
   ------------------------------------------------------------------------ */
.c-news-list__item { border-bottom: 1px solid #c8c0ae; }

.c-news-list__item a {
  display: flex;
  gap: 31.5px;
  align-items: flex-start;
  padding: 21px 0 16px;
  transition: opacity var(--duration) var(--ease);
}

.c-news-list__item a:hover { opacity: .7; }

.c-news-list__thumb {
  flex: 0 0 115px;
  line-height: 0;
}

.c-news-list__thumb img {
  width: 115px;
  height: 115px;
  object-fit: cover;
  border: 1px solid var(--color-green);
  border-radius: 20px;
}

.c-news-list__body { min-width: 0; padding-top: 10px; }

.c-news-list__date {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-brown);
}

.c-news-list__cat {
  display: inline-block;
  min-width: 124px;
  margin-top: 9px;
  padding: 2.25px 14px;
  font-size: 1.3rem;
  line-height: 1.4;
  text-align: center;
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
  border-radius: 999px;
}

.c-news-list__ttl {
  /* line-height の余白ぶん食い込ませてカンプの行位置に合わせる */
  margin-top: -1px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-brown);
}


/* --- ページネーション ----------------------------------------------------
   カンプ実測：全体 x548.5〜817.5（269px）を中央寄せ
     丸 34×34（線2.3px）／数字の枠30px・間隔22px／丸と数字の間 33.5px
     数字は18px・下線は文字の下8px／ラベルは14px・丸の12px下
   ------------------------------------------------------------------------ */
.c-pagination {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 33.5px;
  margin-top: 70px;
}

.c-pagination__arrow {
  display: grid;
  gap: 11px;
  justify-items: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-green);
  transition: opacity var(--duration) var(--ease);
}

.c-pagination__arrow:hover { opacity: .7; }

.c-pagination__arrow::before {
  content: "";
  width: 34px;
  height: 34px;
  background-color: currentcolor;
  -webkit-mask-image: url(../images/common/icon-arrow.svg);
          mask-image: url(../images/common/icon-arrow.svg);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

.c-pagination__arrow--prev::before { transform: scaleX(-1); }

.c-pagination__nums {
  position: relative;
  top: -1px;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 34px;
}

.c-pagination__nums a,
.c-pagination__nums span {
  display: block;
  width: 30px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
  text-align: center;
  color: var(--color-green);
}

.c-pagination__nums a { transition: opacity var(--duration) var(--ease); }
.c-pagination__nums a:hover { opacity: .7; }

.c-pagination__nums [aria-current="page"] { position: relative; }

.c-pagination__nums [aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background-color: currentcolor;
}

/* --- WordPress 本文エリア（the_content）用 ------------------------------
   エディタから出力される h2 / p / ul / dl などに、まとめてスタイルを当てる。
   カンプ実測：本文の左端134px・折り返し幅906px・行送り30.5px
   ------------------------------------------------------------------------ */
.c-wysiwyg {
  font-size: 1.5rem;
  line-height: 2.04;
  color: var(--color-brown);
}

.c-wysiwyg h2 {
  margin-top: 22px;
  margin-bottom: 2px;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.6;
}

.c-wysiwyg h2:first-child { margin-top: 0; }

.c-wysiwyg p + p { margin-top: 0; }

.c-wysiwyg ul { margin: 0; }

.c-wysiwyg li {
  padding-left: 1em;
  text-indent: -1em;
}

.c-wysiwyg li::before { content: "・"; }

.c-wysiwyg a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c-wysiwyg__info {
  margin-top: 34px;
}

.c-wysiwyg__info div { display: flex; }
.c-wysiwyg__info dt { font-weight: 700; }
.c-wysiwyg__info dt::after { content: "："; }

.c-wysiwyg__date { margin-top: 34px; font-weight: 700; }

/* 本文ページの下側の余白 */
/* 下層ページの本文ブロック。見出しと同じ基準（最大1366px・左右10%）で揃える */
.p-privacy-body {
  width: min(1366px, 100%);
  margin-inline: auto;
  padding: 156px 10% 150px;   /* 上は見出しブロックからの間隔（カンプ実測161.5px） */
}


/* --- 土のテクスチャ背景 -------------------------------------------------
   bg-soil.png は継ぎ目なしで繰り返せる512px角のタイル（2倍書き出し相当）。
   縦にいくら長いセクションでも1枚（約30KB）で足ります。 */
.u-bg-soil {
  background-color: var(--color-soil);
  background-image: url(../images/common/bg-soil.png);
  background-repeat: repeat;
  background-size: 256px auto;
}


/* --- 見出しのカギカッコ・！ ------------------------------------------------
   Mochiy Pop P One は約物（「 」 ！ など）の文字幅だけ詰めてあり、字の形の位置が
   全角のまま残っている。Chrome は補正して描くが、Safari（iPhone・Mac）は字の形が
   右へずれて ！と」が重なる。
   → 約物だけ同じデザインの全角版 Mochiy Pop One で描き、margin で
     P One と同じ幅・同じ位置に戻す（どのブラウザでも同じ見た目になる）
   <span class="c-kakko"><span class="is-open">「</span>…<span class="is-mark">！</span><span class="is-close">」</span></span>
   -------------------------------------------------------------------------- */
.c-kakko { white-space: nowrap; }
.c-kakko > span { font-family: "Mochiy Pop One", var(--font-heading); }
.c-kakko > .is-open  { margin-inline: -0.578em -0.014em; }   /* 幅0.408em */
.c-kakko > .is-mark  { margin-inline: -0.379em -0.37em; }    /* 幅0.251em */
.c-kakko > .is-close { margin-inline: -0.01em -0.59em; }     /* 幅0.42em */


/* ==========================================================================
   5. ユーティリティ（u-）
   ========================================================================== */
.u-pc { display: inline; }
.u-sp { display: none; }

/* --- スクロールでふわっと表示 ---
   .js-fadein は main.js が対象要素に自動で付与する（JSが動かない環境では何も隠れない）。
   既存の transform（中央寄せ等）と干渉しないよう、個別プロパティの translate で動かす。
   --fade-delay は並んだ要素を順番に出すための遅延（main.js が設定） */
.js-fadein {
  opacity: 0;
  translate: 0 32px;
  transition:
    opacity 0.9s var(--ease) var(--fade-delay, 0s),
    translate 0.9s var(--ease) var(--fade-delay, 0s);
}

.js-fadein.is-active {
  opacity: 1;
  translate: none;
}

/* ページ上部（MV・ページ見出し）は動かさずに淡く出すだけ */
.js-fadein--soft { translate: none; transition-duration: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .js-fadein,
  .js-fadein.is-active { opacity: 1; translate: none; transition: none; }
}


/* ==========================================================================
   6. SP（〜767px）
   ========================================================================== */
@media screen and (max-width: 1100px) {
  /* SPレイアウトの中身は画面いっぱいに広げず、幅を決めて中央に寄せる。
     --sp-max … 中身の最大幅 ／ --sp-gut … 左右の最小アキ
     背景写真・波・点線の道など「画面いっぱいに見せたいもの」には使わない */
  :root { --sp-max: 768px; --sp-gut: 24px; }

  .u-pc { display: none; }
  .u-sp { display: inline; }

  /* 見出しの約物（4. コンポーネント .c-kakko）… SPは詰まって見えるので1文字0.7emに広げる */
  .c-kakko > .is-open  { margin-inline: -0.3em 0; }
  .c-kakko > .is-mark  { margin-inline: -0.15em; }
  .c-kakko > .is-close { margin-inline: 0 -0.3em; }

  body { font-size: 1.5rem; }

  /* ヘッダーはカンプ実測（393px幅）。白い角丸の帯ひとつの中に
     ロゴ・LINEボタン・メニューボタンが入る。
       帯 ……… 左10.5 右9 上11 / 高さ68（角丸34）
       ロゴ …… 左22.5 幅158.5
       LINE … 左213 幅94 / 高さ55（角丸12）
       メニュー 左313 幅53 / 高さ55 */
  .l-header {
    top: 11px;
    right: 9px;
    left: 10.5px;
    width: auto;
    align-items: center;
    gap: 6px;
    min-height: 68px;
    padding: 0 18px 0 12px;
    background-color: #fff;
    border-radius: 34px;
    box-shadow: 0 2px 12px rgb(60 40 10 / 0.08);
  }

  .l-header__bar {
    flex: 0 1 auto;
    height: auto;
    padding: 0;
    margin-right: auto;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .l-header__logo img { width: 158.5px; }

  .l-header__line {
    flex-direction: column;
    gap: 3px;
    min-width: 94px;
    min-height: 55px;
    padding: 0 2px;
    font-size: 1.1rem;   /* XDの指定 */
    line-height: 1.15;
    border-radius: 12px;
  }

  /* 文言が2行（無料相談／体験予約）になったので、アイコンを少し小さくして
     ハンバーガーと同じ高さ55pxに収める */
  .l-header__line-icon {
    width: 22px;
    height: auto;
    border-radius: 22%;   /* 元画像の角の外側（緑）を落とす */
  }

  /* ハンバーガー */
  .l-header__drawer {
    display: grid;
    flex-shrink: 0;
    place-content: center;
    gap: 6px;
    width: 53px;
    height: 55px;
    background-color: var(--color-brown);
    border-radius: 12px;
  }

  .l-header__drawer span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  }

  .l-header__drawer[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .l-header__drawer[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .l-header__drawer[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* ドロワー本体（カンプ実測・393px幅）
       背景 ………… 土のテクスチャ
       ×ボタン …… 開く前のメニューボタンと同じ位置（左313 上18）。
                    ヘッダー自体も fixed（追従）。開いたときは×をカンプの位置に置く
       カード ……… menu-card.svg（影の余白込み 381×664）左6 上126
       木 ………… 146×144 カード左上から 左40 上-48
       メニュー … 25px・行の間隔77px／1行目の中心がカード上端から157px・左55px
       LINE ……… 296×75・22px（角丸25）カード上端から527px */
  .l-header__drawer {
    position: relative;
    z-index: calc(var(--z-drawer) + 1);
  }

  .is-drawer-open .l-header__drawer {
    position: fixed;
    top: 18px;
    right: 27px;
  }

  .l-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: var(--color-soil);
    background-image: url(../images/common/bg-soil.png);
    background-size: 256px auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
  }

  .is-drawer-open .l-nav {
    opacity: 1;
    visibility: visible;
  }

  .l-nav__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(381px, 100% - 12px);
    height: 664px;
    margin: 126px auto 40px;
    padding: 142px 0 0 55px;
    background: url(../images/common/menu-card.svg) no-repeat center / 100% 100%;
  }

  .l-nav__icon {
    position: absolute;
    top: -48px;
    left: 40px;
    display: block;
    width: 146px;
    height: auto;
  }

  .l-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 47px;
  }

  .l-nav__item a {
    display: block;
    font-size: 2.5rem;
    line-height: 30px;
    color: var(--color-green);
  }

  .l-nav .l-nav__line {   /* .c-btn（SP）より強くする */
    display: flex;
    width: 296px;
    min-height: 75px;
    margin: 47px 0 0 -11px;
    padding: 0 14px;
    font-size: 2rem;   /* 「LINEで無料相談・体験予約」が1行に収まる大きさ */
    border-radius: 25px;
  }

  .c-btn {
    min-height: 54px;
    font-size: 1.5rem;
  }

  /* 下層ページの見出し・本文
     カンプ（393px）実測：左余白18px／英字 上131／大見出し 上156.5（26px）
     本文15px・行送り30px／h2は18px・前の段落から29px空ける */
  .c-page-head { padding: 130px 18px 0; }
  .c-page-head__en { font-size: 1.3rem; }
  .c-page-head__title { margin-top: 10px; font-size: 2.6rem; }
  .c-wysiwyg { font-size: 1.5rem; line-height: 2; }
  .c-wysiwyg h2 { margin-top: 29px; font-size: 1.8rem; }
  .c-wysiwyg__info,
  .c-wysiwyg__date { margin-top: 30px; }
  .p-privacy-body { padding: 57px 18px 80px; }

  /* --- 体験のご案内（CTA）---------------------------------------------
     カンプ実測：カード 左右13px・367×551（cta-illust-sp.jpg と同じ比率）
       見出し 18px・カード上端から154px（幅の42%）
       本文 12px・行送り28px／ボタン 308×60（カード幅の84%）
     ------------------------------------------------------------------- */
  .c-cta { padding-bottom: 45px; }

  /* タブレットで画面幅いっぱいに広げるとイラストだけ大きくなり文字が小さく見えるので、
     カードは560pxで止める。中の文字・余白はカード幅（cqi）に比例させ、
     SPカンプのカード幅367pxのときにカンプの値になるようにしている（N / 367 * 100cqi） */
  .c-cta__card {
    container-type: inline-size;
    width: min(560px, 100% - 26px);
    aspect-ratio: 734 / 1102;
    padding-top: calc(min(560px, 100% - 26px) * 0.42);   /* ％は親の幅基準なのでカード幅に直す */
    background-image: url(../images/top/cta-illust-sp.jpg);
    border-radius: 20px;
  }

  .c-cta__title {
    padding-left: 0.07em;
    font-size: 4.905cqi;     /* 18px */
    letter-spacing: 0.07em;
  }

  .c-cta__text {
    margin-top: 2.725cqi;    /* 10px */
    font-size: 3.27cqi;      /* 12px */
    line-height: 7.63cqi;    /* 28px */
  }

  .c-cta__action { margin-top: 7.085cqi; }   /* 26px */

  .c-cta__action .c-btn {
    width: 84%;
    min-width: 0;
    min-height: 16.35cqi;    /* 60px */
    font-size: 5.45cqi;      /* 20px */
  }

  /* --- フッター --- */
  /* カンプ：ロゴの字面が上端から55px、キャッチはその72px下 */
  .l-footer { padding: 0 0 32px; }
  .l-footer::before { height: 18px; }
  .l-footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding-inline: 6%;
  }
  .l-footer__logo { flex: none; width: 131px; margin-inline: auto; padding-top: 55px; }
  .l-footer__main { width: 100%; text-align: center; }
  .l-footer__catch { width: min(100% - 24px, 318px); margin: 0 auto; padding-top: 56px; }
  .l-footer__row { flex-direction: column; align-items: stretch; margin-top: 28px; }
  /* カンプ：メニューは中央寄せではなく、アイコン左端が画面左から53.5px
     （キャッチの「夢中」の真ん中あたり）。行送り59px */
  .l-footer__nav { display: block; }
  .l-footer__nav ul {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
    width: fit-content;
    /* キャッチ画像（min(100% - 24px, 318px)を中央寄せ）の字面左端から10.5px右
       ＝カンプの53.5px。画面幅が変わってもキャッチに追従する */
    margin-left: calc((100% - min(100% - 24px, 318px)) / 2 + 16px);
    margin-right: auto;
  }
  .l-footer__nav a { gap: 16.5px; font-size: 1.8rem; }
  .l-footer__nav img { width: 37px; }
  .l-footer__side { margin: 32px auto 0; padding-top: 0; text-align: center; }
  .l-footer__side .c-btn { min-width: 0; width: min(320px, 82vw); min-height: 60px; font-size: 1.5rem; }
  .l-footer__privacy { margin-top: 28px; }
  .l-footer__copyright { font-size: 1.1rem; }

  /* .c-btn の指定より後ろに置いて、ヘッダーのLINEボタンだけXD指定の11pxにする */
  .l-header__line { font-size: 1.1rem; }
}

/* 768px以下はさらに絞って、スマホのデザイン幅で止める */
@media screen and (max-width: 768px) {
  :root { --sp-max: 390px; --sp-gut: 12px; }
}

/* --- WordPress：前後のページが無いときの矢印（レイアウトを保つため場所だけ残す） --- */
.c-pagination__arrow.is-disabled { visibility: hidden; }
