.l-content {
    max-width: unset !important;
    padding-inline: 0;
    padding-top: 0 !important;
}

.l-mainContent {
    max-width: unset !important;
}

.uq-top-mainvisual {
    padding-top: 8em;
    position: relative;
    height: auto;
}

.uq-top-mainvisual-images-web,
.uq-top-mainvisual-images-photo {
    position: relative;
    width: 100%;
    object-fit: cover;
    opacity: 0;
    overflow: hidden;
    transition: opacity 1.5s ease;
}

.uq-top-mainvisual-images img {
    width: 100%;
    height: 100%;
    transform: scale(1.1);
    display: block;
}

/* ブラー用のオーバーレイ */
.uq-top-mainvisual-images-web::after,
.uq-top-mainvisual-images-photo::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.is-animate .uq-top-mainvisual-images-web,
.is-animate .uq-top-mainvisual-images-photo {
    opacity: 1;
}

.is-animate .uq-top-mainvisual-images-web img,
.is-animate .uq-top-mainvisual-images-photo img {
    animation: zoomOut 2s ease-in-out forwards;
    animation-delay: 1s;
}

.is-animate .uq-top-mainvisual-images-web::after,
.is-animate .uq-top-mainvisual-images-photo::after {
    animation: blur 2s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes blur {
    0%   { backdrop-filter: blur(8px); }
    100% { backdrop-filter: none; }
}

@keyframes zoomOut {
    0%   { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.uq-top-mainvisual-heading {
    color: var(--color-base);
    display: block;
    font-size: 100px;
    font-family: var(--font-heading);
    height: fit-content;
    inset: 0;
    letter-spacing: 0.3em;
    margin: auto;
    opacity: 0;
    padding-inline: 20px;
    position: absolute;
    text-align: center;
    text-shadow: 3px 2px 3px rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s ease;
    z-index: 30;
}

.uq-top-mainvisual-heading span {
    display: inline-block;
    transform: translateY(-30px);
    opacity: 0;
}

.uq-top-mainvisual-heading.is-animate {
    opacity: 1;
}

.uq-top-mainvisual-heading.is-animate span {
    animation: headingFade 0.6s ease forwards,
                fadePulse 5s ease-in-out infinite 0.6s;
}

.uq-top-mainvisual-heading.is-animate span:nth-child(1) { animation-delay: 3.5s; }
.uq-top-mainvisual-heading.is-animate span:nth-child(2) { animation-delay: 2.7s; }
.uq-top-mainvisual-heading.is-animate span:nth-child(3) { animation-delay: 1.9s; }
.uq-top-mainvisual-heading.is-animate span:nth-child(4) { animation-delay: 2.1s; }
.uq-top-mainvisual-heading.is-animate span:nth-child(5) { animation-delay: 1.3s; }
.uq-top-mainvisual-heading.is-animate span:nth-child(6) { animation-delay: 2.5s; }
.uq-top-mainvisual-heading.is-animate span:nth-child(7) { animation-delay: 2.8s; }

@keyframes headingFade {
    0%   { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadePulse {
    0%, 100% { opacity: 1;}
    50% { opacity: 0.4;}
}

.uq-top-mainvisual-heading span:nth-child(odd) {
    animation-delay: 1s;
}

.uq-top-mainvisual-catch {
    align-items: center;
    bottom: 0;
    display: flex;
    height: 30%;
    justify-content: center;
    padding-inline: 20px;
    position: absolute;
    right: 0;
    width: 50vw;
    z-index: 30;
}

.uq-top-mainvisual-catch > p {
    width: fit-content;
}

.uq-top-mainvisual-catch__main {
    color: var(--color-main);
    font-size: 30px;
    font-style: normal;
}

.uq-top-mainvisual-catch__sub {
    display: block;
    font-size: var(--font-size20);
    text-align: right;
}

@media screen and (min-width: 960px) {
    .uq-top-mainvisual {
        height: 100vh;
    }

    .uq-top-mainvisual-images {
        position: absolute;
        height: 100%;
        top: 0;
        width: 100%;
        z-index: 10;
    }

    .uq-top-mainvisual-images-web,
    .uq-top-mainvisual-images-photo {
        position: absolute;
        width: 50%;
    }

    .uq-top-mainvisual-images-web {
        top: 0;
        right: 0;
    }

    .uq-top-mainvisual-images-photo {
        bottom: 0;
        left: 0;
    }

    .uq-top-mainvisual-catch__sub {
        display: block;
        position: relative;
    }

    .uq-top-mainvisual-catch__sub::before {
        background-color: var(--color-black);
        content: "";
        display: block;
        left: 0;
        height: 1px;
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        width: calc(100% - 175px);
    }
}

@media screen and (max-width: 959px) {
    .uq-top-mainvisual {
        display: flex;
        flex-direction: column-reverse;
        height: auto;
        padding-top: 0;
        width: 100%;
    }

    .uq-top-mainvisual-heading {
        font-size: 50px;
        transform: translateY(-40px);
    }

    .uq-top-mainvisual-catch {
        padding-block: 20px;
        position: relative;
        width: 100%;
    }

    .uq-top-mainvisual-catch__main,
    .uq-top-mainvisual-catch__sub {
        font-size: 16px;
        text-align: center;
    }
}

