@import url('https://unpkg.com/css.gg@2.0.0/icons/css/chevron-left.css');
@import url('https://unpkg.com/css.gg@2.0.0/icons/css/chevron-right.css');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    width: 100%;
    height: 100%;
}

.slider{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    top: 300px;
}

.slider .slide{
    display: flex;
    position: absolute;
    width: 80vw;
    height: 400px;
    border: 0px solid black;
    border-radius: 10px;
    justify-content: left;
    align-items: center;
    overflow: hidden;
}

.slider .slide .slide_content{
    width: calc(80vw * 4);
    height: 100%;
    display: flex;
    text-align: center;
    transition: transform 1s ease;
}

/* スライドの動く部分 */
.slide_content.trans1{
    transform: translateX(0vw);
}
.slide_content.trans2{
    transform: translateX(-80vw);
}
.slide_content.trans3{
    transform: translateX(calc(-80vw * 2));
}
.slide_content.trans4{
    transform: translateX(calc(-80vw * 3));
}

.slider .slide .slide_content .block{
    width: calc(80vw * 4);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

/* スライドの中身 */

.block.slide1{
    background-image: url(img/image1.jpg);
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: black;
}

.block.slide2{
    background-image: url(img/image2.jpg);
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: black;
}
.block.slide3{
    background-image: url(img/image3.jpg);
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: black;
}
.block.slide4{
    background-image: url(img/image4.jpg);
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: black;
}


/* スライドコントローラー（left_btnとrighr_btnを押すと、
　　.slide_content.trans[i]のiが変化） */

.slide_control{
    width: 100%;
    height: 400px;
    display: flex;
    position: relative;
    top: 0px;
}

.slide_control .cntrolbtn{
    display: flex;
    position: absolute;
    height: 100%;
    width: 100vw;
    gap: 80vw;
    justify-content: center;
    align-items: center;
}

.slide_control .cntrolbtn .left_btn{
    height: 100%;
    width: 50px;
    height: 100%;
    border: 0px solid black;
    border-radius: 10px;
    background-color: rgba(105, 105, 105, 0.1);
    opacity: 0.1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slide_control .cntrolbtn .right_btn{
    height: 100%;
    width: 50px;
    height: 100%;
    border: 0px solid black;
    border-radius: 10px;
    background-color: rgba(105, 105, 105, 0.1);
    opacity: 0.1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slide_control .cntrolbtn .left_btn:hover{
    opacity: 0.8;
}
.slide_control .cntrolbtn .right_btn:hover{
    opacity: 0.8;
}

.cntrolbtn i{
    font-weight: 600;
    font-size: 20px;
    color: rgb(66, 66, 66);
}
