@keyframes zoomUp {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: calc(var(--vh, 1vh) * 100 - 80px);
    margin: 0;
    padding: 0 110px;
    box-sizing: border-box;
    position: relative;
}
.hero-slideshow {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}
body.loaded .hero-slideshow {
    opacity: 1;
    visibility: visible;
}
.hero-slideshow .slide {
    width: 100%;
    height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.slide1 {
    background-image: url(../images/mainbg1_pc.webp);
}
.slide2 {
    background-image: url(../images/mainbg2_pc.webp);
}
.slide3 {
    background-image: url(../images/mainbg3_pc.webp);
}
.overlay {
    position: absolute;
    opacity: 1;
    transition: opacity 0.5s;
    overflow: hidden;
}
.overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transform: scale(1);
}
.slick-slide:not(.slick-active):not(.slick-cloned) .overlay img {
    transform: scale(1.05);
}
.overlay1 {
    width: 33%;
    height: auto;
    top: 15%;
    left: 43%;
}
.overlay2 {
    width: 26%;
    height: auto;
    top: 20%;
    left: 20%;
}
.slide2 .overlay1 {
    width: 31%;
    top: 21%;
    left: 26%;
}
.slide2 .overlay2 {
    width: 21%;
    top: 14%;
    left: 53%;
}
.section-box {
    margin: 0 auto 8rem;
    padding: 0;
}
.section-flex {
    display: flex;
    gap: 6%;
}
.image {
    flex: 45;
}
.text {
    flex: 55;
}
section .text {
    padding-right: 18%;
}
.section2 {
    display: flex;
}
.section2 h2 {
    flex: 0 0 20%;
}
.section2 .images {
    flex: 1;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    align-items: flex-start;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.section2 .images::-webkit-scrollbar {
    display: none;
}
.section2 .images a {
    flex: 0 0 auto;
    width: calc((100% - 12px) / 3);
    display: block;
    overflow: hidden;
    position: relative;
    transition: filter 0.3s ease;
}
.section2 .images a img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
.section2 .images a picture {
    display: block;
    width: 100%;
}
.section2 picture {
    margin-bottom: 0.3rem;
}
.section2 .images.grid-layout {
    display: flex !important;
    gap: 12px;
    overflow-x: visible;
    overflow-y: visible;
    height: auto !important;
}
.section2 .images.grid-layout a {
    flex: 1;
    width: auto !important;
    display: block !important;
}
.section2 .images.grid-layout a img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
.section2 .images.slick-initialized {
    display: block;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.section2 .images.slick-initialized a {
    width: 100%;
    display: block;
}
.section2 .images.slick-initialized a img {
    width: 100%;
    height: auto;
    display: block;
}
.section2 .slick-slide {
    margin: 0 6px;
}
.section2 .slick-slide:first-child {
    margin-left: 0 !important;
}
.section2 .slick-list {
    margin: 0 -6px;
    padding-left: 0 !important;
}
.section2 .slick-track {
    display: flex;
    align-items: flex-start;
    margin-left: 0 !important;
}
.section2 .slick-prev,
.section2 .slick-next {
    width: 40px;
    height: 40px;
    z-index: 1;
}
.section2 .slick-prev {
    left: -50px;
}
.section2 .slick-next {
    right: -50px;
}
.section2 .slick-prev:before,
.section2 .slick-next:before {
    font-size: 30px;
    opacity: 0.75;
    color: #333;
}
.section3 .image {
    flex: 7;
}
.section3 .text {
    flex: 3;
}
.section2 .images a,
.section3 .image a {
    position: relative;
    display: block;
    overflow: hidden;
    transition: filter 0.5s ease;
}
.section2 .images a:hover,
.section3 a:hover,
.section2 .images a:active,
.section3 a:active,
.section2 .images a.clicked,
.section3 a.clicked {
    filter: brightness(0.5);
}
.section2 .images a picture,
.section3 .image a picture {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.section2 .images a picture img,
.section3 .image a picture img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
@media (min-width: 769px) and (max-width: 1080px) {
    .hero-wrapper {
        padding: 0 50px;
        min-height: auto;
    }
    .hero-slideshow {
        height: auto;
    }
    .hero-slideshow .slide {
        width: 100%;
        height: auto;
        margin-top: 80px;
        aspect-ratio: 16 / 9;
    }
    .overlay1 {
        width: 36%;
        top: 8%;
    }
    .overlay2 {
        width: 29%;
        top: 14%;
    }
    .slide2 .overlay1 {
        width: 35%;
        top: 14%;
    }
    .slide2 .overlay2 {
        width: 23%;
        top: 10%;
    }
    .section-box {
        margin: 0 auto 4rem;
    }
    section .text {
        padding-right: 0;
    }
}
@media (max-width: 767px) {
    .hero-wrapper {
        padding: 0;
        min-height: calc(var(--vh, 1vh) * 100);
        align-items: start;
        justify-content: center;
    }
    .hero-slideshow {
        width: 100%;
        height: calc(var(--vh, 1vh) * 100);
        padding-top: 0;
        top: 0;
    }
    .hero-slideshow .slick-list,
    .hero-slideshow .slick-track,
    .hero-slideshow .slide {
        height: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .hero-slideshow .slick-slide {
        opacity: 1 !important;
    }
    .hero-slideshow .slide {
        min-height: calc(var(--vh, 1vh) * 100);
    }
    .slide1 {
        background-image: url(../images/mainbg1_sp.webp);
    }
    .slide2 {
        background-image: url(../images/mainbg2_sp.webp);
    }
    .slide3 {
        background-image: url(../images/mainbg3_sp.webp);
    }
    .overlay1 {
        width: 65%;
        height: auto;
        top: 0;
        left: 25%;
        padding-top: 60%;
    }
    .overlay2 {
        width: 40%;
        height: auto;
        top: 0;
        left: 10%;
        padding-top: 25%;
    }
    .slide2 .overlay1 {
        width: 63%;
        top: 0;
        left: 10%;
        padding-top: 25%;
    }
    .slide2 .overlay2 {
        width: 40%;
        top: 0;
        left: 48%;
        padding-top: 110%;
    }
    .section-box {
        width: 100%;
        margin: 0 0 0.3rem;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .section-flex {
        flex-direction: column;
    }
    .image,
    .text {
        width: 100%;
    }
    section .text {
        padding: 1rem 0 0 32%;
    }
    .section2 {
        flex-direction: column;
        padding: 0 0 1rem 10px;
    }
    .section2 .images a {
        width: 80%;
        max-width: 270px;
        margin-right: 2px;
    }
    .section2 .slick-list {
        padding-left: 10px !important;
        overflow: visible;
    }
    .section2 .slick-track {
        margin-left: 0 !important;
    }
    .section2 .slick-slide {
        margin: 0 2px;
    }
    .section2 .slick-prev,
    .section2 .slick-next {
        display: none !important;
    }
}
