/* 導入フローセクション */
.flow-section {
    background-color: #F8F9FA;
    padding: 5vw 0;
}

.flow-section .container {
    max-width: 80vw;
    margin: 0 auto;
}

/* 見出し */
.flow-heading {
    font-size: 1.8vw;
    font-weight: bold;
    color: var(--black);
    text-align: center;
    margin-bottom: 3vw;
    line-height: 1.3;
}

/* 本文 */
.flow-main-text {
    text-align: center;
    margin-bottom: 4vw;
    max-width: 70vw;
    margin-left: auto;
    margin-right: auto;
}

.flow-main-text p {
    font-size: 1.1vw;
    color: var(--black);
    line-height: 1.6;
    margin: 0;
}

.flow-highlight {
    color: #F47F2D;
    font-weight: 600;
}

/* フローエリア */
.flow-steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3vw;
    max-width: 75vw;
    margin: 0 auto;
}

/* ステップカラム */
.flow-step {
    width: 15vw;
    height: 31vw;
    background-color: white;
    border-radius: 1vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2vw 1.3vw 1.5vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* フローサブタイトル */
.flow-step-subtitle {
    position: absolute;
    top: -1vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FAC922;
    color: white;
    padding: 0.8vw 2vw;
    border-radius: 0.8vw;
    font-size: 1vw;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
}

/* フロータイトル */
.flow-step-title {
    font-size: 1.4vw;
    font-weight: bold;
    color: #F47F2D;
    margin: 1.5vw 0 1vw;
    height: 3.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
}

/* フロー画像 */
.flow-step-image {
    width: 90%;
    height: auto;
    margin-bottom: 1.5vw;
    border-radius: 0.5vw;
}

/* フロー本文 */
.flow-step-text {
    font-size: 1.1vw;
    color: var(--black);
    line-height: 1.5;
    text-align: left;
    margin: 0;
    font-weight: 400;
}

/* 矢印 */
.flow-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 1vw 0 1vw 1.5vw;
    border-color: transparent transparent transparent #FAC922;
    flex-shrink: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .flow-section {
        padding: 15vw 0;
    }
    
    .flow-section .container {
        max-width: 90vw;
    }
    
    .flow-heading {
        font-size: 5.4vw;
        margin-bottom: 9vw;
    }
    
    .flow-main-text {
        max-width: 90vw;
        margin-bottom: 12vw;
    }
    
    .flow-main-text p {
        font-size: 3.3vw;
    }
    
    .flow-steps-container {
        flex-direction: column;
        gap: 3vw;
        max-width: 90vw;
    }
    
    .flow-step {
        width: 100%;
        height: auto;
        min-height: 45vw;
        padding: 9vw 4.5vw 6vw;
        border-radius: 3vw;
        display: grid;
        grid-template-columns: 1fr 2fr;
        grid-template-rows: auto auto 1fr;
        gap: 1.5vw;
        align-items: start;
    }
    
    .flow-step-subtitle {
        top: -3vw;
        padding: 2.4vw 6vw;
        border-radius: 2.4vw;
        font-size: 3vw;
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .flow-step-title {
        font-size: 4.2vw;
        margin: 2.25vw 0 1.5vw;
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .flow-step-image {
        width: 100%;
        margin-bottom: 0;
        border-radius: 1.5vw;
        grid-column: 1;
        grid-row: 3;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .flow-step-text {
        font-size: 3.3vw;
        text-align: left;
        grid-column: 2;
        grid-row: 3;
        display: block;
        margin: 0;
        padding: 0 0 0 3vw;
        align-self: center;
    }
    
    /* SP版でタイトルの改行を無効化 */
    .flow-step-title br {
        display: none;
    }
    
    /* SP版の矢印（下向き） */
    .flow-arrow {
        border-width: 3vw 3vw 0 3vw;
        border-color: #FAC922 transparent transparent transparent;
        align-self: center;
    }
}