:root {
  font-size: 10px;
  --white: #fff;
}

#contact,
#contact * {
  box-sizing: border-box;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  color: #333;
  line-height: 1.4;
}

div.wpcf7 {
  margin: 0 auto;
}

@media screen and (min-width: 960px) {
  div.wpcf7 {
    width: 750px;
    padding-bottom: 6vw;
  }
}

@media screen and (max-width: 639px) {
  div.wpcf7 {
    width: 100%;
    padding: 0 2% 6vw;
  }

  #contact {
    padding-top: 2rem;
  }
}

/* reset scoped */
#contact input,
#contact select,
#contact button,
#contact textarea {
  margin: 0;
  border-radius: 0;
  font-size: 100%;
  appearance: none;
  -webkit-appearance: none;
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus,
#contact button:focus {
  outline: 0;
}

#contact button,
#contact input[type="submit"],
#contact input[type="button"],
#contact input[type="reset"] {
  width: auto;
  overflow: visible;
  border: 0;
  cursor: pointer;
  transition: .4s;
}

#contact textarea {
  vertical-align: top;
  overflow: auto;
}

/* form layout */
#contact .formWrapp {
  background-color: #fff;
}

@media screen and (min-width: 960px) {
  #contact .formWrapp {
    padding: 5%;
  }
}

@media screen and (max-width: 639px) {
  #contact .formWrapp {
    padding: 1%;
  }
}

#contact label,
#contact .label-multiple,
#contact .select--box,
#contact .text--box,
#contact .checkbox--box,
#contact .data__table {
  display: block;
}

@media screen and (min-width: 960px) {
  #contact label,
  #contact .label-multiple,
  #contact .select--box,
  #contact .text--box,
  #contact .checkbox--box,
  #contact .data__table {
    margin-bottom: 1.75em;
  }
}

#contact label div,
#contact label th,
#contact .label-multiple div,
#contact .label-multiple th,
#contact .select--box div,
#contact .select--box th,
#contact .text--box div,
#contact .text--box th,
#contact .checkbox--box div,
#contact .checkbox--box th,
#contact .data__table div,
#contact .data__table th {
  margin: 1rem 0 .5rem;
  color: #af780a;
  font-size: 1.6rem;
  font-weight: 600;
}

#contact .point {
  display: block;
  padding-bottom: 0 !important;
  font-size: 1.4rem;
}

#contact .required,
#contact .option {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: solid 1px;
  border-radius: 2px;
  font-size: 1.4rem;
  line-height: 1.5;
  vertical-align: middle;
}

#contact .required {
  color: #b70202;
  border-color: #b70202;
  background-color: #ffa89d;
}

#contact .option {
  color: #0e81b2;
  border-color: #199dd6;
  background-color: #d1ebf7;
}

/* input */
#contact input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),
#contact textarea.blue_formbox {
  width: 100%;
  padding: .625em .4375em;
  border-radius: 2px;
}

#contact select.blue_formbox {
  width: auto;
  padding: .625em .7875em;
  border-radius: 2px;
  color: #5d5d5d;
  font-weight: 300;
  max-width: 250px;
}

#contact input,
#contact button,
#contact select.blue_formbox,
#contact textarea.blue_formbox {
  font-size: 1.6rem;
}

#contact .wpcf7-form-control,
#contact select.blue_formbox,
#contact textarea.blue_formbox {
  margin: 10px 0;
  border: solid 1px #dca534;
  background-color: #fff;
}

#contact .wpcf7-form-control:focus {
  border-color: #1874a5;
  background-color: #fff;
}

#contact .wpcf7-form-control::placeholder {
  color: #9e9d96;
}

#contact .wpcf7-form-control[aria-invalid="true"],
#contact select.wpcf7-form-control[aria-invalid="true"] {
  color: #b70202;
  border-color: #b70202;
  background-color: #ffd3ce !important;
}

#contact .wpcf7-not-valid-tip {
  font-size: 1.4rem;
}

/* multiple fields */
#contact .label-multiple .label-title,
#contact .label-multiple .label-item {
  display: flex;
  justify-content: space-between;
  align-content: start;
  text-align: left;
}

#contact .label-multiple .label-title .wpcf7-form-control-wrap,
#contact .label-multiple .label-item .wpcf7-form-control-wrap {
  display: inline-block;
  width: 50%;
}

#contact .label-multiple .label-item .wpcf7-form-control-wrap + .wpcf7-form-control-wrap {
  margin-left: 3rem;
}

#contact .label-multiple .label-title input,
#contact .label-multiple .label-item input {
  width: 100%;
  font-weight: 300;
}

#contact .label-multiple .label-title div,
#contact .label-multiple .label-item div {
  margin-bottom: 0;
}

#contact .label-multiple .label-title div {
  width: 100%;
}

#contact .label-multiple .label-item_type2 > span {
  display: inline-block;
}

@media screen and (max-width: 319px) {
  #contact .label-multiple .label-title .wpcf7-form-control-wrap + .wpcf7-form-control-wrap,
  #contact .label-multiple .label-item .wpcf7-form-control-wrap + .wpcf7-form-control-wrap {
    margin-left: 1rem;
  }
}

/* flow */
#contact ul.formFlow {
  display: flex;
  gap: 20px;
  overflow: hidden;
  margin: 0;
  padding: 40px 0 20px;
}

#contact ul.formFlow li {
  flex: 1;
  border: 2px solid #dca534;
  background: #fff;
  list-style: none;
  font-size: 1.6rem;
  line-height: 50px;
  text-align: center;
}

#contact ul.formFlow li.on {
  position: relative;
  z-index: 0;
  color: #fff;
  border-color: #dca534;
  background: #dca534;
}

#contact ul.formFlow li.on::after {
  position: absolute;
  bottom: -10px;
  left: 50%;
  display: block;
  width: 0;
  height: 0;
  margin-left: -10px;
  content: "";
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #dca534 transparent transparent;
}

@media screen and (max-width: 340px) {
  #contact ul.formFlow {
    gap: 8px;
  }

  #contact ul.formFlow li {
    font-size: 1.4rem;
  }
}

/* buttons */
#contact .btn--area {
  margin: 0 auto;
  text-align: center;
}

#contact .form-button-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

#contact .single_conf,
#contact .multiple_conf {
  display: inline-block;
  height: 6rem;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background-color: #c5942f;
  box-shadow: 0 5px 0 #986c12;
  font-size: 2.6rem;
  font-weight: 300;
  text-align: center;
}

#contact .single_conf {
  width: 280px;
}

#contact .multiple_conf {
  width: calc(100% / 3 - 5px);
  margin: 0 1em;
}

#contact .js-back-button {
  background-color: #2f5cc5;
  box-shadow: 0 5px 0 #122f98;
}

#contact input[type="submit"][disabled],
#contact input[type="button"][disabled],
#contact button[disabled] {
  pointer-events: none;
  opacity: 1;
  background-color: #c2c2c2;
  box-shadow: none;
}

#contact .btn--area__text {
  margin-top: 1rem;
  font-size: 1.4rem;
}

/* confirm */
#contact .form-step-confirm,
#contact .js-confirm-step {
  display: none;
}

#contact .confirm-area {
  background-color: var(--white);
  margin-top: 2rem;
  padding: 0 7%;
}

#contact .confirm-list {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

#contact .confirm-list dt {
  width: 30%;
  color: #af780a;
  font-size: 1.6rem;
  font-weight: 600;
}

#contact .confirm-list dd {
  width: 70%;
  margin: 0;
  font-size: 1.6rem;
}

@media screen and (max-width: 639px) {
  #contact .confirm-list {
    display: block;
  }

  #contact .confirm-list dt,
  #contact .confirm-list dd {
    width: 100%;
  }

  #contact .confirm-list dd {
    margin-top: .5rem;
  }

  #contact .form-button-wrap {
    /* flex-direction: column; */
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  #contact .single_conf,
  #contact .multiple_conf {
    width: 100%;
    max-width: 190px;
    margin: 0;
    font-size: 2rem;
  }
}

/* messages */
#contact .formWrapp .info,
#contact .js-confirm-step .info {
  margin: 0 0 3rem;
  color: red;
  font-size: 1.6rem;
  text-align: center;
}

#contact .wpcf7-response-output {
  margin: 2rem auto 0;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
}

/* theme overwrite */
.site {
  margin: 0;
}

#masthead {
  padding: 4rem 0;
}

body:not(.custom-background-image)::before,
body:not(.custom-background-image)::after {
  display: none;
}
