/**
 * pages/index.css — 메인 페이지 (/index.php) 전용
 * ------------------------------------------------------------------
 * 페이지에서 $pageCSS = ['index']; 선언 시 layoutHeader 가 자동 로드.
 *
 * 좌우 여백: 모든 섹션이 var(--page-gutter) (PC 120px / Mobile 15px) 통일
 *           → 헤더·드롭다운과 시각 정렬
 * 위아래 여백: var(--section-pad-y) (PC 120px / Mobile 60px) 통일
 *
 * 반응형: desktop-first ([[responsive-strategy]])
 *   - base = PC 스타일
 *   - @media (max-width: 1024px) = 모바일/태블릿 override
 *   - @media (max-width: 768px)  = 모바일 전용 추가 override
 */

/* index 한정 배경 */
#body_container.hm-main-contents { background: var(--color-hm-cream); }

/* ── CTA 버튼 (index 한정, Figma 사양) ── */
.hm_cta_btn { display: flex; justify-content: center; align-items: center; width: 410px; height: 65px; padding: 20px; background: linear-gradient(to bottom, #087C5D -23%, #00513B 66%); color: #fff; font-size: 22px; font-weight: 500; letter-spacing: -1.5px; box-shadow: 4px 4px 12px 0px rgba(0, 0, 0, 0.20), inset 1px 1px 1px 0px rgba(255, 255, 255, 0.19), inset -2px -2px 1.7px 0px rgba(0, 0, 0, 0.25); transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; border-radius: 8px; }
.hm_cta_btn:not([disabled]):hover { transform: translateY(-2px); background-color: var(--color-hm-dark-green); box-shadow: 4px 4px 12px 0px rgba(0, 0, 0, 0.20), inset 1px 1px 1px 0px rgba(255, 255, 255, 0.19), inset -2px -2px 1.7px 0px rgba(0, 0, 0, 0.25); }

/* ── KV (Hero) ── */
/* .hm-kv { position: relative; }
.hm-kv__bg { display: block; }
.hm-kv__bg img { display: block; width: 100%; }
.hm-kv__inner { position: absolute; bottom: 10%; right: 20%; display: flex; flex-direction: column; align-items: flex-end; gap: 30px; } */
.hm-kv { position: relative; }
/* .hm-kv__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } */
.hm-kv__inner{ display: flex; align-items: center; justify-content: flex-end; position: absolute; top:0; left: 50%; transform: translateX(-50%); width: 1068px; height: 100%; }
.hm-kv__inner .hm-layers-wrap { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; width: 450px; }
.hm-kv__inner .hm-layers-wrap .hm-kv__title { width: 100%; margin-bottom: 18px; font-size: 38px; font-weight: 400; color: var(--color-hm-green); line-height: 1.2; letter-spacing: -0.7px; font-family: 'Seongang'; text-align: center; }
.hdc-kv__inner{position: absolute; top:0; left: 50%; transform: translateX(-50%); width: 100%; height: 100%;}
.hdc-kv__inner .left{position:absolute; top:59%; left:26%; transform:translate(-50%, -50%); max-width:520px; width:28%; padding-top:55px}
.hdc-kv__inner .right{position:absolute; top:67%; left:72%; transform:translate(-50%, -50%); max-width:462px; width:25%;}
.hdc-kv__inner .hdc_cta_btn{ width: 100%; }
/* KV Swiper */
.hm-kv__swiper { width: 100%; }
.hm-kv__bg img { display: block; width: 100%; }
.hm-kv__swiper .swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.hm-kv__swiper .swiper-pagination-bullet-active { opacity: 1; }
/* 크로스페이드(fade): 슬라이드가 absolute로 겹침 → 첫 슬라이드를 relative로 두어 컨테이너 높이 유지 */
.hm-kv__swiper.swiper-fade .swiper-slide:first-child { position: relative; }
.hm-kv__swiper .hm_cta_btn{margin-top:10%; width:100%;}

@media (max-width: 1450px) {
  .hm-kv__inner{ max-width: 80%; }
}

@media (max-width: 1280px) {
  .hm-kv__inner .hm-layers-wrap{ width: 330px; }
  .hm-kv__inner .hm-layers-wrap .hm-kv__title{ margin-bottom: 12px; font-size: 28px; }
  .hm-kv__inner .hm-layers-wrap .hm_cta_btn{ margin-top:30px; }
}

@media (max-width: 1024px) {
  .hm-kv__inner { width: 70%; }
  .hm-kv__inner .hm-layers-wrap{ width: 40%; }
  .hm_cta_btn{ height: 55px; }
}

@media (max-width: 768px) {
  .hm-kv__bg, .hm-kv__bg img { width: 100%; }
  .hm-kv__inner { right: auto; left: 50%; bottom: 3%; transform: translateX(-50%); width: 90%; align-items: center; gap: 20px; }
  .hm-kv__inner { align-items: flex-end; bottom :24px; height: auto; }
  .hm-kv__inner .hm-layers-wrap{ align-items: center; width: 100%; }
  .hm-kv__inner .hm-layers-wrap img { display: none; }
  .hm-kv__inner .hm-layers-wrap .hm-kv__title{ display: none; }
  .hm-kv__inner .hm_cta_btn { width: 305px; max-width: 100%; height: 48px; padding: 14px 27px; font-size: 16px; }
  .hdc-kv__inner .right{ display:flex; justify-content: center; top:auto; bottom:24px; width:100%; left:50%; transform:translate(-50%, 0);}
  .hdc-kv__inner .left,
  .hdc-kv__inner .right img{display:none;}
  .hm-kv__swiper .hm_cta_btn{margin-top:0; width: 305px; max-width: 100%; height: 48px; padding: 14px 27px; font-size: 16px;}
}

/* ── Awards ── */
.hm-awards { display: flex; align-items: flex-start; gap: 4vw; padding: var(--section-pad-y) var(--page-gutter); text-align: left; }
.hm-awards__labels { display: flex; flex-direction: column; align-items: flex-start; gap: 2vw; flex-basis: 23vw; flex-shrink: 0; }
.hm-awards__label-main img { display: block; width: 100%; }
.hm-awards__label-subs { display: flex; gap: 1vw; width: 8vw; }
.hm-awards__label-subs img { width: 100%; height: auto; }
.hm-awards__list { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 0; }
.hm-awards__item { font-size: 4.17vw; font-weight: 500; line-height: 1.3; letter-spacing: -6px; color: var(--color-hm-gold); }
.hm-awards__item.is-gold { color: var(--color-hm-green); }
.hm-awards__item span,
.hm-awards__item strong { display: block; font-weight: inherit; }
.hm-awards__item em { font-weight: 300; font-style: normal; }

@media (max-width: 1024px) {
  .hm-awards { flex-direction: column; align-items: center; gap: 5vw; text-align: center; }
  .hm-awards__labels { align-items: center; padding-bottom: 8vw; flex-basis: auto; }
  .hm-awards__label-main img { width: 50vw; }
  .hm-awards__label-subs { gap: 3vw; width: auto; }
  .hm-awards__label-subs img { width: 15vw; }
  .hm-awards__item { font-size: 7vw; letter-spacing: -2px; }
}

/* ── Promo Video ── */
.hm-video-main { display: block; padding: var(--section-pad-y) var(--page-gutter); max-width: 75vw; margin: 0 auto; }
.hm-video-main video { width: 100%; display: block; }
.hm-video-main__swiper { position: relative; width: 100%; }
.hm-video-main__swiper .swiper-pagination { position: static; margin-top: 16px; }
.hm-video-main__swiper .swiper-pagination-bullet-active { background: var(--color-hm-green); }
/* 크로스페이드(fade): 첫 슬라이드를 relative로 두어 컨테이너 높이 유지 */
.hm-video-main__swiper.swiper-fade .swiper-slide:first-child { position: relative; }
/* 사운드 토글 버튼 (영상 우하단) */
.hm-video-main__sound { position: absolute; right: 20px; top: 10px; z-index: 10; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.hm-video-main__sound svg { width: 29px; height: 29px; }
.hm-video-main__sound .ic-unmuted { display: none; }
.hm-video-main__sound.is-on .ic-muted { display: none; }
.hm-video-main__sound.is-on .ic-unmuted { display: inline-block; }

@media (max-width: 1024px) {
  .hm-video-main { max-width: 100%; }
}

@media (max-width: 768px) {
  .hm-video-main__sound { right: 10px; top: 5px; }
}


/* ── VOD ── */
.hm-vod { display: block; }
.hm-vod__item { display: flex; align-items: stretch; justify-content: space-between; gap: 4%; padding: var(--section-pad-y) var(--page-gutter); background: var(--color-hm-cream); }
.hm-vod__item:nth-of-type(even) { flex-direction: row-reverse; }
.hm-vod__media { flex-basis: 54%; display: block; }
.hm-vod__media img { width: 100%; display: block; height: auto; }
.hm-vod__text { flex-basis: 42%; display: flex; flex-direction: column; gap: 2vw; justify-content: flex-start; }
.hm-vod__item:nth-of-type(even) .hm-vod__text { align-items: flex-end; text-align: right; }
.hm-vod__title { font-size: 42px; color: var(--color-hm-gold); font-weight: 500; line-height: 1.2; margin: 0; }
.hm-vod__text p { font-size: 24px; color: var(--color-hm-dark-green); margin: 0; line-height: 1.6; }
.hm-vod__text p small { display: block; margin-top: 1em; font-size: 0.85em; }

@media (max-width: 1024px) {
  .hm-vod__item,
  .hm-vod__item:nth-of-type(even) { flex-direction: column; gap: 20px; }
  .hm-vod__media,
  .hm-vod__text { flex-basis: auto; }
  .hm-vod__text {text-align: center;}
  .hm-vod__item:nth-of-type(even) .hm-vod__text { align-items: flex-start; text-align: center; }
  .hm-vod__title { font-size: 1.5em; width:100%; }
  .hm-vod__text p { font-size: 16px; }
}

/* ── Product ── */
.hm-product { display: block; padding: var(--section-pad-y) var(--page-gutter); }
.hm-product__head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 60px; gap: 30px; }
.hm-product__heading { display: flex; align-items: center; gap: 30px; }
.hm-product__heading h2 { font-size: 60px; font-weight: 500; color: var(--color-hm-gold); margin: 0; }
.hm-product__heading p { font-size: 24px; line-height: 1.3; color: var(--color-hm-dark-green); margin: 0; }
.hm-product .hm_cta_btn { width: 13%; min-width: 208px; height: 55px; line-height: 55px; border-radius: 50px; flex-shrink: 0; }
.hm-product__groups { display: flex; justify-content: center; }
.hm-product__group { display: flex; align-items: flex-end; }
.hm-product__group-title { flex: 1; padding: 0 0 100px; font-size: 24px; color: var(--color-hm-gold); font-weight: 500; text-align: center; margin: 0; }
.hm-product__list { display: flex; align-items: flex-end; flex: 2; list-style: none; padding: 0; margin: 0; }
.hm-product__list li { flex: 1; max-width: 200px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; transition: opacity 0.25s ease; }
.hm-product__list li img { padding: 20px; max-width: 100%; width: auto; object-fit: contain; }
.hm-product__group:first-child .hm-product__list li:first-child img{padding:30px;}
.hm-product__list li p { padding: 50px 0 100px; font-size: 24px; color: var(--color-hm-dark-green); margin: 0; }
.hm-product__groups:has(li:hover) .hm-product__list li:not(:hover) { opacity: 0.4; }

@media (max-width: 1024px) {
  .hm-product__head { flex-direction: column; align-items: center; padding: 0 0 20px; gap: 20px; }
  .hm-product__heading { flex-direction: column; align-items: flex-start; gap: 10px; text-align: center; }
  .hm-product__heading h2 { font-size: 32px; width:100%; }
  .hm-product__heading p { font-size: 14px; width:100%; }
  .hm-product__groups { flex-direction: column; }
  .hm-product__group-title { flex: 0; padding: 10px 0 30px; font-size: 16px; }
  .hm-product__list li { max-width: 120px; height: 100%; margin: 0 20px; justify-content: flex-end; }
  .hm-product__list li img { padding: 20px 0 10px; height: 150px; pointer-events: none; }
  .hm-product__group:first-child .hm-product__list li:first-child img{padding:16px 4px 10px; height:140px}
  .hm-product__list li p { padding: 10px 0 30px; font-size: 16px; }
  .hm-product .hm_cta_btn{height:48px; min-width:160px; line-height:54px; font-size:18px;}
}

/* ── Info ── */
.hm-info { display: block; padding: var(--section-pad-y) var(--page-gutter); }
.hm-info__list { display: flex; padding: 0; margin: 0; }
.hm-info__item { flex: 1; display: flex; padding: 0 20px; }
.hm-info__list > .hm-info__item:nth-of-type(2),
.hm-info__list > .hm-info__item:nth-of-type(3) { flex: 2; }
.hm-info__item dt { flex-basis: 200px; flex-grow: 0; flex-shrink: 0; padding: 0 50px; font-size: 24px; font-weight: 500; color: var(--color-hm-gold); white-space: nowrap; }
.hm-info__item dd { margin: 0; font-size: 24px; color: var(--color-hm-dark-green); word-break: keep-all; }
.hm-info__awards { list-style: none; padding: 0; margin: 0; }
.hm-info__awards li { line-height: 1.6; }
.hm-info__awards li span { display: block; font-size: 1.2rem; }

@media (max-width: 1400px) {
  .hm-info__list { flex-direction: column; }
  .hm-info__item { padding: 0 0 20px; }
}
@media (max-width: 1024px) {
  .hm-info__item dt { flex-basis: 90px; padding: 0 0 10px 0; font-size: 16px; }
  .hm-info__item dd { font-size: 16px; }
  .hm-info__awards li span { font-size: 14px; }
}

/* ── 등장 애니메이션 ── */
[data-anim] { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s ease, transform 0.8s ease; }
[data-anim].is-visible { opacity: 1; transform: translateX(0); }
