*, html{margin: 0; padding: 0; box-sizing: border-box; border: none; outline: none;}
ul, ol{list-style: none;}
a{text-decoration: none;}
html, body{overflow: hidden;}
/* ********************************************** */
nav{
  position: fixed;
  width: 100vw;
  z-index: 100;
  background:rgba(166, 21, 27, 0.5);
}
nav input{display: none;}
nav .wrapper{
  position: relative;
  width: 100%;  
  height: 70px;
  line-height: 70px;
  padding: 0 30px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

 img{width: 100%; object-fit: cover;}  
.logo img{width: 100px;}

.nav-links{display: inline-flex;}
.nav-links li{list-style: none;}
.nav-links li a{
  padding: 12px 16px;
  color: #f2f2f2;
  font-size: 18px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.nav-links li a:hover{
  padding: 10px 20px;
  background: #a6151b;
}
.nav-links .mobile-item{display: none;}
.nav-links .drop-menu{
  position: absolute;
  top: 85px;
  left: auto;
  width: 10%;
  background: #000;
  line-height: 45px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}
.nav-links li:hover .drop-menu,
.nav-links li:hover .mega-box{
  position: absolute;
  top: 70px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.drop-menu li a{
  padding: 0 0 0 20px;
  display: block;
  width: 100%;
  /* border-radius: 0; */
}

.mega-box{
  position: absolute;
  top: 85px;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  visibility: hidden;
}

.content{
  width: 100%;
  height: auto;
  padding: 25px 20px;
  background: #000000;
  display: flex;
  justify-content: center;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}
.content .row{
  width: calc(25% - 30px);
  line-height: 40px;
}
.content .row img{
  width: 100%;
  height: auto;
  padding: 25px 80px 5px 20px;
  cursor: pointer;
}
.content .row h4{
  color: #f2f2f2;
  font-size: 18px;
  padding: 0 0 0 20px;
  cursor: pointer;
}
.content .row h4:hover{color: #a6151b;}
.content .row h3{
  color: #f2f2f2;
  font-size: 22px;
  margin-top: 12px;
}
.content .row .mega-links{
  margin-left: -50px;
  padding-left: 5px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.row .mega-links li{padding: 0 30px;}
.row .mega-links li a{
  padding: 0 20px;
  display: block;
  color: #f2f2f2;
  font-size: 18px;
}
.row .mega-links li a:hover{
  padding: 10px 20px;
  background: #a6151b;
}

.wrapper .btn{
  display: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.wrapper .btn.close-btn{
  position: absolute;
  top: 10px;
  right: 30px;
}

/* 동영상 */
.main{
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  z-index: -1;
  opacity: 0.5;
}
.main_content{
  width: 100%;
  height: 100vh;
  object-fit: cover;
  /* display: block; */
}

/* 4가지 박스 */
.shopping{
  position: relative;
  top: -580px;

  width: 80vw;
  height: 500px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;

  margin: 0 auto;
}

.product:nth-child(1){
  width: 100%;
  height: auto;

  background: url(../images/product01.jpg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 5px solid #fff;
  border-radius: 30px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.product:nth-child(2){
  width: 100%;
  height: auto;

  background: url(../images/product02.jpg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 5px solid #fff;
  border-radius: 30px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.product:nth-child(3){
  width: 100%;
  height: auto;

  background: url(../images/product03.jpg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 5px solid #fff;
  border-radius: 30px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.product:nth-child(4){
  width: 100%;
  height: auto;

  background: url(../images/product04.jpg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 5px solid #fff;
  border-radius: 30px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.box{
  padding: 10px 20px;
  background: rgba(255,255,255,0.5);
  border: 2px solid #fff;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

.box a{
  font-size: 24px;
  color: #fff;
  text-align: center;
}

.product:nth-child(1) .box:hover{background: rgba(194, 35, 29, 0.8);}
.product:nth-child(2) .box:hover{background: rgba(189, 131, 91, 0.8);}
.product:nth-child(3) .box:hover{background: rgba(29, 32, 47, 0.8);}
.product:nth-child(4) .box:hover{background: rgba(0, 116, 173, 0.8);}

/* *******반응형*********** */
@media (max-width:980px){
  .wrapper .btn{display: block;}
  .wrapper .nav-links{
    display: block;
    width: 100%; max-width: 350px; height: 100vh;
    padding: 50px 10px; line-height: 50px;
    background: #242526;
    
    position: fixed; top: 0; left: -100%;
    overflow-y: auto;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
  }
 
  #menu-btn:checked~.nav-links{left: 0;}
  #menu-btn:checked~.btn.menu-btn{display: none;}
  #close-btn:checked~.btn.menu-btn{display: block;}

  .nav-links::-webkit-scrollbar{
    display: none;
    width: 0;
    height: 0;
  }

  .nav-links li{margin: 15px 10px;}
  .nav-links li a{
    padding: 0 20px;
    display: block;
    font-size: 20px;
  }

  .nav-links .drop-menu,
  .nav-links .mega-box{
    position: static;
    top: 0;
    width: 100%;
    max-height: 0px;
    padding-left: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transition: all 0.3s ease;
   }

  .nav-links li:hover .drop-menu, 
  .nav-links li:hover .mega-box{
    position: static;
    top: 0;
    opacity: 1;
    visibility: visible;
    max-height: 1200px;
    transition: all 0.3s ease;
  }

  .nav-links .desktop-item{display: none;}
  .nav-links .mobile-item{ 
    display: block;
    color: #f2f2f2;
    font-size: 20px;
    font-weight: 500;
    padding-left: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .nav-links .mobile-item:hover{
    padding: 10px 20px;
    background: #a6151b;
  }

  .drop-menu li{margin: 0;}
  .drop-menu li a{
    border-radius: 5px;
    font-size: 18px;
    color: #d9d9d9;
  }

  .mega-box .content{
    display: flex; flex-direction: column;
    padding: 20px 20px 0 20px; box-shadow: none;
  }
  .mega-box .content .row{
    width: 100%; margin-bottom: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .mega-box .content .row:hover:not(:nth-child(4)){
    padding: 10px 10px;
    background: #a6151b;
    border-radius: 5px;
  }
  .content .row img{
    width: 100%;
    height: auto;
    padding: 20px 20px 5px 20px;
  }
  .content .row h4:hover{color: #f2f2f2;}

  .mega-box .content .row:nth-child(4){
    padding-left: 20px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  
  .content .row .mega-links{border-left: 0px; padding-left: 5px;}
  .row .mega-links li{margin: 0;}
  .content .row h3{font-size: 20px;}

  .shopping{
    width: 80vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .box{padding: 6px 10px;}
  .box a{font-size: 20px;}
}