@charset "utf-8";

/* ============================================================
   common.css
   header・footer など全ページ共通のスタイルを管理する
   このファイルには header のPC版・SP版のスタイルが含まれる
============================================================ */


/* ============================================================
   共通：最大幅制御
   - .header-wrapper で背景色を画面全幅に広げる
   - .header に max-width: 1440px を指定して中央固定
   - これにより W1440px を超えても横に広がらない
============================================================ */
.header-wrapper {
  width: 100%;
  background: var(--color-white);
}

.header {
  max-width: 1440px;
  margin: 0 auto; /* 左右中央寄せ */
}


/* ============================================================
   PC版ヘッダー（1201px以上で表示）
   構造：header > top-row + nav-row
============================================================ */

/* ヘッダー全体：top-row と nav-row を縦に並べる。左右paddingはclampで可変 */
.header {
  display: flex;
  width: 100%;
  height: 170px; /* top-row(120px) + nav-row(50px) */
  padding: 0 clamp(24px, 5.5vw, 80px);
  flex-direction: column;
  align-items: flex-start;
}


/* ----------------------------------------------------------
   top-row：ロゴエリア ＋ ボタンエリアの横並び
---------------------------------------------------------- */
.header__top-row {
  display: flex;
  height: 120px;
  width: 100%;
  padding: 24px 0 8px 0;
  justify-content: space-between; /* 左：ロゴ / 右：ボタン */
  align-items: center;
  flex-shrink: 0;
  align-self: stretch;
}


/* ----------------------------------------------------------
   logo-area：ロゴ画像 ＋ 法人名テキスト
   - flex-shrink: 1 で画面が狭くなったときに縮む
   - min-width: 0 で flex item がはみ出ないよう制御
---------------------------------------------------------- */
.header__logo-area {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
}

/* ロゴ画像 */
.header__logo-area .logo {
  width: 126px;
  height: auto;
  flex-shrink: 0; /* ロゴ画像は縮まないよう固定 */
}

/* 法人名テキストの縦並びラッパー */
.header__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 「NPO法人」サブテキスト
   - clamp：1200px時16px 〜 1440px時20px（2点を通る一次関数）
   - line-height はメインと同じ140%（サブの行高がメインを超えないようにする）
*/
.header__name-sub {
  font-family: var(--font-sans);
  font-size: clamp(16px, calc(1.67vw - 4px), 20px);
  font-weight: 400;
  line-height: 140%;
  color: var(--color-text-body);
}

/* 「ふれあいペアレントプログラム協会」メインテキスト
   - clamp：1200px時18px 〜 1440px時26px
*/
.header__name-main {
  font-family: var(--font-sans);
  font-size: clamp(18px, calc(3.33vw - 22px), 26px);
  font-weight: 700;
  line-height: 140%;
  color: var(--color-text-body);
}


/* ----------------------------------------------------------
   btn-area：CTAボタン2つの横並び
---------------------------------------------------------- */
.header__btn-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* seminar ボタン（オレンジ・外部リンクなし）
   - width: auto + white-space: nowrap でテキストを1行に保つ
   - min-width: clamp で画面幅に応じて最小幅を変化
*/
.header__btn--seminar {
  display: flex;
  width: auto;
  min-width: clamp(180px, 20vw, 343px);
  height: 56px;
  padding: 8px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap; /* テキストを1行に固定 */
  transition: opacity 0.2s ease;
}

/* ホバー時：少し透明にして押せる感を演出 */
.header__btn--seminar:hover {
  opacity: 0.85;
}

/* seminar ボタンのラベルテキスト：clampで14〜18pxに可変 */
.header__btn--seminar .btn__lbl {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 175%;
  color: var(--color-white);
  text-align: center;
}

/* seminar ボタンの矢印アイコン（arr-white.png） */
.header__btn--seminar .btn__arr {
  width: 16px;
  height: 16px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0; /* 矢印は縮まないよう固定 */
  display: block;
}

/* contact ボタン（グリーン・外部リンクアイコンあり）：幅はclampで140〜200px */
.header__btn--contact {
  display: flex;
  width: clamp(140px, 14vw, 200px);
  height: 56px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header__btn--contact:hover {
  opacity: 0.85;
}

/* contact ボタンのラベルテキスト */
.header__btn--contact .btn__lbl {
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 175%;
  color: var(--color-white);
  text-align: center;
}

/* contact ボタンの外部リンクアイコン（PNG） */
.header__btn--contact .icon-external {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}


/* ----------------------------------------------------------
   nav-row：グローバルナビゲーション
---------------------------------------------------------- */
.header__nav-row {
  display: flex;
  height: 50px;
  width: 100%;
  padding: 8px 0;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  align-self: stretch;
}

/* ============================================================
   ナビのリスト全体
   - nowrap＋flex:1 で1行固定のまま親幅いっぱいに広げる
   - gap は clamp（1200px時17px〜1440px時24px）。ナビ文字の縮小に
     合わせて余白も同じペースで縮め、間延びして見えるのを防ぐ
============================================================ */
.header__list {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: clamp(17px, calc(2.92vw - 18px), 24px);
  flex: 1 0 0;
  flex-wrap: nowrap; /* 折り返しなし：1行固定 */
}

/* ============================================================
   各ナビアイテム
   - border-right で区切り線を表示
   - 項目間の見た目の間隔は gap と padding-right の合計になるため、
     padding-right にも .header__list の gap と同じ clamp 式を使い
     バランスを保つ
============================================================ */
.header__item {
  display: flex;
  padding: 0 clamp(17px, calc(2.92vw - 18px), 24px) 0 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-right: 2px solid var(--color-primary);
}

/* 先頭アイテムは左paddingなし（端に揃える） */
.header__item:first-child {
  padding-left: 0;
}

/* 末尾アイテムは区切り線・右paddingなし */
.header__item:last-child {
  border-right: none;
  padding-right: 0;
}

/* inner：lbl と active-line の縦並びラッパー */
.header__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* ============================================================
   ナビテキスト（lbl）
   - clamp：1200px時13px〜1440px時16px
   - white-space: nowrap で折り返さない（1行固定）
============================================================ */
.header__lbl {
  font-family: var(--font-sans);
  font-size: clamp(13px, calc(1.25vw - 2px), 16px);
  font-weight: 700;
  line-height: 175%;
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ホバー時：テキスト色をプライマリカラーに変更（下線なし） */
.header__item:hover .header__lbl {
  color: var(--color-primary);
}

/* 現在ページ（is-active）：テキスト色をプライマリカラーに変更 */
.header__item.is-active .header__lbl {
  color: var(--color-primary);
}

/* active-line：現在ページを示す下線
   - 通常時は透明（非表示）
   - is-active のときだけプライマリカラーで表示
*/
.header__active-line {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px; /* 両端を丸くする */
  background: transparent;
  align-self: stretch;
}

/* 現在ページ（is-active）：実線で表示 */
.header__item.is-active .header__active-line {
  background: var(--color-primary);
}

/* 鍵アイコン（認定ファシリテーターのページ用） */
.header__lbl .icon-lock {
  width: 16px;
  height: 21px;
  flex-shrink: 0;
}


/* ============================================================
   SP用要素はPC表示時（1201px以上）は非表示
   - .header-sp と .header-sp__drawer の両方を非表示にする
============================================================ */
.header-sp,
.header-sp__drawer {
  display: none;
}


/* ============================================================
   SP版ヘッダー（1200px以下）
   - iPad横向き（画面幅1180〜1194px）でPC版ナビがあふれるため、
     切り替えは一般セクションの874pxではなく1200pxにしている
   ※デフォルト（874px）、ヘッダー（1200px）、フッター（1279px）
   構造：header-sp（固定バー） ＋ header-sp__drawer（ドロワー）
============================================================ */
@media (max-width: 1200px) {

  /* PC版ヘッダーを非表示 */
  .header,
  .header-wrapper {
    display: none;
  }

  /* SP版ヘッダーバー（常に表示される固定バー）
     - position: relative でドロワーの基点になる
     - z-index: 100 でドロワーより手前に表示
  */
  .header-sp {
    display: flex;
    width: 100%;
    height: 90px;
    padding: 12px 16px;
    justify-content: space-between; /* 左：ロゴ / 右：ハンバーガー */
    align-items: center;
    background: var(--color-white);
    position: relative;
    z-index: 100;
  }


  /* ----------------------------------------------------------
     logo-area（SP）：ロゴ画像 ＋ 法人名テキスト
  ---------------------------------------------------------- */
  .header-sp__logo-area {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* ロゴ画像 */
  .header-sp__logo {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  }

  /* 法人名テキストの縦並びラッパー
     - min-width: 0 で flex item がはみ出ないよう制御
     - flex-shrink: 1 で画面が狭くなったときに縮む
  */
  .header-sp__name {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    flex-shrink: 1;
  }

  /* 「NPO法人」サブテキスト：clampで320px時11px〜768px時16px
     （768px超は16pxのままPC版の下限16pxへつながる） */
  .header-sp__name-sub {
    font-family: var(--font-sans);
    font-size: clamp(11px, calc(1.12vw + 7.43px), 16px);
    font-weight: 400;
    line-height: 140%;
    color: var(--color-text-body);
  }

  /* 「ふれあいペアレントプログラム協会」メインテキスト：
     clampで320px時11px〜768px時18px・1行固定 */
  .header-sp__name-main {
    font-family: var(--font-sans);
    font-size: clamp(11px, calc(1.56vw + 6px), 18px);
    font-weight: 700;
    line-height: 140%;
    color: var(--color-text-body);
    white-space: nowrap;
  }


  /* ----------------------------------------------------------
     btn-hamburger：ハンバーガーメニューボタン
     - クリックで is-open クラスが付与される（JS制御）
  ---------------------------------------------------------- */
  .header-sp__btn-hamburger {
    display: flex;
    width: 44px;  /* タップしやすい最小サイズ */
    height: 44px; /* タップしやすい最小サイズ */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px; /* deco と lbl の間隔 */
    flex-shrink: 0; /* ハンバーガーは縮まないよう固定 */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

  /* deco：3本線のまとまり
     - justify-content: space-between で3本を均等に並べる
  */
  .header-sp__deco {
    display: flex;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    align-self: stretch;
    width: 100%;
  }

  /* line：ハンバーガーの1本線
     - transition で×アニメーションをなめらかにする
  */
  .header-sp__line {
    display: block;
    height: 3px;
    flex-shrink: 0;
    align-self: stretch;
    background: var(--color-text-body);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* is-open 時：3本線を×印に変形
     1本目：右斜め上に回転
     2本目：フェードアウト
     3本目：右斜め下に回転
     ※ translateY で中央に集めてから rotate する
  */
  .header-sp__btn-hamburger.is-open .header-sp__line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .header-sp__btn-hamburger.is-open .header-sp__line:nth-child(2) {
    opacity: 0;
  }
  .header-sp__btn-hamburger.is-open .header-sp__line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  /* is-open 時：「MENU」テキストを非表示にする */
  .header-sp__btn-hamburger.is-open .header-sp__menu-lbl {
    display: none;
  }

  /* 「MENU」テキスト */
  .header-sp__menu-lbl {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: normal;
    color: var(--color-text-body);
  }


  /* ----------------------------------------------------------
     drawer：ドロワーメニュー（ハンバーガー押下で開くパネル）
     - opacity / visibility で開閉（高さは 100svh 基準で固定）
     - position: absolute で header-sp の直下に重ねて表示
  ---------------------------------------------------------- */
/* ① ドロワー本体（基本スタイル） */
  .header-sp__drawer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  background: var(--color-white);
  position: absolute;
  top: 90px;
  left: 0;
  z-index: 9999;
  height: calc(100svh - 90px);   /* Safariのツールバーが開いた状態を基準に、最小の高さを常に確保する */
  overflow-y: auto;
  opacity: 0;                    /* 閉じているときは透明 */
  visibility: hidden;            /* 透明のままだと操作・読み上げ対象に残るため隠す */
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;  /* visibilityはopacityのアニメーション後に切り替える */
}

/* ② 開いた状態 */
.header-sp__drawer.is-open {
  opacity: 1;                    /* 開いたら不透明にして表示 */
  visibility: visible;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0s;     /* 開くときは遅延なしで即表示 */
}

/* ③ 背面ページのスクロールロック＋固定CTAを隠す */
body:has(.header-sp__drawer.is-open) {
  overflow: hidden; /* ドロワー表示中は背面のスクロールを止める */
  position: fixed;   /* iOS Safari対策：overflow:hiddenだけではタッチスクロールが止まらないことがある */
  width: 100%;       /* fixed化でbodyの幅が縮むのを防ぐ */
}

/* ドロワー表示中は固定CTA（.hero-cta-sp）を隠す */
body:has(.header-sp__drawer.is-open) .hero-cta-sp {
  display: none;
}

/* ④ 画面最下部（Safariツールバー帯）のカバー
   ドロワー表示中、Safariのツールバーが重なりうる帯を白で覆う */
.header-sp__drawer.is-open::after {
  content: "";
  position: fixed;        /* 画面基準で常に最下部に固定 */
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;           /* 安全マージン */
  background: var(--color-white);
  pointer-events: none;    /* タップを邪魔しない */
  z-index: -1;             /* ドロワー内部でのみ背面へ（ページ本体よりは手前） */
}

  /* ----------------------------------------------------------
     nav：ドロワー内のナビゲーションリスト
  ---------------------------------------------------------- */
  .header-sp__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    background: var(--color-background-base);
  }

  /* 各ナビアイテム（aタグ）
     - border-bottom で各行の区切り線を表示
  */
  .header-sp__item {
    display: flex;
    padding: 16px;
    justify-content: space-between; /* 左：テキスト / 右：矢印 */
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    border-bottom: 1px solid var(--color-secondary);
    text-decoration: none;
    transition: background 0.2s ease;
  }

  /* ホバー時：背景をセカンダリカラーに */
  .header-sp__item:hover {
    background: var(--color-secondary);
  }

  /* ナビテキスト */
  .header-sp__item-lbl {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 175%;
    color: var(--color-text-body);
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* 矢印テキスト（›） */
  .header-sp__item-arr {
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 200%;
    color: var(--color-primary);
    text-align: center;

    /* テキストは非表示にして背景画像で矢印を表示 */
    font-size: 0;
    display: inline-block;
    width: 12px;   /* 画像の幅に合わせて調整 */
    height: 12px;  /* 画像の高さに合わせて調整 */
    background: url("/assets/images/common/arr-gt.png") no-repeat center / contain;
  }


  /* ----------------------------------------------------------
     btn-area（SP）：ドロワー下部のCTAボタンエリア
     - PC版と異なり縦並び（flex-direction: column）
  ---------------------------------------------------------- */
  .header-sp__btn-area {
    display: flex;
    width: 100%;
    padding: 16px;
    flex-direction: column; /* PC版は横並び、SP版は縦並び */
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  /* seminar ボタン（SP）
     - width: 100% + max-width: 343pxで可変幅
  */
  .header-sp__btn--seminar {
    display: flex;
    width: 100%;
    max-width: 343px;
    height: 56px;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: var(--color-accent);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .header-sp__btn--seminar:hover {
    opacity: 0.85;
  }

  /* seminar ボタンのラベルテキスト
     - clamp でフォントサイズを画面幅に応じて変化
       W375px → 18px/ W374px以下 → 縮小
     - white-space: nowrap でテキストを1行に固定
  */
  .header-sp__btn--seminar .btn__lbl {
    font-family: var(--font-sans);
    font-size: clamp(14px, 4.8vw, 18px);
    font-weight: 700;
    line-height: 175%;
    color: var(--color-white);
    text-align: center;
    white-space: nowrap;
  }

  /* seminar ボタンの矢印アイコン（arr-white.png） */
  .header-sp__btn--seminar .btn__arr {
    width: 16px;
    height: 16px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: block;
  }

  /* contact ボタン（SP）
     - PC版（width: 200px）と異なりSP版は width: 343px
  */
  .header-sp__btn--contact {
    display: flex;
    width: 100%;
    max-width: 343px;
    height: 56px;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .header-sp__btn--contact:hover {
    opacity: 0.85;
  }

  /* contact ボタンのラベルテキスト */
  .header-sp__btn--contact .btn__lbl {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    line-height: 175%;
    color: var(--color-white);
    text-align: center;
  }

  /* contact ボタンの外部リンクアイコン（PNG） */
  .header-sp__btn--contact .icon-external {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }

} /* @media (max-width: 1200px) 共通ヘッダー SP版 */


/* ============================================================
   共通ボタン（.btn）
   全ページで使い回すボタンコンポーネント
   BEM：.btn（基底） + .btn--[type] + .btn--[color]（modifier）
============================================================ */


/* ------------------------------------------------------------
   基底スタイル（全バリアント共通）
------------------------------------------------------------ */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-family: var(--font-sans);
}

.btn:hover {
  opacity: 0.85;
}

/* ボタン内ラベルテキスト共通 */
.btn__lbl {
  text-align: center;
}

/* ボタン内アイコン（PNG）共通 */
.btn__arr,
.btn__icon {
  flex-shrink: 0;
  display: block;
}


/* ------------------------------------------------------------
   塗りつぶしボタン（default・icon・back）
   サイズ：343×56px / border-radius: 12px / padding: 8px 16px
   テキスト：18px / 700 / 175%
------------------------------------------------------------ */
.btn--default,
.btn--icon,
.btn--back {
  width: 100%;
  max-width: 343px;
  height: 56px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--color-primary); /* デフォルト：緑 */
}

/* ラベルテキスト：18px / white */
.btn--default .btn__lbl,
.btn--icon .btn__lbl,
.btn--back .btn__lbl {
  font-size: 18px;
  font-weight: 700;
  line-height: 175%;
  color: var(--color-white);
}

/* 矢印 PNG（arr-white.png / arr-back.png） */
.btn--default .btn__arr,
.btn--back .btn__arr {
  width: 16px;
  height: 16px;
  aspect-ratio: 1 / 1;
}

/* アイコンボタン（external / download）のアイコン */
.btn--icon .btn__icon {
  width: 16px;
  height: 16px;
  aspect-ratio: 1 / 1;
}

/* カラー modifier：accent（オレンジ）*/
.btn--default.btn--accent {
  background: var(--color-accent);
}

/* ------------------------------------------------------------
   アウトラインボタン（outline）
   白背景・primaryボーダー / 343×56px / border-radius: 12px
   テキスト：18px / 700 / 175% / primary
------------------------------------------------------------ */
.btn--outline {
  width: 343px;
  height: 56px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-primary);
}

/* ラベルテキスト：18px / primary */
.btn--outline .btn__lbl {
  font-size: 18px;
  font-weight: 700;
  line-height: 175%;
  color: var(--color-primary);
}

/* アイコン */
.btn--outline .btn__icon {
  width: 16px;
  height: 16px;
  aspect-ratio: 1 / 1;
}

/* ------------------------------------------------------------
   テキストボタン（ghost・ghost-sp）
   背景なし / border-bottom: 1px solid primary / auto幅
   padding: 4px 0
------------------------------------------------------------ */
.btn--ghost,
.btn--ghost-sp {
  display: inline-flex;
  width: auto;
  padding: 4px 0;
  background: none;
  border-bottom: 1px solid var(--color-primary);
  border-radius: 0;
  gap: 8px;
}

/* ghost ラベル：text/pc/small（16px / 700 / 175% / primary） */
.btn--ghost .btn__lbl {
  font-size: 16px;
  font-weight: 700;
  line-height: 175%;
  color: var(--color-primary);
}

/* ghost-sp ラベル：text/sp/small（14px / 700 / 175% / primary） */
.btn--ghost-sp .btn__lbl {
  font-size: 14px;
  font-weight: 700;
  line-height: 175%;
  color: var(--color-primary);
}

/* ghost・ghost-sp の矢印 PNG（arr-primary.png） */
.btn--ghost .btn__arr,
.btn--ghost-sp .btn__arr {
  width: 16px;
  height: 16px;
  aspect-ratio: 1 / 1;
}


/* ------------------------------------------------------------
   バッジボタン（badge・badge-sp）
   背景あり / border-radius: 16px / auto幅（内包に合わせる）
   padding: 4px 18px
------------------------------------------------------------ */
.btn--badge,
.btn--badge-sp {
  display: inline-flex;
  width: auto;
  align-self: flex-start; /* 親がflexでも横幅を内包テキストに合わせる */
  padding: 4px 18px;
  border-radius: 16px;
  background: var(--color-primary); /* デフォルト：緑 */
  cursor: default;
  pointer-events: none;
}

/* badge ラベル：text/pc/small（16px / 700 / 175% / white） */
.btn--badge .btn__lbl {
  font-size: 16px;
  font-weight: 700;
  line-height: 175%;
  color: var(--color-white);
}

/* badge-sp ラベル：text/sp/small（14px / 700 / 175% / white） */
.btn--badge-sp .btn__lbl {
  font-size: 14px;
  font-weight: 700;
  line-height: 175%;
  color: var(--color-white);
}

/* カラー modifier：accent（オレンジ）*/
.btn--badge.btn--accent,
.btn--badge-sp.btn--accent {
  background: var(--color-accent);
}

/* ============================================================
   共通見出しエリア（.ttl-area）
   全セクションで使い回す見出しコンポーネント
   構造：ttl-area > deco-top + ttl + deco-bottom > line
============================================================ */

/* ------------------------------------------------------------
   ttl-area：見出しエリア全体
   PC版：gap 14px / SP版：gap 8px
------------------------------------------------------------ */
.ttl-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* ------------------------------------------------------------
   deco-top：葉っぱアイコン
   PC版：60×60px / SP版：40×40px
------------------------------------------------------------ */
.ttl-area__deco-top {
  width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   ttl：メイン見出し
   PC版：text/pc/heading-l（40px / 700 / 150%）
   SP版：text/sp/heading-l（24px / 700 / 150%）
------------------------------------------------------------ */
.ttl-area__ttl {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 150%;
  color: var(--color-text-heading);
  text-align: center;
  align-self: stretch;
}

/* ------------------------------------------------------------
   deco-bottom：下線エリア
   PC版：padding-top 14px / SP版：padding-top 8px
------------------------------------------------------------ */
.ttl-area__deco-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 14px;
}

/* ------------------------------------------------------------
   line：緑の下線
   PC版：64px幅 / SP版：40px幅
   共通：3px・opacity 0.7
------------------------------------------------------------ */
.ttl-area__line {
  width: 64px;
  height: 3px;
  border-bottom: 3px solid var(--color-primary);
  opacity: 0.7;
}

/* ------------------------------------------------------------
   SP版（874px以下）
   ※デフォルト（874px）、ヘッダー（1200px）、フッター（1279px）
------------------------------------------------------------ */
@media (max-width: 874px) {

  .ttl-area {
    gap: 8px;
    align-self: stretch;
  }

  .ttl-area__deco-top {
    width: 40px;
    height: 40px;
  }

  .ttl-area__ttl {
    font-size: 24px;
  }

  .ttl-area__deco-bottom {
    padding-top: 8px;
  }

  .ttl-area__line {
    width: 40px;
  }

} /* @media (max-width: 874px) 共通 ttl-area SP版 */

/* ------------------------------------------------------------
   極小幅対応（365px以下）：トップページaboutセクションの見出しのみ縮小
   .ttl-area__ttl は複数ページで共通利用しているため直接触らず、
   トップ専用の modifier（.ttl-area__ttl--top-about）にだけ当てる
------------------------------------------------------------ */
@media (max-width: 365px) {
  .ttl-area__ttl--top-about {
    font-size: 20px;
  }
} /* @media (max-width: 365px) index.html section/about 見出し縮小（365px以下） */

/* ============================================================
   レスポンシブ改行ユーティリティ
============================================================ */

/* SP版（874px以下）のみ改行 */
.br-sp {
  display: none;
}

@media (max-width: 874px) {
  .br-sp {
    display: block;
  }
} /* @media (max-width: 874px) 共通 .br-sp 表示切り替え */

/* PC版（875px以上）のみ改行 */
.br-pc {
  display: none;
}

@media (min-width: 875px) {
  .br-pc {
    display: block;
  }
} /* @media (min-width: 875px) 共通 .br-pc 表示切り替え */

/* ============================================================
   ボタン SP版（874px以下）
   ※デフォルト（874px）、ヘッダー（1200px）、フッター（1279px）
============================================================ */
@media (max-width: 874px) {

  /* 塗りつぶしボタン SP版：可変幅 */
  .btn--default,
  .btn--icon,
  .btn--back {
    width: 100%;
    max-width: 343px;
  }

  /* ラベルテキスト SP版：clampでフォントサイズ可変・1行固定 */
  .btn--default .btn__lbl,
  .btn--icon .btn__lbl,
  .btn--back .btn__lbl {
    font-size: clamp(14px, 4.8vw, 18px);
    white-space: nowrap;
  }

} /* @media (max-width: 874px) 共通ボタン SP版 */

/* ===============================
  section: news（PC版）
=============================== */
.section-news--pc {
  display: none; /* SP優先・PC版はメディアクエリで表示 */
  width: 100%;
  background: var(--color-background-base);
}

.section-news--sp {
  width: 100%;
  background: var(--color-background-base);
}

/* PC版切り替え */
@media (min-width: 875px) {
  .section-news--pc {
    display: block;
  }
  .section-news--sp {
    display: none;
  }
} /* @media (min-width: 875px) section-news PC版表示切り替え */

/* -------
  PC版 inner
------- */
.section-news--pc .section-news__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* ===============================
  section: news（SP版）
=============================== */
.section-news--sp .section-news__inner {
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ===============================
  news-list（PC版）
  .section-news--pc 内で使用
  トップページ・ニュース一覧ページ共通
=============================== */

/* ニュースリスト外枠 */
.news-list {
  width: min(1280px, 100%);
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid var(--color-primary);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
}

/* 各カード */
.card-news {
  border-bottom: 1px solid var(--color-secondary);
  width: 100%;
}

/* 最後のカードはborder-bottomなし */
.card-news--last,
.card-news:last-child {
  border-bottom: none;
}

/* カードリンク */
.card-news__link {
  display: flex;
  width: 100%;
  padding: 20px 24px;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  box-sizing: border-box;
}

/* 日付 */
.card-news__date {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 175%;
  color: var(--color-text-caption);
  flex-shrink: 0;
  width: 70px;
}

/* news-list内のバッジを上下中央に */
.card-news__link .btn--badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  flex-shrink: 0;   /* タイトルが長くても潰れないように */
  line-height: 1;   /* 余分な行間をリセット */
}

/* タイトル */
.card-news__ttl {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 175%;
  color: var(--color-text-body);
  flex: 1;
}

/* 矢印アイコン */
.card-news__arr {
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}

/* ===============================
  news-list-sp（SP版）
  .section-news--sp 内で使用
  トップページ・ニュース一覧ページ共通
=============================== */

/* ニュースリスト外枠 */
.news-list-sp {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--color-primary);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
}

/* 各カード */
.card-news-sp {
  border-bottom: 1px solid var(--color-secondary);
  width: 100%;
}

/* 最後のカードはborder-bottomなし */
.card-news-sp--last,
.card-news-sp:last-child {
  border-bottom: none;
}

/* カードリンク */
.card-news-sp__link {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  text-decoration: none;
  box-sizing: border-box;
}

/* ヘッダー行：日付・カテゴリ・矢印を横並び */
.card-news-sp__header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

/* ヘッダー左側：日付・カテゴリ */
.card-news-sp__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 日付 */
.card-news-sp__date {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 175%;
  color: var(--color-text-caption);
  width: 70px;
  flex-shrink: 0;
}

/* 矢印アイコン */
.card-news-sp__arr {
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}

/* タイトル */
.card-news-sp__ttl {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 175%;
  color: var(--color-text-body);
  align-self: stretch;
}

/* ============================================================
   footer
   構造：footer > footer__inner > top-row + copyright
         top-row > brand-area + nav-area
         brand-area > logo-row + btn-row + sns-row
         nav-area > column-01〜05
   SP版：nav-area がアコーディオン式に変化
   配置：common.css で全ページ共通スタイルを管理
============================================================ */


/* ----------------------------------------------------------
   SP専用要素はPC版（875px以上）で非表示
   - .footer__ttl-row：SP版アコーディオンのヘッダー行
   - .footer__list：SP版アコーディオンのリンク一覧
---------------------------------------------------------- */
.footer__ttl-row {
  display: none;
}

.footer__list {
  display: none;
}


/* ----------------------------------------------------------
   footer：フッター全体
   - width: 100% で画面幅いっぱいに広がる
   - 背景色は白（--color-white）
---------------------------------------------------------- */
.footer {
  width: 100%;
  background: var(--color-white);
}


/* ----------------------------------------------------------
   footer__inner：コンテンツ幅の制限と余白
   - max-width: 1440px で中央固定（他セクションと統一）
   - padding: 48px 80px 40px
     上48px・左右80px・下40px
   - gap: 56px で top-row と copyright の間隔を設定
---------------------------------------------------------- */
.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 80px 40px;
  gap: 56px;
}


/* ============================================================
   top-row：brand-area（左）と nav-area（右）の横並び
   - justify-content: space-between で両端に配置
   - align-items: flex-start で上揃え
============================================================ */
.footer__top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}


/* ============================================================
   brand-area：ロゴ・ボタン・SNSを縦に並べるエリア
   - flex-direction: column で縦並び
   - gap: 32px
   - width: auto で中身のサイズに合わせる
   - min-width: 343px でボタンが343px以上を確保
============================================================ */
.footer__brand-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: auto;
  min-width: 343px;
}


/* ----------------------------------------------------------
   logo-row：ロゴ画像 ＋ 法人名テキストの横並び
   - gap: 12px
   - align-items: center で縦中央揃え
---------------------------------------------------------- */
.footer__logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* ロゴ画像
   - PC・SP共通
   - flex-shrink: 0 でロゴが縮まないよう固定
*/
.footer__logo {
  width: 72px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* 法人名テキストの縦並びラッパー */
.footer__name {
  display: flex;
  flex-direction: column;
}

/* 「NPO法人」サブテキスト
   - font-size: 14px（PC・SP共通）
   - 374px以下のみclampで縮小
*/
.footer__name-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  color: var(--color-text-body);
  white-space: nowrap;
}

/* 「ふれあいペアレントプログラム協会」メインテキスト
   - font-size: 16px（PC・SP共通）
   - 374px以下のみclampで縮小
*/
.footer__name-main {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
  color: var(--color-text-body);
  white-space: nowrap;
}


/* ----------------------------------------------------------
   btn-row：CTAボタン2つの縦並び
   - flex-direction: column で縦に並べる
   - gap: 16px
   - width: 100% で brand-area の幅いっぱいに広がる
   - ボタン幅は .btn に width: 100% を設定し
     common.css の .btn--default の max-width: 343px で上限を制御
---------------------------------------------------------- */
.footer__btn-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

/* btn-row 内のボタン幅を親要素いっぱいに広げる
   - 上限は common.css の .btn--default の max-width: 343px で制御
*/
.footer__btn-row .btn {
  width: 100%;
}


/* ----------------------------------------------------------
   sns-row：SNSアイコン3つの横並び
   - gap: 8px
   - align-items: center で縦中央揃え
---------------------------------------------------------- */
.footer__sns-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SNSアイコンのリンクラッパー
   - width / height: 44px でタップしやすい最小サイズを確保
   - justify-content / align-items: center でアイコンを中央に配置
   - flex-shrink: 0 で縮まないよう固定
*/
.footer__sns-item {
  display: flex;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.footer__sns-item:hover,
.footer__sns-item:focus-visible {
  opacity: 0.7;
}

/* SNSアイコン画像の基底スタイル
   - display: block でインライン余白を消去
   - flex-shrink: 0 で縮まないよう固定
*/
.footer__sns-icon {
  display: block;
  flex-shrink: 0;
}

/* Facebook / LINE アイコン：32×32px */
.footer__sns-icon--fb,
.footer__sns-icon--line {
  width: 32px;
  height: 32px;
}

/* X（旧Twitter）アイコン：24×24px */
.footer__sns-icon--x {
  width: 24px;
  height: 24px;
}


/* ============================================================
   nav-area：フッターナビゲーション（PC版）
   - column-01〜05 を横並びに配置
   - gap: 32px
   - align-items: flex-start で上揃え
============================================================ */
.footer__nav-area {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}


/* ----------------------------------------------------------
   column：各ナビカラムの共通スタイル
   - flex-direction: column で縦並び
---------------------------------------------------------- */
.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* column-01：ホームのみのカラム
   - padding: 10px 0
*/
.footer__column--home {
  padding: 10px 0;
}

/* column-02〜05：見出し＋リンク一覧のカラム
   - padding: 10px 0
   - gap: 24px で ttl-group と links-group の間隔を設定
*/
.footer__column--nav {
  padding: 10px 0;
  gap: 24px;
}


/* ----------------------------------------------------------
   ttl-group：PC版ナビ見出しエリア
   - padding: 10px 0
---------------------------------------------------------- */
.footer__ttl-group {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
}

/* ナビ見出しテキスト
   - color: --color-text-heading（#2A4A2F）
   - text-decoration: none でデフォルトの下線を消去
*/
.footer__ttl {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 175%;
  color: var(--color-text-heading);
  text-decoration: none;
}

/* ホバー時：プライマリカラーに変更（1, 2, 4番目のカラムのみ） */
.footer__column:nth-child(1) .footer__ttl:hover,
.footer__column:nth-child(2) .footer__ttl:hover,
.footer__column:nth-child(4) .footer__ttl:hover {
  color: var(--color-primary);
}


/* ----------------------------------------------------------
   links-group：PC版リンク一覧
   - flex-direction: column で縦並び
   - gap: 12px
   - padding-top: 24px / padding-bottom: 10px
---------------------------------------------------------- */
.footer__links-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* リンクテキスト
   - color: --color-text-caption（#5B6B67）
   - text-decoration: none でデフォルトの下線を消去
*/
.footer__link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 175%;
  color: var(--color-text-caption);
  text-decoration: none;
}

/* ホバー時：プライマリカラーに変更 */
.footer__link:hover {
  color: var(--color-primary);
}


/* ============================================================
   copyright：コピーライト行
   - border-top で上線を引く（--color-primary / 1px）
   - padding-top: 16px
   - gap: 56px 分は footer__inner の gap で top-row と区切られる
============================================================ */
.footer__copyright {
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--color-primary);
}

/* コピーライトテキスト
   - color: --color-text-caption（#5B6B67）
*/
.footer__copyright-lbl {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 175%;
  color: var(--color-text-caption);
}


/* ============================================================
   footer SP版（1279px以下）
   構造：footer__inner > top-row（縦並び） + copyright
         top-row > brand-area + nav-area（アコーディオン）
   ※デフォルト（874px）、ヘッダー（1200px）、フッター（1279px）
============================================================ */
@media (max-width: 1279px) {

  /* ----------------------------------------------------------
     PC専用要素を非表示・SP専用要素を表示に切り替え
     - PC版：.footer__ttl-group / .footer__links-group を使用
     - SP版：.footer__ttl-row / .footer__list を使用
  ---------------------------------------------------------- */
  .footer__ttl-group {
    display: none;
  }

  .footer__links-group {
    display: none;
  }

  .footer__ttl-row {
    display: flex; /* SPで表示 */
  }

  .footer__list {
    display: flex; /* SPで表示（初期はmax-height:0で隠す） */
  }


  /* ----------------------------------------------------------
     footer__inner：SP版の余白調整
     - padding: 40px 16px
     - gap: 24px で top-row と copyright の間隔を設定
  ---------------------------------------------------------- */
  .footer__inner {
    padding: 40px 16px;
    gap: 24px;
  }


  /* ----------------------------------------------------------
     top-row：SP版は縦並びに変更
     - flex-direction: column で brand-area と nav-area を縦に
     - gap: 24px
  ---------------------------------------------------------- */
  .footer__top-row {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }


  /* ----------------------------------------------------------
     brand-area：SP版
     - width: 100% で親幅を基準にする
     - max-width: 343px で343px以上には広がらない
     - min-width: unset でPC版の min-width: 343px を無効化
       （画面幅343px未満のとき自動縮小させるため）
     - margin: 0 auto で中央揃え
     - align-items: flex-start で内側は左揃えを維持
  ---------------------------------------------------------- */
  .footer__brand-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 343px;
    min-width: unset;
    margin: 0 auto;
  }


  /* ----------------------------------------------------------
     logo-row：SP版
     - gap: 4px
  ---------------------------------------------------------- */
  .footer__logo-row {
    gap: 4px;
  }


  /* ----------------------------------------------------------
     btn-row：SP版
     - gap: 12px
     - width: 100% で brand-area の幅いっぱいに広がる
     - align-items: stretch でボタンを親幅いっぱいに広げる
  ---------------------------------------------------------- */
  .footer__btn-row {
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }

  /* SP版：ボタン幅を親要素いっぱいに広げる
     - brand-area の width: 100% + max-width: 343px で
       画面幅343px未満のとき自動縮小される
  */
  .footer__btn-row .btn {
    width: 100%;
  }


  /* ----------------------------------------------------------
     nav-area：SP版はアコーディオン式の縦並びに変更
     - flex-direction: column で縦に並べる
     - gap: 0 で各カラムが border で接するよう調整
     - width: 100% で親幅いっぱいに広がる
  ---------------------------------------------------------- */
  .footer__nav-area {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }


  /* ----------------------------------------------------------
     column：SP版共通
     - width: 100% で親幅いっぱいに広がる
     - padding: 0 でPC版の padding を上書き
  ---------------------------------------------------------- */
  .footer__column {
    width: 100%;
    padding: 0;
  }

  /* column-01：ホーム
     - border-top / border-bottom で区切り線を表示
  */
  .footer__column--home {
    border-top: 1px solid var(--color-secondary);
    border-bottom: 1px solid var(--color-secondary);
  }

  /* column-02〜05：アコーディオン
     - gap: 0 でPC版の gap を上書き
     - border-bottom で下区切り線を表示
  */
  .footer__column--nav {
    gap: 0;
    border-bottom: 1px solid var(--color-secondary);
  }

  /* 最後のカラムの border-bottom を消去 */
  .footer__column--nav:last-child {
    border-bottom: none;
  }


  /* ----------------------------------------------------------
     ttl-row：SP版アコーディオンのヘッダー行
     - justify-content: space-between で ttl と icon（+/−）を両端に
     - padding: 12px 0
     - cursor: pointer でクリック可能を示す
  ---------------------------------------------------------- */
  .footer__ttl-row {
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    width: 100%;
    cursor: pointer;
  }

  /* ttl テキスト：SP版
  */
  .footer__ttl {
    font-size: 14px;
  }

  /* アコーディオンの開閉アイコン「+」/「−」
     - padding-right: 16px で右端から少し内側に配置
     - flex-shrink: 0 で縮まないよう固定
     - デフォルト「+」/ .is-open 時「−」（JS で切り替え）
  */
  .footer__ttl-icon {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 175%;
    color: var(--color-text-heading);
    flex-shrink: 0;
    padding-right: 16px;
  }


  /* ----------------------------------------------------------
     list：SP版アコーディオンのリンク一覧
     - 初期状態：max-height: 0 / padding: 0 / overflow: hidden
       で高さ0にして非表示
     - is-open 時：max-height: 500px / padding: 8px 0 12px
       に変化して表示
     - transition でアニメーション（0.3s ease）
     - gap: 8px でリンク間の間隔を設定
  ---------------------------------------------------------- */
  .footer__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  /* is-open 時：max-height を広げてコンテンツを表示
     - max-height: 500px はリンク数が最大のカラムに合わせた余裕値
  */
  .footer__column--nav.is-open .footer__list {
    max-height: 500px;
    padding: 8px 0 12px;
  }

  /* リンクテキスト：SP版
  */
  .footer__link {
    font-size: 14px;
    line-height: 175%;
  }


  /* ----------------------------------------------------------
     copyright：SP版
     - justify-content: center でテキストを中央揃え
     - padding-top: 24px
     - border-top は PC版と同じ（--color-primary / 1px）
  ---------------------------------------------------------- */
  .footer__copyright {
    justify-content: center;
    padding-top: 24px;
  }

  /* コピーライトテキスト：SP版
     - text-align: center で中央揃え
  */
  .footer__copyright-lbl {
    font-size: 14px;
    text-align: center;
  }

} /* @media (max-width: 1279px) 共通フッター SP版 */


/* ============================================================
   footer 中間幅（875px〜1279px）
   brand-areaのレイアウトを変更：
   - ロゴ・ボタン・SNSを中央揃え
   - ボタンを横並びに変更（PC版と同じ343px幅を維持）
============================================================ */
@media (min-width: 875px) and (max-width: 1279px) {

  /* brand-area：横並びボタンを格納できるよう幅の制限を解除し、中央揃え */
  .footer__brand-area {
    width: auto;
    max-width: none;
    min-width: 343px;
  }

  /* btn-row：縦並び→横並びに変更、中央揃え */
  .footer__btn-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: auto;
  }

  /* ボタン幅：PC版と同じ343pxを維持（widthはそのまま変更しない） */
  .footer__btn-row .btn {
    width: 343px;
    flex-shrink: 0;
  }

} /* @media (min-width: 875px) and (max-width: 1279px) 共通フッター 中間幅（875〜1279px） */


@media (max-width: 374px) {

  /* 「NPO法人」サブテキスト：374px以下は clamp で14→13pxへ縮小
     （374px時に基本サイズの14pxへ連続してつながる） */
  .footer__name-sub {
    font-size: clamp(13px, calc(1.85vw + 7.07px), 14px);
  }

  /* 法人名メインテキスト：374px以下は clamp で16→13pxへ縮小 */
  .footer__name-main {
    font-size: clamp(13px, calc(5.56vw - 4.78px), 16px);
  }

} /* @media (max-width: 374px) 共通フッター法人名 極小幅調整（374px以下） */


/* ============================================================
   hero-page：ページタイトルヒーロー
   - 緑背景にページタイトルを白文字で表示
   - PC：height 150px、padding 40px 80px
   - SP：height 80px、padding 20px 16px（メディアクエリで上書き）
   ============================================================ */

/* セクション全体：背景色を全幅で表示 */
.hero-page {
  width: 100%;
  background: var(--color-primary);
}

/* 内側コンテンツ：最大幅1440pxで中央揃え */
.hero-page__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 80px;
  height: 150px;
  display: flex;
  align-items: center; /* タイトルを垂直中央揃え */
}

/* ページタイトル：Serifフォント・48px・白 */
.hero-page__ttl {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-white);
}

/* ============================================================
   メディアクエリ：SP版（max-width: 874px）
   ============================================================ */
@media screen and (max-width: 874px) {

  /* 内側コンテンツ：paddingとheightをSP用に縮小 */
  .hero-page__inner {
    padding: 20px 16px;
    height: 80px;
  }

  /* ページタイトル：フォントサイズをSP用に縮小 */
  .hero-page__ttl {
    font-size: 28px;
  }

} /* @media (max-width: 874px) 共通 hero-page SP版 */


/* ============================================================
   .section__lead：セクション導入見出し文
   左側に primary カラーの縦ボーダーを装飾として表示
   全ページ共通で使用可能
============================================================ */
.section__lead {
  border-left: 3px solid var(--color-primary);
  padding-left: 24px;
}

/* leadのテキスト：text/pc/heading-s（24px・700・160%・Serif） */
.section__lead-txt {
  font-family: var(--text-pc-heading-s-family);
  font-size:   var(--text-pc-heading-s-size);
  font-weight: var(--text-pc-heading-s-weight);
  line-height: var(--text-pc-heading-s-lh);
  color: var(--color-text-heading);
  max-width: 820px;
}

/* SP版（874px以下）：text/sp/heading-m（20px・700・150%・Serif） */
@media screen and (max-width: 874px) {

  .section__lead-txt {
    font-size:   var(--text-sp-heading-m-size);
    font-weight: var(--text-sp-heading-m-weight);
    line-height: var(--text-sp-heading-m-lh);
  }

} /* @media (max-width: 874px) 共通 section__lead SP版 */


/* ============================================
   ページトップへ戻るボタン
   ============================================ */
.btn-page-top {
  /* 画面右下に固定表示 */
  position: fixed;
  right: 30px;
  bottom: 30px;

  width: 70px;
  height: 70px;

  /* アイコンと「TOP」文字を縦に並べる */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  /* デフォルトのボタン装飾をリセット */
  border: none;
  background: none;
  cursor: pointer;

  z-index: 100;

  /* 初期状態は非表示。visibilityも切ってクリック不能にし、
     translateYで表示時に浮き上がる動きを作る */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* 表示状態：スクロール量に応じてJSが .is-show を付け外しする */
.btn-page-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   丸枠（SVG要素自体に円のスタイルを適用）
   - box-sizing: content-box で padding分だけ円を大きくする
   - aspect-ratio と flex-shrink: 0 で縮小時も正円を維持する
---------------------------------------------------------- */
.btn-page-top__icon {
  width: 24px;
  height: 24px;
  padding: 14px;
  border: 1px solid var(--color-primary); /* 線の色：primary（#00A085） */
  border-radius: 50%;
  background: var(--color-white);
  box-sizing: content-box;
  aspect-ratio: 1 / 1;  /* 正円を強制的に維持 */
  flex-shrink: 0;       /* 親のflex縮小に影響されないようにする */
}

/* 矢印（シェブロン）：色はCSS側で指定し、svgリセットとの競合を避ける */
.btn-page-top__arrow {
  fill: none;
  stroke: var(--color-primary);
}

/* 「TOP」の文字 */
.btn-page-top__text {
  font-family: var(--font-sans); /* Noto Sans JP（UI要素なのでSansを明示） */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: normal;
  color: var(--color-primary);
}

/* SP版（874px以下）：ボタンを少し小さく */
@media (max-width: 874px) {
  .btn-page-top {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  /* SP版でも円のサイズを明示しておく（楕円化の再発防止） */
  .btn-page-top__icon {
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
  }
} /* @media (max-width: 874px) 共通 btn-page-top SP版 */


/* ============================================================
   スクロール連動フェードイン
   - js-fade-in を初期状態（透明＋下に24px）にしておき、JSが
     is-visible を付けたら opacity / transform で浮き上がらせる
   - opacityとtransformのみの変化なのでリフローが発生しない
============================================================ */
.js-fade-in {
  opacity: 0;
  transform: translateY(24px);
  /* 速さは 1.2s、浮き上がり量は 24px で調整する */
  transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* JS側で画面内に入ったと判定された要素に付与されるクラス */
.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   カードの「ずらし表示」（transition-delay）
   - :nth-child で1枚目から順に0.15秒刻みで表示をずらす
   - PC版・SP版のカードへ同じ設計を独立して当てるため、
     親クラス＋子クラスでセレクタを指定している
============================================================ */

/* about：card-message（テキスト→画像の順に登場）
   - テキストはカード基準タイミング（--fade-base、通常0s）、画像は+0.5s
   - 一覧が見える位置でのリロード時のみ、main.js がカードごとに
     --fade-base を --fade-step（1.0s）刻みでずらす。画像の遅れを
     その半分にすることで「テキスト→画像」が交互に均等な間隔で並ぶ */
.about__list .card-message { --fade-step: 1.0s; }
.about__list .card-message__txt-area  { transition-delay: var(--fade-base, 0s); }
.about__list .card-message__img-frame { transition-delay: calc(var(--fade-base, 0s) + 0.5s); }

/* SP版（874px以下）は「画像→テキスト」の順に入れ替える */
@media (max-width: 874px) {
  .about__list .card-message__txt-area  { transition-delay: calc(var(--fade-base, 0s) + 0.5s); }
  .about__list .card-message__img-frame { transition-delay: var(--fade-base, 0s); }
} /* @media (max-width: 874px) index.html section/about SP版：画像→テキストの順に反転 */
