html,body{
  width:100%;
  height:100vh;
  margin:0;                /* 기본 여백 제거 */
  padding:0;
  font-family: "Pretendard";
}

#header .logo{
    position:absolute;
    top:50%;
    left:20%;
    transform:translateY(-50%); z-index: 10000;
}
#header .logo img{height:60px;filter: brightness(0) invert(1); /* 흰색처럼 보이게 */}

#header.open .logo img{
  filter:none;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}


@keyframes fadeIn {
  to {
    
    opacity: 1;
  }
}

.hero{ position:relative; height:100vh; overflow:hidden;
  line-height: -140%;          /* 행간 140% */
  letter-spacing: -0.025em;   /* 자간 -2.5% */
}
.hero__slides{ 
  position:absolute; inset:0; 

}
.hero__slide{
  position:absolute; inset:0;
  background: var(--bg) center/cover no-repeat;
  opacity:0; transition:opacity .6s ease;
}
.hero__slide.preload-active {
  opacity: 0.99; /* 살짝만 건드려서 합성 레이어 생성 */
}
.hero__slide.is-active{ opacity:1; z-index:1; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) top center/cover no-repeat;
  transform: scale(1);
  transition: transform 8s ease;
  z-index: 0;
}
.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* ← 딤드 농도 조절 (0.2~0.5 권장) */
  z-index: 1;
}
.hero__slide.is-active::after {
  animation: zoomIn 8s ease forwards;
}
.hero__content{
  z-index: 2;
}
.homegreen{
  position: absolute;
  top: 40%;          /* 세로 중앙 기준 */
  left: 20%;         /* 왼쪽 여백 */
  transform: translateY(-50%);  /* 세로 정확히 중앙 정렬 */
  text-align: left;  /* 텍스트 왼쪽 정렬 */
  
}
.homegreen .title,
.homegreen .subtitle {
  display: block;     /* 각 span을 블록으로 바꿔 수직 정렬 */
}

.homegreen .title{
  color: white;
  font-size : 54px;
  font-weight: 500;
  margin : 0;
  margin-bottom: 0px;
}
.homegreen .green{
  color:#5C8A66;
}
.homegreen .subtitle{
  color :white;
  font-size:24px;
  font-weight:400;
  margin : 0;
  margin-bottom: 20px;
}

.armonie{
  position: absolute;
  top: 40%;          /* 세로 중앙 기준 */
  left: 20%;         /* 왼쪽 여백 */
  transform: translateY(-50%);  /* 세로 정확히 중앙 정렬 */
  text-align: left;  /* 텍스트 왼쪽 정렬 */
  
}
.armonie .title,
.armonie .subtitle {
  display: block;     /* 각 span을 블록으로 바꿔 수직 정렬 */
}

.armonie .title{
  width: clamp(240px, 18vw, 280px);
  height:auto;
  display:block;
  margin-bottom: 6px;
}


.armonie .subtitle{
  color :white;
  font-size:32px;
  font-weight:500;
  margin : 0;
  margin-bottom: 20px;
}

.hero__indicator{
  position:absolute; right:0%; bottom:40px; transform:translateX(-50%);
  display:flex; gap:36px; align-items:center; z-index:2;
  color:white;
}
.hero__names{ display:flex; gap:24px; }
.hero__names span{ cursor:pointer; opacity:.6; transition:.25s; }
.hero__names span.is-active{ opacity:1; font-weight:600; transform:scale(1.06); }


/* --- 버튼 영역 --- */
.hero__button {
  display: flex;
  gap: 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:12px;                 /* 라벨-아이콘 간격 */
  height:52px;
  padding:0 24px;
  font-size:16px;
  font-weight:400;
  line-height:1;
  text-decoration:none;
  transition:background-color .2s ease, border-color .2s ease, transform .15s ease;
  cursor:pointer;
}

/* 사각형 + 투명 배경 + 흰색 보더 */
.btn--outline{
  background: transparent;
  color:#fff;
  border:1.5px solid rgba(255,255,255,0.95);
  
}

.btn--outline:hover{
  background: rgba(255,255,255,0.10);
  border-color:#fff;
}

.btn--outline:active{
  transform: translateY(1px);
}

.btn--outline:focus-visible{
  outline:2px solid rgba(255,255,255,0.8);
  outline-offset:2px;
}

/* 아이콘 살짝 움직임(선택) */
.btn:hover .btn__icon{ transform: translateX(2px); transition: transform .2s ease; }
@media (max-width:1024px){
  #header .gnb{display:none;}
  #header .logo { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);  z-index: 999; } 
  #header .logo img{
    height:60px;
  }
  .hero .bg{
  background: url("/asset/images/main2_mobile.png") center/cover no-repeat;
  }
  

  /* hero 컨텐츠 영역 */
  .hero__content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;       /* 중앙 정렬 */
    text-align: center;
    gap: 24px;                 /* 타이틀/버튼 간격 축소 */
  }

.homegreen {
    position: absolute;
    top: 45%;              /* 살짝 아래로 */
    left: 50%;             /* 좌측 여백 줄이기 */
    transform: translate(-50%,-50%);
    text-align: center;
    

  }

  .homegreen .title {
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.3;
    margin-bottom: 12px;
    white-space: nowrap;
  }

  .homegreen .subtitle {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 32px;   /* 버튼과 거리 유지 */
  }

  .homegreen .green {
    color: #5C8A66;
  }

  /* ================= Armonie ================= */
  .armonie {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .armonie .title {
    width: clamp(180px, 28vw, 240px);
    height: auto;
    margin-bottom: 4px;
    display: inline-block;
  }

  .armonie .subtitle {
    color: white;
    font-size: clamp(18px, 3.6vw, 24px);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    white-space: nowrap;
  }

  /* ================= Indicator ================= */
  .hero__indicator {
    position: absolute;
    right: 50%;
    bottom: 24px;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;   /* 세로 정렬로 변경 */
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
  }

  .hero__names {
    display: flex;
    gap: 28px;
  }

  .hero__names span {
    cursor: pointer;
    opacity: 0.6;
    transition: 0.25s;
    font-size: 14px;
  }

  .hero__names span.is-active {
    opacity: 1;
    font-weight: 400;
    transform: scale(1.08);
  }



  /* 버튼 영역 */
  .hero__button {
    flex-direction: column;     /* 버튼이 세로로 쌓이게 */
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: auto;                /* 필요 시 100% 로 변경 가능 */
    height: 46px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;         /* 살짝 둥근 사각형 */
    gap: 10px;
  }

  .btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
  }

  .btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .btn--outline:active {
    transform: translateY(1px);
  }

  .btn__icon {
    font-size: 14px;
    transform: translateY(1px);
  }

}

@media (max-width:480px){
    #header .logo img{
    height:40px;
  }
}