/* ======================================================================
   CONTACT
   v0.54: 新サイト用お問い合わせページ。
   ====================================================================== */

.page-contact {
  --contact-font-heading: "Kiwi Maru", "Zen Kaku Gothic New", sans-serif;
  --contact-font-body: "Noto Sans JP", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

.page-contact .page-main {
  padding: 0 0 0 24px;
}

.contact-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 4px 0 16px;
}

.contact-heading {
  margin: 0 auto 24px;
  text-align: center;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f8fa;
  color: var(--nav-cyan);
  font-family: var(--contact-font-body);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .14em;
}

.contact-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nav-coral);
}

.contact-heading h1 {
  margin: 0;
  color: var(--nav-text);
  font-family: var(--contact-font-heading);
  font-size: 1.64rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .075em;
}

.contact-heading h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--nav-cyan);
}

.contact-heading p {
  width: min(660px, 100%);
  margin: 14px auto 0;
  color: #737176;
  font-family: var(--contact-font-body);
  font-size: .84rem;
  line-height: 1.9;
}

.contact-card {
  padding: 24px 26px 25px;
  border: 1px solid #e2eaec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(94, 80, 104, .045);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 18px;
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #66646b;
  font-family: var(--contact-font-heading);
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .035em;
}

.required-badge,
.optional-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-family: var(--contact-font-body);
  font-size: .58rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
}

.required-badge {
  background: #fff0f3;
  color: #bd556b;
}

.optional-badge {
  background: #f1f4f5;
  color: #858287;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d8e1e4;
  border-radius: 8px;
  background: #fbfcfc;
  color: #55535a;
  font-family: var(--contact-font-body);
  font-size: .88rem;
  line-height: 1.65;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.form-field input,
.form-field select {
  min-height: 44px;
  padding: 8px 11px;
}

.form-field textarea {
  min-height: 190px;
  padding: 10px 11px;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #bdcdd2;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--nav-cyan);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(116, 193, 208, .16);
}

.form-field textarea::placeholder {
  color: #aaa7ab;
  opacity: 1;
}

.field-help {
  margin: 6px 2px 0;
  color: #8b898d;
  font-family: var(--contact-font-body);
  font-size: .68rem;
  line-height: 1.65;
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.contact-security {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 23px;
  padding: 16px 17px;
  border: 1px solid #e5ecee;
  border-radius: 9px;
  background: #f9fbfb;
}

.turnstile-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 255px;
  min-height: 65px;
  border: 1px dashed #cbd8dc;
  border-radius: 7px;
  background: #fff;
  color: #99969a;
  font-family: var(--contact-font-body);
  font-size: .72rem;
  text-align: center;
}

.turnstile-slot.is-ready {
  display: block;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
}

.security-note {
  flex: 1 1 210px;
  margin: 0;
  color: #858287;
  font-family: var(--contact-font-body);
  font-size: .69rem;
  line-height: 1.7;
}

.contact-actions {
  margin-top: 20px;
  text-align: center;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 46px;
  padding: 9px 24px;
  border: 1px solid #9bbfca;
  border-radius: 999px;
  background: #f1f8fa;
  color: #557886;
  font-family: var(--contact-font-heading);
  font-size: .90rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease, opacity .16s ease;
}

.contact-submit:not(:disabled):hover,
.contact-submit:not(:disabled):focus-visible {
  border-color: var(--nav-coral);
  background: #fff5f7;
  color: var(--nav-coral);
  transform: translateY(-1px);
}

.contact-submit:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.contact-submit.is-sending {
  cursor: wait;
  opacity: .68;
}

.contact-status {
  min-height: 1.8em;
  margin: 10px auto 0;
  color: #77747a;
  font-family: var(--contact-font-body);
  font-size: .76rem;
  line-height: 1.7;
}

.contact-status.is-error {
  color: #b14f63;
}

.contact-status.is-success {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid #cfe3d1;
  border-radius: 8px;
  background: #f3faf4;
  color: #55765a;
}

@media (max-width: 900px) and (min-width: 761px) {
  .page-contact .page-main {
    padding-left: 18px;
    padding-right: 12px;
  }

  .contact-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 760px) {
  .page-contact .page-main {
    padding: 0 16px 18px;
  }

  .contact-panel {
    width: 100%;
    padding-top: 22px;
  }

  .contact-heading {
    margin-bottom: 20px;
  }

  .contact-heading h1 {
    font-size: 1.42rem;
  }

  .contact-heading p {
    font-size: .80rem;
    text-align: left;
  }

  .contact-card {
    padding: 20px 16px 21px;
    border-radius: 10px;
  }

  .contact-form-grid {
    display: block;
  }

  .form-field + .form-field {
    margin-top: 18px;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }

  .form-field textarea {
    min-height: 210px;
  }

  .contact-security {
    display: block;
    padding: 14px;
  }

  .turnstile-slot {
    width: 100%;
    min-width: 0;
  }

  .security-note {
    margin-top: 10px;
  }

  .contact-submit {
    width: min(100%, 280px);
  }
}
