/*========================================================
ファイル名：flow.css
内容：導入の流れ（PC横／SP縦タイムライン）
========================================================*/
.flow-section {
    padding: 42px 0;
    background: #f8fbff;
}

.flow-heading {
    margin-bottom: 28px;
}

.flow-title {
    margin: 0 0 10px;
    color: #0b3d78;
    font-size: 2.35rem;
    font-weight: 800;
}

.flow-subtitle {
    margin: 0;
    color: #596779;
    font-size: 1.05rem;
}

.flow-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 52px;
}

.flow-timeline::before {
    position: absolute;
    top: 22px;
    right: 10%;
    left: 10%;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, #1769df, #4b8dff);
    border-radius: 999px;
}

.flow-item {
    position: relative;
    min-width: 0;
}

.flow-number {
    position: absolute;
    z-index: 2;
    top: -52px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: #0d6efd;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(13, 110, 253, .28);
    font-size: 1.25rem;
    font-weight: 800;
    transform: translateX(-50%);
}

.flow-card {
    height: 100%;
    padding: 18px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8ef;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(23, 51, 88, .09);
}

.flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 175px;
    overflow: hidden;
}

.flow-icon img {
    display: block;
    width: 250px;
    height: 175px;
    object-fit: contain;
}

.flow-step {
    display: block;
    margin-bottom: 3px;
    color: #138842;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.flow-card-title {
    margin: 0 0 11px;
    padding-bottom: 10px;
    color: #07813c;
    border-bottom: 2px solid #dbe7f5;
    font-size: 1.35rem;
    font-weight: 800;
}

.flow-card-text {
    margin: 0;
    color: #344257;
    font-size: .92rem;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 991px) and (min-width: 768px) {
    .flow-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 58px 20px;
    }

    .flow-timeline::before {
        display: none;
    }

    .flow-number {
        top: -38px;
    }
}

@media (max-width: 767px) {
    .flow-section {
        padding: 28px 0;
    }

    .flow-heading {
        margin-bottom: 18px;
    }

    .flow-title {
        font-size: 1.8rem;
    }

    .flow-subtitle {
        color: #294c72;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.65;
        text-align: left;
    }

    .flow-subtitle span {
        display: block;
        white-space: nowrap;
    }

    .flow-timeline {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 0 0 43px;
    }

    .flow-timeline::before {
        top: 24px;
        bottom: 24px;
        left: 18px;
        width: 4px;
        height: auto;
        background: linear-gradient(180deg, #1769df, #4b8dff);
    }

    .flow-number {
        top: 50%;
        left: -43px;
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
        transform: translateY(-50%);
    }

    .flow-card {
        display: grid;
        grid-template-columns: 135px 1fr;
        align-items: center;
        gap: 13px;
        min-height: 150px;
        padding: 16px;
        text-align: left;
    }

    .flow-icon {
        width: 135px;
        height: 130px;
        overflow: hidden;
    }

    .flow-icon img {
        width: 195px;
        height: 130px;
        max-width: none;
    }

    .flow-card-title {
        margin-bottom: 7px;
        padding-bottom: 7px;
        font-size: 1.15rem;
    }

    .flow-card-text {
        font-size: .88rem;
        line-height: 1.6;
    }
}

@media (max-width: 380px) {
    .flow-timeline {
        padding-left: 37px;
    }

    .flow-number {
        left: -37px;
        width: 38px;
        height: 38px;
    }

    .flow-card {
        grid-template-columns: 110px 1fr;
        gap: 10px;
        padding: 14px 12px;
    }

    .flow-icon {
        width: 110px;
        height: 110px;
    }

    .flow-icon img {
        width: 165px;
        height: 110px;
        max-width: none;
    }

    .flow-card-title {
        font-size: 1.02rem;
    }

    .flow-card-text {
        font-size: .82rem;
    }
}
