.btn-grp {
  margin-top: 20px;
  justify-content: center;
}
.btn-grp .btn {
  margin: auto;
  width: 100%;
  max-width: 300px;
  /* Safari用の追加設定 */
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.btn-grp img {
  margin: 0 auto;
  padding-bottom: 10%;
  margin-bottom: 10%; /* Safari用の代替 */
}
@media (min-width: 480px) {
  .btn-grp {
    display: -webkit-grid; /* Safari用 */
    display: grid;
    -webkit-grid-template-columns: repeat(2, minmax(0, 1fr)); /* Safari用 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .btn-grp .btn {
    padding-bottom: 0;
  }
  .btn-grp img {
    padding-bottom: 0;
    margin-bottom: 0; /* Safari用 */
    max-width: 300px;
  }
}

#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 {
    padding-top: 10%;
    text-align: center;
    padding-bottom: 5%;
}
.flow__main-title img {
  width: 100%;
  max-width: 700px;
}
  .flow__title {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  z-index: 10;
}
.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 {
  background-color: #e8e092;
  border: solid 1.8px #000;
  border-radius: 10px;
  padding: 15px;
  font-weight: bold;
  margin-top: -5%;
  padding-top: 10%;
}
.flow__item .notice {
  font-size: 0.8em;
}

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

.flow__schedule {
  margin-bottom: 20px;
  text-align: center;
}
.flow__schedule img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

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

.flow__douji {
  text-align: center;
  margin-bottom: 5%;
}
.flow__douji img {
  width: 100%;
  max-width: 700px;
  height: auto;
}
.flow__oshirase {
  margin: 0 auto;
  margin-top: 30px;
  max-width: 700px;
}
/* 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
------------------------------*/
#form .mainvisual {
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  position: relative;
  margin-bottom: 8%;
}
#form .mainvisual_logo {
  width: 18%;
  position: absolute;
  right: 7%;
  top: 3%;
}
@media (max-width: 767px){
  #form .mainvisual_logo{
    width: 23%;
    position: absolute;
    left: auto;
    right: 2%;
    top: 2%;
  }
}
.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: #ce5242;
}
.step1 form .form-contents .num.--color4 {
  background-color: #3e62ad;
}
.step1 form .form-contents .num.--color5 {
  background-color: #fcc800;
  color: #000;
}
.step1 form .form-contents .num.--color6 {
  background-color: #69b076;
}
.step1 form .form-contents .num.--color7 {
  background-color: #f39800;
}
.step1 form .form-contents .num.--color8 {
  background-color: #e597b2;
}
.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;
  -webkit-transform: rotate(45deg);
  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 {
  z-index: 1;
  position: absolute; /* これも忘れずに */
  content: "";
  display: block;
  right: 0;
  width: 2.8em;
  height: calc(2.8em - 4px);
  border-radius: 0 5px 5px 0;
  background-color: #9dd0d6;
  border: solid 2px #000;
}
.Ssize .selectbox::after {
  z-index: 2;
  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;
}
.Ssize .selectbox select {
  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;
}