/* ============================================
   宅配買取の流れ：全体ラッパー
============================================ */
.takuhai-flow-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 40px;
    box-sizing: border-box;
}

/* ============================================
   見出し（店頭買取と統一）
============================================ */
.takuhai-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;
}

.takuhai-flow-heading {
    text-align: center;
}

.takuhai-flow-lead {
    font-size: 16px;
    color: #4b2e05;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ============================================
   2列グリッドレイアウト（宅配はSTEP4なので2列×2行）
============================================ */
.takuhai-flow-steps {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ============================================
   STEPカード（店頭買取と同じ）
============================================ */
.takuhai-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画像（高さ統一） */
.takuhai-flow-step-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.takuhai-flow-step-image img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

/* STEPラベル */
.takuhai-flow-step-label {
    font-size: 20px;
    font-weight: 700;
    color: #c2a765;
    text-align: center;
    height: 32px;
    line-height: 32px;
    margin-bottom: 10px;
}

/* STEPタイトル（高さ統一） */
.takuhai-flow-step-title {
    font-size: 20px;
    font-weight: 700;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b2e05;
    text-align: center;
    margin-bottom: 10px;
}

/* Lightningのタイトル装飾を無効化 */
.takuhai-flow-step-title::before,
.takuhai-flow-step-title::after {
    content: none !important;
}

/* STEP本文 */
.takuhai-flow-step-text {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    color: #333;
}

/* 下の仕切り線 */
.takuhai-flow-step::after {
    content: "";
    display: block;
    width: 90%;
    height: 1px;
    background: #e0e0e0;
    margin: 20px auto 0;
}

/* ============================================
   スマホ対応
============================================ */
@media (max-width: 768px) {
    .takuhai-flow-steps {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   宅配買取フォームボタン
============================================ */
.takuhai-form-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #b89324 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.05em;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: 0.2s ease;
    border: none;
    cursor: pointer;
}

.takuhai-form-btn:hover {
    background: linear-gradient(135deg, #e3c45a 0%, #c9a84a 100%);
    transform: translateY(-2px);
}

/* ============================================
   宅配買取フォーム（モーダルの中身）のデザイン
============================================ */
.takuhai-form-section {
    background: #fff;
    border: 2px solid #c2a765;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.takuhai-form-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #4b2e05;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c2a765;
}

.takuhai-form-section input[type="text"],
.takuhai-form-section input[type="email"],
.takuhai-form-section input[type="tel"],
.takuhai-form-section input[type="date"],
.takuhai-form-section textarea,
.takuhai-form-section select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d8c9a7;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fdfbf7;
    margin-bottom: 14px;
}

.takuhai-form-submit input[type="submit"] {
    background: linear-gradient(135deg, #d4af37 0%, #b89324 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

/* ============================================
   モーダルの表示設定
============================================ */
.takuhai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.takuhai-modal-container {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
}

.takuhai-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}
/* 規約アコーディオン */
.takuhai-terms-content {
    display: none;
}

.takuhai-terms-box.open .takuhai-terms-content {
    display: block;
}