/* ********** intro bg ********** */
#intro {
  background-image: url(../img/company/bg.png);
}

/* ********** content ********** */
.tabnav {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 전체라인 */
.tabnav::before {
  position: absolute;
  top: 90px;
  left: -100%;
  right: -100%;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 2px);
  content: "";
}

.tabnav li {
  position: relative;
  float: left;
  width: 33.33%;
}

/* 끝과 끝 */
.tabnav li:first-child::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0%;
  margin-left: -15px;
  width: 10px;
  height: 10px;
  background-color: #465dff;
  border-radius: 50%;
  content: "";
}

.tabnav li:last-child::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0%;
  margin-left: -15px;
  width: 10px;
  height: 10px;
  background-color: #aaa;
  border-radius: 50%;
  content: "";
}

/* .tabnav li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
} */

/* 년도 디자인 */
.tabnav li a {
  position: relative;
  display: block;
  padding: 30px 0;
  font-size: 2.6rem;
  font-weight: 500;
  color: #999;
  text-align: center;
  letter-spacing: -1px;
}

.tabnav li a:hover,
.tabnav li a.active {
  color: #465dff;
  font-weight: 800;
  transition: all 0.3s;
}

/* 년도위치 */
.tabnav li a.active::after {
  position: absolute;
  bottom: 0;
  left: -500%;
  right: 50%;
  height: 2px;
  background-color: #465dff;
  content: "";
}

.tabnav li a span {
  position: absolute;
  z-index: 1;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: -5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(90.11deg, #469bff 1.73%, #465dff 99.96%);
  content: "";
}

.tabnav li a.active span:before {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 82%;
  margin-left: -15px;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  content: "";
}

.tab_box {
  padding-top: 200px;
}

/* 배경설정 */
.tab_con .year_info {
  height: 350px;
}

#tab01 .year_info {
  background-image: url(../img/company/history_2010.png);
}

#tab02 .year_info {
  background-image: url(../img/company/history_2000.png);
  background-position: right top;
}

#tab03 .year_info {
  background-image: url(../img/company/history_1980.png);
}

.tabcontent .year_info h2 {
  font-size: 4.6rem;
  font-weight: 900;
  text-align: center;
  line-height: 350px;
  color: #fff;
  text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
}

/* 타임라인 시작 */
.timeline {
  position: relative;
  width: 100%;
  margin: 0 auto;
  margin-top: 50px;
  padding: 1em 0;
  list-style-type: none;
}

.timeline:before {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  content: " ";
  display: block;
  width: 1px;
  height: 100%;
  margin-left: -3px;
  background: repeating-linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 2px);
}

.timeline li {
  padding: 1em 0;
}

.timeline li:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.direction-l {
  position: relative;
  width: 50%;
  float: left;
  text-align: right;
  margin-bottom: 50px;
}

.direction-r {
  position: relative;
  width: 50%;
  float: right;
  margin-bottom: 50px;
}

.year-wrapper {
  position: relative;
  text-align: center;
}

.year {
  display: block;
  color: #465dff;
  font-size: 3.2rem;
  line-height: 4.6rem;
  margin-bottom: 10px;
  font-weight: 900;
  border-bottom: 1px solid #ccc;
}

.direction-r .year {
  text-align: left;
}

.direction-r .year,
.direction-r .desc {
  margin-left: 30px;
}

.direction-l .year {
  text-align: right;
}

.direction-l .year,
.direction-l .desc {
  margin-right: 30px;
}

.direction-l .year:before,
.direction-r .year:before {
  position: absolute;
  top: 50%;
  content: " ";
  display: block;
  width: 10px;
  height: 10px;
  margin-top: -10px;
  background: #465dff;
  border-radius: 50%;
  border: 8px solid #ddedff;
  z-index: 5;
}

.direction-l .year:before {
  right: -10px;
}

.direction-r .year:before {
  left: -18px;
}

.direction-l .year:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-left-color: rgb(248, 248, 248);
  border-width: 8px;
  pointer-events: none;
}

.direction-r .year:after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  height: 0;
  width: 0;
  margin-top: -8px;
  border: solid transparent;
  border-right-color: rgb(248, 248, 248);
  border-width: 8px;
  pointer-events: none;
}

.time-wrapper {
  display: inline;
  line-height: 1em;
  font-size: 0.66666em;
  color: #465dff;
  vertical-align: middle;
}

.direction-l .time-wrapper {
  float: left;
}

.direction-r .time-wrapper {
  float: right;
}

.desc {
  margin-top: 20px;
}

.desc p {
  font-size: 2rem;
  color: #555;
  margin-top: 20px;
}

.desc span {
  display: block;
  font-weight: 700;
  color: #1c1c1c;
}

.direction-l .desc p {
  display: flex;
  flex-direction: column;
}

.direction-r .desc p {
  display: flex;
  flex-direction: column-reverse;
}

.direction-r .desc span {
  margin-right: 20px;
}

.direction-l .desc span {
  margin-left: 20px;
}

.tabcontent .pt {
  position: absolute;
  bottom: 5%;
}

@media screen and (max-width: 1180px) {
  .con_box {
    padding-top: 50px;
  }
}

@media screen and (max-width: 1024px) {
  .direction-r .year,
  .direction-l .year {
    text-align: center;
  }

  .direction-l .desc span {
    margin-left: 0;
  }

  .direction-r .desc span {
    margin-right: 0;
  }

  .timeline {
    width: 100%;
    padding: 4em 0 1em 0;
  }

  .timeline li {
    padding: 2em 0;
  }

  .direction-l,
  .direction-r {
    float: none;
    width: 100%;
    text-align: center;
  }

  .desc p {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .year-wrapper {
    text-align: center;
  }

  .year {
    background: rgb(255, 255, 255);
    z-index: 5;
  }

  .direction-l .year:before,
  .direction-r .year:before {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    content: " ";
    display: block;
    width: 12px;
    height: 12px;
    margin-left: -4px;
    background: #465dff;
    border-radius: 50%;
    border: 8px solid #ddedff;
    z-index: 4;
  }

  .direction-l .year:after,
  .direction-r .year:after {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    height: 0;
    width: 0;
    margin-left: -8px;
    border: solid transparent;
    border-bottom-color: rgb(255, 255, 255);
    border-width: 8px;
    pointer-events: none;
  }

  .time-wrapper {
    display: block;
    position: relative;
    margin: 4px 0 0 0;
    z-index: 5;
  }

  .direction-l .time-wrapper {
    float: none;
  }

  .direction-r .time-wrapper {
    float: none;
  }

  .desc {
    position: relative;
    margin: 1em 0 0 0;
    padding: 1em;
    background: rgb(245, 245, 245);
    z-index: 5;
  }

  .direction-l .desc p {
    flex-direction: column;
  }

  .desc p:first-of-type {
    margin-top: 0;
  }

  .tabcontent .pt {
    display: none;
  }

  .direction-r .year,
  .direction-r .desc {
    margin-left: 0;
  }

  .direction-l .year,
  .direction-l .desc {
    margin-right: 0;
  }
}

@media screen and (max-width: 840px) {
  .tabnav li a {
    font-size: 2.4rem;
  }

  .tabnav::before {
    top: 88px;
  }

  .tabcontent .year_info h2 {
    height: 300px;
    line-height: 300px;
    font-size: 4rem;
  }
}

@media screen and (max-width: 824px) {
  .tabnav li a {
    padding: 25px 0;
  }

  .tabnav::before {
    top: 75px;
  }

  .tab_box {
    padding-top: 150px;
  }

  .tabnav li:first-child::before,
  .tabnav li:last-child::after {
    bottom: -2.5px;
  }

  .tabnav li a.active::after {
    bottom: 2.5px;
  }
}

@media screen and (max-width: 568px) {
  .con_box {
    padding-top: 30px;
  }

  .tabcontent .year_info h2 {
    height: 250px;
    line-height: 250px;
    font-size: 3.6rem;
  }

  .desc p {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 460px) {
  .tabnav li a.active::after {
    bottom: 0;
  }

  .con_box {
    padding-top: 10px;
  }

  .tabnav li a {
    font-size: 2rem;
  }

  .tabnav::before {
    top: 72px;
  }

  .tabnav li:first-child::before,
  .tabnav li:last-child::after {
    display: none;
  }

  .tabcontent .year_info h2 {
    height: 150px;
    line-height: 150px;
    font-size: 3rem;
  }

  .year {
    font-size: 2.8rem;
  }

  .tabnav li a span {
    width: 22px;
    height: 22px;
    bottom: -10px;
  }

  .tabnav li a.active span:before {
    width: 8px;
    height: 8px;
    margin-left: 0;
    left: 33%;
    bottom: 7px;
  }
}

@media screen and (max-width: 357px) {
  .tabnav li a {
    padding: 20px 0;
  }

  .tabnav::before {
    top: 94px;
  }

  .tabnav::before {
    top: 87px;
  }
}
