@charset "UTF-8";
/* =========================================================
   無料個別面談 お申込みフォーム
   トンマナ：既存チャットボット（chatbot6）準拠のオレンジ系
   ========================================================= */

:root {
  --c-orange: #ea5429;        /* ヘッダー・アクセント（chatbot6 header） */
  --c-orange-dark: #cc4520;
  --c-orange-text: #cc6235;   /* ギフト金額 */
  --c-field-border: #f9bf2c;  /* 入力枠（chatbot6 select） */
  --c-field-bg: #fff8ea;      /* 入力背景（chatbot6 select） */
  --c-focus-ring: rgba(234, 84, 41, .18);
  --c-gold: #d4af37;
  --c-cream: #fefcf9;
  --c-text: #333;
  --c-sub: #666;
  --c-muted: #a5a5a5;
  --c-line: #e5e5e5;
  --c-red: #e60012;
  --c-pending: #f25c54;       /* 未入力ドット */
  --c-ok: #28a745;            /* 入力完了チェック・送信ボタン */
  --c-ok-dark: #218838;
  --c-bg: #f6f4f1;
  --radius: 6px;
  --font: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Hiragino Sans", "Noto Sans JP", Meiryo, "メイリオ", sans-serif;
  --container: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  /* ページ全体はスクロールさせず、ヘッダー＋スクロール領域（.page-scroll）の縦並びにする */
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Header ----------
   スクロール領域の外に置き、常に画面上部に表示する。
   レイアウト・サイズは /contents/chatbot/ のヘッダー（chat-modal__header）と同じ */
.site-header {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px;
  background: var(--c-orange);
  color: #fff;
  font-weight: 700;
}
.site-header__logo {
  flex-shrink: 0;
  width: 120px;
  line-height: 0;
}
.site-header__logo img { display: block; width: 100%; height: auto; }
.site-header__title {
  flex: 1;
  margin: 0 20px 0 -10%;
  font-size: 14px;
  text-align: center;
  line-height: normal;
}

/* ---------- スクロール領域 ----------
   チャットボットのページ（.chat-modal__body）と同じく、ヘッダーの下の部分だけをスクロールさせる */
.page-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

/* ---------- ページ上部へ戻るボタン ----------
   位置・大きさは form-mendan7 の #btnPageTop と同じ（PC：幅50px／スマホ：幅35px）。
   スクロール領域のスクロールバーに重ならないよう、その幅（--sbw：JSで設定）だけ右にずらす */
#btnPageTop {
  position: fixed;
  right: calc(10px + var(--sbw, 0px));
  bottom: 20px;
  z-index: 999;
  width: 50px;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
#btnPageTop.is-visible { opacity: 1; visibility: visible; }
#btnPageTop a { display: block; }
#btnPageTop img { display: block; width: 100%; height: auto; }
#btnPageTop a:focus-visible { outline: 3px solid var(--c-field-border); outline-offset: 2px; }
/* ページ上部へ戻るボタンの表示中は reCAPTCHA の画像を非表示（ボタンが消えたら再表示） */
.grecaptcha-badge { transition: right .3s, opacity .2s, visibility .2s !important; }
.is-pagetop-visible .grecaptcha-badge { opacity: 0; visibility: hidden; }

/* ---------- Page ---------- */
.page {
  max-width: var(--container);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}

/* ---------- FV ---------- */
.fv { line-height: 0; }
.fv__img { display: block; width: 100%; height: auto; }

/* ---------- Form ---------- */
.form {
  padding: 32px 40px 40px;
}
.row { margin-bottom: 22px; }
.row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.row--2col + .field__hint--row { margin: -14px 0 22px; }

.field { position: relative; }
.field__label {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-text);
}
.req { font-weight: 400; font-size: 13px; color: var(--c-sub); }

/* 入力状態インジケーター：● → ✓ */
.status {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  flex-shrink: 0;
}
.status::before {             /* 未入力：赤い● */
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--c-pending);
  transition: transform .25s ease, background-color .25s ease;
}
.status::after {              /* 完了：チェック */
  content: "";
  position: absolute;
  left: 6.5px;
  top: 3.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .25s cubic-bezier(.2, 1.6, .5, 1) .05s;
}
.field.is-valid .status::before { inset: 0; background: var(--c-ok); }
.field.is-valid .status::after { transform: rotate(45deg) scale(1); }
.field.is-invalid .status::before { inset: 3px; background: var(--c-red); }
.field.is-valid .status { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }

.field__input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-size: 16px; /* iOSズーム防止 */
  background: var(--c-field-bg);
  border: 1px solid var(--c-field-border);
  border-radius: var(--radius);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field__input::placeholder { color: var(--c-muted); }
/* 入力モード（日本語入力のON/OFF）
   ※ ime-mode は対応ブラウザ（Firefox など）のみ有効。Chrome・Edge・Safari では効かない */
.ime-zen { ime-mode: active; }   /* 姓・名・セイ・メイ：全角入力 */
.ime-han { ime-mode: disabled; } /* 電話番号・メールアドレス：半角入力 */
.field__input:focus {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px var(--c-focus-ring);
  background: #fff;
}
/* ブラウザのオートフィル：背景をトンマナに合わせ、JSで検知 */
.field__input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--c-field-bg) inset;
  -webkit-text-fill-color: var(--c-text);
  animation-name: onAutoFillStart;
  animation-duration: .01s;
}
@keyframes onAutoFillStart { from { opacity: 1; } to { opacity: 1; } }

.field.is-invalid .field__input,
.field__input.is-invalid {
  border-color: var(--c-red);
  background: #fff5f5;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid var(--c-text);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap select:invalid,
.select-wrap select.is-empty { color: var(--c-text); }

.birthday { display: flex; gap: 12px; }
.select-wrap--s { width: 120px; }
.select-wrap--xs { width: 92px; }

.field__hint { margin-top: 6px; font-size: 12px; color: var(--c-sub); }
.field__error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-red);
  min-height: 0;
}
.field__error:empty { display: none; }
.field__suggest {
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-sub);
}
.field__suggest button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--c-orange);
  font-weight: 700;
  text-decoration: underline;
}

/* 日時 */
/* 「お電話ご希望日時（必須）」見出しの下の注意書き */
.call-note__text { margin: -2px 0 8px; font-size: 13px; color: var(--c-text); }
.date-trigger { position: relative; }
.date-trigger::after {    /* カレンダーアイコン */
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea5429' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  pointer-events: none;
}
.field__input--date { cursor: pointer; padding-right: 44px; }

/* メルマガ */
.newsletter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f7f8fa;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
}
.newsletter__checkbox {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid var(--c-field-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.newsletter__checkbox:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 3px solid #ff002f;
  border-bottom: 3px solid #ff002f;
  transform: translate(-50%, -65%) rotate(-45deg);
}
.newsletter__checkbox:focus-visible { box-shadow: 0 0 0 3px var(--c-focus-ring); outline: none; }

/* 同意 */
.agree {
  background: #f7f8fa;
  border-radius: var(--radius);
  padding: 16px 16px 20px;
}
.agree__text { font-size: 13px; line-height: 1.7; }
.agree__policy { color: var(--c-text); }
.agree__red { color: red; }
.agree__toggle {
  margin-top: 8px;
  padding: 4px 0;
  background: none;
  border: 0;
  font-size: 13px;
  text-decoration: underline;
}
.agree__toggle[aria-expanded="true"] { color: var(--c-orange); }

.notice {
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.7;
}
.notice h3 { font-size: 13px; margin: 4px 0 8px; }
.notice h3:not(:first-child) { margin-top: 18px; }
.notice p { margin-bottom: 6px; }
.notice ol, .notice ul { padding-left: 1.6em; }
.notice li { margin-bottom: 4px; }
.notice__alpha { list-style: upper-alpha; margin-top: 4px; }
.notice__comment { list-style: "※ "; margin-top: 2px; color: var(--c-sub); }
.notice__remark { list-style: "※ "; margin: 10px 0; }
.notice__supplement ul { list-style: "※ "; }

.submit { margin-top: 16px; }
.submit__btn {
  display: block;
  width: 75%;
  margin: 0 auto;
  height: 56px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: var(--c-ok);
  border: 1px solid var(--c-ok);
  border-radius: 60px;
  box-shadow: 0 3px 0 #1c7a31;
  transition: background-color .2s, transform .1s, box-shadow .1s;
}
.submit__btn:hover { background: var(--c-ok-dark); }
.submit__btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1c7a31; }
.submit__btn:disabled { opacity: .6; cursor: not-allowed; }
.submit__error {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-red);
  text-align: center;
}

/* ---------- 希望日時ポップアップ（visit-calender.css を一部補正） ---------- */
.form_content { font-size: 14px; line-height: 1.5; color: var(--c-text); }
.form_calendar_time #select_kibou select { -webkit-appearance: none; appearance: none; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {

  .form { padding: 24px 16px 32px; }
  .row--2col { gap: 12px; }
  .birthday { gap: 8px; }
  .select-wrap--s { width: 40%; }
  .select-wrap--xs { width: 30%; }
  .newsletter { display: flex; }
}

/* ページ上部へ戻るボタン：スマホ（form-mendan7 と同じ） */
@media (max-width: 768px) {
  #btnPageTop { width: 35px; bottom: 15px; right: calc(5px + var(--sbw, 0px)); }
}

/* ヘッダー：チャットボットと同じ切り替え幅 */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-header__title { font-size: 13px; margin-left: -8%; }
}
@media (max-width: 768px) {
  .site-header { padding: 8px 12px; }
  .site-header__logo { width: 80px; }
  .site-header__title { font-size: 12px; margin: 0 10px 0 -5%; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
