@charset "utf-8";

#history-cover {
    overflow: hidden;
    padding: 24px 0 24px 24px;
    background-color: #F4F3F8;
    width: 100%;
    font-family: "Oswald", sans-serif;
}

#history-cover .inner {
    display: flex;
    width: 100%;
}

#history-cover h2 {
    font-size: 2.6rem;
    white-space: nowrap;
    margin-right: 81px;
}

#history-cover .carousel {
    flex: 1;
    width: calc(100% - 200px);
    position: relative;
    z-index: 1;
}

#history-cover .carousel:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(180px, 200px, 220px);
    height: 100%;
    background: linear-gradient(to right, #fff0, 50%, #fff);
    z-index: inherit;
}

#history-cover .carousel .box {
    width: 280px;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    margin-right: 8px;
    background-image: url("../image/no_image.jpg");
    background-size: cover;
}

#history-cover .carousel .box a {
    display: block;
    width: 100%;
    height: 100%;
}

#history-cover .carousel .box a::after {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgb(0, 103, 178, 0.6);
    z-index: 1;
    opacity: 0;
    transition: opacity 200ms;
}

#history-cover .carousel .box img {
    width: 100%;
}

#history-cover .carousel .box h3 {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    padding: 5%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #FFFFFF;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.05em;
    font-weight: 500;
    opacity: 0;
    transition: opacity 200ms ease-in-out;
}

#history-cover .carousel .box:hover h3,
#history-cover .carousel .box a:hover::after {
    opacity: 1;
}

#history-cover .slick-prev {
    left: 0px;
}

#history-cover .slick-next {
    left: auto;
}

#history-cover .slick-next,
#history-cover .slick-prev {
    right: 0;
    top: 50%;
    bottom: 0;
    background: var(--main_color2) !important;
    width: 40px !important;
    height: 40px !important;
    transition: 0.2s;
    z-index: 100;
    opacity: 0.7;
}

#history-cover .slick-next:hover,
#history-cover .slick-prev:hover {
    background: var(--main_color) !important;
    opacity: 1;
}

/*▼スマトフォン▼*/
@media only screen and (max-width: 767px) {
    #history-cover {
        padding: 4vw 2vw;
    }

    #history-cover .inner {
        padding: 0%;
        display: block;
    }

    #history-cover .carousel {
        width: 100%;
    }

    #history-cover .carousel .box {
        width: 48vw;
        margin-right: 1vw;
    }

    #history-cover .carousel:after {
        display: none;
    }

    #history-cover h2 {
        width: 100%;
        margin-right: 4%;
        margin-bottom: 16px;
        font-size: 2.2rem;
    }

}