/* 洗練された縦型フローセクション */
.flow-section {
    padding: 70px 0;
    background: #FFFFFF;
}

.section-badge-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    background: linear-gradient(135deg, #87CEEB 0%, #5DADE2 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 1px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3);
    text-transform: uppercase;
}

.flow-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.flow-title-accent {
    background: linear-gradient(135deg, #4FA5E6 0%, #5CB8E6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.flow-timeline {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.flow-step {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    background: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

/* CTAと同じシルバーキラキラ効果 */
.flow-step::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: flow-silver-shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* ステップ01: 0秒後に開始 */
.flow-step:nth-child(1)::before {
    animation-delay: 0s;
}

/* ステップ02: 1秒後に開始 */
.flow-step:nth-child(2)::before {
    animation-delay: 1s;
}

/* ステップ03: 2秒後に開始 */
.flow-step:nth-child(3)::before {
    animation-delay: 2s;
}

@keyframes flow-silver-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* コンテンツを前面に */
.flow-step > * {
    position: relative;
    z-index: 2;
}

.flow-step-number-box {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #87CEEB 0%, #6BB6EA 25%, #5DADE2 50%, #6BB6EA 75%, #87CEEB 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 8px 25px rgba(93, 173, 226, 0.35);
    position: relative;
}

.flow-step-number-box::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.3), rgba(93, 173, 226, 0.3));
    z-index: -1;
    filter: blur(10px);
}

/* キラーンアニメーション（左から右へ光が流れる） */
.flow-step-number-box::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -150%;
    width: 50%;
    height: 120%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
}

/* ステップ01: 0.5秒後に開始 */
.flow-step:nth-child(1) .flow-step-number-box::before {
    animation: shine 0.8s ease-out 0.5s 1;
}

/* ステップ02: 1.3秒後に開始 */
.flow-step:nth-child(2) .flow-step-number-box::before {
    animation: shine 0.8s ease-out 1.3s 1;
}

/* ステップ03: 2.1秒後に開始 */
.flow-step:nth-child(3) .flow-step-number-box::before {
    animation: shine 0.8s ease-out 2.1s 1;
}

@keyframes shine {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

.flow-step-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.flow-step-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.flow-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.flow-step-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    letter-spacing: 0.3px;
}

.flow-step-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.flow-step-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #87CEEB 0%, #6BB6EA 25%, #5DADE2 50%, #6BB6EA 75%, #87CEEB 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.flow-step-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: flow-button-shine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes flow-button-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.flow-step-button > * {
    position: relative;
    z-index: 2;
}

.flow-step-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 173, 226, 0.4);
}

.flow-step-button svg {
    transition: transform 0.3s ease;
}

.flow-step-button:hover svg {
    transform: translateX(3px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .flow-section {
        padding: 50px 0;
    }

    .flow-header {
        margin-bottom: 35px;
    }

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

    .flow-subtitle {
        font-size: 1rem;
    }

    .flow-timeline {
        gap: 20px;
    }

    .flow-step-header {
        gap: 20px;
        margin-bottom: 18px;
    }

    .flow-step-number-box {
        width: 80px;
        height: 80px;
    }

    .flow-step-label {
        font-size: 0.65rem;
    }

    .flow-step-number {
        font-size: 2rem;
    }

    .flow-step-card {
        padding: 28px 30px;
    }

    .flow-step-title {
        font-size: 1.3rem;
    }

    .flow-step-description {
        font-size: 0.9rem;
    }
}

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

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

    .flow-subtitle {
        font-size: 0.95rem;
    }

    .flow-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .flow-step-number-box {
        width: 70px;
        height: 70px;
    }

    .flow-step-label {
        font-size: 0.6rem;
    }

    .flow-step-number {
        font-size: 1.8rem;
    }

    .flow-step-card {
        padding: 25px;
    }

    .flow-step-title {
        font-size: 1.15rem;
    }

    .flow-step-description {
        font-size: 0.88rem;
    }
}
