/* ============================================================
 * Contact / Inquiry ページ
 * Figma: weMbv5Gyjtk9YIJKwOcv1Q / node 1633:14513
 * ============================================================ */

/* ページ背景 */
.aoi-page-contact {
  background: #f1f8fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-bottom: 80px;
}

/* ============================================================
 * FV
 * Figma: h=399px, bg=#f1f8fa, overflow hidden, pb=56px
 * ============================================================ */
.aoi-contact-fv {
  position: relative;
  width: 100%;
  height: 399px;
  overflow: hidden;
  padding-bottom: 56px;
  flex-shrink: 0;
}

/* wave PNG: 全幅・高さ380px・mb=-36px（Figma準拠） */
.aoi-contact-fv__wave {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* デコ要素 — 位置は 1512px基準のパーセント */
.aoi-contact-fv__deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
/* Subtract-A: 123px, left 260px(17.2%), top 65px(16.3%) */
.aoi-contact-fv__deco--a  { width: 123px; left: 17.2%; top: 16.3%; }
/* Subtract-B1: 67px, left 1056px(69.8%), top 60px(15%) */
.aoi-contact-fv__deco--b1 { width:  67px; left: 69.8%; top: 15%;   }
/* Subtract-B2: 67px, left 349px(23.1%), top 243px(60.9%) */
.aoi-contact-fv__deco--b2 { width:  67px; left: 23.1%; top: 60.9%; }
/* Subtract-C: 122px, left 1151px(76.1%), top 139px(34.8%) */
.aoi-contact-fv__deco--c  { width: 122px; left: 76.1%; top: 34.8%; }
/* Vector2: 107px, left 1302px(86.1%), top 27px(6.8%) */
.aoi-contact-fv__deco--v1 { width: 107px; left: 86.1%; top:  6.8%; }
/* Vector3: 149px, left 88px(5.8%), top 199px(49.9%) */
.aoi-contact-fv__deco--v2 { width: 149px; left:  5.8%; top: 49.9%; }
/* Vector4a: 62px, left 1271px(84.1%), top 274px(68.7%) */
.aoi-contact-fv__deco--v3a{ width:  62px; left: 84.1%; top: 68.7%; }
/* Vector4b: 62px, left 163px(10.8%), top 36px(9%) */
.aoi-contact-fv__deco--v3b{ width:  62px; left: 10.8%; top:  9%;   }

/* "Inquiry" テキスト */
.aoi-contact-fv__en {
  position: absolute;
  left: 29.4%;
  top: 22%;
  font-family: 'Oooh Baby', cursive;
  font-size: 6.35vw;
  color: #e7f4b4;
  letter-spacing: -0.05em;
  transform: rotate(-9.26deg);
  line-height: 1;
  white-space: nowrap;
  margin: 0;
}

/* 見出し */
.aoi-contact-fv__ja {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 190px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-align: center;
  white-space: nowrap;
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
 * ボディ共通
 * ============================================================ */
.aoi-contact-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 900px;
  padding-inline: 20px;
  box-sizing: border-box;
}

/* ============================================================
 * お申し込み後の流れ カード
 * Figma: white, radius 12px, padding 40px, width 832px
 * ============================================================ */
.aoi-contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
}

.aoi-contact-steps__heading {
  font-size: 20px;
  font-weight: 700;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.8;
  border-bottom: 1px solid #17bfbd;
  padding-bottom: 16px;
  margin: 0 0 24px;
}

.aoi-contact-steps__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aoi-contact-step {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.aoi-contact-step__label {
  flex: 0 0 80px;
  font-size: 12px;
  font-weight: 700;
  color: #17bfbd;
  letter-spacing: 0.1em;
  line-height: 20px;
  text-align: right;
  padding-right: 16px;
  padding-top: 3px;
  white-space: nowrap;
}

.aoi-contact-step__title {
  font-size: 18px;
  font-weight: 700;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0 0 4px;
}

.aoi-contact-step__desc {
  font-size: 14px;
  color: #797979;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
 * 説明カード
 * Figma: border #f3f4f6, shadow, radius 12px, py 33px, px 1px
 * ============================================================ */
.aoi-contact-desc-card {
  width: 100%;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  padding: 33px 24px;
  background: #fff;
}

.aoi-contact-desc-card p {
  font-size: 16px;
  color: #797979;
  letter-spacing: 0.1em;
  line-height: 1.76;
  margin: 0;
}

/* ============================================================
 * フォームカード
 * Figma: white, border #f3f4f6, shadow, radius 16px, width 848px
 * ============================================================ */
.aoi-contact-form-card {
  width: 100%;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.aoi-contact-form-card__header {
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
  padding: 24px;
  text-align: center;
}

.aoi-contact-form-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.8;
  margin: 0;
}

.aoi-contact-form-card__subtitle {
  font-size: 12px;
  color: #797979;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 4px 0 0;
}

.aoi-contact-form-card__body {
  padding: 40px;
}

/* ============================================================
 * フォーム タブ切り替え
 * Figma: 2-column, gap 16px, width 672px, radius 8px, padding 17px
 * ============================================================ */
.aoi-contact-tabs {
  display: flex;
  gap: 16px;
  width: 672px;
  max-width: 100%;
  margin: 0 auto 40px;
}

.aoi-contact-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 17px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  background: #fff;
  cursor: pointer;
}

.aoi-contact-tab--active {
  background: #17bfbd;
  border-color: #17bfbd;
}

.aoi-contact-tab__title {
  font-size: 18px;
  font-weight: 700;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
  margin: 0;
}

.aoi-contact-tab--active .aoi-contact-tab__title {
  color: #fff;
}

.aoi-contact-tab__subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.4;
  opacity: 0.8;
  text-align: center;
  margin: 0;
}

.aoi-contact-tab--active .aoi-contact-tab__subtitle {
  color: #fff;
}

/* ============================================================
 * CF7 フォーム スタイル
 * Figma: 1633:14583 — 2カラム(ラベル右寄せ+インプット)
 * ============================================================ */

/* フォーム全体 */
.aoi-contact-form-card__body .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* p ラッパー余白リセット */
.aoi-contact-form-card__body .wpcf7-form > p {
  margin: 0;
}

/* ===== 2カラムレイアウト ===== */
.aoi-cf7-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.aoi-cf7-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.aoi-cf7-row--sep {
  border-top: 1px solid #f3f4f6;
  padding-top: 17px;
  margin-top: 0;
}

.aoi-cf7-row--stretch {
  align-items: flex-start;
}

.aoi-cf7-label {
  flex: 0 0 228px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-right: 16px;
  text-align: right;
  box-sizing: border-box;
}

.aoi-cf7-label--top {
  padding-top: 4px;
}

.aoi-cf7-label__text {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: right;
}

.aoi-cf7-badge {
  display: inline-block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #f24822;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 3px 9px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
}

.aoi-cf7-input {
  flex: 1;
  min-width: 0;
}

.aoi-cf7-note {
  font-size: 12px;
  color: #797979;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin: -16px 0 0;
}

/* ===== チェックボックス ===== */
.aoi-cf7-input .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aoi-cf7-input .wpcf7-checkbox .wpcf7-list-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.aoi-cf7-input .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.aoi-cf7-input .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  margin: 0;
  cursor: pointer;
  accent-color: #17bfbd;
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
}

.aoi-cf7-input .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked {
  background: #17bfbd;
  border-color: #17bfbd;
}

.aoi-cf7-input .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 10px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  background: #fff;
}

.aoi-cf7-input .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.aoi-cf7-input .wpcf7-checkbox .wpcf7-list-item-label {
  font-size: 12px;
  color: #374151;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* ===== 注意書きカード内チェックボックス ===== */
.aoi-cf7-notice__checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aoi-cf7-notice__checks > p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aoi-cf7-notice__checks .wpcf7-list-item {
  margin: 0;
}

.aoi-cf7-notice__checks .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.aoi-cf7-notice__checks .wpcf7-list-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.aoi-cf7-notice__checks .wpcf7-list-item input[type="checkbox"]:checked {
  background: #17bfbd;
  border-color: #17bfbd;
}

.aoi-cf7-notice__checks .wpcf7-list-item input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 10px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  background: #fff;
}

.aoi-cf7-notice__checks .wpcf7-list-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.aoi-cf7-notice__checks .wpcf7-list-item-label {
  font-size: 12px;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.aoi-cf7-notice__checks .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #f24822;
  margin-top: 4px;
  display: block;
}

/* ===== 注意書きカード ===== */
.aoi-cf7-notice {
  border-left: 4px solid #17bfbd;
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 16px 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aoi-cf7-notice__heading {
  font-size: 12px;
  font-weight: 700;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0;
}

.aoi-cf7-notice__desc {
  font-size: 12px;
  color: #797979;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0;
}

.aoi-cf7-notice__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aoi-cf7-notice__list li {
  font-size: 12px;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.4;
  padding-left: 20px;
  position: relative;
}

.aoi-cf7-notice__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #17bfbd;
}

.aoi-cf7-notice__list li.aoi-cf7-notice__list-item--note::before {
  content: '※';
  color: #1c4660;
}

/* ===== 同意チェックボックス ===== */
.aoi-cf7-acceptance {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.aoi-cf7-acceptance .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.aoi-cf7-acceptance .wpcf7-acceptance input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fff;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
}

.aoi-cf7-acceptance .wpcf7-acceptance input[type="checkbox"]:checked {
  background: #17bfbd;
  border-color: #17bfbd;
}

.aoi-cf7-acceptance .wpcf7-acceptance input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 10px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  background: #fff;
}

.aoi-cf7-acceptance .wpcf7-acceptance input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* span ラッパーをブロック化 */
.aoi-contact-form-card__body .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ===== テキスト・メール入力 ===== */
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-text,
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-email {
  width: 100%;
  height: 45px;
  background: #f9fafb;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1c4660;
  letter-spacing: 0.1em;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-text:focus,
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-email:focus {
  border-color: #17bfbd;
  background: #fff;
}
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-text::placeholder,
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-email::placeholder {
  color: #797979;
  font-size: 14px;
}

/* ===== テキストエリア ===== */
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  min-height: 200px;
  background: #f9fafb;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 13px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1c4660;
  letter-spacing: 0.1em;
  line-height: 1.6;
  box-sizing: border-box;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-textarea:focus {
  border-color: #17bfbd;
  background: #fff;
}
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-textarea::placeholder {
  color: #797979;
}

/* ===== バリデーションエラー ===== */
.aoi-contact-form-card__body .wpcf7-not-valid {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}
.aoi-contact-form-card__body .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #f24822;
  margin-top: 4px;
  display: block;
}

/* ===== 送信ボタン ===== */
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-submit {
  display: block;
  margin: 0 auto;
  background: #1c4660;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 0;
  width: 244px;
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-appearance: none;
}
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-submit:hover {
  opacity: 0.85;
}
.aoi-contact-form-card__body .wpcf7-form-control.wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== レスポンスメッセージ ===== */
.aoi-contact-form-card__body .wpcf7-response-output {
  margin: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ============================================================
 * SP 対応
 * ============================================================ */
@media (max-width: 599px) {
  .aoi-contact-fv {
    height: 260px;
  }
  .aoi-contact-fv__en {
    font-size: 48px;
    left: 15%;
    top: 20%;
  }
  .aoi-contact-fv__ja {
    font-size: 16px;
    top: 55%;
    white-space: normal;
    width: 90%;
    text-align: center;
  }
  .aoi-contact-fv__deco { display: none; }
  .aoi-contact-card,
  .aoi-contact-form-card__body { padding: 24px 20px; }
  .aoi-contact-tabs { gap: 10px; }
  .aoi-contact-tab { padding: 12px 10px; }
  .aoi-contact-tab__title { font-size: 14px; }
  .aoi-contact-step__label { flex: 0 0 60px; font-size: 12px; }
  .aoi-contact-step__title { font-size: 16px; }

  /* CF7 SP: 縦並び */
  .aoi-cf7-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .aoi-cf7-label {
    flex: none;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-right: 0;
    gap: 8px;
  }
  .aoi-cf7-label__text { text-align: left; }
  .aoi-cf7-input { width: 100%; }
  .aoi-cf7-notice { padding: 16px 16px 16px 20px; }
}
