@charset "utf-8";

input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}

input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}

input[type="submit"]::focus,
input[type="button"]::focus {
  outline-offset: -2px;
}

/*h1 {
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 26px;
  padding: 50px 0;
}*/
.flex {}

.contactForm {
  max-width: 600px;
  margin: 0 auto;
}

.formMenu {
  margin-bottom: 10px;
}

.contactForm.checktrue .formMenu {}

.formTitle {}

.formMenu:nth-child(4) .formTitle {}

.hiddenrow {
  display: none;
}

input,
textarea,
select {
  border: solid 1px #1d2061;
  /*border-radius: 3px;*/
  /*padding: 0 20px;*/
  width: 100%;
  font-size: 1.2rem;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.3s ease;
}

input,
select {}

textarea {}

.formContent {
  width: 100%;
}

.formContent .chugo {
  display: none;
}

.formContent .innertxt {}

.formContent .innerblock:not(:first-child) {
  margin-top: 10px;
}

/*.formContent > input,*/
.formContent>textarea {
  padding: 13px 20px;
  width: 100%;
}

select#prefecture {
  width: 25%;
  font-size: 14px;
  border: solid 1px;
}

span.must {
  color: #fff;
  background: orange;
  padding: 0px 5px;
  font-size: .9rem;
  margin-left: 10px;
}

.inner {
  padding: 70px 50px;
}

.formMenu>label {
  /* margin: 0 auto; */
  text-align: left;
  width: 220px;
}

.checkbox-input {
  display: none;
}

.checkbox-parts {
  padding-left: 20px;
  position: relative;
  margin-right: 20px;
}

.checkbox-parts::before {
  content: "";
  display: block;
  position: absolute;
  top: 5px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 14px;
}

.checkbox-input:checked+.checkbox-parts {
  color: #d01137;
}

.checkbox-input:checked+.checkbox-parts::after {
  content: "";
  display: block;
  position: absolute;
  top: 0px;
  left: 5px;
  width: 7px;
  height: 14px;
  transform: rotate(40deg);
  border-bottom: 3px solid #d01137;
  border-right: 3px solid #d01137;
}

input[type="submit"] {
  height: 70px;
  margin: 0 auto;
  display: block;
  background-color: orange;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
  padding: 10px 0;
  border-radius: 4px;
  width: 60%;
  border: solid 1px #0e63af;
}

input[type="submit"].errbtn {
  background-color: #DDDDDD;
  border: solid 1px #BBBBBB;
  color: #282828;
}

.formbtns {
  display: flex;
  justify-content: center;
}

.formbtns>a {
  background-color: #fff;
  color: #0e63af;
  font-weight: bold;
  align-items: center;
  font-size: 1.2rem;
  padding: 10px 0;
  border: solid 1px #0e63af;
  border-radius: 3px;
  line-height: 50px;
}

.formbtns>input[type="submit"],
.formbtns>a {
  width: 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 10px;
}

.formbtns>input[type="submit"] {
  width: calc(65% - 40px);
}

form dl {
  display: flex;
  font-size: 14px;
  text-align: left;
  margin: 20px auto;
  max-width: 700px;
}

form dt {
  width: 50%;
  font-weight: bold;
}

form dd {
  width: 50%;
  position: relative;
}

.formCompText.succeed>img,
.formCompText.failed>img {
  width: 20%;
  min-width: 180px;
  margin: 0 auto;
  display: block;
}

.formCompText.failed>img {
  transform: rotate(-90deg);
}

@media all and (-ms-high-contrast: none) {

  *::-ms-backdrop,
  .formCompText.failed>img {
    transform: rotate(0deg);
  }
}

span.errmsg {
  /*position: absolute;*/
  width: 100%;
  left: 5px;
  font-size: 14px;
  bottom: -15px;
  color: orange;
  font-weight: bold;
}

h4 {
  margin-bottom: 40px;
  text-align: center;
}

.formCompText.succeed>img+h4,
.formCompText.failed>img+h4 {
  font-weight: bold;
}

.formCompTextWrap {
  text-align: center;
  color: #282828;
}

.inner>.formCompTextWrap.done p {
  margin: 20px 0;
  line-height: 200%;
  font-size: 13px;
}

.inner>.formCompTextWrap.done .engGothic {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 0;
}

.inner>.formCompTextWrap.done .fontSmall {
  font-size: 13px;
}

input.errform,
select.errform,
textarea.errform {
  border: solid 2px orange;
  background-color: #feebc7;
}


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

  /* 料金表ダウンロードフォーム */
  #infoForm h2 p.maintitle {
    font-size: 22px;
  }

  #infoForm h2 p.subtitle {
    font-size: 16px;
  }

  #infoForm h2 p.subtitle:before {
    margin-right: 5px;
  }

  #infoForm h2 p.subtitle:after {
    margin-left: 5px;
  }

  .formMenu,
  .checkfalse dl,
  .checktrue dl {
    flex-direction: column;
  }

  .formMenu.flex>.formTitle,
  .checkfalse dl>dt,
  .checktrue dl>dt {
    width: 100%;
    margin-bottom: 5px;
  }

  .formMenu.flex>.formContent,
  .checkfalse dl>dd,
  .checktrue dl>dt {
    width: 100%;
  }

  .contactForm>input[type="submit"] {
    width: 100%;
  }

  .formbtns {
    flex-direction: column;
  }

  .contactForm.checktrue>.formbtns>input[type="submit"],
  .contactForm.checktrue>.formbtns>a {
    width: 100%;
    /*display: block;*/
    margin: 10px 0;
  }

  .contactForm {
    width: 100% !important;
  }

}

@media screen and (max-width: 385px) {
  .formCompTextWrap p {
    font-size: .9rem;
  }
}