@charset "utf-8";

*{margin: 0;padding: 0;box-sizing: border-box;}
a{display: block;text-decoration: none;color: inherit;}
ul li{list-style: none;}
body{background-color: #fff;}


#wrap{display: flex;flex-wrap: wrap;}
header{width: 117px;height: 100vh;position: fixed;text-align: right;z-index: 98;background-color: transparent;}
header:hover{background-color: #fff;}
.hback{width: 500px;height: 100vh;position: fixed;background-color: #fff;
z-index: 97;display: none;}
.menu{width: 100px;font-size: 30px;margin-top: 50px;cursor: pointer;z-index: 99;}
nav{width: 380px;position: fixed;height: 100vh;z-index: 96;text-align: left;top: 0;display: none;margin-left: 117px;}
.gnb{width: 350px;font-weight: bold;font-size: 20px;line-height: 50px;margin-top: 50px;margin-left:16.5px;}
.gnb>li{width: 350px;}
.gnb>li>a{width: 100%;height: 50px;padding-left: 20px;}
.gnb i{float: right;line-height: 50px;}
.submenu{width: 350px;height: 150px;display: none;}
.submenu a{padding-left: 50px;width: 350px;height: 50px;}
.ri{width: 100px;height: 100px;}
.ri img{width: 15px;height: 15px;}
.fmenu{margin-top: 50px;margin-left: 30px;line-height: 1.6;}
.sns{color: rgb(10, 103, 80);margin-top: 50px;margin-left: 30px;display: flex;gap: 10px;font-size: 20px;}
.logo{width: 100px;height: 200px;margin-top: 30px;}
.menubox{position: absolute;bottom: 30px;}
.menubox a{width: 100px;display: block;font-size: 30px;margin: 10px 0;}

/* @media only screen and (max-width:700px){

  header{width: 100%;height: 100px;position: fixed;text-align: right;z-index: 98;background-color: red; display: flex;}
  .hback{width: 100%;}
  .menu{width: 50px;font-size: 40px;margin-top: 10px;}
  .logo{width: 200px;height: 50px;margin-top: 0px;background-color: rgb(86, 50, 205);}
  .logo img{background-color: yellowgreen;
    transform: rotate(90deg);
    margin: 0;
  }
  .menubox{display:flex;right: 30px; width: 100px;top: 10px;}
  
}  */
@media only screen and (max-width: 700px) {
  /* 헤더 스타일 */
  header {
    width: 100%;
    height: 70px; /* 모바일에서 적절한 높이 */
    position: fixed;
    top: 0;
    left: 0;
    text-align: right;
    z-index: 98;
    display: flex;
    align-items: flex-start;
    justify-content: space-between; /* 요소 간 정렬 */
    padding: 0 15px; /* 좌우 여백 */
  }

  /* 헤더 내부 배경 */
  .hback {width: 100%;}
  nav{top: 50px;right: 30px;}
  .menu{width: 30px;font-size: 30px;margin-top: 10px;cursor: pointer;}

  .logo {
    width: 40px; 
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-right: 50px;
  }
  .logo img {
    width: 80%;
    height: auto;
    transform: rotate(90deg); 
  }
    
  .menubox {
    display: flex;
    position: relative;
    right: 30px;
    width: 70px;
    align-items: center;
    top: 5px;
    gap: 5px;
  }
  .menubox img{width: 30px;height: 30px;}
}

#contain{width: 100%;}
.slide{width: 100%;height: 888px;position: relative;}
.slide>a{width: 100%; height: 100%;}
.slide img{width: 100%;height: 100%;object-fit: cover;object-position: center;}
.slide-t{left: 470px;top: 65%;transform: translate(-50%,-50%);position: absolute;width: 440px;}
.slide-t>h2{width: 250px;background-color: #037D39;text-align: center;font-family: 'shrikhand';font-size: 30px;margin-bottom: 20px;}
span{color: yellow;}
.shop{padding: 16px;background-color: #EDDF42;border: 0;font-weight: bold;color: #047C67;border-radius: 8px;position: absolute;bottom: 120px;font-size: 20px;z-index: 99;cursor: pointer;left: 250px;z-index: 5;}
.shop2{padding: 16px;background-color: #EDDF42;border: 0;font-weight: bold;color: #047C67;border-radius: 8px;position: absolute;bottom: 120px;font-size: 20px;z-index: 99;cursor: pointer;left: 415px;z-index: 5;}
.slide-t>p{font-weight: bold;font-size: 20px;}

/* 슬라이드 글과 버튼 */
@media only screen and (max-width:700px){
.slide-t{left: 20px;top: 80%;transform: translate(0, 0);width: 300px;}
.slide-t h2{font-size: 20px;width: 200px;margin-bottom: 15px;}
.slide-t p{font-size: 14px;}
.shop{padding: 6px;background-color: #EDDF42;border: 0;font-weight: bold;color: #047C67;border-radius: 8px;position: absolute;bottom: 26px;font-size: 20px;z-index: 99;cursor: pointer;left: 20px;z-index: 5;font-size: 12px;}
.shop2{padding: 6px;background-color: #EDDF42;border: 0;font-weight: bold;color: #047C67;border-radius: 8px;position: absolute;bottom: 26px;font-size: 20px;z-index: 99;cursor: pointer;left: 115px;z-index: 5;font-size: 12px;}
.slide>a{width: 100%;}
.slide img{object-fit: cover;object-position: 80%;}
}

.banner{height: 505px;position: relative;width: 100%;background-color: #faffad;text-align: center;}
.banner img{margin-left: 117px;}

@media only screen and (max-width:700px){
  .banner{width: 100%;height: auto;background-color: #fff;right: 10px;}
  .banner img{width: 100%;margin: 0;margin-left: 10px;}
}
/* .banner-t>h3{top: 30%;left: 50%;transform: translate(-50%,-50%);position: absolute;font-family: 'shrikhand';font-size:30px;text-align: center;font-weight: 100;margin-top: 50px;}
.banner-t>h4{top: 50%;left: 40%;transform: translate(-50%,-50%);position: absolute;font-size: 20px;font-family: 'shrikhand';background-color: #037D39;width: 320px;text-align: center;padding: 9px 0;color: #fff;font-weight: 100;margin-top: 50px;height: 65px;padding-top: 18px;}
.banner-t>p{top: 50%;left: 60%;transform: translate(-50%,-50%);position: absolute;background-color: #0D6352;width: 320px;text-align: center;font-weight: bold;color: #fff;padding: 9px 0;margin-top: 50px;;} */

.design{height: 1400px;width: 100%;}
.design h2{padding: 70px 30px 0;color: #0D6352;font-size: 26px;margin-bottom: 80px;margin-left: 250px;}
.design-box{display: flex;flex-wrap: wrap;width: 80%;gap: 50px;justify-content: space-evenly;margin-left: 80px;margin: 0 auto;}
.design-box p{font-size: 14px;font-weight: bold;text-align: center;line-height: 15px;margin-top: 20px;}
.design-box img{border-bottom: 1px solid #ccc;padding: 20px 0;}

@media screen and (max-width: 700px) {
  .design {
    height: auto;
    margin-left: 25px; 
    width: 85%;}
  .design h2 {
    padding: 50px 20px 0;
    font-size: 22px;
    margin-bottom: 40px;
    margin-left: 0;
    text-align: center;}

  .design-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-left: 0;
    right: 10px;  
  }
  .design-box img {
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;}
  .design-box p {
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    margin-top: 5px;}
}
.best{height: 780px;width: 100%;margin-bottom: 80px;}
.best>h2{padding: 70px 30px 0;color: #0D6352;font-size: 26px;text-align: center;margin-bottom: 16px;}
.best>p{margin-bottom: 80px;text-align: center;}
.best-box-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}
.round{display: flex;text-align: center;gap: 68px;align-items: center;flex-wrap: wrap;justify-content: center;}
.round>p{width: 293px;background-color: #DBE2DE;border-radius: 50px;padding: 8px;}
.round p.active {display: block;}
.best-box{display: flex;flex-wrap: wrap;text-align: center;margin-top: 48px;gap: 72px;justify-content: center;}
.best-box img{border-bottom: 1px solid #ccc;}
.best-t{margin-top: 20px;font-weight: bold;}

#prevBtn{left: 30px;}
.nav-btn {
  visibility: hidden;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0D6352;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10;
 margin-right: 10px;
}
.prev {left: 10%;}
.next {right: 10%;}

/* 베스트 아이템 */
@media screen and (max-width: 700px) {
  .best {
    height: auto;}
  .best>h2 {
    padding: 50px 20px 0;
    font-size: 22px; /* 글자 크기 축소 */
    margin-bottom: 16px;
    text-align: center;
  }
  .best>p {
    margin-bottom: 40px; /* 간격 축소 */
    text-align: center;
  }
  .best-box-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 100%;
  }
  .nav-btn {visibility: visible;}
  .nav-btn:hover {background-color: #42d8bc;}
  .prev {left: 5%;}
  .next {right: 5%;}
  .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .round {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 중앙 정렬 */
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }
  .round > p {
    width: 220px;
    background-color: #DBE2DE;
    border-radius: 50px;
    padding: 8px;
    text-align: center;
  }
  .round > p:not(:first-child) {
    display: none; /* 첫 번째 요소 제외 숨김 */
  }
  .best-box {
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    align-items: center; /* 중앙 정렬 */
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 40px; /* 간격 조정 */
  }
  .best-box img {
    width: 100%; /* 너비를 부모 요소에 맞춤 */
    max-width: 300px; /* 최대 크기 제한 */
    border-bottom: 1px solid #ccc;
    transition-duration: .4s;
    display: block;
    margin: 0 auto; /* 이미지 중앙 정렬 */
    border-bottom: none
  }
  .best-box > *:not(:first-child) {
    display: none; /* 첫 번째 요소 제외하고 숨김 */
  }
  .best-t {
    margin-top: 10px; /* 간격 조정 */
    font-size: 14px; /* 글자 크기 조정 */
    font-weight: bold;
    text-align: center;
  }
}


.brand{height: 380px;background-color: #f3f8b6;width: 100%;position: relative;margin-top: 50px;margin-bottom: 50px;margin: auto;overflow: hidden;min-width: 600px;}
.brandbox{display: flex;transition: transform 1s ease-in-out; /* 슬라이드 이동을 부드럽게 */
}
.brandbox ul{display: flex;justify-content: space-around;width: 33.33%;text-align: center;min-width: 100%;}
.brandbox li{margin-bottom: 20px;text-align: center;}
.brandbox img{margin-top: 160px;height: auto;}
.brandbox p{text-align: center;font-weight: 400;margin-top: 10px;}
 /* 페이지 번호 스타일 */
 .page-number {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: #000;
  z-index: 2;}
.direct{position: absolute;left: 47%;margin-top: 55px;margin-right: 20px;}
.direct i{padding: 20px;}
.page-number{top: 13px;}

/* 브랜드 미디어 */
@media screen and (max-width: 700px) {
  .brand{width: 100%;}
  /* .brandbox{margin-right: 60px;} */
  .brandbox ul{width: 100%;flex-wrap: wrap;justify-content: space-evenly;padding: 0;margin: 0;display: flex;flex-direction: row;box-sizing: border-box;}
  .brandbox li{margin-bottom: 10px;flex-basis: calc(33.33% - 10px);  box-sizing: border-box;}
  .brandbox li:nth-child(n+4) {
    flex-basis: 30%; /* 4번째 항목부터 2개씩 배치 */
    box-sizing: border-box;}
  .brandbox a{width: 60%;}
 .brandbox img{margin: 10px 0;height: auto;margin-top: 80px;width: 100%;}
 .direct{position: absolute;left: 36%;margin-top: 0;margin-right: 20px;}
 body,html{overflow-x: hidden;}
}

 

.sale{height: 700px;width: 100%;margin-top: 100px;}
.sale>h2{padding: 70px 30px 0;color: #0D6352;font-size: 26px;text-align: center;margin-bottom: 16px;}
.sale>p{margin-bottom: 80px;text-align: center;}
.sale-box{display: flex;flex-wrap: wrap;width: 90%;margin-left:90px;text-align: center;margin-top: 48px;gap: 72px;justify-content: space-around;transform: 0.5s ease-in-out;}
.saleimg{margin-left: 50px;}
.saleimg span{color: #c80000;font-weight: bold;}
.sale-t{line-height: 1.8;}

/* 베스트셀러 미디어 */
@media only screen and (max-width: 700px) {
  .sale {
    height: auto;
    width: 100%;
    margin-top: 50px;
    padding-bottom: 50px;}
  .sale>h2 {
    padding: 50px 20px 0;
    color: #0D6352;
    font-size: 22px; /* 모바일에서 폰트 크기 조정 */
    text-align: center;
    margin-bottom: 16px;}
  .sale>p {
    margin-bottom: 40px;
    text-align: center;}
  .sale-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr)); /* 항상 3개씩 정렬 */
    gap: 20px; /* 이미지 간격 */
    width: 90%;
    margin: 0 auto;
    text-align: center;
    justify-content: center;}
  .saleimg {
    width: 100%;
    max-width: 150px; /* 이미지 크기 제한 */
    margin: 0 auto;}
  .saleimg img {
    width: 100%;
    height: auto;}
  .saleimg span {
    color: #c80000;
    font-weight: bold;
    display: block;
    margin-top: 8px;}
  .sale-t {
    line-height: 1.8;
    font-size: 14px;}

  /* 4번째, 5번째 아이템이 떨어지지 않도록 빈 공간을 채우는 가상 요소 추가 */
  .sale-box::after {
    content: "";
    width: 100%;
    display: block;
  }
}

.review{height: 750px;width: 100%;}
.review>h2{padding: 70px 30px 0;color: #0D6352;font-size: 26px;text-align: center;margin-bottom: 16px;}
.review>p{margin-bottom: 60px;text-align: center;}
.review-slider {width: 100%;overflow: hidden;position: relative;}
.review-box{/*animation: slide 60s linear infinite;*/display: flex;/*flex-wrap: wrap;/*width: 90%;*/margin-left:165px;text-align: center;margin-top: 48px;gap: 20px;justify-content: space-around;width: fit-content;animation: slide 80s linear infinite;}
.reimg{text-align: center;min-width: 15%;justify-content: center;align-items: center;flex: 0 0 auto;}
.reimg img{border-bottom: 1px solid #ccc;margin-left: 50px;max-width: 100%;height: auto;}
.re-t{margin-top: 20px;line-height: 1.8;margin-left: 50px;}
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-20%);
  }
  20% {
    transform: translateX(-40%);
  }
  30% {
    transform: translateX(-60%);
  }
  40% {
    transform: translateX(-80%);
  }
  50% {
    transform: translateX(-100%);
  }
  60% {
    transform: translateX(-120%);
  }
  70% {
    transform: translateX(-140%);
  }
  80% {
    transform: translateX(-160%);
  }
  90% {
    transform: translateX(-180%);
  }
  100% {
    transform: translateX(-200%);
  }
}

/* .review-box{animation: slide 40s linear infinite;} */
/* 질문과 답변 */
#faq{width: 90%;}
#faq h2{padding: 70px 30px 0;color: #0D6352;font-size: 26px;margin-bottom: 60px;margin-left: 150px;}
.accordion{margin: 40px auto;margin-left: 150px;width: 100%;}
.accordion li{list-style: none;width: 100%;padding: 5px;}
.accordion li label{align-items: center;padding: 20px;display: flex;font-size: 25px;font-weight: 500;background: #1B9853;margin-bottom: 2px;cursor: pointer;position: relative;border-radius: 4px;color: #fff;}
.accordion li label::after{content: "\2b";font-size: 40px;position: absolute;right: 20px;transition: 0.5s;}
.accordion input[type="radio"]{display: none;}
.accordion input[type="radio"]:checked + label::after{transform: rotate(-135deg);}
.accordion .content{background-color: #c2f5db;font-size: 22px;line-height: 1.6;text-align: left;padding: 0 20px;max-height: 0;overflow: hidden;}
.accordion input[type="radio"]:checked + label + .content{max-height: 600px;padding: 30px 20px;}
.newsletter{padding: 20px 10%;margin-left: 150px;font-weight: 400;}
.add-email{background-color: #f3f8b6;border-radius: 4px;margin-top: 30px;display: flex;align-items: center;}
.add-email input{border: 0;outline: 0;margin-left: 20px;flex: 1;background-color: #f3f8b6;font-weight: 500;}
.add-email button{border: 0;background-color: #1B9853;color: #fff;font-size: 16px;padding: 15px 30px;cursor: pointer;border-radius: 4px;}
.break{display: none;}
/* 질문답변 모바일 */
@media only screen and (max-width: 700px) {
  #faq {
    width: 100%; /* 전체 화면을 꽉 채우도록 설정 */
    padding: 0 5%; /* 좌우 여백 추가 */}
  #faq h2 {
    padding: 50px 0 0;
    color: #0D6352;
    font-size: 24px; /* 모바일에서 적절한 크기로 조정 */
    margin-bottom: 40px;
    text-align: center; /* 가운데 정렬 */
    margin-left: 0; }
  .accordion {
    margin: 20px auto;
    width: 100%; /* 전체 너비 사용 */}
  .accordion li {
    list-style: none;
    width: 100%;
    padding: 5px;}
  .accordion li label {
    align-items: center;
    padding: 15px;
    display: flex;
    font-size: 16px; /* 모바일에서 크기 조정 */
    font-weight: 500;
    background: #1B9853;
    margin-bottom: 2px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    color: #fff;}
  .accordion li label::after {
    content: "\2b";
    font-size: 30px;
    position: absolute;
    right: 15px;
    transition: 0.5s;}
  .accordion .content {
    background-color: #c2f5db;
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;}
  .accordion input[type="radio"]:checked + label + .content {
    max-height: 600px;
    padding: 20px 15px;}
  /* 이메일 구독 섹션 */
  .newsletter {
    width: 100%;
    padding: 20px 5%;
    font-weight: 400;
    margin-left: 0; /* 왼쪽 여백 제거 */
    text-align: center; }
    .newsletter p {margin-bottom: 20px;}
    .break{display: block;}
  .add-email {
    background-color: #f3f8b6;
    border-radius: 4px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;}
  .add-email input {
    border: 0;
    outline: 0;
    margin-left: 10px;
    flex: 1;
    background-color: #f3f8b6;
    font-weight: 500;
    font-size: 14px;
    padding: 10px;}
  .add-email button {
    width: 100%;
    border: 0;
    background-color: #1c6e2ede;
    color: #fff;
    font-size: 16px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;}
}

/* .event{margin-left: 117px;width: 100%;}
.event>h3{padding: 70px 30px 0;color: #0D6352;font-size: 26px;margin-bottom: 60px;margin-left: 150px;}
.event a{width: 100%;}
.event img{width: 100%;object-position: center;object-fit: contain;}
.event-t{text-align: center;margin-top: 10px;line-height: 1.8;} */
/* footer{width: 100%;height: 460px;background-color: darkolivegreen;margin-left: 117px;margin-top: 150px;}
footer img{width: 100%;height: 100%;} */
/* footer */
footer{padding: 60px 0 60px 10% ;width: 100%;margin-top: 150px;}
.footer-content{width: 100%;display: flex;justify-content: space-between;gap: 10px;}
.footer-content a{text-decoration: none;color: rgba(0, 0, 0, 0.7);font-size: 16px;}
.left{flex-basis: 60%;width: 100%;}
.center, .right{flex-basis: 15%;text-align: left; }
.col h2{font-size: 32px;color: rgba(0, 0, 0, 0.7);margin-bottom: 20px;}
.col h3{font-size: 26px;color: rgba(0, 0, 0, 0.7);margin-bottom: 20px;}
.footer-nav{display: flex;align-items: center;gap: 20px;list-style: none;margin-bottom: 40px;}
.footer-nav li:not(:last-child){padding-right: 20px;border-right: 1px solid #000000;}
.footer-info{margin-top: 20px;color: rgba(168, 168, 168, 0.7);}
.footer-info span{color: #000;}
.socials{display: flex;align-items: center;gap: 10px;list-style: none;margin-top: 10px;}
.copyright hr{margin: 10px 0;color: #ccc;}
.copyright{margin-top: 40px;font-size: 16px;color: rgba(0, 0, 0, 0.7);}

/* 푸터 모바일 */

@media only screen and (max-width: 700px) {
  /* Footer 전체 */
  footer {
    padding: 40px 5%; /* 좌우 여백 조정 */
    width: 100%;
    margin-top: 100px;
    box-sizing: border-box;
  }

  /* Footer 컨텐츠: 컬럼을 세로로 배치 */
  .footer-content {
    flex-direction: column; /* 모바일에서는 세로 정렬 */
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  /* 왼쪽, 가운데, 오른쪽 정렬 */
  .left, .center, .right {
    flex-basis: 100%; /* 한 줄에 하나씩 */
    width: 100%;
    text-align: center;
  }

  /* Footer 제목 스타일 */
  .col h2 {
    font-size: 18px; /* 모바일에서 크기 조정 */
    margin-bottom: 15px;
  }

  .col h3 {
    font-size: 16px; /* 모바일에서 크기 조정 */
    margin-bottom: 15px;
  }

  /* Footer 내비게이션 (가로 정렬 유지) */
  .footer-nav {
    display: flex;
    flex-direction: row; /* 가로 정렬 유지 */
    justify-content: center;
    flex-wrap: nowrap; /* 내용이 넘칠 경우 줄 바꿈 */
    gap: 10px;
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
    text-align: center;
  }

  .footer-nav li {
    border-right: 1px solid #000000; /* 구분선 유지 */
    padding: 0 5px; /* 간격 조정 */
    white-space: nowrap;
    
  }
  .footer-nav a{font-size: 12px;}
  .footer-nav li:last-child {
    border-right: none; /* 마지막 항목의 구분선 제거 */
  }

  /* Footer 정보 */
  .footer-info {
    margin-top: 15px;
    font-size: 14px; /* 작은 화면에서 폰트 크기 조정 */
    color: rgba(168, 168, 168, 0.9);
  }

  /* 소셜 아이콘 */
  .socials {
    justify-content: center;
    margin-top: 15px}
    .copyright p{text-align: center;}
  }

#popup{position: absolute;top: 5%;left: 135px;z-index: 50;}
#popup img{width: 500px;border: 1px solid #000;max-width: 100%;}

@media screen and (max-width: 700px) {
  #popup {
    position: fixed; /* 화면 중앙에 고정 */
    top: 10%; /* 약간 아래 배치 */
    left: 50%;
    transform: translateX(-50%); /* 가로 중앙 정렬 */
    width: 90%; /* 화면의 90% 차지 */
    text-align: center;
  }

  #popup img {
    width: 100%; /* 부모 요소에 맞춰 크기 조정 */
    max-width: 350px; /* 너무 커지지 않도록 최대 크기 지정 */
  }
}
