@charset "UTF-8";

/* =====================================================================
   ポピンズ familycare リニューアル
   法人向けナニーサービス紹介ページ（/familycare/service-nanny-corporate/）専用CSS
   Figma: SP 363:42265 / PC 453:32378
   ---------------------------------------------------------------------
   - 固定ページ本文のHTMLに対応する。header.php で
     is_page('service-nanny-corporate') のときだけ renewal/css/common.css の
     後に読み込む（後勝ちで上書き可能）
   - 変数（--rnw-*）は common.css の :root / [data-property] を利用する。
     このページは nanny 既定色のみ（VIPケアの混在なし）
   - 旧CSS（/familycare/css/contents.css）と同居するため全クラスに rnw- を付与。
     ページ固有クラスは rnw-nc-（nanny corporate）で始める
   - 値は全てFigmaの実測値。px・%・letter-spacing はデザイン値をそのまま記載し、
     由来のnode-idをコメントに残す
   ===================================================================== */

/* =====================================================================
   0. ページ共通
   ===================================================================== */

/* 旧CSSは box-sizing を全体に指定していない（reset.css にも無い）ため、
   このページのスコープ内だけ border-box に揃える。 */
.rnw-nc,
.rnw-nc *,
.rnw-nc *::before,
.rnw-nc *::after {
  box-sizing: border-box;
}

.rnw-nc {
  /* Figma nanny/gra2（白寄りのピンク → nanny/main）。
     common.css の --rnw-contact-gra（#FFFFFF 起点）とは開始色が異なるため
     このページ内で別途定義する。 */
  --rnw-nc-gra2: linear-gradient(to bottom, #FCF7F8 0%, #F6BECA 52.404%);

  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
}

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

/* 見出し・段落のブラウザ既定マージンを打ち消す。
   本番では旧 reset.css が効くが、固定ページ本文は管理画面プレビューなど
   reset.css の無い文脈で描画されることがあるため、このCSS単体でも
   Figmaどおりの余白になるようにしておく。
   ▼:where() で囲って詳細度を0にしている（コンポーネント側の指定を残すため）。 */
:where(.rnw-nc) :where(h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, table, th, td, hr) {
  margin: 0;
  padding: 0;
}

:where(.rnw-nc) :where(ul, ol) {
  list-style: none;
}

/* --- 見出し h2（Figma コンポーネント "title/h2"）---
   英字サブ（Lusitana 18）＋日本語見出し（Yu Mincho Pr6N D 28）の2段。
   中央寄せの回（各セクション見出し）と左寄せの回（お知らせ／よくあるご質問）がある。 */
.rnw-nc-h2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rnw-nc-h2__en {
  color: var(--rnw-accent);          /* nanny/text/accent #BC326C */
  font-family: var(--rnw-font-en);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 1.2px;
}

.rnw-nc-h2__jp {
  color: var(--rnw-text);            /* common/text/bk #444444 */
  font-family: var(--rnw-font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1.2px;
}

.rnw-nc-h2--center { text-align: center; }

/* PC/SPで改行位置が変わる箇所の出し分け（片方だけを出す） */
.rnw-nc-br-pc { display: none; }

/* --- 見出し h3（Figma トークン SP/title/h3）--- */
.rnw-nc-h3 {
  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1.2px;
  text-align: center;
}

/* --- 本文テキスト（Figma トークン SP/text/defalut/medium）--- */
.rnw-nc-text {
  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 1.2px;
}

/* SP/text/defalut/thin */
.rnw-nc-text--thin { font-weight: 400; }

/* --- 破線の区切り線（Figma Vector 13 / stroke #BC326C dasharray 2 2）---
   共通の .rnw-dash-b と併用し、色だけ上書きする。 */
.rnw-nc-hr {
  --rnw-dash-c: var(--rnw-accent);
  width: 100%;
  height: 1px;
  border: 0;
}

/* --- ボタンの追加修飾（共通 .rnw-btn を流用）--- */

/* お知らせの「一覧を見る」ボタンは枠線・文字が common/accent/red */
.rnw-nc-btn--red {
  border-color: var(--rnw-link);
  color: var(--rnw-link);
}
.rnw-nc-btn--red .rnw-btn__icon { color: var(--rnw-link); }

/* 2行ラベルのボタンだけ行間1.8・tracking0.216（Figma 129:39486 等） */
.rnw-nc-btn--loose {
  line-height: 1.8;
  letter-spacing: 0.216px;
}

/* 縦積みのボタン群（Figma 129:39483 gap10） */
.rnw-nc-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* --- ページ内メニューの飛び先（Figma 258:8942）---
   .rnw-header は position:fixed（SP 70px / PC 90px）のため、そのままだと
   アンカー移動でセクション先頭がヘッダーに隠れる。ヘッダー高ぶんだけ
   停止位置を手前にずらす。高さは common.css の変数をそのまま使う。 */
.rnw-nc [id^="nc-"] {
  scroll-margin-top: var(--rnw-header-h-pc);
}

@media only screen and (max-width: 767px) {
  .rnw-nc [id^="nc-"] {
    scroll-margin-top: var(--rnw-header-h-sp);
  }
}

/* --- セクション見出し（写真200px＋白カード40px重ね）---
   Figma 129:39408 / 129:39449 / 129:39474 / 129:39603 / 129:39928 / 129:39986
   で共通の構造。写真は画面幅いっぱい（375px）まで広げる。 */
.rnw-nc-shead {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.rnw-nc-shead__media {
  width: 100%;
  height: 200px;
  margin-bottom: -40px;
  overflow: hidden;
}

.rnw-nc-shead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Figmaで拡大・オフセットが掛かっている回（h130.7% / top-13.85% / left-2.27% / w104.54%） */
.rnw-nc-shead__media--crop {
  position: relative;
}
.rnw-nc-shead__media--crop img {
  position: absolute;
  top: -13.85%;
  left: -2.27%;
  width: 104.54%;
  height: 130.7%;
  max-width: none;
}

.rnw-nc-shead__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 300px;
  max-width: calc(100% - 32px);
  height: 126px;
  background-color: rgba(255, 255, 255, 0.9);
}

/* 見出しが3行になる回（特徴／お悩み）は高さ固定をやめて上下24pxのpaddingにする */
.rnw-nc-shead__card--auto {
  height: auto;
  padding-block: 24px;
}

/* リード文はPCが見出しカードの中、SPが本文の先頭に入る。
   両方に置いて幅ごとに片方だけ出す。 */
.rnw-nc-shead__lead { display: none; }


/* =====================================================================
   1. メインビジュアル＋リード（Figma 258:8887）
   ===================================================================== */

.rnw-nc-mv {
  padding-bottom: 19.88px;            /* section高さ558 − カード下端538.12 */
  background-color: var(--rnw-bg3);   /* Figma common/bg2 = #EEE8DE */
}

/* 写真エリア（Figma 129:39286 "image 1" / 375.317 × 490）。
   高さを固定せず aspect-ratio で持たせているのは、内側の写真の拡大率・位置を
   Figmaと同じ「%」で指定するため。 */
.rnw-nc-mv__media {
  position: relative;
  aspect-ratio: 375.317 / 490;
  overflow: hidden;
}

/* Figmaの配置値そのまま（拡大 271.8% / 位置 left −117.49%, top −31.65%）。
   ▼セレクタを2クラスにしているのは詳細度のため（上の `.rnw-nc img` に負けない）。 */
.rnw-nc-mv__media .rnw-nc-mv__img {
  position: absolute;
  top: -31.65%;
  left: -117.49%;
  width: 271.8%;
  height: 138.81%;
  max-width: none;
}

/* 写真の上に黒10%（Figma: bg-[rgba(0,0,0,0.1)]） */
.rnw-nc-mv__media::before {
  position: absolute;
  inset: 0;
  content: '';
  background-color: rgba(0, 0, 0, 0.1);
}

/* さらに紙テクスチャを重ねる（Figma: mix-blend-darken / opacity 40% /
   タイル 245.76 × 163.86px）。 */
.rnw-nc-mv__media::after {
  position: absolute;
  inset: 0;
  content: '';
  background-image: url('../../img/service-nanny-corporate/texture_paper.jpg');
  background-repeat: repeat;
  background-position: left top;
  background-size: 245.76px 163.86px;
  opacity: 0.4;
  mix-blend-mode: darken;
}

/* テキストカード（Figma 129:39287 / w343 top347.12 padding16 bg white 90%）。
   写真（高さ490）の下端に対して −142.88px 重ねる。 */
.rnw-nc-mv__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: calc(100% - 32px);      /* 375 − 16 × 2 = 343 */
  max-width: 343px;
  margin: -142.88px auto 0;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.9);
}

.rnw-nc-mv__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Figma 129:39289 Lusitana Regular 14 / lh1.3 / tracking3.7 / nanny/text/accent */
.rnw-nc-mv__en {
  color: var(--rnw-accent);
  font-family: var(--rnw-font-en);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 3.7px;
}

/* Figma 129:39290 Yu Mincho Pr6N D 26 / lh1.3 / tracking1.2 / common/text/bk */
.rnw-nc-mv__title {
  color: var(--rnw-text);
  font-family: var(--rnw-font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1.2px;
}

/* Figma 129:39291（12px と 10px の2段。どちらも Zen Kaku Gothic New Bold） */
.rnw-nc-mv__lead {
  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 1.2px;
}
.rnw-nc-mv__lead1 { font-size: 12px; }
.rnw-nc-mv__lead2 { font-size: 10px; }


/* =====================================================================
   2. 個人向けナニーサービスへの導線（Figma 258:8896）
   ---------------------------------------------------------------------
   カード内はFigmaと同じ絶対配置で組む（高さ100px固定のため）。
   ▼座標の扱い：Figmaの子要素座標はカードの外枠（border box）基準、CSSの
     absolute はボーダーの内側（padding box）基準。カードは2pxボーダーのため、
     Figmaの値から一律 2px を引いた値を指定している。
   ===================================================================== */

.rnw-nc-personal {
  padding: 24px 16px;
  background-color: var(--rnw-bg3);
}

.rnw-nc-personal__banner {
  position: relative;
  display: block;
  max-width: 343px;
  height: 100px;
  margin-inline: auto;
  border: 2px solid var(--rnw-accent);   /* nanny/text/accent #BC326C */
  border-radius: 8px;
  background-color: var(--rnw-bg2);      /* nanny/bg #FAEEF1 */
  overflow: hidden;
  text-decoration: none;
}

/* Figma 129:39297（left163.59 / top−2 / 177.406 × 97.313）
   ▼セレクタを2クラスにしているのは詳細度のため。上の `.rnw-nc img`
     （要素セレクタを含むため詳細度0,1,1）の max-width:100% / height:auto に
     負けると、写真のサイズとクロップ位置が効かなくなる。 */
.rnw-nc-personal__banner .rnw-nc-personal__img {
  position: absolute;
  top: -4px;
  left: 161.59px;
  width: 177.406px;
  height: 97.313px;
  max-width: none;
  object-fit: cover;
}

/* Figma 129:39299 Zen Kaku Gothic New Bold 18 / lh1.3 / tracking0.4669 /
   common/accent/red #912344。left23.66 / 上下中央 top49.16 */
.rnw-nc-personal__text {
  position: absolute;
  top: 47.16px;
  left: 21.66px;
  transform: translateY(-50%);
  color: var(--rnw-link);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.4669px;
  white-space: nowrap;
}

/* Figma 129:39300（22px / left309 / top38.96）。アセットの線色は白。 */
.rnw-nc-personal__arrow {
  position: absolute;
  top: 36.96px;
  left: 307px;
  width: 22px;
  height: 22px;
  color: #FFFFFF;
}


/* =====================================================================
   3. 法人向けナニーサービスとは？（Figma 258:8906）
   ===================================================================== */

.rnw-nc-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 56px 16px;
  background-color: #FFFFFF;
}

/* ▼2クラスにしているのは詳細度のため（`.rnw-nc img` の height:auto に負けない） */
.rnw-nc-about .rnw-nc-about__logo {
  width: 276px;
  height: 120px;
}

.rnw-nc-about__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

/* PCは見出しと本文が1枚の白カードに入るためラッパを持たせている。
   SPは写真がその2つの間に入るので、ラッパを畳んで order で並べ替える。 */
.rnw-nc-about__card { display: contents; }
.rnw-nc-about__body > .rnw-nc-about__card > .rnw-nc-h2 { order: 1; }
.rnw-nc-about__media { order: 2; }
.rnw-nc-about__inner { order: 3; }

/* Figma 129:39343（高さ250 / 内側の写真は left−8.43 幅351.434 = 343基準） */
.rnw-nc-about__media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.rnw-nc-about__media img {
  position: absolute;
  top: 0;
  left: -2.458%;                     /* −8.43 ÷ 343 */
  width: 102.458%;                   /* 351.434 ÷ 343 */
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.rnw-nc-about__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}


/* =====================================================================
   4. ページ内メニュー（Figma 258:8942）
   ---------------------------------------------------------------------
   各セクションへのアンカーリンク。カードは160px固定の2列折り返し。
   ===================================================================== */

.rnw-nc-menu {
  padding: 56px 16px;
  background-image: var(--rnw-nc-gra2);
}

.rnw-nc-menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.rnw-nc-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 160px;
  padding: 16px;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.2px;
  text-decoration: none;
  white-space: nowrap;
  /* Figmaトークン drop（0 4px / blur56 / #00000014）。CSSのblurは半分の28px。 */
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.08));
}

/* 丸囲みシェブロン。アセットは下向きで書き出されており、common.css の
   .rnw-icon--arrow は rotate(-90deg) で右向きにしている。ここでは下向きの
   まま使うので回転を打ち消す（Figma 258:8945 / 14px / 線色 #444444）。 */
.rnw-nc-menu__icon {
  width: 14px;
  height: 14px;
  transform: none;
  color: var(--rnw-text);
}


/* =====================================================================
   5. 横スライダー（共通パーツ）
   ---------------------------------------------------------------------
   Figma 129:39413（コントロール）＋ 129:39428（カード列）。
   JSが無くても指でスワイプできるよう、素のスクロール＋scroll-snapで実装し、
   前後ボタンと進捗バーだけを renewal/js/service-nanny.js から制御する。
   （data-rnw-slider* の属性名は service-nanny.js の実装に合わせている）
   ===================================================================== */

.rnw-nc-slider {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

/* コントロール（Figma 129:39413 幅239 / 高さ24） */
.rnw-nc-slider__ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 239px;
  height: 24px;
  margin-inline: auto;
}

.rnw-nc-slider__btn {
  display: block;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rnw-nc-slider__btn img { width: 24px; height: 24px; }

/* 「前へ」は同じアセットを180度回転（Figma 129:39417 rotate180） */
.rnw-nc-slider__btn--prev img { transform: rotate(180deg); }

/* --- ボタン（Figma 694:25790 活用事例 / 694:25792 料金のご相談） ---
   法人ページは枠線・文字も common/accent/red。共通の --rnw-subcta-text は
   nanny/text/accent（#BC326C）なので、このページだけ上書きする。 */
.rnw-nc .rnw-btn--sub {
  border-color: var(--rnw-link);
  color: var(--rnw-link);
}

.rnw-nc .rnw-btn--sub .rnw-btn__icon { color: var(--rnw-link); }

/* 端に到達したボタンは半透明（Figma 129:39414 opacity 50%） */
.rnw-nc-slider__btn[disabled] { opacity: 0.5; cursor: default; }

/* 進捗バー（Figma 129:39420 160×1px ＋ 129:39421 65.341×3px r10） */
.rnw-nc-slider__bar {
  position: relative;
  width: 160px;
  height: 1px;
  background-color: var(--rnw-accent);
}

.rnw-nc-slider__bar-thumb {
  position: absolute;
  top: -1px;
  left: 0;
  width: 40.8%;                      /* 65.341 ÷ 160。JS側で実際の割合に更新 */
  height: 3px;
  border-radius: 10px;
  background-color: var(--rnw-accent);
}

/* カード列（Figma 129:39427 が w375 px16 / 129:39428 gap16 / カード幅300） */
.rnw-nc-slider__track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  padding-inline: 16px;
  overflow-x: auto;
  /* overflow-x を指定すると Y 方向もクリップされ、カードの drop-shadow が
     上下で切れる（overflow-y: clip は auto と混ぜると hidden に矯正されるので使えない）。
     内側に影のぶんの余白を作り、同じだけ外へ戻すので見た目の位置は変わらない。 */
  padding-block: 40px;
  margin-block: -40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;             /* Firefox */
  -ms-overflow-style: none;
}

.rnw-nc-slider__track::-webkit-scrollbar { display: none; }

.rnw-nc-slider__item {
  flex: 0 0 300px;
  /* 本文の長短で下端がずれないよう、行内でカードの高さを揃える */
  align-self: stretch;
  scroll-snap-align: start;
}


/* =====================================================================
   6. 法人向けナニーサービスの特徴（Figma 258:8979）
   ===================================================================== */

.rnw-nc-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 80px;
  background-color: var(--rnw-bg2);   /* nanny/bg #FAEEF1 */
}

/* 特徴カード（Figma 129:39429 幅300） */
.rnw-nc-fcard {
  display: flex;
  flex-direction: column;
  /* height を指定すると交差軸のサイズが auto でなくなり align-self:stretch が効かない。
     親（トラック）の高さも auto なので 100% は自分の中身の高さに落ち、行内で高さが揃わなくなる。 */
  filter: drop-shadow(0 4px 28px rgba(0, 0, 0, 0.08));
}

/* ▼2クラスにしているのは詳細度のため（`.rnw-nc img` の height:auto に負けない） */
.rnw-nc-fcard .rnw-nc-fcard__media {
  width: 100%;
  height: 200px;  /* ▼ 2026-08-30 17章で上書き（768～1199は高さauto） */
  object-fit: cover;
}

.rnw-nc-fcard__body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background-color: #FFFFFF;
}

/* Figma 129:39434 は両端揃え */
.rnw-nc-fcard__text { text-align: justify; }


/* =====================================================================
   7. このような悩みはありませんか？（Figma 258:9021）
   ===================================================================== */

.rnw-nc-worry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 80px;
  background-color: #FFFFFF;
}

.rnw-nc-worry__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-inline: 16px;
}

/* Figma 129:39455（白地＋nanny/main の1px枠） */
.rnw-nc-worry__item {
  border: 1px solid var(--rnw-main);
  background-color: #FFFFFF;
}

/* Figma 129:39456（nanny/bg 地／px11 py17） */
.rnw-nc-worry__head {
  padding: 17px 11px;
  border: 1px solid var(--rnw-main);
  background-color: var(--rnw-bg2);
}

/* Figma 129:39457 SP/text/large/bold + list-disc（インデント27px） */
.rnw-nc-worry__points {
  list-style: disc;
  color: var(--rnw-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.216px;
}

.rnw-nc-worry__points li { margin-inline-start: 27px; }

.rnw-nc-worry__body { padding: 16px; }


/* =====================================================================
   8. 白カードのパネル（法人契約／ホテルサービス／臨時託児で共通）
   ---------------------------------------------------------------------
   Figma 129:39498（法人契約・白ベタ）／129:39884・129:39941（白90%）。
   いずれも旧サイトのHTMLをそのまま流し込んだブロックのため、Figmaの
   padding が端数（15px / 23.4px 等）になっている。実寸のまま記載する。
   ===================================================================== */

.rnw-nc-panel-wrap {
  width: 100%;
  padding-inline: 16px;
}

.rnw-nc-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 24px;
  border-radius: 12px;
  /* Figma 1297:30653 は白90%（下地のグラデーションが透ける）。 */
  background-color: rgba(255, 255, 255, 0.9);
}

.rnw-nc-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 23.4px;
  padding-inline: 15px;
}

.rnw-nc-panel__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rnw-nc-panel__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0.6px;
}

/* ホテルサービスの写真（Figma 129:39888 高さ166 / 拡大104.54%） */
.rnw-nc-panel__media--crop {
  position: relative;
  height: 166px;
  overflow: hidden;
}
.rnw-nc-panel__media--crop img {
  position: absolute;
  top: -13.85%;
  left: -2.27%;
  width: 104.54%;
  height: 130.7%;
  max-width: none;
}

/* 臨時託児の写真（Figma 129:39945 高さ149.91 / 上角のみ4px） */
.rnw-nc-panel__media--round {
  height: 149.91px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.rnw-nc-panel__media--round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 見出し帯（Figma 129:39505 / 129:39893 / 129:39950 common/bg #FAF7F2） */
.rnw-nc-band {
  padding: 8px 16px;
  background-color: var(--rnw-bg1);
  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 1.2px;
  text-align: center;
}

/* サービス内容タイル（Figma 129:39896 / 129:39953 幅146の2列） */
.rnw-nc-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.rnw-nc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 146px;
  padding: 12px;
  border: 1px solid var(--rnw-main);
  border-radius: 8px;
  background-color: #FFFFFF;
  color: var(--rnw-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.168px;
  text-align: center;
}

.rnw-nc-tile img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}

/* TODO: 写真未支給の枠（Figmaはグレーのベタ塗り #D9D9D9） */
.rnw-nc-tile__empty {
  display: block;
  width: 100%;
  height: 70px;
  background-color: #D9D9D9;
}


/* =====================================================================
   9. ナニーサービス法人契約（Figma 258:9046）
   ===================================================================== */

.rnw-nc-contract {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 80px;
  background-image: var(--rnw-nc-gra2);
}

.rnw-nc-contract__lead {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-inline: 16px;
}

/* 導入実績（Figma 129:39487 白90% / px16 py24 / gap32） */
.rnw-nc-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 24px 16px;
  background-color: rgba(255, 255, 255, 0.9);
}

.rnw-nc-record__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Figma 129:39491 SP/text/large/bold（中央寄せ） */
.rnw-nc-record__title {
  color: var(--rnw-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.216px;
  text-align: center;
}

/* --- ベビーシッター法人契約（Figma 129:39497）---
   Figmaの縦間隔が一定でないため gap ではなく個別のmarginで指定する。 */
.rnw-nc-contract .rnw-nc-panel__section {
  gap: 0;
}
.rnw-nc-contract .rnw-nc-panel__section > * + * { margin-top: 16px; }
.rnw-nc-contract .rnw-nc-grid3        { margin-top: 24px; }   /* Figma 129:39507 pt24 */
.rnw-nc-contract .rnw-nc-merit--corp  { margin-top: 24px; }   /* Figma 129:39514 pt24 */

/* 3列の補償項目（Figma 1297:30276）。SPは淡いピンク地・枠線なし・4pxの間隔。 */
.rnw-nc-grid3 {
  display: flex;
  gap: 4px;            /* Figma実測 */
  width: 100%;
}

.rnw-nc-grid3 li {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 95px;    /* Figma実測 */
  padding: 8px;
  border: 0;
  background-color: #FAEEF1;      /* Figma nanny/bg */
  color: var(--rnw-accent);       /* Figma nanny/text/accent #BC326C */
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 1.2px;
  text-align: center;
}


/* メリット枠（Figma 129:39516 法人様＝ブルー／129:39532 従業員様＝ピンク） */
.rnw-nc-merit {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 23px 16px 24px;
  border-radius: 10px;
}

.rnw-nc-merit--corp  { background-color: #E2E8F5; --rnw-nc-merit-c: #4B79B4; }
.rnw-nc-merit--staff { background-color: #FBEAEF; --rnw-nc-merit-c: #CD5D79; }

.rnw-nc-merit__head {
  color: var(--rnw-nc-merit-c);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.216px;
  text-align: center;
}

/* 「従業員様のメリット」の見出しだけ #CC5A77（カード内の見出しは #CD5D79）。
   Figma側の微差だが、デザイン値どおりに実装している。 */
.rnw-nc-merit--staff .rnw-nc-merit__head { color: #CC5A77; }

.rnw-nc-merit__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rnw-nc-merit__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8.5px;
  min-height: 116px;
  padding: 24px 16px;
  border-radius: 8px;
  background-color: #FFFFFF;
}

/* 見出しが2本入る回だけ間隔が広い（Figma 129:39522 gap30） */
.rnw-nc-merit__item--stack { gap: 30px; }

.rnw-nc-merit__title {
  color: var(--rnw-nc-merit-c);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.216px;
  text-align: center;
}

/* ▼Figmaは本文だけ幅238〜242pxで置かれているが、旧HTMLの流し込みに由来する
   端数のためカード幅いっぱいに広げている。 */
.rnw-nc-merit__text { width: 100%; }

/* --- 費用（Figma 129:39546 #F7F7F7 / r10 / pt40 pb24 px16）--- */
.rnw-nc-cost {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 16px 24px;
  border-radius: 10px;
  background-color: #F7F7F7;
  overflow: hidden;
}

/* 左上の金色の帯（Figma 129:39547 95×23 を −45度回転して配置） */
.rnw-nc-cost::before {
  position: absolute;
  top: 10px;
  left: -22px;
  width: 95px;
  height: 23px;
  content: '';
  transform: rotate(-45deg);
  background-image: linear-gradient(to right, #E4BD75 0%, #FAECD3 50%, #E0B566 100%);
}

.rnw-nc-cost__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 16px;
}

/* Figma 129:39550：文字の下半分だけ #FFDBEB のマーカー */
.rnw-nc-cost__label {
  position: relative;
  display: flex;
  justify-content: center;
}

.rnw-nc-cost__label span {
  padding-inline: 8px;
  background-image: linear-gradient(to bottom, rgba(255, 219, 235, 0) 65%, #FFDBEB 65%);
  color: var(--rnw-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.216px;
  text-align: center;
}

/* 2項目の間に置く「＋」バッジ（Figma 129:39555 28pxの円 #AE8564） */
.rnw-nc-cost__label--plus::before {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 28px;
  height: 28px;
  content: '＋';
  transform: translateX(-50%);
  border-radius: 50%;
  background-color: #AE8564;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}

/* Figma 129:39558（白地／#AE8564 の1px枠／Yu Mincho 28px #9F8157） */
.rnw-nc-cost__badge {
  max-width: 450px;
  padding: 5px 1px;
  border: 1px solid #AE8564;
  background-color: #FFFFFF;
  color: #9F8157;
  font-family: var(--rnw-font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 1.2px;
  text-align: center;
}

.rnw-nc-cost__note {
  color: var(--rnw-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.216px;
  text-align: center;
}

/* 金額表（Figma 129:39562） */
.rnw-nc-cost__table {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.rnw-nc-cost__cell {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  max-width: 300px;
}

/* 左セルは右に24pxあけ、その位置に「＋」を重ねる（Figma 129:39574） */
.rnw-nc-cost__cell:first-child {
  position: relative;
  padding-right: 24px;
}

.rnw-nc-cost__cell:first-child::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  content: '＋';
  transform: translateY(-50%);
  color: #AE8564;
  font-size: 18px;
  line-height: 27px;
  text-align: center;
}

/* Figma 129:39565 金色のグラデーション見出し */
.rnw-nc-cost__head {
  padding: 8px;
  background-image: linear-gradient(to right, #DEB15E 0%, #FCEFD9 50%, #E2B670 100%);
  color: var(--rnw-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0.9px;
  text-align: center;
}

.rnw-nc-cost__body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 130.69px;
  padding: 9px;
  border: 1px solid #E5BB79;
  background-color: #FFFFFF;
  text-align: center;
}

.rnw-nc-cost__price {
  color: var(--rnw-text);
  font-weight: 500;
}
.rnw-nc-cost__num { font-size: 17px; line-height: 29.41px; }
.rnw-nc-cost__yen { font-size: 18px; line-height: 31.14px; }
.rnw-nc-cost__per { font-size: 13px; font-weight: 400; line-height: 22.49px; }

.rnw-nc-cost__sub {
  color: var(--rnw-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 22.49px;
}

/* 右セルのコース名だけ14px（Figma 129:39581 / 129:39591） */
.rnw-nc-cost__cell:last-child .rnw-nc-cost__sub {
  font-size: 14px;
  line-height: 24.22px;
}

/* Figma 129:39599（※ 付きの注記／文字色は #222222 の70%） */
.rnw-nc-cost__annotation {
  display: flex;
  color: rgba(34, 34, 34, 0.7);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 1.2px;
}


/* =====================================================================
   10. ホテル提携のナニーサービス（Figma 258:9175）
   ===================================================================== */

.rnw-nc-hotel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 80px;
  background-image: var(--rnw-nc-gra2);
}

.rnw-nc-hotel__lead {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-inline: 16px;
}

/* --- 提携ホテル一覧（Figma 258:9188）---
   表のマークアップはカスタム投稿「hotel」から parts/renewal/hotels.php が出力する。 */
.rnw-nc-hotels {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 16px;
  background-color: #FFFFFF;   /* 見出し「提携ホテル一覧」から下は白地（Figma 258:9188） */
}

/* Figma 258:9189（SP/title/h3）。他セクションのh3にならって中央寄せ。 */
.rnw-nc-hotels__title {
  color: var(--rnw-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1.2px;
  text-align: center;
}

/* 表はSP幅（375px）に収まらないため横スクロールで見せる。
   セクションの左右padding（16＋16）を打ち消して画面幅いっぱいまで使う。 */
.rnw-nc-hotels__scroll {
  width: calc(100% + 32px);
  margin-inline: -16px;
  padding-inline: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Figma 258:9191（総幅922.029 / セル間 1.441px）。
   セル間の隙間は border-spacing で再現するため、外周ぶん（左右1.441px）が
   加算されて 924.911px になる。 */
/* 旧 contents.css の `table { margin: 0 0 32px }` は要素セレクタ（0,0,1）で、
   上の :where() リセット（0,0,0）に勝ってしまう。ここで明示的に打ち消す。 */
.rnw-nc-hoteltable {
  width: 924.911px;
  margin: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 1.441px;
  font-family: var(--rnw-font-jp);
}

.rnw-nc-hoteltable th,
.rnw-nc-hoteltable td {
  vertical-align: middle;
}

.rnw-nc-hoteltable__c1 { width: 244.914px; }
.rnw-nc-hoteltable__c2 { width: 432.201px; }
.rnw-nc-hoteltable__c3 { width: 242.032px; }

/* 見出し行（Figma 258:9192 common/text/gray 地） */
.rnw-nc-hoteltable__head th {
  padding: 8.644px 14.407px;
  background-color: var(--rnw-caption);
  color: #FFFFFF;
  font-size: 12.966px;
  font-weight: 700;
  line-height: 15.775px;
  letter-spacing: 0.4322px;
  text-align: left;
}

/* エリア見出し行（Figma 258:9199 nanny/main 地） */
.rnw-nc-hoteltable__group th {
  padding: 10.805px 14.407px 11.886px;
  background-color: var(--rnw-main);
  color: #FFFFFF;
  font-size: 12.966px;
  font-weight: 700;
  line-height: 15.775px;
  letter-spacing: 0.4322px;
  text-align: center;
}

/* データ行（Figma 258:9307） */
.rnw-nc-hoteltable td {
  color: var(--rnw-text);
  font-size: 10.805px;
  font-weight: 400;
  line-height: 15.775px;
  letter-spacing: 0.4322px;
}

.rnw-nc-hoteltable td.rnw-nc-hoteltable__c1 {
  padding: 8.644px 14.407px;
  background-color: var(--rnw-bg3);   /* common/bg2 #EEE8DE */
}

.rnw-nc-hoteltable td.rnw-nc-hoteltable__c2 {
  padding: 8.644px 14.407px 10.085px;
  background-color: #FFFFFF;
}

/* --- 旧CSS（/familycare/css/contents.css）の table 指定を打ち消す ---
   下記は詳細度がこちらの指定より高く、そのままだと勝ってしまう。
     table th[colspan]              → 地色 #b8a697・白文字（エリア見出しがタウプになる）
     table tr:not(:last-child) th   → 白2pxの下罫線
     table tr:not(:last-child) td   → 白2pxの下罫線
     table th                       → 白0.8pxの右罫線
     table                          → margin-bottom 32px
   セル間の隙間は border-spacing で作っているので罫線は不要。 */
.rnw-nc .rnw-nc-hoteltable { margin: 0; }

.rnw-nc .rnw-nc-hoteltable tr th,
.rnw-nc .rnw-nc-hoteltable tr td { border: 0; }

.rnw-nc .rnw-nc-hoteltable tr.rnw-nc-hoteltable__group th {
  background-color: var(--rnw-main);   /* nanny/main #F6BECA */
  color: #FFFFFF;
}

/* 住所の頭に付く絵文字。Figmaでは新しく起こした行にのみ付いているが、
   CMS出力では全行に付ける。 */
.rnw-nc-hoteltable__pin {
  margin-inline-end: 2px;
  font-style: normal;
}

.rnw-nc-hoteltable td.rnw-nc-hoteltable__c3 {
  padding: 0;
  background-color: var(--rnw-accent);
}

.rnw-nc-hoteltable td.rnw-nc-hoteltable__c3 a,
.rnw-nc-hoteltable td.rnw-nc-hoteltable__c3 span {
  display: block;
  padding: 10.805px 14.407px 11.886px;
  color: #FFFFFF;
  font-size: 14.407px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.3602px;
  text-decoration: none;
}


/* =====================================================================
   11. イベント臨時託児（Figma 258:9500）
   ===================================================================== */

.rnw-nc-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 80px;
  background-image: var(--rnw-nc-gra2);
}

.rnw-nc-event__lead {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-inline: 16px;
}


/* =====================================================================
   12. お客様の声（Figma 363:42937）
   ---------------------------------------------------------------------
   絞り込みタグ・スライダー・カードはすべて [rnw_voice_nanny_list] の出力。
   見た目は renewal/css/parts/voice-cards.css が持つ（header.php で先に
   読み込んでいる）。ここではセクションの外枠だけを指定する。
   ===================================================================== */

.rnw-nc-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 80px;
  background-color: #FFFFFF;
}

.rnw-nc-voice__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding-inline: 16px;
}

/* =====================================================================
   13. お知らせ（Figma 258:9594）
   ---------------------------------------------------------------------
   一覧は [display_news cats="nanny" count=3]（旧デザイン）に差し替え。
   ===================================================================== */

.rnw-nc-news {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 80px 16px;
  background-color: var(--rnw-bg3);   /* common/bg2 #EEE8DE */
}

.rnw-nc-news__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}


/* =====================================================================
   14. よくあるご質問（Figma 258:9633）
   ---------------------------------------------------------------------
   絞り込みタグとQ&A本体は [display_faq type="..."] の出力。
   ショートコードは service-nanny と同じ .rnw-nanny-ftag* / .rnw-nanny-faq__*
   のクラス名で吐くため、ここでも同じ指定を持たせる（service-vipcare /
   subsidy-support と同じやり方）。値は service-nanny.css からの転記。
   絞り込みは renewal/js/service-nanny.js が data-cat で行う（JS読み込み済み）。
   開閉は <details>/<summary>（JS不要）。
   ===================================================================== */

.rnw-nc-faq {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px 24px;
  background-color: #FFFFFF;
}

/* --- 絞り込みタグ（Figma 258:9635 gap12） --- */
.rnw-nc-faq .rnw-nanny-ftags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  /* margin: 0 と書くと、PCの .rnw-nc-faq > * が持つ margin-inline:auto まで
     詳細度で打ち消してしまい、タグだけ左端に寄る */
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.rnw-nc-faq .rnw-nanny-ftag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19.926px;            /* Figma: 外側8px＋内側11.926px */
  border: 0.745px solid var(--rnw-main);
  border-radius: 55.96px;
  background-color: #FFFFFF;
  color: var(--rnw-accent);
  font-family: var(--rnw-font-jp);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.2px;
  white-space: nowrap;
  cursor: pointer;
}

.rnw-nc-faq .rnw-nanny-ftag--current {
  border-color: #FFFFFF;
  background-color: var(--rnw-accent);
  color: #FFFFFF;
}

.rnw-nc-faq .rnw-nanny-faq__list { width: 100%; }

/* Q行（Figma 258:9646 py20 / 下線 #444 / gap10） */
.rnw-nc-faq .rnw-nanny-faq__q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rnw-text);
  cursor: pointer;
  list-style: none;
}

.rnw-nc-faq .rnw-nanny-faq__q::-webkit-details-marker { display: none; }

/* Q. / A. の記号（Lusitana Bold 24 / lh36px） */
.rnw-nc-faq .rnw-nanny-faq__mark {
  flex: 0 0 auto;
  color: var(--rnw-text);
  font-family: var(--rnw-font-en);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.rnw-nc-faq .rnw-nanny-faq__qtext {
  flex: 1 0 0;
  min-width: 0;
  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.168px;
}

/* 開閉アイコン（13pxの＋／開いている時は横線のみ） */
.rnw-nc-faq .rnw-nanny-faq__toggle {
  display: flex;
  flex: 0 0 13px;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
}

.rnw-nc-faq .rnw-nanny-faq__icon--minus { transform: rotate(90deg); }

.rnw-nc-faq .rnw-nanny-faq__item[open] .rnw-nanny-faq__icon--plus { display: none; }
.rnw-nc-faq .rnw-nanny-faq__item:not([open]) .rnw-nanny-faq__icon--minus { display: none; }

/* A行（上に20px / 左インデント40px / 下線 #444） */
.rnw-nc-faq .rnw-nanny-faq__a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 0 0 20px 40px;
  border-bottom: 1px solid var(--rnw-text);
}

.rnw-nc-faq .rnw-nanny-faq__atext {
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 1.2px;
}

/* 末尾のカテゴリ一覧（Figma 363:43063）。[display_faq more="1"] の出力で、
   タグは上の絞り込みタグと同じもの（JSがセクション内の両方を同期する）。 */
.rnw-nc-faq .rnw-nanny-faq__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background-color: var(--rnw-bg1);   /* common/bg #FAF7F2 */
}

.rnw-nc-faq .rnw-nanny-faq__more-title {
  color: var(--rnw-text);
  font-family: var(--rnw-font-jp);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.168px;
}


/* =====================================================================
   15. 追従CTA（Figma 258:9686）
   ---------------------------------------------------------------------
   画面下部に固定表示。Figma上のコンポーネントは0.962倍で配置されているため
   padding等が端数になっている（33px→31.731px 等）。見た目を合わせるため
   表示されている実寸のまま記載している。
   影は Figmaトークン dp-follow（0 -10px 24px #00000014）を使用。
   ===================================================================== */

.rnw-nc-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  /* ドロワー(11)より上。開いている間もバーを出す（2026-09-16）。 */
  z-index: 13;
  display: flex;
  gap: 1.923px;
  background-color: #FFFFFF;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.08);
}

.rnw-nc-cta__btn {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 16.346px 31.731px;
  font-family: var(--rnw-font-jp);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.2px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

/* 左：サービス概要（Figma 258:9687） */
.rnw-nc-cta__btn--sub {
  background-color: var(--rnw-main);  /* nanny/main #F6BECA */
  color: var(--rnw-text);
}

/* 右：お問い合わせ（Figma 258:9689） */
.rnw-nc-cta__btn--main {
  border-left: 0.962px solid #FFFFFF;
  background-color: var(--rnw-accent);
  color: #FFFFFF;
}


/* =====================================================================
   16. レスポンシブ（旧CSSと同じ 767/768 で分岐）
   ===================================================================== */

/* ---------- PC（Figma 453:32378）----------
   1440px幅・コンテンツ1280px・左右余白80pxで設計されている。
   余白は狭い画面でも詰まるよう clamp で可変にする。
   ------------------------------------------------------------------ */
@media only screen and (min-width: 768px) {

  /* 本文の外側の .rnw-nc が失われても幅の指定が死なないよう :root にも持たせる。
     （管理画面のエディタが最外周の div を落とすことがある） */
  :root,
  .rnw-nc {
    --pc-pad: clamp(24px, 5.56vw, 80px);
    --pc-max: 1280px;
  }

  /* --- 文字（Figma PC/title/* ・PC/text/*） --- */
  .rnw-nc-h2__en { font-size: 24px; }
  .rnw-nc-h2__jp { font-size: 42px; }
  .rnw-nc-h3     { font-size: 24px; }
  .rnw-nc-text   { font-size: 16px; }

  /* 改行位置の出し分け */
  .rnw-nc-br-sp { display: none; }
  .rnw-nc-br-pc { display: inline; }
  .rnw-nc .rnw-btn br { display: none; }

  /* --- ボタン（Figma 453:32408 幅480 / px32 py16 / 18px） --- */
  .rnw-nc .rnw-btn {
    width: 480px;
    max-width: 100%;
  }

  /* SPだけの要素（PCのページ内ナビはヘッダー下のToC帯が持つ） */
  .rnw-nc-menu,
  .rnw-nc-cta,
  .rnw-nc-splead { display: none; }

  /* PCだけの要素（Figma 453:32943 中央寄せ） */
  .rnw-nc-shead__lead {
    display: block;
    text-align: center;
  }

  /* 1280に収める内側のコンテナ。セクション側は左右paddingを持たない
     （見出しの写真を画面幅いっぱいに出す回があるため）。 */
  .rnw-nc-contract__lead,
  .rnw-nc-hotel__lead,
  .rnw-nc-event__lead,
  .rnw-nc-voice__body,
  .rnw-nc-panel-wrap,
  .rnw-nc-slider,
  .rnw-nc-features .rnw-nc-shead,
  .rnw-nc-contract .rnw-nc-shead {
    width: calc(100% - var(--pc-pad) * 2);
    max-width: var(--pc-max);
    margin-inline: auto;
    padding-inline: 0;
  }

  /* --- セクション見出し（Figma 453:32465 ほか）---
     全幅400pxの写真にカードを中央で重ねるのが既定。 */
  .rnw-nc-shead {
    position: relative;
    display: block;
  }

  .rnw-nc-shead__media {
    position: relative;
    height: 400px;
    margin-bottom: 0;
  }

  .rnw-nc-shead__media--crop img,
  .rnw-nc-shead__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .rnw-nc-shead__card {
    position: absolute;
    top: 50%;
    left: 50%;
    gap: 24px;
    width: 640px;
    max-width: calc(100% - var(--pc-pad) * 2);
    height: auto;
    padding: 32px;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
  }

  .rnw-nc-shead__card--auto { padding-block: 32px; }

  /* 特徴・法人契約だけは1280内で写真とカードを左右に重ねる
     （Figma 453:32436 写真左／453:32491 写真右） */
  .rnw-nc-features .rnw-nc-shead,
  .rnw-nc-contract .rnw-nc-shead {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* 写真とカードを同じマスに重ねる。重なり順は見出し枠の中で閉じ、
     写真・カードの両方に段を明示する（片方だけだと外側の指定に拾われる） */
  .rnw-nc-features .rnw-nc-shead,
  .rnw-nc-contract .rnw-nc-shead {
    isolation: isolate;
  }

  .rnw-nc-features .rnw-nc-shead__media,
  .rnw-nc-contract .rnw-nc-shead__media {
    position: relative;
    z-index: 0;
    grid-area: 1 / 1;
    width: 78.125%;                  /* 1000 ÷ 1280 */
    height: auto;
    aspect-ratio: 1000 / 560;
  }

  .rnw-nc-features .rnw-nc-shead__media img,
  .rnw-nc-contract .rnw-nc-shead__media img {
    z-index: 0;
  }

  .rnw-nc-features .rnw-nc-shead__card,
  .rnw-nc-contract .rnw-nc-shead__card {
    position: relative;
    z-index: 2;
    align-self: end;
    grid-area: 1 / 1;
    width: 50%;                      /* 640 ÷ 1280 */
    max-width: none;
    transform: none;
  }

  .rnw-nc-features .rnw-nc-shead__media { justify-self: start; }
  .rnw-nc-features .rnw-nc-shead__card  { justify-self: end; }
  .rnw-nc-contract .rnw-nc-shead__media { justify-self: end; }
  .rnw-nc-contract .rnw-nc-shead__card  { justify-self: start; }


  /* ---------- 1. メインビジュアル（Figma 453:32381） ---------- */
  .rnw-nc-mv {
    position: relative;
    padding-bottom: 0;
  }

  .rnw-nc-mv__media { aspect-ratio: 1440 / 707; }

  /* Figmaの配置値そのまま（拡大 211.35% / 位置 left −111.35%, top −83%）。
     元写真は3:2の1枚で、PCとSPで切り抜く位置が違う（Figma 694:25675）。
     cover にすると中央を切ってしまい、デザインの右寄りの構図にならない。 */
  .rnw-nc-mv__media .rnw-nc-mv__img {
    top: -83%;
    left: -111.35%;
    width: 211.35%;
    height: 286.92%;
  }

  /* Figma 453:32384（右下寄せ640px / 白90% / padding29.695 / gap20.415） */
  .rnw-nc-mv__card {
    position: absolute;
    right: var(--pc-pad);
    bottom: 14.57%;                  /* (707 − 604) ÷ 707 */
    gap: 20.415px;
    width: 44.44%;                   /* 640 ÷ 1440 */
    max-width: 640px;
    margin: 0;
    padding: 29.695px;
  }

  .rnw-nc-mv__head { gap: 7.424px; }

  .rnw-nc-mv__en {
    font-size: 25.983px;
    letter-spacing: 6.8669px;
  }

  .rnw-nc-mv__title { font-size: 42px; }

  .rnw-nc-mv__lead { font-weight: 500; }
  .rnw-nc-mv__lead1,
  .rnw-nc-mv__lead2 { font-size: 16px; }


  /* ---------- 2. 個人向けバナー（Figma 453:32389）----------
     PCではメインビジュアルの左下に重ねる。高さ0の箱にして
     後続セクションの位置に影響させない。 */
  .rnw-nc-personal {
    position: relative;
    z-index: 1;
    height: 0;
    padding: 0;
    background-color: transparent;
  }

  .rnw-nc-personal__banner {
    position: absolute;
    bottom: 27px;                    /* 707 −（580 ＋ 100） */
    left: 26.6px;
    margin-inline: 0;
  }


  /* ---------- 3. 法人向けナニーサービスとは？（Figma 453:32400） ---------- */
  .rnw-nc-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 80px var(--pc-pad);
  }

  /* ロゴロックアップ（Figma 453:32409 x70 / y39.99） */
  .rnw-nc-about .rnw-nc-about__logo {
    z-index: 2;
    grid-area: 1 / 1;
    justify-self: start;
    align-self: start;
    margin:39.99px 0 0 calc((100% - var(--pc-max)) / 2 - -87px);
  }

  .rnw-nc-about__body {
    display: grid;
    grid-template-columns: 1fr;
    grid-area: 1 / 1;
    gap: 0;
    width: 100%;
    max-width: var(--pc-max);
    margin-inline: auto;
  }

  /* 写真は右寄せ（Figma 453:32401 1000×560） */
  .rnw-nc-about__media {
    grid-area: 1 / 1;
    justify-self: end;
    width: 78.125%;
    height: auto;
    aspect-ratio: 1000 / 560;
  }

  .rnw-nc-about__media img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 本文カード（Figma 453:32403 左寄せ640px / 白80% / padding32）。
     写真下端560に対して上端184なので −29.375%（376 ÷ 1280）引き上げる。 */
  .rnw-nc-about__card {
    z-index: 1;
    display: flex;
    flex-direction: column;
    grid-area: 2 / 1;
    gap: 24px;
    justify-self: start;
    width: 50%;
    margin-top: -29.375%;
    padding: 32px;
    background-color: rgba(255, 255, 255, 0.8);
  }

  .rnw-nc-about__inner { gap: 24px; }


  /* ---------- 5. 横スライダー（PCは3列のグリッドで並べる） ---------- */
  .rnw-nc-slider__ctrl { display: none; }

  .rnw-nc-slider__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));  /* ▼ 2026-08-30 17章で上書き（特徴は768～1199で2列） */
    gap: 16px;
    padding-inline: 0;
    overflow: visible;
  }

  .rnw-nc-slider__item { flex: none; }


  /* ---------- 6. 特徴（Figma 453:32434） ---------- */
  .rnw-nc-features {
    gap: 56px;
    padding-block: 120px;
  }

  /* カード（Figma 453:32443 幅416 / 写真200 / padding16） */
  .rnw-nc-fcard__body { gap: 12px; }


  /* ---------- 7. このような悩みはありませんか？（Figma 453:32463） ---------- */
  .rnw-nc-worry {
    gap: 56px;
    padding-bottom: 80px;
  }

  /* Figma 453:32470（1100px中央寄せ／358.667px×3 / gap12） */
  .rnw-nc-worry__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));  /* ▼ 2026-08-30 17章で上書き（768～1199で2列） */
    gap: 12px;
    width: calc(100% - var(--pc-pad) * 2);
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 0;
  }

  .rnw-nc-worry__item {
    display: flex;
    flex-direction: column;
  }

  /* Figma 453:32472（高さ121・上下中央） */
  .rnw-nc-worry__head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 121px;
  }

  .rnw-nc-worry__points { font-size: 16px; }
  .rnw-nc-worry__points li { margin-inline-start: 24px; }

  .rnw-nc-worry__body { flex: 1 0 auto; }


  /* ---------- 8. 白カードのパネル（Figma 453:32511 / 453:32833 / 453:32891） ---------- */
  .rnw-nc-panel {
    gap: 56px;
    padding-block: 56px;
  }

  .rnw-nc-panel__inner { padding-inline: 56px; }

  .rnw-nc-panel .rnw-nc-h3 { color: var(--rnw-accent); }

  /* ホテル／臨時託児は見出しの下を「文章左・写真右」の2カラムにする */
  .rnw-nc-hotel .rnw-nc-panel__inner,
  .rnw-nc-event .rnw-nc-panel__inner {
    display: grid;
    grid-template-columns: minmax(0, 544fr) minmax(0, 600fr);  /* ▼ 2026-09-01 17章で上書き（768～1199は縦積み） */
    align-items: start;
    column-gap: 24px;
    row-gap: 24px;
  }

  /* 見出しと写真は別の行・列に置くのでラッパを畳む */
  .rnw-nc-hotel .rnw-nc-panel__head,
  .rnw-nc-event .rnw-nc-panel__head { display: contents; }

  .rnw-nc-hotel .rnw-nc-panel__head > .rnw-nc-h3,
  .rnw-nc-event .rnw-nc-panel__head > .rnw-nc-h3 {
    grid-area: 1 / 1 / auto / -1;
    margin-bottom: 32px;             /* row-gap24 ＋ 32 ＝ Figmaの56 */
  }

  .rnw-nc-hotel .rnw-nc-panel__head > .rnw-nc-panel__media,
  .rnw-nc-event .rnw-nc-panel__head > .rnw-nc-panel__media {
    position: relative;
    grid-area: 2 / 2 / span 2 / auto;
    align-self: stretch;
    height: auto;
    border-radius: 0;
  }

  .rnw-nc-hotel .rnw-nc-panel__inner > .rnw-nc-text,
  .rnw-nc-event .rnw-nc-panel__inner > .rnw-nc-text { grid-area: 2 / 1; }

  .rnw-nc-hotel .rnw-nc-panel__section,
  .rnw-nc-event .rnw-nc-panel__section { grid-area: 3 / 1; }

  .rnw-nc-panel__media--crop img,
  .rnw-nc-panel__media--round img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  /* 見出し帯（Figma 453:32843 20px / padding 8-16） */
  .rnw-nc-band { font-size: 20px; }

  /* サービス内容タイル（Figma 453:32849 300×200 / gap12 / 3列） */
  .rnw-nc-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));  /* ▼ 2026-08-30 17章で上書き（768～1199で2列） */
    gap: 12px;
    width: calc(100% - 112px);       /* パネルの左右56pxぶん */
    max-width: 924px;                /* 300×3 ＋ 12×2 */
    margin-inline: auto;
  }

  .rnw-nc-tile {
    gap: 4px;
    width: auto;
    height: 200px;
    font-size: 16px;
    letter-spacing: 1.2px;
  }

  .rnw-nc-tile img {
    flex: 1 0 0;
    min-height: 0;
    height: auto;
  }


  /* ---------- 9. ナニーサービス法人契約（Figma 453:32489） ---------- */
  .rnw-nc-contract {
    gap: 56px;
    padding-block: 120px;
  }

  .rnw-nc-contract__lead { gap: 56px; }

  /* ボタンは横並び（Figma 453:32497 346.667px×3 / gap40） */
  .rnw-nc-btns {
    flex-direction: row;
    gap: 40px;
    justify-content: center;
  }

  .rnw-nc-btns .rnw-btn {
    flex: 0 1 346.667px;
    width: auto;
  }

  /* 導入実績（Figma 453:32501 白90% / r12 / px80 py40 / 2カラム） */
  .rnw-nc-record {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    column-gap: 80px;
    row-gap: 40px;
    padding: 40px 80px;
    border-radius: 12px;
  }

  .rnw-nc-record > .rnw-nc-h3 { grid-column: 1 / -1; }

  /* PCは縦罫1本になるので横の破線は出さない */
  .rnw-nc-record .rnw-nc-hr { display: none; }

  .rnw-nc-record__block:last-child { position: relative; }

  .rnw-nc-record__block:last-child::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40px;
    width: 1px;
    content: '';
    background-color: var(--rnw-main);
  }

  .rnw-nc-record .rnw-nc-text { font-size: 14px; }

  /* パネル内（Figma 453:32512）。見出し→本文24、本文→補償の帯16。 */
  .rnw-nc-contract .rnw-nc-panel__inner { gap: 16px; }
  .rnw-nc-contract .rnw-nc-panel__inner > .rnw-nc-h3 { margin-bottom: 8px; }
  .rnw-nc-contract .rnw-nc-panel__inner > .rnw-nc-text { text-align: center; }

  /* 補償・メリット・費用（Figma 453:32519 / 453:32528 / 453:32556） */
  .rnw-nc-contract .rnw-nc-panel__section {
    display: grid;
    grid-template-columns: 584fr 560fr;
    column-gap: 24px;
    row-gap: 56px;
  }

  .rnw-nc-contract .rnw-nc-panel__section > * + * { margin-top: 0; }
  .rnw-nc-contract .rnw-nc-grid3,
  .rnw-nc-contract .rnw-nc-merit--corp { margin-top: 0; }

  .rnw-nc-covers,
  .rnw-nc-contract .rnw-nc-cost { grid-column: 1 / -1; }

  /* 帯と3項目は1つの箱に横並び（Figma 453:32519 bg #FAF7F2 / px40 py24 / gap40） */
  .rnw-nc-covers {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    background-color: var(--rnw-bg1);
  }

  .rnw-nc-contract .rnw-nc-band {
    padding: 0;
    background-color: transparent;
    text-align: left;
  }

  /* PCは白地にアクセント色の枠線（Figma 1258:15496）。間隔は8px。 */
  .rnw-nc-grid3 {
    gap: 8px;   /* Figma実測 */
    width: auto;
  }

  .rnw-nc-grid3 li {
    flex: 0 0 auto;
    min-height: 0;
    padding: 17px;                  /* Figma実測 */
    border: 1px solid var(--rnw-accent);
    background-color: #FFFFFF;
    font-size: 16px;
  }

  .rnw-nc-merit__head,
  .rnw-nc-merit__title { font-size: 20px; }

  .rnw-nc-merit__item { padding: 24px; }
  .rnw-nc-merit__item--stack { gap: 26px; }
  .rnw-nc-merit__text { font-size: 14px; }

  /* 費用（Figma 453:32556 px80 py40 / 左に白箱、右に低コスト〜金額表） */
  .rnw-nc-cost {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 40px;
    row-gap: 16px;
    padding: 40px 80px;
  }

  .rnw-nc-cost__list {
    grid-area: 1 / 1 / span 3 / auto;
    align-self: center;
    gap: 52px;                       /* ＋バッジ28 ＋ 上下12 */
    padding: 40px 80px;
    border-radius: 12px;
    background-color: #FFFFFF;
  }

  .rnw-nc-cost__label span { font-size: 20px; }
  .rnw-nc-cost__label--plus::before { top: -40px; }

  .rnw-nc-cost__badge {
    grid-area: 1 / 2;
    max-width: none;
    font-family: var(--rnw-font-jp);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
  }

  .rnw-nc-cost__note {
    grid-area: 2 / 2;
    font-size: 16px;
  }

  .rnw-nc-cost__table {
    grid-area: 3 / 2;
    gap: 34.147px;                   /* 8 ＋ ＋の18.147 ＋ 8 */
    padding-top: 0;
  }

  .rnw-nc-cost__cell { max-width: none; }

  .rnw-nc-cost__cell:first-child { padding-right: 0; }

  .rnw-nc-cost__cell:first-child::after {
    right: -34.147px;
    width: 34.147px;
  }

  .rnw-nc-cost__head { font-size: 16px; line-height: 1.8; }

  .rnw-nc-cost__annotation { grid-area: 4 / 1 / auto / -1; }


  /* ---------- 10. ホテル提携のナニーサービス（Figma 453:32613） ---------- */
  .rnw-nc-hotel {
    gap: 56px;
    padding-bottom: 80px;
  }

  .rnw-nc-hotel__lead { gap: 32px; }

  .rnw-nc-hotel .rnw-nc-btns .rnw-btn,
  .rnw-nc-event .rnw-nc-btns .rnw-btn { flex-basis: 400px; }

  /* 提携ホテル一覧（Figma 453:32628 総幅1248・横スクロールなし） */
  .rnw-nc-hotels__scroll {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    overflow-x: visible;
  }

  .rnw-nc-hoteltable { width: 100%; }

  .rnw-nc-hoteltable__c1 { width: 19.625%; }   /* 244.914 ÷ 1248 */
  .rnw-nc-hoteltable__c2 { width: 34.63%; }    /* 432.201 ÷ 1248 */
  .rnw-nc-hoteltable__c3 { width: auto; }


  /* ---------- 11. イベント臨時託児（Figma 453:32879） ---------- */
  .rnw-nc-event {
    gap: 56px;
    padding-bottom: 80px;
  }


  /* ---------- 12. お客様の声（Figma 453:32936） ---------- */
  .rnw-nc-voice {
    gap: 56px;
    padding-bottom: 80px;
  }

  .rnw-nc-voice__body { gap: 32px; }

  /* PCのカードは見出しと本文だけ（Figma 453:32972） */
  .rnw-nc-voice .rnw-voice-card__media,
  .rnw-nc-voice .rnw-voice-card__tags { display: none; }


  /* ---------- 13. お知らせ（Figma 453:33266） ---------- */
  .rnw-nc-news { padding: 80px var(--pc-pad); }

  /* 見出しの右にボタン、その下に一覧（Figma 453:33268） */
  .rnw-nc-news__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 56px 24px;
    max-width: var(--pc-max);
    margin-inline: auto;
  }

  .rnw-nc-news__inner > .rnw-nc-h2 {
    grid-area: 1 / 1;
    align-self: end;
  }

  .rnw-nc-news__inner > .rnw-btn {
    grid-area: 1 / 2;
    align-self: end;
    width: 301px;
  }

  .rnw-nc-news__inner > :not(.rnw-nc-h2):not(.rnw-btn) { grid-column: 1 / -1; }


  /* ---------- 14. よくあるご質問（Figma 453:33305） ---------- */
  .rnw-nc-faq {
    gap: 56px;
    padding: 80px var(--pc-pad);
  }

  .rnw-nc-faq > * {
    width: 100%;
    max-width: var(--pc-max);
    margin-inline: auto;
  }

  .rnw-nc-faq .rnw-nc-h2 { text-align: center; }

  .rnw-nc-faq .rnw-nanny-ftag { font-size: 16px; }

  .rnw-nc-faq .rnw-nanny-faq__qtext,
  .rnw-nc-faq .rnw-nanny-faq__atext { font-size: 16px; }

  /* 末尾のカテゴリ一覧はSPだけのブロック */
  .rnw-nc-faq .rnw-nanny-faq__more { display: none; }
}

/* ---------- タブレット（768〜1199px） ----------
   PCレイアウトのまま幅だけ狭めるとFigmaの固定値が溢れるため、
   内側の余白と一部の文字サイズだけ落とす。
   ------------------------------------------------------------------ */
@media only screen and (min-width: 768px) and (max-width: 1199px) {

  .rnw-nc-h2__jp   { font-size: 32px; }
  .rnw-nc-mv__title { font-size: 32px; }
  .rnw-nc-mv__en   { font-size: 20px; letter-spacing: 4px; }

  .rnw-nc-about .rnw-nc-about__logo { margin-left: 24px; }

  .rnw-nc-panel__inner,
  .rnw-nc-tiles { padding-inline: 24px; }

  .rnw-nc-record,
  .rnw-nc-cost { padding: 24px; }

  .rnw-nc-record { column-gap: 48px; }
  .rnw-nc-record__block:last-child::before { left: -24px; }

  .rnw-nc-cost__list { padding: 24px 32px; }

  .rnw-nc-btns { gap: 16px; }

  .rnw-nc-covers {
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
  }

  .rnw-nc-contract .rnw-nc-band { text-align: center; }

  .rnw-nc-grid3 li { padding: 12px; font-size: 14px; }

  .rnw-nc-merit__head,
  .rnw-nc-merit__title { font-size: 18px; }
}

/* ---------- 狭幅SP（Figma基準375px未満） ---------- */
@media only screen and (max-width: 374px) {
  /* 個人向けバナーは高さ100px固定・中身が絶対配置のため、375px未満では
     写真がテキスト（nowrapで最大約151px）に被る。写真の左端を155pxで固定し、
     右端をバナーに合わせて詰める（＝写真だけが狭くなる）。 */
  /* ▼上書き対象が2クラスセレクタなので、こちらも同じ詳細度で書く */
  .rnw-nc-personal__banner .rnw-nc-personal__img {
    right: -2px;
    left: 155px;
    width: auto;
  }

  /* 矢印はバナー右端から10pxの位置に置き直す（375pxでの見た目と同じ間隔） */
  .rnw-nc-personal__arrow {
    left: auto;
    right: 10px;
  }
}


/* =====================================================================
   17. 調整ログ（2026-08-30～）
   ---------------------------------------------------------------------
   ここより下は、既存章の後に日付順で追記する調整履歴。
   ■ ルール
     ・変更は原則ここに追記し、既存章側には「▼ 日付 17章で上書き」の目印を残す。
     ・SP/PCで値を分ける場合は必ず @media で包む（素の追記はSP・PC両方に勝ってしまう）。
     ・元が複合セレクタなら同等以上の詳細度で書く。
   ===================================================================== */

/* --- 2026-08-30 特徴／悩み／サービス内容タイルの3列→768～1199は2列、特徴カード写真は無切れ（PC上書き） --- */
/* 既存 tablet ブロックは余白・文字のみで列削減が抜けていたので補う。範囲はページの慣例に合わせ 768～1199。 */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .rnw-nc-features .rnw-nc-slider__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rnw-nc-worry__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rnw-nc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rnw-nc-fcard .rnw-nc-fcard__media { height: auto; }
}

/* --- 2026-09-01 ホテル／臨時托児：見出し下の「文章左・写真右」2カラム→768～1199は縦積み（PC上書き） --- */
/* panel__inner の grid と panel__head の display:contents を解除してSP相当の縦積み（見出し→写真→本文）に。 */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .rnw-nc-hotel .rnw-nc-panel__inner,
  .rnw-nc-event .rnw-nc-panel__inner { display: flex; flex-direction: column; }
  .rnw-nc-hotel .rnw-nc-panel__head,
  .rnw-nc-event .rnw-nc-panel__head { display: flex; flex-direction: column; }
  /* 縦積みでは、中の画像を絶対配置→通常フローの全幅画像に戻す。
     （絶対配置のままだと枚の高さが0になって写真が消える・小さくなるため。） */
  .rnw-nc-hotel .rnw-nc-panel__head > .rnw-nc-panel__media,
  .rnw-nc-event .rnw-nc-panel__head > .rnw-nc-panel__media {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }
  .rnw-nc-hotel .rnw-nc-panel__media--crop img,
  .rnw-nc-event .rnw-nc-panel__media--round img {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
  }
}

/* --- 2026-09-01 画像の間延び：手動スケール（width/heightを%指定）で object-fit 無しの画像に cover を付ける（SP含む全幅） --- */
/* mv__img(271.8%×138.81%)ヺpanel__media--crop img(SP)ヺshead__media--crop img は object-fit が無く縦横比が崩れていた。cover でスケールを保ったまま歪みを解消。 */
  .rnw-nc-mv__media .rnw-nc-mv__img,
  .rnw-nc-panel__media--crop img,
  .rnw-nc-shead__media--crop img { object-fit: cover; }

/* --- 2026-09-01 特徴の見出し：PCの grid重ねだとカードが表示されないため、SPと同じ通常フロー＋ネガティブマージンで写真右下に重ねる（PC上書き） --- */
/* SPでは出てPCで出ない（grid重ねの問題）ので、SPで実績のあるフロー配置に揃える。 */
@media only screen and (min-width: 768px) {
  .rnw-nc-features .rnw-nc-shead {
    position: relative;
    display: block;
    width: min(calc(100% - var(--pc-pad, 48px) * 2), 1280px);
    margin-inline: auto;
    isolation: auto;
  }
  .rnw-nc-features .rnw-nc-shead__media {
    position: relative;
    width: 78.125%;
    height: auto;
    aspect-ratio: 1000 / 560;
    z-index: auto;
  }
  .rnw-nc-features .rnw-nc-shead__card {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 50%;
    max-width: none;
    height: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

/* --- 2026-09-01 法人契約の見出し：特徴と同じgrid重ね問題。写真右・カード左のミラーで絶対配置に（PC上書き） --- */
/* features と同方式。contract は写真を右寄せ(margin-inline-start:auto)、カードを左下(left:0,bottom:0)に。 */
@media only screen and (min-width: 768px) {
  .rnw-nc-contract .rnw-nc-shead {
    position: relative;
    display: block;
    width: min(calc(100% - var(--pc-pad, 48px) * 2), 1280px);
    margin-inline: auto;
    isolation: auto;
  }
  .rnw-nc-contract .rnw-nc-shead__media {
    position: relative;
    width: 78.125%;
    height: auto;
    aspect-ratio: 1000 / 560;
    margin-inline-start: auto;
    z-index: auto;
  }
  .rnw-nc-contract .rnw-nc-shead__card {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 5;
    width: 50%;
    max-width: none;
    height: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

/* --- 2026-09-01 個人向けバナー：PCで position:absolute なのに width 未指定で、中身が全て絶対配置のため幅が0に潰れて見えなくなっていた。幅を明示して表示（PC上書き） --- */
@media only screen and (min-width: 768px) {
  .rnw-nc-personal__banner { width: 343px; height: 100px; }
}

/* --- 2026-09-01 MV写真：デザイン案に合わせ、ナニーを左側に大きく見せる（拡大＋左へ寄せ）（PC上書き） --- */
/* ※ MVメディアは rnw-kenburns が transform をアニメで使うため、imgの transform は上書きされて効かない。
   そこで transform ではなく width/height(拡大)と left/top(位置)で切り抜きを変える。数値は要微調整。 */
@media only screen and (min-width: 768px) {
  /* 拡大を下げてボケを抑える。位置は left で維持。右端のスキマはカード裏＋淡い背景で馴染ませる。 */
  .rnw-nc-mv__media { background-color: #f2ede8; }
  .rnw-nc-mv__media .rnw-nc-mv__img {
    /* 右端まで写真で覛うため left = 100% - width （box右端=100%）にする→スキマなし */
    /* width: 180%;
    height: 180%;
    left: -80%;
    top: -40%; */
    width: 100%;
    height: auto;
    left: 0;
    top: 45px;
    /* kenburnsの拡大中心を見えている位置に合わせてパンを抑える */
    transform-origin: 72% 50%;
  }
}

/* --- 2026-09-01 タイトル文字（MV含む）を幅に応じてフルードに縮小（clamp）（PC上書き） --- */
/* 既存の段階縮小（42→ 32px 等）を、clamp で幅に応じて滑らかに縮む形に置き換える。幅広で上限（デザイン値）、狭いと縮む。 */
@media only screen and (min-width: 768px) {
  .rnw-nc-h2__jp,
  .rnw-nc-mv__title { font-size: clamp(22px, 2.7vw, 40px); }
  .rnw-nc-h2__en,
  .rnw-nc-mv__en,
  .rnw-nc-h3 { font-size: clamp(14px, 1.55vw, 22px); }
}

/* --- 2026-09-01 MVカード：≤1040px でタイトルカードの上端がはみ出すので、カードを下に下げる（bottomを小さく）（PC上書き） --- */
@media only screen and (min-width: 768px) and (max-width: 1040px) {
  .rnw-nc-mv__card { bottom: 5%; }
}

/* --- 2026-09-01 メリット（法人／従業員）：タブレットで狭くなったら縦１列（PC上書き） --- */
/* panel__section を 1fr にすると merit–corp/staff が縦積みになる（補償・費用は元々 grid-column:1/-1 で全幅なので影響なし）。 */
@media only screen and (min-width: 768px) and (max-width: 1040px) {
  .rnw-nc-contract .rnw-nc-panel__section { grid-template-columns: 1fr; }
}

/* --- 2026-09-01 MV写真（スマホ <768px）：手動スケールの配置だと下端でカバーが外れてグレーが見えるので、全面カバーにする（SP上書き） --- */
@media only screen and (max-width: 767px) {
  .rnw-nc-mv__media .rnw-nc-mv__img {
    /* top: -15%;
    left: -15%;
    width: 130%;
    height: 130%; */
    top: 20px;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: 80% center;   /* ナニー側へ寄せて中央に、box130%で拡大 */
  }
}

/* =====================================================================
   ドロワーを開いている間も追従CTAを前面に出す（2026-09-16）
   ---------------------------------------------------------------------
   バーの z-index をドロワー（11）より上げたぶん、ドロワーの中身が
   バーに隠れないよう下余白をバーの高さぶん足す。
   PC幅ではバーを出さないので元（pb-40）に戻す。
   ===================================================================== */
.rnw-menu { padding-bottom: calc(40px + 48.51px); }

@media only screen and (min-width: 768px) {
  .rnw-menu { padding-bottom: 40px; }
}

/* --- 2026-09-27 個人向けバナー：タブレット幅だと、MV左下に重ねたバナー（343×100固定）が写真の人物にかぶる→
       中身が絶対配置で組んであるので、transform で丸ごと70%に縮めて左下に寄せる（MVの中に収める）。
       範囲はMVカードを下げている既存の768～1040に合わせる。1041px以上はそのまま（PC上書き） --- */
@media only screen and (min-width: 768px) and (max-width: 1040px) {
  .rnw-nc-personal__banner {
    bottom: 16px;
    left: 16px;
    transform: scale(0.7);
    transform-origin: left bottom;
  }
}

/* --- 2026-09-27 MVの高さ・写真の引き（PC上書き）※個人ナニー（service-nanny.css）と同じ直し方 ---
   ■ 高さ：デザイン比率（1440×707）のままだと、横長の画面ではヘッダー＋MVだけで1画面を超え、
     MV左下に重ねた個人向けバナーがファーストビューに入らない→ 上限を「画面の高さ − ヘッダー」にする。
     画面が極端に低いときにカードがはみ出さないよう下限420px。
   ■ 写真：MVの上端はヘッダー（--rnw-header-h-pc）の下に潜っているので、写真はその下から置き、
     枠の比率ぶん＋ヘッダーぶんの高さを取って、写真（1440×708）全体をデザインどおりに見せる。
     上限で枠が低くなったときは横幅いっぱいのまま上基準で切り抜く（頭を残し、下側が切れる）。
       ※縮めて全体を見せる案は右に空きが出て見栄えが悪かったため不採用（2026-09-27）。
   ■ Ken Burns：共通は1.10倍から始まって寄りすぎるので、このMVだけ等倍（デザインの引き）から寄せる。 */
@media only screen and (min-width: 768px) {
  .rnw-nc-mv__media {
    aspect-ratio: auto;
    height: min(calc(100vw * 708 / 1440 + var(--rnw-header-h-pc)), max(420px, calc(100vh - var(--rnw-header-h-pc))));
    height: min(calc(100vw * 708 / 1440 + var(--rnw-header-h-pc)), max(420px, calc(100svh - var(--rnw-header-h-pc))));
  }
  .rnw-nc-mv__media .rnw-nc-mv__img {
    top: var(--rnw-header-h-pc);
    left: 0;
    width: 100%;
    height: calc(100% - var(--rnw-header-h-pc));
    max-width: none;
    object-fit: cover;
    object-position: center top;
    animation-name: rnw-nc-mv-kenburns;
  }
}

@keyframes rnw-nc-mv-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* --- 2026-09-27 ホテル提携／臨時託児のパネル（768～1199・縦積み）：見出し＋写真の枠が写真の元の幅（600px前後）までしか広がらず、
       左に寄ってタイトルと写真が左に偏っていた→ 枠を幅640px（狭いときは列幅いっぱい）にそろえて中央に置く（PC上書き） --- */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .rnw-nc-hotel .rnw-nc-panel__head,
  .rnw-nc-event .rnw-nc-panel__head {
    align-self: center;
    width: min(100%, 640px);
  }
}

/* --- 2026-09-27 セクション見出しの写真（幅の広いSP 590～767）：高さ200px固定のまま横だけ広がるため、写真が拡大されて頭が切れる→
       589px幅のときの比率（589×200）のまま、幅に合わせて高さも伸ばす（SP上書き） --- */
@media only screen and (min-width: 590px) and (max-width: 767px) {
  .rnw-nc-shead__media { height: auto; aspect-ratio: 589 / 200; }
}

/* --- 2026-09-27 セクション見出しの写真（切り抜き指定のある回・SP）：写真を上に13.85%ずらしたうえ中央で切り抜くため、人物の顔・頭が枠の上に出て切れる→
       ずらしをやめ、上寄り（10%）で切り抜いて顔を入れる（SP上書き） --- */
@media only screen and (max-width: 767px) {
  /* ホテル提携は人物が写真の下寄りにいて上寄りだと隠れるので対象外 */
  .rnw-nc-contract .rnw-nc-shead__media--crop img,
  .rnw-nc-event .rnw-nc-shead__media--crop img {
    top: 0;
    height: 100%;
    object-position: 50% 10%;
  }
}
/* --- 2026-09-27 MVの動き：共通の Ken Burns（common.css）は `.rnw-kenburns > img`（直下の img）にしか効かないが、
       法人のMVは img が <picture> に包まれているため動かない→ 個人ナニーと同じ動きになるよう、MVの img に直接アニメを付ける。
       SP：共通と同じ（1.10→1.30倍・14秒往復）／PC：上の等倍→1.12倍（rnw-nc-mv-kenburns） --- */
.rnw-nc-mv__media.rnw-kenburns .rnw-nc-mv__img {
  transform-origin: center center;
  backface-visibility: hidden;
  animation: rnw-kenburns 14s linear infinite alternate;
}
.rnw-nc-mv__media.rnw-kenburns.is-rnw-offscreen .rnw-nc-mv__img { animation-play-state: paused; }
@media only screen and (min-width: 768px) {
  .rnw-nc-mv__media.rnw-kenburns .rnw-nc-mv__img {
    transform-origin: 72% 50%;
    animation-name: rnw-nc-mv-kenburns;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rnw-nc-mv__media.rnw-kenburns .rnw-nc-mv__img { animation: none; }
}

/* --- 2026-09-27 セクション見出しのカード（SP）：高さ126px固定のため、見出しの行数や幅によって中身が収まらない／余る→
       全部の回で高さ固定をやめ、上下24pxのpaddingで中身に合わせる（--auto の回と同じ）（SP上書き） --- */
@media only screen and (max-width: 767px) {
  .rnw-nc-shead__card {
    height: auto;
    padding-block: 24px;
  }
}

/* --- 2026-09-27 ホテル提携・臨時託児のパネル写真（SP）：高さ固定（166px／149.9px）で横長に切り抜くため、人物の頭が切れる→
       高さ固定をやめ、写真を元の比率のまま全体表示する（タブレット幅と同じ扱い）（SP上書き） --- */
@media only screen and (max-width: 767px) {
  .rnw-nc-panel__media--crop,
  .rnw-nc-panel__media--round {
    height: auto;
    aspect-ratio: auto;
  }
  .rnw-nc-panel__media--crop img,
  .rnw-nc-panel__media--round img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
  }
}

/* --- 2026-09-27 MVの見出しカード（SP）：個人ナニー（写真下端に83px重ねる）と重なり方が違い、写真に142.88px食い込んでいた→
       個人ナニーと同じ −83px にそろえる（SP上書き） --- */
@media only screen and (max-width: 767px) {
  .rnw-nc-mv__card { margin-top: -83px; }
}

/* --- 2026-09-27 MVの見出しカード（幅の広いSP 590～767）：幅343px固定のまま写真だけ大きくなり、カードが小さく見える→ 最大520pxまで広げる（個人ナニーと同じ）（SP上書き） --- */
@media only screen and (min-width: 590px) and (max-width: 767px) {
  .rnw-nc-mv__card { max-width: 520px; }
}

/* --- 2026-09-27 MVの高さ（幅の広いSP 590～767）：個人ナニーと同じく、枠の高さの上限を589px幅のときの高さ（769px）にする（SP上書き） --- */
@media only screen and (min-width: 590px) and (max-width: 767px) {
  .rnw-nc-mv__media {
    aspect-ratio: auto;   /* 比率指定と max-height を併用すると幅まで縮むため、高さを直接決める */
    height: min(calc(100vw * 490 / 375.317), 769px);
  }
}
/* --- 2026-09-27 セクション見出しの写真（切り抜き指定の無い回・SP）：中央基準の切り抜きで、人物の頭の上が枠の上で切れる→ 上基準で切り抜く（高さは比例のまま）（SP上書き） --- */
@media only screen and (max-width: 767px) {
  .rnw-nc-shead__media:not(.rnw-nc-shead__media--crop) img { object-position: 50% 25%; }
}
