@charset "utf-8";
/* 기본설정 */
/* @import "default.css"; */
* {
  box-sizing: border-box;
}
.mo {display: none !important;}
.contents {
  position: relative;
  z-index: 1;
}
.mainslide{
    height: 100%;
    position: relative;
}
.mainslide img{
    width: 100%;
    /* height: 100vh; */
    max-height: 100vh;
}



/* ===== section01 ===== */
.section01 {
  background: var(--main-bg);
  padding: 180px 0 140px;
}
.section01 .sec01-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 텍스트 */
.section01 .sec01-txt { flex: 0 0 auto; }
.section01 .sec01-title {
  margin: 0 0 56px;
  color: var(--main-orange);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}
.section01 .sec01-sub {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
}
.section01 .sec01-desc {
  margin: 0 0 40px;
}
.section01 .sec01-desc:last-of-type { margin-bottom: 0; }
.section01 .sec01-btns {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 58px;
}

/* 이미지 */
.section01 .sec01-img {
  flex: 0 1 820px;
  display: flex;
  gap: 20px;
  min-width: 0;
}
.section01 .sec01-img img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  aspect-ratio: 400 / 430;
  object-fit: cover;
  display: block;
}

/* ===== Mobile (768px 이하) ===== */
@media (max-width: 768px) {
  section.section01 { 
    padding: 150px 0 0; 
  }
  .section01 .sec01-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 0 5vw;
  }
  .section01 .sec01-txt { padding: 0 10px; }
  .section01 .sec01-title {
    margin-bottom: 30px;
  }
  .section01 .sec01-sub {
    margin-bottom: 10px;
    font-size: 15px;
  }
  .section01 .sec01-desc {
    margin-bottom: 22px;
  }
  .section01 .sec01-btns {
    gap: 40px;
    margin-top: 32px;
  }
  
  .section01 .sec01-img {
    flex: none;
    gap: 10px;
  }
}

/* ===== layout ===== */
.section.layout {
  margin-top: 200px;
  padding: 0;
  /* border: 3px solid var(--main-orange); */
  position: relative;
}
@media (max-width:768px) {
  .section.layout {
    margin-top: 80px;
  }
}




/* ---- 메인 마지막 영역 ---- */
/* 모바일 (기본) */
.main-last {
  position: relative;
  height: 530px;
  overflow: hidden;
}

/* 어두운 오버레이 */
.main-last::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1;
}

.main-last .ml-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.main-last .ml-bg span {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .5s;
}
.main-last .ml-bg .bg01 { background-image: url(/html/images/main/m/last01.jpg); opacity: 1; }
.main-last .ml-bg .bg02 { background-image: url(/html/images/main/m/last02.jpg); }
.main-last .ml-bg .bg03 { background-image: url(/html/images/main/m/last03.jpg); }
.main-last .ml-bg .bg04 { background-image: url(/html/images/main/m/last04.jpg); }

/* 버튼 hover 시 기본 배경(01)은 숨김 */
.main-last:has(.ml-btns a:hover) .bg01,
.main-last:has(.ml-btns a:focus-visible) .bg01 { opacity: 0; }

/* 버튼 순서에 맞는 배경 표시 */
.main-last:has(.ml-btns a:nth-child(1):hover) .bg01,
.main-last:has(.ml-btns a:nth-child(1):focus-visible) .bg01 { opacity: 1; }
.main-last:has(.ml-btns a:nth-child(2):hover) .bg02,
.main-last:has(.ml-btns a:nth-child(2):focus-visible) .bg02 { opacity: 1; }
.main-last:has(.ml-btns a:nth-child(3):hover) .bg03,
.main-last:has(.ml-btns a:nth-child(3):focus-visible) .bg03 { opacity: 1; }
.main-last:has(.ml-btns a:nth-child(4):hover) .bg04,
.main-last:has(.ml-btns a:nth-child(4):focus-visible) .bg04 { opacity: 1; }



/* 텍스트 */
.main-last .ml-txt {
  position: absolute;
  top: 154px;
  left: 0;
  right: 0;
  padding: 0 15px;
  text-align: center;
  color: #fff;
  z-index: 2;
}
.main-last .ml-tit {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  font-family: 'pret-m';
  color: #fff;
  word-break: keep-all;
}
.main-last .ml-sub {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
}

/* 버튼 영역: 모바일 2x2 */
.main-last .ml-btns {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);   /* 가운데 정렬 */
  bottom: 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 160px);   /* 버튼 너비 고정 */
  gap: 8px;
  z-index: 2;
}

/* btn-more 오버라이드 (공통 스타일 위에 덮어쓰기) */
.main-last .btn-more {
  justify-content: center;
  gap: 8px;
  height: 60px;
  /* border: 1px solid #fff; */
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all .3s;
  position: relative;
}
.main-last .btn-more:hover {
  background: #B8915C;
  border-radius: 42px;
}
.main-last .btn-more:hover::before,  .main-last .btn-more:hover::after{
  width: 0;
  height: 0;
  border: none;
}
.main-last .btn-more .plus {
  width: 22px;
  height: 22px;
  background: #fff;
}
/* 흰 원 위의 + 선은 어두운 색으로 */
.main-last .btn-more .plus::before,
.main-last .btn-more .plus::after {
  background: #333;
}


@media (min-width:400px) {
  .main-last .ml-btns {
    grid-template-columns: repeat(2, 176px);   
  }

  /* btn-more 오버라이드 (공통 스타일 위에 덮어쓰기) */
  .main-last .btn-more {
    font-size: 17px;
  }
}

/* PC */
@media (min-width: 769px) {
  .main-last {
    height: 850px;
  }

  .main-last .ml-bg .bg01 { background-image: url(/html/images/main/last01.jpg); }
  .main-last .ml-bg .bg02 { background-image: url(/html/images/main/last02.jpg); }
  .main-last .ml-bg .bg03 { background-image: url(/html/images/main/last03.jpg); }
  .main-last .ml-bg .bg04 { background-image: url(/html/images/main/last04.jpg); }


  .main-last .ml-txt {
    top: 262px;
  }
  .main-last .ml-tit {
    font-size: 25px;
  }
  .main-last .ml-sub {
    margin-top: 18px;
    font-size: 20px;
  }

  /* 버튼 영역: PC 가로 4개 */
  .main-last .ml-btns {
    bottom: 69px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 19px;
  }
  .main-last .btn-more {
    width: 265px;
    max-width: 265px;
    height: 83px;
    gap: 15px;
    font-size: 25px;
    letter-spacing: 0.05em;
  }
  .main-last .btn-more .plus {
    width: 26px;
    height: 26px;
  }
}