/* Flow Section Styles */
.flow-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(60px, 8vw + 30px, 153px) clamp(20px, 7vw + 40px, 135px);
    gap: clamp(30px, 2vw + 20px, 70px);
    position: relative;
    background-color: #ffffff;
    background-image: url('../images/flow/dot-pattern.png');
    background-repeat: repeat;
    background-position: 50% 10px;
    background-size: clamp(20px, 2vw + 10px, 40px) clamp(20px, 2vw + 10px, 40px);
    overflow: hidden;
}

.flow-section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 1.5vw + 10px, 30px);
    width: 100%;
}

.flow-steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: clamp(10px, 1vw + 5px, 15px);
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.flow-step-card {
    padding: clamp(30px, 2vw + 20px, 40px) clamp(20px, 1.5vw + 15px, 30px);
    background-color: #EDF2FD;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    flex-basis: 0;
    box-sizing: border-box;
}

.flow-step-card-container {
    display: flex;
    width: 100%;
    max-width: 166px;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: clamp(10px, 1vw + 5px, 16px);
}

.flow-step-title {
    color: #4884ED;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: clamp(18px, 1.2vw + 14px, 24px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.384px;
    margin-bottom: 10px;
}

.flow-step-icon-container {
    border-radius: 50%;
    background: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(80px, 8vw + 40px, 120px);
    height: clamp(80px, 8vw + 40px, 120px);
    padding: clamp(15px, 2vw + 10px, 25px);
    flex-shrink: 0;
    box-sizing: border-box;
}

.flow-step-icon {
    width: clamp(50px, 5vw + 25px, 70px);
    height: clamp(50px, 5vw + 25px, 70px);
    flex-shrink: 0;
    aspect-ratio: 1/1;
}

.flow-step-description {
    color: #142238;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(14px, 1.2vw + 12px, 24px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.384px;
}

/* タブレット対応 (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .flow-section {
        padding: 100px 60px;
    }

    .flow-steps-container {
        gap: 12px;
    }

    .flow-step-card {
        padding: 30px 15px;
        flex-basis: calc(33.333% - 12px);
        /* 3カラムレイアウト */
    }

    .flow-step-icon-container {
        width: 100px;
        height: 100px;
        padding: 20px;
    }

    .flow-step-icon {
        width: 60px;
        height: 60px;
    }

    .flow-step-description {
        font-size: 20px;
        line-height: 24px;
    }
}

/* モバイル対応 (768px以下) */
@media (max-width: 768px) {
    .flow-steps-container {
        flex-direction: column;
        align-items: center;
        gap: clamp(15px, 2vw + 10px, 25px);
    }

    .flow-step-card {
        width: 100%;
        max-width: 300px;
        height: auto;
        flex: none;
        flex-basis: auto;
        /* モバイルでの最大幅を追加 */
        padding: clamp(20px, 3vw + 15px, 30px);
    }

    .flow-step-card-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(10px, 1vw + 5px, 16px);
        height: 100%;
    }

    .flow-step-title {
        margin-bottom: 10px;
        font-size: clamp(16px, 1.2vw + 14px, 20px);
    }

    .flow-step-icon-container {
        width: clamp(80px, 8vw + 40px, 120px);
        height: clamp(80px, 8vw + 40px, 120px);
        margin-bottom: 10px;
    }

    .flow-step-icon {
        width: clamp(50px, 5vw + 25px, 70px);
        height: clamp(50px, 5vw + 25px, 70px);
    }

    .flow-step-description {
        text-align: center;
        font-size: clamp(14px, 1.2vw + 12px, 20px);
    }
}