/* ==============================
  Base
============================== */
/* 横スクロール保険（必要なら） */
html,
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

/* text */
p {
  line-height: 1.5;
}

/* link */
a {
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* form base */
input,
textarea,
button {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

/* ==============================
  Layout
============================== */

/* container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    max-width: 700px;
    padding: 0 24px;
  }
}

.sec {
  text-align: center;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 768px) {
  .sec {
    width: 100%;
  }
}
/* 初期状態（PC想定） */
.sp-only {
  display: none;
}

.pc-only {
  display: inline;
}

/* SP */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }
}

/* ------------------------------
  Common title
------------------------------ */

.sec-title {
  width: 100%;
  max-width: 1000px;
  text-align: left;
  position: relative;
  padding-bottom: clamp(27px, 4.6667vw, 35px);
  font-size: clamp(27px, 6vw, 45px);
  font-weight: 900;
}

.sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: #333333;
}

.sec-title-lead {
  display: block;
}

.footer-copy {
  text-align: center;
}

/* ==============================
  Responsive (Layout only)
============================== */

@media (max-width: 768px) {
  .sec-title {
    max-width: none;
    padding-bottom: clamp(26px, 6.9333vw, 52px);
    font-size: 6.1333vw;
  }

  .sec-title::after {
    width: 100px;
    height: 4px;
  }
}

/* ==============================
  Header
============================== */

/* ==============================
  Header (PC/SP 共通：固定の土台)
============================== */
.header {
  position: fixed;
  top: 20px; /* ← “上の隙間”は margin じゃなく top で作る */
  left: 50%;
  transform: translateX(-50%);

  width: min(1436px, calc(100% - 40px)); /* 画面が狭い時は左右20px確保 */
  max-height: 80px;

  padding: 20px 80px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);

  display: flex;
  align-items: center;
  gap: 80px;

  z-index: 1000;
}

/* logo */
.header-logo img {
  max-width: 170px;
  height: auto;
  display: block;
  height: auto;
}

/* nav */
.header-nav-list {
  display: flex;
  align-items: center;
  gap: 27px;
}

.header-nav-link {
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

/* tel */
.header-tel {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.header-tel-note {
  font-size: clamp(5px, 0.9vw, 14.4px);
  white-space: nowrap;
  line-height: 1.2;
}

.header-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 33px;
  line-height: 1;
  white-space: nowrap;
}

.header-tel-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;

  border-radius: 50%;
  background: #f05b62;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-tel-icon i {
  font-size: 14px;
  color: #fff;
}

/* hamburger (PCでは非表示) */
.header-menu-btn {
  display: none;
}

/* ==============================
  Header : SP（768pxデザインを丸ごと縮小）
============================== */

@media (max-width: 768px) {
  /* 並び順 */
  .header-logo {
    order: 1;
  }
  .header-tel {
    order: 2;
  }
  .header-menu-btn {
    order: 3;
  }
  .header-nav {
    order: 4;
  }

  /* ヘッダー外枠（768デザインをvwで縮小） */
  .header {
    padding: 1.6927vw 2.6041vw 1.6927vw 4.9479vw !important;
    gap: 3.9062vw !important;
    top: 3.9062vw !important;
    width: calc(100% - 10.1334vw) !important;
    max-height: 14.1333vw !important;
  }
  /* flex縮みの事故防止（重要） */
  .header-logo,
  .header-tel {
    min-width: 0;
  }

  /* navはSP非表示 */
  .header-nav {
    display: none;
  }

  /* ロゴ：213×64（768基準） */
  .header-logo img {
    width: 27.7344vw; /* 213/768*100 */
    max-width: 213px;
    height: auto;
    display: block;
  }

  /* 電話：280×80（768基準） */
  .header-tel {
    margin-left: auto;
    align-items: stretch;
    gap: 0;
    flex: 1 1 auto;
  }

  .header-tel-note {
    display: none;
  }

  .header-tel-link {
    position: relative; /* ← ::before の基準に必須 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.3021vw; /* 10/768 */

    /* サイズ */
    height: 10.4167vw; /* 80/768*100 */
    max-height: 80px; /* 上限はpxの方が安定 */
    padding: 0 4.6875vw; /* 36/768*100（18pxだと細すぎるので少し太め推奨） */
    border-radius: 999px;

    /* 文字 */
    font-size: 4.2969vw; /* 33/768*100（18pxなら 2.3438vw） */
    font-weight: 700;
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;

    /* 背景グラデ */
    background: #eb4c57;

    /* 白縁＋立体感 */
    border: 0.5333vw solid rgba(255, 255, 255, 0.2); /* 3/768*100 */
  }

  /* 上部ハイライト */
  .header-tel-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 999px 999px 0 0;

    background: rgba(255, 255, 255, 0.2); /* ← 20% */

    pointer-events: none;
  }

  /* 押した感 */
  .header-tel-link:active {
    transform: translateY(0.2604vw); /* 2px相当 */
    box-shadow:
      0 0.2604vw 0 rgba(0, 0, 0, 0.1),
      inset 0 0.3906vw 0.7813vw rgba(255, 255, 255, 0.3);
  }
  /* 電話アイコン：白丸なし、白アイコンだけ */
  .header-tel-icon {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    background: transparent;
  }
  .header-tel-icon i {
    color: #fff;
    font-size: 4.6667vw; /* 18/768 */
  }

  /* ハンバーガー：80×80（768基準） */
  .header-menu-btn {
    width: 10.4167vw; /* 80/768 */
    height: 10.4167vw;
    max-width: 80px;
    max-height: 80px;

    border-radius: 50%;
    background: #f2f2f2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
  }

  .header-menu-btn-text {
    display: none;
  }

  /* 三本線 */
  .header-menu-btn-line {
    position: absolute;
    left: 50%;
    width: 5.3333vw; /* 22/768 */
    max-width: 40px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transform: translateX(-50%);
  }
  .header-menu-btn-line:nth-child(1) {
    top: 35%;
  }
  .header-menu-btn-line:nth-child(2) {
    top: 50%;
  }
  .header-menu-btn-line:nth-child(3) {
    top: 65%;
  }

  /* SP Menu (slide down) */
  .sp-menu {
    position: fixed;
    inset: 0;
    z-index: 9999; /* body::before や header より前に出す */
    pointer-events: none; /* 閉じてる時は触れない */
  }

  /* 背景の暗幕（必要なら） */
  .sp-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 220ms ease;
  }

  /* パネル本体（画像の見た目に合わせて調整OK） */
  .sp-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 3.7333vw 3.7333vw;
    box-shadow: 0 2.4vw 5.3333vw rgba(0, 0, 0, 0.25);

    transform: translateY(-105%);
    transition: transform 260ms ease;
    padding: 2.9333vw 2.9333vw 3.4667vw;

    display: flex;
    flex-direction: column;
    align-items: center;
    height: 109.3333vw;
  }

  /* 開いた状態 */
  .sp-menu.is-open {
    pointer-events: auto;
  }
  .sp-menu.is-open::before {
    opacity: 1;
  }
  .sp-menu.is-open .sp-menu__panel {
    transform: translateY(0);
  }

  /* ナビ */
  .sp-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 6.4vw 0 3.7333vw;
    gap: 3.7333vw;
  }
  .sp-menu__link {
    display: block;
    width: 80%;
    font-size: 3.4667vw;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    padding-bottom: 3.7333vw;

    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
  }

  .sp-menu__link:last-child {
    border: none;
  }

  /* 閉じるボタン */
  /* 閉じるボタン（丸） */
  .sp-menu__close {
    width: 10.6667vw; /* 50/375*100 */
    height: 10.6667vw; /* 50/375*100 */
    max-width: 80px;
    max-height: 80px;

    border-radius: 50%;
    border: 1px solid #333; /* デザインに合わせて */
    background: rgba(255, 255, 255, 0);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 2.6667vw;
  }

  /* ×の線（既存 span を使う想定） */
  .sp-menu__close-x {
    position: relative;
    width: 4.8vw; /* 24/375*100 */
    height: 4.8vw;
    max-width: 36px;
    max-height: 36px;
  }

  .sp-menu__close-x::before,
  .sp-menu__close-x::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 0.5333vw; /* 2/375*100 */
    max-height: 2px;
    background: #333;
    border-radius: 999px;
    transform-origin: center;
  }

  .sp-menu__close-x::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .sp-menu__close-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* メニュー開いてる間スクロール止めたいなら（JSでbodyに付ける） */
  body.is-menu-open {
    overflow: hidden;
    touch-action: none;
  }
  /* 開いてる間スクロール禁止 */
  .body-lock {
    overflow: hidden;
  }
}
/* ==============================
  Header : PC（リキッド化）
============================== */
@media (min-width: 769px) {
  .sp-menu {
    display: none;
  }

  .header {
    position: fixed; /* ←切り替えをやめる（これが一番事故らない） */
    top: 20px; /* ←上のスペースは margin じゃなく top */
    transform: translateX(-50%);

    width: min(1436px, calc(100% - 40px));
    max-height: 80px;

    margin: 0; /* ← marginは捨てる */
    padding: clamp(12px, 1.4vw, 20px) clamp(16px, 3.2vw, 80px);
    gap: clamp(16px, 3vw, 80px);

    z-index: 1000;
  }

  .header-logo img {
    width: clamp(120px, 12vw, 170px);
    max-width: 170px;
  }

  .header-nav-list {
    gap: clamp(12px, 2vw, 27px);
  }

  .header-nav-link {
    font-size: clamp(8px, 1.25vw, 18px);
  }

  .header-tel-link {
    font-size: clamp(18px, 2.1vw, 33px); /* 上限は好みで 28〜33 */
  }
  .header-nav {
    display: block;
  }

  .header-tel-link {
    font-size: clamp(11px, 2.1333vw, 28px);
  }
}

/* ==============================
  KV
============================== */
/* CTAはとりあえず横並び/縦並びを切り替えるだけ */
.kv-cta {
  display: flex;
  gap: 16px;
  width: 100%;
}

/* お客様の声（範囲固定で縦スクロール） */
.kv-voice {
  background: #fff;
  border-radius: 20px;
  border: 4px solid #eee;
  overflow: auto;
  max-height: 200px;
  max-width: 500px;
}

.kv-voice-wrap {
  border-bottom: 1px solid #ccc;
}

.kv-voice-wrap:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.kv-voice-meta {
  font-size: 16.2px;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 31px;
  white-space: nowrap;
}
.kv-voice-item {
  font-size: 18px;
  font-weight: 900;
}

.kv-voice-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.kv-voice-stars {
  display: flex;
  gap: 6px; /* 星同士の間隔 */
}

.kv-voice-stars img {
  width: 22px; /* サイズ調整 */
  height: auto;
  display: block;
}

.kv-voice-score {
  font-size: 27px;
  font-weight: 500;
}

.kv-voice-text {
  font-size: 18px;
  line-height: 1.75;
  text-align: left;
}

/* ==============================
  KV : SP（768基準で完成 → 縮小）
============================== */

@media (max-width: 768px) {
  .kv .sp-kv-hero {
    position: relative; /* ここを基準にする */
  }

  /* 重ねたい本体 */
  .sp-kv-hero .kv-voice {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40vw; /* ← “20pxだけ上げたい” はこれ */
    z-index: 2;
    width: 91.1458vw; /* 今使ってる幅そのままでOK */
    max-width: 91.1458vw;

    max-height: 49.3333vw;
    padding: 5.6vw 5.0667vw; /*42 38*/
  }
  .kv-voice-wrap {
    padding-bottom: clamp(24px, 2.4vw, 36px);
    margin-bottom: clamp(24px, 2.4vw, 36px);
  }
  .kv-voice-meta {
    font-size: clamp(10px, 2.6667vw, 20px); /*18px*/
    gap: 4.1333vw; /*31px*/
  }
  .kv-voice-item {
    font-size: clamp(13px, 3.4667vw, 26px);
  }
  .kv-voice-rating {
    padding: clamp(5px, 1.3333vw, 10px) 0;
  }
  .kv-voice-stars img {
    width: clamp(12px, 2.9333vw, 22px);
  }

  .kv-voice-score {
    font-size: 3.6vw; /*27px*/
  }

  .kv-voice-text {
    font-size: clamp(12px, 3.0667vw, 23px);
  }

  .kv-img02 {
    display: block;
    margin-top: 40vw;
  }
  .kv-cta {
    width: 100%;
    padding: 0 24px;
  }
}

/* ==============================
  KV : PC
============================== */
@media (min-width: 769px) {
  .pc-kv-hero {
    position: relative; /* absoluteの基準 */
    text-align: center;
  }
  .pc-kv-hero .kv-img01 {
    max-width: 1537px;
    width: 100%;
    height: auto;
    display: inline-block;
  }

  .pc-kv-hero > img {
    display: block;
    width: 100%;
    height: auto;
  }

  .pc-kv-hero .kv-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(40px, 5vw, 60px); /* ← “下からの距離” */
    z-index: 2;

    width: min(1100px, calc(100% - 48px)); /* 画面狭くても安全 */

    display: grid;
    grid-template-columns: 1fr 1fr; /* 2カラム */
    align-items: end;
  }
  .pc-kv-hero .kv-bottom > * {
    min-width: 0;
  }

  /* 左：voice（幅を固定しすぎない） */
  .pc-kv-hero .kv-bottom > .kv-voice {
    grid-column: 1;
    justify-self: start;
    max-width: clamp(420px, 45vw, 500px);
    padding: clamp(16px, 2.2vw, 30px);
    border-radius: clamp(12px, 1.4vw, 15px);
  }
  .kv-voice-wrap {
    padding-bottom: clamp(12px, 1.2vw, 18px);
    margin-bottom: clamp(12px, 1.2vw, 18px);
  }
  /* voice内の文字も縮小（必要なら） */
  .kv-voice-meta {
    font-size: clamp(12px, 1.2vw, 16px);
    gap: clamp(12px, 2.2vw, 31px);
  }
  .kv-voice-item {
    font-size: clamp(14px, 1.35vw, 18px);
  }
  .kv-voice-score {
    font-size: clamp(18px, 2vw, 27px);
  }
  .kv-voice-stars img {
    width: clamp(16px, 1.6vw, 22px);
  }

  /* 右：cta（セル内で中央寄せ） */
  .pc-kv-hero .kv-bottom > .kv-cta {
    grid-column: 2;
    display: flex;
    justify-self: center;
  }

  /* CTA内の最大幅はwrapで */
  .pc-kv-hero .kv-cta-wrap {
    width: 73.3333vw;
  }

  /* ボタン2つを横並び（これが“中身”） */
  .pc-kv-hero .kv-cta-buttons {
    display: flex;
    gap: 0;
    width: 100%;
  }

  .pc-kv-hero .kv-cta-buttons .cta-btn {
    display: block; /* or inline-blockでもOK。blockが安定 */
    width: 100%; /* flex item でも念のため明示 */
    padding: 0; /* 余計な余白があると縮む */
    line-height: 0; /* imgの下の謎の隙間も消える */
  }
  .pc-kv-hero .kv-cta-buttons .cta-btn img {
    display: block; /* inlineだとズレや隙間が出る */
    width: clamp(180px, 30.6667vw, 270px);
    height: auto; /* 高さも揃えたいなら */
    object-fit: contain; /* 画像を潰さず収める */
  }
}

/* ==============================
  sec01 Anxiety
============================== */

/* ==============================
  sec02
============================== */

/* ==============================
  CTA（sec03）
============================== */
.cta {
  position: relative;
  text-align: center;
}
.btn-group {
  display: flex;
  gap: clamp(16px, 2vw, 32px);

  width: min(1100px, calc(100% - 48px)); /* 画面が狭い時の左右余白 */
  margin: 0;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(40px, 5vw, 80px); /* 画面幅で少し可変に */
}
.btn-group .cta-btn {
  flex: 1 1 0; /* 均等幅 */
  display: block;
}

.btn-group .cta-btn img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .btn-group {
    left: 0;
    right: 0;
    transform: none; /* ← これ超重要（PCの50%移動を解除） */
    width: 100%;
    margin: 0 auto;

    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2vw, 15px);

    bottom: 10.6667vw;
    text-align: center;
  }

  .btn-group .cta-btn {
    max-width: 81.8667vw;
  }

  .btn-group .cta-btn img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ==============================
  sec03 : Items / Results
============================== */

/* ==============================
  sec04 : Voice
============================== */

/* ==============================
  sec05 : Flow
============================== */

/* ==============================
  sec06 : FAQ
============================== */

.sec-faq {
  background: #fff;
  color: #333;
  padding: 80px 0;
}

.sec-faq .sec-title {
  text-align: left;
  color: #333;
}

/* list */
.faq {
  margin: clamp(40px, 10.6667vw, 80px) 0 0;
}

/* 1件 */
.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 26px 0;
}

.faq-item:first-child {
  border-top: 1px solid #e5e5e5;
}

/* Q行 */
.faq-q {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 22px;
  align-items: start;
  margin: 0;
}

/* Q/Aラベル共通 */
.faq-label {
  width: clamp(35px, 9.3333vw, 70px);
  height: clamp(35px, 9.3333vw, 70px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(27px, 6vw, 45px);
  line-height: 1;
  user-select: none;
}

/* Qは黄色 */
.faq-label-q {
  background: #ffcd50;
  color: #333;
}

/* Aは枠 */
.faq-label-a {
  background: transparent;
  border: 2px solid #ccc;
  color: #333;
}

/* 質問ボタン */
.faq-btn {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  font-size: clamp(9px, 2.4vw, 18px);
  line-height: 2;
}

/* 右の▼ */
.faq-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 6px;
  position: relative;
}

.faq-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #333;
  clip-path: polygon(20% 35%, 50% 65%, 80% 35%, 80% 45%, 50% 75%, 20% 45%);
  transform: rotate(0deg);
  transition: transform 0.25s ease;
}

/* open時回転 */
.faq-item.is-open .faq-icon::before,
.faq-btn[aria-expanded="true"] .faq-icon::before {
  transform: rotate(180deg);
}

/* A行 */
.faq-a {
  margin: 18px 0 0;
  display: none;
  grid-template-columns: clamp(35px, 10.4948vh, 70px) 1fr;
  column-gap: clamp(15px, 4vh, 30px);
  align-items: start;
  align-items: flex-start;
  gap: clamp(15px, 4vw, 30px);
}
.faq-item.is-open .faq-a {
  display: flex;
}
.faq-label-a {
  flex-shrink: 0;
}
/* 回答本文 */
.faq-answer {
  font-size: clamp(9px, 2.4vw, 18px);
  line-height: 1.75;
  text-align: left;
}

@media (max-width: 768px) {
  .faq-q,
  .faq-a {
    grid-template-columns: 13.3333vw 1fr; /*100*/
    column-gap: 4.8vw; /*36*/
  }

  .faq-label {
    width: clamp(50px, 13.3333vw, 100px);
    height: clamp(50px, 13.3333vw, 100px);
    font-size: clamp(32px, 8.6667vw, 65px); /*65*/
  }
  .faq-label-a {
    gap: clamp(18px, 4.8vw, 36px);
  }
  .faq-answer,
  .faq-btn {
    font-size: clamp(13px, 3.4667vw, 26px); /*26*/
    line-height: 1.75;
  }
}

/* ==============================
  sec07 : Form
============================== */

.sec-form {
  background: #fff;
}

.sec-form .sec-title {
  max-width: 1000px;
  margin: 0 auto 48px;
  text-align: left;
}

/* form本体 */
.form {
  max-width: 800px;
  margin: 0 auto;
}

/* 行の区切り（薄い罫線） */
.form-row {
  padding: 27px 0;
  border-top: 1px solid #ddd;
}
.form-row:first-child {
  border-top: 0;
}
.form-row:last-child {
  border-top: 0;
  padding-bottom: clamp(75px, 20vw, 150px);
}
/* 2カラム（PC） */
.form-row.is-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* field */
.form-field {
  min-width: 0;
}

/* label */
.form-label {
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* 必須/任意バッジ */
.form-required,
.form-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16.2px;
  font-weight: 500;
  line-height: 1;
}
.form-required {
  background: #ffcd50;
  line-height: 1;
}
.form-optional {
  background: #e7e7e7;
}

/* input/textarea 共通 */
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form textarea {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 20px;
  padding: 30px 20px;
  font-size: 18px;
  color: #333;
  background: #fff;
  outline: none;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"] {
  height: 53px;
}

.form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

/* placeholder */
.form input::placeholder,
.form textarea::placeholder {
  color: #c8c8c8;
}

/* 同意エリア */
.form-consent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ラベルを少し右へ（必須バッジのぶん） */
.form-consent-label {
  margin-left: 27px; /* 必須バッジ分 */
  display: flex;
  align-items: center;
  gap: 5px;
}
.form-consent-weight {
  font-weight: 700;
}

/* checkbox隠して見た目を作る */
.form-consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-consent-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid #e1e1e1;
  background: #fff;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}

/* チェック（ON） */
.form-consent-label input[type="checkbox"]:checked + .form-consent-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 21px;
  height: 14px;
  border-left: 4px solid #ffcd50;
  border-bottom: 4px solid #ffcd50;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* リンク */
.form-link {
  text-decoration: underline;
  font-weight: 900;
}
.form-consent-label {
  font-size: clamp(9px, 2.4vw, 18px);
}
/* 送信ボタン */
.form-submit {
  max-width: clamp(275px, 73.3333vw, 550px);
}

/* ==============================
  sec07 : SP
============================== */
@media (max-width: 768px) {
  .sec-form .sec-title {
    max-width: 700px;
    margin: 0 auto 28px;
  }

  .form {
    max-width: 700px;
  }
  .form-row {
    padding: clamp(18px, 4.8vw, 36px) 0;
  }
  .form-row.is-2col {
    grid-template-columns: 1fr;
    gap: clamp(18px, 4.8vw, 36px);
  }
  .form-row.is-2col .form-field:first-child {
    border-bottom: 1px solid #ddd;
    padding-bottom: 36px;
  }
  .form-row:last-child {
    padding-bottom: clamp(100px, 26.6667vw, 200px);
  }
  .form-label {
    margin: 0 0 clamp(9px, 2.4vw, 18px);
    gap: clamp(12px, 3.2vw, 24px);
    font-size: clamp(13px, 3.4667vw, 26px);
    line-height: 1.8;
  }
  .form input[type="text"],
  .form input[type="tel"],
  .form input[type="email"] {
    height: clamp(45px, 12vw, 90px);
  }
  .form input[type="text"],
  .form input[type="tel"],
  .form input[type="email"],
  .form textarea {
    padding: clamp(18px, 4.8vw, 36px);
    font-size: clamp(13px, 3.4667vw, 26px);
  }
  .form-consent-label {
    margin-left: clamp(12px, 3.2vw, 24px);
    align-items: flex-start;
  }
  .form-required,
  .form-optional {
    height: clamp(20px, 5.3333vw, 40px);
    padding: 0 clamp(12px, 3.2vw, 24px);
    font-size: clamp(12px, 2.3438vw, 23.4px);
    font-weight: 500;
    white-space: nowrap;
  }
  .form-required-consent {
    left: 0;
  }
  .form-consent-label {
    font-size: clamp(13px, 3.4667vw, 26px);
    white-space: nowrap;
  }
  .form-consent-label
    input[type="checkbox"]:checked
    + .form-consent-box::after {
    width: clamp(15px, 4vw, 30px);
    height: clamp(10px, 2.6667vw, 20px);
  }
  .form-consent-box {
    width: clamp(25px, 6.6667vw, 50px);
    height: clamp(25px, 6.6667vw, 50px);
  }
  .form-submit {
    max-width: 100%;
  }
}

/* ==============================
  footer
============================== */

.footer {
  background: #eee; /* デザインの薄グレーに合わせて調整OK */
  padding: 18px 0;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
}
@media (max-width: 768px) {
  .footer {
    padding: clamp(13px, 3.4667vw, 26px) 0;
  }

  .footer-copy {
    font-size: clamp(10px, 2.6667vw, 20px);
  }
}

/* ==============================
  Thanks
============================== */

.thanks {
  background: #fff;
  color: #333;
  padding: clamp(150px, 29.3333vw, 220px) 16px clamp(50px, 13.3333vw, 100px);
}

.thanks-container {
  max-width: clamp(400px, 106.6667vw, 800px);
  margin: 0 auto;
  text-align: center;
}

.thanks-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.thanks-title-line {
  display: block;
  width: 80px;
  height: 3px;
  background: #333;
  margin: 36px auto 0;
}

.thanks-lead {
  margin-top: clamp(18px, 4.8vw, 36px);
  font-size: clamp(10px, 2.4vw, 18px);
  line-height: 1.75;
}

.thanks-card {
  margin: clamp(18px, 4.8vw, 36px) auto 0;
  max-width: clamp(400px, 106.6667vw, 800px);
  background: #f7f7f7;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 27px);
}

.thanks-card-text {
  font-size: clamp(10px, 2.4vw, 18px);
  line-height: 1.75;
}

.thanks-strong {
  font-weight: 700;
}

.thanks-note {
  margin-top: clamp(18px, 2.6vw, 26px);
  font-size: clamp(10px, 2.4vw, 18px);
  line-height: 2;
  opacity: 0.9;
}

.thanks-contact {
  margin: clamp(18px, 4.8vw, 36px) auto 0;
  max-width: clamp(400px, 106.6667vw, 800px);

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #eee;
  border-radius: 999px;
  padding: clamp(11px, 2.9333vw, 22px);
  gap: 21px;
}

.thanks-contact-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 16vw, 120px);
  height: clamp(13px, 3.3333vw, 25px);
  border-radius: 999px;
  background: #ffcd50;
  font-weight: 500;
  font-size: clamp(7px, 1.8667vw, 14px);
}

.thanks-contact-value {
  font-size: clamp(10px, 2.4vw, 18px);
  word-break: break-all;
}

.thanks-note--bottom {
  font-size: clamp(10px, 2.4vw, 18px);
}

.thanks-actions {
  margin-top: clamp(60px, 16vw, 120px);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.thanks-back {
  position: relative; /* ← 追加 */

  display: flex;
  align-items: center;
  justify-content: center;

  width: min(350px, 100%);
  height: 54px;

  border-radius: 999px;
  border: 2px solid #333;
  text-decoration: none;
  font-weight: 700;
  background: transparent;
}

/* アイコンを左に固定 */
.thanks-back-icon {
  position: absolute;
  left: 30px; /* ← 好きな位置に調整 */
  font-weight: 900;
}

.thanks-back:hover {
  border-color: rgba(51, 51, 51, 0.45);
}

/* SP微調整 */
@media (max-width: 768px) {
  .thanks {
    padding: clamp(180px, 33.3333vw, 250px) 16px clamp(40px, 10.6667vw, 80px);
  }

  .thanks-container {
    max-width: clamp(365px, 81.8667vw, 614px);
  }

  .thanks-title {
    font-size: clamp(23px, 6vw, 45px);
  }

  .thanks-title-line {
    display: block;
    width: 100px;
    height: 4px;
    margin: clamp(26px, 6.9333vw, 52px) auto 0;
  }

  .thanks-lead {
    margin-top: clamp(50px, 13.3333vw, 100px);
    font-size: clamp(13px, 3.4667vw, 26px);
  }

  .thanks-card {
    margin: clamp(26px, 6.9333vw, 52px) auto 0;
    max-width: clamp(365px, 81.8667vw, 614px);
    border-radius: 20px;
    padding: clamp(23px, 6vw, 45px);
  }

  .thanks-card-text {
    font-size: clamp(13px, 3.4667vw, 26px);
    line-height: 1.75;
  }

  .thanks-strong {
    font-weight: 700;
  }

  .thanks-note {
    margin-top: clamp(26px, 6.9333vw, 52px);
    font-size: clamp(13px, 3.4667vw, 26px);
  }

  .thanks-contact {
    margin: clamp(26px, 6.9333vw, 52px) auto 0;
    max-width: clamp(365px, 81.8667vw, 614px);
    padding: clamp(13px, 3.4667vw, 26px);
    gap: 2.8vw; /*21*/
  }

  .thanks-contact-label {
    width: clamp(75px, 2vw, 150px);
    height: clamp(15px, 4vw, 30px);
    border-radius: 20px;
    font-size: clamp(10px, 2.6667vw, 20px);
  }

  .thanks-contact-value {
    font-size: clamp(13px, 3.4667vw, 26px);
  }

  .thanks-note--bottom {
    font-size: clamp(13px, 3.4667vw, 26px);
  }

  .thanks-actions {
    margin-top: clamp(75px, 20vw, 150px);
  }

  .thanks-back {
    width: min(clamp(275px, 60vw, 450px), 100%);
    height: clamp(40px, 10.6667vw, 80px);
    font-size: clamp(13px, 3.4667vw, 26px);
  }

  /* アイコンを左に固定 */
  .thanks-back-icon {
    position: absolute;
    left: 30px; /* ← 好きな位置に調整 */
    font-weight: 900;
  }

  .thanks-back:hover {
    border-color: rgba(51, 51, 51, 0.45);
  }
}
