/* ===== contact.css v8 ===== */

:root {
  --ct-orange: #FF9933;
  --ct-error-bg: #FFF2E4;
  --ct-border: #D8D8D8;
  --ct-text: #232323;
  --ct-label-w: 160px;
}

/* =========================================
   パンくずバー（全幅・ヘッダー下）
   左端をイメージ左端（40px）に揃える
   ========================================= */
.ct-breadcrumb-bar {
  margin-top: 125px;
  height: 58px;
  display: flex;
  align-items: flex-end;
  /* left: イメージ左端(40px)と合わせる / right: フォーム側のpadding(88px)と合わせる */
  padding: 0 88px 0 40px;
  box-sizing: border-box;
  background-color: #FFFDF5;
}

.ct-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #232323;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.ct-breadcrumb a        { color: #232323; text-decoration: none; transition: opacity 0.2s; }
.ct-breadcrumb a:hover  { opacity: 0.7; }
.ct-breadcrumb .sep     { color: #232323; }
.ct-breadcrumb .current { color: #232323; }

/* =========================================
   ページ全体レイアウト（2カラム）
   ========================================= */
.ct-page {
  display: flex;
  align-items: flex-start;
  background-color: #FFFDF5;
}

/* =========================================
   左: 画像 + テキストオーバーレイ
   max 688px → min 500px → 1200px以下で非表示
   フォーム側の最低幅を530px確保するためのブレークポイント
   ========================================= */
.ct-left {
  position: sticky;
  top: 0;
  flex: 0 1 688px;
  max-width: 688px;
  min-width: 500px;
  height: 100vh;
  max-height: 1100px;
  /* 上: 右カラム padding-top(48px)と揃える / 左: 左端マージン / 下: 下端マージン */
  padding: 48px 0 48px 40px;
  box-sizing: border-box;
  background-color: #FFFDF5;
}

.ct-left-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ct-left-inner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストオーバーレイ（画像上・中央揃え） */
.ct-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 40px;
  gap: 16px;
}

.ct-overlay-en {
  font-family: 'Roboto', sans-serif;
  font-size: 108px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 0;
}

.ct-overlay-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: 0.05em;
}

.ct-overlay-lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  margin: 10px 0 0;
}

.ct-overlay-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.ct-overlay-tel span {
  font-family: 'Roboto', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
}

/* =========================================
   右: フォームエリア
   box-sizing: border-box + min-width で
   フォーム内側が常に530px以上を保証
   (530 + 88*2 = 706px)
   ========================================= */
.ct-right {
  flex: 1;
  min-width: 706px;
  box-sizing: border-box;
  padding: 48px 88px 100px;
  background-color: #FFFDF5;
}

/* =========================================
   イメージ非表示時のイントロテキスト
   PC大画面（>1200px）では非表示
   イメージが消えると同時にこちらが表示される
   ========================================= */
.ct-intro-text {
  display: none;
}

/* ---- フォーム全体 ---- */
.ct-form {
  display: flex;
  flex-direction: column;
}

/* ---- フィールド行（ボーダーなし） ---- */
.ct-field {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  gap: 24px;
}

.ct-label-wrap {
  flex: 0 0 var(--ct-label-w);
  padding-top: calc((63px - 1.5em) / 2);
}
.ct-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--ct-text);
  line-height: 1.5;
  white-space: nowrap;
}
.ct-required {
  color: var(--ct-orange);
  font-size: 12px;
  margin-left: 4px;
}

.ct-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ---- インプット（高さ63px） ---- */
.ct-input {
  width: 100%;
  height: 63px;
  border: 1px solid var(--ct-border);
  background-color: #FFFFFF;
  padding: 0 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--ct-text);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}
.ct-input::placeholder { color: #BDBDBD; }
.ct-input:focus { border-color: #aaa; }

.ct-textarea {
  width: 100%;
  border: 1px solid var(--ct-border);
  background-color: #FFFFFF;
  padding: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--ct-text);
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
  min-height: 140px;
  resize: vertical;
}
.ct-textarea::placeholder { color: #BDBDBD; }
.ct-textarea:focus { border-color: #aaa; }

/* ---- エラー状態 ---- */
.ct-input.is-error,
.ct-textarea.is-error {
  border-color: var(--ct-orange) !important;
  background-color: var(--ct-error-bg) !important;
}
.ct-postal-wrap.is-error .ct-input {
  border-color: var(--ct-orange) !important;
  background-color: var(--ct-error-bg) !important;
}
.ct-error-msg {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--ct-orange);
  display: none;
}
.ct-error-msg.is-visible { display: block; }

/* ---- 注記テキスト ---- */
.ct-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  padding-top: calc((63px - 1.2em) / 2);
}

/* ---- 電話番号 横並び ---- */
.ct-inline-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ct-inline-wrap .ct-input { width: 220px; }

/* ---- 郵便番号 + 住所検索 ---- */
.ct-postal-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ct-postal-wrap .ct-input { width: 160px; }

.ct-btn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  background-color: var(--ct-orange);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.2s;
  box-sizing: border-box;
}
.ct-btn-search:hover { background-color: #FFB521; }
.ct-btn-search img { width: 23px; height: 23px; }

/* ---- ラジオボタン カスタムスタイル ---- */
.ct-radio-group {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: calc((63px - 20px) / 2);
}
.ct-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--ct-text);
  cursor: pointer;
  user-select: none;
}
.ct-radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #C0C0C0;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.ct-radio-label input[type="radio"]:checked {
  border-color: var(--ct-orange);
}
.ct-radio-label input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ct-orange);
  transition: transform 0.2s ease;
}
.ct-radio-label input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ---- チェックボックス ---- */
.ct-checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: calc((63px - 20px) / 2);
}
.ct-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--ct-text);
  cursor: pointer;
}
.ct-check-label input[type="checkbox"] {
  accent-color: var(--ct-orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ---- お見積もり種別（初期非表示） ---- */
.ct-field-estimate { display: none; }
.ct-field-estimate.is-visible { display: flex; }

/* ---- 個人情報同意 ---- */
.ct-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--ct-text);
  cursor: pointer;
  padding-top: calc((63px - 20px) / 2);
}
.ct-privacy-label input[type="checkbox"] {
  accent-color: var(--ct-orange);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.ct-privacy-label a { color: var(--ct-orange); text-decoration: underline; }

/* ---- 送信ボタン ---- */
.ct-submit-wrap { margin-top: 36px; }
.ct-btn-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 280px;
  height: 68px;
  padding: 0 28px;
  background-color: var(--ct-orange);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.ct-btn-submit:hover { background-color: #FFB521; }
.ct-btn-submit span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
}
.ct-btn-submit svg { transition: transform 0.3s ease; }
.ct-btn-submit:hover svg { transform: translateX(6px); }

/* =========================================
   左イメージ非表示ブレークポイント（≤1200px）
   フォーム幅530px確保のため
   イメージ消滅と同時にイントロテキストを上部表示
   ========================================= */
@media (max-width: 1200px) {
  .ct-left { display: none; }

  .ct-breadcrumb-bar {
    padding: 0 44px;
  }

  .ct-right {
    min-width: 0;
    padding: 40px 44px 80px;
  }

  /* イントロテキスト表示 */
  .ct-intro-text {
    display: block;
    margin-bottom: 40px;
  }

  .ct-intro-heading {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 16px;
  }
  .ct-intro-en {
    font-family: 'Roboto', sans-serif;
    font-size: 56px;
    font-weight: 500;
    color: var(--ct-text);
    letter-spacing: 0.02em;
    line-height: 1;
  }
  .ct-intro-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 21px;
    font-weight: 400;
    color: var(--ct-text);
    letter-spacing: 0.05em;
  }
  .ct-intro-lead {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--ct-text);
    line-height: 1.9;
    margin: 0 0 16px;
  }
  .ct-intro-tel {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .ct-intro-tel span,
  .ct-intro-tel-link {
    font-family: 'Roboto', sans-serif;
    font-size: 21px;
    font-weight: 500;
    color: var(--ct-text);
    letter-spacing: 0.05em;
    text-decoration: none;
  }
  .ct-intro-tel-link:hover { opacity: 0.7; }
}

/* =========================================
   SP (767px以下)
   ========================================= */
@media (max-width: 767px) {
  .ct-breadcrumb-bar {
    margin-top: 80px;
    height: 44px;
    padding: 0 20px;
  }

  .ct-right { padding: 32px 20px 80px; }

  .ct-intro-en  { font-size: 36px; }
  .ct-intro-jp  { font-size: 16px; }
  .ct-intro-lead { font-size: 14px; }
  .ct-intro-tel span { font-size: 22px; }

  .ct-field {
    flex-direction: column;
    /* stretch: 子要素（label-wrap / input-wrap）をコンテナ幅いっぱいに広げる */
    align-items: stretch;
    gap: 8px;
    padding: 12px 0;
  }
  .ct-label-wrap { padding-top: 0; flex: none; }

  /* 縦並び時: インライン入力（電話番号）は全幅に */
  .ct-inline-wrap { flex-wrap: nowrap; }
  .ct-inline-wrap .ct-input { flex: 1; width: auto; }
  .ct-note { padding-top: 0; white-space: normal; font-size: 11px; }

  /* 縦並び時: 郵便番号の入力は検索ボタンと並べたまま伸ばす */
  .ct-postal-wrap { flex-wrap: nowrap; }
  .ct-postal-wrap .ct-input { flex: 1; width: auto; min-width: 0; }

  .ct-btn-search img { width: 18px; height: 18px; }
  .ct-radio-group  { gap: 16px; padding-top: 4px; }
  .ct-checkbox-group { gap: 14px; padding-top: 4px; }
  .ct-privacy-label  { padding-top: 4px; }
  .ct-btn-submit { width: 100%; }
}
