@charset "utf-8";

/* 공통 */
#fullpage .section {
  width: 100%;
  overflow: hidden;
  position: relative;
}

#fullpage .section .fp-bg {
  width: 100%;
  height: 100%;
}

#fullpage .section .fp-bg img {
  width: 100%;
  height: 100%;
}

/* fullpage nav 
#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span,
#fp-nav ul li:hover a.active span,
.fp-slidesNav ul li:hover a.active span{
  height: 16px;
  width: 16px;
  margin: -6px 0 0 -7px;
  border-radius: 100%;
  outline: 1px solid #fff;
  outline-offset: 4px;
} */
/* nav dark 
#fp-nav.dark ul li a span,
.fp-slidesNav ul li a span{
  background: #585858;
}
#fp-nav.dark ul li a.active span,
#fp-nav.dark ul li:hover a.active span{
  outline: 1px solid #585858;
  margin: -2px 0 0 -2px;
} */

/*** 섹션1 ***/
#section1 {
  width: 100%;
  height: 1080px;
}
#section1 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*** 섹션2 ***/
#section2 {
  padding: 126px 0;
}

.head-text {
  text-align: center;
  margin-bottom: 64px;
}
.head-text h2 {
  font-family: var(--old);
  font-weight: 400;
  font-size: var(--f42);
  color: #1A1A1A;
  letter-spacing: -2%;
}
.head-text p {
  font-weight: 300;
}

/* 메인 슬라이더 */
.main-slider {
  display: grid;
  grid-template-columns: minmax(0, 404fr) minmax(0, 1115fr) minmax(0, 108fr) minmax(0, 293fr);
  align-items: end;
}
.main-stage,
.main-slide,
.box,
.img {
  min-width: 0;
}

/* 큰 이미지 (active) */
.main-stage {
  grid-column: 2;
  display: grid;
  aspect-ratio: 1115 / 678;
}
.main-slide {
  grid-area: 1 / 1;
  display: grid;
  visibility: hidden;
  pointer-events: none;
}
.main-slide.is-active  { visibility: visible; z-index: 2; pointer-events: auto; }
.main-slide.is-leaving { visibility: visible; z-index: 1; }


.box {
  display: grid;
}
.img {
  grid-area: 1 / 1;
  margin: 0;
  overflow: hidden;
}
.img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* 텍스트 카드 */
.swiper-card {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  z-index: 1;
  width: 35.34%;             /* 394 / 1115 */
  min-width: 400px;
  min-height: 14.69vw;       /* 282px */
  margin: 0 0 5.11% -15.52%; /* 아래 57px / 왼쪽 -173px */
  padding: 2.6vw 1.8vw 2.4vw;
  background: #fff;
  text-align: center;
  box-shadow: -4px 6px 6px rgba(0, 0, 0, 0.08);
}
.main-slide.is-leaving .swiper-card { visibility: hidden; }

.swiper-card h1 {
  margin-bottom: 15px;
  font-family: var(--se);
  font-size: var(--f20);
  font-weight: 700;
  color: #27221F;
}
.swiper-card h2 {
  margin-bottom: 30px;
  font-family: var(--old);
  color: var(--gray-dark);
}
.swiper-card h3 {
  margin-bottom: 15px;
  font-family: var(--old);
  font-size: var(--f14);
  color: #6D6D6D;
}
.swiper-card p {
  margin: 0;
  font-size: var(--f12);
  line-height: 1.3;
  color: #6D6D6D;
}

/* 썸네일 */
.main-thumbs {
  grid-column: 4;
  display: flex;
  gap: 6.14%;                /* 18 / 293 */
}
.slider-thumb {
  flex: 0 0 62.12%;          /* 182 / 293 */
  aspect-ratio: 182 / 230;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.slider-thumb:hover { opacity: 0.8; }
.slider-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

/* 네비 */
.main-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 46px;
  margin-top: 34px;
}
.slider-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s ease;
}
.slider-btn span {
  font-size: var(--f14);
  font-weight: 500;
}
.slider-btn img {
  transition: transform 0.3s ease;
}
.slider-prev img {
  transform: rotate(180deg);
}
.slider-next:hover img {
  transform: translateX(3px);
}
.slider-prev:hover img {
  transform: translateX(-3px) rotate(180deg);
}
.slider-btn:focus-visible {
  outline: 1px solid #000;
  outline-offset: 4px;
}

/*** 섹션3 ***/
#section3{
  width: 100%;
  height: 740px;
}
#section3 .fp-bg {
  position: relative;
  background: url('/images/sec03-main.jpg?v=1.3') center/cover no-repeat;
  background-size: 100% 100%;
}
#section3 .fp-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
#section3 .text {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  font-size: var(--f18);
  font-family: var(--pre);
  font-weight: 200;
  text-align: center;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
  letter-spacing: 2%;
  line-height: 1.8em;
}
#section3 .text .txt {
  display: block;
  margin-bottom: 30px;
  font-weight: 400;
  font-size: var(--f40);
  letter-spacing: -2%;
  font-family: var(--old);
}
#section3 .text a {
  border: 1px solid #D2D2D2;
  color: #fff;
  font-weight: 400;
  padding: 10px 0;
  min-width: 175px;
  text-align: center;
  margin-top: 70px;
  transition: all 0.3s;
  width: 13%;
}
#section3 .text a img {
  margin-left: 14px;
  transition: all 0.3s;
}
#section3 .text a:hover {
  background: #D2D2D2;
  transition: all 0.3s;
  color: #1A1A1A;
}
#section3 .text a:hover img {
  filter: invert(1);
  transform: translate(6px, 0);
  transition: all 0.3s;
}


@media (max-width: 1201px) {
  .section .fp-bg{
    background-size: cover !important;
  }

  /*섹션1*/
  #section1 {
    height: 100vh;
  }
  #section1 video {
    height: 100vh;
  }

  /*섹션2*/
  #section2 { 
    padding: 64px 0; 
  }
  .head-text { 
    margin-bottom: 36px; 
  }
  .head-text h2 {
    font-size: var(--f32);
  }
  .head-text p {
    font-size: var(--f12);
    width: 80%;
    margin: 0 auto;
  }
  /*슬라이더*/
  .main-slider {
    grid-template-columns: minmax(0, 1fr);
  }
  .main-stage {
    grid-column: 1;
    aspect-ratio: auto;
  }
  .box,
  .swiper-slide-active .box {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }
  .img {
    height: 667px;
    flex-shrink: 0;
  }
  .img img {
    filter: none;
  }
  .swiper-card {
    position: relative;
    z-index: 1;
    align-self: center;
    width: calc(100% - 36px);
    min-width: 0;
    min-height: 0;
    margin: -140px 0 0;
    padding: 26px 0;
  }
  .main-nav {
    margin-top: 30px;
  }
  .swiper-card h1 {
    font-size: var(--f18);
    margin-bottom: 30px;
  }
  .swiper-card h2 {
    font-size: var(--f16);
  }
  .swiper-card h3 {
    font-size: var(--f12);
  }
  .swiper-card p {
    width: 90%;
    margin: 0 auto;
  }
  .slider-item {
    position: relative;
  }
  .slider-thumb {
    display: none;
  }
  .slider-btn span {
    font-size: var(--f12);
  }

  /*섹션3*/
  #section3{
    height: 667px;
    display: flex;
    justify-content: center;
  }
  #section3 .fp-bg{
    background-size: cover;
  }
  #section3 .fp-bg::before{
    background: rgba(0, 0, 0, 0.32);
  }
  #section3 .text {
    font-size: var(--f12);
    word-break: keep-all;
    width: 86%;
    top: auto;
    left: auto;
  }
  #section3 .text .txt {
    font-size: var(--f22);
  }
  #section3 .text a {
    padding: 14px 0;
    font-size: var(--f14);
    letter-spacing: 4%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .box, .img img, .swiper-card { transition-duration: 0ms !important; }
}