@charset "UTF-8";

/* =========================================================
   RYD LP 共通スタイル
   - リセット / デザイントークン / 共通パーツ（ヘッダー・フッター・
     ボタン・パンくず・ページヒーロー・施設カード・CTA）
   - 全ページで読み込む
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  /* カラー（Figma variables 準拠） */
  --color-primary: #df5a2e;        /* 女性メインカラー：CTA・資料請求等 */
  --color-base: #faeeda;           /* 女性ベースカラー：一覧背景 */
  --color-accent: #c9a84c;         /* アクセントカラー1：施設名の下線 */
  --color-accent-gold: #dfac2f;    /* アクセントカラー2：女性向け（産後ケア系）の金色・見出し下線 */
  --color-navy: #0a2540;           /* NOAVIAディープネイビー */
  --color-text: #313841;           /* 基本テキスト */
  --color-white: #ffffff;
  --color-border: #c6c6c6;         /* フォーム枠線 */
  --color-muted: #8d8d8d;          /* プレースホルダ等 */
  --color-footer-bg: #313841;
  --color-cta-bg: #ffed68;

  --gradient-primary: linear-gradient(90deg, #df5a2e 0%, #ffbf48 100%);

  /* レイアウト
     - --max-width : 全幅セクション帯の中で中央寄せする最大幅
     - --content   : 本文・カード列を入れる共通コンテンツ幅（全ページ統一・900px以上）
     背景帯は全幅、中身は --content で中央寄せして細くなりすぎないようにする */
  --max-width: 1280px;
  --content: 1000px;
  --radius-card: 20px;
  --radius-pill: 50px;

  /* フォント */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

h1, h2, h3, h4, p, ul, li, figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- レイアウト共通 ----------
   .l-inner   : ヘッダー/フッター等の全幅帯の内側（1280px・左右60px）
   .l-content : 本文コンテンツ列。全ページ共通幅（--content）で中央寄せ。
                背景帯（全幅）の内側に置いて、コンテンツが細くなりすぎないようにする */
.l-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.l-content {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   ボタン（共通パーツ）
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 40px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* 塗り（オレンジ） */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

/* 白地・オレンジ枠 */
.btn--outline {
  background: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* グラデーション塗り */
.btn--gradient {
  /* border-box 指定：2px の透明ボーダーへグラデが繰り返されて
     端に色のスジが出るのを防ぐ */
  background: var(--gradient-primary) border-box;
  color: var(--color-white);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/* 白地・グラデ文字 */
.btn--gradient-outline {
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.btn--gradient-outline span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 横幅いっぱい */
.btn--block {
  width: 100%;
}

/* =========================================================
   セクション見出し（共通パーツ：トップ・詳細で共用）
   オレンジ（=--color-primary）の縦バー + 和文タイトル + 英字ラベル。
   ページ側で --color-primary を上書きすればアクセント色が変わる。
   ========================================================= */
.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-head__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.5;
}
.section-head__title::before {
  content: "";
  width: 4px;
  height: 30px;
  background: var(--color-primary);
}
.section-head__en {
  color: var(--color-primary);
  font-size: 16px;
}
.section-lead {
  font-size: 14px;
  line-height: 1.71;
}

/* テキストリンク（「もっと見る ›」系・共通パーツ） */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
}
.text-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.text-link:hover {
  opacity: 0.7;
}

/* =========================================================
   ヘッダー（共通パーツ）
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 60px 20px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.site-header__logo {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}
.site-header__tagline {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.global-nav__link {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.global-nav__link:hover {
  color: var(--color-primary);
}
.global-nav__link.is-current {
  color: var(--color-primary);
}

/* FC募集 ホバードロップダウン（PC） */
.global-nav__item--has-sub {
  position: relative;
}
.global-nav__parent {
  cursor: pointer;
}
.global-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.global-nav__item--has-sub:hover .global-nav__submenu,
.global-nav__item--has-sub:focus-within .global-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.global-nav__sublink {
  display: block;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.global-nav__sublink:hover {
  color: var(--color-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ハンバーガー（SPのみ表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================================================
   パンくず（共通パーツ）
   ========================================================= */
.breadcrumb {
  border-top: 1px solid #f4f4f4;
  border-bottom: 1px solid #f4f4f4;
}
.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 8px 60px;
  list-style: none;
  font-size: 11.8px;
  line-height: 19.2px;
}
.breadcrumb__sep {
  display: inline-flex;
  align-items: center;
}
.breadcrumb__item a {
  text-decoration: underline;
}
.breadcrumb__item.is-current {
  color: var(--color-muted);
}

/* =========================================================
   ページヒーロー（共通パーツ／下層ページ共通の見出し帯）
   ========================================================= */
.page-hero {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 地面・家族の全身が入る下寄りの見せ位置（Figma 準拠） */
  object-position: center 63%;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  color: var(--color-white);
}
.page-hero__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.5;
}
.page-hero__lead {
  font-size: 16px;
}

/* =========================================================
   施設カード（共通パーツ・再利用前提：詳細ページでも流用）
   画像左 + 情報右の横長カード。SPで画像上 + 情報下に縦積み。
   ========================================================= */
.facility-card {
  display: flex;
  gap: 10px;
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.facility-card__media {
  flex: 0 0 200px;
  width: 200px;
}
.facility-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.facility-card__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}
.facility-card__pref {
  align-self: flex-start;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.83;
}
.facility-card__info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.facility-card__name {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}
.facility-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.facility-card__meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}
.facility-card__meta-row img {
  flex: 0 0 auto;
}

/* =========================================================
   CTA（共通パーツ・再利用前提）
   ========================================================= */
.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 327px;
  padding: 50px;
  overflow: hidden;
  text-align: center;
  background: var(--color-cta-bg);
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.cta__title,
.cta__text,
.cta__actions {
  position: relative;
  z-index: 1;
}
.cta__title {
  color: var(--color-navy);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.7;
}
.cta__text {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.57;
}
.cta__note {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: 10px;
}
.cta__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta__actions .btn {
  width: 248px;
  min-height: 59px;
}

/* =========================================================
   LINE フローティングボタン（共通パーツ・固定）
   FC募集LP の「LINEで最新情報を受け取る」と同じ画像を使う。
   出す/出さないの判定は meshbe_show_line_float()（PHP 側）が持つ。
   ========================================================= */
.line-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90; /* ヘッダー(100)・ドロワー(200)より下。かぶらせない */
  line-height: 0;
}
.line-float__link {
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.line-float__link:hover,
.line-float__link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}
.line-float img {
  /* PC は LP と同じ 188px 幅。狭い画面では縮める */
  width: clamp(110px, 11vw, 188px);
  height: auto;
}

/* フッター（共通パーツ）は css/footer.css に切り出し済み。
   FC募集LP からも同じ定義を読み込むため（詳細は footer.css 冒頭のコメント）。 */

/* =========================================================
   レスポンシブ（ブレイクポイント 768px）
   ========================================================= */
@media (max-width: 768px) {
  .l-inner {
    padding: 0 20px;
  }

  /* --- ヘッダー：グローバルナビ → ハンバーガー --- */
  .site-header__inner {
    padding: 16px 20px;
    gap: 12px;
  }
  /* ロゴ＋社名を縦積みにして 320px でもハンバーガーと共存できる幅に収める */
  .site-header__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .site-header__logo {
    font-size: 24px;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    background: var(--color-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-header__nav.is-open {
    max-height: 80vh;
    padding: 10px 20px 20px;
  }
  .global-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .global-nav__link {
    padding: 14px 4px;
    border-bottom: 1px solid #f4f4f4;
  }
  /* FC募集サブメニュー：SPはホバー不可のためネストした常時表示リストにする */
  .global-nav__item--has-sub {
    position: static;
  }
  .global-nav__parent {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid #f4f4f4;
  }
  .global-nav__submenu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .global-nav__sublink {
    padding: 12px 4px 12px 20px;
    border-bottom: 1px solid #f4f4f4;
  }
  .site-header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
  }
  .site-header__actions .btn {
    width: 100%;
  }
  /* ハンバーガー → ×印 */
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* --- パンくず／ヒーロー --- */
  .breadcrumb__list {
    padding: 8px 20px;
  }
  .page-hero__inner {
    padding: 0 20px;
  }

  /* --- 施設カード：横長 → 画像上 + 情報下に縦積み --- */
  .facility-card {
    flex-direction: column;
  }
  .facility-card__media {
    flex-basis: auto;
    width: 100%;
    height: 200px;
  }

  /* --- CTA --- */
  .cta {
    padding: 40px 20px;
  }
  .cta__actions {
    flex-direction: column;
    width: 100%;
  }
  .cta__actions .btn {
    width: 100%;
  }

  /* --- LINE フローティングボタン：SP は画面下部に横長で --- */
  .line-float {
    right: 0;
    left: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    pointer-events: none; /* バー全体で操作を奪わない。リンクだけ拾う */
  }
  .line-float__link {
    pointer-events: auto;
  }
  .line-float img {
    width: min(86vw, 420px);
  }
  /* ボタンがフッター末尾に重なったままにならないよう逃げ場をつくる */
  .has-line-float .site-footer {
    padding-bottom: 130px;
  }

  /* フッターの SP 対応は css/footer.css 側にある */
}
