.team-section .team-wrap .top-box {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 1s, transform 1s;
}
.team-section .team-wrap .top-box.active {
  opacity: 1;
  transform: translateY(0);
}
.team-section .team-wrap .top-box .team-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px;
  border-radius: 100px;
  box-sizing: border-box;
  padding: 0 100px;
}
.team-section .team-wrap .top-box .team-title::before {
  content: "";
  z-index: -1;
  display: block;
  width: 1px;
  height: 100%;
  background-color: #ddd;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -50px;
}
.team-section .team-wrap .team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  box-sizing: border-box;
  padding-top: 100px;
}
.team-section .team-wrap .team-container.active .left-inner::before,
.team-section .team-wrap .team-container.active .right-inner::before {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
          clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.team-section .team-wrap .team-container .left-inner {
  width: calc((100% - 30px) / 6 * 4);
  flex-wrap: wrap;
}
.team-section .team-wrap .team-container .left-inner::before {
  width: calc((100% - 45px) / 4 * 3 + 45px);
}
.team-section .team-wrap .team-container .left-inner .team-box {
  width: calc((100% - 45px) / 4);
}
.team-section .team-wrap .team-container .right-inner {
  width: calc((100% - 30px) / 6 * 2);
  flex-wrap: wrap;
}
.team-section .team-wrap .team-container .right-inner::before {
  width: calc((100% - 15px) / 2 + 15px);
}
.team-section .team-wrap .team-container .right-inner .team-box {
  width: calc((100% - 15px) / 2);
}
.team-section .team-wrap .team-container .left-inner,
.team-section .team-wrap .team-container .right-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.team-section .team-wrap .team-container .left-inner::before,
.team-section .team-wrap .team-container .right-inner::before {
  content: "";
  display: block;
  height: 1px;
  background-color: #ddd;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -50px;
  -webkit-clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
          clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
  transition: -webkit-clip-path 1s;
  transition: clip-path 1s;
  transition: clip-path 1s, -webkit-clip-path 1s;
}
.team-section .team-wrap .team-container .left-inner .team-box,
.team-section .team-wrap .team-container .right-inner .team-box {
  position: relative;
}
.team-section .team-wrap .team-container .left-inner .team-box:nth-of-type(1), .team-section .team-wrap .team-container .left-inner .team-box:nth-of-type(2),
.team-section .team-wrap .team-container .right-inner .team-box:nth-of-type(1),
.team-section .team-wrap .team-container .right-inner .team-box:nth-of-type(2) {
  z-index: 1;
}
.team-section .team-wrap .team-container .left-inner .team-box.active::before,
.team-section .team-wrap .team-container .right-inner .team-box.active::before {
  height: 100%;
}
.team-section .team-wrap .team-container .left-inner .team-box.active .team,
.team-section .team-wrap .team-container .right-inner .team-box.active .team {
  opacity: 1;
  transform: translateY(0);
}
.team-section .team-wrap .team-container .left-inner .team-box::before,
.team-section .team-wrap .team-container .right-inner .team-box::before {
  content: "";
  z-index: -1;
  display: block;
  width: 1px;
  height: 0;
  background-color: #ddd;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -50px;
  transition: height 1s;
}
.team-section .team-wrap .team-container .left-inner .team-box .team,
.team-section .team-wrap .team-container .right-inner .team-box .team {
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 1s, transform 1s;
  transition-delay: 0.3s;
}
.team-section .team-wrap .team-container .left-inner .team-box .team.team-depth1,
.team-section .team-wrap .team-container .right-inner .team-box .team.team-depth1 {
  background-color: #f5f5f5;
  height: 90px;
  border-radius: 25px 25px 0 0;
  border-top: 1px solid #ddd;
}
.team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2,
.team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2 {
  height: 80px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
.team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2:nth-last-of-type(1),
.team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2:nth-last-of-type(1) {
  border-radius: 0 0 25px 25px;
}

@media screen and (max-width: 1600px) {
  .team-section .team-wrap .top-box .team-title {
    height: 90px;
    padding: 0 90px;
  }
  .team-section .team-wrap .top-box .team-title::before {
    bottom: -45px;
  }
  .team-section .team-wrap .team-container {
    gap: 27px;
    padding-top: 90px;
  }
  .team-section .team-wrap .team-container .left-inner {
    width: calc((100% - 27px) / 6 * 4);
  }
  .team-section .team-wrap .team-container .left-inner::before {
    width: calc((100% - 42px) / 4 * 3 + 42px);
  }
  .team-section .team-wrap .team-container .left-inner .team-box {
    width: calc((100% - 42px) / 4);
  }
  .team-section .team-wrap .team-container .right-inner {
    width: calc((100% - 27px) / 6 * 2);
  }
  .team-section .team-wrap .team-container .right-inner::before {
    width: calc((100% - 14px) / 2 + 14px);
  }
  .team-section .team-wrap .team-container .right-inner .team-box {
    width: calc((100% - 14px) / 2);
  }
  .team-section .team-wrap .team-container .left-inner,
  .team-section .team-wrap .team-container .right-inner {
    gap: 14px;
  }
  .team-section .team-wrap .team-container .left-inner::before,
  .team-section .team-wrap .team-container .right-inner::before {
    top: -45px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box::before,
  .team-section .team-wrap .team-container .right-inner .team-box::before {
    top: -45px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth1,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth1 {
    height: 81px;
    border-radius: 23px 23px 0 0;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2 {
    height: 72px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2:nth-last-of-type(1),
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2:nth-last-of-type(1) {
    border-radius: 0 0 23px 23px;
  }
}
@media screen and (max-width: 1300px) {
  .team-section .team-wrap .top-box .team-title {
    height: 80px;
    padding: 0 80px;
  }
  .team-section .team-wrap .top-box .team-title::before {
    bottom: -40px;
  }
  .team-section .team-wrap .team-container {
    gap: 24px;
    padding-top: 80px;
  }
  .team-section .team-wrap .team-container .left-inner {
    width: calc((100% - 24px) / 6 * 4);
  }
  .team-section .team-wrap .team-container .left-inner::before {
    width: calc((100% - 39px) / 4 * 3 + 39px);
  }
  .team-section .team-wrap .team-container .left-inner .team-box {
    width: calc((100% - 39px) / 4);
  }
  .team-section .team-wrap .team-container .right-inner {
    width: calc((100% - 24px) / 6 * 2);
  }
  .team-section .team-wrap .team-container .right-inner::before {
    width: calc((100% - 13px) / 2 + 13px);
  }
  .team-section .team-wrap .team-container .right-inner .team-box {
    width: calc((100% - 13px) / 2);
  }
  .team-section .team-wrap .team-container .left-inner,
  .team-section .team-wrap .team-container .right-inner {
    gap: 13px;
  }
  .team-section .team-wrap .team-container .left-inner::before,
  .team-section .team-wrap .team-container .right-inner::before {
    top: -40px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box::before,
  .team-section .team-wrap .team-container .right-inner .team-box::before {
    top: -40px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth1,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth1 {
    height: 72px;
    border-radius: 21px 21px 0 0;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2 {
    height: 64px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2:nth-last-of-type(1),
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2:nth-last-of-type(1) {
    border-radius: 0 0 21px 21px;
  }
}
@media screen and (max-width: 991px) {
  .team-section .team-wrap .top-box .team-title {
    height: 70px;
    padding: 0 70px;
  }
  .team-section .team-wrap .top-box .team-title::before {
    bottom: -35px;
  }
  .team-section .team-wrap .team-container {
    gap: 70px;
    padding-top: 70px;
  }
  .team-section .team-wrap .team-container .left-inner {
    width: 100%;
  }
  .team-section .team-wrap .team-container .left-inner::before {
    width: calc((100% - 36px) / 4 * 3 + 36px);
  }
  .team-section .team-wrap .team-container .left-inner .team-box {
    width: calc((100% - 36px) / 4);
  }
  .team-section .team-wrap .team-container .right-inner {
    width: 50%;
  }
  .team-section .team-wrap .team-container .right-inner::before {
    width: calc((100% - 12px) / 2 + 12px);
  }
  .team-section .team-wrap .team-container .right-inner .team-box {
    width: calc((100% - 12px) / 2);
  }
  .team-section .team-wrap .team-container .left-inner,
  .team-section .team-wrap .team-container .right-inner {
    gap: 12px;
  }
  .team-section .team-wrap .team-container .left-inner::before,
  .team-section .team-wrap .team-container .right-inner::before {
    top: -35px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box::before,
  .team-section .team-wrap .team-container .right-inner .team-box::before {
    top: -35px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth1,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth1 {
    height: 63px;
    border-radius: 19px 19px 0 0;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2 {
    height: 56px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2:nth-last-of-type(1),
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2:nth-last-of-type(1) {
    border-radius: 0 0 19px 19px;
  }
}
@media screen and (max-width: 750px) {
  .team-section .team-wrap .team-container .left-inner {
    width: 100%;
  }
  .team-section .team-wrap .team-container .left-inner::before {
    width: calc((100% - 12px) / 2 + 12px);
  }
  .team-section .team-wrap .team-container .left-inner .team-box {
    width: calc((100% - 12px) / 2);
  }
  .team-section .team-wrap .team-container .right-inner {
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
  .team-section .team-wrap .top-box .team-title {
    height: 60px;
    padding: 0 60px;
  }
  .team-section .team-wrap .top-box .team-title::before {
    bottom: -30px;
  }
  .team-section .team-wrap .team-container {
    gap: 60px;
    padding-top: 60px;
  }
  .team-section .team-wrap .team-container .left-inner::before {
    width: calc((100% - 11px) / 2 + 11px);
  }
  .team-section .team-wrap .team-container .left-inner .team-box {
    width: calc((100% - 11px) / 2);
  }
  .team-section .team-wrap .team-container .right-inner::before {
    width: calc((100% - 11px) / 2 + 11px);
  }
  .team-section .team-wrap .team-container .right-inner .team-box {
    width: calc((100% - 11px) / 2);
  }
  .team-section .team-wrap .team-container .left-inner,
  .team-section .team-wrap .team-container .right-inner {
    gap: 11px;
  }
  .team-section .team-wrap .team-container .left-inner::before,
  .team-section .team-wrap .team-container .right-inner::before {
    top: -30px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box::before,
  .team-section .team-wrap .team-container .right-inner .team-box::before {
    top: -30px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth1,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth1 {
    height: 54px;
    border-radius: 17px 17px 0 0;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2 {
    height: 48px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2:nth-last-of-type(1),
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2:nth-last-of-type(1) {
    border-radius: 0 0 17px 17px;
  }
}
@media screen and (max-width: 450px) {
  .team-section .team-wrap .top-box .team-title {
    height: 50px;
    padding: 0 50px;
  }
  .team-section .team-wrap .top-box .team-title::before {
    bottom: -25px;
  }
  .team-section .team-wrap .team-container {
    gap: 50px;
    padding-top: 50px;
  }
  .team-section .team-wrap .team-container .left-inner::before {
    width: calc((100% - 10px) / 2 + 10px);
  }
  .team-section .team-wrap .team-container .left-inner .team-box {
    width: calc((100% - 10px) / 2);
  }
  .team-section .team-wrap .team-container .right-inner::before {
    width: calc((100% - 10px) / 2 + 10px);
  }
  .team-section .team-wrap .team-container .right-inner .team-box {
    width: calc((100% - 10px) / 2);
  }
  .team-section .team-wrap .team-container .left-inner,
  .team-section .team-wrap .team-container .right-inner {
    gap: 10px;
  }
  .team-section .team-wrap .team-container .left-inner::before,
  .team-section .team-wrap .team-container .right-inner::before {
    top: -25px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box::before,
  .team-section .team-wrap .team-container .right-inner .team-box::before {
    top: -25px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth1,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth1 {
    height: 45px;
    border-radius: 15px 15px 0 0;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2,
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2 {
    height: 40px;
  }
  .team-section .team-wrap .team-container .left-inner .team-box .team.team-depth2:nth-last-of-type(1),
  .team-section .team-wrap .team-container .right-inner .team-box .team.team-depth2:nth-last-of-type(1) {
    border-radius: 0 0 15px 15px;
  }
}