/*
  가장중요한 조건
  * 가로스롤은 절대 생기면 안된다.
  
  * 가로스크롤이 생기는이유는
    - 위드가 살이있는영역 ex)1200 1000px
    - absolute ->부모한테 무조건 overflow hidden을 줘야됨
  
  * 모바일 확인은 최고 작은 사이즈인 320 (크롬모바일 아이폰se) 확인시 잘나오묜 끝.
 */

/* 실콘텐츠 + 100 */
/* 1300 */
@media screen and (max-width: 1300px) {
  /* common */
  .inner {
    width: 100%;
  }
  /* header */
  header h1 {
    left: 30px;
  }
  header nav {
    padding-right: 30px;
  }
  /* main */
  /* content2 */
  .content2 {
    padding: 0 30px;
  }

  /* content3 */
  .content3 img {
    object-position: left;
  }

  /* content5 */
  .content5 {
    padding: 0 30px;
  }

  /* footer */
  .footer {
    padding: 16px 30px;
  }
}

/*
  테블릿
  중대적인 레이아웃 변화**
  폰트사이즈 줄여준다 아래와같은룰로
  */
@media screen and (max-width: 1024px) {
  .header nav > ul {
    display: none;
  }

  .t_vis {
    display: block;
  }

  .header .m_btn {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    padding: 5px 6px 0;
    cursor: pointer;
  }

  .header .m_btn i {
    display: block;
    height: 2px;
    background: #000;
    margin: 6px 0;
  }
  /* Main */
  /* content1 */
  .content1 .content .content_item {
    margin-bottom: 80px;
  }

  .content1 .content .content_item .img1 {
    height: 500px;
    width: 50%;
  }

  .content1 .content .content_item .img2 {
    right: 0;
    width: 40%;
  }

  .content1 .content .item2.content_item .img2 {
    left: 0;
    right: auto;
  }

  /* video slide */
  .video_slide .swiper-slide .txt_wrap strong {
    font-size: 20px;
  }

  /* banner */
  .banner .txt_wrap h3 {
    font-weight: 38px;
    line-height: 50px;
  }

  .content2 .txt_wrap .desc {
    font-size: 15px;
  }

  /* content3 */
  .content3 {
    height: auto;
  }
  .content3 .img_wrap {
    width: 100%;
    float: none;
  }

  .content3 .txt_wrap {
    width: 100%;
    padding: 0 30px;
  }

  /* content4 */
  .content4 {
    padding: 80px 30px;
  }
  .content4 .item_wrap .img_wrap {
    height: 120px;
  }

  .content4 .item_wrap .item {
    width: calc((100% - 20px) / 3);
    margin: 0;
    margin-right: 10px;
  }

  .content4 .item_wrap .item:last-child {
    margin-right: 0;
  }
  /* content5 */
  .content5 .item_box {
    width: calc((100% - 20px) / 3);
    margin-bottom: 10px;
  }

  .content5 .item_box:nth-child(3) {
    margin-right: 0;
  }

  /* footer */
  .footer {
    text-align: center;
  }
  .footer .left {
    float: none;
  }

  .footer .left img {
    float: none;
    margin: 0 7px;
  }

  .footer .right {
    float: none;
  }

  .footer .right ul {
    display: inline-block;
    margin-top: 20px;
  }

  .footer .right ul li {
    float: none;
    margin-left: 0;
    line-height: 20px;
  }

  .footer .right ul li:nth-child(1) {
    display: none;
  }
}

/*
   모바일
   *대대적 레이아웃 변화*
   사이드 패딩 15~20
   대폰트 font-size: 38~28
   중폰트 18~28
   소폰트 12~ 16
   웬만한 레이아웃은 1줄 아니면 2줄
  */
@media screen and (max-width: 768px) {
  /* 사이드패딩 15px 
    모바일은 320에서 확인*/

  body {
    padding-top: 60px;
  }

  .title_wrap {
    padding: 50px 15px;
  }

  .title_wrap h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .title_wrap p {
    font-size: 18px;
  }

  /* header */
  header {
    width: 100%;
    height: 60px;
  }

  .header h1 {
    left: 15px;
    width: 61px;
    height: 15px;
    line-height: 60px;
  }

  .header .m_btn {
    right: 15px;
  }

  .header .sub_menu {
    text-align: center;
    position: fixed;
    right: 0;
    top: 0;
    padding-top: 60px;
    width: 100%;
    height: 100%;
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
  }

  .header .sub_menu.on {
    visibility: visible;
    opacity: 1;
  }

  .header .sub_menu h2 {
    position: absolute;
    top: 23px;
    left: 15px;
    width: 61px;
    height: 15px;
    line-height: 60px;
    background: url(../images/logo.webp) no-repeat;
    background-size: 100%;
  }

  .header .sub_menu span {
    font-weight: normal;
  }

  .header .sub_menu .close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 22px;
  }

  .header .sub_menu ul > li {
    border-bottom: 1px solid #eee;
  }

  .header .sub_menu ul > li > a {
    display: block;
    padding: 20px 0;
    font-weight: 600;
    /* border: 1px solid #eee; */
  }

  .header .sub_menu .sub_wrap ul li {
    font-weight: 300;
    border-bottom: none;
  }

  .header .sub_menu .sub_wrap {
    height: 0;
    overflow: hidden;
  }

  .header .sub_menu .sub_wrap ul li a {
    font-weight: 300;
    font-size: 14px;
    padding: 15px 0;
    border: none;
  }

  /* Main */
  /* Main vs */
  .main_vs {
    position: relative;
    /* margin-top: 60px; */
    height: calc(100vh - 60px);
    overflow: hidden;
  }

  .main_vs .txt_wrap strong span {
    font-size: 10vw;
  }

  /* content1 */
  .content1 {
    padding: 0 15px;
  }

  .content1 .txt_wrap strong {
    font-size: 20px;
    line-height: 1.2;
  }

  .content1 .txt_wrap p {
    font-size: 14px;
  }

  .content1 .content .content_item {
    position: inherit;
  }
  .content1 .content .content_item .img1,
  .content1 .content .content_item .txt_wrap {
    position: inherit;
  }

  .img_ani::after {
    position: inherit;
  }

  .content1 .content .content_item .img1 {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    padding-bottom: 100%;
    position: relative;
  }

  .content1 .content .content_item .img1 img {
    position: absolute;
    left: 0;
    top: 0;
  }

  .content1 .content .content_item .img2 {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    padding-bottom: 100%;
    position: relative;
  }

  .content1 .content .content_item .img2 img {
    position: absolute;
    left: 0;
    top: 0;
    object-position: center;
  }

  .content1 .content .content_item .txt_wrap {
    width: 100%;
  }

  .content1 .content .content_item {
    height: auto;
    margin-bottom: 35px;
  }

  /* video */
  .video_slide {
    margin-bottom: 50px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  .video_slide .swiper-slide {
    padding-bottom: 80%;
  }

  .video_slide .swiper-slide .txt_wrap {
    padding: 15px;
  }

  .video_slide .swiper-slide .txt_wrap strong {
    font-size: 18px;
  }

  .video_slide .swiper-slide .txt_wrap p {
    font-size: 12px;
  }

  /* banner */
  .banner .txt_wrap h3 {
    font-size: 28px;
    line-height: 1.2;
  }

  /* content2 */
  .content2 {
    padding: 0 15px;
  }

  .content2 h2 {
    font-size: 28px;
    line-height: 1.2;
    padding: 50px 0;
  }

  .content2 .txt_wrap {
    margin-top: 35px;
  }

  .content2 .txt_wrap > div {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  .content2 .txt_wrap .desc {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 35px;
  }

  .content2 .txt_wrap div:last-child .desc {
    margin-bottom: 0;
  }

  /* content3 */
  .content3 {
    margin-bottom: 50px;
  }

  .content3 .txt_wrap h2 {
    margin: 50px 0;
    font-size: 30px;
    line-height: 1.2;
  }

  .content3 .txt_wrap strong {
    line-height: 1.4;
  }

  .content3 .txt_wrap p {
    font-size: 14px;
    margin-top: 10px;
  }

  .content3 .txt_wrap .desc:last-child {
    margin-bottom: 0;
  }

  /* content4 */
  .content4 {
    padding: 50px 15px;
  }

  .content4 h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 70px;
  }

  .content4 .item_wrap .item {
    float: none;
    width: 100%;
    margin-bottom: 50px;
  }

  .content4 .item_wrap .item:last-child {
    margin-bottom: 0;
  }

  .content4 .item_wrap .txt_wrap {
    padding-top: 60px;
  }

  .content4 .main_desc {
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
  }

  .content4 .main_desc .name {
    display: block;
    font-weight: 600;
  }

  .content4 .main_desc .price {
    display: block;
    margin-top: 10px;
    font-size: 14px;
  }

  .content4 .detail > dl {
    padding-top: 20px;
  }

  .content4 .detail > dl .chk {
    margin-top: 20px;
  }

  .content4 .detail > dl dd {
    font-size: 14px;
  }

  .content4 .more_btn {
    font-size: 14px;
  }

  /* content5 */
  .content5 {
    padding: 0 15px;
    margin: 50px auto;
  }

  .content5 h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 50px;
  }

  .content5 .item_box {
    width: 100%;
    float: none;
  }

  .content5 .item_box .img_wrap {
    width: 80%;
    margin: auto;
    padding: 30px 0;
  }
  .content5 .item_box .txt_wrap {
    padding-bottom: 30px;
  }

  .content5 .txt_wrap strong {
    font-size: 20px;
    font-weight: 600;
  }

  .content5 .item_box .txt_wrap span {
    font-size: 14px;
    margin-top: 10px;
    font-weight: normal;
    padding-bottom: 0;
  }

  #cursor {
    display: none;
  }
}
