@charset "UTF-8";
@import url(../css/reset.css);

html {
  font-size: 10px;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: #333;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.2;
  background-color: #fff;
}

/* 공통 wrapper */
.all-wrap {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

[class $= "inner"] {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

button {
  cursor: pointer;
}
#main {
  padding-top: 10rem;
}
/* 메인 배너 */
.slide-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  /* overflow: hidden; */
  background: url('../img/gubun3-banner.png') center center / cover no-repeat;
}

.slide-banner .inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-text {
  position: absolute;
  left: 0%;
  top: 75%;
  /* transform: translate(-50,-50%); */
  /* margin-top: 60%; */
  text-align: left;
  color: #fff;
}

.hero-text p {
  font-size: clamp(1.8rem, 1.5vw, 2rem);
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: clamp(3.5rem, 2vw, 4rem);
  font-weight: 600;
}

/* .imgwrap-slide  */
.imgwrap-slide {
  padding: 15rem 0 21rem 0;
  width: 100%;
  overflow: hidden;
}



.imgwrap-slide .slide-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.imgwrap-slide .slide-track {
  display: flex;
  transition: transform 0.6s ease;
  /* width: 300%; ← ❌ 생략 가능 */
  height: auto;
}

.imgwrap-slide .slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column; /* 텍스트 위, 이미지 아래 */
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.imgwrap-slide .txt {
  text-align: center;
  font-size: clamp(1.8rem, 2vw, 3rem);
  font-weight: 600;
  margin-bottom: 6rem; /* 내부 간격 여유 */
}


.imgwrap-slide .bar  {
  display: block;
  font-weight: 900;
  font-size: clamp(1.8rem, 2vw, 3rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-align: center;
}

.imgwrap-slide .img-wrap {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.imgwrap-slide .img-wrap img {
  width: 30%;
  max-width: 624px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
/* dot */
.imgwrap-slide .btn-wrap {
  text-align: center;
  margin-top: 2rem;
}
.imgwrap-slide .btn-wrap .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.imgwrap-slide .btn-wrap .dot.active {
  background-color: #333;
}



/* dot */
.btn-wrap {
  text-align: center;
  margin-top: 2rem;
}
.btn-wrap .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-wrap .dot.active {
  background-color: #333;
}

.intro :any-link {
  display: inline-block;
  background: none;
  color: #424242;
  padding: 1.2rem 3rem;
  border: 1px solid #424242;
  border-radius: 3rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  cursor: pointer;
  transition: all 0.3s ease;
}

.intro a:hover {
  background: #424242;
  color: #fff;
}


.mobile-br {
  display: none;
}


/* 태블릿 반응형 */
@media only screen and (max-width: 1280px) {
  [class $= "inner"] {
    padding: 0 3rem;
  }
  
  #main {
    padding: 0;
  }
  .slide-banner {
    background: url('../img/gubun3-banner_m.png') center center / cover no-repeat;
    height: 85vh;
  }
  .hero-text {
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    top: 83%;
    width: 100%;
  }
  .hero-text h2 {
    font-size: clamp(2rem, 1.5vw, 3rem);
    font-weight: 600;
    margin-bottom: 2rem;
  }
  .hero-text p {
    font-size: clamp(1.6rem, 2vw, 2.6rem);
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .imgwrap-slide {
    padding: 8rem 0;
  }
  .imgwrap-slide .slide {
    width: 100vw;
    flex-wrap: wrap;
    justify-content: center;
  }

  .imgwrap-slide .slide img {
    width: 45%;  /* 태블릿: 2개씩 */
  }

  .mobile-br {
    display: block;
  }
  .imgwrap-slide .bar,
  .pc-txt {
    display: none;
  }
}

/* 모바일 반응형 */
@media only screen and (max-width: 768px) {
  html {
    font-size: 9px;
  }

  [class $= "inner"] {
    padding: 0 2rem;
  }


  .hero-text {
    top: 80%;
  }
  .imgwrap-slide .slide img {
    width: 80%;  /* 모바일: 1개씩 */
  }
  

}

/* 작은 모바일 반응형 */
@media only screen and (max-width: 480px) {
  html {
    font-size: 7px;
  }

  [class $= "inner"] {
    padding: 0 1.5rem;
  }



}