select,
input[type="text"],
input[type="email"],
input[type="tel"] {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: #726256;
  width: 100%;
  position: relative;
  z-index: 10;
}

select {
  opacity: 0;
}

select:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

input::placeholder {
  opacity: 0.5;
}

input[type="checkbox"],
input[type="checkbox"]:checked {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  outline: none;
  border: none; /* safari のリセットに必要 */
  padding-left: 30px;
  height: 0; /* ios でチェックがずれるバグの対応 */
}

input[type="checkbox"]::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid #d52a63;
  border-radius: 5px;
}

input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 24px;
  height: 10px;
  border-bottom: 3px solid #d52a63;
  border-left: 3px solid #d52a63;
  position: absolute;
  top: -12px;
  left: 2px;
  transform: rotate(-45deg);
}

.bl_form {
  max-width: 600px;
  color: #726256;
}

.bl_flexbox {
  width: 100%;
  display: flex;
  line-height: 1;
  margin-bottom: 15px;
  padding: 12px 0 10px;
  position: relative;
  border: solid 2px #ccc;
  border-radius: 4px;
}

.hasvalue > .bl_flexbox {
  border: none;
}

.bl_flexbox::after {
  content: "";
  display: block;
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border: 2px solid #d52a63;
  z-index: 0;
  opacity: 0;
  border-radius: 4px;
}


.bl_flexbox.bl_flexbox__mb15 {
  margin-bottom: 15px;
}

.bl_flexbox_num {
  padding-left: 10px;
  font-size: 32px;
  vertical-align: middle;
}

/* 入力完了したら数字部分の色を赤く変更 */
.hasvalue .bl_flexbox_num {
  color: #d52a63;
}

.bl_flexbox_cont {
  padding-right: 30px;
  padding-left: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.bl_flexbox_cont::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background-size: cover;
  width: 24px;
  height: 14px;
  z-index: 10;
}

.bl_flexbox_cont.bl_flexbox_cont__select::after {
  background-image: url(../images/under-arrow.png);
}

.hasvalue .bl_flexbox_cont::after {
  background-image: url(../images/icon_check.png);
  width: 20px;
  height: 15px;
}

.txtvalue {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/*.txtvalue,*/
.bl_flexbox_num {
  opacity: 0.5;
}


.hasvalue .txtvalue,
.hasvalue .txtvalue3,
.hasvalue .bl_flexbox_num,
.hasvalue .bl_flexbox::after {
  opacity: 1;
}

.bl_checkbox_wrapper {
  display: flex;
  flex-wrap: wrap;
  padding-left: 10px;
}

.inputText {
  margin-right: 20px;
}

/* 「その他」の詳細 */
input[type="text"].otherInput {
  width: 80%;
  border-bottom: 2px solid #d52a63;
  padding-left: 10px;
  margin-bottom: 30px;
}

.listitem-balloon2 {
  background: #fff;
  border: 2px solid #ffbc28;
  border-radius: 7px;
  padding: 10px;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
  position: relative;
}

.listitem-balloon2::after {
  position: absolute;
  bottom: -10px;
  left: 50%;
  display: block;
  margin-left: -10px;
  width: 0;
  height: 0;
  border-width: 10px 7px 0;
  border-style: solid;
  border-color: #ffbc28 transparent transparent;
  content: "";
}

.listitem-balloon2.listitem-balloon2__right {
  position: absolute;
  left: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%);
  white-space: normal;
  width: 15vw;
}

.listitem-balloon2.listitem-balloon2__right::after {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 10px 7px 0;
  border-color: transparent #ffbc28 transparent transparent;
}

.bl_form_btn {
  border-radius: 4px;
  box-shadow: 0 2px 2px #ccc;
  background-color: #ccc;
  border: none;
  padding: 20px 70px 20px 20px;
  margin-top: 30px;
  margin-bottom: 30px;
  outline: none;
  cursor: pointer;
}

.bl_form_btn.js_active {
  background-color: #d72b63;
  position: relative;
  overflow: hidden;
}
.bl_form_btn.js_active::after {
  content: "";
  display: block;
  width: 30px;
  height: 100%;
  position: absolute;
  top: -180px;
  left: 0;
  background-color: #FFF;
  opacity: 0;
  transform: rotate(45deg);
  animation: reflect 3s ease-in-out infinite;
  -webkit-transform: rotate(45deg);
  -webkit-animation: reflect 2s ease-in-out infinite;
}
@keyframes reflect {
  0% { transform: scale(0) rotate(45deg); opacity: 0; }
  80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
  81% { transform: scale(4) rotate(45deg); opacity: 1; }
  100% { transform: scale(50) rotate(45deg); opacity: 0; }
}
@-webkit-keyframes reflect {
  0% { transform: scale(0) rotate(45deg); opacity: 0; }
  80% { transform: scale(0) rotate(45deg); opacity: 0.5; }
  81% { transform: scale(4) rotate(45deg); opacity: 1; }
  100% { transform: scale(50) rotate(45deg); opacity: 0; }
}

button:hover {
  opacity: 0.7;
}

.step2,
.step3,
.step4,
.step5,
.step6,
.step7,
.step8,
.step9 {
  display: none;
}

.blink .bl_flexbox::after {
  animation: blink 3.5s infinite;
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ---------------------------------------
  max-width: 640px
--------------------------------------- */

@media screen and (max-width: 640px) {
  .bl_flexbox_num {
    padding-left: 5px;
    font-size: 6vw;
  }

  .bl_flexbox_cont {
    padding-right: 20px;
    padding-left: 3px;
  font-size: 4.9vw;
  letter-spacing: -1px
  }

  .bl_flexbox_cont::after {
    width: 4.5vw;
    height: 2.7vw;
    right: 7px;
  }

  .hasvalue .bl_flexbox_cont::after {
    height: 15px;
  }
  .listitem-balloon2 {
    font-size: 16px;
  }

  .bl_checkbox_wrapper {
    flex-flow: row wrap;
  }

  .inputText {
    font-size: 16px;
    margin-right: 0;
    margin-bottom: 0;
    width: 50%;
  }

  /* 「その他」の詳細 */
  input[type="text"].otherInput {
    width: 100%;
    margin-bottom: 40px;
    font-size: 16px;
  }

  .bl_form_btn {
    padding: 25px 15px 25px 10px;
    margin-top: 15px;
    margin-bottom: 15px;
  }
}
