@import url("https://fonts.cdnfonts.com/css/sweet-sans-pro");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: var(--font-color-base);
}

ul,
li {
  list-style-type: none;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Sweet Sans Pro", "Pretendard", sans-serif;
}

body {
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
}

.pretendard {
  font-family: "Pretendard", sans-serif;
}

/*특정 부분 스크롤바 없애기*/
.box {
  -ms-overflow-style: none;
}

.box::-webkit-scrollbar {
  display: none;
}

#wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 기본 헤더 스타일 */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 15;
  transition: all 0.4s ease-out;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: relative;
  z-index: 10001;
  transition: all 0.4s ease-out;
}

.header .logo {
  font-size: 0;
}

.hamburger {
  cursor: pointer;
  width: 60px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.hamburger span {
  display: block;
  height: 2px;
  background-color: #000;
  width: 100%;
}

/* 오버레이 메뉴 스타일 */
#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f6f6f6;
  color: #000;
  z-index: 1000;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

#menuOverlay.active {
  opacity: 1;
  visibility: visible;
}

#h_border.active {
  border-bottom: 1px #c4c4c4 solid;
}

.menu-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  z-index: 99;
}

.submenu {
  margin-bottom: 100px;
}

.submenu ul {
  padding: 0;
  margin: 0;
}

.submenu li {
  font-size: 40px;
  font-weight: 300;
  position: relative;
  margin: 30px 0;
  cursor: pointer;
  width: 100%;
}

.submenu .number {
  vertical-align: top;
  font-size: 11px;
  color: #000;
}

.subsidiaries h3 {
  font-size: 13px;
  color: #000;
}

.subsidiaries ul li {
  font-size: 40px;
  margin: 35px 0;
  cursor: pointer;
}

.subsidiaries ul li:nth-child(1) {
  margin: 10px 0 30px;
}

.subsidiaries ul li a {
  background-image: url(../ado/images/arrow.svg);
  background-repeat: no-repeat;
  width: 280px;
  margin: 0 auto;
  display: block;
}

.subsidiaries ul li:nth-child(1) a {
  background-position: right 15% center;
}

.subsidiaries ul li:nth-child(2) a {
  background-position: right center;
}

.subsidiaries ul li:nth-child(3) a {
  background-position: right 8% center;
}

.subsidiaries ul li a .text {
  transition: all 0.3s;
  color: #000;
  border-bottom: 3px #000 solid;
}

.subsidiaries ul li:hover a .text {
  color: #00ec91;
  border-bottom: 3px #00ec91 solid;
}

/* Main content styling */
main {
  height: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
  background-color: #f6f6f6;
}

/* 로딩 스크린 전체를 덮는 스타일 */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 로딩 스피너 스타일 */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 페이지 로드 완료 시 로딩 화면 숨김 */
body.loaded #loading-screen {
  display: none;
}

@media all and (max-width: 768px) {
  .header {
    padding: 15px 20px 15px 10px;
  }

  .header .logo img {
    max-width: 150px;
    width: 100%;
  }

  .hamburger {
    height: 40px;
  }

  .hamburger span {
    height: 3px;
  }

  .menu-content {
    width: 80%;
  }

  .index_head .menu-content {
    top: 45%;
  }

  .subsidiaries ul li a {
    width: 100%;
  }

  .submenu {
    margin-bottom: 80px;
  }

  .submenu li {
    font-size: 24px;
    margin: 15px 0;
  }

  .subsidiaries ul li {
    font-size: 24px;
    margin: 20px 0;
  }

  .subsidiaries ul li:nth-child(1) {
    margin: 20px 0;
  }

  .submenu li:nth-child(1) .number {
    left: 35%;
  }

  .submenu li:nth-child(2) .number {
    left: 30%;
  }

  .submenu li:nth-child(3) .number {
    left: 27%;
  }

  .subsidiaries ul li:nth-child(1) a {
    background-position: right 30% top 10px;
  }

  .subsidiaries ul li:nth-child(2) a {
    background-position: right 20% top 10px;
  }

  .subsidiaries ul li:nth-child(3) a {
    background-position: right 25% top 10px;
  }
}
