@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 .textbox{
    text-align: center;
    position: absolute;
    transform: translate(-50%,-50%);
    z-index: 9998;
    top: 50%;
    left: 50%;
}
.mainslide h2{
    font-size: 85px;
    color: #fff;
    letter-spacing: 0.15em;
}
.mainslide span{
    font-size: 23px;
    color: #fff;
    display: block;
    letter-spacing: 0.25em;
    font-family: 'arita-l';
}
.mainslide .swiper-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width:768px){
  .mo {display: block !important;}
  .pc {display: none !important;}
  .mainslide {
    height: auto;
    margin-top: 50px;
  }
  .mainslide h2{
    font-size: 32px;
    letter-spacing: 0.05em;
  }
  .mainslide span{
    font-size: 12px;
    letter-spacing: 0.18em;
  }

}


/* ===== main-sec01 ===== */
/* ===== PC ===== */
.main-sec01.section {
  display: flex;
  align-items: flex-start;
  gap: 95px;
  padding: 250px 11.46vw 125px;
  overflow-x: hidden;
}

.sec01-left {
  width: 60%;
}

.sec01-img01 img, .sec01-img01 video{
  display: block;
  width: 100%;
  max-width: 740px;
  /* height: 26vw; */
  object-fit: cover;
}

.sec01-right {
  width: 40%;
  padding-top: 20px;
}

.sec01-right h2 {
  line-height: 1.4;
  margin: 0 0 30px 60px;
}

.sec01-right p {
  margin: 0 0 0 60px;
}

.sec01-img02 {
  max-width: 414px;
  margin: 40px 0 0 0;
}

.sec01-img02 img {
  display: block;
  width: 100%;
}
@media (max-width:1400px) {
  .sec01-left {
      width: 49%;
  }
}


/* ===== Mobile (~768px 이하) ===== */
@media (max-width: 768px) {

  .main-sec01.section {
    flex-direction: column;
    gap: 0;
    padding: 110px 15px 55px;
  }

  .sec01-left {
    width: 78.75%;
    margin-bottom: 10vw; /* img02가 겹치는 만큼 아래 여백 확보 */
  }

  .sec01-img01 img, .sec01-img01 video {
    width: 100%;
    height: 47vw;
  }


  .sec01-right {
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }

  .sec01-right h2 {
    margin: 0 0 20px 15px;
    font-size: 18px;

  }
  .sec01-right p {
    margin: 0 0 0 15px;
    font-size: 12px;
  }

  .sec01-img02 {
    position: absolute;
    right: 1.75vw;
    top: -30.5vw;
    width: 34vw;
    margin: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
}


/* 중간 배너 */
.mid-banner {
    position: relative;
    background: url(/images/main/mid-banner.jpg) center 0% / cover no-repeat;
    width: 100%;
    height: 460px;
    transition: all 2s ease-in-out;
}
.mid-banner.active {
    background: url(/images/main/mid-banner.jpg) center 60% / cover no-repeat;
}
.mid-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.mid-banner .inner {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.mid-banner p{
    margin-bottom: 40px;
    font-size: 24px;
    color: rgba(255, 255, 255, .8);
    font-family: 'arita-l';
}

@media (max-width:768px) {
  .mid-banner {
    position: relative;
    background: url(/images/main/m/mid-banner.jpg) center 0% / cover no-repeat;
    width: 100%;
    height: 225px;
    background-attachment: fixed;
  } 
  .mid-banner.active {
    background: url(/images/main/m/mid-banner.jpg) center 60% / cover no-repeat;
  }
  .mid-banner p{
    margin-bottom: 20px;
    font-size: 16px;
  }
}

/* ----- 메인 last 섹션  */
.main-last {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-left: auto;
   padding: 125px 0 125px 11.46vw;
}

/* 좌측 세로 텍스트 (PC) */
.main-last__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg) translateY(70px);
  opacity: 0;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-family: 'arita-l';
  white-space: nowrap;
  transition: all 1.5s ease-in-out;
}
.main-last__text.active {
  transform: rotate(180deg) translateY(0);
  opacity: 1;
}
/* 텍스트 제외한 이미지 영역 전체 */
.main-last__row {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 40px;
  flex: 1;
}

/* 소형 이미지 2장 (세로 배치) */
.main-last__small {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 28.75vw;
  max-width: 552px;
}
.main-last__small-item {
  overflow: hidden;
}
.main-last__small-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 대형 이미지 1장 */
.main-last__big {
  position: relative;
  width: 48.9vw;
  max-width: 939px;
  overflow: hidden;
}
/* .main-last__big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */
.main-last__big img.main-last__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.main-last__big img.main-last__img.is-day {
  opacity: 1;
  position: relative; /* 초기 레이아웃 높이 확보용, 아래 참고 */
}

/* 밤 상태 */
.main-last__big.is-night img.main-last__img.is-day {
  opacity: 0;
}
.main-last__big.is-night img.main-last__img.is-night {
  opacity: 1;
}

/* 토글 버튼 */
.main-last__toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  border-bottom: 1px solid rgb(91 87 87 / 25%);
  cursor: pointer;
}
.main-last__toggle svg {
  width: 100%;
  height: 100%;
  display: block;
}
.main-last__toggle .icon-moon path {
  fill: #f4f9ff; /* 은은한 달빛 블루그레이 */
}

.main-last__toggle .icon-sun circle {
  fill: #ffd15c; /* 따뜻한 해 색 */
}
.main-last__toggle .icon-sun line {
  stroke: #ffd15c;
}

.main-last__toggle .icon-sun {
  display: none;
}
.main-last__big.is-night .main-last__toggle .icon-moon {
  display: none;
}
.main-last__big.is-night .main-last__toggle .icon-sun {
  display: block;
}


@media (max-width:1200px) {
  .main-last {
    gap: 30px;
    padding: 125px 0 125px 6vw;
  }
}

/* ------------------ 768px 이하 (모바일) ------------------ */
@media (max-width: 768px) {

  .main-last {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0px 10px 110px;
  }

  /* 텍스트 가로 배치로 전환 */
  .main-last__text {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
  }
  .main-last__text.active {
    transform: translateY(0);
  }

  .main-last__row {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  /* 소형 이미지 2장 가로 배치 */
  .main-last__small {
    flex-direction: row;
    width: 100%;
    gap: 20px;
  }
  .main-last__small-item {
    width: 45vw;
  }

  /* 대형 이미지 하단, 전체 너비 */
  .main-last__big {
    width: 100%;
  }

  /* 토글 버튼 */
  .main-last__toggle {
    top: 10px;
    left: 10px;
    width: 23px;
    height: 23px;
  }

}



