@charset "utf-8";

/* =========================================================
   知る（千葉県の妊活支援について）
   ========================================================= */

/* ---------- 白カード ---------- */
.l-card {
  width: 100%;
  max-width: var(--w-content);
  margin: 2.3125rem auto 0;
  background: #fff;
  border-radius: 1.25rem;
}
.l-card__inner { padding-inline: 7.5rem; }   /* 120px */
.l-card--main { overflow: hidden; }

.p-town { margin-top: 5.0625rem; }
.p-town img { display: block; width: 100%; }
.p-about-page .p-cta-split { margin-top: 3.75rem; }

/* ---------- ヒーロー（デザイン: img 150×124 を x=206 y=125 / deco は共通の位置） ---------- */
.p-about-page .p-hero-lower__img {
  top: -2.3125em;                      /* y=125 */
  transform: translateX(-24.625em);    /* x=206 */
  width: 9.375em;                      /* 150px */
}

/* =========================================================
   千葉県の助成制度（2カード）
   ========================================================= */
.p-scheme-list { padding: 5.125rem 0 6.4375rem; }

.p-scheme-list__items {
  --bs-gutter-x: 2.5rem;   /* カード間 40px（デザイン実測） */
  margin-top: 2.4375rem;
}
/* カード 340px ＋ gutter。col の左右 padding を含めた外形で押さえる */
.p-scheme-list__item { max-width: calc(21.25rem + var(--bs-gutter-x)); }

.p-card {
  position: relative;
  height: 100%;
  padding: 2.9375rem 1.875rem 2.5rem;   /* デザイン: 上47px / 下40px */
  border: 2px solid var(--c-text);
  border-radius: 1rem;                  /* デザイン実測 16px */
  background: #fff;
  box-shadow: .25rem .3125rem 0 var(--c-text);
}
.p-card__new {
  top: -1.375rem;   /* デザイン: タグ上端がカードより 22px 上 */
  left: 1.125rem;
  width: 4rem;      /* 64px */
}

.p-card__amount {
  /* デザインは数字と「上限/万円助成」が天地中央で揃う */
  gap: .375rem;
  line-height: 1.1;
}
.p-card__amount-sub { font-size: 1.1875rem; font-weight: 700; }  /* 19px */
.p-card__amount-num { font-size: 4rem; font-weight: 900; line-height: 1; }  /* 64px */
.p-card--pink .p-card__amount-num { color: var(--c-pink); }
.p-card--yellow .p-card__amount-num { color: var(--c-yellow); }

.p-card__catch {
  gap: .625rem;
  margin-top: .875rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4444;    /* 26px */
}
.p-card__catch img { width: .625rem; height: 1.625rem; }   /* デザイン実測 10×26 */

.p-card__title {
  min-height: 4.5rem;   /* 2行分。デザインは2枚のカードで「対象となる方」の位置が揃う */
  margin-top: 2rem;
  font-size: 1.5rem;    /* 24px */
  line-height: 1.5;
}

.p-card__subtitle {
  width: fit-content;
  margin-top: .625rem;
  padding-bottom: .4375rem;
  border-bottom: .125rem solid var(--c-pink);   /* デザインは制度のテーマカラー */
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}
.p-card--yellow .p-card__subtitle { border-bottom-color: var(--c-yellow); }

.p-card__list {
  width: fit-content;
  margin: 1.75rem auto 0;
  font-size: .9375rem;   /* 15px */
  line-height: 1.6;
  text-align: left;
}
.p-card__list li {
  position: relative;
  padding-left: .875rem;
}
.p-card__list li + li { margin-top: .75rem; }
.p-card__list li::before { content: "・"; position: absolute; left: -.125rem; }

.p-card__note {
  width: fit-content;
  margin: .75rem 0 0;
  padding-left: .9375rem;   /* デザイン: リストの文字（・の後ろ）に揃う */
  font-size: .875rem;
  line-height: 1.6;
  text-align: left;
  color: var(--c-bk);
  font-weight: 600;
}
.p-card__btn { margin-top: auto; padding-top: 1.25rem; }   /* ボタンはカード下端に揃える */


/* =========================================================
   制度詳細（ピンク / イエローの枠カード）
   ========================================================= */
/* デザイン: 枠は 20px・角丸なし。#scheme-01 と #scheme-02 は隙間なく隣接する */
.p-scheme { padding: 1.25rem; }
.p-scheme--pink { background: var(--c-pink); }
.p-scheme--yellow { background: var(--c-yellow); }

.p-scheme__inner {
  padding: 6.25rem;          /* デザイン実測: 上下左右 100px（本文カラム 720px） */
  border-radius: 3.75rem;    /* デザイン実測 60px */
  background: #fff;
}
.p-scheme__lead {
  margin-top: 2.25rem;
  font-size: .9375rem;
  line-height: 1.85;
}
.p-scheme__note {
  margin-top: 4rem;
  font-size: .9375rem;
  line-height: 1.85;
}
.p-scheme__btn { margin-top: 3rem; }

/* ---------- 早期不妊検査費助成の申請について（実施予定の市町村） ---------- */
/* デザイン実測: 表の下線 → 見出し 79px / 見出し → 本文 36px / 本文 16px・行送り32px */
.p-apply { margin-top: 4.9375rem; }
.p-apply__title {
  font-size: 1.5rem;     /* 24px */
  line-height: 1.45;
  color: var(--c-bk);
}
.p-apply__text {
  margin-top: 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 2;
}
.p-apply__note {
  margin-top: .9375rem;
  padding-left: 1em;
  text-indent: -1em;
  font-size: .6875rem;   /* 11px */
  font-weight: 700;
  line-height: 1.6;
}
.p-apply__subtitle {
  margin-top: 4.9375rem;
  font-size: 1.25rem;    /* 20px */
  line-height: 1.45;
}

/* 278px × 2 列・列間 42px（計 598px）を本文カラム中央に置く */
.p-apply__cities {
  max-width: 37.375rem;
  margin: 2.4375rem auto 0;
}
.p-apply__cities .row { --bs-gutter-x: 2.625rem; }
.p-apply__list .p-apply__item:first-child { border-top: .125rem dotted #b9bec2; }   /* ul は col の gutter を含むので線は li に引く */
.p-apply__item {
  min-height: 3.25rem;   /* 行ピッチ 52px（点線 2px 込み） */
  padding: .25rem 1.125rem .25rem 1.3125rem;   /* デザイン: 市名は列の左から 21px / ボタンは右から 18px */
  border-bottom: .125rem dotted #b9bec2;
  font-size: .9375rem;   /* 15px */
  font-weight: 700;
  color: var(--c-bk);
}
/* ホームページボタン（デザイン実測: 118×20・角丸は高さの半分） */
.p-apply__hp {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 7.375rem;
  height: 1.25rem;
  padding-left: .75rem;
  border-radius: .625rem;
  background: var(--c-pink);
  color: #fff;
  font-size: .875rem;    /* 14px */
  line-height: 1;
  transition: background .25s, color .25s, box-shadow .25s;
}
.p-apply__hp::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .375rem;
  width: .75rem;
  height: .75rem;
  background: url("../img/common/arrow-right-white.svg") no-repeat center / contain;
  transform: translateY(-50%);
}
.p-apply__hp:hover {
  opacity: 1;
  background: var(--c-cream);
  color: var(--c-pink);
  box-shadow: inset 0 0 0 .0625rem var(--c-pink);
}
.p-apply__hp:hover::after { background-image: url("../img/common/arrow-right-pink.svg"); }

/* 早期不妊検査対象となる方欄ボタン */
.p-apply__taisyou {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 1.25rem;
  padding-left: .75rem;
  padding-right: 1rem;
  border-radius: .625rem;
  background: var(--c-pink);
  color: #fff;
  font-size: .875rem;    /* 14px */
  line-height: 1;
  transition: background .25s, color .25s, box-shadow .25s;
}
.p-apply__taisyou::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .375rem;
  width: .75rem;
  height: .75rem;
  background: url("../img/common/arrow-right-white.svg") no-repeat center / contain;
  transform: translateY(-50%);
}
.p-apply__taisyou:hover {
  opacity: 1;
  background: var(--c-cream);
  color: var(--c-pink);
  box-shadow: inset 0 0 0 .0625rem var(--c-pink);
}
.p-apply__taisyou:hover::after { background-image: url("../img/common/arrow-right-pink.svg"); }

/* 手を振る女性（デザイン: 57×136 を一覧の左上から -102, +109） */
.p-apply__img {
  position: absolute;
  top: 6.8125rem;
  left: -6.375rem;
  width: 3.5625rem;
}
.p-apply__date {
  margin: .875rem -.1875rem .875rem 0;   /* デザイン: 一覧の右端より 3px 外まで */
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.45;
}
/* 実施を予定している市町村（実施の一覧の日付の下に続ける） */
.p-apply__subtitle--plan { margin-top: 3.75rem; }
.p-apply__cities--plan { margin-top: 1.5rem; }
.p-apply + .p-shindan { margin-top: 5rem; }   /* デザイン: 日付 → 診断ボックス 80px */

/* ---------- 定義表 ---------- */
.p-table { margin: 2.75rem 0 0; }
.p-table__row {
  gap: 0;
  padding: 2.4375rem 0;   /* デザイン実測 39px */
  border-top: .125rem dotted #ccc;
}
.p-table__row:last-child { border-bottom: .125rem dotted #ccc; }

.p-table__label {
  flex: 0 0 17.875rem;   /* 286px：デザインでは本文が x=526 から始まる */
  margin: 0;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}
.p-table__label img { display: block; width: 2.5rem; margin: 0 auto .5rem; }

.p-table__body {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;          /* デザイン実測: 15px / 行送り24px */
  color:var(--c-bk);
}
.p-table__body > * + * { margin-top: 1.0625rem; }   /* デザイン実測 17px */
.p-table__strong { font-weight: 700; }

/* ①②の項目見出し。デザインは折り返し行が丸数字の分だけ下がる */
.p-table__no {
  padding-left: 1em;
  text-indent: -1em;
  font-weight: 700;
}
/* 「令和◯年◯月◯日時点」。項目見出しにぶら下げる（デザイン実測: 左15px・上3px） */
.p-table__date { font-size: .75rem; line-height: 1.6667; }
.p-table__item > * + * { margin-top: .1875rem; }
.p-table__item .p-table__date { padding-left: .9375rem; }

/* ※注記。折り返し行は「※」の分だけ下げる（デザイン実測: 12px / 行送り20px） */
.p-table__small {
  padding-left: 1em;
  text-indent: -1em;
  font-size: .75rem;
  line-height: 1.6667;
}
.p-table__body .p-table__small + .p-table__small { margin-top: 1.0625rem; }   /* デザイン実測 17px */

.p-table__link { color: var(--c-yellow); font-weight: 700; text-decoration: underline; }
.p-table__blank {
  width: .75rem;
  height: .75rem;
  margin-left: .375rem;
  vertical-align: baseline;
}

/* ---------- 各市への問い合わせボタン ---------- */
/* デザイン実測: 100×32 の小ボタンを 16px 間隔で 3 つ */
.p-city { gap: 1rem; margin-top: 1.0625rem; }
.p-city .c-btn {
  width: 6.25rem;
  min-width: 0;
  height: 2rem;
  padding: 0 1.25rem;
  font-size: 1rem;   /* 767px 以下で .c-btn が 20px になるのを打ち消す */
}

.p-check li {
  position: relative;
  padding-left: 2.3125rem;   /* 22px アイコン + 15px */
  font-weight: 700;
  line-height: 1.6;
}
.p-check li + li { margin-top: 1.0625rem; }
.p-check li::before {
  content: "";
  position: absolute;
  top: .25rem;
  left: 0;
  width: 1.375rem;
  height: 1.375rem;
  background: url("../img/support/ico-check-pink.svg") no-repeat center / contain;
}
.p-check--orange li::before { background-image: url("../img/support/ico-check-orange.svg"); }

.p-dot { margin-top: 1rem; }
.p-dot li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}
.p-dot li + li { margin-top: 1.0625rem; }
.p-dot li::before { content: "・"; position: absolute; left: .25rem; }

/* ---------- 助成金診断ボックス ---------- */
/* デザイン実測: 720×210・角丸は高さの半分（105px）。背景はテーマごとの極薄色 */
.p-shindan {
  margin: 4.5rem 0 0;
  padding: 2.75rem 2.5rem;
  border: .125rem solid var(--c-pink);
  border-radius: 6.5625rem;
  background: #fffcfc;
}
.p-shindan--yellow { border-color: var(--c-yellow); background: #fffbf2; }
.p-shindan__img {
  position: absolute;
  top: 50%;
  left: 2.5rem;
  width: 6.25rem;      /* 100px */
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}
/* アイコン分の余白を左右対称に取り、本文はボックス中央で揃える */
.p-shindan__body { padding-inline: 6.25rem; }
.p-shindan__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-pink);
}
.p-shindan--yellow .p-shindan__title { color: var(--c-yellow); }
.p-shindan__desc { margin-top: 1.125rem; font-size: .9375rem; line-height: 1.6; }
.p-shindan__link { margin-top: 1.125rem; font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.p-shindan__link a {
  position: relative;
  padding-right: 1.25rem;
  color: var(--c-pink);
}
.p-shindan--yellow .p-shindan__link a { color: var(--c-yellow); }
.p-shindan__link a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: .75rem;
  height: .75rem;
  transform: translateY(-50%);
  background: url("../img/common/arrow-right-pink.svg") no-repeat center / contain;
}
.p-shindan--yellow .p-shindan__link a::after { background-image: url("../img/common/arrow-right-orange.svg"); }

/* =========================================================
   不育症ってなに？
   ========================================================= */
/* デザインのぼかし楕円は 02-about.pdf の埋め込み画像（660×470）をそのまま使う */
.p-fuiku {
  margin: 3.1875rem 0 0;
  padding: 5.9375rem 1.25rem;   /* 上下 95px：装飾画像 470px の中央に本文が来る */
  background: url("../img/support/deco-fuiku.png") no-repeat center center / 41.25rem 29.375rem;
}
.p-fuiku__girl {
  position: absolute;
  top: 1.625rem;
  right: 4.3125rem;   /* デザイン: x=828〜891 */
  width: 3.9375rem;   /* 63px */
}
.p-fuiku__title { font-size: 1.5rem; font-weight: 700; line-height: 1.4; }
.p-fuiku__title span { color: var(--c-yellow); }
.p-fuiku__strong {
  margin-top: 1.625rem;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.8667;   /* 28px */
}
.p-fuiku__desc {
  margin-top: 1.4375rem;
  font-size: .9375rem;
  line-height: 1.8667;   /* 28px */
}
.p-fuiku__desc span { color: var(--c-yellow); font-weight: 700; }

.p-fuiku__cols {
  gap: 3.0625rem;     /* デザイン実測 49px */
  margin-top: 2.6875rem;
}
.p-fuiku__couple { flex: 0 0 11.4375rem; width: 11.4375rem; }  /* 183px */
.p-fuiku__text { font-size: 1rem; line-height: 1.875; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media screen and (max-width: 1199px) {
  .l-card { max-width: min(var(--w-content), calc(100% - 2.5rem)); }   /* 左右 20px を空けたまま中央寄せ */
  .l-card__inner { padding-inline: 3.75rem; }
  .p-scheme__inner { padding: 4.5rem 2.5rem 4rem; }
  .p-table__label { flex: 0 0 12rem; }
  .p-table__body { padding-right: 0; }
}

@media screen and (max-width: 991px) {
  /* ページ別セレクタ（0,2,0）は common.css の 991px 以下のリセットに勝つので、ここで打ち消す */
  .p-about-page .p-hero-lower__img { top: -1rem; transform: none; width: 4.5rem; }
  .l-card__inner { padding-inline: 2.5rem; }
  .p-scheme-list { padding-top: 3rem; }
  .p-scheme-list__items { margin-top: 2.75rem; }
  .p-scheme { padding: .75rem; }
  .p-scheme__inner { padding: 3rem 1.75rem; }

  .p-table__row { gap: 1rem; padding: 1.75rem 0; }
  .p-table__label { flex: 0 0 auto; gap: .75rem; }
  .p-table__label img { margin: 0; }

  .p-fuiku { padding: 3rem 1rem 3.5rem; background-size: 100% 100%; }
  .p-fuiku__girl { position: static; display: block; margin: 0 auto 1rem; }
  .p-fuiku__cols { gap: 1.5rem; }

  .p-apply { margin-top: 3.5rem; }
  .p-apply__subtitle { margin-top: 3.5rem; }
  .p-apply__subtitle--plan { margin-top: 2.5rem; }
  .p-apply__img { display: none; }   /* 左に逃がす余白がないので非表示 */
  .p-apply + .p-shindan { margin-top: 3.5rem; }

  .p-shindan { border-radius: 1.875rem; padding: 1.75rem 1.5rem; }
  .p-shindan__img { position: static; margin: 0 auto 1rem; transform: none; }
  .p-shindan__body { padding-inline: 0; }
  .p-town { margin-top: 3rem; }
}

@media screen and (max-width: 767px) {
  .p-hero-lower {
        padding: 1.5rem 0 calc(1.5rem + var(--wave-h));
  }
  .p-about-page .p-hero-lower__img { top: 0; width: 4rem; }
  .l-card { max-width: calc(100% - 1.875rem); border-radius: .875rem; }
  .l-card__inner { padding-inline: 1.25rem; }

  .p-scheme-list__items { --bs-gutter-y: 1.5rem; margin-top: calc(2.75rem - var(--bs-gutter-y)); }   /* 991px 以下の 44px を gutter-y の分だけ戻す */

  .p-scheme__lead,
  .p-scheme__note { font-size: .8125rem; }
  .p-scheme__lead br,
  .p-scheme__note br,
  .p-fuiku__desc br,
  .p-fuiku__text br { display: none; }

  .p-fuiku__title { font-size: 1.25rem; }
  .p-shindan__title { font-size: 1.25rem; }
  .p-shindan__link { font-size: 1rem; }
  .p-card__amount-num { font-size: 3rem; }

  .p-city { gap: .625rem; }

  .p-apply__title { font-size: 1.125rem; }
  .p-apply__text { font-size: .9375rem; line-height: 1.85; }
  /* 1 列に積むと 2 本目の一覧の上線が 1 本目の下線と重なる */
  .p-apply__list--second .p-apply__item:first-child { border-top: 0; }
  .p-apply__item { padding-inline: .75rem; }
}
