@charset "UTF-8";

:root {
  --red: #cc0134;
}

.anchor {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-bottom: 16px;
}
.anchor a {
  position: relative;
  border: 3px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 30px 15px;
  line-height: 1.5;
  transition: 0.3s;
  width: calc( (100% - 48px) / 3);
  max-width: 300px;
}
.anchor a:hover {
  background: var(--red);
  color: #fff;
  opacity: 1;
}
.anchor a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translate(-50%, 100%);
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 13px solid transparent;
  border-left: 13px solid transparent;
  border-top: 13px solid var(--red);
  border-bottom: 0;
}
.c-stepList {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px 20px;
}
.c-stepList::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background-color: #ff0000;
}
.c-stepList .c-stepList__item {
  width: calc( (100% - 40px) / 3 );
}
.c-stepList .c-stepList__item:nth-child(1) {
  order: 1;
}
.c-stepList .c-stepList__item:nth-child(3) {
  order: 2;
}
.c-stepList .c-stepList__item:nth-child(5) {
  order: 3;
}
.c-stepList .c-stepList__item:nth-child(2) {
  order: 4;
}
.c-stepList .c-stepList__item:nth-child(4) {
  order: 5;
}
.c-stepList .c-stepList__item {
  display: flex;
  gap: 20px;
}
.c-stepList .c-stepList__item .c-stepList__item__img {
  position: relative;
}
.c-stepList .c-stepList__item .c-stepList__item__img::before,
.c-stepList .c-stepList__item .c-stepList__item__img::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 60px;
  background-color: #ff0000;
  z-index: 1;
}
.c-stepList .c-stepList__item:nth-child(odd) .c-stepList__item__img::before {
  bottom: -39px;
}
.c-stepList .c-stepList__item:nth-child(even) .c-stepList__item__img::before {
  top: -41px;
}
.c-stepList .c-stepList__item .c-stepList__item__img img {
  position: relative;
  width: 120px;
  z-index: 2;
}
.c-stepList .c-stepList__item .c-stepList__item__text .number {
  font-weight: bold;
  color: #ff0000;
}
.c-stepList .c-stepList__item .c-stepList__item__text .title {
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .anchor {
    flex-wrap: wrap;
    gap: 20px 10px;
  }
  .anchor a {
    border-radius: 20px;
    border: 1px solid var(--red);
    font-size: 10px;
    padding: 10px 5px;
    width: calc( (100% - 10px) / 2);
  }
  .anchor a::after {
    bottom: -3px;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-top: 8px solid var(--red);
  }
  .c-stepList {
    flex-direction: column;
    gap: 28px;
    padding: 28px 0;
  }
  .c-stepList::before {
    content: "";
    position: absolute;
    top: 0;
    left: 38px;
    transform: translateY(0);
    width: 2px;
    height: 100%;
    background-color: #ff0000;
  }
  .c-stepList .c-stepList__item {
    width: 100%;
  }
  .c-stepList .c-stepList__item:nth-child(1) {
    order: 1;
  }
  .c-stepList .c-stepList__item:nth-child(2) {
    order: 2;
  }
  .c-stepList .c-stepList__item:nth-child(3) {
    order: 3;
  }
  .c-stepList .c-stepList__item:nth-child(4) {
    order: 4;
  }
  .c-stepList .c-stepList__item:nth-child(5) {
    order: 5;
  }
  .c-stepList .c-stepList__item .c-stepList__item__img::before,
  .c-stepList .c-stepList__item .c-stepList__item__img::after {
    display: none;
  }
  .c-stepList .c-stepList__item .c-stepList__item__img {
    flex: 0 0 80px;
  }
  .c-stepList .c-stepList__item .c-stepList__item__img img {
    width: 80px;
  }
}