/* 공통 */
.sub_visual {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.sub_visual.visual01 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/sub/sub_visual01.jpg);
}

.sub_visual.visual02 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/sub/sub_visual02.jpg);
}

.sub_visual.visual03 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/sub/sub_visual03.jpg);
}

.sub_visual.visual04 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../img/sub/sub_visual04.jpg);
}

.sub_visual .visual-title {
  position: relative;
  z-index: 2;
}

.sub_visual .visual-title h2 {
  font-size: 52px;
  color: #fff;
}

.sub_visual .visual-title p {
  font-size: 18px;
  color: #fff;
  opacity: 0.8;
  line-height: 1.65;
  word-break: keep-all;
  margin-bottom: 10px;
}

.sub-location {
  margin-top: 20px;
  font-size: 13px;
  color: #eee;
  font-weight: 300;
  letter-spacing: 0.5px;
  display: none;
}

.sub-location a {
  color: #eee;
}

.sub-header {
  width: 100%;
  position: relative;
  border-bottom: 1px solid #eeeeee;
  overflow: hidden;
}

.sub-header .max-inner {
  overflow-x: auto;
  overflow-y: hidden;
}

.sub-header ul.sub-position {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  width: fit-content;
}

.sub-header ul.sub-position > li {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 200px;
  height: 70px;
  font-size: 17px;
  white-space: nowrap;
}

.sub-header ul.sub-position > li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.sub-header ul.sub-position > li:hover {
  background-color: #f5f5f5;
}

.sub-header ul.sub-position > li.active {
  border-bottom: 3px solid #297fea;
  color: #297fea;
  font-weight: 600;
}

.background-image-container {
  height: 400px;
  width: 100%;
  background-size: cover;
  background-position: center;
  display: block;
  position: absolute;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}


@media (max-width: 768px) {
  .sub_visual .visual-title h2 {
    font-size: 35px;
  }

  .sub_visual {
    height: 300px;
  }

  .background-image-container {
    height: 300px;
  }

  .sub-header ul.sub-position > li {
    height: 55px;
    font-size: 15px;
    min-width: 70px;
  }

  /* 모바일 스크롤 힌트 - 오른쪽 흐림 효과 */
  .sub-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 55px;
  background: linear-gradient(to left, 
      rgba(255, 255, 255, 1) 0%, 
      rgba(255, 255, 255, 0.9) 30%, 
      rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 2;
  }
}