.hero-section {
    background-color: var(--company-white);
}

.works-list-section {
    background-color: #f7fcfe;
    padding: 4rem 2rem;
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw 2vw;
    max-width: 1100px;
    margin: 0 auto;
}

.waves {
    background-color: var(--company-white);
}

.service-title {
    color: var(--color-navy);
    font-family: var(--font-archetype);
}

.service-subtitle {
    color: var(--color-navy);
}

.btn-secondary {
    background-color: var(--color-navy);
    color: var(--company-white);
}

.flow-section {
    background: #fff;
    padding: 5vw 0 7vw 0;
    text-align: center;
}

.flow-title {
    font-family: var(--font-archetype);
    font-size: 2.8rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.flow-subtitle {
    color: var(--color-navy);
    font-size: 1rem;
    margin-bottom: 3vw;
    font-family: var(--font-japanese);
}

.flow-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    text-align: left;
}

.flow-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3vw;
    position: relative;
}

.flow-step-number {
    width: 48px;
    height: 48px;
    background: var(--color-navy);
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2vw;
    font-family: var(--font-archetype);
    margin-top: 0.2rem;
    position: relative;
    z-index: 2;
    padding-left: 0.1rem;
}

.flow-step-number::after {
    content: "";
    position: absolute;
    top: 140%;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10vw;
    background-image: linear-gradient(to bottom, #333 50%, transparent 50%);
    background-size: 3px 44px;
    background-repeat: repeat-y;
    z-index: 1;
}


/* モバイル：ステップ1から2への点線 */


/* .flow-list li:nth-child(1) .flow-step-number::after {
    height: calc(6vw + 15px);
} */


/* モバイル：ステップ2から3への点線 */

.flow-list li:nth-child(2) .flow-step-number::after {
    height: 10vw;
}


/* モバイル：ステップ3から4への点線 */

.flow-list li:nth-child(3) .flow-step-number::after {
    height: 8vw;
}

.flow-list li:last-child .flow-step-number::after {
    display: none;
}

.flow-step-number.step3 {
    background: #e78c6c;
    color: #fff;
}

.flow-step-content {
    flex: 1;
}

.flow-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    font-family: var(--font-japanese);
}

.flow-step-desc {
    font-size: 1rem;
    color: var(--color-navy);
    font-family: var(--font-japanese);
    line-height: 1.8;
}

.works-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 12vw 10vw;
    margin: 0 auto;
    justify-content: center;
}

.work-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-item-pc {
    width: 28vw;
}

.work-item-sp {
    width: 25%;
    min-width: 60px;
    max-width: 100px;
}


/* Pagination Styles */

.works-pagination {
    width: 40%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    padding: 1rem 0;
    background-color: #ffffff;
}

.works-prev,
.works-next {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
}

.works-prev i {
    margin-right: 0.5rem;
}

.works-next i {
    margin-left: 0.5rem;
}

.works-prev:hover,
.works-next:hover {
    background-color: #f5f5f5;
    color: #333;
}

.works-prev:disabled,
.works-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.works-page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
}

.page-number:hover {
    background-color: #f0f0f0;
    color: #333;
}

.page-number.active {
    border: 1px solid #333;
    border-radius: 50%;
    font-weight: 700;
}

@media (max-width: 768px) {
    /* .works-page .header-content {
        flex-direction: column;
    } */
    .works-page .service-title {
        font-size: 3rem;
    }
    /* .works-page .button-group {
        flex-direction: column;
    } */
    /* .works-page .service-section {
        padding: 2rem 1rem;
    } */
    /* .works-page .hero-section .header-content {
        flex-direction: column;
    } */
    .title-area {
        color: #333;
        margin-bottom: 3rem;
        text-align: center;
    }
    .title-area>.title {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }
    .title-area>.sub-title {
        font-family: var(--font-japanese);
        font-size: 0.8rem;
    }
    .works-grid {
        grid-template-columns: 1fr;
        gap: 4vw 0;
        padding: 0 5%;
    }
    .work-item {
        width: 100%;
        justify-self: center;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: flex-start;
    }
    .work-item-pc {
        /* width: 80vw;
        max-width: 300px; */
        width: 100%;
    }
    .works-list-section .navigation-wrapper {
        width: 100%;
    }
    .caption-area {
        font-family: var(--font-japanese);
        margin: 1rem 0 2rem 0;
    }
    .caption-area>.caption {
        font-size: 1.2rem;
        font-weight: 600;
    }
    .caption-area>.account {
        font-size: 0.8rem;
    }
    .works-page .hero-section .service-title {
        font-size: 3rem;
    }
    .works-page .hero-section {
        padding: 2rem 1rem;
    }
    .flow-section {
        width: 100%;
        padding: 8vw 0 10vw 0;
    }
    .flow-title {
        font-size: 2rem;
        margin-bottom: 0;
    }
    .flow-subtitle {
        margin-bottom: 12vw;
    }
    .flow-list {
        width: 80%;
    }
    .flow-step-number {
        min-width: 36px;
        min-height: 36px;
        font-size: 1.5rem;
        margin-right: 4vw;
        padding-left: 0rem;
        line-height: 1;
    }
    .flow-step-number::after {
        width: 3px;
        height: 44vw;
        background-size: 3px 40px;
    }
    .flow-list li:nth-child(2) .flow-step-number::after {
        height: 44vw;
    }
    /* モバイル：ステップ3から4への点線 */
    .flow-list li:nth-child(3) .flow-step-number::after {
        height: 44vw;
    }
    .flow-list li:nth-child(4) .flow-step-number::after {
        height: 44vw;
    }
    .flow-step-title {
        font-size: 1.1rem;
    }
    .flow-step-desc {
        font-size: 0.95rem;
    }
    .works-pagination {
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
    }
    .works-prev,
    .works-next {
        font-size: 0.8rem;
        min-width: 40px;
        height: 40px;
    }
    .page-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}