/* Flow Page Styles */

.flow-container {
    padding: 80px 0;
    overflow: hidden;
    /* for decorative line */
}

.flow-list {
    /* max-width: 900px; */
    width: 75%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}


/* ステップ間をつなぐ縦線 */

.flow-list::before {
    content: '';
    position: absolute;
    left: 48px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: #e0e0e0;
    z-index: -1;
    opacity: 0.5;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.flow-item:last-child {
    margin-bottom: 0;
}


/* 偶数番目のステップで画像とテキストを反転 */

.flow-item:nth-child(even) {
    flex-direction: row-reverse;
}

.flow-item__content {
    flex: 1;
}

.flow-item__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.flow-item__number {
    width: clamp(80px, 6.2vw, 160px);
    height: clamp(80px, 6.2vw, 160px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #1a2a3a;
    border-radius: 50%;
    font-size: clamp(48px, 3.7vw, 96px);
    font-weight: bold;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #1a2a3a;
}

.flow-item__title {
    font-size: clamp(28px, 2.1vw, 40px);
    font-weight: bold;
    color: #1a2a3a;
    margin: 0;
}

.flow-item__desc {
    font-size: clamp(16px, 1.25vw, 32px);
    line-height: 1.8;
    margin: 0;
    font-weight: 600;
}

.flow-item__image {
    flex: 0 0 45%;
    position: relative;
}

.flow-item__image img {
    width: 100%;
    height: auto;
    /* border: 2px solid #0A324C; */
    /* 変形した形 - 長方形寄りの丸系で少しうねうねした感じ */
    clip-path: polygon( 15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
    background-color: #1ab3a3;
    /* 仮の背景色 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), /* 縁がかすれる表現 */
    0 0 0 1px rgba(10, 50, 76, 0.3), 0 0 0 2px rgba(10, 50, 76, 0.2), 0 0 0 3px rgba(10, 50, 76, 0.1), 0 0 0 4px rgba(10, 50, 76, 0.05);
    /* 微細な影で縁がかすれる効果 */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    aspect-ratio: 5/4;
    object-fit: cover;
}


/* 各画像に少し異なる変形を加える */

.flow-item:nth-child(1) .flow-item__image img {
    clip-path: polygon( 12% 0%, 88% 0%, 100% 18%, 100% 82%, 88% 100%, 12% 100%, 0% 82%, 0% 18%);
}

.flow-item:nth-child(2) .flow-item__image img {
    clip-path: polygon( 18% 0%, 82% 0%, 100% 12%, 100% 88%, 82% 100%, 18% 100%, 0% 88%, 0% 12%);
}

.flow-item:nth-child(3) .flow-item__image img {
    clip-path: polygon( 10% 0%, 90% 0%, 100% 20%, 100% 80%, 90% 100%, 10% 100%, 0% 80%, 0% 20%);
}

.flow-item:nth-child(4) .flow-item__image img {
    clip-path: polygon( 20% 0%, 80% 0%, 100% 10%, 100% 90%, 80% 100%, 20% 100%, 0% 90%, 0% 10%);
}

.flow-item:nth-child(5) .flow-item__image img {
    clip-path: polygon( 14% 0%, 86% 0%, 100% 16%, 100% 84%, 86% 100%, 14% 100%, 0% 84%, 0% 16%);
}

.flow-item:nth-child(6) .flow-item__image img {
    clip-path: polygon( 16% 0%, 84% 0%, 100% 14%, 100% 86%, 84% 100%, 16% 100%, 0% 86%, 0% 14%);
}


/* Responsive */

@media (max-width: 960px) {
    .flow-container {
        padding: 40px 16px;
        margin-bottom: 200px;
    }
    .flow-title {
        font-size: 2rem;
    }
    .flow-step {
        flex-direction: column;
        gap: 24px;
    }
    .flow-step__number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .flow-step__content {
        width: 100%;
    }
    .flow-step__title {
        font-size: 1.3rem;
    }
    .flow-step__description {
        font-size: 1rem;
    }
}


/* PC */

@media (min-width: 1025px) {
    body.page-flow {
        /* PC styles here */
    }
}


/* Tablet */

@media (min-width: 768px) and (max-width: 1024px) {
    body.page-flow {
        /* Tablet styles here */
    }
}


/* Smartphone */

@media (max-width: 480px) {
    .flow-container {
        padding: 40px 0;
    }
    .flow-list {
        width: 100%;
        padding: 0 16px 0 50px;
    }
    /* 縦線を調整 */
    .flow-list::before {
        left: 20px;
        top: 30px;
        bottom: 30px;
    }
    .flow-item {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 48px;
        padding-left: 0;
        position: relative;
        width: 83%;
    }
    /* 偶数番目の反転を解除 */
    .flow-item:nth-child(even) {
        flex-direction: column;
    }
    .flow-item__header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }
    .flow-item__number {
        width: 60px;
        height: 60px;
        font-size: 24px;
        border: 3px solid #fff;
        box-shadow: 0 0 0 2px #1a2a3a;
        /* position: absolute; */
        left: 0;
        top: 0;
    }
    .flow-item__title {
        font-size: 20px;
        line-height: 1.3;
        margin-left: 0;
    }
    .flow-item__desc {
        font-size: 15px;
        line-height: 1.8;
    }
    .flow-item__image {
        flex: none;
        width: 100%;
    }
    .flow-item__image img {
        /* 変形した形 - 長方形寄りの丸系で少しうねうねした感じ */
        clip-path: polygon( 15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), /* 縁がかすれる表現 */
        0 0 0 1px rgba(10, 50, 76, 0.3), 0 0 0 2px rgba(10, 50, 76, 0.2), 0 0 0 3px rgba(10, 50, 76, 0.1), 0 0 0 4px rgba(10, 50, 76, 0.05);
        /* 微細な影で縁がかすれる効果 */
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    }
}