@media screen and (min-width: 769px) {
  .flow {
    margin-top: 62px;
    background-color: #fff;
  }
  .flow__inner {
    max-width: 1000px !important;
    margin-inline: auto !important;
    width: calc(100% - 30px) !important;
    padding: 79px 0 40px;
  }
  .flow__area {
    margin-top: 60px;
  }
  .flow__block-wrap:nth-of-type(2) .flow__block {
    padding-left: 264px;
    margin-top: 49px;
  }
  .flow__block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  .flow__block:first-of-type .flow__item:first-of-type {
    -webkit-transform: translateY(193px);
            transform: translateY(193px);
  }
  .flow__item {
    width: 204px;
    position: relative;
    -webkit-box-shadow: 0 0 10px #ccc;
            box-shadow: 0 0 10px #ccc;
    padding: 65px 10px 10px;
  }
  .flow__item.-w50 {
    width: 470px;
  }
  .flow__item.-block02-step03 {
    padding: 65px 0 10px;
  }
  .flow__item.-block02-step03 .flow__item-img {
    margin-inline: auto;
  }
  .flow__item.-block02-step03 .flow__item-text {
    display: inline-block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-top: 19px;
  }
  .flow__item:last-of-type:before {
    display: none;
  }
  .flow__item:before {
    position: absolute;
    content: "";
    width: 24px;
    height: 24px;
    top: 47%;
    right: -37px;
    -webkit-transform: translateY(-50%) rotate(-45deg);
            transform: translateY(-50%) rotate(-45deg);
    border-right: 6px solid #224a6d;
    border-bottom: 6px solid #224a6d;
  }
  .flow__item-step {
    position: absolute;
    top: -18px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    background-color: #ffe100;
    width: 68px;
    height: 68px;
    border-radius: 100vmax;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-align: center;
    color: #001f63;
    font-weight: bold;
    line-height: 1.1;
    font-size: 18px;
  }
  .flow__item-step span {
    position: relative;
    top: 4px;
  }
  .flow__item-title {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
  }
  .flow__item-title--long {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 85px;
  }
  .flow__item-img {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: block;
    margin-inline: auto;
    margin-top: 17px;
  }
  .flow__item-img.-block02-step03 {
    display: inline-block;
  }
  .flow__item-text {
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
    font-size: 16px;
  }
  .flow__item-text .normal-text {
    display: block;
  }
  .flow__item-text .red-text {
    font-size: 16px;
    font-weight: bold;
    color: #b30021;
    display: block;
  }
  .flow__item-text .small-text {
    display: block;
    font-size: 13px;
  }
}
@media screen and (max-width: 768px) {
  .flow {
    background-color: #fff;
  }
  .flow__inner {
    padding: 43px 0 40px;
    width: calc(100% - 50px);
  }
  .flow__title {
    width: 140px;
    margin: 0 auto !important;
  }
  .flow__area {
    margin-top: 36px;
  }
  .flow__area > * + * {
    margin-top: 40px;
  }
  .flow__block-toggle-btn {
    background-color: #001f63;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    padding: 16px 15px;
    position: relative;
  }
  .flow__block-toggle-btn .toggle-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 100vmax;
  }
  .flow__block-toggle-btn .toggle-icon:before {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    left: 50%;
    -webkit-transform: translate(-50%, -50%) rotate(135deg);
            transform: translate(-50%, -50%) rotate(135deg);
    top: 40%;
    border-top: 3px solid #001f63;
    border-right: 3px solid #001f63;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  .flow__block-toggle-btn.open .toggle-icon:before {
    top: 59%;
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
            transform: translate(-50%, -50%) rotate(-45deg);
  }
  .flow__block {
    display: none;
    margin-top: 45px;
  }
  .flow__block:first-of-type .flow__item:first-of-type {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  .flow__block:nth-of-type(2) {
    padding-left: 264px;
    margin-top: 49px;
  }
  .flow__block > * + * {
    margin-top: 73px;
  }
  .flow__item {
    position: relative;
    -webkit-box-shadow: 0 0 10px #ccc;
            box-shadow: 0 0 10px #ccc;
    padding: 54px 27px 32px;
  }
  .flow__item.-w50 {
    padding: 62px 7px 32px;
  }
  .flow__item.-w50 .flow__item-title {
    width: 100%;
  }
  .flow__item.-w50 .flow__item-img {
    width: 277px;
    margin-top: 3px;
    padding-right: 0;
    margin-inline: auto;
  }
  .flow__item.-block01-step04 .flow__item-img {
    position: relative;
    left: -5px;
    width: 43%;
  }
  .flow__item.-block01-step04 .flow__item-title {
    width: 55%;
  }
  .flow__item.-block01-step04 .flow__item-text {
    width: 55%;
    margin-top: -46px;
  }
  .flow__item.-block02-step03 {
    padding: 65px 0 10px;
  }
  .flow__item.-block02-step03 .flow__item-img {
    margin-inline: auto;
    width: 90%;
    position: relative;
    left: 10px;
    margin-top: -34px;
  }
  .flow__item.-block02-step03 .flow__item-title {
    margin-top: -8px;
    width: 60%;
  }
  .flow__item.-block02-step03 .flow__item-text {
    display: inline-block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-top: 19px;
  }
  .flow__item:last-of-type:before {
    display: none;
  }
  .flow__item:before {
    position: absolute;
    content: "";
    width: 24px;
    height: 24px;
    bottom: -40px;
    left: 50%;
    -webkit-transform: translateX(-50%) rotate(45deg);
            transform: translateX(-50%) rotate(45deg);
    border-right: 6px solid #224a6d;
    border-bottom: 6px solid #224a6d;
  }
  .flow__item-step {
    position: absolute;
    top: -18px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    background-color: #ffe100;
    width: 68px;
    height: 68px;
    border-radius: 100vmax;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-align: center;
    color: #001f63;
    font-weight: bold;
    line-height: 1.1;
    font-size: 18px;
  }
  .flow__item-step span {
    position: relative;
    top: 4px;
  }
  .flow__item-title {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    width: 50%;
    margin-left: auto;
  }
  .flow__item-img {
    width: 50%;
    display: block;
    margin-top: -23px;
    padding-right: 12px;
  }
  .flow__item-img.-block02-step03 {
    display: inline-block;
  }
  .flow__item-text {
    text-align: center;
    margin-top: -56px;
    line-height: 1.5;
    font-size: 16px;
    width: 50%;
    margin-left: auto;
  }
  .flow__item-text .normal-text {
    display: block;
  }
  .flow__item-text .red-text {
    font-size: 16px;
    font-weight: bold;
    color: #b30021;
    display: block;
  }
  .flow__item-text .small-text {
    display: block;
    font-size: 13px;
  }
}
@media screen and (max-width: 1040px) and (min-width: 769px) {
  .flow__block-wrap:nth-of-type(2) .flow__block {
    padding-left: 26.4%;
  }
  .flow__item {
    width: 21%;
    position: relative;
    -webkit-box-shadow: 0 0 10px #999;
    box-shadow: 0 0 10px #999;
    padding: 65px 10px 10px;
  }
  .flow__item:before {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 47%;
    right: -23px;
    -webkit-transform: translateY(-50%) rotate(-45deg);
            transform: translateY(-50%) rotate(-45deg);
    border-right: 3px solid #224a6d;
    border-bottom: 3px solid #224a6d;
  }
  .flow__item.-w50 {
    width: 64%;
  }
  .flow__item.-block02-step03 {
    width: 28.3%;
    padding: 65px 10px 10px;
  }
}