@import url(sub/about.css);
@import url(sub/business.css);
@import url(sub/facilities.css);
@import url(sub/esg.css);

.visual__sub {
  height: 550px;
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  position: relative;
  display: flex;
  gap: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.visual__sub__bg {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.visual__sub__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: Zoom 1.5s ease-in-out forwards;
}

@keyframes Zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.visual__sub h2 {
  font-size: 3.5rem;
  font-weight: 900;
}

.category__sub {
  display: flex;
  align-items: center;
  font-weight: 300;
}

.category__sub img {
  height: 20px;
  transform: translateY(-2px);
}

.category__sub li:not(:last-child)::after {
  content: '>';
  margin: 0 10px;
  font-family: Suit;
}

.navi__sub {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  justify-content: center;
  gap: 50px;

  padding: 30px 0;

  font-size: 1.125rem;
}

.navi__sub li {
  width: 170px;
  text-align: center;
}

.navi__sub li a {
  padding: 6px 4px;
}

.navi__sub li.active a {
  font-weight: 600;
  border-bottom: 2px solid #ffffff;
}

@media (max-width: 1440px) {
  .visual__sub {
    height: 500px;
  }

  .visual__sub h2 {
    font-size: 3rem;
  }

  .navi__sub {
    gap: 30px;
  }

  .navi__sub li {
    width: 160px;
  }
}

/* --- 1280px --- */
@media (max-width: 1280px) {
  .visual__sub {
    height: 460px;
  }

  .navi__sub {
    gap: 20px;
    font-size: 1rem;
    padding: 25px 0;
  }

  .navi__sub li {
    width: 150px;
  }
}

/* --- 1024px --- */
@media (max-width: 1024px) {
  .visual__sub {
    height: 420px;
  }

  .visual__sub h2 {
    font-size: 2.5rem;
  }

  .category__sub {
    font-size: 0.95rem;
  }

  /* 카테고리 축소 시작 */
  .category__sub img {
    height: 16px;
  }

  .navi__sub {
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: -0.3px;
  }

  .navi__sub li {
    width: 140px;
  }
}

/* --- 768px --- */
@media (max-width: 768px) {
  .visual__sub {
    height: 380px;
  }

  .visual__sub h2 {
    font-size: 2.2rem;
  }

  .category__sub {
    font-size: 0.85rem;
  }

  .category__sub li:not(:last-child)::after {
    margin: 0 6px;
  }

  .navi__sub {
    gap: 8px;
    font-size: 0.9rem;
    padding: 22px 5px;
    width: 100%;
  }

  .navi__sub li {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

/* --- 480px --- */
@media (max-width: 480px) {
  .visual__sub {
    height: 340px;
  }

  .visual__sub h2 {
    font-size: 1.9rem;
  }

  .category__sub {
    font-size: 0.8rem;
  }

  .category__sub img {
    height: 14px;
  }

  .navi__sub {
    gap: 2px;
    font-size: 0.8rem;
    letter-spacing: -0.5px;
  }

  .navi__sub li a {
    padding: 4px 2px;
  }
}

/* --- 370px --- */
@media (max-width: 370px) {
  .category__sub {
    font-size: 0.75rem;
  }

  .category__sub li:not(:last-child)::after {
    margin: 0 4px;
  }

  .navi__sub {
    font-size: 0.75rem;
    gap: 0px;
  }
}

/* *****************************************

                공통 부분

****************************************** */

.sub section h3 {
  font-family: 'Suit', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.sub section h3.color {
  color: var(--color-main);
}

.sub section h3.white {
  color: #ffffff;
}

.sub section .title {
  margin-bottom: 50px;
}

@media screen and (max-width: 1440px) {}

@media screen and (max-width: 1280px) {}

@media screen and (max-width: 1024px) {}

@media screen and (max-width: 768px) {}

@media screen and (max-width: 480px) {
  .sub section .title {
    margin-bottom: 10px;
    text-align: left;
  }
}