/* BASIC css start */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#page1,
#page2,
#page3,
#page4,
#page5 {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 공통 이미지 */
.wrap img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  vertical-align: top;
}

.wrap > div,
.wrap section > div {
  width: 100%;
  margin: 0 auto;
  padding: 5% 0;
  box-sizing: border-box;
}

/* 섹션별 배경색 */
.section-white {
  background: #ffffff;
  padding: 5% 0;
}

.section-mint {
  background: #d4fffa;
  padding: 7% 0 !important;
}

.section-lightgray {
  background: #eeeeee;
  padding: 7% 0 !important;
}

.section-sky {
  background: #d5eaf4;
  padding: 7% 0 !important;
}

.section-palesky {
  background: #e8f6ff;
  padding: 7% 0 !important;
}

.section-needs {
  background: #467fc4;
  padding: 6% 0 !important;
}

.section-after {
  background: #d2efff;
  padding: 6% 0 !important;
}

.section-peach {
  background: #ffe9db;
  padding: 6% 0 !important;
}

.section-gray {
  background: #efefef;
  padding: 6% 0 !important;
}

.section-black {
  background: #0d0d0d;
  padding: 6% 0 !important;
}

.gift-section {
  padding: 8% 0 !important;
}

/* 인트로 */
.intro-section {
  background: #fff;
  padding: 3% 0 !important;
}

/* 상단 영상 */
.video-bg-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3840 / 2160;
  overflow: hidden;
  background: #000;
}

.video-bg-wrap iframe,
.video-bg-wrap .overlay-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-bg-wrap iframe {
  z-index: 0;
  pointer-events: none;
}

.video-bg-wrap .overlay-image {
  z-index: 1;
  object-fit: contain;
  pointer-events: none;
}

/* 아웃트로 */
.video-bg-wrap2 {
  position: relative;
  width: 100%;
  aspect-ratio: 3840 / 1500;
  overflow: hidden;
  background: #000;
}

.video-bg-wrap2 iframe,
.video-bg-wrap2 .overlay-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-bg-wrap2 iframe {
  z-index: 0;
  pointer-events: none;
}

.video-bg-wrap2 .overlay-image {
  z-index: 1;
  object-fit: contain;
  pointer-events: none;
}

/* PAGE4 TN8 상세 */
.tn8-detail {
  width: 100%;
  padding: 6% 0 !important;
  background: #2a2a2a;
}

.tn8-detail > img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto 18px;
}

.video-bg-wrap3 {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1920 / 1080;
  margin: 0 auto 72px;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.video-bg-wrap4 {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1920 / 2160;
  margin: 0 auto 72px;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.video-bg-wrap3 iframe,
.video-bg-wrap4 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  pointer-events: none;
}

.spec-section {
  background: #f9f9f9;
}

/* 타이머 */
.timer_wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 6px;
  background: #222222de;
  color: #fff;
  font-size: 1.1rem;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.timer_wrap > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.timer_wrap .timer_text {
  color: #fff;
  font-family: 'Spoqa Han Sans Neo', sans-serif;
  font-size: 1.2em;
  font-weight: 500;
  text-align: center;
}

.timer_wrap .timer {
  color: #ffe600;
  font-family: 'Spoqa Han Sans Neo', sans-serif;
  font-size: 2em;
  font-weight: 800;
  letter-spacing: 2px;
}

.timer_wrap a {
  display: inline-block;
  padding: 5px 22px;
  border-radius: 8px;
  background: #148bff;
  color: #fff;
  font-family: 'Spoqa Han Sans Neo', sans-serif;
  font-size: 1.2em;
  font-weight: 500;
  text-decoration: none;
}

/* 상담혜택 */
.promo-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

.promo-image,
.promo-content {
  width: 100%;
  max-width: 48%;
  box-sizing: border-box;
}

.promo-image {
  position: relative;
  z-index: 1;
  margin-right: -20%;
  transform: translateX(-50px);
  pointer-events: none;
}

.promo-image img {
  width: 100%;
  max-width: 100%;
  pointer-events: none;
}

.promo-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5%;
  background: #f3f3f3;
  pointer-events: auto;
}

.promo-content img {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  pointer-events: none;
}

.promo-button {
  position: relative;
  z-index: 20;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 26px 0;
  border: 0;
  border-radius: 14px;
  background: #2b6efd;
  color: #fff;
  font-family: 'Spoqa Han Sans Neo', sans-serif;
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.promo-button:hover {
  background: #1a5cdb;
}

/* 퀵메뉴 */
.nav-list {
  position: absolute;
  top: 0;
  right: 200px;
  z-index: 1000;
  margin: 0;
  padding: 1% 0.9%;
  border-radius: 20px;
  background: #ffffff99;
  box-shadow: 3px 3px 5px #2196f338;
  list-style: none;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.5s ease;
}

.quick-list {
  margin: 10px 0;
  text-align: left;
}

.quick-list a {
  color: #333;
  font-family: 'Spoqa Han Sans Neo', sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: -1px;
  text-decoration: none;
  transition: color 0.3s;
}

.quick-list a.active {
  color: #2b6efd;
  font-weight: 600;
}

/* 반응형 */
@media (max-width: 768px) {
  .promo-container {
    flex-direction: column;
  }

  .promo-image,
  .promo-content {
    max-width: 100%;
    margin-right: 0;
  }

  .promo-image {
    margin-bottom: -10%;
    transform: none;
  }
}


/* 연속 이미지 사이 간격 */
.section-needs img + img,
.section-after img + img {
  margin-top: 4%;
}

/* PAGE4는 공통 섹션 여백 규칙에서 별도 관리 */
#page4 > div {
  padding-top: 0;
  padding-bottom: 0;
}

.tn8-detail {
  padding: 6% 0 !important;
}

.spec-section {
  padding: 6% 0 !important;
}

/* PAGE5 상담혜택은 카드 레이아웃이라 공통 padding 제거 */
#page5 > .promo-container {
  padding: 0 !important;
}
/* BASIC css end */

