@charset "UTF-8";
/* =============================================================
   ちば妊活コンパス LP サイト
   デザイン基準: 1200 x 10510px（1ページ目）／ コンテンツ幅 960px
   ポップアップ: 1200 x 780px（モーダル幅 880px）
   フォント: Zen Maru Gothic Bold
   ============================================================= */

/* -------------------------------------------------------------
   変数
   ------------------------------------------------------------- */
:root {
  --color-bg:      #cff7f4; /* ページ背景 */
  --color-card:    #ffffff; /* 白カード */
  --color-text:    #4c4948; /* 本文 */
  --color-heading: #000000; /* 見出し */
  --color-teal:    #45bdcf; /* 知る */
  --color-pink:    #f19c97; /* 探す */
  --color-yellow:  #f9c04b; /* 相談する */
  --color-border:  #dedede; /* 罫線・カード枠 */
  --color-hover:   #fffce6; /* ボタンホバー時の背景 */

  --container:   960px; /* コンテンツ幅 */
  --text-width:  720px; /* 本文カラム幅 */
  --card-radius:  20px;

  --gap-block:   101px; /* セクション（知る／探す／相談する）間 */
  --gap-heading:  77px; /* 本文 → 次の見出し */
  --gap-lead:     37px; /* 見出し → 本文 */
}

/* -------------------------------------------------------------
   ベース
   ------------------------------------------------------------- */
html {
  font-size: 100%; /* 16px = 1rem */
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans",
               "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease;
}

a:hover,
a:focus-visible {
  color: inherit;
  opacity: .7;
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------
   レイアウト共通
   ------------------------------------------------------------- */
.l-container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* -------------------------------------------------------------
   ヘッダー
   ------------------------------------------------------------- */
.l-header {
  padding: 15px 0 5px;
}

.l-header__inner {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  align-items: center;
}

.l-header__logo {
  margin: 0;
  flex: 0 0 auto;
}

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

.l-header__title {
  margin: 0 0 0 14px;
  padding-left: 16px;
  border-left: 1px solid var(--color-heading);
  color: var(--color-heading);
  font-size: .875rem; /* 14px */
  line-height: 20px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.l-header__name,
.l-header__catch {
  display: block;
}

/* -------------------------------------------------------------
   ヒーロー
   ------------------------------------------------------------- */
.p-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------
   白カード
   ------------------------------------------------------------- */
.p-card {
  position: relative;
  margin-top: 62px;
  background-color: var(--color-card);
  border-radius: var(--card-radius);
  padding: 81px 0 0;
}

.p-card__town {
  margin-top: 101px;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  overflow: hidden;
}

.p-card__town img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------
   ブロック（知る／探す／相談する）
   ------------------------------------------------------------- */
.p-block {
  position: relative;
  scroll-margin-top: 24px;
}

.p-block + .p-block {
  margin-top: var(--gap-block);
}

.p-block--search {
  margin-top: 121px;
}

/* -------------------------------------------------------------
   見出し
   ------------------------------------------------------------- */
.c-title {
  margin: 0;
  color: var(--color-heading);
  text-align: center;
  scroll-margin-top: 24px; /* ページ内リンクで上端に貼り付かないように */
}

.c-title--lg {
  font-size: 2rem;   /* 32px */
  line-height: 1.4;
}

.c-title--md {
  font-size: 1.5rem; /* 24px */
  line-height: 1.4;
}

/* 2行見出し（夫婦ふたりで受ける不妊検査を助成します／【早期不妊検査費助成事業】） */
.c-title--2line {
  line-height: 1.5;
}

.c-title--2line span {
  display: block;
}

/* 本文 → 見出し の間隔 */
.c-text + .c-title,
.p-knowledge + .c-title,
.p-carousel + .c-title,
.c-note + .c-title,
.p-citytable + .c-title {
  margin-top: var(--gap-heading);
}

/* 小見出し（■ 実施市町村 など） */
.c-subtitle {
  margin: 0;
  width: 100%;
  max-width: calc(var(--text-width) + 40px);
  margin-inline: auto;
  padding-inline: 20px;
  color: var(--color-heading);
  font-size: 1.25rem; /* 20px */
  line-height: 1.4;
}

.c-subtitle::before {
  content: "■";
  margin-right: .3em;
}

.c-subtitle--teal::before { color: var(--color-teal); }
.c-subtitle--pink::before { color: var(--color-pink); }

/* -------------------------------------------------------------
   本文
   ------------------------------------------------------------- */
.c-text {
  width: 100%;
  /* padding を含めて本文カラムが 720px になるようにする */
  max-width: calc(var(--text-width) + 40px);
  margin: 0 auto;
  padding-inline: 20px;
  font-size: 1rem; /* 16px */
  line-height: 2;  /* 32px */
}

.c-title + .c-text,
.c-subtitle + .c-text {
  margin-top: var(--gap-lead);
}

.c-title--lg + .c-text {
  margin-top: 57px;
}

.c-subtitle + .c-text {
  margin-top: 17px;
}

.c-text p + p {
  margin-top: 0; /* デザインは行送り一定 */
}

.c-text__gap {
  margin-top: 2em !important; /* 空行1行分 */
}

/* 注釈 */
.c-note {
  width: 100%;
  max-width: calc(var(--text-width) + 40px);
  margin: 15px auto 0;
  padding-inline: 20px;
  font-size: .6875rem; /* 11px */
  line-height: 1.65;
}

.c-text + .c-note {
  margin-top: 15px;
}

.c-btnwrap + .c-note {
  margin-top: 40px;
}

/* -------------------------------------------------------------
   イントロ（妊活健診支援事業の概要）
   ------------------------------------------------------------- */
.p-overview {
  margin-top: 77px;
  text-align: center;
}

.p-overview__lead {
  margin-top: 16px;
  color: var(--color-heading);
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
}

.p-overview__figure {
  margin-top: 30px;
}

.p-overview__btn {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  transition: opacity .2s ease;
}

.p-overview__btn:hover,
.p-overview__btn:focus-visible {
  opacity: .8;
}

.p-overview__btn img {
  width: 100%;
  height: auto;
}

.p-overview__zoom {
  margin-top: 19px;
  line-height: 1.5;
}

.c-textlink {
  color: var(--color-teal);
  font-size: .9375rem; /* 15px */
  line-height: 1.5;
  border-bottom: 1px solid currentColor;
}

.c-textlink:hover,
.c-textlink:focus-visible {
  opacity: .7;
}

/* -------------------------------------------------------------
   矢印アイコン
   ホバーで色を差し替えるため img ではなく背景画像で描画する
   ------------------------------------------------------------- */
.c-arrow {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: url("../img/arrow-right-white.svg") no-repeat center / contain;
}

.c-arrow--down {
  background-image: url("../img/arrow-down-white.svg");
}

/* -------------------------------------------------------------
   知る／探す／相談する ボタン
   ------------------------------------------------------------- */
.p-navbtn {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.c-navbtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  font-size: 1.5rem; /* 24px */
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.c-navbtn--know    { background-color: var(--color-teal); }
.c-navbtn--search  { background-color: var(--color-pink); }
.c-navbtn--consult { background-color: var(--color-yellow); }

/* ホバー：背景を淡いクリーム色に、文字・矢印・枠をテーマカラーへ反転 */
.c-navbtn:hover,
.c-navbtn:focus-visible {
  background-color: var(--color-hover);
  box-shadow: inset 0 0 0 2px currentColor;
  opacity: 1;
}

.c-navbtn--know:hover,
.c-navbtn--know:focus-visible    { color: var(--color-teal); }
.c-navbtn--search:hover,
.c-navbtn--search:focus-visible  { color: var(--color-pink); }
.c-navbtn--consult:hover,
.c-navbtn--consult:focus-visible { color: var(--color-yellow); }

.c-navbtn--know:hover .c-arrow,
.c-navbtn--know:focus-visible .c-arrow    { background-image: url("../img/arrow-down-blue.svg"); }
.c-navbtn--search:hover .c-arrow,
.c-navbtn--search:focus-visible .c-arrow  { background-image: url("../img/arrow-down-pink.svg"); }
.c-navbtn--consult:hover .c-arrow,
.c-navbtn--consult:focus-visible .c-arrow { background-image: url("../img/arrow-donw-orange.svg"); }

.c-navbtn__arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}

/* -------------------------------------------------------------
   セクション見出し（バッジ＋タイトル）
   ------------------------------------------------------------- */
.c-sectionhead {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 60px;
  min-height: 150px;
}

.c-sectionhead__badge {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  margin: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem; /* 40px */
  line-height: 1.1;
  text-align: center;
}

.c-sectionhead--know    .c-sectionhead__badge { background-color: var(--color-teal); }
.c-sectionhead--search  .c-sectionhead__badge { background-color: var(--color-pink); }
.c-sectionhead--consult .c-sectionhead__badge { background-color: var(--color-yellow); }

.c-sectionhead__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0 30px;
  color: var(--color-heading);
  font-size: 1.75rem; /* 28px */
  line-height: 40px;
}

.c-sectionhead__deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.c-sectionhead--know .c-sectionhead__deco    { top: 26px; left: 609px; width: 91px; }
.c-sectionhead--search .c-sectionhead__deco  { top: 40px; left: 571px; width: 123px; }
.c-sectionhead--consult .c-sectionhead__deco { top: 1px;  left: 529px; width: 130px; }

.c-sectionhead + .c-text  { margin-top: 41px; }
.c-sectionhead + .c-title { margin-top: 61px; }

/* -------------------------------------------------------------
   基礎知識カード（クリックでポップアップ）
   ------------------------------------------------------------- */
.p-knowledge {
  width: 100%;
  max-width: var(--text-width);
  margin: 51px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 21px;
}

.p-knowledge__item {
  display: flex;
}

.p-knowledge__btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 99px;
  padding: 12px 70px 12px 29px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-heading);
  font-size: 1.125rem; /* 18px */
  line-height: 1.35;
  text-align: left;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.p-knowledge__btn:hover,
.p-knowledge__btn:focus-visible {
  background-color: var(--color-hover);
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.p-knowledge__icon {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  background: url("../img/btn-open-off.svg") no-repeat center / contain;
}

.p-knowledge__btn:hover .p-knowledge__icon,
.p-knowledge__btn:focus-visible .p-knowledge__icon {
  background-image: url("../img/btn-open-on.svg");
}

/* -------------------------------------------------------------
   Coming Soon
   ------------------------------------------------------------- */
.c-comingsoon {
  margin-top: 14px;
  color: var(--color-heading);
  font-size: 1rem; /* 16px */
  line-height: 1.4;
  text-align: center;
}

.c-comingsoon + .c-text {
  margin-top: 37px;
}

/* -------------------------------------------------------------
   動画カルーセル（slick）
   白カード内に収め、ファーストビューで3枚表示
   ------------------------------------------------------------- */
.p-carousel {
  /* 260px × 3 + 20px × 2 = 820px ＋ 左右の矢印スペース 44px */
  width: 908px;
  max-width: 100%;
  margin: 31px auto 0;
  padding-inline: 44px;
}

.p-carousel__inner {
  position: relative;
}

/* prev / next ボタン */
.p-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  background: no-repeat center / contain;
  transition: opacity .2s ease;
}

.p-carousel__arrow:hover,
.p-carousel__arrow:focus-visible {
  opacity: .7;
}

.p-carousel__arrow--prev {
  left: -38px;
  background-image: url("../img/ic-sl-arr-left.svg");
}

.p-carousel__arrow--next {
  right: -38px;
  background-image: url("../img/ic-sl-arr-right.svg");
}

.p-carousel__arrow.slick-disabled {
  opacity: .35;
  pointer-events: none;
}

.p-carousel .slick-list {
  /* スライドの左右マージン分を戻しつつ、影が切れないよう上下に余白 */
  margin: 0 -10px;
  padding: 12px 0;
}

.p-carousel__slide {
  margin: 0 10px;
}

.p-carousel__btn {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
  transition: opacity .2s ease;
}

.p-carousel__btn:hover,
.p-carousel__btn:focus-visible {
  opacity: .82;
}

.p-carousel__btn > img:first-child {
  width: 100%;
  height: auto;
  display: block;
}

.p-carousel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ドット */
.p-carousel__dots {
  margin-top: 7px;
}

.p-carousel .slick-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-carousel .slick-dots li {
  width: 10px;
  height: 10px;
  line-height: 0;
}

.p-carousel .slick-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--color-border);
  font-size: 0;
  line-height: 0;
  color: transparent;
  transition: background-color .2s ease;
}

.p-carousel .slick-dots .slick-active button {
  background-color: var(--color-teal);
}

/* -------------------------------------------------------------
   ボタン類
   ------------------------------------------------------------- */
/* 小ボタン（詳細はこちら など） */
.c-minibtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 2px 26px 2px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem; /* 16px */
  line-height: 1.4;
  white-space: nowrap;
  position: relative;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.c-minibtn--teal { background-color: var(--color-teal); }
.c-minibtn--pink { background-color: var(--color-pink); }

.c-minibtn:hover,
.c-minibtn:focus-visible {
  background-color: var(--color-hover);
  box-shadow: inset 0 0 0 2px currentColor;
  opacity: 1;
}

.c-minibtn--teal:hover,
.c-minibtn--teal:focus-visible { color: var(--color-teal); }
.c-minibtn--pink:hover,
.c-minibtn--pink:focus-visible { color: var(--color-pink); }

.c-minibtn--teal:hover .c-arrow,
.c-minibtn--teal:focus-visible .c-arrow { background-image: url("../img/arrow-right-blue.svg"); }
.c-minibtn--pink:hover .c-arrow,
.c-minibtn--pink:focus-visible .c-arrow { background-image: url("../img/arrow-right-pink.svg"); }

.c-minibtn .c-arrow {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
}

.c-minibtn--sm {
  min-height: 20px;
  padding: 0 22px 0 12px;
  font-size: .875rem; /* 14px */
  line-height: 20px;
  vertical-align: middle;
}

/* 大ボタン（医療機関を探す／相談する） */
.c-btnwrap {
  margin-top: 37px;
  text-align: center;
}

.c-bigbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 238px;
  min-height: 38px;
  border-radius: 999px;
  color: #fff;
  font-size: 1.25rem; /* 20px */
  line-height: 1.3;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.c-bigbtn--pink   { background-color: var(--color-pink); }
.c-bigbtn--yellow { background-color: var(--color-yellow); }

.c-bigbtn:hover,
.c-bigbtn:focus-visible {
  background-color: var(--color-hover);
  box-shadow: inset 0 0 0 2px currentColor;
  opacity: 1;
}

.c-bigbtn--pink:hover,
.c-bigbtn--pink:focus-visible   { color: var(--color-pink); }
.c-bigbtn--yellow:hover,
.c-bigbtn--yellow:focus-visible { color: var(--color-yellow); }

.c-bigbtn--pink:hover .c-arrow,
.c-bigbtn--pink:focus-visible .c-arrow   { background-image: url("../img/arrow-right-pink.svg"); }
.c-bigbtn--yellow:hover .c-arrow,
.c-bigbtn--yellow:focus-visible .c-arrow { background-image: url("../img/arrow-donw-orange.svg"); }

.c-bigbtn .c-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

/* -------------------------------------------------------------
   早期不妊検査費助成事業の詳細
   ------------------------------------------------------------- */
.p-detail {
  position: relative;
  margin-top: 36px;
}

.p-detail__ill {
  position: absolute;
  top: 0;
  right: 84px;
  width: 108px;
}

.p-detail__btnwrap {
  width: 100%;
  max-width: calc(var(--text-width) + 40px);
  margin: 22px auto 0;
  padding-inline: 51px;
}

.p-detail .c-subtitle + .p-detail__btnwrap { margin-top: 22px; }
.p-detail .c-subtitle { margin-top: 41px; }
.p-detail > .c-subtitle:first-of-type { margin-top: 0; }

/* ①②③④ リスト */
.c-numlist {
  width: 100%;
  max-width: calc(var(--text-width) + 40px);
  margin: 17px auto 0;
  padding-inline: 50px;
  list-style: none;
  font-size: 1rem;
  line-height: 2;
}

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

.c-numlist > li::before { content: "\2460"; }

.c-numlist > li:nth-child(2)::before { content: "\2461"; }
.c-numlist > li:nth-child(3)::before { content: "\2462"; }
.c-numlist > li:nth-child(4)::before { content: "\2463"; }

.c-numlist__btn {
  display: block;
  margin-top: 22px;
  margin-bottom: 22px;
  padding-left: 1px;
  text-indent: 0;
}

/* -------------------------------------------------------------
   市町村一覧テーブル
   ------------------------------------------------------------- */
.p-citytable {
  position: relative;
  margin-top: 59px;
}

.p-citytable__ill {
  position: absolute;
  top: 119px;
  left: 80px;
  width: 57px;
}

/* PC は 2 列組み（左の表 → 右の表 の順に並ぶ） */
.p-citytable__tables {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.p-citytable__table {
  width: 340px;
  max-width: 100%;
  border-collapse: collapse;
  font-size: .9375rem; /* 15px */
  line-height: 1.6;
}

.p-citytable__table tbody tr {
  border-top: 1px dotted var(--color-border);
}

.p-citytable__table tbody tr:last-child {
  border-bottom: 1px dotted var(--color-border);
}

.p-citytable__table td {
  height: 46px;
  padding: 4px 0;
  color: var(--color-heading);
  vertical-align: middle;
}

.p-citytable__name { padding-left: 16px !important; }
.p-citytable__link { width: 160px; text-align: right; padding-right: 16px !important; }

.p-citytable__note {
  width: 700px;
  max-width: 100%;
  margin: 14px auto 0;
  font-size: .75rem; /* 12px */
  line-height: 1.6;
  text-align: right;
}

/* -------------------------------------------------------------
   主な支援制度
   ------------------------------------------------------------- */
.p-support {
  position: relative;
  margin-top: 79px;
}

.p-support__ill {
  position: absolute;
  top: -70px;
  right: 71px;
  width: 89px;
}

.p-support .c-subtitle {
  margin-top: 61px;
}

.p-support .c-title + .c-subtitle {
  margin-top: 41px;
}

.p-support__list {
  counter-reset: support;
  width: 100%;
  max-width: calc(var(--text-width) + 40px);
  margin: 22px auto 0;
  padding-inline: 20px;
  list-style: none;
}

.p-support__item {
  counter-increment: support;
  position: relative;
  padding-left: 42px;
}

.p-support__item + .p-support__item {
  margin-top: 29px;
}

.p-support__item::before {
  content: counter(support);
  position: absolute;
  top: 2px;
  left: 1px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-pink);
  border-radius: 50%;
  color: var(--color-pink);
  font-size: 1.25rem; /* 20px */
  line-height: 28px;
  text-align: center;
}

.p-support__name {
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
  padding-top: 3px;
}

.p-support__desc {
  margin-top: 14px;
  margin-left: -12px;
  font-size: 1rem;
  line-height: 2;
}

.p-support__btn {
  margin-top: 17px;
  margin-left: -11px;
}

/* -------------------------------------------------------------
   フッター
   ------------------------------------------------------------- */
.l-footer {
  padding: 41px 0 40px;
}

.l-footer__dept {
  color: var(--color-text);
  font-size: 1.5rem; /* 24px */
  line-height: 1.6;
}

.l-footer__info {
  margin-top: 16px;
  font-size: .875rem; /* 14px */
  line-height: 24px;
}

.l-footer__info a {
  color: inherit;
}

.l-footer__banners {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.l-footer__banner {
  display: flex;
  align-items: center;
}

.l-footer__banner img { display: block; }
.l-footer__banner--logo img { width: 160px; height: auto; }
.l-footer__banner:nth-child(2) img { width: 150px; height: auto; }
.l-footer__banner:nth-child(3) img { width: 166px; height: auto; }
.l-footer__banner:nth-child(4) img { width: 167px; height: auto; }

.l-footer__copyright {
  margin-top: 25px;
  text-align: right;
  line-height: 16px;
}

.l-footer__copyright small {
  font-size: .6875rem; /* 11px */
}

/* -------------------------------------------------------------
   ポップアップ（Bootstrap Modal をデザインに合わせて上書き）
   ------------------------------------------------------------- */
.c-modal {
  --bs-modal-width: 1000px;
  --bs-modal-bg: #fff;
  --bs-modal-color: var(--color-text);
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: var(--card-radius);
  --bs-modal-inner-border-radius: var(--card-radius);
  --bs-modal-box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
  --bs-modal-padding: 0;
  --bs-modal-margin: 24px;
  --bs-modal-zindex: 1055;
}

.modal-backdrop {
  --bs-backdrop-bg: #1c3c3e;
  --bs-backdrop-opacity: .55;
}

.c-modal__dialog {
  /* 画面が狭いときは左右 20px を確保する */
  max-width: min(var(--bs-modal-width), calc(100% - 40px));
}

.c-modal__content {
  box-shadow: var(--bs-modal-box-shadow);
}

.c-modal__body {
  position: relative;
  padding: 101px 80px 96px;
}

.c-modal__close {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: url("../img/btn-close-off.svg") no-repeat center / contain;
}

.c-modal__close:hover,
.c-modal__close:focus-visible {
  background-image: url("../img/btn-close-on.svg");
}

.c-modal__deco {
  position: absolute;
  top: 63px;
  left: 50%;
  z-index: 0;
  width: 91px;
  transform: translateX(calc(-50% + var(--deco-x, 0px)));
  pointer-events: none;
}

.c-modal__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-heading);
  font-size: 1.5rem; /* 24px */
  line-height: 1.4;
  text-align: center;
}

.c-modal__title + .c-text {
  margin-top: 57px;
}

.c-modal .c-text {
  max-width: 100%;
  padding-inline: 0;
}

/* 概要図モーダル */
.c-modal--chart .c-modal__body {
  padding: 90px 30px 30px;
  text-align: center;
}

.c-modal__chart {
  width: 820px;
  max-width: 100%;
  height: auto;
}

/* 動画モーダル */
.c-modal--movie .c-modal__body {
  padding: 90px 30px 40px;
}

.c-modal__movie {
  position: relative;
  width: 100%;
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  background-color: #f2f2f2;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-modal__movie iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.c-modal__movie-empty {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  text-align: center;
}

/* -------------------------------------------------------------
   ページトップへ戻る
   ------------------------------------------------------------- */
.c-pagetop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 100;
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.c-pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-pagetop img {
  width: 100%;
  height: auto;
}

/* =============================================================
   レスポンシブ
   ============================================================= */

/* ---- ~1199px ---- */
@media (max-width: 1199.98px) {
  .c-sectionhead--know .c-sectionhead__deco    { left: auto; right: 20px; }
  .c-sectionhead--search .c-sectionhead__deco  { left: auto; right: 40px; }
  .c-sectionhead--consult .c-sectionhead__deco { left: auto; right: 60px; }

  .p-detail__ill   { right: 24px; }
  .p-support__ill  { right: 24px; }
  .p-citytable__ill { left: 20px; }
}

/* ---- ~991px : タブレット ---- */
@media (max-width: 991.98px) {
  :root {
    --gap-block: 84px;
    --gap-heading: 60px;
    --gap-lead: 30px;
  }

  .p-card {
    margin-top: 40px;
    padding-top: 64px;
  }

  .p-card__town  { margin-top: 72px; }
  .p-block--search { margin-top: 96px; }

  .c-text,
  .c-note,
  .c-subtitle,
  .c-numlist,
  .p-support__list,
  .p-detail__btnwrap {
    padding-inline: 32px;
  }

  .c-numlist { padding-inline: 46px; }

  .c-title--lg { font-size: 1.75rem; }
  .c-title--md { font-size: 1.375rem; }
  .c-title--lg + .c-text { margin-top: 44px; }

  .p-overview { margin-top: 60px; }
  .p-navbtn   { margin-top: 60px; gap: 20px; }

  .c-sectionhead { padding-left: 24px; min-height: 120px; }
  .c-sectionhead__badge { width: 120px; height: 120px; font-size: 2rem; }
  .c-sectionhead__title { margin-left: 24px; font-size: 1.5rem; line-height: 1.5; }
  .c-sectionhead__deco { width: 76px !important; top: 12px !important; }
  .c-sectionhead + .c-text  { margin-top: 32px; }
  .c-sectionhead + .c-title { margin-top: 48px; }

  .p-knowledge { margin-top: 40px; gap: 16px; }
  .p-knowledge__btn { min-height: 88px; padding: 12px 60px 12px 20px; font-size: 1rem; }
  .p-knowledge__icon { right: 16px; width: 32px; height: 32px; }

  .p-citytable { margin-top: 44px; }
  .p-citytable__ill { display: none; }

  .p-support { margin-top: 64px; }
  .p-support__ill { top: -56px; width: 72px; }
  .p-support .c-subtitle { margin-top: 48px; }

  .p-detail__ill { top: -8px; width: 88px; }

  .c-modal__body { padding: 96px 40px 64px; }
  .c-modal--chart .c-modal__body { padding: 84px 24px 24px; }
  .c-modal--movie .c-modal__body { padding: 84px 24px 32px; }
  .c-modal__title + .c-text { margin-top: 40px; }
  .c-modal__close { top: 24px; right: 24px; }
  .c-modal__deco { top: 40px; width: 72px; transform: translateX(calc(-50% + (var(--deco-x, 0px) * .7))); }

  .l-footer__banners {
    gap:16px;
  }
}

/* ---- ~767px : スマートフォン ---- */
@media (max-width: 767.98px) {
  :root {
    --gap-block: 64px;
    --gap-heading: 48px;
    --gap-lead: 24px;
    --card-radius: 14px;
  }

  body { font-size: .9375rem; }

  .l-container { padding-inline: 16px; }

  /* ヘッダー */
  .l-header { padding: 12px 0; }
  .l-header__inner { padding-inline: 16px; }
  .l-header__logo img { width: 132px; }
  .l-header__title {
    margin-left: 10px;
    padding-left: 10px;
    min-height: 46px;
    font-size: .6875rem;
    line-height: 16px;
  }

  /* カード */
  .p-card { margin-top: 28px; padding-top: 48px; }
  .p-card__town { margin-top: 56px; }
  .p-block--search { margin-top: 72px; }

  .c-text,
  .c-note,
  .c-subtitle,
  .p-support__list,
  .p-detail__btnwrap {
    padding-inline: 14px;
    font-size: .9375rem;
    line-height: 1.9;
  }

  .c-note { font-size: .6875rem; }
  .c-subtitle { font-size: 1.0625rem; }
  .c-numlist { padding-inline: 30px; font-size: .9375rem; line-height: 1.9; }

  .c-title--lg { font-size: 1.36rem; line-height: 1.5; }
  .c-title--md { font-size: 1rem; line-height: 1.6; }
  .c-title--lg + .c-text { margin-top: 32px; }

  /* イントロ */
  .p-overview { margin-top: 48px; padding-inline: 24px; }
  .p-overview__lead { margin-top: 12px; font-size: 1rem; }
  .p-overview__figure { margin-top: 20px; }
  .p-overview__zoom { margin-top: 14px; }
  .c-textlink { font-size: .875rem; }

  /* 知る／探す／相談する ボタン */
  .p-navbtn {
    margin-top: 44px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .c-navbtn { width: 220px; height: 46px; font-size: 1.25rem; }

  /* セクション見出し */
  .c-sectionhead {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    min-height: 0;
    text-align: center;
  }
  .c-sectionhead__badge { width: 96px; height: 96px; font-size: 1.625rem; }
  .c-sectionhead__title {
    margin: 16px 0 0;
    font-size: 1.25rem;
    line-height: 1.6;
  }
  .c-sectionhead__deco {
    display: none;
    /*width: 62px !important;
    top: 0 !important;
    right: 8px !important;
    left: auto !important;
    transform: none !important;*/
  }
  .c-sectionhead + .c-text  { margin-top: 28px; }
  .c-sectionhead + .c-title { margin-top: 40px; }

  /* 基礎知識カード */
  .p-knowledge {
    margin-top: 28px;
    padding-inline: 24px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .p-knowledge__btn {
    min-height: 68px;
    padding: 12px 48px 12px 14px;
    font-size: .9375rem;
    border-radius: 10px;
  }
  .p-knowledge__icon { right: 12px; width: 28px; height: 28px; }

  /* カルーセル */
  .p-carousel { margin-top: 28px; width: auto; padding-inline: 38px; }
  .p-carousel .slick-list { margin: 0 -7px; padding: 10px 0; }
  .p-carousel__slide { margin: 0 7px; }
  .p-carousel__play { width: 34px; height: 34px; }
  .p-carousel__arrow { width: 28px; height: 28px; }
  .p-carousel__arrow--prev { left: -33px; }
  .p-carousel__arrow--next { right: -33px; }

  /* ボタン */
  .c-minibtn { font-size: .875rem; }
  .c-minibtn--sm { font-size: .8125rem; }
  .c-btnwrap { margin-top: 28px; }
  .c-bigbtn { width: 220px; min-height: 44px; font-size: 1.0625rem; }

  /* 助成事業の詳細 */
  .p-detail { margin-top: 28px; }
  .p-detail__ill { position: static; display: block; width: 78px; margin: 0 auto 12px; }
  .p-detail .c-subtitle { margin-top: 32px; }
  .p-detail__btnwrap { padding-inline: 24px; }
  .c-numlist__btn { margin-top: 14px; margin-bottom: 14px; }

  /* 市町村一覧 */
  .p-citytable { margin-top: 32px; padding-inline: 24px; }

  .p-citytable__tables { display: block; }

  .p-citytable__table {
    width: 100%;
    font-size: .875rem; /* 14px */
  }

  /* 上下の表がつながって見えるよう、重複する罫線を消す */
  .p-citytable__table + .p-citytable__table tbody tr:first-child {
    border-top: 0;
  }


  .p-citytable__table td {
    height: 42px;
  }

  .p-citytable__name { font-size: 1rem !important; padding-left: 4px !important; }
  .p-citytable__link { width: auto; padding-right: 4px !important; }
  .p-citytable__note { width: 100%; margin-top: 12px; }

  /* 支援制度 */
  .p-support { margin-top: 48px; }
  .p-support__ill { position: static; display: block; width: 68px; margin: 0 auto 12px; }
  .p-support .c-subtitle { margin-top: 36px; }
  .p-support__list { padding-inline: 14px; }
  .p-support__item { padding-left: 0; }
  .p-support__item::before {
    width: 26px;
    height: 26px;
    font-size: 1rem;
    line-height: 24px;
  }
  .p-support__item + .p-support__item { margin-top: 24px; }
  .p-support__name { font-size: 1rem; padding-left:34px }
  .p-support__desc { margin-top: 8px; margin-left:0; }
  .p-support__btn  { margin-top: 12px; margin-left: 0; }

  /* フッター */
  .l-footer { padding: 28px 0 32px; }
  .l-footer__dept { font-size: 1.125rem; }
  .l-footer__info { margin-top: 12px; font-size: .8125rem; line-height: 1.8; }
  .l-footer__info p + p { margin-top: 2px; }
  .l-footer__banners { margin-top: 20px; gap: 16px 20px; justify-content: center;}
  .l-footer__banner--logo img { width: 132px; }
  .l-footer__banner:nth-child(2) img { width: 124px; }
  .l-footer__banner:nth-child(3) img { width: 137px; }
  .l-footer__banner:nth-child(4) img { width: 138px; }
  .l-footer__copyright { margin-top: 20px; text-align: center; line-height: 1.6; }
  .l-footer__copyright small { font-size: .625rem; }

  /* モーダル */
  .c-modal { --bs-modal-margin: 12px; }
  .c-modal__dialog { max-width: calc(100% - 24px); }
  .c-modal__body { padding: 72px 20px 40px; }
  .c-modal__close { top: 16px; right: 16px; width: 32px; height: 32px; }
  .c-modal__deco {
    width: 56px !important;
    top: 24px !important;
    left: 16px;
    right: auto;
    transform: none !important;
  }
  .c-modal__title { font-size: 1.125rem; line-height: 1.6; }
  .c-modal__title + .c-text { margin-top: 24px; }
  .c-modal--chart .c-modal__body { padding: 64px 16px 24px; }
  .c-modal--movie .c-modal__body { padding: 64px 16px 24px; }
  .c-modal__movie { margin-top: 20px; }
  .c-modal__movie-empty { font-size: .875rem; }

  /* ページトップ */
  .c-pagetop { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* ---- ~380px ---- */
@media (max-width: 380px) {
  .l-header__logo img { width: 112px; }
  .l-header__title { font-size: .625rem; }
  .c-title--lg { font-size: 1.22rem; }
  .p-carousel { padding-inline: 32px; }
  .p-carousel__arrow { width: 26px; height: 26px; }
  .p-carousel__arrow--prev { left: -29px; }
  .p-carousel__arrow--next { right: -29px; }
}

/* ---- モーションを減らす設定 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
