.top-text-saiyo {
    font-style: normal;
    font-weight: 500;
    font-size: 2.2rem;
    line-height: 164%;
    letter-spacing: 0.12em;
    color: #242328;
    margin-bottom: 8rem;

    @media screen and (max-width: 767px) {
        font-size: 1.4rem;
        line-height: 2.4rem;
        margin-bottom: 6rem;
    }

}

.senpai-section {
    background-color: #E3EFFF;
    padding-top: 11rem;
    padding-bottom: 10rem;

    @media screen and (max-width: 767px) {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.senpai-voice-flex-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;

    .senpai-voice-box {
        width: 100%;
        background-color: #FFFFFF;
        border-radius: 19.7rem;
        display: flex;
        justify-content: center;
        gap: 5.2rem;
        padding: 3.7rem 0;
        align-items: center;
        transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.4s ease;
        border: 1px solid transparent;

        @media screen and (max-width: 767px) {
            padding: 3.5rem 2rem;
            border-radius: 2rem;
            gap: 2rem;
            flex-direction: column;
        }

        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(24, 99, 197, 0.08);
            border-color: rgba(24, 99, 197, 0.1);

            .senpai-pic-txt-container .senpai-pic-container img {
                transform: scale(1.06);
            }
        }

        .senpai-pic-txt-container {

            .senpai-pic-container {
                width: 16.9rem;
                height: 20.8rem;
                margin-bottom: 1rem;
                overflow: hidden;
                border-radius: 1rem;

                & img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: transform 0.6s var(--ease-out-expo);
                }
            }

            .senpai-underimg-txt-container {
                font-family: 'Noto Sans JP';
                font-style: normal;
                font-weight: 700;
                font-size: 1.4rem;
                line-height: 2rem;
                text-align: center;
                letter-spacing: 0.08em;
                color: #242328;

                .date-position-flex-container {
                    display: flex;
                    justify-content: center;
                    gap: 0.5rem;

                    .blue-txt {
                        color: #1863C5;
                    }
                }
            }


        }

        .senpai-box-txt-container {
            max-width: 64.9rem;

            .senpai-title {
                font-family: 'Noto Sans JP';
                font-style: normal;
                font-weight: 700;
                font-size: 2rem;
                line-height: 3.2rem;
                letter-spacing: 0.08em;
                color: #1863C5;
                margin-bottom: 1.6rem;
            }

            .senpai-futsu-txt {
                font-family: 'Noto Sans JP';
                font-style: normal;
                font-weight: 400;
                font-size: 1.6rem;
                line-height: 2.6rem;
                letter-spacing: 0.08em;
                color: #242328;

                @media screen and (max-width: 767px) {
                    font-size: 1.4rem;
                    line-height: 2rem;
                }
            }
        }
    }
}

/* ------------------------------------------- */
/* ギャラリー スライダー (Custom) */
/* ------------------------------------------- */

.gallery-section {
    padding-top: 10rem;
    padding-bottom: 10rem;

    @media screen and (max-width: 767px) {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Référentiel de position pour les flèches */
.gallery-slider-outer {
    position: relative;
    margin-top: 5rem;
}

/* Viewport : clip du track */
.gallery-slider-viewport {
    width: 100%;
    overflow: hidden;
}

/* Track : flex row qui se déplace avec transform */
.gallery-track {
    display: flex;
    align-items: stretch;
    gap: 3.2rem;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Chaque slide */
.gallery-slide {
    flex: 0 0 37.8rem;
    width: 37.8rem;
    opacity: 0.35;
    transition: opacity 0.5s ease;
}

.gallery-slide.is-active {
    opacity: 1;
}

.gallery-slide.no-fade {
    transition: opacity 0s !important;
}

.gallery-slide-img {
    width: 100%;
    height: 26.8rem;
    border-radius: 0.8rem;
    overflow: hidden;
    background-color: #D9D9D9;
}

.gallery-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination — 4.8rem sous les slides */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4.8rem;
}

.gallery-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #CCCCCC;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

.gallery-dot.is-active {
    background-color: #1863C5;
}

/* Flèches — 6.3rem, positionnées par rapport à .gallery-slider-outer */
.gallery-btn {
    position: absolute;
    top: calc(26.8rem / 2 - 6.3rem / 2);
    width: 6.3rem;
    height: 6.3rem;
    border-radius: 50%;
    background-color: #1863C5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(24, 99, 197, 0.25);
    z-index: 10;
    padding: 0;

    @media screen and (max-width: 767px) {
        width: 3.3rem;
        height: 3.3rem;
        top: 0;
        bottom: 0;
        margin: auto;
    }
}

.gallery-btn:hover {
    background-color: #1250a8;
    transform: scale(1.05);
}

.gallery-btn-prev {
    left: 1rem;

    @media screen and (max-width: 767px) {
        left: -1rem;
    }
}

.gallery-btn-next {
    right: 1rem;

    @media screen and (max-width: 767px) {
        right: -1rem;
    }
}

.gallery-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-btn-next img {
    transform: rotate(180deg);
}

#footer {
    margin-top: 0;
}