/* main */
.main{
    width: 100%; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.main img{
    position: absolute; top:0; left:0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.main .bg{
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    opacity: 0;
}
.main img.img-m{display: none;}
.main .bg{
    position:absolute; top:0; left:0;}
.main .text-box{
    right: 50px;
    color: white;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: end;
}
.main .text-box p{
    padding-bottom: 10px;
    color: white;
}
.main .text-box .btn-s{
    border: none;
    background-color: white;
    color: var(--color-40);
    width: 100px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media(max-width: 1000px){
    .main{justify-content: center;}
    .main .text-box{
        left: 0; width:90%;
        text-align: center; margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

    }
}

@media(max-width: 700px){
    .main img.img-d{display: none;}
    .main img.img-m{display: block;}
    .main .text-box .btn-s{
        font-size: 12px;
        height: 30px;
        background-color: rgba(0,0,0,0);
        border:2px solid white;
        color: white;
    }
    .main .text-box h1{font-size: 30px;}
    .main .bg{opacity: 1;}
}

/* 1 */
.section1{
    padding-top: 100px;
    padding-bottom: 100px;
}
.section1 .container{
    display: flex;
}
.section1 .left{
    width: 70%;
    aspect-ratio: 9/5;
}

.section1 .img{
    position: absolute;
    top: 0; left: 0;
    width:100%; height: 100%; object-fit: cover;
}
.section1 .img:nth-child(2){display: none;}
.section1 .img:nth-child(3){display: none;}
.section1 .img:nth-child(4){display: none;}
.section1 .img:nth-child(5){display: none;}

.section1 .right{
    width: 30%;
    /* border: 3px solid red; */
}
.section1 .text-group{
    background-color: white;
    box-shadow: 5px 5px 5px lightgray;
    /* border: 2px solid gray; */
    width:calc(100% + 50px);
    left: -50px;
    height: calc(100% - 100px);
    top: 50px;
    padding: 70px 50px;
    box-sizing: border-box;
}
.section1 .text-box{
    position:absolute; top:0; left:0;
    padding: 50px;
}
.section1 .text-box h6{
    color: var(--color-40)
}
.section1 .text-box p{
    padding-top: 10px;
    padding-bottom: 10px;
}

.section1 .btn-s{
    width: 100px;
    text-align: center;
    line-height: 35px;
    background-color: var(--color-40);
    color: white;
    border: none;
}
.section1 .text-box:nth-child(2){display: none;}
.section1 .text-box:nth-child(3){display: none;}
.section1 .text-box:nth-child(4){display: none;}
.section1 .text-box:nth-child(5){display: none;}


.section1 .indi{
    display: inline-block;
    width: 10px; height: 10px;
    background-color: lightgray;
    border-radius: 50%;
}
.section1 .indi.active{
    background-color: black;
}

@media(max-width: 1300px){

}
@media(max-width: 1200px){
    .section1 .text-group{
        padding: 40px;
    }
}
@media(max-width: 1100px){
    .section1 .text-group{
        padding: 20px 20px 30px;
    }

}
@media(max-width: 1000px){
    .section1 .container{
        display: block;
    }
    .section1 .left{width: 100%;}
    .section1 .right{
        width:100%;
        padding: 0 50px;
        box-sizing: border-box;
    }
    .section1 .text-group{
        padding: 15px 15px 40px;
        width: 100%;
        height: 350px;
        left: 0; top: 0px;
        margin-top: -50px;
    }
    .section1 .text-box h2{
        font-weight: 600;
    }
    
    .section1 .btn-s{
        font-size: 12px;
        line-height: 25px;
    }
    .section1 .indi-group{
        position: absolute;
        bottom: 10px;
        left: 98px;   
    }
}
/* 2 */
.section2{
    background-image: url(img/brand.png);
    background-size: cover;
    background-attachment: fixed;
}
.section2 .item{
    width: 50%;
    height: 100%;
    background-color: white;
    padding: 50px;
    box-sizing: border-box;

}
.section2 .item h1{
    font-weight: 100;
    padding-bottom: 150px;
}
.section2 .item p{
    width: 80%;
}

.section2 .text-ver{
    position: absolute;
    top: 10px; right: 5px;
    writing-mode: vertical-rl;
    font-weight: 600;
    text-transform: uppercase;
}

@media(max-width: 1100px){
    .section2 .item{width: 600px; height: auto;}
}

@media(max-width:900px){
    .section2{
        padding: 50px;
        box-sizing: border-box;}

    .section2 .container{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .section2 .item{
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .section2 .item h6{
        color: white;
    }
    .section2 .item p{
        color: white;
    }

    .section2 .item h1{
        font-size: 30px;
        padding-bottom: 50px;
    }
    .section2 .item .text-ver{
        display: none;
    }
}


/* 3*/
.section3{
    padding-top: 100px;
    padding-bottom: 100px;
}
.section3 .container{
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
}
.section3 .item .rank{
    background-color: white;
    width: 20px;
    height: auto;
    position: absolute;
    top:0;
    left:0;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-6c);
    border-radius: 0 0 5px 0;
}
.section3 .item1 .rank{
    background-color: var(--color-6c);
    color: white;
}
.section3 .text-box p{
    color: var(--color-40)
}
.section3 .group{
    display: flex; align-items: center;
    gap: 10px;
}
.section3 .group1{
    display: flex; font-size: 12px;
    color: #ffc741
}
.section3 .group p{
    font-size: 13px;
}

@media(max-width:1200px){
    .section3 .group{display: block;}
    .section3 .group1{display: none;}
}

@media(max-width: 800px){

    .section3 .container{overflow: auto;}
    .section3 .item{width: 100px;}
}

/* 4 */
.section4 {
    margin-top: 100px;
    padding-bottom: 100px;}

.section4 .container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap:20px;
    row-gap: 50px;
}
.section4 .click{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    background-color: rgba(255,255,255,0.7);
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
    opacity: 0;
    transition: 0.3s;
}

.section4 h4{
    padding-top: 10px;
    padding-bottom: 10px;
}

.section4 .text-box p{
    padding-bottom: 10px;
    left: 0;
    width: 70%;
}

.section4 .img-box:hover .click{opacity: 1;}

.section4 .fa-heart:hover{
    color: red;
}

@media(max-width: 800px){
    .section4 .container{
        grid-template-columns: repeat(2,1fr);
    }
    .section4 .text-box p{
      color: var(--color-40);
      flex-wrap: wrap;
    }
    .section4 .btn-l{
        text-align: start;
        width: 56px;
    }
}
/* 5 */
.section5{
    
}
.section5 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}
.section5 .img-m{
    display: none;
}
.section5 .text-box{
    position:absolute;
    top:50%;
    left:50%;
    max-width: 500px;
    height: auto;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.section5 h5{
    color: var(--color-68);
}
.section5 h2{
    color: var(--color-68);
    font-weight: 700;
}
.section5 p{
    color: var(--color-68);
}
.section5 .text-box .btn-l{
    width: 110px;
}
@media(max-width: 800px){
    .section5 .img-d{
        display: none;
    }
    .section5 .img-m{
        display: block;
        width: 100%;
    }
    .section5 .text-box{
        top: 105px;
    }
    .section5 h5{
        font-size: 14px;
    }
    .section5 h2{
        padding-top: 5px;
        padding-bottom: 0x;
    }
    .section5 p{
        font-size: 11px;
    }
    .section5 .text-box .btn-l{
        width: 90px;
        padding-top: 5px;
    }
}
/* 6 */
.section6{
    padding-top: 150px;
    padding-bottom: 150px;
}
.section6 .section-title{
    top: 92px;
}
.section6 .section-title h2{
    font-weight: 600;
}

.section6 .container{
    display:flex; gap:20px;
    padding-top: 260px;
}
.section6 .text-box{
    width: 250px;
    position:absolute;
}

.section6 .item1 .text-box{
    top: -50px;
}

.section6 .item2{top: -260px;}
.section6 .item2 .text-box{
    left:0;
    top:calc(100% + 50px);
    width: 100%;
}
.section6 .sub-title{
    position: absolute;
    top: 0;
    left: 49%;
    writing-mode: vertical-rl;
}
.section6 .sub-title h6{
    color: black;
}
@media(max-width: 800px){
    .section6{
        padding-bottom: 0;
    }
    .section6 .section-title{
        top: 0;
    }
    .section6 .item1 .text-box{
        top: -80px;
    }
    .section6 .item1{
        top: -100px;
    }
    .section6 .item2 .text-box{
        top: 240px;
    }
    .section6 .sub-title{
        writing-mode: inherit;
        left: 0;
        top: 60px;
    }
}

/* 7 */
.section7{
    background-color: var(--color-f6);
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
.section7 img{
    width: 80%;
    margin: 0 auto;
    mix-blend-mode: darken;
}

.section7 .container{
    display:flex;
    gap: 5px;
    padding-top: 20px;
    justify-content: space-between;
    align-items: center;
}
/* .section7 .item{
    border: 1px solid ;
} */

.section7 h5{
    color: #8E6F50;
}
.section7 p{
    display: none;
    color: #8E6F50;
    flex-wrap: wrap;
}

@media(max-width:800px){

    .section7 .container{
        display: grid;
        grid-template-columns: repeat(3,1fr);
    
    }
    .section7 img{
        width: 50%;
    }
    .section7 .item4{
        left: 50%;
    }
    .section7 .item5{
        right: -50%;
    }
}

/* 8 */
.section8{
    padding-top: 100px;
    padding-bottom: 100px;
}
.section8 .container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    color: white;
}

.section8 .item{
   background-color: rgb(153,134,117);
   padding: 20px;
}

.section8 .bg{
    /* border: 1px solid red; */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(#b79977, rgba(0,0,0,0) 500px);
}
.section8 .item h5{
    font-weight: 200;
}
.section8 .item p{
    color: white;
    font-weight: 200;
}
.section8 .item li{
    font-weight: 200;
}
.section8 .item .btn-l{
    border-color: white;
    margin-top: 10px;
    padding-bottom: 5px;
    width: 50px;
}
.section8 .item1{
    grid-row: span 2;
    background-image: url(img/story1.png);
    background-size: cover;
}

.section8 .item2{}
.section8 .item3{
    grid-row: span 2;
    background-image: url(img/story2.png);
    background-size: cover;
}
.section8 .item4{
    background-image: url(img/story3.png);
    background-size: cover;
    grid-row: span 2;
    color: var(--color-40);
}
.section8 .item4 p{
    color: var(--color-40);
}
.section8 .item4 .btn-l{
    border-color: var(--color-40);
}
.section8 .item4 .bg{
    background-image: linear-gradient(rgb(217,214,207), rgba(0,0,0,0) 500px);
}

.section8 .item h4{
    margin-top: 5px;
    margin-bottom: 5px;
}

/* 3줄이상 넘어가면 생략 */
.section8 .item p{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow:hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1200px){
    .section8 .container{
        grid-auto-rows: 200px;
    }
}
@media(max-width: 800px){
    .section8 .container{
        grid-template-columns: repeat(1,1fr);
    }
    .section8 .item4{
        grid-row: 7/ span 2;
    }
}