@charset "UTF-8";

/* 変数の定義 */
:root {
  --content-width: 750px;
  --min-content-width: 375px;
  --cta-btn-h: clamp(56px, calc(100 / 750 * 100vw), 100px);
  --header-row-main-h: clamp(63.5px, calc(127 / 750 * 100vw), 127px);
  /* btn-tel.webpの実寸縦横比(68÷707)から算出。375px幅=36px, 750px幅=72px */
  --header-row-tel-h: clamp(36px, calc(68 / 707 * 100vw), 72px);
  --header-h: calc(var(--header-row-main-h) + var(--header-row-tel-h));
}
@media (min-width: 751px) {
  :root {
    --header-row-tel-h: 44px;
  }
}
html {
  scroll-behavior: smooth;
  /* コンテンツ幅でのフォントサイズ */
  font-size: clamp(16px, calc(32 / 750 * 100vw), 32px);
  background-color: white;
  overflow-x: hidden; /* 想定外の横はみ出しでもfixed要素がズレないための保険 */
}

body {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  font-family: "Noto Sans JP", sans-serif;
  box-shadow: 0 0 8px rgba(33, 33, 33, 0.5);
  overflow-x: hidden; /* 同上 */
  /* 固定ヘッダー分、コンテンツが隠れないように余白を確保 */
  padding-top: var(--header-h);
}

img {
  display: block;
  width: 100%;
  height: auto;
}
/* 追加(index.php・thanks.html共通のstyle.cssに1回追加するだけでOK) */
img[width="1"][height="1"] {
  width: 1px;
  height: 1px;
}
h1 {
  display: block;
}
h2 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: bolder;
}

a {
  transition: 0.3s;
}
a img {
  transition: 0.3s;
}

/* ============================
   使用中：ヘッダー
   ============================ */
.l-header {
  width: 100%;
  max-width: var(--content-width);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.l-header__row {
  width: 100%;
}
.l-header__row--main {
  height: var(--header-row-main-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, calc(20 / 750 * 100vw), 20px);
  padding: 0 clamp(8px, calc(16 / 750 * 100vw), 16px);
  background-color: #fff;
}
.l-header__row--tel {
  min-height: var(--header-row-tel-h);
  /* 背景グラデーションは削除。画像側(btn-tel.webp)に含まれているため */
  background: none;
}
.l-header__logo {
  flex: 0 0 auto;
  display: block;
}
.l-header__logo img {
  width: clamp(90px, calc(140 / 750 * 100vw), 140px);
  height: auto;
}
.header-tel-btn {
  display: block;
}
.header-tel-btn__img {
  width: 100%;
  height: auto;
}
.header-tel-text {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: #1C1C1C;
  font-size: clamp(18px, calc(26 / 750 * 100vw), 26px);
  text-align: center;
}
.header-tel-text__icon {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  background-color: #1C1C1C;
  -webkit-mask-image: url("../images/icon_tel.svg");
  mask-image: url("../images/icon_tel.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.header-doc-btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
  flex: 0 0 auto;
  width: clamp(200px, 53.33vw, 400px);
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 0.8em;
  height: 80%;
  padding: 0 1.4em 0 0.6em;
  border-radius: 8px;
  background: linear-gradient(135deg, #092D4E 0%, #0265BE 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 反転グラデーションのレイヤー(普段は透明・背景の下に沈めておく) */
.header-doc-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #0265BE 0%, #092D4E 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

@media (hover: hover) {
  .header-doc-btn:hover {
    transform: translateY(3px); /* ふわっと沈む */
    box-shadow: none;
  }
  .header-doc-btn:hover::after {
    opacity: 1; /* 反転グラデーションをフェードイン */
  }
}
/* PCサイズ（751px以上）の時だけ高さを70%にする */
@media (min-width: 751px) {
  .header-doc-btn {
    height: 70%;
  }
}


.header-doc-btn__text {
  font-size: clamp(17px, calc(34 / 750 * 100vw), 34px);
  text-align: left;
  letter-spacing: 0.05em;
}
.header-doc-btn__badge {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.5em 0.15em;
  border-radius: 999px;
  background-color: #fff;
  color: #FF383C;
  font-size: clamp(19px, calc(32 / 750 * 100vw), 32px);
}
.header-doc-btn__arrow {
  position: absolute;
  right: 0.4em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
}
.header-doc-btn__arrow-icon {
  display: block;
  width: clamp(20px, calc(30 / 750 * 100vw), 30px);
  height: auto;
}

/* ============================
   使用中：共通コンポーネント（ページ内リンク誘導ボタン）
   fv後・trouble後・type-a後/type-b後/support後など、次のセクションへ
   誘導するボタンで共通利用する。サイズ・色・ホバーアニメーションは
   .btn-cta側で完結させ、各ボタンの違いは.cta-group内に何を追加で
   置くか（案内テキスト画像 or btn-deco画像）だけで表現する。

   .cta-group
    ├─ (任意) 案内テキスト画像 .guide-text-img--◯◯ ← テキスト付きボタンの場合
    ├─ (任意) btn-deco画像                        ← 装飾のみボタンの場合
    └─ .btn-cta（ボタン本体、共通）
   ============================ */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, calc(20 / 750 * 100vw), 20px);
  margin-top: clamp(20px, calc(40 / 750 * 100vw), 40px);
  margin-bottom: clamp(20px, calc(40 / 750 * 100vw), 40px);
  padding: 0 5%;
}
.btn-cta {
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  /* LP全体のボタン幅ルール：PC=605px, SP=302.5px（605の半分）
     type-a後/type-b後/support後の「装飾のみ」ボタンもこの数値で統一する。
     横幅をコンテンツで決めない(auto幅をやめる)ため、margin: 0 auto; で中央寄せ */
  width: clamp(302.5px, calc(605 / 750 * 100vw), 605px);
  margin: 0 auto;
  padding: clamp(14px, calc(24 / 750 * 100vw), 24px) clamp(28px, calc(48 / 750 * 100vw), 48px);
  border-radius: 999px;
  background: linear-gradient(135deg, #092D4E 0%, #0265BE 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* 反転グラデーションのレイヤー(普段は透明・背景の下に沈めておく) */
.btn-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #0265BE 0%, #092D4E 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
/* キラッと光るアニメーション(::afterのホバー演出とは役割が重ならないよう::beforeを使用) */
.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 75%
  );
  transform: skewX(-15deg);
  animation: btn-shine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes btn-shine {
  0% {
    left: -100%;
  }
  15% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
@media (hover: hover) {
  .btn-cta:hover {
    transform: translateY(3px); /* ふわっと沈む */
    box-shadow: none;
  }
  .btn-cta:hover::after {
    opacity: 1; /* 反転グラデーションをフェードイン */
  }
}
.guide-text-img {
  width: auto;      /* 全体ルールの width:100% を上書き */
  max-width: 100%;  /* 画面より大きい端末では縮小(はみ出し防止) */
  margin: 0 auto;   /* 中央寄せ */
}
/* fv-ctn-text01.webp（実寸 412×44px）専用 */
.guide-text-img--fv {
  width: clamp(206px, calc(412 / 750 * 100vw), 412px);
}
/* trouble-ctn-text.webp（実寸 690×85px）専用 */
.guide-text-img--trouble {
  width: clamp(345px, calc(690 / 750 * 100vw), 690px);
}
.btn-deco {
  width: clamp(32px, calc(120 / 750 * 100vw), 64px);
  height: auto;
}
.btn-cta__label {
  position: relative;
  z-index: 2; /* 光の演出より前面に来るように */
  font-size: clamp(16px, calc(28 / 750 * 100vw), 28px);
}
.btn-cta__arrow-icon {
  display: block;
  flex: 0 0 auto;
}
.btn-cta__arrow-icon img {
  display: block;
  width: clamp(16px, calc(24 / 750 * 100vw), 24px);
  height: auto;
}

/* --- 同意チェックボックス（プライバシーポリシー同意・オプトアウト用）
   他LPでも使い回す共通コンポーネント。agree_privacy(必須)・agree_optin(任意)の
   2項目セットで使用し、クラス名(.consent-group / .consent-item)はそのまま流用する --- */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(14px, calc(14 / 750 * 100vw), 16px);
  color: #1c2432;
  cursor: pointer;
}
.consent-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.2em;
  accent-color: #0265BE;
}
.consent-item a {
  color: #0265BE;
  text-decoration: underline;
}
.privacy-link {
  color: #0265BE;
  text-decoration: underline;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .privacy-link:hover {
    color: #b70707;
  }
}
.privacy-link__icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-left: 0.3em;
  background-color: currentColor;
  -webkit-mask-image: url("../images/icon_link.svg");
  mask-image: url("../images/icon_link.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  vertical-align: middle;
}

/* ============================
   使用中：FVセクション
   ============================ */
.fv {
  background: #F3F8FF;
  padding-bottom: clamp(20px, calc(40 / 750 * 100vw), 40px);
}
.fv .cta-group {
  margin-bottom: 0; /* fv内のcta-groupは下余白を消す */
}

/* ============================
   使用中：troubleセクション
   ============================ */
.type-cards {
  display: flex;
  gap: clamp(8px, calc(16 / 750 * 100vw), 16px);
  justify-content: center;
}
.type-card {
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); /* 通常時は影なし(0で透明) */
}
@media (hover: hover) {
  .type-card:hover {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28));
  }
}

/* ============================
   使用中：type-aセクション
   ============================ */
.type-a-inner {
  background-color: #E8A23D;
}
.course-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
  /* gap: clamp(16px, calc(24 / 750 * 100vw), 24px); */
}
.course-list__heading{
  font-size: clamp(17px, calc(28 / 750 * 100vw), 28px);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
  padding: 15px clamp(16px, calc(24 / 750 * 100vw), 24px);
  display: flex; /* 見出しと線を横並びにする */
	align-items: center; /* 線の縦位置中央 */
}
.course-list__heading:before,
.course-list__heading:after {
    content: "";
    height: 4px; /* 線の高さ */
    flex-grow: 1; /* 横幅いっぱい */
    background-color: #fff;
}
.course-list__heading:before {
    margin-right: 20px; /* 文字との余白 */
}
.course-list__heading:after {
    margin-left: 20px; /* 文字との余白 */
}
.course-list__item {
  padding: 15px clamp(16px, calc(24 / 750 * 100vw), 24px);
}


/* 講座内容01〜06 テキスト化版（保留中・工数に余裕があれば再開。
   index.php側の $type_a_courses 配列・foreachもコメントアウトで対応済み）
.course-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, calc(24 / 750 * 100vw), 24px);
}
.course-list__item {
  border: 2px solid #FFEF02;
  border-radius: 12px;
  padding: clamp(16px, calc(24 / 750 * 100vw), 24px);
}
.course-list__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.6em;
}
.course-list__num {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background-color: #FFEF02;
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, calc(28 / 750 * 100vw), 28px);
}
.course-list__title {
  font-weight: 700;
  color: #3E2C17;
  font-size: clamp(17px, calc(28 / 750 * 100vw), 28px);
}
.course-list__desc {
  color: #333;
  font-size: clamp(15px, calc(24 / 750 * 100vw), 24px);
  line-height: 1.7;
}
.course-list__desc .hl {
  color: #DC5052;
  font-weight: 700;
}
*/

/* ============================
   使用中：type-bセクション
   .course-list / .course-list__heading / .course-list__item は
   type-aセクションで定義済みのものをそのまま流用（CSS追加不要）
   ============================ */
.type-b-inner {
  background-color: #916F44;
}

/* ============================
   使用中：supportセクション
   support02.webpは下部に余白を持たせて書き出し済みのため、
   画像を包む要素をposition: relativeにし、ボタン側をposition: absoluteで
   下部に重ねる（MOPSのpoints_06と同じ手法）
   ============================ */
.support__content {
  position: relative;
}
.cta-group--overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, calc(32 / 750 * 100vw), 32px); /* 画像下部の余白内に収まる位置。要実機調整 */
  margin-top: 0;
  margin-bottom: 0;
}

/* ============================
   使用中：resultsセクション
   ============================ */
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: clamp(230px, calc(420/ 750 * 100vw), 420px);
  margin: 0 auto;
  padding: clamp(14px, calc(24 / 750 * 100vw), 24px) clamp(28px, calc(48 / 750 * 100vw), 48px);
  border-radius: 999px;
  background-color: #EAEEF7;
  border: 2px solid #9CCCF9;
  color: #3875D0;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-outline__label {
  font-size: clamp(16px, calc(28 / 750 * 100vw), 28px);
}
.btn-outline__arrow-icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(9px, calc(17 / 750 * 100vw), 17px);
  height: clamp(16px, calc(30 / 750 * 100vw), 30px);
  background-color: #3875D0; /* 通常時：矢印の色 */
  -webkit-mask-image: url("../images/arroe_right.svg");
  mask-image: url("../images/arroe_right.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.3s ease;
}
@media (hover: hover) {
  .btn-outline:hover {
    background-color: #3875D0;
    border-color: #3875D0;
    color: #EAEEF7;
  }
  .btn-outline:hover .btn-outline__arrow-icon {
    background-color: #EAEEF7;
  }
}

/* ============================
   使用中：voiceセクション(カルーセル)
   ============================ */
.voice {
  background-image: url("../images/voice-bg.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  padding-block: clamp(1px, calc(60 / 750 * 100vw), 60px);
}

.carousel {
  position: relative;
  width: 100%;
  /* padding: 0 5%; */
  margin-top: clamp(1px, calc(24 / 750 * 100vw), 24px);
  box-sizing: border-box;
}
.carousel__viewport {
  position: relative; /* 矢印配置の基準にする */
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  border-radius: clamp(4px, calc(12 / 750 * 100vw), 12px);
}
.carousel__track {
  display: flex;
  width: 100%;
}
.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
}
.carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  width: clamp(28px, calc(40 / 750 * 100vw), 40px);
  height: clamp(28px, calc(40 / 750 * 100vw), 40px);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(46, 49, 146, 0.75);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  filter: unset;
  display: flex;
  align-items: self-end;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: 0.3s;
}
.carousel__arrow:hover {
  background-color: rgba(46, 49, 146, 0.9);
  opacity: 1;
}
.carousel__arrow--prev { left: 1%; }
.carousel__arrow--next { right: 1%; }

.carousel__arrow span {
  line-height: 1.15;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, calc(10 / 750 * 100vw), 10px);
  margin-top: clamp(10px, calc(16 / 750 * 100vw), 16px);
}
.carousel__dot {
  box-sizing: border-box;
  width: clamp(6px, calc(9 / 750 * 100vw), 9px);
  height: clamp(6px, calc(9 / 750 * 100vw), 9px);
  margin: 0;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.2);
  filter: unset;
  cursor: pointer;
  transition: 0.3s;
}
.carousel__dot.is-active {
  background-color: #333;
  transform: scale(1.25);
}

/* ピーク表示（中央カード＋左右の一部見せ）。slide-width / gap は
   carousel.js に渡すデータ属性値と必ず揃えること */
.carousel--peek .carousel__track {
  gap: 4%;
}
.carousel--peek .carousel__slide {
  flex: 0 0 78%;
}
.voice-card__link {
  display: block;
  transition: transform 0.2s ease;
}
/* ホバー操作が可能な環境（PC等）だけに限定し、
   タッチ操作でタップ後も浮き上がった状態が残留する問題を避ける */
@media (hover: hover) {
  .voice-card__link:hover {
    transform: translateY(-7px) scale(1.01);
    filter: drop-shadow(0 8px 12px rgba(7, 64, 169, 0.387));
    img {
      opacity: 1;
      filter: inherit;
    }
  }
}


/* ============================
   使用中：formセクション(カード型デザイン)
   ============================ */
.form-card {
  max-width: 860px;
  margin: clamp(20px, calc(32 / 750 * 100vw), 32px) auto;
  width: 90%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(9, 45, 78, 0.08);
  border: 1px solid #dfe3e8;
  /* overflow: hidden; */
}
#contact-form {
  padding: clamp(24px, calc(36 / 750 * 100vw), 36px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, calc(24 / 750 * 100vw), 24px);
}
.field--full {
  grid-column: 1 / -1;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.field-label {
  font-size: clamp(20px, calc(20 / 750 * 100vw), 18px);
  font-weight: 700;
  color: #1c2432;
}
.tag {
  font-size: clamp(10px, calc(11 / 750 * 100vw), 11px);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--required {
  color: #d8404a;
  background: #fdecee;
  border: 1px solid #f3c3c8;
}
.tag--optional {
  color: #8a94a3;
  background: #f1f2f4;
  border: 1px solid #e2e5e9;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: clamp(16px, calc(18 / 750 * 100vw), 18px);
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fbfcfd;
  color: #1c2432;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #a7aeb8;
}
#contact-form input:focus-visible,
#contact-form textarea:focus-visible {
  outline: none;
  border-color: #9CCCF9;
  background: #EAF3FB;
  box-shadow: 0 0 0 3px rgba(2, 101, 190, 0.12);
}
#contact-form textarea {
  resize: vertical;
  min-height: 96px;
}

/* --- チップ型ラジオ(見た目のみ。機能は単一選択のまま) --- */
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.check-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(15px, calc(18 / 750 * 100vw), 18px);
  color: #1c2432;
  padding: 10px 16px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  background: #fbfcfd;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.check-option input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.check-option:hover {
  border-color: #9CCCF9;
  background: #EAF3FB;
}
.check-option:has(input:checked) {
  background: #092D4E;
  border-color: #092D4E;
  color: #fff;
  font-weight: 700;
}
.check-option:has(input:focus-visible) {
  outline: 2px solid #0265BE;
  outline-offset: 2px;
}

.submit-wrap {
  grid-column: 1 / -1;
  margin-top: clamp(16px, calc(24 / 750 * 100vw), 24px);
}
.form-submit {
  display: block;
  width: 60%;
  margin: 0 auto;
  padding: clamp(14px, calc(17 / 750 * 100vw), 17px);
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #092D4E 0%, #0265BE 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(18px, calc(20 / 750 * 100vw), 20px);
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .form-submit:hover {
    transform: translateY(3px);
    box-shadow: none;
  }
}
.privacy-note {
  text-align: center;
  font-size: clamp(12px, calc(11.5 / 750 * 100vw), 14px);
  color: #5b6472;
  margin-top: 14px;
  line-height: 1.7;
}

/* --- 独自バリデーション表示(JS: form-validation.js) --- */
.field--error input[type="text"],
.field--error input[type="email"],
.field--error input[type="tel"],
.field--error textarea {
  border-color: #d8404a !important;
  background: #fdecee !important;
}
.field-error-message {
  display: block !important;
  color: #d8404a;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

/* --- サーバーエラー通知バナー(JS: form-handler.js) --- */
.server-error-banner {
  background: #fdecee;
  border-bottom: 2px solid #d8404a;
  color: #d8404a;
  text-align: center;
  padding: 10px 16px;
  font-size: clamp(13px, calc(15 / 750 * 100vw), 15px);
  font-weight: 700;
}

/* ============================
   保留中：render_cta()（今回のLPでは未使用、将来用に保持）
   ============================ */
.floating-cta-footer {
  width: 100%;
  max-width: var(--content-width); /* 750px */
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;

  /* --- アニメーションの設定 --- */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}
.floating-cta-footer.is-hidden {
  opacity: 0;
  visibility: hidden;
  /* 下に少し沈みながら消える動き */
  transform: translate(-50%, 20px);
  pointer-events: none;
}
.cta-btns {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 92%;
  max-width: 700px;
  height: var(--cta-btn-h);
  margin: 0 auto;
}
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 14px;
  transition: 0.3s;
}
.cta-btn:active {
  transform: translateY(2px);
}
/* ホバー操作が可能な環境（PC等）だけに限定し、
   タッチ操作でタップ後も色が残留する問題を避ける */
@media (hover: hover) {
  .cta-btn:hover {
    opacity: 0.85;
  }
}

/* 電話ボタン（正方形・緑） */
.cta-btn--tel {
  flex: 0 0 auto;
  width: var(--cta-btn-h);
  aspect-ratio: 1 / 1;
  background-color: #2e8b3e;
  box-shadow: 0 4px 0 #1f6b2c, 0 6px 10px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}
@media (hover: hover) {
  .cta-btn--tel:hover {
    background-color: #277635; /* ベース色 #2e8b3e より一段暗いグリーン */
  }
}
.cta-btn__tel-icon {
  width: 42%;
  height: auto;
}

/* フォームボタン（赤系グラデーション・矢印付き） */
.cta-btn--form {
  flex: 1 1 auto;
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #c82a1d 50%, #931f1d 50%);
  box-shadow: 0 4px 0 #7a1414, 0 6px 12px rgba(0, 0, 0, 0.3);
  padding: 0 2.6em 0 1em;
  transition: filter 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}
@media (hover: hover) {
  .cta-btn--form:hover {
    /* グラデーション全体を一段暗く */
    filter: brightness(0.9);
  }
}
.cta-btn__form-text {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.125rem, 1vw + 1rem, 1.75rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.05em;
}
.cta-btn__form-arrow {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: clamp(12px, calc(18 / 750 * 100vw), 18px);
  line-height: 1;
}
/* PC：電話ボタンを隠し、フォームボタンのみ表示 */
@media (min-width: 751px) {
  .cta-btn--tel {
    display: none;
  }
}
/* スマホ：電話＋フォームの2ボタンを横並び表示 */
@media (max-width: 750px) {
  .cta-btn--tel {
    display: flex;
  }
}
/* アニメーションを好まないユーザー配慮 */
@media (prefers-reduced-motion: reduce) {
  .floating-cta-footer {
    transition: none !important;
  }
}

/* ============================
   共通ユーティリティ
   ============================ */
/* 視覚的に隠すが、スクリーンリーダーには読み上げさせる */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* スマホのみ表示（751px以上で非表示） */
.sp-only {
  display: block;
}
@media (min-width: 751px) {
  .sp-only {
    display: none !important;
  }
}

/* PCのみ表示（750px以下で非表示） */
.pc-only {
  display: block;
}
@media (max-width: 750px) {
  .pc-only {
    display: none !important;
  }
}

/* ============================
   ページ内リンクのスクロール位置調整
   ============================ */
#trouble,
#type-a,
#type-b,
#form {
  scroll-margin-top: var(--header-h);
}

/* ============================
   使用中：thanks.html
   MOPS由来の.p-thanks系ベーススタイルが土台作成時に欠落していたため、
   今回のLP配色(#092D4E〜#0265BE)で再構築。
   ============================ */
.p-thanks-header {
  padding: clamp(16px, calc(24 / 750 * 100vw), 24px) clamp(16px, calc(24 / 750 * 100vw), 24px) 0;
}
.p-thanks-header__logo {
  width: clamp(90px, calc(140 / 750 * 100vw), 140px);
  height: auto;
}
/* thanks.htmlは固定ヘッダーを使わないため、index.php用のヘッダー分オフセットは解除 */
body:has(.p-thanks) {
  padding-top: 0;
}

.p-thanks {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 32px;
  padding-inline: 5%;
  font-size: clamp(16px, calc(20 / 750 * 100vw), 20px);
}
.p-thanks h1 {
  font-size: clamp(20px, calc(40 / 750 * 100vw), 40px);
  font-weight: 700;
  border-bottom: 3px solid #0265BE;
  padding-bottom: 0.5em;
  margin-bottom: 1.5em;
  text-align: center;
}
.p-thanks p {
  font-size: clamp(16px, calc(20 / 750 * 100vw), 20px);
  margin-bottom: 1.2em;
  text-align: justify;
}
.p-thanks .cta {
  margin-top: 2.5em;
  text-align: center;
}
.p-thanks .cta a {
  display: inline-block;
  background: linear-gradient(135deg, #092D4E 0%, #0265BE 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6em 2.5em;
  border-radius: 9999px;
  font-size: clamp(20px, calc(24 / 750 * 100vw), 24px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .p-thanks .cta a:hover {
    transform: translateY(3px);
    box-shadow: none;
    opacity: 1; /* 既存のopacity:0.6を打ち消し */
  }
}
.p-thanks-text-box-tel_a {
  display: inline-block;
  color: #0265BE;
  font-weight: 700;
  position: relative;
}
.p-thanks-text-box-tel_a::before {
  content: "";
  display: inline-block;
  width: 100%;
  height: 2px;
  background-color: #0265BE;
  position: absolute;
  left: 50%;
  bottom: 0.05em;
  transform: translateX(-50%);
}
