@charset "utf-8";

/*============================
#flow
============================*/

#flow {
  position: relative;
  counter-reset: num 0;
}

#flow::after {
  content: '';
  display: block;
  background: url(../images/illust.svg) no-repeat center;
  width: 468px;
  height: 308px;
  position: absolute;
  -webkit-background-size: 100%;
  background-size: 100%;
  top: 120px;
  left: 50%;
}

#flow .inner {
  position: relative;
  z-index: 10;
}

@media only screen and (max-width: 1040px) {
  #flow h2 .jp {
    line-height: 1.3;
  }

  #flow::after {
    width: 300px;
    height: 220px;
    left: auto;
    right: 10px;
    top: 160px;
  }
}


/*
section共通
============================*/

#flow section img {
  width: 100%;
}

#flow section h3 {
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  position: relative;
  margin-bottom: 80px;
}

#flow section h3::before {
  content: '01';
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.06em;
  font-size: 160px;
  color: #f1f1f1;
  font-weight: 700;
  display: block;
  position: absolute;
  top: -65px;
  left: 0;
  right: 0;
  margin: auto;
}

#flow section h3::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background-color: #111;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}

#flow section h3 > span {
  background-color: #fff;
  padding: 10px 20px;
  display: inline-block;
  position: relative;
  z-index: 10;
}

#flow section dl dt {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  padding-left: 75px;
  margin-bottom: 25px;
}

#flow section dl dt::before {
  content: '';
  display: block;
  width: 55px;
  height: 55px;
  border: 1.5px solid #111;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  left: 0;
}

#flow section dl dt::after {
  counter-increment: num;
  content: counter(num)"";
  display: block;
  width: 60px;
  height: 58px;
  position: absolute;
  top: -5px;
  left: 0;
  font-family: "Outfit", sans-serif;
  font-size: 26px;
  line-height: 58px;
  text-align: center;
  font-weight: 400;
}

#flow section dl dt .eng {
  font-size: 16px;
  display: block;
}

@media only screen and (max-width: 1040px) {

  #flow section h3 {
    font-size: 17px;
    margin: 60px 0 40px;
  }

  #flow section h3::before {
    top: -34px;
    font-size: 100px;
  }

  #flow section h3 > span {
    padding: 5px 10px;
  }

  #flow section dl dt {
    padding-left: 60px;
  }

  #flow section dl dt::before {
    width: 43px;
    height: 43px;
    top: 0;
    left: 0;
  }

  #flow section dl dt::after {
    width: 48px;
    height: 46px;
    top: 0;
    left: 0;
    font-size: 20px;
    line-height: 46px;
  }

  #flow section dl dt .eng {
    font-size: 14px;
    display: block;
  }
}

/*
#step01
============================*/

#flow #step01 {
  margin-top: 130px;
}

#flow #step01 img {
  margin-bottom: 130px;
}

#flow .flex {
  align-items: stretch;
}

#flow #step01 dl {
  width: 33.3%;
  padding: 20px 15px 20px 25px;
  margin-bottom: 40px;
  border-right: 1px solid #d7d7d7;
  position: relative;
}

#flow #step01 dl:nth-child(3n) {
  border-right: none;
}

#flow #step01 dl::after {
  content: '';
  display: block;
  width: 88%;
  height: 1px;
  background-color: #d7d7d7;
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  margin: auto;
}

#flow #step01 dl:nth-last-child(-n+3)::after {
  display: none;
}

@media only screen and (max-width: 1040px) {
  #flow #step01 {
    margin-top: 120px;
  }

  #flow #step01 img {
    margin-bottom: 0;
  }

  #flow .flex {
    display: block;
  }

  #flow #step01 dl {
    width: 100%;
    padding: 15px 0 2px;
    margin-bottom: 30px;
    border-right: none;
    position: relative;
  }

  #flow #step01 dl:first-of-type {
    padding-top: 0;
  }

  #flow #step01 dl:nth-child(3n) {
    border-right: none;
  }

  #flow #step01 dl::after {
    width: 100%;
  }

  #flow #step01 dl:nth-last-child(-n+3)::after {
    display: block;
  }
}


/*
#step02
============================*/

#flow #step02 {
  margin-top: 160px;
}

#flow #step02 h3::before {
  content: '02';
}

#flow #step02 .photo,
#flow #step02 .text {
  width: 48%;
}

#flow #step02 .text {
  margin-top: 40px;
}

#flow #step02 .text dl {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #d7d7d7;
}

#flow #step02 .attention {
  margin-top: 100px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

#flow #step02 .attention .note {
  display: inline-block;
  font-size: 16px;
  color: #111;
}

@media only screen and (max-width: 1040px) {
  #flow #step02 {
    margin-top: 60px;
  }

  #flow #step02 h3::before {
    content: '02';
  }

  #flow #step02 .photo,
  #flow #step02 .text {
    width: 100%;
  }

  #flow #step02 .photo img{
    background: url(../images/photo02_sp.jpg) no-repeat center;
    -webkit-background-size: 100%;
    background-size: 100%;
    height: 0;
    padding-top: 43.2692%;
    overflow: hidden;
  }

  #flow #step02 .text {
    margin-top: 0;
  }

  #flow #step02 .text dl {
    margin-bottom: 25px;
    padding-bottom: 25px;
  }

  #flow #step02 .attention {
    margin-top: 40px;
    text-align: left;
    font-size: 15px;
  }

  #flow #step02 .attention .note {
    font-size: 13px;
  }
}
