/* flow-main */

.flow-main {
  padding-top: 40px;
  color: #1e293c;
}

.flow-main .top-texts {
  font-size: 18px;
  line-height: 1.7;
  padding-left: 2.9%;
  padding-right: 2.9%;
}

.flow-main .top-texts .span {
  font-weight: bold;
}

.flow-main .top-texts.margin {
  margin-top: 40px;
}

@media screen and (max-width: 767px) {
  .flow-main {
    padding-top: 30px;
  }

  .flow-main .top-texts {
    padding-left: 20px;
    padding-right: 20px;
  }

  .flow-main .top-texts.margin {
    margin-top: 45px;
  }
}

/* wrap-boxes */

.flow-main .wrap-boxes {
  margin-top: 65px;
  margin-bottom: 100px;
}

.flow-main .wrap-boxes .boxes {
  display: flex;
  margin-bottom: 10px;
  max-width: 970px;
}

.flow-main .wrap-boxes .boxes .box {
  position: relative;
  height: 160px;
  width: 25%;
  background-color: #4365ac;
  color: #ffffff;
  box-sizing: border-box;
  padding: 0 20px;
}

.flow-main .wrap-boxes .boxes .box::after {
  position: absolute;
  z-index: 1;
  content: "";
  width: 76px;
  height: 76px;
  background-color: #4365ac;
  transform: rotate(45deg);
  right: -3px;
  top: 45px;
}
.flow-main .wrap-boxes .boxes .box07::after {
  display: none;
}

.flow-main .wrap-boxes .boxes .box01 {
  z-index: 10;
}
.flow-main .wrap-boxes .boxes .box02 {
  z-index: 9;
}
.flow-main .wrap-boxes .boxes .box03 {
  z-index: 8;
}
.flow-main .wrap-boxes .boxes .box04 {
  z-index: 7;
}
.flow-main .wrap-boxes .boxes .box05 {
  z-index: 6;
}
.flow-main .wrap-boxes .boxes .box06 {
  z-index: 5;
}
.flow-main .wrap-boxes .boxes .box07 {
  z-index: 4;
}

.flow-main .wrap-boxes .boxes .box02,
.flow-main .wrap-boxes .boxes .box02::after {
  background-color: #e49e35 !important;
}

.flow-main .wrap-boxes .boxes .box04,
.flow-main .wrap-boxes .boxes .box05,
.flow-main .wrap-boxes .boxes .box07,
.flow-main .wrap-boxes .boxes .box04::after,
.flow-main .wrap-boxes .boxes .box05::after,
.flow-main .wrap-boxes .boxes .box07::after {
  background-color: #6984bd !important;
}

.flow-main .wrap-boxes .boxes .box .number {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 50px;
  font-weight: bold;
  padding-top: 20px;
  padding-bottom: 15px;
  line-height: 1;
}

.flow-main .wrap-boxes .boxes .box .box-text {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
  .flow-main .wrap-boxes .boxes .box .number {
    font-size: 40px;
  }

  .flow-main .wrap-boxes .boxes .box .box-text {
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  .flow-main .wrap-boxes {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .flow-main .wrap-boxes .boxes {
    flex-direction: column;
    margin-bottom: 0;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }

  .flow-main .wrap-boxes .boxes .box {
    width: 100%;
  }

  .flow-main .wrap-boxes .boxes .box::after {
    top: unset;
    right: 82px;
    bottom: -3px;
  }

  .flow-main .wrap-boxes .boxes .box05,
  .flow-main .wrap-boxes .boxes .box05::after {
    background-color: #4365ac !important;
  }

  .flow-main .wrap-boxes .boxes .box06,
  .flow-main .wrap-boxes .boxes .box06::after {
    background-color: #6984bd !important;
  }

  .flow-main .wrap-boxes .boxes .box07,
  .flow-main .wrap-boxes .boxes .box07::after {
    background-color: #e49e35 !important;
  }

  .flow-main .wrap-boxes .boxes .box .number {
    padding-top: 35px;
  }
  .flow-main .wrap-boxes .boxes .box02 .number {
    padding-top: 20px;
  }
}

/* flow-boxes */

.flow-main .flow-boxes {
  padding: 35px 3.3% 35px 3.3%;
  background-color: #d9e0ee;
}

.flow-main .flow-boxes #id01,
.flow-main .flow-boxes #id02,
.flow-main .flow-boxes #id03,
.flow-main .flow-boxes #id04,
.flow-main .flow-boxes #id05,
.flow-main .flow-boxes #id06,
.flow-main .flow-boxes #id07 {
  padding-top: 150px;
  margin-top: -150px;
}

.flow-main .flow-box {
  width: 100%;
  padding: 45px 4.6% 45px 4.6%;
  background-color: #fff;
  box-sizing: border-box;
  border-left: 10px solid #4365ac;
}

.flow-main .flow-box.color {
  border: 10px solid #e49e35;
}

.flow-main .flow-boxes .arrow {
  position: relative;
  max-width: 51px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  height: 28px;
}

.flow-main .flow-boxes .arrow::after {
  position: absolute;
  content: "";
  transform: rotate(45deg);
  border-right: 3px solid #4365ac;
  border-bottom: 3px solid #4365ac;
  width: 25px;
  height: 25px;
  right: 11px;
  bottom: 8px;
}

.flow-main .flow-box .flow-box-title {
  font-size: 30px;
  color: #4365ac;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.flow-main .flow-box.color .flow-box-title {
  color: #e49e35;
}

.flow-main .flow-box .flow-box-title .span01 {
  margin-right: 15px;
  font-weight: bold;
  white-space: nowrap;
}

.flow-main .flow-box .flow-box-title .span02 {
  font-size: 26px;
  letter-spacing: 2px;
}

.flow-main .flow-box .flow-box-text {
  font-size: 16px;
  letter-spacing: 0px;
  margin-top: 25px;
}

.flow-main .flow-box .flow-contact-button {
  max-width: 300px;
  width: 100%;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0px;
  line-height: 1;
  border-radius: 5px;
  background-color: #2a376e;
  text-align: center;
  padding: 15px 0;
  display: block;
  margin-top: 30px;
}

.flow-main .flow-box .flow-movies {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.flow-main .flow-box .flow-movies iframe {
  width: 48.8%;
  height: auto;
  aspect-ratio: 21 / 11;
  display: block;
}

.flow-main .flow-box .flow-link {
  position: relative;
  color: #e49e35;
  margin-top: 20px;
  display: inline-block;
  padding-left: 20px;
}

.flow-main .flow-box .flow-link::before {
  position: absolute;
  left: -3px;
  top: 8px;
  content: "";
  transform: rotate(45deg);
  width: 7px;
  height: 7px;
  border: 2px solid #d19c40;
  border-left: none;
  border-bottom: none;
}

@media screen and (max-width: 767px) {
  .flow-main .flow-boxes {
    padding: 25px;
  }

  .flow-main .flow-boxes #id01,
  .flow-main .flow-boxes #id02,
  .flow-main .flow-boxes #id03,
  .flow-main .flow-boxes #id04,
  .flow-main .flow-boxes #id05,
  .flow-main .flow-boxes #id06,
  .flow-main .flow-boxes #id07 {
    padding-top: 55px;
    margin-top: -55px;
  }

  .flow-main .flow-box {
    padding: 25px 20px;
    border-left: none;
    border-top: 10px solid #4365ac;
  }

  .flow-main .flow-box .flow-box-title {
    align-items: flex-start;
  }

  .flow-main .flow-box .flow-box-title .span01 {
    line-height: 1.3;
  }

  .flow-main .flow-boxes .arrow {
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .flow-main .flow-box .flow-movies {
    margin-top: 40px;
    flex-direction: column;
  }

  .flow-main .flow-box .flow-movies iframe {
    width: 100%;
    aspect-ratio: 25 / 13;
    margin-top: 15px;
  }
}

@media screen and (max-width: 399px) {
  .flow-main .flow-box .flow-box-title .span01 {
    line-height: 1.2;
  }

  .flow-main .flow-box .flow-box-title .span02 {
    font-size: 24px;
  }
}
