/* 전체적인 레이아웃과 기본 스타일 */
body,
html {
  font-family: "Pretendard", "-apple-system", "system-ui", "Roboto",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "sans-serif";
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url("../img/index/bg.jpg") 50% 50% no-repeat;
  background-size: cover;
  position: relative;
}

.container {
  display: flex;
  /* width: 100%; */
  margin-top: calc(var(--vh, 1vh) * 28);
  height: calc(var(--vh, 1vh) * 70);
}

/* 기본 상태 -------------------------------------------------------- */

/* 기본 각 지점영역 */
.site-section {
  cursor: pointer;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: flex-grow 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

/* 기본 지점명 텍스트 */
.site-section .site-text {
  opacity: 0.5;
  position: absolute;
  z-index: 4;
  color: #ffffff;
  font-size: 30px;
  bottom: 20px;
  right: 20px;
  text-align: right;
  font-weight: 700;
  z-index: 5;
  transition: opacity 0.5s ease;
}

/* 기본 밑줄 */
.site-section::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40%;
  height: 2px;
  z-index: 4;
  opacity: 0.5;
  background: white;
  transition: opacity 0.5s ease;
}

/* 기존 불투명한 검정레이어 */
.site-section::before {
  background-color: rgba(0, 0, 0, 0.4);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  transition: background-color 0.5s ease;
}

/* 배경이미지 기본 설정 */
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}

/* 기본 각 지점 배경사진 */
.line-1 .background-image.initial {
  background-image: url("../img/index/jj_img.webp");
}
.line-2 .background-image.initial {
  background-image: url("../img/index/ic_img.webp");
}
.line-3 .background-image.initial {
  background-image: url("../img/index/yp_img.webp");
}
.line-4 .background-image.initial {
  background-image: url("../img/index/jp_img.webp");
}

/* 호버 ---------------------------------------------------------- */

/* 호버시 영역 커짐 */
.site-section:hover {
  flex-grow: 3.5;
}

/* 기본 각 지점 배경사진 */
.background-image.hover {
  opacity: 0;
}
.line-1 .background-image.hover {
  background-image: url("../img/index/jj2_img.webp");
}
.line-2 .background-image.hover {
  background-image: url("../img/index/ic2_img.webp");
}
.line-3 .background-image.hover {
  background-image: url("../img/index/yp2_img.webp");
}
.line-4 .background-image.hover {
  background-image: url("../img/index/jp_img.webp");
}

/* 호버시 호버용 배경이미지 불투명도 100 */
.line-1:hover .background-image.hover,
.line-2:hover .background-image.hover,
.line-3:hover .background-image.hover,
.line-4:hover .background-image.hover {
  opacity: 1;
}

/* 호버시 지점명 텍스트, 라인 진하게 */
.site-section.line-1:hover::after,
.site-section.line-2:hover::after,
.site-section.line-3:hover::after,
.site-section.line-4:hover::after,
.site-section.line-1:hover .site-text,
.site-section.line-2:hover .site-text,
.site-section.line-3:hover .site-text,
.site-section.line-4:hover .site-text {
  opacity: 1;
}

/* 호버시 텍스트 그림자 색상 */
.site-section.line-1:hover .site-text {
  text-shadow: 2.5px 2.5px 0px #af8f64;
}
.site-section.line-2:hover .site-text {
  text-shadow: 2.5px 2.5px 0px #1b3662;
}
.site-section.line-3:hover .site-text {
  text-shadow: 2.5px 2.5px 0px #67071f;
}
.site-section.line-4:hover .site-text {
  text-shadow: 2.5px 2.5px 0px #096959;
}

/* 호버시 라인 굵기 */
.site-section:hover::after {
  height: 4px;
}

/* 호버시 라인 색상 */
.site-section.line-1:hover::after {
  background: #af8f64;
}
.site-section.line-2:hover::after {
  background: #1b3662;
}
.site-section.line-3:hover::after {
  background: #67071f;
}
.site-section.line-4:hover::after {
  background: #096959;
}

/* 안티 호버 ---------------------------------------------------- */

/* 안티호버시 지점명 */
.site-section.dim .site-text,
.site-section.dim::after {
  opacity: 0.1;
}

/* 안티호버시 덮힌거 애들 어둡게 */
.site-section.dim::before {
  background-color: rgba(0, 0, 0, 0.8);
}

/* 로고 --------------------------------------------------------- */

/* 로고 및 타이틀 스타일 */
.logo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--vh, 1vh) * 28);
}

.logo {
  width: auto;
  height: 38%;
}

.logo-title {
  font-weight: 700;
  font-size: 17px;
  color: #b2b2b2;
  margin-top: 15px;
}

.title {
  font-weight: 700;
  font-size: 30px;
  margin-top: 30px;
  color: #fff;
}

/* 푸터 스타일 */
footer {
  position: relative;
  color: #a8a8a8;
  font-size: 12px;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 36px 0;
  background-color: #000;
}

footer .inner {
  margin: 0 auto;
  max-width: 1200px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-footer .footer-text {
  padding-top: 20px;
  font-size: 13px;
  color: #a8a8a8;
  padding-bottom: 60px;
}

/* 반응형 디자인 */
@media (max-width: 1260px) {
  footer .inner {
    width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 991px) {
  .logo {
    height: 40%;
  }

  .logo-title {
    font-weight: 700;
    font-size: 13px;
    color: #b2b2b2;
    margin-top: 7px;
  }

  .title {
    font-weight: 700;
    font-size: 25px;
    margin-top: 10px;
  }
  .logo-container {
    height: calc(var(--vh, 1vh) * 15);
    margin-top: 20px;
  }

  .container {
    margin-top: calc(var(--vh, 1vh) * 15);
    flex-direction: column;
    padding: 30px;
  }

  .site-section,
  .site-section:hover {
    width: 100%;
    height: auto;
    flex: 1;
    margin-top: 15px;
    border-radius: 20px;
  }

  footer {
    display: none;
  }
}
