.btn-grp {
  margin-top: 20px;
  justify-content: center;
}

.btn-grp .btn {
  margin: auto;
  width: 100%;
}

.btn-grp img {
  margin: 0 auto;
  padding-bottom: 10%;
}

@media (min-width: 480px) {
  .btn-grp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .btn-grp .btn {
    padding-bottom: 0;
  }
  .btn-grp img {
    padding-bottom: 0;
  }
}
#caution,
.caution {
  color: red;
  text-align: center;
}

.caution {
  width: 100%;
}

#caution {
  margin: 10px 0;
}

select {
  font-family: "M PLUS 1p", sans-serif;
  font-weight: bold;
}

/*----------------------------
  flow
------------------------------*/
.flow__main-title {
  text-align: center;
  padding-top: 10%;
  padding-bottom: 6%; 
}

.flow__main-title img {
  width: 100%;
  max-width: 700px;
}

.flow__title {
  position: relative;
  max-width: 400px;
  min-width: 200px;
  width: 80%;
  margin: 0 auto;
  z-index: 10;
  background-color: #323232;
  padding: 16px;
  border: 4px solid #ffea27;
  border-radius: 5px;
}
@media (max-width: 767px) {
  .flow__title{
    padding: 8px;
  }
}
.flow__title img {
  height: auto;
}

.flow__border {
  display: grid;
  justify-content: space-between;
  grid-template-columns: auto auto;
  width: 60%;
  margin: auto;
}
.flow__border span {
  display: block;
  width: 5px;
  height: 10px;
  background-color: #e9e9e9;
  border-right: solid 1.8px #000;
  border-left: solid 1.8px #000;
}
@media (min-width: 680px) {
  .flow__border span {
    border-width: 2px;
  }
}
.flow__border span:nth-child(1) {
  margin-left: 20px;
}
.flow__border span:nth-child(2) {
  margin-left: 20px;
}

.flow__item {
  color: #fff;
  background-color: #323232;
  border: solid 4px #fff;
  border-radius: 5px;
  padding: 15px;
  font-weight: bold;
  margin-top: -4px;
  padding-top: 5%;
}
@media (max-width: 767px) {
  .flow__item {
    padding-bottom: 2%;
  }
}
.flow__item .notice {
  font-size: 0.8em;
}

@media (min-width: 680px) {
  .flow__item-grid {
    display: grid;
    grid-template-columns: 56% 1fr;
    gap: 16px;
  }
}

.flow__schedule {
  margin-bottom: 20px;
  text-align: center;
}
/* @media (min-width: 480px) {
  .flow__schedule img {
    height: 120px;
  }
} */

.flow__arrow {
  max-width: 100px;
  margin: 20px auto 20px;
}

.flow__douji {
  text-align: center;
  padding-top: 10%;
  padding-bottom: 4%;
}

.flow__oshirase {
  margin: 0 auto;
  margin-top: 2%;
  max-width: 800px;
  padding: 0 20px 4%;
}
@media (max-width: 767px) {
    .flow__oshirase {
          padding: 0 0 10%;
    }
}


/* Form Btn
================================================== */
#caution,
.form-safe .caution,
#edit-btn,
#submit-btn,
.form-safe #check-btn,
.form-safe #hozon-btn,
#thanks-contents,
.thanks form {
  display: none;
}

.thanks #thanks-contents {
  display: block;
}

.form-unsafe #caution,
.caution,
.form-safe #edit-btn,
.form-safe #submit-btn {
  display: block;
}

.form-grp form.form-safe > div input {
  display: none;
}

.form-safe .value {
  width: 70%;
  height: auto;
  padding: 0 1rem;
  font-size: 20px;
  font-weight: bold;
  text-align: left;
}
@media (min-width: 480px) {
  .form-safe .value {
    font-size: 24px;
  }
}

#edit-btn,
#submit-btn,
#hozon-btn,
#check-btn {
  cursor: pointer !important;
}

/*----------------------------
 kiyaku
------------------------------*/
.kiyaku {
  margin-top: 20px;
}

/*----------------------------
 step1
------------------------------*/
.step1 form {
  margin-top: 20px;
}
.step1 form .form-contents {
  margin: 0 auto;
  margin-bottom: 10px;
}
.step1 form .form-contents .flex {
  width: 100%;
  display: flex;
  border: #000 1.5px solid;
  border-radius: 5px;
}
.step1 form .form-contents .num {
  text-align: right;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  display: grid;
  border-right: none;
  width: 10%;
  box-sizing: border-box;
  text-align: center;
  place-content: center;
  border-radius: 4px 0 0 4px;
  border-right: solid 1.8px #000;
}
@media (min-width: 480px) {
  .step1 form .form-contents .num {
    font-size: 16px;
  }
}
.step1 form .form-contents .num.--color1 {
  background-color: #efefef;
  color: #000;
}
.step1 form .form-contents .num.--color2 {
  background-color: #000;
}
.step1 form .form-contents .num.--color3 {
  background-color: #ff6555;
}
.step1 form .form-contents .num.--color4 {
  background-color: #78b3f9;
}
.step1 form .form-contents .num.--color5 {
  background-color: #f4e156;
  color: #000;
}
.step1 form .form-contents .num.--color6 {
  background-color: #8ced91;
}
.step1 form .form-contents .num.--color7 {
  background-color: #f49638;
}
.step1 form .form-contents .num.--color8 {
  background-color: #ef8eb8;
}
.step1 form .form-contents input {
  padding: 5px 8px;
  font-weight: bold;
  width: 90%;
  box-sizing: border-box;
  border-left: #000 1.5px solid;
  border: none;
  height: 40px;
  border-radius: 0 5px 5px 0;
  font-size: 20px;
}
@media (min-width: 480px) {
  .step1 form .form-contents input {
    padding: 7px 10px;
    font-size: 24px;
    height: 50px;
  }
}

/*----------------------------
 step2
------------------------------*/
.step2 .final__item {
  text-align: center;
}
.main .form-grp form.form-safe .h-flex {
  display: none;
}

.step2 .final__item input[type=radio] {
  display: none;
}
.step2 .final__item input[type=radio] + label {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  font-size: 24px;
  margin: auto;
  margin-top: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.step2 .final__item input[type=radio] + label:before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid #000;
  border-radius: 15%;
  position: absolute;
  top: 50%;
  left: 4%;
  transform: translate(-50%, -50%);
}
@media (min-width: 480px) {
  .step2 .final__item input[type=radio] + label:before {
    width: 24px;
    height: 24px;
  }
}
.step2 .final__item input[type=radio]:checked + label:before {
  width: 6px;
  top: 40%;
  left: 5%;
  border-radius: 0;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: translate(-50%, -50%) rotate(45deg);
  position: absolute;
  color: #ff3b52;
}
.step2 #step2-confirm {
  display: none;
}

/*----------------------------
 Ssize
------------------------------*/
.Ssize form {
  text-align: center;
  margin-top: 30px;
}
.Ssize .selectbox {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}
.Ssize .selectbox::before, .Ssize .selectbox::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.Ssize .selectbox::before {
  display: block;
  right: 0;
  width: 2.8em;
  height: calc(2.8em - 4px);
  border-radius: 0 5px 5px 0;
  background-color: #8ced91;
  border: solid 2px #000;
  z-index: 1;
}
.Ssize .selectbox::after {
  position: absolute;
  top: 50%;
  right: 1.4em;
  transform: translate(50%, -50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-bottom: 3px solid #fff;
  border-right: 3px solid #fff;
  z-index: 2;
}
.Ssize .selectbox select {
  /* -webkit-appearance: none;
     -moz-appearance: none; */
          appearance: none;
  width: 100%;
  max-width: 400px;
  height: 2.8em;
  padding: 0.4em 3.6em 0.4em 0.8em;
  border: none;
  border-radius: 5px;
  background-color: #f2f2f2;
  color: #000;
  border: solid 2px #000;
  font-size: 1em;
  cursor: pointer;
}
.Ssize .selectbox select:focus {
  outline: 2px solid #2589d0;
}
.Ssize .confirm_message {
  display: none;
}
.Ssize .confirm .selectbox select {
  pointer-events: none;
}
.Ssize .confirm .selectbox::before, .Ssize .confirm .selectbox::after {
  display: none;
}
.Ssize .confirm .confirm_message {
  display: block;
}