:root {
  --font-sans: "Noto Sans JP", "Noto Sans", system-ui, -apple-system,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo,
    sans-serif;
}

/* 全体に適用 */
html,
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  overflow-x: hidden !important;
}

/* 既存の見出し太さを活かす（参考：あなたのCSSに合わせて） */
h1,
h2,
h3,
.bs-title,
.thanks-title {
  font-weight: 800;
}
.label {
  font-weight: 700;
}

body {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

/* 共通コンテナ（ヘッダーと同じ幅で中央寄せ） */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 0; /* 必要なら左右に 12px など */
}

/* メインビジュアル */
.kv-img {
  display: block;
  width: 100%; /* ブラウザ幅に合わせて縮む */
  height: auto;
}

/* 右側 追従バナー */
.side-banners {
  position: fixed;
  right: 0px;
  top: 90px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 12px → 10px */
}

.side-banner {
  display: block;
  width: clamp(44px, 3.6vw, 60px); /* 56–76px → 44–60px に縮小 */
}

.side-banner img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.side-banner:hover img {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* --- SPだけ：最下部に横並びで固定表示 --- */
@media (max-width: 767px) {
  .side-banners {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0; /* 画面下に固定 */
    top: auto;
    display: flex; /* 横並び */
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(8px);
    z-index: 10000;
    background-color: #2d2d2d;
  }

  .side-banner {
    flex: 1 1 0; /* 2ボタンで均等幅 */
  }
  .side-banner img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* コンテンツが隠れないよう下に余白を確保（バナー高を目安に調整） */
  body {
    padding-bottom: calc(31px + env(safe-area-inset-bottom));
  }
}

/* 横並びCTA */
.kv-ctas {
  margin-top: -30px;
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  justify-content: center; /* 中央寄せ */
}

.cta {
  display: inline-flex;
  flex: 1 1 0;
  max-width: 540px; /* 1100px幅で並ぶサイズ感 */
}

.cta img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.12s ease, opacity 0.15s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.cta:hover img {
  transform: translateY(-1px);
  opacity: 0.95;
}

@media (max-width: 1680px) {
  /* 横並びCTA（小さめ） */
  .kv-ctas {
    margin-top: -30px;
    display: flex;
    gap: clamp(8px, 1.6vw, 16px); /* 隙間も少しだけ縮める */
    justify-content: center;
  }

  .cta {
    display: inline-flex;
    flex: 0 1 clamp(280px, 34vw, 420px); /* ←ここでサイズ調整 */
    /* さらに小さくしたい時は 420px を 380px などに */
  }

  .cta img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.12s ease, opacity 0.15s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  }
  .cta:hover img {
    transform: translateY(-1px);
    opacity: 0.95;
  }
}

/* 狭い画面では縦並び（必要なければ削除OK） */
@media (max-width: 767px) {
  .kv-ctas {
    flex-direction: column;
    padding: 20px 10px 0;
  }
  .cta {
    flex: none;
    max-width: none;
    width: 100%;
  }
}

.trouble,
.can {
  max-width: 1100px;
  margin: 60px auto;
}
.trouble-img,
.can-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 4枚を横並び（可変） */
.trouble-list,
.can-list {
  margin-top: clamp(16px, 2.5vw, 28px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.8vw, 18px);
  list-style-type: none;
  padding-inline-start: 0;
}

.trouble-item {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  box-sizing: border-box;
}

.can-item img {
  display: block;
  width: 100%;
  height: auto;
}

.can-illu-box {
  position: relative;
  display: flex;
  align-items: center; /* 画像の見え方：中央にしたい場合 */
  justify-content: center;
  height: clamp(180px, 20vw, 230px); /* ← 高さはデザインに合わせて微調整 */
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

.can-illu {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.can-caption {
  position: absolute;
  left: 50%;
  top: 59%; /* 文字の縦位置（上=45% / 中=50% / 下=60%など） */
  transform: translate(-50%, -50%);
  width: 82%;
  text-align: center;
  pointer-events: none; /* 画像や下のボタン操作を邪魔しない */
}

/* 上段：#C53E55（指定色） */
.can-cap-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #c53e55;
  font-size: clamp(15px, 1.9vw, 22px);
  line-height: 1.4;
}

/* 下段：#000000（指定色） */
.can-cap-desc {
  margin: 0;
  color: #000;
  font-weight: 700;
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .can-illu-box {
    height: 180px;
  }
}

@media (max-width: 430px) {
  .can-illu-box {
    height: 210px;
  }
}

@media (max-width: 414px) {
  .can-illu-box {
    height: 200px;
  }
}

@media (max-width: 390px) {
  .can-illu-box {
    height: 190px;
  }
}

@media (max-width: 375px) {
  .can-illu-box {
    height: 180px;
  }
}

/* 「こんなお悩み…」のリード文 */
.trouble-lead {
  max-width: 900px;
  margin: 90px auto 0;
  padding: 0 8px;
  font-size: 22px;
  line-height: 1.9;
  text-align: center;
  font-weight: bold;
}

.trouble-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}
.trouble-card img {
  display: block;
  width: 100%;
  height: auto;
}

.trouble-caption {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 92%;
  text-align: center;
  color: #000000;
  font-weight: 700;
  line-height: 1.5;
  font-size: clamp(12px, 1.6vw, 16px);
  padding: clamp(6px, 1.2vw, 10px) clamp(6px, 1.6vw, 12px);
  box-sizing: border-box;
}

/* モバイルで少し大きめに＆余白調整（必要なら） */
@media (max-width: 767px) {
  .trouble-caption {
    font-size: clamp(13px, 3.8vw, 17px);
    width: 94%;
  }
}

.br-sp,
.br-future-sp {
  display: none;
}
.br-pc {
  display: inline;
}

@media (max-width: 767px) {
  .br-sp,
  .br-future-sp {
    display: inline;
  }
  .br-pc {
    display: none;
  }
}

/* タブレット以下で2列、スマホで1列 */
@media (max-width: 767px) {
  .trouble-list,
  .can-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) and (min-width: 650px) {
  .can-list {
    gap: 120px 60px;
    margin-top: 100px;
  }
}

@media (max-width: 649px) and (min-width: 550px) {
  .can-list {
    gap: 120px 60px;
    margin-top: 70px;
  }
}

@media (max-width: 549px) and (min-width: 431px) {
  .can-list {
    gap: 50px 30px;
    margin-top: 40px;
  }
}

/* --- 初期状態（JS有効時のみ隠す） --- */
.js .scroll-fade,
.js .load-fade {
  opacity: 0;
}

.js .scroll-up,
.js .load-up {
  opacity: 0;
  transform: translateY(100px); /* ふわっと上がる量。大きければ小さく調整OK */
}

/* --- 画面に入ったら付くクラス（IOが付与） --- */
.scroll-fade.in,
.load-fade.in,
.scroll-up.in,
.load-up.in {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.8s ease, opacity 0.8s ease;
  will-change: transform, opacity; /* パフォーマンス微改善（任意） */
}

/* 動きを減らす設定のユーザに配慮（任意） */
@media (prefers-reduced-motion: reduce) {
  .js .scroll-fade,
  .js .load-fade,
  .js .scroll-up,
  .js .load-up {
    opacity: 1;
    transform: none;
  }
  .scroll-fade.in,
  .load-fade.in,
  .scroll-up.in,
  .load-up.in {
    transition: none;
  }
}

/* カードを縦並び構成に（画像 → ボタン） */
.can-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 1.2vw, 12px);
}

/* 詳しく見るボタン画像（可変サイズ） */
.detail-btn {
  display: inline-flex;
  width: clamp(140px, 16vw, 200px); /* ボタン幅はお好みで調整 */
  margin-top: -30px;
  z-index: 1;
}

.detail-label {
  position: absolute;
  left: 50%;
  top: 84%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 21px;
  pointer-events: none;
}

@media (max-width: 960px) {
  .detail-label {
    font-size: 20px;
  }
}

@media (max-width: 430px) {
  .detail-label {
    top: 86%;
  }
}

@media (max-width: 390px) {
  .detail-label {
    font-size: 19px;
    top: 85%;
  }
}

.detail-btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.detail-btn:hover img {
  transform: translateY(-1px);
  opacity: 0.95;
}

@media (max-width: 767px) {
  .detail-btn {
    margin-top: -30px;
  }
}

.merit,
.future {
  margin: 60px auto;
}

.merit-visual,
.future-visual {
  position: relative;
  margin: 0 auto;
}
.merit-picture .merit-img,
.future-picture .future-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 画像中央に重ねるタイトル */
.merit-title {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-weight: 700; /* bold */
  font-size: 40px;
  line-height: 1.2;
}

@media (min-width: 1900px) {
  .merit-title {
    top: 23%;
    font-size: 50px;
  }
}

@media (min-width: 1600px) and (max-width: 1899px) {
  .merit-title {
    top: 21%;
    font-size: 46px;
  }
}

@media (max-width: 1280px) {
  .merit-title {
    font-size: 36px;
  }
}

@media (max-width: 1024px) {
  .merit-title {
    font-size: 28px;
  }
}
@media (max-width: 960px) {
  .merit-title {
    font-size: 27px;
  }
}
@media (max-width: 768px) {
  .merit-title {
    font-size: 21px;
  }
}

@media (max-width: 767px) {
  .merit-title {
    font-size: 40px;
  }
}

@media (max-width: 414px) {
  .merit-title {
    font-size: 39px;
  }
}

@media (max-width: 390px) {
  .merit-title {
    font-size: 36px;
  }
}
/* 2×2 グリッド（SPは1列） */
.merit-grid {
  max-width: 1100px;
  margin: -70px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2.2vw, 24px);
}
@media (min-width: 1600px) and (max-width: 1899px) {
  .merit-grid {
    margin: -85px auto 0;
  }
}

/* 1900px以上 */
@media (min-width: 1900px) {
  .merit-grid {
    margin: -100px auto 0;
  }
}

@media (max-width: 1280px) {
  .merit-grid {
    margin: -65px auto 0;
  }
}

@media (max-width: 1024px) {
  .merit-grid {
    margin: -55px auto 0;
  }
}
@media (max-width: 960px) {
  .merit-grid {
    margin: -50px auto 0;
  }
}
@media (max-width: 768px) {
  .merit-grid {
    margin: -40px auto 0;
  }
}

@media (max-width: 767px) {
  .merit-grid {
    grid-template-columns: 1fr;
    padding: 80px 10px 0;
  }
}

.merit-cardimg {
  position: relative;
  margin: 0;
}
.merit-cardimg > img {
  display: block;
  width: 100%;
  height: auto;
}

.merit-cardimg img {
  display: block;
  width: 100%;
  height: auto;
}

/* picture 自体もブロック化して余白ズレを防ぐ */
.merit-cardimg picture {
  display: block;
}

/* テキストを画像の上に重ねる */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center; /* 縦中央 */
  justify-content: center; /* 横中央 */
  pointer-events: none; /* 画像のクリックを邪魔しない */
}
.card-inner {
  width: min(65%, 520px); /* テキスト幅を絞って読みやすく */
}
.card-title {
  margin: 0 0 10px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(18px, 1.9vw, 24px);
  color: #111;
}

@media (max-width: 767px) {
  .card-title {
    text-align: left;
  }
}

.card-text {
  margin: 0;
  text-align: left;
  color: #111;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.5;
  font-weight: 700;
}

.future-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
}

@media (max-width: 1499px) {
  .future-title {
    font-size: 36px;
  }
}

@media (max-width: 1349px) {
  .future-title {
    font-size: 32px;
  }
}

@media (max-width: 1199px) {
  .future-title {
    font-size: 28px;
  }
}
@media (max-width: 1049px) {
  .future-title {
    /* left: 25%; */
    font-size: 24px;
  }
}
@media (max-width: 960px) {
  .future-title {
    font-size: 23px;
  }
}
@media (max-width: 862px) {
  .future-title {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .future-title {
    font-size: 30px;
  }
}

@media (max-width: 703px) {
  .future-title {
    font-size: 26px;
  }
}

@media (max-width: 609px) {
  .future-title {
    font-size: 22px;
  }
}

@media (max-width: 516px) {
  .future-title {
    font-size: 18px;
  }
}

@media (max-width: 422px) {
  .future-title {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .future-title {
    font-size: 15px;
  }
}

/* ====== デフォルト：PC(≥870px) は１枚背景 ====== */
.future-body {
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 0; /* 余白は親に持たせる */
}
/* １枚背景を親に敷く */
.future-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/future_bg.png") center/cover no-repeat;
}
/* 子ラッパーは背景なし・余白なし（PC時） */
.future-top,
.future-faq {
  position: relative;
  padding: 0;
  isolation: isolate;
}
.future-top::before,
.future-faq::before {
  content: none;
}

/* ====== SP(≤869px) は上下で背景を分ける ====== */
@media (max-width: 1100px) {
  /* 親の１枚背景は消す＆余白は子へ移動 */
  .future-body {
    padding: 0;
  }
  .future-body::before {
    content: none;
  }

  .future-top,
  .future-faq {
    padding: clamp(40px, 6vw, 80px) 0;
    display: flow-root;
  }

  /* 上半分の背景（これまでの future_bg.png） */
  .future-top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../images/future_bg.png") center/cover no-repeat;
  }

  /* 下半分の背景（よくある質問用） */
  .future-faq::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../images/faq_bg.png") center/cover no-repeat;
  }
}

/* 見出しは上マージンを0に（空白防止・任意） */
.future-voice-title,
.faq-title {
  max-width: 1100px;
  margin: 0 auto clamp(12px, 2vw, 20px);
  text-align: center;
  font-weight: 800;
  color: #000;
  font-size: 50px;
}

.future-head {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.future-head--left {
  left: 45%;
  top: -3%;
  transform: translateX(-50%);
  width: auto;
}

@media (min-width: 1900px) {
  .future-head--left {
    left: 46%;
  }
}
.future-head--right {
  right: 46%;
  top: 0%;
  transform: translateX(50%);
  width: auto;
}

@media (max-width: 1100px) {
  .future-head--left {
    top: 5%;
  }
  .future-head--right {
    top: 4%;
  }
}

@media (max-width: 960px) {
  .future-head--left {
    left: 42%;
  }
}

@media (max-width: 768px) {
  .future-head--left {
    top: 4%;
  }
  .future-head--right {
    top: 3%;
  }
}

@media (max-width: 767px) {
  .future-head--left {
    top: 3.5%;
    width: 335px;
    left: 50%;
  }
  .future-voice-title {
    font-size: 34px;
    max-width: 310px;
    text-align: right;
  }
  .future-head--right {
    width: 335px;
    top: 4.5%;
    right: 50%;
  }
  .faq-title {
    font-size: 36px;
    max-width: 275px;
    text-align: left;
  }
}

@media (max-width: 414px) {
  .future-voice-title {
    font-size: 33px;
  }
  .faq-title {
    font-size: 35px;
  }
}

@media (max-width: 390px) {
  .future-voice-title {
    font-size: 31px;
  }
  .faq-title {
    font-size: 33px;
  }
}

@media (max-width: 375px) {
  .future-head--left {
    width: 320px;
  }
  .future-voice-title {
    font-size: 30px;
  }
  .future-head--right {
    width: 320px;
  }
  .faq-title {
    font-size: 32px;
  }
}
/* 雲（2列） */
.cloud-grid {
  max-width: 1100px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: clamp(16px, 3vw, 32px) auto clamp(28px, 5vw, 56px);
  padding: 0;
}

@media (max-width: 767px) {
  .cloud-grid {
    grid-template-columns: 1fr;
  }
}

/* ←ここを作り直し */
.cloud {
  position: relative;
  background: url("../images/cloud_white.png") center / 92% auto no-repeat;
  aspect-ratio: 526 / 248;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2.2vw, 24px) clamp(18px, 3vw, 36px);
  text-align: center;
}

@media (max-width: 869px) {
  .cloud {
    margin: 10px 0;
    aspect-ratio: 0;
    background: url("../images/cloud_white.png") center / 100% auto no-repeat;
  }
}

.cloud-text h4 {
  margin: 0 0 6px;
  color: #79af30;
  font-weight: 800;
  font-size: 24px;
}
.cloud-text p {
  margin: 0;
  line-height: 1.8;
  text-align: left;
  font-size: 19px;
  font-weight: bold;
}

@media (max-width: 869px) {
  .cloud-text h4 {
    font-size: 20px;
  }
  .cloud-text p {
    font-size: 15px;
    line-height: 1.7;
  }
}
/* FAQ（2列） */
.faq-title {
  margin-top: clamp(32px, 6vw, 64px);
}

@media (max-width: 1100px) {
  .faq-title {
    margin-top: 0;
  }
}

.qa-grid {
  max-width: 1100px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 26px);
  padding: 60px 0;
  margin: 0 auto;
}

.qa {
  position: relative;
  min-height: 160px;
  overflow: hidden;
}
.qa-head {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
}
.qa-badge {
  height: auto;
  flex: 0 0 auto;
}
.qa-box {
  background: url(../images/qa_box.png) center / 100% auto no-repeat;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 50px 20px 100px;
  background-position: right center;
  background-size: calc(80% + 30px) auto;
  margin-right: -45px;
}
.qa-title {
  margin: 0;
  font-weight: 800;
  font-size: 22px;
}
.qa-box p {
  margin: 0;
  line-height: 1.85;
  font-weight: 700;
  font-size: 17px;
}

@media (max-width: 1100px) {
  .qa-grid {
    grid-template-columns: 1fr;
  }
  .qa {
    padding: 0 60px;
  }
  .qa-head {
    margin-left: 0;
  }
  .qa-title {
    margin: 0 0 10px;
  }
  .qa-box {
    background: url(../images/qa_box.png) center / 84% auto no-repeat;
  }
}

@media (max-width: 767px) {
  .qa-grid {
    padding: 20px 0;
  }
  .qa {
    padding: 0 40px;
  }
  .qa-box {
    background-position: right center;
    background-size: calc(80% + 30px) auto;
    padding: 0 0 0 60px;
    margin-right: -20px;
  }
  .qa-badge {
    width: 15%;
  }
  .qa-title {
    font-size: 15px;
    margin: 0;
  }
  .qa-box p {
    font-size: 12px;
  }
}

.stage {
  margin: clamp(24px, 4vw, 56px) auto;
}
.stage .container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.stage-img {
  display: block;
  margin: 0 0px -80px 235px;
  width: 700px;
  height: auto;
}
/* 画像にテキストを重ねるための器 */
.stage-visual {
  position: relative;
  display: inline-block;
}

/* 重ねるテキスト */
.stage-copy {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translate(-50%,-115%);
  pointer-events: none;
}

.stage-title {
  margin: 0 0 10px;
  color: #70b413;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.35;
}

.stage-sub {
  margin: 0;
  color: #000;
  font-size: 22px;
  line-height: 1.8;
  font-weight: 700;
}

/* @media (min-width: 1600px) and (max-width: 1899px) {
  .stage-copy {
    left: 34%;
    transform: translateY(-115%);
  }
}

@media (min-width: 1900px) {
  .stage-copy {
    left: 36%;
  }
}

@media (max-width: 1280px) {
  .stage-copy {
    left: 29%;
  }
} */

@media (max-width: 1024px) {
  /* .stage-copy {
    left: 29%;
  } */
  .stage-title {
    font-size: 34px;
  }
  .stage-sub {
    font-size: 18px;
  }
  .stage-img {
    margin: 0px 0px -65px 235px;
    width: 60%;
  }
}
@media (max-width: 960px) {
  /* .stage-copy {
    left: 28%;
  } */
  .stage-img {
    margin: 0px 0px -65px 215px;
  }
}
@media (max-width: 768px) {
  /* .stage-copy {
    left: 29%;
  } */
  .stage-title {
    font-size: 30px;
  }
  .stage-sub {
    font-size: 14px;
  }
  .stage-img {
    margin: 0px 0px -45px 180px;
    width: 60%;
  }
}

@media (max-width: 767px) {
  .stage-copy {
    left: 6%;
    right: 6%;
    transform: translateY(-125%);
    max-width: none;
  }
  .stage-img {
    margin: 0 auto;
    width: 100%;
  }
  .stage-title {
    font-size: 40px;
    line-height: 1.2;
  }
  .stage-sub {
    font-size: 20px;
    line-height: 1.2;
  }
}

@media (max-width: 414px) {
  .stage-title {
    font-size: 38px;
  }
  .stage-sub {
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .stage-title {
    font-size: 36px;
  }
  .stage-sub {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .stage-title {
    font-size: 35px;
  }
}

.product .container {
  margin: 60px auto;
  position: relative;
}

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

.product-btn {
  position: absolute;
  left: 66%;
  transform: translate(-50%, -50%);
  top: 50%;
  display: inline-block;
  width: clamp(280px, 34vw, 420px); /* ボタン幅（お好みで調整） */
  z-index: 2; /* 画像より手前に */
}

@media (min-width: 1920px) {
  .product-btn {
    left: 61%;
  }
}

@media (min-width: 1600px) {
  .product-btn {
    left: 63%;
  }
}

@media (max-width: 1300px) {
  .product-btn {
    left: 67%;
  }
}

@media (max-width: 1030px) {
  .product-btn {
    left: 68%;
  }
}

@media (max-width: 800px) {
  .product-btn {
    left: 69%;
  }
}

.product-btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.12s ease, opacity 0.15s ease;
  border-radius: 6px;
}
.product-btn:hover img {
  transform: translateY(-1px);
  opacity: 0.95;
}

@media (max-width: 767px) {
  .product-btn {
    left: 50%;
    top: 65%;
    width: 80%;
  }
}

.form-title {
  margin: clamp(16px, 3vw, 32px) auto 16px;
  text-align: center;
}
.form-title img {
  display: block;
  width: 88%;
  height: auto;
  margin: 0 auto;
}

.form-title {
  position: relative; /* ←重ねるために必要 */
}

/* 中央に重ねるテキスト */
.form-title .form-title-text {
  position: absolute;
  inset: 0; /* 親の全体を覆う */
  display: flex; /* 中央寄せ */
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 40px); /* 最大40px */
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 行レイアウト：左ラベル/右入力。縦は上揃えに */
.field {
  display: grid;
  grid-template-columns: 200px 1fr; /* お好みで 180→200 などに */
  align-items: center;
  gap: 12px 16px;
  margin: 30px 0;
}

/* ラベルを2カラム化：左=44px(バッジ), 右=テキスト */
.field .label {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  column-gap: 10px;
  font-weight: 700;
  line-height: 1.6;
  color: #5e4037;
  font-size: 18px;
}

/* 疑似要素のベース（ここに画像だけ差し替える） */
.field .label::before {
  content: "";
  width: 44px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 必須バッジ（左） */
.field .label.required::before {
  background-image: url("../images/required.png");
}

/* 任意バッジ（左） */
.field .label.optional::before {
  background-image: url("../images/nullable.png");
}

.radio-group {
  grid-column: 2 / -1; /* 右カラムに配置 */
  display: flex;
  align-items: center;
  gap: 20px;
}
.radio-group .radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 18px;
}

@media (max-width: 411px) {
  .radio-group .radio {
    font-size: 16px;
  }
}
/* 入力の見た目（参考：プレースホルダーだけ薄く） */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  box-sizing: border-box;
  color: #333; /* 入力文字は読みやすい色に */
}
.field input::placeholder,
.field textarea::placeholder {
  color: #bcbcbc;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input[type="radio"] {
  accent-color: #8cc53e;
}

/* 枠の見た目 */
.policy {
  background: #f5f5f5; /* 指定の背景色 */
  color: #5e4037; /* 指定の文字色 */
  border-radius: 12px;
  padding: 20px;
  max-width: 800px;
  margin: 10px auto;
}

/* タイトルは中央寄せ＆少し強調 */
.policy-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 18px);
  margin-bottom: 12px;
}

/* 本文は約4行分だけ見せて、残りはスクロール */
.policy-content {
  --lh: 1.8; /* 行間（お好みで） */
  line-height: var(--lh);
  font-size: 14px;
  max-height: calc(1em * 4 * var(--lh)); /* ≒4行分の高さ */
  overflow: auto;
  padding-right: 8px; /* スクロールバー分の余白 */
  -webkit-overflow-scrolling: touch;
  /* white-space: pre-wrap; 改行をそのまま反映（元テキストが改行ベースなら） */
}

/* スクロールバー（任意・見やすく） */
.policy-content::-webkit-scrollbar {
  width: 8px;
}
.policy-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.policy-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.form-actions-sp {
  display: none;
}
.form-actions {
  margin-top: 60px;
  display: flex;
  flex-direction: column; /* ←縦並び */
  align-items: center; /* 中央寄せ */
  text-align: center;
}

/* 同意チェック（中央寄せ＆行揃え） */
.form-actions .agree {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #5e4037;
}
.form-actions .agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #8cc53e; /* 任意：ブランドカラー */
}

/* ロゴ + 送信ボタンを横並びで中央に */
.submit-wrap {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-right: 120px;
}

/* 左のロゴ（サイズ調整はここ） */
.submit-logo {
  width: clamp(72px, 12vw, 120px);
  height: auto;
  /* 少しボタンに寄せたい場合は下を解放
  margin-right: -6px;
  */
}

/* 送信ボタンは画像で */
.submit-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  line-height: 0;
}
.submit-btn img {
  display: block;
  width: clamp(220px, 26vw, 360px); /* ボタン画像の幅 */
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.submit-btn:hover img {
  transform: translateY(-1px);
  opacity: 0.95;
}
.submit-btn[disabled] {
  pointer-events: none;
}
.submit-btn[disabled] img {
  opacity: 0.55;
  filter: grayscale(10%);
}

@media (max-width: 1100px) {
  .inquiry form {
    padding: 0 10px;
  }
}

/* スマホで縦積み */
@media (max-width: 767px) {
  /* 行は1カラム化＆縦の位置は自然に */
  .field {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  /* ラジオは縦並びに変更（←これが不足していました） */
  .radio-group {
    grid-column: auto; /* 2/-1 を解除 */
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 12%;
  }
  .radio-group .radio {
    display: inline-flex;
    align-items: center;
    white-space: normal; /* 折返しOK */
    gap: 8px;
  }

  .form-actions {
    display: none;
  } /* PC版を隠す */
  .form-actions-sp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* 同意＋ロゴの塊（初期は縦） */
  .form-actions-sp .consent-pack {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .form-actions-sp .agree {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #5e4037;
  }
  .form-actions-sp .agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8cc53e;
  }

  .form-actions-sp .submit-logo {
    width: clamp(64px, 18vw, 96px);
    height: auto;
  }
  .form-actions-sp .submit-btn {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
  }
  .form-actions-sp .submit-btn img {
    width: 90%;
    height: auto;
    margin: -10px auto 0;
  }

  /* :has()対応ブラウザなら、同意チェックで横並びに切替 */
  .form-actions-sp:has(.agree input:checked) .consent-pack {
    flex-direction: row;
    gap: 12px;
  }

  /* （参考）PC版の submit-wrap に付けている margin-right はSPでは不要 */
  .submit-wrap {
    margin-right: 0;
    gap: 8px;
  }

  .form-actions-sp.is-agreed .consent-pack {
    flex-direction: row;
    gap: 12px;
  }
}
