@charset "UTF-8";
/*
Theme Name: トビキュー転職LP
Theme URI:
Author: 木戸泉 (株式会社トライシステム)
Author URI:
Description: 未経験OK求人特化エージェント「トビキュー転職」LP オリジナルテーマ。診断フォーム（Contact Form 7連携）とサンクスページを含む。
Version: 1.0.0
License: All rights reserved
Text Domain: tobikyu
*/

/* ===== Base（reset.cssを前提に上書き） ===== */
body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-pc-bg);
  line-height: 1.6;
  font-feature-settings: "palt";
}

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

/* ===== Variables ===== */
:root {
  /* Color (Figmaより) */
  --color-text: #2e2e2e;
  --color-white: #ffffff;

  --color-brand: #015abd;          /* メインの青 */
  --color-brand-deep: #003a7a;     /* フッター・濃い青 */
  --color-hero-from: #1c87ff;      /* MV グラデ開始 */
  --color-hero-to: #063376;        /* MV グラデ終了 */

  --color-accent-yellow: #ffea00;  /* アクセント黄 */
  --color-icon-yellow: #ffcc14;    /* アイコン黄 */
  --color-cta: #20c4cc;            /* 診断CTA ターコイズ */

  --color-cyan-soft: #cae8f0;      /* 円装飾の薄水色 */
  --color-card-bg: #edf0f3;        /* カードグレー */

  --color-pc-bg: #f4f6f9;          /* PC時の両側余白色 */

  /* Layout */
  --sp-width: 375px;       /* デザイン基準幅（SP） */
  --pc-max-width: 520px;   /* PC時の .page 表示上の最大幅 */
  --pc-scale: calc(520 / 375); /* PC時の拡大率 ≒ 1.3867 */

  /* Spacing */
  --space-section: 56px;           /* セクション間 */
  --space-inner: 20px;             /* 左右パディング */

  /* Typography */
  --fs-base: 14px;
  --lh-base: 1.6;
}

/* ===== Page wrapper
  - SP（< 768px）: viewport.js が width=375 を効かせるので、.page は100%(=375)で表示
  - PC（≥ 768px）: .page を375px固定にし、transform: scale() で520px相当へ拡大
    → 内部の文字・要素も含めて相対的に大きくなる
  - div.page セレクタにすることで、WPが固定ページに付与する body.page と衝突しない
===== */
div.page {
  width: 100%;
  max-width: var(--sp-width);
  margin: 0 auto;
  background: var(--color-white);
  overflow: hidden;
  position: relative;
}

/* ===== セクション共通 ===== */
section {
  position: relative;
}

/* ============================================================
  Header
  - 白背景・中央配置ロゴのみ（375×57）
============================================================ */
.site-header {
  background: var(--color-white);
  width: 100%;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__logo {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.site-header__logo-img {
  display: block;
  width: 176px;
  height: 43px;
}

/* ============================================================
  共通グラデ背景
  - FV（.hero）と診断（.diagnosis）を1つの青グラデでつなぐ
  - Figma: 起点 97.21% 0% / 1C87FF → 063376
============================================================ */
.bg {
  background: radial-gradient(circle at 97% 0%, #063376 0%, #1c87ff 100%);
}

.bg-2{
  background: linear-gradient(#063376 0%, #1c87ff 100%);
}

/* ============================================================
  Hero / メインビジュアル（fv.webp 一枚）
============================================================ */
.hero {
  padding-top: 16px;
}

.hero img {
  width: 100%;
  height: auto;
}

/* ============================================================
  Diagnosis Headline / 診断セクション直前のコール
  - 「月収25万円以下の方からもご相談多数」
  - 両端の白い斜め線（chevron-left / chevron-right）でテキストを挟む
============================================================ */
.diagnosis-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  color: var(--color-white);
}

.diagnosis-headline__bar {
  flex: 0 0 9px;
  width: 9px;
  height: 25.5px;
}

.diagnosis-headline__text {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

.diagnosis-headline__y {
  color: var(--color-accent-yellow);
}

.diagnosis-headline__num {
  font-family: "Miranda Sans", "Noto Sans JP", sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 2px;
  vertical-align: -2px;
}

/* ============================================================
  Diagnosis / 診断フォーム
  - 背景は .bg のグラデを透過させる
  - 白いカード本体は .diagnosis__inner
  - 全5ステップ。選択→「次に進む」で進行。最終ステップでCF7に置換予定
============================================================ */
.diagnosis {
  background: transparent;
  padding: 16px var(--space-inner) 30px;
}

.diagnosis__inner {
  background: var(--color-white);
  padding: 25px 20px 28px;
}

/* --- タイトル --- */
.diagnosis__title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.26;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}

.diagnosis__title-mark {
  color: var(--color-brand);
}

/* --- ステップインジケーター（5本のバー） --- */
.diagnosis__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 0 24px;
  list-style: none;
  padding: 0;
}

.diagnosis__step {
  width: 50px;
  height: 3px;
  background: #c2d0e0;
}

.diagnosis__step.is-active {
  background: var(--color-brand);
}

/* --- リード / 質問文 --- */
.diagnosis__lead {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.26;
  letter-spacing: 0.02em;
}

/* --- フォーム --- */
.diagnosis__form {
  /* fieldset の見た目をリセット */
  border: 0;
  padding: 0;
  margin: 0;
}

.diagnosis__panel {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.diagnosis__panel:not(.is-active) {
  display: none;
}

/* --- 選択肢リスト --- */
.diagnosis__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* margin: 0 0 20px; */
}

.diagnosis__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  /* height: 44px; */
  /* padding: 0 12px; */
  background: var(--color-white);
  /* border: 1px solid #e5e5e5; */
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* ラジオ本体は視覚的に隠す（box-shadow で focus-visible 対応） */
.diagnosis__option-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.diagnosis__option-input:focus-visible + .diagnosis__option-box {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.diagnosis__option-box {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  position: relative;
}

/* チェック時：ボックス見た目は変えず、中に青いチェックマークを重ねる */
.diagnosis__option-input:checked + .diagnosis__option-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: url("assets/img/check.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

/* チェック時のオプション全体：枠色は維持、背景のみ淡い青に */
.diagnosis__option:has(.diagnosis__option-input:checked) {
  background: #eff7ff;
}

.diagnosis__option-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.26;
  color: var(--color-text);
}

/* --- 入力フィールド系（Step3〜：お名前 / フリガナ / 性別） --- */
.diagnosis__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
}

.diagnosis__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diagnosis__field-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1.26;
}

.diagnosis__field-row {
  display: flex;
  gap: 9px;
}

.diagnosis__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background: #f1f1f1;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  letter-spacing: 0.02em;
  appearance: none;
  -webkit-appearance: none;
}

.diagnosis__input::placeholder {
  color: #aaa;
}

.diagnosis__input:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: -1px;
  background: #fff;
}

/* --- テキストエリア（備考） --- */
.diagnosis__textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background: #f1f1f1;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.diagnosis__textarea:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: -1px;
  background: #fff;
}

/* --- セレクト（年齢など） --- */
.diagnosis__select-wrap {
  position: relative;
  display: flex;
}

.diagnosis__select {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 30px 0 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  letter-spacing: 0.02em;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.diagnosis__select:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: -1px;
}

/* 下向き三角アイコン */
.diagnosis__select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 8px;
  background: var(--color-text);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(-50%);
  pointer-events: none;
}

/* --- 同意チェックボックス（プライバシーポリシー） --- */
.diagnosis__consent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.diagnosis__consent-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.diagnosis__consent-box {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  position: relative;
}

.diagnosis__consent-input:focus-visible + .diagnosis__consent-box {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.diagnosis__consent-input:checked + .diagnosis__consent-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: url("assets/img/check.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.diagnosis__consent-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.diagnosis__consent-link {
  text-decoration: underline;
  color: inherit;
}

/* --- 性別ラジオ --- */
.diagnosis__radio {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  /* height: 44px; */
  /* padding: 0 12px; */
  background: var(--color-white);
  /* border: 1px solid #e5e5e5; */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.diagnosis__radio-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.diagnosis__radio-input:focus-visible + .diagnosis__radio-mark {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.diagnosis__radio-mark {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  position: relative;
}

.diagnosis__radio-input:checked + .diagnosis__radio-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--color-brand);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.diagnosis__radio:has(.diagnosis__radio-input:checked) {
  background: #eff7ff;
}

.diagnosis__radio-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- バリデーションエラー --- */
.diagnosis__error {
  margin: 0 0 12px;
  padding: 12px 16px;
  background: #ffe3e3;
  border: 1px solid #ff0000;
  border-radius: 5px;
  color: #ff0000;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: 0.02em;
  text-align: center;
}

.diagnosis__error[hidden] {
  display: none;
}

.diagnosis__error-line {
  margin: 0;
  white-space: pre-line; /* data-error 内の改行を反映 */
}

.diagnosis__error-line + .diagnosis__error-line {
  margin-top: 8px;
}

/* --- CTA エリア --- */
.diagnosis__cta-wrap {
  position: relative;
  padding-top: 13px; /* バッジが上に飛び出すぶんの余白 */
}

.diagnosis__cta-badge {
  position: absolute;
  top: 0;
  left: 75px;
  display: inline-flex;
  align-items: center;
  background: var(--color-cta);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 0.02em;
  border-radius: 5px;
  padding: 2px 8px 4px;
  white-space: nowrap;
  z-index: 1;
}

.diagnosis__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 55px;
  border-radius: 5px;
  background: var(--color-brand-deep);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}

.diagnosis__cta-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
}

/* ============================================================
  Voice / 転職事例
  - 見出し「30代未経験から / 月収70万円超の実績あり！」
  - Swiperで3カードを横スライド
============================================================ */
.voice {
  padding: 30px 0 40px;
  background: var(--color-white);
}

/* --- 見出し --- */
.voice__heading {
  padding: 0 var(--space-inner);
  text-align: center;
}

.voice__heading-sub {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.voice__heading-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.voice__heading-bar {
  flex: 0 0 9px;
}

.voice__heading-blue {
  color: var(--color-brand);
  font-size: 24px;
}

.voice__heading-num {
  font-family: "Miranda Sans", "Noto Sans JP", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.05em;
  vertical-align: -2px;
  margin: 0 2px;
}

/* --- Swiper コンテナ --- */
.voice__slider {
  position: relative;
  padding: 12px 0 0;
  overflow: visible;
}

.voice__slider .swiper-wrapper {
  align-items: stretch;
}

.voice__slider .swiper-slide {
  width: 305px;
  height: 398px;
}

/* --- カード（305×398、絶対配置で Figma 通りに配置） --- */
.voice__card {
  position: relative;
  width: 305px;
  height: 398px;
  background: var(--color-card-bg);
  border-radius: 15px;
  box-sizing: border-box;
  overflow: hidden;
}

/* タイトル（左上） */
.voice__card-title {
  position: absolute;
  left: 20px;
  top: 25px;
  width: 174px; /* バッジ left:196 の手前まで使う */
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.voice__card-title-blue {
  color: var(--color-brand);
}

/* タイトルが長いカード（一般事務から〜 / 不安定なシフト制から〜）用 */
.voice__card-title--sm {
  font-size: 17px;
  line-height: 1.4;
}

/* バッジ（右上の黄色バースト） */
.voice__card-badge {
  position: absolute;
  left: 196px;
  top: 6px;
  width: 99px;
  height: 102px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.voice__card-badge-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.voice__card-badge > *:not(.voice__card-badge-bg) {
  position: relative;
  z-index: 1;
  margin: 0;
}

.voice__card-badge-label,
.voice__card-badge-up {
  font-size: 14.6px;
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.voice__card-badge-amount {
  display: inline-flex;
  align-items: baseline;
  color: var(--color-brand);
}

.voice__card-badge-amount strong {
  font-family: "Miranda Sans", "Noto Sans JP", sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.voice__card-badge-amount-yen {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  margin-left: 2px;
}

/* before → after フロー（白い金額BOX×2 + 中央矢印） */
.voice__card-flow {
  position: absolute;
  left: 21px;
  top: 90px;
  width: 263px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice__card-step {
  width: 123px;
  height: 76px;
  background: var(--color-white);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  gap: 2px;
  text-align: center;
  box-sizing: border-box;
}

.voice__card-step-amount {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.voice__card-step--before .voice__card-step-amount {
  color: #808080;
}

.voice__card-step--after .voice__card-step-amount {
  color: var(--color-brand);
}

.voice__card-step-amount strong {
  font-family: "Miranda Sans", "Noto Sans JP", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.voice__card-step-job {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.voice__card-step-job small {
  font-size: 10px;
}

/* 職種テキストが長いとき（飲食店エリアマネージャー等）の小サイズ */
.voice__card-step-job--sm {
  font-size: 10px;
}

.voice__card-step-arrow {
  width: 11px;
  height: 13px;
  flex: 0 0 11px;
}

/* 人物アイコン+ラベル（左下、本文の左横） */
.voice__card-person {
  position: absolute;
  left: 24px;
  top: 181px;
  width: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.voice__card-person-icon {
  width: 55px;
  height: 55px;
  background: var(--color-cyan-soft);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.voice__card-person-icon img {
  width: 80%;
  height: auto;
  display: block;
}

.voice__card-person-label {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
}

/* 本文（右下） */
.voice__card-body {
  position: absolute;
  left: 94px;
  top: 178px;
  width: 191px;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: justify;
}

/* --- Swiper ナビゲーション矢印（青い丸＋白い▶︎ アイコン） --- */
.voice__nav {
  width: 35px;
  height: 35px;
  margin-top: -17.5px;
  background: url("assets/img/voice-nav.svg") center / contain no-repeat;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* Swiper デフォルトの矢印テキスト（>）を非表示 */
.voice__nav::after {
  display: none;
}

.voice__nav--prev {
  left: 10px;
  transform: scaleX(-1); /* 左向きに反転 */
}

.voice__nav--next {
  right: 10px;
}

/* --- 注釈テキスト（スライダー下） --- */
.voice__disclaimer {
  margin: 12px 20px 0;
  padding-left: 10px;
  text-indent: -10px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-align: justify;
  color: var(--color-text);
}

/* ============================================================
  Footer
============================================================ */
.site-footer {
  background: var(--color-brand-deep);
  color: var(--color-white);
  padding: 24px var(--space-inner);
  text-align: center;
}

.site-footer__inner{
  display: flex;
  justify-content: center;
}

.site-footer__copy {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* ============================================================
  Thanks（サンクスページ）
  - 上部: 青グラデ背景 → 御礼メッセージ / 情報ボックス / サポート見出し / 動画
  - 下部: 白背景 → メッセージ + ロゴ
============================================================ */
.thanks {
  background: var(--color-white);
}

/* --- 上部（グラデ） --- */
.thanks__hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 30px;
  text-align: center;
  color: var(--color-white);
  border-radius: 0 0 20px 20px;
}

/* 背景あしらい（左の小さい斜光 / 右の大きい斜光） */
.thanks__hero::before,
.thanks__hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.thanks__hero::before {
  left: 0;
  top: 86px;
  width: 91px;
  height: 192px;
  background-image: url("assets/img/thanks-deco-left.svg");
}

.thanks__hero::after {
  left: 105px;
  top: 36px;
  width: 270px;
  height: 445px;
  background-image: url("assets/img/thanks-deco-right.svg");
}

/* あしらいより上にコンテンツを表示 */
.thanks__hero > * {
  position: relative;
  z-index: 1;
}

.thanks__welcome {
  margin: 0;
  padding: 0 25px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 半透明ボックス */
.thanks__info {
  margin: 30px 20px 0;
  padding: 25px 20px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-white);
  border-radius: 20px;
}

.thanks__info-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
}

.thanks__info-body {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-align: justify;
}

/* サポート見出し（白の斜線バー + 白テキスト） */
.thanks__support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 30px 0 10px;
}

.thanks__support-bar {
  flex: 0 0 8px;
}

.thanks__support-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 動画プレースホルダー */
.thanks__video {
  margin: 0 20px;
}

.thanks__video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* --- 下部（白背景） --- */
.thanks__bottom {
  padding: 30px 20px 46px;
  background: var(--color-white);
  text-align: center;
}

.thanks__bottom-message {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.thanks__bottom-logo {
  display: block;
  margin: 0 auto;
  width: 297px;
  max-width: 100%;
  height: auto;
}

/* ============================================================
  PC時のレイアウト
  - .page を zoom で1.387倍に拡大
    → 表示上の幅は 375 × 1.387 ≒ 520px、文字・余白も比例して拡大
  - zoom は transform: scale() と違い「レイアウト」に作用するため、
    スクロール領域や高さの補正が要らない
============================================================ */
@media (min-width: 768px) {
  body {
    background: var(--color-pc-bg);
  }
  div.page {
    width: var(--sp-width);
    max-width: none;
    zoom: var(--pc-scale);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  }
}

/* ============================================================
  Contact Form 7 マークアップ対応オーバーライド
  - CF7 は <span class="wpcf7-form-control-wrap"> 等の追加要素を生成するため、
    静的版CSSのセレクタが効かない箇所を再定義する
  - WPCF7_AUTOP = false（functions.php）で <p>/<br> 自動挿入は止めてある前提
============================================================ */

/* 共通：CF7 ラッパー span をレイアウト透過に */
.diagnosis__form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* 隠しフィールド群（_wpcf7 等の hidden）を非表示 */
.diagnosis__form .hidden-fields-container {
  border: 0;
  padding: 0;
  margin: 0;
}

/* --- Step1/2：選択肢ラジオ（[radio ... class:diagnosis__option]） --- */
.diagnosis__form .diagnosis__option {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  margin: 0 0 20px;
  width: 100%;
}

.diagnosis__form .diagnosis__option .wpcf7-list-item {
  margin: 0 !important;
  display: block !important;
  position: relative;
  width: 100% !important;
}

.diagnosis__form .diagnosis__option .wpcf7-list-item label {
  position: relative;
  display: flex !important;
  align-items: center;
  width: 100% !important;
  height: 44px;
  padding: 0 12px 0 32px;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  box-sizing: border-box;
}

.diagnosis__form .diagnosis__option .wpcf7-list-item-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.26;
  color: var(--color-text);
}

/* チェックボックス風の "ボックス" を ::before で */
.diagnosis__form .diagnosis__option label::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  transform: translateY(-50%);
}

/* ラジオ本体を視覚的に隠す（label全体で受け取る） */
.diagnosis__form .wpcf7-radio input[type="radio"],
.diagnosis__form .wpcf7-checkbox input[type="checkbox"],
.diagnosis__form .wpcf7-acceptance input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* チェック時：背景色 + チェックマーク */
.diagnosis__form .diagnosis__option .wpcf7-list-item:has(input:checked) label {
  background: #eff7ff;
}

.diagnosis__form .diagnosis__option .wpcf7-list-item:has(input:checked) label::after {
  content: "";
  position: absolute;
  left: 14.5px;            /* 12 + (12-7)/2 = 14.5px → 7px幅チェックの中央寄せ */
  top: 50%;
  width: 7px;
  height: 7px;
  background: url("assets/img/check.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

/* --- Step3：性別ラジオ（[radio ... class:diagnosis__radio]） --- */
.diagnosis__form .wpcf7-radio.diagnosis__radio {
  display: flex !important;
  gap: 9px;
  width: 100%;
}

.diagnosis__form .wpcf7-radio.diagnosis__radio .wpcf7-list-item {
  margin: 0 !important;
  flex: 1 !important;
  display: block !important;
  position: relative;
}

.diagnosis__form .wpcf7-radio.diagnosis__radio .wpcf7-list-item label {
  position: relative;
  display: flex !important;
  align-items: center;
  width: 100% !important;
  height: 44px;
  padding: 0 12px 0 35px;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  cursor: pointer;
  box-sizing: border-box;
}

.diagnosis__form .wpcf7-radio.diagnosis__radio .wpcf7-list-item-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.diagnosis__form .wpcf7-radio.diagnosis__radio label::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  transform: translateY(-50%);
}

.diagnosis__form .wpcf7-radio.diagnosis__radio .wpcf7-list-item:has(input:checked) label {
  background: #eff7ff;
}

.diagnosis__form .wpcf7-radio.diagnosis__radio .wpcf7-list-item:has(input:checked) label::after {
  content: "";
  position: absolute;
  left: 17px;              /* 12 + 14/2 - 4/2 = 17px → 中央寄せ */
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--color-brand);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* --- Step3〜：text/email/tel/select はCF7のsize属性を上書き --- */
.diagnosis__form .diagnosis__input {
  width: 100%;
}

.diagnosis__form .diagnosis__select {
  width: 100%;
}

/* --- Step5：同意チェック --- */
.diagnosis__form .wpcf7-acceptance {
  display: block;
}

.diagnosis__form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
  display: block;
}

.diagnosis__form .wpcf7-acceptance .wpcf7-list-item label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.diagnosis__form .wpcf7-acceptance .wpcf7-list-item label::before {
  content: "";
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  transform: translate(0, 1px);
}

.diagnosis__form .wpcf7-acceptance .wpcf7-list-item:has(input:checked) label::before {
  background: url("assets/img/check.svg") center / 6px 6px no-repeat #f3f3f3;
}

.diagnosis__form .wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.26;
  color: var(--color-text);
}

.diagnosis__form .wpcf7-acceptance .wpcf7-list-item-label a {
  text-decoration: underline;
  color: inherit;
}

/* 隠し submit（CF7のスピナー含む）の表示制御 */
.diagnosis__form .wpcf7-spinner {
  display: none;
}

/* CF7レスポンス領域の余分なスペースをリセット */
.diagnosis__form + .wpcf7-response-output,
.diagnosis__form .wpcf7-response-output {
  margin: 0;
}

/* ============================================================
  Legal（プライバシーポリシー / 利用規約）
  - LPと共通のヘッダー（白・中央ロゴ）／フッター（濃紺）を踏襲
  - 上部に青グラデのタイトルバンド（thanks heroと同系の角丸）
  - 本文は白背景・可読性重視
============================================================ */
.legal {
  background: var(--color-white);
}

/* --- タイトルバンド（青グラデ） --- */
.legal__hero {
  padding: 36px 20px 30px;
  text-align: center;
  color: var(--color-white);
  border-radius: 0 0 20px 20px;
}

.legal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.legal__title-sub {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* --- 本文ラッパー --- */
.legal__body {
  padding: 28px 20px 44px;
}

.legal__lead {
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: justify;
  color: var(--color-text);
}

/* --- 条・節 --- */
.legal__article {
  margin-bottom: 26px;
}

.legal__article:last-of-type {
  margin-bottom: 0;
}

.legal__heading {
  position: relative;
  margin: 0 0 12px;
  padding-left: 12px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-brand);
}

.legal__heading::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--color-cta);
}

.legal__text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: justify;
  color: var(--color-text);
}

.legal__text:last-child {
  margin-bottom: 0;
}

/* --- リスト（番号は本文内に保持し、ぶら下げ揃え） --- */
.legal__list,
.legal__sublist {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.legal__list > li,
.legal__sublist > li {
  display: flex;
  gap: 0.45em;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: justify;
  color: var(--color-text);
}

.legal__list > li {
  margin-bottom: 8px;
}

.legal__list > li:last-child {
  margin-bottom: 0;
}

.legal__sublist {
  margin-top: 8px;
}

.legal__sublist > li {
  margin-bottom: 6px;
}

.legal__num {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--color-brand);
}

/* --- 事業者情報ボックス --- */
.legal__company {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--color-card-bg);
}

.legal__company dl {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.legal__company dt {
  font-weight: 700;
  color: var(--color-brand-deep);
}

.legal__company dd {
  margin: 0 0 8px;
}

.legal__company dd:last-child {
  margin-bottom: 0;
}

.legal__company a {
  color: var(--color-brand);
  text-decoration: underline;
}

/* --- 制定日・改定日 --- */
.legal__dates {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: right;
}

/* ============================================================
  Footer：法務ページへのリンク（共通フッターに追加）
============================================================ */
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.site-footer__links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.92;
}

.site-footer__links a:hover {
  text-decoration: underline;
  opacity: 1;
}

.site-footer__inner {
  flex-direction: column;
  align-items: center;
}
