.construction-seciton {
  width: 100%;
  height: 880px;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 1) 100%),
    url("../assets/img/construction-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.construction-container {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  max-width: 960px;
  margin: 0 auto;
}

.steps-wrapper {
  text-align: center;
  margin: 0 auto;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.steps-title {
  font-size: 42px;
  font-weight: 800;
  color: #0baa6a;
  margin-bottom: 40px;
  font-family: "Noto Sans JP", sans-serif;
}

.steps-container {
  --rail-width: 180px;
  --rail-x: calc(var(--rail-width) / 2);
  position: relative;
  text-align: center;
  margin: 0 auto;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 35px;
  left: 12%;
}

.green-line {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: 0;
  bottom: 0;
  width: 5px;
  height: 670px;
  background: #0baa6a;
  transform: translateX(-50%);
  z-index: 0;
}

.green-line::after {
  content: "";
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  width: 20px;
  height: 20px;
  background: #0baa6a;
  transform: translateX(-50%) rotate(45deg);
  z-index: 0;
}

.step {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  height: 60px;
}

.step-label {
  width: var(--rail-width);
  text-align: center;
  background: #0baa6a;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  padding: 16px 0;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.step-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-left: 24px;
  font-size: 32px;
  font-weight: 700;
  color: #000;
  text-align: left;
  line-height: 1.6;
  width: 300px;
}

.step-text .note {
  font-size: 20px;
  font-weight: 500;
  color: #e53935;
  margin-top: 4px;
  line-height: 1.4;
}

.step:nth-child(1) .step-label {
  background: #8BE6A5;
}

.step:nth-child(2) .step-label {
  background: #6ADD92;
}

.step:nth-child(3) .step-label {
  background: #47D37F;
}

.step:nth-child(4) .step-label {
  background: #2EC873;
}

.step:nth-child(5) .step-label {
  background: #1EBE6A;
}

.step:nth-child(6) .step-label {
  background: #10B462;
}

.step:nth-child(7) .step-label {
  background: #0baa6a;
}

.step:nth-child(1) .step-label::after,
.step:nth-child(1) .step-label::before {
  background: #8BE6A5;
}

.step:nth-child(2) .step-label::after,
.step:nth-child(2) .step-label::before {
  background: #6ADD92;
}

.step:nth-child(3) .step-label::after,
.step:nth-child(3) .step-label::before {
  background: #47D37F;
}

.step:nth-child(4) .step-label::after,
.step:nth-child(4) .step-label::before {
  background: #2EC873;
}

.step:nth-child(5) .step-label::after,
.step:nth-child(5) .step-label::before {
  background: #1EBE6A;
}
.step:nth-child(6) .step-label::after,
.step:nth-child(6) .step-label::before {
  background: #10B462;
}

.step:nth-child(7) .step-label::after,
.step:nth-child(7) .step-label::before {
  background: #0baa6a;
}

@media screen and (max-width: 1024px) {
  .construction-seciton {
    height: 880px;
  }
}

@media screen and (max-width: 767px) {
  .construction-seciton {
    height: 780px;
  }
  .construction-container {
    max-width: none;
  }
  .steps-title {
    font-size: 36px;
    font-weight: 800;
    color: #0baa6a;
  }
  .green-line {
    height: 570px;
  }
  .step {
    height: 50px;
  }
  .steps-container {
    gap: 30px;
  }
  .step-label {
    padding: 12px 0;
  }
  .step-text {
    font-size: 24px;
    width: 300px;
  }
  .step-text .note {
    font-size: 16px;
  }
}

@media screen and (max-width: 608px) {
  .construction-seciton {
    height: 720px;
  }
  .green-line {
    height: 540px;
  }
  .steps-title {
    font-size: 30px;
    font-weight: 800;
    color: #0baa6a;
  }
  .steps-container {
    gap: 25px;
    --rail-width: 200px;
    left: 4%;
  }
  .step-label {
    padding: 10px 0;
    width: 100%;
  }
  .step-text {
    font-size: 22px;
    width: 300px;
  }
  .step-text .note {
    font-size: 12px;
  }
}

@media screen and (max-width: 430px) {
  .construction-seciton {
    height: 680px;
  }
  .green-line {
    height: 500px;
  }
  .steps-title {
    font-size: 26px;
    font-weight: 800;
    color: #0baa6a;
  }
  .steps-container {
    gap: 20px;
    --rail-width: 200px;
    left: 3%;
  }
  .step-label {
    padding: 10px 0;
    width: 100%;
  }
  .step-text {
    font-size: 20px;
    width: 300px;
  }
  .step-text .note {
    font-size: 12px;
  }
}
@media screen and (max-width: 390px) {
  .construction-seciton {
    height: 670px;
  }
  .steps-title {
    font-size: 26px;
  }
  .steps-container {
    --rail-width: 132.5px;
  }
  .step-label {
    width: 90%;
  }
  .step-text {
    font-size: 18px;
    width: 180px;
  }
  .step-text .note {
    font-size: 10px;
  }
}

@media screen and (max-width: 375px) {
  .steps-title {
    font-size: 24px;
  }
  .steps-container {
    --rail-width: 120px;
  }
  .step-label {
    width: 70%;
  }
  .step-text {
    font-size: 18px;
    width: 180px;
  }
  .step-text .note {
    font-size: 10px;
  }
}
