﻿@charset "utf-8";
/* ========== CSS変数（テーマ設定） ========== */ :root {
  /* ヒーローの高さ：最低・推奨・最大の範囲で自動調整 */
  --hero-height: clamp(360px, 50vh, 550px);
  /* ヒーローの内側余白 */
  --hero-padding: clamp(16px, 5vw, 64px);
  /* 色 */
  --text: #333;
  --text-on-dark: #fff;
  --brand: #2e7be6;
  --bg: #fff;
  --bg-alt: #f7f7f9;
  --bg-accent: #eef5ff;
  --bg-cta: #40d1bd;
  --bg-ylw: #fffce9;
  --bg-pgr: #cdf0ed;
  --bg-dbl: #e0eff3;
  --bg-blue: #3a93ab;
  --bg-org: #fff0e4;
  /* オーバーレイ（視認性向上用） */
  --overlay: rgba(255, 255, 255, 0.3);
  --overlay-grad: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  /* レイアウト */
  --container-max: 1200px;
  --header-height: 64px; /* 固定ヘッダー時の高さ */
  /* pタグのフォントサイズ */
  --p-font-size: clamp(16px, 1.2vw, 18px);
}
/* フォントサイズ */
#category-top :is(p, ul, ol, li, dt, dd){
  font-size: var(--p-font-size);
}
/* ダークモードの調整（必要に応じて） */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #eaeaea;
    --bg: #121212;
    --bg-alt: #16181d;
    --bg-accent: #1b2330;
    --overlay: rgba(0, 0, 0, 0.55);
    --overlay-grad: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  }
}
/* 動きが苦手な方に配慮 */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
/* ========== wow.js ========== */
/* .wow 要素の既定値を一括適用 */
.wow {
  animation-duration: .7s;
  animation-delay: .1s;
}
/* ========== ボタン ========== */
.c-btn, .c-bnr, .c-txt {
  cursor: pointer;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}
/*// ボタン基本コード*/
.c-btn {
  border-radius: clamp(12px, 3vw, 60px);
  color: #fff;
  display: block;
  font-weight: bold;
  max-width: 300px;
  padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 64px);
  text-align: center;
}
/*// 画像バナー基本コード*/
.c-bnr {
  background: url(/***)no-repeat center center / cover;
  display: inline-block;
  width: 240px;
  height: 240px;
}
/*// テキスト基本コード*/
.c-txt {
  color: #ff701e;
  display: inline-block;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.06em;
}
.cta {
  /* position: absolute;
    bottom: -105px;*/
  /* width: 97vw;
    max-width: 1500px;*/
  z-index: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.cta i {
  color: #fff;
}
.cta-btn_area {
  display: block;
  max-width: 480px;
  margin: 0 30px;
  width: 50vw;
  font-size: clamp(16px, 2.4vw, 24px);
  color: #fff !important;
}
.c-btn.grad-1 {
  background: linear-gradient(90deg, #8454af 0%, #957ddd 50%, #52208d 100%);
  background-size: 200% 100%;
  border: none;
}
.c-btn.grad-2 {
  background: linear-gradient(90deg, rgba(255, 112, 30, 1) 0%, rgba(255, 191, 48, 1) 50%, rgba(255, 77, 48, 1) 100%);
  background-size: 200% 100%;
  border: none;
}
.c-btn.shadow-1 {
  box-shadow: 0 4px 0 #302054; /* ボタンの影*/
}
.c-btn.shadow-2 {
  box-shadow: 0 4px 0 #b11414; /* ボタンの影*/
}
.c-btn.big:hover {
  background-position: 100% 0;
  transform: scale(1.1);
  transition-duration: .4s;
}
.c-btn:hover, .c-btn:visited, .c-btn:link, .c-btn:active {
  text-decoration: none;
}
/* ========== リセット/ベース ========== */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  background: var(--bg);
  color: var(--text);
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
}
/* アクセシビリティ：スキップリンク */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border-radius: 6px;
  z-index: 9999;
}
.negative_MB {
  margin-bottom: -50px;
}
/* ========== ヒーロー ========== */
.hero {
  position: relative;
  display: block; /* 背景はセクション全体に敷く */
  width: 100%;
  min-height: var(--hero-height);
  padding: var(--hero-padding);
  color: var(--text-on-dark);
  overflow: hidden;
  /* 背景画像（全面） */
  background-image: var(--overlay-grad), url('/image/subsidy/hero_bg.jpg') !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-bottom: max(1px, 0.5rem); /* マージン折りたたみ対策 */
}
/* オーバーレイ（可読性確保） */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 0;
}
/* ★ 最大幅1200pxの中央寄せコンテナ */
.hero__inner {
  position: relative;
  z-index: 1; /* 背景より前面 */
  max-width: 1400px; /* セクションの「幅」上限 */
  margin-inline: auto; /* 中央寄せ */
  padding-inline: clamp(16px, 4vw, 40px); /* 端末に応じた左右余白 */
  display: grid;
  place-items: start; /* 左上寄せ（コンテンツの配置） */
  text-align: left; /* テキスト左揃え */
}
/* 左右2カラムのグリッド */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(10px, 2vw, 20px);
  row-gap: 24px;
  align-items: center;
}
/* 左側（タイトル＋円3つ） */
.hero__left {
  align-self: start; /* 上に寄せたい場合 */
}
/* 右側（イメージ） */
.hero__right {
  justify-self: end; /* 右端に寄せる。中央寄せにしたいなら center */
  align-self: end;
}
/* 三つの円の並び（横並び） */
.hero__bullets {
  display: flex;
  gap: clamp(12px, 2.4vw, 20px);
  flex-wrap: wrap; /* 画面が狭ければ折り返し */
  margin-top: clamp(30px, 4vw, 50px); /* 見出しの下の余白 */
}
/* 円そのもの */
.hero__bullet {
  inline-size: clamp(88px, 12vw, 140px); /* 幅（高さは aspect-ratio で揃える） */
  aspect-ratio: 1 / 1; /* 正円を維持 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* 背景と境界（ヒーローが暗め背景前提の可読性配慮） */
  background: rgba(5, 19, 66, .7);
  /*background: rgb(0, 0, 0, 0.4);*/
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: clamp(17px, 2.3vw, 25px);
  line-height: 1.2;
  padding: 8px; /* 円内のテキスト余白 */
  backdrop-filter: blur(2px); /* 画像がうるさい場合に視認性UP（対応ブラウザのみ） */
}
/* 円内テキストの補助（段組や小さめ文字用） */
.hero__bullet small {
  display: block;
  font-weight: 600;
  opacity: 0.9;
}
/* 右側の画像スタイル */
.hero__image {
  max-width: min(100%, 560px); /* 右カラム内での上限サイズ */
  height: auto;
  object-fit: contain;
}
/* レスポンシブ：幅が狭いときは縦並びに */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__right {
    justify-self: start; /* 縦並び時は左寄せに戻す（好みに応じて） */
  }
  .hero__image {
    max-width: min(100%, 480px);
  }
}
/* 既存のヒーローの背景・オーバーレイ・重なり順の安全対策（参考） */
.hero {
  position: relative;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
} /* ここにコンテンツを載せる */
/* ★ 実際のテキスト行長（可読性のための幅制限） */
.hero__content {
  max-width: 84ch; /* 72ch → 84ch に拡張（文量に応じて78–92chで微調整） */
  margin-inline: 0; /* 左寄せ */
}
/* タイポグラフィ */
.hero__title {
  font-size: clamp(34px, 3.3vw, 50px);
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #05253b;
}
.hero__subtitle {
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.7;
  margin: 0 0 24px;
  opacity: .95;
}
/* ボタン行は左寄せ */
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start; /* 左寄せ */
  flex-wrap: wrap;
}
/* ボタン（既存のまま） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 123, 230, .35);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, .7);
}
.btn--ghost:hover {
  transform: translateY(-1px);
}
/**********************************************/
/* ============== セクション群 ================ */
/**********************************************/
.section {
  position: static; /* normal flow を維持 */
  margin: 0;
  padding: clamp(80px, 8vw, 120px) 0;
  background: var(--bg);
  color: var(--text);
  scroll-margin-top: var(--header-height); /* 固定ヘッダー対策（アンカー時） */
}
.section--intro {
  background: var(--bg-ylw);
}
.section--ans {
  background: var(--bg-pgr);
}
.section--cta {
  background: var(--bg-accent);
}
.section--column {
  background: var(--bg-org);
}
.section--case {
  background: var(--bg-blue);
}
.section--faq {
  background: var(--faq-bg);
}
.section--form {
  background: var(--form-bg);
}
.section__title {
  font-size: clamp(20px, 4vw, 40px);
  margin: 0 0 50px;
  font-weight: 700;
  text-align: center;
}
.section__lead {
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 0 0 30px;
  line-height: 1.7;
}
.section__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/******************* CTA  ***************************/
#CTA01, .cta_bg {
  background-color: var(--bg-cta);
}
/**********************************************/
/* Block2 
***********************************************/
.bk02 {
  position: relative;
  z-index: 10;
  overflow: visible;
}
.bk02::after {
  display: block;
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 70px solid transparent;
  border-left: 70px solid transparent;
  border-top: 52px solid var(--bg-ylw);
  border-bottom: 0;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  pointer-events: none;
}
#Block02 div {
  position: relative;
  z-index: 50;
}
/**********************************************/
/* CARD 
***********************************************/
#Block02 .section .container, #Block03 .section .container {
  max-width: 1120px; /* 例：3×カード幅 + gap を想定した上限 */
  margin: 0 auto; /* 画面中央に配置 */
  padding-left: 16px; /* 余白（任意） */
  padding-right: 16px;
}
/* Card ベース：スマホは1列 */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 32px; /* ← 縦の余白を増やす */
  column-gap: 16px;
  grid-template-columns: 1fr; /* まずは1列 */
}
/* タブレット以上：2列 */
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* デスクトップ以上：中央揃えで3列 */
@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3列を「中央に見せる」のはコンテナの max-width + margin で担保 */
  }
}
/* カード本体の見た目 */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb; /* 枠線色 */
  border-radius: 12px; /* 角丸 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px 10px;
  display: grid;
  grid-template-columns: auto 1fr; /* 左にアイコン、右にテキスト */
  grid-template-areas:
    "ill title"
    "ill text";
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
}
/* ワンポイントイラスト（SVGならcurrentColorで色指定） */
.card__illustration {
  grid-area: ill;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
#Block02 .card__illustration {
  color: #0ea5a5; /* アイコンの基調色 */
}
#Block03 .card__illustration {
  color: #ffabe0; /* アイコンの基調色 */
}
/* カード内テキスト */
.card__title {
  grid-area: title;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.4;
  font-weight: 700;
}
#Block02 .card__title {
  color: #ff6c00;
}
#Block03 .card__title {
  color: #0b746b;
}
#Block02 .card__title span {
  display: inline;
  background: linear-gradient(transparent 55%, #fff59d 0);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
#Block03 .card__title span {
  display: inline;
  background: linear-gradient(transparent 55%, #ffd3eb 0);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.card__text {
  grid-area: text;
  margin: 0;
  line-height: 1.7;
  color: #3e4247;
}
/* スマホ時は縦積み（アイコン→見出し→本文） */
@media (max-width: 480px) {
  .card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ill"
      "title"
      "text";
  }
  .card__illustration {
    margin-bottom: 8px;
  }
}
/**********************************************/
/* Block3 
***********************************************/
#Block03 .section {
  position: relative;
}
#Block03 .container {}
#Block03 .section__title {
  color: #00635D;
}
#Block03 h3 {
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 600;

}
#Block03.section {
  position: relative;
  overflow: hidden;
}
/* 初期：幅0＋遅延＋速度 */
.bg-sweep-in::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background-color: var(--bg-pgr);
  z-index: 0;
  transition: width .4s ease-out .6s; /* duration=0.7s, delay=0.6s */
  will-change: width;
}
/* 最終保持：永続クラスで幅100% */
.bg-sweep-in.is-bg-filled::before {
  width: 100%;
}
/* コンテンツは前面 */
#Block03 .container {
  position: relative;
  z-index: 1;
}
/**********************************************/
/* Block4
***********************************************/
.section--feature {
  width: 100%;
  background-color: rgb(255, 255, 255);
  background-image: url("/image/subsidy/clinic/grid.svg");
  background-repeat: repeat;
  /*padding: 120px 0px 1px;*/
  border-bottom: 4px solid var(--bg-cta);
}
.p-section-inner.p-feature-img01 {
  background: url("/image/subsidy/clinic/bgFeature01.png");
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
  -webkit-background-position: right top;
  background-position: right top;
}
.p-section-inner.p-feature-img02 {
  background: url("/image/subsidy/clinic/bgFeature02.png");
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
  -webkit-background-position: left top;
  background-position: left top;
}
.p-section-inner.p-feature-img03 {
  background: url("/image/subsidy/clinic/bgFeature03.png");
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
  -webkit-background-position: right top;
  background-position: right top;
}
.p-section-inner.p-feature-img04 {
  background: url("/image/subsidy/clinic/bgFeature04.png");
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
  -webkit-background-position: left top;
  background-position: left top;
}
.p-section-inner.p-feature-img05 {
  background: url("/image/subsidy/clinic/bgFeature05.png");
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
  -webkit-background-position: right top;
  background-position: right top;
}
.p-section-inner.p-feature-img06 {
  background: url("/image/subsidy/clinic/bgFeature06.png");
  background-repeat: no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
  -webkit-background-position: left top;
  background-position: left top;
}
.p-section-inner {
  width: 100%;
  margin: 0px auto 40px;
}
.p-section-inner .p-section-feature:last-child {
  margin-bottom: 0px;
}
.p-section-inner .p-section-feature {
  width: 100%;
  margin: 0px auto;
  padding: 10px 0px 110px;
  position: relative;
  max-width: 1300px;
}
.p-section-inner .p-section-feature.point-02 .point-wrap, .p-section-inner .p-section-feature.point-02 .point-img-wrap {
  margin-left: auto;
}
.p-section-inner .p-section-feature .point-img-wrap {
  width: 700px;
  overflow: hidden;
  border-radius: 10px;
  border: solid 4px #e5e5e5;
  background-color: #ffffff;
  padding: 0;
  margin: 40px 0 0;
}
.p-section-inner .p-section-feature .point-img-wrap img {
  display: block;
  width: 100%;
}
.p-section-inner .p-section-feature .point-wrap {
  width: 700px;
  /*background-image: url("/image/subsidy/clinic/arrow_ylw.svg");*/
  background-repeat: no-repeat;
  background-position: 120% 120%;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  border: 4px solid rgb(190, 241, 229);
  padding: 40px 54px;
  margin: 20px 0px 0px;
  position: relative;
}
.reason_point {
  width: 86px;
  height: 120px;
  background-image: url("/image/subsidy/clinic/point.svg");
  background-repeat: no-repeat;
  background-size: 100%;
  position: absolute;
  top: -13px;
  left: -10px;
  filter: drop-shadow(rgba(0, 0, 0, 0.5) 1px 2px 3px);
  text-align: center;
  padding: 12px 0px 0px;
  font-weight: 600;
  color: #5b4747;
}
.reason_point p {
  font-size: 3.125em!important;
  line-height: 1em !important;
  margin-top: -5px;
}
.p-section-inner .p-section-feature .point-wrap .label-txt {
  margin: 0px auto 35px;
  text-align: center;
  white-space: pre-line;
  line-height: 1.2em;
}
.txt-bold-green {
  color: #00ac93;
  font-weight: 600;
}
.txt-size-30 {
  font-size: 1.875em;
}
.p-section-inner .p-section-feature .point-wrap .detail-txt {
  line-height: 1.9em !important;
  margin-top: 15px;
}
@media (max-width: 1024px) {
  .p-section-inner .p-section-feature .point-wrap {
    width: calc(100vw - 40px);
    margin: 20px auto 0;
  }
  .p-section-inner .p-section-feature .point-img-wrap {
    width: calc(100vw - 40px);
    margin: 40px auto 0;
  }
  .p-section-inner.p-feature-img01 {
    background: url("/image/subsidy/clinic/bgFeature01.webp");
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    -webkit-background-position: center bottom;
    background-position: center bottom;
  }
  .p-section-inner.p-feature-img02 {
    background: url("/image/subsidy/clinic/bgFeature02.png");
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    -webkit-background-position: center bottom;
    background-position: center bottom;
  }
  .p-section-inner {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
}
/**********************************************/
/* Block5
***********************************************/
#Block05 {
  --gap: 40px; /* カード間の余白 */
  --side-pad: 32px; /* スライド領域の左右余白（これを増やすとチラ見えが狭くなる） */
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --border: 1px solid rgba(0, 0, 0, 0.06);
  --accent: #0F6CBD;
  --text-muted: #5f6b7a;
  --card-max: 840px;
}
/* 横スクロール領域（Scroll Snap） */
#Block05 h2.section__title {
  color: #ff7651;
}
#Block05 .column-carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /*  スライド領域に左右の内側余白を付与（チラ見え抑制に効く） */
  padding: 0 var(--side-pad) 8px;
  /* スナップ時に左余白を考慮して止める */
  scroll-padding-left: var(--side-pad);
  scroll-padding-right: var(--side-pad);
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
/* スクロールバー（任意） */
#Block05 .column-carousel::-webkit-scrollbar {
  height: 8px;
}
#Block05 .column-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}
#Block05 .column-carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}
/* カード（横スクロールの“コマ”） */
#Block05 .column-card {
  flex: 0 0 auto;
  /* 親幅から左右パディング分を引いた幅（カードをやや大きくしてチラ見えを絞る） */
  width: min(calc(100% - 2 * var(--side-pad)), var(--card-max));
  /* 1枚だけのときは100%で自然に表示される（上限は card-max） */
  scroll-snap-align: center;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
  max-width: 100%;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
#Block05 .column-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  border-color: rgba(15, 108, 189, 0.25);
}
/* カード内余白 */
#Block05 .column-card__body {
  padding: 40px 30px 55px;
}
/* メタ情報 */
#Block05 .column-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
#Block05 .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.6rem;
  line-height: 1;
  color: #2b3645;
}
#Block05 .label--category {
  background: rgba(15, 108, 189, 0.08);
  color: var(--accent);
  border: 1px solid rgba(15, 108, 189, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0;
}
#Block05 .label--date {
  color: var(--text-muted);
}
/* タイトル */
#Block05 .column-card__title {
  font-size: clamp(1.6rem, 1.8vw, 2.0rem);
  line-height: 1.5;
  margin: 6px 0 10px;
  font-weight: 700;
}
/* スクロール領域 */
#Block05 .column-card__content {
  /* 高さは用途に応じて調整。例はデスクトップ想定 */
  max-height: 450px; /* 固定値でもOK: height: 320px; */
  overflow: auto; /* 縦スクロール可（横は通常不要） */
  padding-right: 6px; /* スクロールバーで文字が隠れないよう余白 */
  box-sizing: border-box;
}
/* スクロールバーの控えめカスタム（WebKit系） */
#Block05 .column-card__content::-webkit-scrollbar {
  width: 8px;
}
#Block05 .column-card__content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}
#Block05 .column-card__content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}
/* Firefox（任意） */
#Block05 .column-card__content {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.05);
}
/* フォーカス可視化（キーボード利用者向け） */
#Block05 .column-card__content:focus-visible {
  outline: 2px solid rgba(46, 123, 230, .35);
  outline-offset: 2px;
}
/* レスポンシブ（モバイルは高さを少し下げる例） */
@media (max-width: 640px) {
  #Block05 .column-card__content {
    max-height: 260px;
  }
}
/* 本文 */
#Block05 .column-card__content h4 {
  font-size: var(--p-font-size);
  font-weight: 700;
  color: var(--accent);
}
#Block05 .column-card__content p {
  color: #3b4756;
  line-height: 1.6;
  margin: 0 0 1em;
}
/* ナビボタン（任意） */
#Block05 .carousel-nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 16px;
}
#Block05 .nav-btn {
  display: inline-flex;
  min-width: 80px;
  height: 42px;
  padding: 0 14px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #2b3645;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
#Block05 .nav-btn:hover {
  transform: translateY(-2px);
}
#Block05 .nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* レスポンシブ */
@media (max-width: 1024px) {
  #Block05 {
    --card-max: 760px;
  }
}
@media (max-width: 640px) {
  /* モバイルは左右余白少し広めが見栄え良い場合あり */
  #Block05 {
    --card-max: 100%;
    --side-pad: 20px;
  }
  #Block05 .column-card {
    width: calc(100vw - 2 * var(--side-pad));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }
  #Block05 .column-card__body {
    padding: 18px;
  }
}
/* 動きが苦手な人向け */
@media (prefers-reduced-motion: reduce) {
  #Block05 .column-card, #Block05 .nav-btn {
    transition: none;
  }
}
/* ダークモード（任意） */
@media (prefers-color-scheme: dark) {
  #Block05 {
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    --border: 1px solid rgba(255, 255, 255, 0.08);
    --text-muted: #b6c0cc;
  }
  #Block05 .column-card {
    background: #12171f;
    border: var(--border);
    box-shadow: var(--shadow);
  }
  #Block05 .label {
    color: #e5e8ec;
  }
  #Block05 .column-card__content {
    color: #d7dce2;
  }
  #Block05 .nav-btn {
    background: #1a2029;
    color: #e5e8ec;
    border-color: rgba(255, 255, 255, 0.12);
  }
  #Block05 .column-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
  }
  #Block05 .column-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
  }
}
/**********************************************/
/* Block6
*********************************************/
/* ===== 採択実績 ===== */
#Block06 {
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --border: #e6e6e6;
  --card-bg: #fafafa;
  --accent: #0b74de;
  --accent-contrast: #ffffff;
  --radius-md: 12px;
  --radius-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
}
/* セクションリード */
#Block06 .section__title {
  color: #fff;
}
#Block06 h3 {
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-bottom: 2em;
}
/* グリッド（SP:1カラム / MD+:2カラム） */
#Block06 .block06__grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  #Block06 .block06__grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* カード */
#Block06 .block06__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: clip;
  display: flex;
  flex-direction: column;
}
/* ヘッダー */
#Block06 .block06__cardHeader {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: 16px 16px 8px;
  border-bottom: 1px solid var(--border);
}
#Block06 .block06__place {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  font-weight: 700;
  flex: 1;
  color: var(--text);
}
#Block06 .block06__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: 999px;
  white-space: nowrap;
}
/* 本文 */
#Block06 .block06__cardBody {
  padding: 16px;
  display: grid;
  gap: 16px;
}
#Block06 .block06__subtitle {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
}
#Block06 .block06__list, #Block06 .block06__text {
  margin: 0;
  color: var(--text);
  font-size: clamp(16px, 1.7vw, 16px); /* 16～18px帯 */
  line-height: 1.8;
}
#Block06 .block06__list {
  padding-left: 1.2em;
  list-style: disc;
}
#Block06 .block06__list li + li {
  margin-top: 6px;
  line-height: 1.6em;
}
/* サムネイル */
#Block06 .block06__thumbnails {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
  grid-template-columns: 1fr; /* 1枚時 */
}
#Block06 .block06__thumbnails picture {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #00000010;
}
#Block06 .block06__thumbnails img {
  width: 100%;
  aspect-ratio: 4 / 3; /* 横長推奨。必要に応じて変更可 */
  object-fit: cover;
  display: block;
}
@media (min-width: 600px) {
  #Block06 .block06__thumbnails {
    grid-template-columns: repeat(2, 1fr); /* 2枚時は並列 */
  }
}
/* ダークモード（任意） */
@media (prefers-color-scheme: dark) {
  #Block06 {
    --text: #eaecef;
    --muted: #b8b8b8;
    --border: #2b2f36;
    --card-bg: #161a20;
  }
  #Block06 .block06__card {
    box-shadow: none;
  }
}
/**********************************************/
/* Block7
***********************************************/
#Block07 {
  --bg-image: url("/image/subsidy/hero_bg.jpg"); /* 背景画像 */
  --overlay-from: rgba(255, 255, 255, 0.35); /* 上部の白系オーバーレイ */
  --overlay-to: rgba(255, 255, 255, 0.2); /* 下部の白系オーバーレイ */
  --accent: #0b74de; /* リンクカラー等 */
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --card-bg: rgba(255, 255, 255, 0.92);
  --border: #e6e6e6;
  --radius-lg: 16px;
  --radius-sm: 12px;
  --gap-md: 16px;
  --gap-lg: 24px;
  position: relative;
  overflow: hidden;
  /* セクション内の上下余白は既存 .section の設定に従う想定 */
}
/* 背景（画像 + グラデーションオーバーレイ） */
#Block07::before, #Block07::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* 画像を敷いてぼかす */
#Block07::before {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(10px); /* ぼかし量（端のにじみを避けるため下で拡大） */
  transform: scale(1.05); /* ぼかしで端が欠けるのを補正 */
}
/* 読みやすさのための淡いグラデーションオーバーレイ */
#Block07::after {
  background: linear-gradient(to bottom, var(--overlay-from) 0%, var(--overlay-to) 100%);
}
/* コンテンツは背景の上に重なる */
#Block07 > .container {
  position: relative;
  z-index: 1;
}
#Block07 h3 {
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 2em;
}
/* グリッド（SP:1 / MD:2 / LG:3） */
#Block07 .block07__grid {
  display: grid;
  gap: var(--gap-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  #Block07 .block07__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  #Block07 .block07__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* カード */
#Block07 .block07__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: clip;
  display: grid;
  grid-template-rows: auto 1fr;
}
/* カードの画像（上部） */
#Block07 .block07__media {
  padding: 16px 16px 0;
}
#Block07 .block07__media picture {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #00000010;
}
#Block07 .block07__media img {
  width: 100%;
  aspect-ratio: 4 / 3; /* 製品画像に合わせて変更可。例：1/1, 3/2, 16/9 等 */
  object-fit: contain; /* 素材を切らずに収める。切って強調するなら cover */
  display: block;
  background: #fff;
}
/* カード本文（下部） */
#Block07 .block07__body {
  /*padding: 16px 16px 20px;*/
  display: grid;
  gap: 10px;
}
#Block07 .block07__label {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
#Block07 .block07__name {
  margin: 15px 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  font-weight: 800;
}
#Block07 .block07__link {
  color: var(--accent);
  text-decoration: none;
}
#Block07 .block07__link:hover, #Block07 .block07__link:focus {
  text-decoration: underline;
}
/* 箇条書き（丸アイコン風） */
#Block07 .block07__points {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: clamp(14px, 1.7vw, 16px); /* 16～18px帯 */
  line-height: 1.7;
  color: var(--text);
}
#Block07 .block07__points li {
  position: relative;
  padding-left: 16px;
}
#Block07 .block07__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
/* ダークモード（任意） */
@media (prefers-color-scheme: dark) {
  #Block07 {
    --overlay-from: rgba(22, 26, 32, 0.80);
    --overlay-to: rgba(22, 26, 32, 0.70);
    --text: #eaecef;
    --muted: #b8b8b8;
    --card-bg: rgba(22, 26, 32, 0.92);
    --border: #2b2f36;
  }
  #Block07 .block07__link:hover, #Block07 .block07__link:focus {
    color: #66a8ff;
  }
}
/**********************************************/
/* Block8
***********************************************/
/* ===== Block08: 申請フロー ===== */
#Block08 {
  --bg: var(--bg-ylw); /* セクション背景 */
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --border: #e6e6e6;
  --card-bg: #ffffff;
  --accent: #0b74de; /* 番号・ボタンのアクセント */
  --arrow: #0b74de; /* 矢印のカラー（淡いブルー） */
}
#Block08 h3 {
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 2em;
}
/* フローのグリッド（SP:縦 / PC:横） */
#Block08 .block08__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr; /* SP: 1列 */
}
@media (min-width: 992px) {
  #Block08 .block08__flow {
    grid-template-columns: repeat(6, 1fr); /* PC: 6列（6ステップ） */
    gap: 20px;
    align-items: stretch;
  }
}
/* 各ステップ */
#Block08 .block08__item {
  position: relative;
  display: block;
  align-items: stretch;
}
#Block08 .block08__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 18px 16px;
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  min-height: 100%;
}
/* 番号バッジ */
#Block08 .block08__num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(11, 116, 222, 0.25);
}
#Block08 .block08__title {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.5;
  font-weight: 800;
  color: var(--text);
}
#Block08 .block08__text {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 16px); /* 16px前後 */
  line-height: 1.8;
  color: var(--text);
}
/* ===== Block08: 矢印（PC=横矢印、SP=縦矢印） ===== */
/* PC：横矢印（ライン＋三角ヘッド） */
@media (min-width: 992px) {
  #Block08 .block08__arrow {
    position: absolute;
    top: 50%;
    right: -18px; /* カード間のギャップに合わせて微調整 */
    transform: translateY(-50%);
    width: 28px; /* ラインの長さ */
    height: 8px; /* ラインの太さ */
    background: var(--arrow); /* 色は変数に統一 */
    z-index: 100;
  }
  #Block08 .block08__arrow::after {
    content: "";
    position: absolute;
    right: -6px; /* ラインの終端からヘッドを出す位置 */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 13px solid var(--arrow); /* 三角ヘッド */
  }
  /* 右端のカードには矢印を付けない */
  #Block08 .block08__item:last-child .block08__arrow {
    display: none;
  }
}
/* SP：縦矢印（ライン＋下向き三角ヘッド） */
@media (max-width: 991.98px) {
  #Block08 .block08__arrow {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 2px;
    height: 18px;
    background: var(--arrow);
  }
  #Block08 .block08__arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px; /* ラインの終端（下）にヘッドを出す */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--arrow); /* 下向き三角ヘッド */
  }
  /* 縦方向はカード間のスペースを少し広げて矢印が見切れないようにする */
  #Block08 .block08__item:not(:last-child) {
    padding-bottom: 24px;
  }
}
/* 注意書き */
#Block08 .block08__note {
  margin: 12px auto 0;
  max-width: 960px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
/* ダークモード（任意） */
@media (prefers-color-scheme: dark) {
  #Block08 {
    --bg: #0f1115;
    --text: #eaecef;
    --muted: #b8b8b8;
    --border: #2b2f36;
    --card-bg: #161a20;
    --arrow: #28456e;
  }
  #Block08 .block08__btn:hover, #Block08 .block08__btn:focus {
    opacity: 1;
    filter: brightness(1.05);
  }
}
/* =========================================
   FAQ セクション共通設定
/* カラーテーマ（必要なら上位で上書き） */
#FAQ {
  --faq-primary: #0d6efd; /* アクセント（青系） */
  --faq-ans: #40d1bd; /* 回答（緑系） */
  --faq-border: #ababab; /* 枠線 */
  --faq-muted: #6b7280; /* 補助テキスト */
  --faq-bg: #d4eefc;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c4d4d5' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  --faq-item-bg: #ffffff; /* FAQアイテム背景 */
  --faq-item-open-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}
/* コンテナ（既存の .container を前提に微調整） */
.section.section--faq .container {
  max-width: 990px; /* 必要に応じて調整 */
  margin: 0 auto;
  padding: 0 16px;
}
/* =============== FAQ リスト================= */
#FAQ h3 {
  font-size: clamp(20px, 1.6vw, 23px);
  font-weight: 600;
  text-align: center;
}
.faq-list {
  display: grid;
  gap: 24px;
}
/* details 要素（アコーディオン） */
.faq-item {
  border: 1px solid var(--faq-border);
  border-radius: 10px;
  background: var(--faq-item-bg);
  padding: 10px 12px;
  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
/* 開閉時の強調 */
.faq-item[open] {
  border-color: color-mix(in oklab, var(--faq-primary) 20%, #ffffff);
  box-shadow: var(--faq-item-open-shadow);
}
/* summary（質問） */
.faq-question {
  list-style: none;
  cursor: pointer;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 1.8rem);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.faq-answer {
  font-size: var(--p-font-size);
}
/* FA7 Free Solid を擬似要素で指定 */
.faq-question::before, .faq-answer::before {
  font-family: "Font Awesome 7 Free";
  font-weight: 900; /* Solid */
  display: inline-block;
  margin-right: 10px;
  line-height: 1.2;
}
/* 質問：fa-circle-question (U+F059) */
.faq-question::before {
  content: "\f059";
}
/* 回答：fa-comment-dots (U+F4AD) */
.faq-answer::before {
  content: "\f4ad";
}
/* -------------------------------
   質問行：アイコンサイズ＆縦位置調整
   ------------------------------- */
.faq-question {
  display: grid; /* ← flex から gridに変更（安定） */
  grid-template-columns: 1.6em 1fr; /* 左=アイコン幅 / 右=テキスト */
  column-gap: 10px;
  align-items: start; /* 上揃え（テキストの先頭に合わせる） */
}
.faq-question::before {
  font-family: "Font Awesome 7 Free";
  font-weight: 900; /* Solid */
  content: "\f059"; /* fa-circle-question */
  font-size: 1.5em; /* アイコンの見た目サイズ */
  line-height: 1; /* 縦の伸び防止 */
  align-self: start; /* 上揃え */
  justify-self: center; /* アイコンを列内で中央寄せ（左右） */
  color: var(--faq-primary, #0d6efd);
  margin-top: 2px;
}
/* spanのテキストは右列に収める */
.faq-question > span {
  min-width: 0; /* 長文での崩れ防止（重要） */
}
/* Safariの三角マーカーオフ（維持） */
.faq-question::-webkit-details-marker {
  display: none;
}
/* -------------------------------
   回答行：アイコン列＋本文列（行頭そろえ）
   ------------------------------- */
.faq-answer {
  display: grid;
  grid-template-columns: 1.6em 1fr; /* 左=アイコン列を固定幅 */
  column-gap: 10px;
  align-items: start; /* 上揃え */
  margin-top: 8px;
  font-size: var(--p-font-size); /* 既存の本文サイズを維持 */
}
/* 擬似要素でFAアイコンを表示（回答） */
.faq-answer::before {
  font-family: "Font Awesome 7 Free";
  font-weight: 900; /* Solid */
  content: "\f4ad"; /* fa-comment-dots */
  font-size: 1.5em; /* アイコンの見た目サイズ（質問と同じ） */
  /*line-height: 1;*/
  align-self: start; /* 上揃え：テキスト先頭に合わせる */
  justify-self: center; /* 列内で左右中央寄せ */
  color: var(--faq-ans, #40d1bd);
  margin-top: 10px;
}
/* 本文ブロックは右列に収める */
.faq-answer__body {
  min-width: 0; /* ← これが重要。右列の縮み・落ち防止 */
  overflow-wrap: anywhere; /* 長い日本語や英数に耐性（任意） */
}
/* 以降は通常インデント */
.faq-answer__body p + p, .faq-answer__body ul, .faq-answer__body ol {
  text-indent: 0;
}


/* =========================================
   Form セクション共通設定
/* カラーテーマ（必要なら上位で上書き） */
#Form_Section {
  --form-primary: #0d6efd; /* アクセント（青系） */
  --form-border: #ababab; /* 枠線 */
  --form-muted: #6b7280; /* 補助テキスト */
  --form-bg: #fffce9;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c4d4d5' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  --form-item-open-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* コンテナ（既存の .container を前提に微調整） */
.section.section--form .container {
  max-width: 990px; /* 必要に応じて調整 */
  margin: 0 auto;
  padding: 0 16px;
}
#Form_Section .c-btn #Req_Section .c-btn {
  padding: clamp(8px, 1.5vw, 16px) clamp(12px, 2vw, 48px);
}
#Form_Section h3, #Req_Section h3 {
  font-size: var(--p-font-size);
  font-weight: 600;
}

/* ========== Req ========== */

#Req_Section {
  --form-primary: #0d6efd; /* アクセント（青系） */
  --form-border: #ababab; /* 枠線 */
  --form-muted: #6b7280; /* 補助テキスト */
  --form-bg: #e6f4ff;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c4d4d5' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  --form-item-open-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}


/* ========== フッター ========== */
.site-footer {
  background: var(--bg-alt);
  color: var(--text);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer__inner {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: 1fr;
  padding: clamp(24px, 4vw, 32px) 0;
}
.footer__copy {
  margin: 0;
}
.footer-nav__menu {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.footer-nav__menu a {
  text-decoration: none;
  color: inherit;
}
@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: auto 1fr;
  }
  /*************************************************************************/
  .layer, #sub-footer, #footer, *[class^="layer"], .layoutbox {
    max-width: 9999px !important;
  }
#page-top {z-index: 1000}  
  
  
  

/* ===== ポップアップ基礎 ===== */
/* ===== Brand変数（既存に合わせて） ===== */
:root {
  --brand: #2e7be6;        /* 既存のブランドブルー */
  --accent: #40d1bd;       /* 既存のCTAグリーン */
  --text: #1a1a1a;
  --popup-bg: #fff2e6;
  --popup-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.sg-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--popup-bg);
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--popup-shadow);
  z-index: 9999;
  transform: translate3d(0, 24px, 0);
  opacity: 0;
  visibility: hidden;
  transition: transform .28s ease, opacity .28s ease, visibility .28s;
}
.sg-popup.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
}
.sg-popup__inner {
  padding: 14px 14px 16px;
  max-height: 90vh;      /* 画面の90%以内に収める */
  overflow-y: auto;      /* はみ出たら縦スクロール */
}

/* メディア／タイトル */
.sg-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
}
.sg-popup__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 6px 0 6px;
}
.sg-popup__lead {
  font-size: 1.6rem;
  color: #333;
  margin: 0 0 10px;
}

/* フォーム */
.sg-popup__form .form-field {
  margin-bottom: 8px;
}
.sg-popup__form label {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.sg-popup__form .req {
  color: #d43f3a;
  font-weight: 700;
  margin-left: .25em;
}
.sg-popup__form input[type="text"],
.sg-popup__form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
}
.sg-popup__form input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46,123,230,.26);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover { transform: translateY(-1px); }

.sg-popup__note {
  font-size: 1.3rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.sg-popup__error {
  font-size: 1.3rem;
  color: #b91c1c;
  margin-top: 6px;
}

/* 閉じるボタン */
.sg-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.sg-popup__close:hover { transform: translateY(-1px); }
#sg-popup-form :is(.btn:hover, .btn:focus) {
    color: #faff1c;
    text-decoration: none;
}
/* ===== スマホ（下部ボトムシート） ===== */
@media (max-width: 640px) {
  .sg-popup {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    border-radius: 18px 18px 0 0;
    transform: translate3d(0, 16px, 0);
  }
  .sg-popup__inner { padding: 14px 16px 20px; }
}

/* 動きが苦手な方へ配慮 */
@media (prefers-reduced-motion: reduce) {
  .sg-popup { transition: none; }
  .btn--primary:hover { transform: none; }
}


  
  
  