/* step
---------------------------------------------------------------------------- */
.p-step {
  padding: 0 0.9rem;
  margin-bottom: 6rem;
  position: relative;
}
.p-step::before, .p-step::after {
  position: absolute;
  content: "";
  top: 0;
  width: 0.2rem;
  height: 7rem;
  background-color: #D7D8DA;
}
.p-step::before {
  left: 0;
}
.p-step::after {
  right: 0;
}

.p-step-items {
  display: flex;
}

.p-step-item {
  flex: 1;
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  padding: 0.5rem 3rem 2.5rem;
  border-bottom: 0.2rem solid #D7D8DA;
}
.p-step-item:not(:last-child) {
  position: relative;
}
.p-step-item:not(:last-child)::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: 0.2rem;
  height: 7rem;
  background-color: #D7D8DA;
}
.p-step-item.is-active {
  color: #8BA3BA;
  border-bottom: 0.4rem solid #8BA3BA;
}

@media screen and (max-width: 767px) {
  .p-step {
    padding: 0;
    margin-bottom: 10.6666666667vw;
  }
  .p-step::before, .p-step::after {
    width: 0.2666666667vw;
    height: 12vw;
  }
  .p-step-item {
    font-size: 4.2666666667vw;
    padding: 0 4vw 1.3333333333vw;
    border-bottom: 0.2666666667vw solid #D7D8DA;
  }
  .p-step-item:not(:last-child)::before {
    width: 0.2666666667vw;
    height: 12vw;
  }
  .p-step-item.is-active {
    border-bottom: 0.5333333333vw solid #8BA3BA;
  }
}
/* form
---------------------------------------------------------------------------- */
.p-contact .p-form {
  padding: 6rem 0;
  background-color: #EEF2F6;
}
.p-contact .p-form-blocks {
  max-width: 62rem;
  margin: auto;
}
.p-contact .p-form-item:not(:last-child) {
  margin-bottom: 4rem;
}
.p-contact .wpcf7cf_group {
  margin-bottom: 4rem;
}
.p-contact .p-form-item-ttl {
  font-size: 1.8rem;
  line-height: 1.5555555556;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 1rem;
}
.p-contact .p-form-item-ttl small {
  font-size: 1.4rem;
}
.p-contact .p-form-item-ttl span {
  color: #fff;
  font-size: 1.4rem;
  padding: 0.2rem 1rem;
  margin-left: 2rem;
  background-color: #D21708;
}
.p-contact input:not([type=checkbox]):not([type=radio]),
.p-contact textarea {
  border: 1px solid #D7D8DA;
  border-radius: 0.4rem;
  padding: 1rem 2rem;
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 400;
  width: 100%;
}
.p-contact input:not([type=checkbox]):not([type=radio]):disabled,
.p-contact textarea:disabled {
  background-color: #efefef !important;
}
.p-contact input:not([type=checkbox]):not([type=radio]).wpcf7-not-valid,
.p-contact textarea.wpcf7-not-valid {
  border-color: #D21708;
  background-color: #FBECEA;
}
.p-contact input::placeholder, .p-contact input::-ms-input-placeholder, .p-contact input::-webkit-input-placeholder {
  color: #595757;
  font: inherit;
  opacity: 0.6;
}
.p-contact textarea {
  resize: vertical;
  min-height: 16rem;
}
.p-contact input[type=submit],
.p-contact input[type=button] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}
.p-contact input[type=submit]::-webkit-search-decoration,
.p-contact input[type=button]::-webkit-search-decoration {
  display: none;
}
.p-contact label {
  display: inline-block;
  cursor: pointer;
  position: relative;
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  font-weight: 400;
}
.p-contact label input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.p-contact label input[type=checkbox] + .wpcf7-list-item-label {
  position: relative;
  cursor: pointer;
  padding-left: 3.2rem;
}
.p-contact label input[type=checkbox] + .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border: 0.2rem solid #D7D8DA;
  background: #fff;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}
.p-contact label input[type=checkbox] + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.4rem;
  width: 0.6rem;
  height: 1rem;
  border: solid #fff;
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.2s ease;
}
.p-contact label input[type=checkbox]:checked ~ .wpcf7-list-item-label::before {
  background: #8BA3BA;
  border-color: #8BA3BA;
}
.p-contact label input[type=checkbox]:checked ~ .wpcf7-list-item-label::after {
  opacity: 1;
}
.p-contact label input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.p-contact label input[type=checkbox] ~ .wpcf7-list-item-label {
  position: relative;
  cursor: pointer;
  padding-left: 3.2rem;
}
.p-contact label input[type=checkbox] ~ .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border: 0.2rem solid #D7D8DA;
  background: #fff;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}
.p-contact label input[type=checkbox] ~ .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.4rem;
  width: 0.6rem;
  height: 1rem;
  border: solid #fff;
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.2s ease;
}
.p-contact label input[type=checkbox]:checked ~ .wpcf7-list-item-label::before {
  background: #8BA3BA;
  border-color: #8BA3BA;
}
.p-contact label input[type=checkbox]:checked ~ .wpcf7-list-item-label::after {
  opacity: 1;
}
.p-contact label input[type=radio] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.p-contact label input[type=radio] + .wpcf7-list-item-label {
  color: #fff;
  line-height: 1.1875;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 4.4rem;
  padding: 1rem;
  padding-left: 4.8rem;
  border-radius: 0.4rem;
  background-color: #D7D8DA;
  cursor: pointer;
  position: relative;
}
.p-contact label input[type=radio] + .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0.2rem solid #D7D8DA;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.p-contact label input[type=radio] + .wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  background: #8BA3BA;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.2s ease;
}
.p-contact label input[type=radio]:checked + .wpcf7-list-item-label {
  background-color: #8BA3BA;
}
.p-contact label input[type=radio]:checked + .wpcf7-list-item-label::after {
  opacity: 1;
}
.p-contact .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
}
.p-contact .wpcf7-form-control.wpcf7-checkbox {
  gap: 1.5rem 4rem;
}
.p-contact .wpcf7-form-control.wpcf7-radio {
  position: relative;
  gap: 1.4rem 1.6rem;
}
.p-contact .wpcf7-form-control.wpcf7-radio .wpcf7-list-item {
  width: calc(33.3333333333% - 1.0666666667rem);
}
.p-contact .wpcf7-form-control.wpcf7-radio .wpcf7-list-item label {
  width: 100%;
  height: 100%;
}
.p-contact .wpcf7-form-control.wpcf7-radio .wpcf7-list-item small {
  font-size: 1.2rem;
}
.p-contact .wpcf7-list-item {
  margin: 0;
}
.p-contact .wpcf7-free-text {
  position: absolute;
  left: 0;
  bottom: 4rem;
  transform: translateY(100%);
  display: none;
}
.p-contact .wpcf7-list-item.has-free-text:has(input[type=radio]:checked) .wpcf7-free-text,
.p-contact .wpcf7-list-item.has-free-text:has(input[type=checkbox]:checked) .wpcf7-free-text {
  display: block;
}
.p-contact .wpcf7-form-control.wpcf7-radio:has(.has-free-text input[type=radio]:checked),
.p-contact .wpcf7-form-control.wpcf7-checkbox:has(.has-free-text input[type=checkbox]:checked) {
  padding-bottom: 5rem;
}
.p-contact .p-form-item-box-post-code {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
}
.p-contact .p-form-item-box-post-code input {
  width: 18rem;
}
.p-contact .wpcf7-not-valid-tip {
  /* display: none; */
  display: block;
  font-size: 1.4rem;
  line-height: 1.6428571429;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 1rem;
}
.p-contact .formErrorContent {
  color: #D21708;
  font-size: 1.4rem;
  line-height: 1.6428571429;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 1rem;
}
.p-contact .p-form-group .wpcf7-form-control {
  justify-content: center;
}
.p-contact .p-form-group-box {
  text-align: center;
  margin-top: 5rem;
}
.p-contact .p-form-group-box-ttl {
  color: #8BA3BA;
  font-size: 2.4rem;
  line-height: 1.3333333333;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 3rem;
}
.p-contact .p-form-group-box-txt01 {
  margin-bottom: 3rem;
}
.p-contact .p-form-group-box-txt01 a {
  color: #8BA3BA;
  text-decoration: underline;
}
@media (hover: hover) {
  .p-contact .p-form-group-box-txt01 a:hover {
    text-decoration: none;
  }
}
.p-contact .p-form-btn-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 6rem auto 0;
}
.p-contact .p-form-submit-btn {
  grid-column: 2/3;
  padding: 0;
  overflow: hidden;
}
.p-contact .p-form-submit-btn .wpcf7-spinner {
  display: none;
}
.p-contact .p-form-submit-btn input:not([type=checkbox]):not([type=radio]) {
  color: inherit;
  font: inherit;
  text-align: left;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  padding-left: 4rem;
  margin: 0;
  border: none;
  background-color: transparent;
}

#autozip,
.wpcf7-response-output {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

@media screen and (max-width: 767px) {
  .p-contact .p-form {
    padding: 10.6666666667vw 5.3333333333vw;
  }
  .p-contact .p-form-blocks {
    max-width: 100%;
  }
  .p-contact .p-form-item:not(:last-child) {
    margin-bottom: 9.3333333333vw;
  }
  .p-contact .p-form-item-ttl {
    font-size: 4.8vw;
    margin-bottom: 2.6666666667vw;
  }
  .p-contact .p-form-item-ttl small {
    font-size: 3.7333333333vw;
  }
  .p-contact .p-form-item-ttl span {
    font-size: 3.7333333333vw;
    white-space: nowrap;
    padding: 0.5333333333vw 1.8666666667vw;
    margin-left: 5.3333333333vw;
  }
  .p-contact .p-form-item-ttl span._ml0 {
    display: block;
    width: fit-content;
    margin-top: 1.3333333333vw;
    margin-left: 0;
  }
  .p-contact input:not([type=checkbox]):not([type=radio]),
  .p-contact textarea {
    border: 0.2666666667vw solid #D7D8DA;
    border-radius: 1.0666666667vw;
    padding: 2.6666666667vw 5.3333333333vw;
    font-size: 4.2666666667vw;
  }
  .p-contact textarea {
    min-height: 53.3333333333vw;
  }
  .p-contact label {
    font-size: 4.2666666667vw;
  }
  .p-contact label input[type=checkbox] + .wpcf7-list-item-label {
    display: inline-block;
    padding-left: 8.5333333333vw;
  }
  .p-contact label input[type=checkbox] + .wpcf7-list-item-label::before {
    width: 5.3333333333vw;
    height: 5.3333333333vw;
    border: 0.5333333333vw solid #D7D8DA;
    border-radius: 0.5333333333vw;
  }
  .p-contact label input[type=checkbox] + .wpcf7-list-item-label::after {
    left: 2.1333333333vw;
    top: 1.0666666667vw;
    width: 1.6vw;
    height: 2.6666666667vw;
    border-width: 0 0.5333333333vw 0.5333333333vw 0;
  }
  .p-contact label input[type=radio] + .wpcf7-list-item-label {
    display: inline-block;
    min-height: auto;
    padding: 3.2vw;
    padding-left: 12.8vw;
    border-radius: 1.0666666667vw;
  }
  .p-contact label input[type=radio] + .wpcf7-list-item-label::before {
    left: 3.7333333333vw;
    width: 5.3333333333vw;
    height: 5.3333333333vw;
    border: 0.5333333333vw solid #D7D8DA;
  }
  .p-contact label input[type=radio] + .wpcf7-list-item-label::after {
    left: 5.3333333333vw;
    width: 3.2vw;
    height: 3.2vw;
  }
  .p-contact .wpcf7-form-control {
    flex-direction: column;
  }
  .p-contact .wpcf7-form-control.wpcf7-checkbox {
    gap: 1.3333333333vw;
  }
  .p-contact .wpcf7-form-control.wpcf7-radio {
    gap: 4vw;
  }
  .p-contact .wpcf7-form-control.wpcf7-radio .wpcf7-list-item {
    width: 100%;
  }
  .p-contact .wpcf7-form-control.wpcf7-radio .wpcf7-list-item small {
    font-size: 3.7333333333vw;
  }
  .p-contact .wpcf7-free-text {
    bottom: 10.6666666667vw;
  }
  .p-contact .wpcf7-form-control.wpcf7-radio:has(.has-free-text input[type=radio]:checked) {
    padding-bottom: 13.3333333333vw;
  }
  .p-contact .p-form-item-box-post-code {
    gap: 3.2vw;
  }
  .p-contact .p-form-item-box-post-code input {
    width: 48vw;
  }
  .p-contact .wpcf7-not-valid-tip {
    font-size: 3.7333333333vw;
    margin-top: 2.6666666667vw;
  }
  .p-contact .p-form-group-box {
    margin-top: 10.6666666667vw;
  }
  .p-contact .p-form-group-box-ttl {
    font-size: 5.3333333333vw;
    margin-bottom: 4vw;
  }
  .p-contact .p-form-group-box-txt01 {
    text-align: left;
    margin-bottom: 2.6666666667vw;
  }
  .p-contact .p-form-btn-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 5.3333333333vw;
    margin: 10.6666666667vw auto 0;
  }
  .p-contact .p-form-submit-btn {
    grid-column: 1/2;
  }
  .p-contact .p-form-submit-btn input:not([type=checkbox]):not([type=radio]) {
    padding-left: 10.6666666667vw;
  }
}
/* note
---------------------------------------------------------------------------- */
.p-contact-note {
  margin-top: 6rem;
}

@media screen and (max-width: 767px) {
  .p-contact-note {
    margin-top: 10.6666666667vw;
  }
}
