.ca-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  margin: 0;
  padding-top: 20vh;
}

.ca-container {
  display: flex;
  position: relative;
}

.ca-circle {
  border: 1px solid #333;
  border-radius: 50%;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: inherit;
  text-align: center;
  box-sizing: border-box;
  z-index: 0;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-name: ca-fadeIn;
  animation-duration: 1.5s;
  animation-play-state: paused;
}

.ca-circle::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 60px;
  height: 20px;
  background: #f4f7f8;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-name: ca-fadeIn;
  animation-duration: 1.0s;
  animation-play-state: paused;
}

.ca-circle > div {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-name: ca-fadeInUp;
  animation-duration: 1.5s;
  line-height: 1;
  animation-play-state: paused;
}

.ca-circle .ca-bold {
  font-weight: bold;
  margin-top: 2px;
}

.ca-line1,
.ca-line2 {
  position: absolute;
  top: 50%;
  height: 1.5px;
  background: #333;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-name: ca-fadeIn;
  animation-duration: 1.5s;
  animation-play-state: paused;
}

.ca-animate .ca-circle,
.ca-animate .ca-circle::before,
.ca-animate .ca-circle > div,
.ca-animate .ca-line1,
.ca-animate .ca-line2 {
  animation-play-state: running;
}

@keyframes ca-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ca-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ca-circle:nth-child(1) {
  animation-delay: 0s;
}
.ca-circle:nth-child(1) > div {
  animation-delay: 0s;
}
.ca-circle:nth-child(1)::before {
  animation-delay: 0s;
}

.ca-line1 {
  animation-delay: 0.75s;
}

.ca-circle:nth-child(3) {
  animation-delay: 0.75s;
}
.ca-circle:nth-child(3) > div {
  animation-delay: 0.75s;
}
.ca-circle:nth-child(3)::before {
  animation-delay: 0.75s;
}

.ca-line2 {
  animation-delay: 1.5s;
}

.ca-circle:nth-child(5) {
  animation-delay: 1.5s;
}
.ca-circle:nth-child(5) > div {
  animation-delay: 1.5s;
}
.ca-circle:nth-child(5)::before {
  animation-delay: 1.5s;
}

@media (min-width: 1025px) {
  .ca-container {
    gap: 100px;
    width: auto;
  }

  .ca-circle {
    width: 360px;
    height: 360px;
    font-size: 48px;
  }

  .ca-line1 {
    left: calc(360px - 15px);
    width: calc(100px + 30px);
  }

  .ca-line2 {
    left: calc(360px * 2 + 100px - 15px);
    width: calc(100px + 30px);
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .ca-wrapper {
    height: 30vh;
    padding-top: 5vh;
  }

  .ca-container {
    gap: 5vw;
    max-width: 1000px;
    width: 90vw;
  }

  .ca-circle {
    width: min(360px, 28vw);
    height: min(360px, 28vw);
    font-size: min(48px, 3.8vw);
  }

  .ca-line1 {
    left: calc(min(360px, 28vw) - 25px);
    width: calc(5vw + 30px);
  }

  .ca-line2 {
    left: calc(min(360px, 28vw) * 2 + 5vw - 35px);
    width: calc(5vw + 30px);
  }
}

@media (max-width: 599px) {
  .ca-wrapper {
    align-items: flex-start;
    padding-top: 50px;
    height: auto;
    min-height: auto;
  }

  .ca-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .ca-circle {
    width: 200px;
    height: 200px;
    font-size: 24px;
    opacity: 1;
    animation: none;
  }

  .ca-circle > div {
    opacity: 1;
    animation: none;
  }

  .ca-circle::before {
    display: none;
  }

  .ca-line1,
  .ca-line2 {
    display: none;
  }
}