/* ========================================
  Contact Page / お問い合わせページ
======================================== */

/* ========================================
  Contact Form / お問い合わせフォーム
======================================== */

.contact-page-main > .contact-form-section {
  padding: 120px 0 200px;
  background: #fff;
}

.contact-form-inner {
  width: 790px;
  margin: 0 auto;
}

.contact-form-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.contact-form-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1.26px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.contact-form-heading h2::after {
  display: block;
  width: 50px;
  height: 1px;
  margin: 30px auto 0;
  background: #d9d9d9;
  content: "";
}

.contact-form-heading p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 29px;
  letter-spacing: 1.7px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.contact-form-sp-break {
  display: none;
}

.contact-form {
  margin-top: 100px;
}

.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field label {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.6px;
}

.contact-field label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.48px;
  background: #cc4a4a;
  border-radius: 5px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.contact-field input {
  height: 52px;
  padding: 8px 14px;
}

.contact-field textarea {
  height: 201px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-consent input:focus-visible,
.contact-submit:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.contact-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.54px;
}

.contact-consent input {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  appearance: none;
  background: #fff;
}

.contact-consent input:checked {
  border-color: var(--button);
  background-color: var(--button);
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M5%2012.5l4.4%204.4L19%207'%20fill='none'%20stroke='%23fff'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 72% 72%;
}

.contact-consent a {
  color: #cc4a4a;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Contact Form 7 の [acceptance] 出力(入れ子ラッパー + wpautop の <br>)を中央揃えに整える */
.contact-consent br {
  display: none;
}

.contact-consent .wpcf7-form-control-wrap,
.contact-consent .wpcf7-acceptance,
.contact-consent .wpcf7-list-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.contact-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 81px;
  margin: 60px auto 0;
  border: 0;
  padding: 0 30px 0 56px;
  border-radius: 55px;
  color: #fff;
  font-family: var(--font-ja);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 4.2px;
  background: var(--button);
  cursor: pointer;
  transition:
    background-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.contact-submit::after {
  position: static;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background: url("../images/contact-submit-arrow.webp") center / contain
    no-repeat;
  content: "";
}

.contact-submit-sp {
  display: none;
}

/* Contact Form 7 / WordPressフォーム互換 */
.contact-form .wpcf7-form {
  margin: 0;
}

.contact-form .wpcf7-form p {
  margin: 0;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #cc4a4a;
  font-size: 14px;
  line-height: 1.4;
}

.contact-form .wpcf7-response-output {
  margin: 30px 0 0;
  padding: 14px 18px;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-form .wpcf7-spinner {
  display: block;
  margin: 20px auto 0;
}

/* Cloudflare Turnstile ウィジェットの中央寄せ */
.contact-form .cf-turnstile {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

input.contact-submit {
  width: auto;
  padding-right: 86px;
  appearance: none;
  background-image: url("../images/contact-submit-arrow.webp");
  background-position: calc(100% - 30px) center;
  background-repeat: no-repeat;
  background-size: 34px 34px;
}

/* Contact Submit Hover / 送信ボタンのホバー演出 */
@media (hover: hover) and (pointer: fine) {
  .contact-submit:hover,
  .contact-submit:focus-visible {
    background-color: #082f4a;
    box-shadow: 0 6px 14px rgba(11, 58, 91, 0.18);
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit {
    transition: none;
  }

  .contact-submit:hover,
  .contact-submit:focus-visible {
    transform: none;
  }
}

/* ========================================
  Responsive 900px-1800px / Contact PC基準の比率可変
======================================== */

@media (min-width: 900px) and (max-width: 1800px) {
  .contact-page-main > .contact-form-section {
    padding: 8.3333vw 0 13.8889vw;
  }

  .contact-form-inner {
    width: 54.8611vw;
  }

  .contact-form-heading {
    gap: 2.0833vw;
  }

  .contact-form-heading h2 {
    font-size: 2.9167vw;
    letter-spacing: 0.0875vw;
  }

  .contact-form-heading h2::after {
    width: 3.4722vw;
    height: 0.1389vw;
    margin-top: 2.0833vw;
  }

  .contact-form-heading p {
    font-size: 1.25vw;
    line-height: 2.0139vw;
    letter-spacing: 0.1181vw;
  }

  .contact-form {
    margin-top: 6.9444vw;
  }

  .contact-form-fields {
    gap: 2.3611vw;
  }

  .contact-field {
    gap: 1.25vw;
  }

  .contact-field label {
    gap: 1.25vw;
    font-size: 1.3889vw;
    letter-spacing: 0.0417vw;
  }

  .contact-field label span {
    padding: 0.2778vw 0.8333vw;
    font-size: 1.1111vw;
    letter-spacing: 0.0333vw;
    border-radius: 0.3472vw;
  }

  .contact-field input {
    height: 3.6111vw;
    padding: 0.5556vw 0.9722vw;
  }

  .contact-field textarea {
    height: 13.9583vw;
    padding: 0.8333vw 0.9722vw;
  }

  .contact-consent {
    gap: 1.3889vw;
    margin-top: 2.3611vw;
    font-size: 1.25vw;
    letter-spacing: 0.0375vw;
  }

  .contact-consent input {
    width: 2.0833vw;
    height: 2.0833vw;
    border-radius: 0.3472vw;
  }

  .contact-submit {
    gap: 1.7778vw;
    min-height: 5.625vw;
    margin-top: 4.1667vw;
    padding: 0 2.0833vw 0 3.6889vw;
    font-size: 1.4583vw;
    letter-spacing: 0.2917vw;
  }

  .contact-submit::after {
    width: 2.3611vw;
    height: 2.3611vw;
  }

  input.contact-submit {
    padding-right: 5.9722vw;
    background-position: calc(100% - 2.0833vw) center;
    background-size: 2.3611vw 2.3611vw;
  }

  .contact-form .cf-turnstile {
    margin-top: 2.7778vw;
  }
}

/* ========================================
  Responsive >= 1801px / 1800px時点のコンテンツ幅で固定
======================================== */

@media (min-width: 1801px) {
  .contact-page-main > .contact-form-section {
    padding: 150px 0 250px;
  }

  .contact-form-inner {
    width: 988px;
  }

  .contact-form-heading {
    gap: 38px;
  }

  .contact-form-heading h2 {
    font-size: 53px;
    letter-spacing: 1.58px;
  }

  .contact-form-heading h2::after {
    width: 63px;
    margin-top: 38px;
  }

  .contact-form-heading p {
    font-size: 23px;
    line-height: 36px;
    letter-spacing: 2.13px;
  }

  .contact-form {
    margin-top: 125px;
  }

  .contact-form-fields {
    gap: 43px;
  }

  .contact-field {
    gap: 23px;
  }

  .contact-field label {
    gap: 23px;
    font-size: 25px;
    letter-spacing: 0.75px;
  }

  .contact-field label span {
    padding: 5px 15px;
    font-size: 20px;
    letter-spacing: 0.6px;
    border-radius: 6px;
  }

  .contact-field input {
    height: 65px;
    padding: 10px 18px;
  }

  .contact-field textarea {
    height: 251px;
    padding: 15px 18px;
  }

  .contact-consent {
    gap: 25px;
    margin-top: 43px;
    font-size: 23px;
    letter-spacing: 0.68px;
  }

  .contact-consent input {
    width: 38px;
    height: 38px;
    border-radius: 6px;
  }

  .contact-submit {
    gap: 50px;
    min-height: 101px;
    margin-top: 75px;
    padding: 0 30px 0 70px;
    font-size: 26px;
    letter-spacing: 5.25px;
  }

  .contact-submit::after {
    width: 43px;
    height: 43px;
  }

  input.contact-submit {
    padding-right: 108px;
    background-position: calc(100% - 38px) center;
    background-size: 43px 43px;
  }

  .contact-form .cf-turnstile {
    margin-top: 50px;
  }
}

/* ========================================
  Responsive <= 899px / 393pxのSP基準を縮小・拡大
======================================== */

@media (max-width: 899px) {
  .contact-page-main > .contact-form-section {
    padding: 60px 0 100px;
  }

  .contact-form-inner {
    width: min(324px, calc(100% - 48px));
  }

  .contact-form-heading {
    gap: 24px;
  }

  .contact-form-heading h2 {
    font-size: 22px;
    line-height: 1.008;
    letter-spacing: 0;
  }

  .contact-form-heading h2::after {
    width: 40px;
    height: 2px;
    margin-top: 19px;
  }

  .contact-form-heading p {
    width: 319px;
    max-width: 100%;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 1.7px;
  }

  .contact-form-sp-break {
    display: block;
  }

  .contact-form {
    width: 299px;
    max-width: 100%;
    margin: 52px auto 0;
  }

  .contact-form-fields {
    gap: 20px;
  }

  .contact-field {
    gap: 6px;
  }

  .contact-field label {
    gap: 10px;
    color: #343945;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.42px;
  }

  .contact-field label span {
    padding: 2px 6px;
    font-size: 10px;
    letter-spacing: 0.3px;
    border-radius: 3px;
  }

  .contact-field input {
    height: 29px;
    padding: 4px 8px;
  }

  .contact-field textarea {
    height: 122px;
    padding: 6px 8px;
  }

  .contact-consent {
    justify-content: flex-start;
    gap: 6px;
    width: 265px;
    max-width: 100%;
    margin: 20px auto 0;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  .contact-consent input {
    width: 16px;
    height: 16px;
    border-radius: 3px;
  }

  .contact-consent a {
    text-underline-offset: 4px;
  }

  .contact-submit {
    gap: 18px;
    min-height: 42px;
    margin-top: 26px;
    padding: 0 12px 0 34px;
    font-size: 12px;
    letter-spacing: 3.2px;
  }

  .contact-submit::after {
    width: 18px;
    height: 18px;
  }

  input.contact-submit {
    padding-right: 64px;
    background-position: calc(100% - 12px) center;
    background-size: 18px 18px;
  }

  .contact-submit-pc {
    display: none;
  }

  .contact-submit-sp {
    display: inline;
  }

  .contact-form .cf-turnstile {
    margin-top: 24px;
  }
}
