.flow {
    padding: 80px 0;
    background: #fff;
}

.flow-header {
    text-align: center;
    margin-bottom: 30px;
}

.flow-subtitle {
    font-size: 15px;
    color: #0099B0;
    margin-bottom: 5px;
}

.flow-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
}

.flow-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 2;
    color: #333;
    padding: 0 20px;
}

.flow-items {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.flow-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

/* 偶数番目のアイテムは画像を右に */
.flow-item:nth-child(even) {
    flex-direction: row;
}

/* 奇数番目のアイテムは画像を左に */
.flow-item:nth-child(odd) {
    flex-direction: row-reverse;
}

/* 奇数番目のアイテムのコンテンツ部分の調整 */
.flow-item:nth-child(odd) .flow-content {
    padding-right: 0;
    padding-left: 40px;
}

/* 奇数番目のアイテムの数字の位置調整 */
.flow-item:nth-child(odd) .flow-number {
    margin-right: 0;
}

.flow-number {
    color: #0099B0;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    margin-right: 30px;
    opacity: 0.6;
}

.flow-content {
    flex: 1;
    padding-right: 40px;
}

.flow-item-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #0099B0;
    position: relative;
    padding-bottom: 15px;
}

.flow-item-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 2px;
    background: #0099B0;
}

.flow-item-description {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.flow-image {
    width: 45%;
}

.flow-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .flow {
        padding: 40px 0;
    }

    .flow-description {
        padding: 0 30px;
        font-size: 14px;
        line-height: 1.8;
    }

    .flow-description br {
        display: none;
    }

    .flow-item,
    .flow-item:nth-child(odd),
    .flow-item:nth-child(even) {
        flex-direction: column;
    }

    .flow-item:nth-child(odd) .flow-content {
        padding-left: 0;
    }

    .flow-item:nth-child(odd) .flow-number {
        margin-left: 0;
        margin-right: 20px;
    }

    .flow-image {
        width: 100%;
    }

    .flow-image img {
        height: 200px;
    }

    .flow-number {
        font-size: 32px;
        margin-right: 20px;
    }

    .flow-item-title {
        font-size: 20px;
    }
}

@media (max-width: 390px) {
    .flow-title {
        font-size: 22px;
        line-height: 1.6;
    }

    .flow-subtitle {
        font-size: 13px;
    }

    .flow-description {
        padding: 0 25px;
        font-size: 13px;
    }
} 