@charset "utf-8";


.workflow__list2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: min(calc(50 / 1024 * 100vw),50px) min(calc(50 / 1024 * 100vw),50px);
  margin-bottom: -156px;
}

.workflow__list2 li {
  background: #fff;
  padding: 29px min(calc(28 / 1024 * 100vw),28px) 28px;
  border: 2px solid #E0690F;
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.workflow__list2 li::before {
  content: "";
  display: block;
  width: 39px;
  height: 27px;
  background: url(../img/index/flow_balloon_pc.svg) center / auto no-repeat;
}

.workflow__list2 li:last-of-type::before {
  display: none;
}

.workflow__list2 ._num {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: #E0690F;
  border-radius: 50%;
  padding-top: 0.2em;
  color: #fff;
  font-family: Overpass, sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 2;
}

.workflow__list2 ._ttl {
  margin-top: 22px;
  font-size: min(calc(20 / 1024 * 100vw),20px);
  font-weight: 700;
  color: #D61518;
  line-height: calc(28 / 20);
  letter-spacing: 0.095em;
}

.workflow__list2 ._img {
  max-width: 253px;
}

.workflow__list2 ._desc {
  margin-top: 17px;
  font-size: 16px;
  font-weight: 500;
  line-height: calc(30 / 16);
}

@media screen and (min-width:768px) { 
  .workflow__list2 li:nth-of-type(1) {
    grid-column: 1 / 4;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0 30px;
    margin-bottom: -8px;
  }

  .workflow__list2 li:nth-of-type(1) ._img {
    width: 253px;
  }

  .workflow__list2 li:nth-of-type(1) ._cont {
    flex: 1;
    padding-left: 10px;
  }
  
  .workflow__list2 li:nth-of-type(1) ._ttl {
    margin-top: 10px;
    font-size: min(calc(28 / 1024 * 100vw),28px);
    letter-spacing: 0.08em;
  }

  .workflow__list2 li:nth-of-type(1)::before {
    position: absolute;
    top: 100%;
    left: 13%;
    z-index: 2;
  }
  .workflow__list2 li:nth-of-type(2)::before,
  .workflow__list2 li:nth-of-type(3)::before {
    position: absolute;
    top: 50%;
    left: calc(100% - 6px);
    z-index: 2;
    transform: translateY(-50%) rotate(-90deg);
  }
  .workflow__list2 li:nth-of-type(4)::before {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
  }
  .workflow__list2 li:nth-of-type(5)::before,
  .workflow__list2 li:nth-of-type(6)::before{
    position: absolute;
    top: 50%;
    right: calc(100% - 6px);
    z-index: 2;
    transform: translateY(-50%) rotate(90deg);
  }
  .workflow__list2 li:nth-of-type(7)::before {
    position: absolute;
    top: 100%;
    left: 10%;
    z-index: 2;
  }

  .workflow__list2 li:nth-of-type(5) {
    grid-column: 3/4;
    grid-row: 3/4;
  }
  .workflow__list2 li:nth-of-type(6) {
    grid-column: 2/3;
    grid-row: 3/4;
  }
}



@media screen and (max-width:767px) {
  .workflow__list2 {
    display: block;
    margin-top: -10px;
    margin-bottom: -20px;
  }

  .workflow__list2 li {
    padding: 18px 18px 16px;
  }

  .workflow__list2 li+li{
    margin-top: 35px;
  }
  
  .workflow__list2 li::before {
    content: "";
    display: block;
    width: 26px;
    height: 18px;
    background-image: url(../img/index/flow_balloon_sp.svg);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .workflow__list2 ._num {
    width: 33px;
    height: 33px;
    font-size: 20px;
  }
  
  .workflow__list2 ._ttl {
    margin-top: 10px;
    font-size: 16px;
    line-height: calc(26 / 16);
  }
  
  .workflow__list2 ._img {
    width: 100%;
    max-width: 100%;
  }
  
  .workflow__list2 ._desc {
    display: none;
  }
}