@import url(sub/about.css);
@import url(sub/process.css);
@import url(sub/products.css);
@import url(sub/media.css);
@import url(sub/customer.css);

.hero__sub {
  margin-top: 80px;
  height: 360px;

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  color: #ffffff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__sub__text {
  text-align: center;
  font-family: var(--font-pointen);
  font-size: 2.375rem;
  font-weight: 300;
  line-height: 1.2;

  opacity: 0;
  animation: fadeInUp .7s ease-out forwards;
  animation-delay: 0.1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__name {
  height: 220px;
}

.hero__name .inner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__name h2 {
  font-family: var(--font-pointen);
  font-size: 2.75rem;
  font-weight: 500;
  text-align: center;
}

/* --- 서브 히어로 공통 반응형 --- */

/* 1. 노트북 & 태블릿 가로 (1280px ~ 1024px) */
@media screen and (max-width: 1280px) {
  .hero__sub {
    height: 300px;
  }

  .hero__sub__text {
    font-size: 2rem;
    padding: 0 20px;
  }

  .hero__name {
    height: 180px;
  }

  .hero__name h2 {
    font-size: 2.25rem;
  }
}

/* 2. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .hero__sub {
    margin-top: 60px;
    height: 250px;
  }

  /* 헤더 높이에 맞춰 margin 조절 */
  .hero__sub__text {
    font-size: 1.5rem;
    word-break: keep-all;
  }

  .hero__name {
    height: 140px;
  }

  .hero__name h2 {
    font-size: 1.875rem;
  }
}

/* 3. 스마트폰 (480px) */
@media screen and (max-width: 480px) {
  .hero__sub {
    height: 200px;
    margin-top: 50px;
    /* 모바일 헤더 높이에 맞춤 */
  }

  .hero__sub__text {
    font-size: 1.125rem;
    line-height: 1.4;
    /* 모바일에서 문장이 너무 길면 가독성을 위해 br 태그 무시 가능 */
  }

  .hero__sub__text br {
    display: none;
  }

  .hero__name {
    height: 100px;
  }

  .hero__name h2 {
    font-size: 1.5rem;
  }
}

/* 카테고리 탭 */
.category__wrap {
  border-bottom: 1px solid #cccccc;
}

.category__tab {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.category__tab li {
  color: #cccccc;
  font-size: 1.125rem;
}

.category__tab li a {
  display: block;
  padding: 16px 2px;
}

.category__tab li.active {
  position: relative;
  color: #000000;
  font-weight: 600;
}

.category__tab li.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--c-sub);
}

/* --- 카테고리 탭 반응형 (가로 스크롤 없음) --- */

/* 1. 노트북 (1280px 미만) */
@media screen and (max-width: 1280px) {
  .category__tab {
    gap: 40px;
  }

  /* 간격 축소 */
}

/* 2. 태블릿 (1024px 미만) */
@media screen and (max-width: 1024px) {
  .category__tab {
    gap: 20px;
  }

  .category__tab li {
    font-size: 1rem;
  }
}

/* 3. 소형 태블릿 (768px 미만) */
@media screen and (max-width: 768px) {
  .category__tab {
    gap: 16px;
    /* 위아래 10px, 좌우 30px */
  }

  .category__tab li a {
    padding: 10px 5px;
  }
}

/* 4. 스마트폰 (480px 미만) */
@media screen and (max-width: 480px) {
  .category__tab {
    gap: 20px;
  }

  .category__tab li {
    font-size: 0.938rem;
  }

  .category__tab li a {
    padding: 8px 2px;
  }
}

/* 타이틀 */
.sub .title h3 {
  font-family: var(--font-pointen);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--c-sub);
}

.sub .title .text {
  font-family: var(--font-pointen);
  font-size: 3.125rem;
  font-weight: 500;
  line-height: 1.2;
}

.sub .title .desc {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.4;
  color: #999999;
}

/* --- 서브 페이지 본문 타이틀 반응형 --- */

/* 1. 노트북 (1280px 미만) */
@media screen and (max-width: 1280px) {
  .sub .title .text {
    font-size: 2.75rem;
  }

  .sub .title .desc {
    font-size: 1.125rem;
  }
}

/* 2. 태블릿 (1024px 미만) */
@media screen and (max-width: 1024px) {
  .sub .title h3 {
    font-size: 1.5rem;
  }

  .sub .title .text {
    font-size: 2.25rem;
  }

  .sub .title .desc {
    font-size: 1.063rem;
  }
}

/* 3. 소형 태블릿 (768px 미만) */
@media screen and (max-width: 768px) {
  .sub .title {
    text-align: center;
  }

  /* 모바일은 보통 중앙 정렬이 깔끔합니다 */

  .sub .title h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
  }

  .sub .title .text {
    font-size: 1.875rem;
    line-height: 1.3;
  }

  .sub .title .desc {
    font-size: 1rem;
    margin-top: 10px;
  }
}

/* 4. 스마트폰 (480px 미만) */
@media screen and (max-width: 480px) {
  .sub .title .text {
    font-size: 1.625rem;
    word-break: keep-all;
  }

  .sub .title .desc {
    font-size: 0.938rem;
    line-height: 1.5;
  }
}