/* ============================================
   出張買取の流れ：全体ラッパー（店頭買取と同一）
============================================ */
.jj-flow-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 40px;
    box-sizing: border-box;
}

/* ============================================
   見出し（買取実績と統一）
============================================ */
.jj-flow-heading h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 10px;
    margin: 0 auto 20px;
}

.jj-flow-heading {
    text-align: center;
}

.jj-flow-lead {
    font-size: 16px;
    color: #4b2e05;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ============================================
   3列グリッドレイアウト（店頭買取と同一）
============================================ */
.jj-flow-steps {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ============================================
   STEPカード（店頭買取と同一）
============================================ */
.jj-flow-step {
    display: block !important;
    width: 100% !important;
    background: #fff !important;
    border: 2px solid #c2a765 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    position: relative;
    overflow: hidden;
}

/* STEP画像（高さ統一） */
.jj-flow-step-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jj-flow-step-image img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

/* STEPラベル */
.jj-flow-step-label {
    font-size: 20px;
    font-weight: 700;
    color: #c2a765;
    text-align: center;
    height: 32px;
    line-height: 32px;
    margin-bottom: 10px;
}

/* STEPタイトル */
.jj-flow-step-title {
    font-size: 20px;
    font-weight: 700;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b2e05;
    margin-bottom: 10px;
}

/* Lightningのタイトル装飾を無効化 */
.jj-flow-step-title::before,
.jj-flow-step-title::after {
    content: none !important;
    display: none !important;
}

/* STEP本文 */
.jj-flow-step-text {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    color: #333;
}

/* ============================================
   下の仕切り線（店頭買取と同一）
============================================ */
.jj-flow-step::after {
    content: "";
    display: block;
    width: 90%;
    height: 1px;
    background: #e0e0e0;
    margin: 20px auto 0;
}

/* ============================================
   スマホ対応（1列）
============================================ */
@media (max-width: 768px) {
    .jj-flow-steps {
        grid-template-columns: 1fr !important;
    }
}
/* 
============================================
   注意書きブロック
============================================ */
.jj-caution-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 20px;
  background: #fff;
  border: 2px solid #c2a765;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.jj-caution-icon {
  text-align: center;
}

.jj-caution-icon img {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
}

.jj-caution-title {
  font-size: 22px;
  font-weight: 700;
  color: #4b2e05;
  margin-bottom: 10px;
  text-align: center;
}

.jj-caution-text {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin: 0;
  text-align: left;
}

/* ============================================
   出張買取対応エリア検索セクション（カラー個別対応）
============================================ */
.store-area-search {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 16px;
  font-family: sans-serif;
  box-sizing: border-box;
}

.store-area-search h2 {
  text-align: center;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 8px;
  color: #333;
}

.search-desc {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin-bottom: 16px;
}

.area-search-box {
  margin-bottom: 20px;
  text-align: center;
}

.area-search-box input {
  width: 100%;
  max-width: 500px;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.area-search-box input:focus {
  border-color: #007bff;
}

/* 検索結果・判定ボックス */
.search-result-box {
  max-width: 500px;
  margin: 0 auto 24px;
  background: #FFF4D6;
  border: 2px solid #d8aa35;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
}

.search-result-box.error-box {
  background: #f8d7da;
  border-color: #f5c6cb;
}

.result-message {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
}

.result-action {
  margin-top: 12px;
}

.store-link-btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.store-link-btn:hover {
  background: #0056b3;
}

/* エリアカードグリッド */
.area-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.area-group {
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  transition: all 0.3s;
  border: 2px solid;
}

.area-group h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid;
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.area-list li {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  color: #444;
  box-sizing: border-box;
  transition: all 0.2s;
}

/* 画像に合わせたエリア別カラー配色 */
/* 兵庫（ピンク系） */
.area-group[data-group="兵庫"] {
  background: #fff5f7;
  border-color: #f3a6b8;
}
.area-group[data-group="兵庫"] h3 {
  color: #a63a50;
  border-bottom-color: #f3a6b8;
}

/* 大阪北（ブルー系） */
.area-group[data-group="大阪北"] {
  background: #f0f7ff;
  border-color: #a5d8ff;
}
.area-group[data-group="大阪北"] h3 {
  color: #1c64f2;
  border-bottom-color: #a5d8ff;
}

/* 大阪南（オレンジ・ベージュ系） */
.area-group[data-group="大阪南"] {
  background: #fcf8f0;
  border-color: #e6c280;
}
.area-group[data-group="大阪南"] h3 {
  color: #8c6d1f;
  border-bottom-color: #e6c280;
}

/* 奈良（グリーン系） */
.area-group[data-group="奈良"] {
  background: #f1f8f5;
  border-color: #a9dfbf;
}
.area-group[data-group="奈良"] h3 {
  color: #2e7d32;
  border-bottom-color: #a9dfbf;
}

/* 和歌山（パープル系） */
.area-group[data-group="和歌山"] {
  background: #f8f5ff;
  border-color: #d8b4fe;
}
.area-group[data-group="和歌山"] h3 {
  color: #7c3aed;
  border-bottom-color: #d8b4fe;
}

/* 検索ヒット時のハイライト */
.area-group.card-highlight {
  box-shadow: 0 0 10px rgba(216, 170, 53, 0.5);
}

.area-list li.highlight {
  background: #FFF4D6;
  border: 2px solid #d8aa35;
  font-weight: bold;
  color: #856404;
}

/* エリア外補足ノート */
.area-other-note {
  margin-top: 24px;
  background: #fdfbf7;
  border: 1px dashed #d8aa35;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
}

.area-other-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.area-other-note span {
  font-weight: bold;
  color: #007bff;
}

/* ============================================
   スマホ向けレスポンシブ調整（画面幅768px以下）
============================================ */
@media (max-width: 768px) {
  .lp-header-banner img {
    height: 180px; /* スマホではさらに高さを抑えたい場合はここを調整（例: 160px〜200px） */
  }

  .flow-3steps h2,
  .merit-section h2,
  .store-area-search h2 {
    font-size: 22px !important;
  }

  .step-box,
  .merit-item {
    flex-direction: column;
    gap: 10px;
  }

  .step-num {
    font-size: 32px;
  }

  .step-text h3,
  .merit-item h3 {
    font-size: 18px !important;
  }

  .step-text p,
  .merit-item p {
    font-size: 15px !important;
  }

  .jj-caution-wrapper {
    padding: 20px 15px;
    margin: 20px 10px;
  }

  .jj-caution-title {
    font-size: 18px;
  }

  .jj-caution-text {
    font-size: 14px;
  }

  .area-container {
    grid-template-columns: 1fr;
  }
 
}
/* モーダルの背景（半透明の黒幕） */
.modal-overlay {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* モーダルの中身（白いボックス） */
.modal-content {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh; /* スマホからはみ出さないように縦スクロール可能に */
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* 閉じるボタン（×印） */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #666;
}
.modal-close-btn:hover {
  color: #000;
}

/* ============================================
   規約アコーディオン・同意チェック追加分
============================================ */

/* アコーディオン開閉ボタン */
.terms-accordion-btn {
    width: 100%;
    background: #fdfbf7;
    border: 1px solid #c2a765;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: bold;
    color: #4b2e05;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.terms-accordion-btn:hover {
    background: #f5eedc;
}

/* アコーディオンの中身（開いた時の枠） */
.takuhai-terms-content {
    display: none; /* 初期状態は非表示（元のCSSにありますが念のため） */
    border: 1px solid #d8c9a7;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    background: #fff;
}

/* 規約テキストのスクロールエリア */
.terms-scroll-area {
    height: 160px;
    overflow-y: auto;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    padding-right: 10px;
}

/* スクロールバーの装飾（お好みで） */
.terms-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.terms-scroll-area::-webkit-scrollbar-thumb {
    background-color: #c2a765;
    border-radius: 3px;
}

/* 同意チェックボックス周り */
.consent-box {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #d8c9a7;
    font-size: 16px;
    font-weight: bold;
    color: #4b2e05;
}

/* Contact Form 7のチェックボックスを少し大きくして押しやすくする */
.consent-box input[type="checkbox"] {
    transform: scale(1.3);
    margin-right: 10px;
    cursor: pointer;
}
/* ============================================
   最下部の申し込みボックス（#gps-box）の幅・デザイン調整
============================================ */
#gps-box {
    width: 100% !important;
    max-width: 550px !important;
    margin: 30px auto !important;
    padding: 20px !important;
    background: #faf7f2 !important;
    border: 1px solid #e2d7be !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 15px rgba(139,115,85,0.08) !important;
    box-sizing: border-box !important;
}
/* Contact Form 7の送信ボタンを中央揃えにする */

.modal-form-body input[type="submit"].wpcf7-submit {

    display: block;

    margin: 20px auto 0 auto; /* 上部に余白をあけ、左右の余白を自動調整して中央配置 */

} 

