@charset "UTF-8";
.slider {
    position: relative;
    width: 100%;
    height: 90vw;
    margin: auto;
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
}
.cards {
    width: 100%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 50vw;
    --items: 6;
    --middle: 3;
    --position: 1;
    /* pointer-events: none; */
}
.cards > a {
    position: absolute;
    width: 70%;
    padding: 0;
    color: #333;
    background: #FFF;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    /* border: 1px solid #363F75; */
    /* box-shadow: 1px 1px 1px #333; */
    --r: calc(var(--position) - var(--offset));
    --abs: max(calc(var(--r) * -1), var(--r));
    transition: all 0.25s linear;
    transform: translateX(calc(-108% * var(--r)));
    z-index: calc((var(--position) - var(--abs)));
}
.cards > a:nth-of-type(1) { --offset: 1; }
.cards > a:nth-of-type(2) { --offset: 2; }
.cards > a:nth-of-type(3) { --offset: 3; }
.cards > a:nth-of-type(4) { --offset: 4; }
.cards > a:nth-of-type(5) { --offset: 5; }
.cards > a:nth-of-type(6) { --offset: 6; }
.cards > a:nth-of-type(7) { --offset: 7; }
.cards > a:nth-of-type(8) { --offset: 8; }
.cards > a:nth-of-type(9) { --offset: 9; }
.cards > a:nth-of-type(10) { --offset: 10; }

.slider > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    visibility: hidden;
    display: none;
}
.slider > label {
    position: relative;
    /* left: calc(50% - 4rem); */
    width: 10px;
    height: 10px;
    margin: 0.6rem;
    background: #DDD;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.25s linear;
}
.slider > input:checked + label {
    width: 13px;
    height: 13px;
    background: #363f75;
}
.slider > input:nth-of-type(1):checked ~ .cards { --position: 1; }
.slider > input:nth-of-type(2):checked ~ .cards { --position: 2; }
.slider > input:nth-of-type(3):checked ~ .cards { --position: 3; }
.slider > input:nth-of-type(4):checked ~ .cards { --position: 4; }
.slider > input:nth-of-type(5):checked ~ .cards { --position: 5; }
.slider > input:nth-of-type(6):checked ~ .cards { --position: 6; }
.slider > input:nth-of-type(7):checked ~ .cards { --position: 7; }
.slider > input:nth-of-type(8):checked ~ .cards { --position: 8; }
.slider > input:nth-of-type(9):checked ~ .cards { --position: 9; }
.slider > input:nth-of-type(10):checked ~ .cards { --position: 10; }
.cards > button {
    position: absolute;
    top: 0;
    left: 0;
    width: 15%;
    height: 100%;
    display: block;
    z-index: 10;
    opacity: 0;
    cursor: pointer;
    cursor: hand;
    -webkit-tap-highlight-color: transparent;
}
.cards > button:last-child {
    left: auto;
    right: 0;
}

.cards > a > span {
    position: relative;
    width: 100%;
    padding-bottom: 5px;
    display: block;
    overflow: hidden;
}
.cards > a > span > img {
    position: relative;
    width: 100%;
    object-fit: cover;
}
.cards > a > p {
    position: relative;
    margin: auto;
    padding: 0 5px 10px;
}

.sample_image {
    border-radius: 5px 5px 0px 0px;
}

@media only screen and (min-width: 450px) {
    .slider {
        height: 60vw;
    }
    .cards {
        height: 103%;
    }
    .slider > label {
        margin: auto 1rem;
    }
}

@media only screen and (min-width: 768px) {
    .slider {
        height: 32vw;
    }
    .cards > a {
        width: 31%;
    }
    .cards > button {
        display: none;
    }
}

@media only screen and (min-width: 1201px) {
    .slider {
        height: 27vw;
        padding: 0 calc((100% - 1200px) / 2);
    }
    .cards > a {
        font-size: 17px;
    }
    .cards > a > span {
        padding-bottom: 15px;
    }
    .cards > a > p {
        padding: 0 30px 30px;
    }
}
