:root {
  --header-height: 100px;
}

.contact {
  position: relative;
  width: min(1232px, 100%);
  margin: calc(var(--header-height) + clamp(50px, 5vw, 80px)) auto 100px;
  padding: 8rem 10%;
  border-radius: 20px;
  font-family: "dnp-shuei-mgothic-std", sans-serif;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../image/contact/contact_bg.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
@media screen and (max-width: 600px) {
  .contact::before {
    background-image: url(../image/contact/contact_SPbg.png);
  }
}

.contact__header {
  position: relative;
  text-align: center;
}

.contact__ttl {
  font-size: clamp(6rem, 6vw, 8rem);
  font-family: "Program OT Bold", sans-serif;
  font-style: normal;
  position: relative;
  color: #1a4d2e;
}
.contact__ttl br {
  display: none;
}
@media screen and (max-width: 600px) {
  .contact__ttl {
    font-size: 3.2rem;
  }
  .contact__ttl br {
    display: block;
  }
}
.contact__ttl::before {
  content: "CONTACT US!";
  position: absolute;
  transform: translateX(-50%);
  width: 100%;
  top: 2px;
  left: calc(50% + 2px);
  color: transparent;
  -webkit-text-stroke: 1px #1a4d2e;
}
@media screen and (max-width: 600px) {
  .contact__ttl::before {
    content: "CONTACT US!";
    white-space: pre;
  }
}

.contact__lead {
  width: min(510px, 100%);
  margin: 4px auto 0;
  font-size: clamp(1.6rem, 1.5vw, 2rem);
  letter-spacing: -0.02em;
}
@media screen and (max-width: 600px) {
  .contact__lead {
    margin-block-start: 10px;
  }
}

.contact__container {
  position: relative;
}
@media screen and (max-width: 600px) {
  .contact__container {
    margin-block-start: 10px;
  }
}

.contact__note {
  color: #cd5c08;
  font-size: 1.4rem;
}

.contact__item:not(:first-child) {
  margin-block-start: 20px;
}

.contact__itemLabel {
  color: #cd5c08;
  font-size: clamp(1.8rem, 1.8vw, 2rem);
  line-height: 2;
  letter-spacing: -0.02em;
}

.contact__itemLabel--required {
  margin-inline-start: 10px;
}

.wpcf7-text {
  width: 100%;
  padding: 7px 20px;
  border-radius: 5px;
  background-color: #ffffff;
  color: #272727;
  font-size: clamp(14px, 1.5vw, 20px);
}

.wpcf7-textarea {
  width: 100%;
  padding: 7px 20px;
  border-radius: 5px;
  background-color: #ffffff;
  color: #272727;
  font-size: clamp(14px, 1.5vw, 20px);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #cccccc;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
  font-size: 1.6rem;
}

.contact__attention {
  display: none;
  margin-block-start: 40px;
  text-align: center;
  font-size: clamp(1.6rem, 1.5vw, 2rem);
}
.contact__attention.is-active {
  display: block;
}

.contact__confirm-btn-wrap {
  margin-block-start: 40px;
  text-align: center;
}
.contact__confirm-btn-wrap > p {
  display: inline-block;
  position: relative;
}
@media screen and (max-width: 600px) {
  .contact__confirm-btn-wrap > p {
    display: block;
    width: 100%;
  }
}
.contact__confirm-btn-wrap > p:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 80px;
  z-index: 1;
  transform: translateY(-50%);
  width: 15px;
  height: 20px;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  background-color: #272727;
}
@media screen and (max-width: 600px) {
  .contact__confirm-btn-wrap > p:before {
    right: 10vw;
  }
}
.contact__confirm-btn-wrap > p:has(.contact__confirm-btn:disabled):before {
  opacity: 0.2;
}
.contact__confirm-btn-wrap > p:hover:before {
  opacity: 0.7;
}

.contact__confirm-btn-wrap + .contact__attention.is-active {
  margin-block-start: 0;
}

.contact__confirm-btn {
  display: inline-block;
  padding: 1.2rem 0;
  padding: 25px 110px 25px 100px;
  background-color: #fdfdfd;
  color: #272727;
  text-decoration: none;
  border: 1px solid #272727;
  border-radius: 100vmax;
  box-shadow: 2px 3px 0px black;
  font-size: 2.4rem;
  font-family: "Program OT Bold", sans-serif;
  font-style: normal;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
@media screen and (max-width: 600px) {
  .contact__confirm-btn {
    display: block;
    width: min(400px, 95%);
    margin-inline: auto;
    padding: 20px;
  }
}

.contact__confirm-btn:disabled {
  opacity: 0.2;
}

input:hover {
  opacity: 0.7;
}

.contact__confirm {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  padding: 8rem 10%;
  width: 90%;
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}
@media screen and (max-width: 600px) {
  .contact__confirm {
    width: 100%;
  }
}
.contact__confirm.is-show {
  opacity: 1;
  visibility: visible;
}

.contact__confirm-title {
  font-size: clamp(2rem, 2vw, 2.4rem);
  font-family: "Program OT Bold", sans-serif;
  font-style: normal;
  font-weight: bold;
  color: #1a4d2e;
  text-align: center;
}

.contact__confirm-text {
  font-size: clamp(1.6rem, 1.5vw, 2rem);
  text-align: center;
}

.contact__confirm .contact__item p:not([class]) {
  padding: 6px 0 0 clamp(1rem, 1vw, 2rem);
}

.contact__confirm .contact__itemLabel + p {
  font-size: clamp(14px, 1.5vw, 20px);
}

.confirm__btns {
  display: flex;
  justify-content: center;
  gap: 3rem 4rem;
  margin-block-start: 5rem;
}

@media screen and (max-width: 960px) {
  .confirm__btns {
    flex-direction: column;
    align-items: center;
  }
}
.confirm__btns .contact__back-btn,
.confirm__btns .wpcf7-submit {
  display: inline-block;
  padding: 1.2rem 0;
  padding: 25px 110px 25px 100px;
  background-color: #fdfdfd;
  color: #272727;
  text-decoration: none;
  border: 1px solid #272727;
  border-radius: 100vmax;
  box-shadow: 2px 3px 0px black;
  font-size: 2.4rem;
  font-family: "Program OT Bold", sans-serif;
  font-style: normal;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media screen and (max-width: 600px) {
  .confirm__btns .contact__back-btn,
  .confirm__btns .wpcf7-submit {
    display: block;
    width: min(400px, 95%);
    margin-inline: auto;
    padding: 20px;
  }
}
.confirm__btns .contact__back-btn:hover,
.confirm__btns .wpcf7-submit:hover {
  opacity: 0.7;
}

.confirm__btns .contact__back-btn {
  padding: 25px 100px 25px 110px;
}

@media screen and (max-width: 600px) {
  .confirm__btns .contact__back-btn {
    display: block;
    width: min(400px, 95%);
    margin-inline: auto;
    padding: 20px;
  }
}
.confirm__previousBtn > p {
  display: inline-block;
  position: relative;
  margin: 0;
}

.confirm__previousBtn > p::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 80px;
  z-index: 1;
  transform: translateY(-50%);
  width: 15px;
  height: 20px;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  background-color: #272727;
}

@media screen and (max-width: 600px) {
  .confirm__previousBtn > p::before {
    left: 10vw;
  }
}
.confirm__previousBtn > p:hover::before {
  opacity: 0.7;
}

@media screen and (max-width: 600px) {
  .confirm__previousBtn > p {
    display: block;
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
  .confirm__previousBtn {
    width: 100%;
  }
}
.confirm__sendBtn > p {
  display: inline-block;
  position: relative;
  margin: 0;
}

.confirm__sendBtn > p::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 80px;
  z-index: 1;
  transform: translateY(-50%);
  width: 15px;
  height: 20px;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  background-color: #272727;
}

@media screen and (max-width: 600px) {
  .confirm__sendBtn > p::before {
    right: 10vw;
  }
}
.confirm__sendBtn > p:hover::before {
  opacity: 0.7;
}

@media screen and (max-width: 600px) {
  .confirm__sendBtn > p {
    display: block;
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
  .confirm__sendBtn {
    width: 100%;
  }
}
.contact__bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 24, 24, 0.5);
  z-index: 0;
  transition: 0.3s ease;
}
.contact__bg.is-show {
  display: block;
}