/* ============================================
   店頭買取の流れ：全体ラッパー
============================================ */
.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;
    max-width: none !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;
    margin-bottom: 15px;
}

.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;
    margin: 0 0 10px;
    color: #4b2e05;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 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;
    }
}