/* =========================================
Contact Page Styles
スコープ: .page-contact
========================================= */
.c-hero.-contact {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  color: #0b1a2a;
  background: radial-gradient(
      900px 300px at 10% 10%,
      rgba(12, 40, 80, 0.08),
      transparent 60%
    ),
    radial-gradient(
      600px 220px at 90% 60%,
      rgba(12, 40, 80, 0.06),
      transparent 60%
    ),
    #f5f8fc;
  overflow: hidden;
}
.c-hero.-contact .c-hero__inner {
  padding: 56px 16px;
  text-align: center;
}
.c-hero.-contact .c-hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6b87a6;
}
.c-hero.-contact .c-hero__title {
  font-size: clamp(26px, 3.8vw, 44px);
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* Wrap */
.contact-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}
.contact-intro {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  color: #44576a;
}

/* Form Block (CF7想定) */
.wpcf7 {
  background: var(--bg-light, #f9f9f9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 0;
  max-width: 920px;
  margin: 32px auto 96px;
  background: #fff;
  border: 1px solid #e6e8ef;
  box-shadow: 0 8px 24px -12px rgba(12, 22, 44, 0.12);
}

.wpcf7 .wpcf7-form {
  width: 100%;
}

.wpcf7 .wpcf7-form p {
  margin: 0;
  border-top: 1px solid #eef1f6;
}
.wpcf7 .wpcf7-form p:last-child {
  border-bottom: 1px solid #eef1f6;
}

.wpcf7 label {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: #2a3b4c;
  /* row layout */
  --contact-label-width: 180px;
  display: grid;
  grid-template-columns: var(--contact-label-width) 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  position: relative;
}

.wpcf7 .wpcf7-form-control {
  width: 100%;
  display: block;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s var(--easing-standard),
    box-shadow 0.2s var(--easing-standard);
}

.wpcf7
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not(
    [type="file"]
  ) {
  height: 44px;
}
.wpcf7 ::placeholder {
  color: #9aa7b8;
}

.wpcf7 label::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--contact-label-width);
  background: #f6f7fb;
  border-right: 1px solid #e6e8ef;
  z-index: -1;
}
.wpcf7 label,
.wpcf7 .wpcf7-form-control-wrap {
  position: relative;
  z-index: 1;
}

.wpcf7 .wpcf7-form p > label:has(.wpcf7-validates-as-required)::after {
  content: "必須";
  position: absolute;
  left: calc(var(--contact-label-width) - 36px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #fff;
  background: var(--primary-blue);
  border-radius: 2px;
  padding: 2px 6px;
}

.wpcf7 .wpcf7-textarea {
  min-height: 140px;
  line-height: 1.7;
  resize: vertical;
}

.wpcf7 .wpcf7-form-control:focus {
  border-color: var(--primary-blue, #3a7ca5);
  box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.15);
}

.wpcf7 .wpcf7-list-item {
  margin-right: 16px;
}
.wpcf7 .wpcf7-list-item-label {
  margin-left: 6px;
}

/* Required badge */
.u-required {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  background: #e24a51;
  border-radius: 2px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Validation */
.wpcf7 .wpcf7-not-valid {
  border-color: #e24a51;
  box-shadow: 0 0 0 3px rgba(226, 74, 81, 0.12);
}
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #b72d33;
}

/* Response message */
.wpcf7 .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #cfd8e3;
  background: #fff;
}
.wpcf7 .wpcf7-mail-sent-ok {
  border-color: #46a37c;
  background: #f1fbf6;
  color: #2c7156;
}
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
  border-color: #e24a51;
  background: #fff7f7;
  color: #b72d33;
}

/* Checkbox / Radio layout */
.wpcf7 .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 6px 18px 6px 0;
}
.wpcf7 .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-list-item input[type="radio"] {
  margin-right: 6px;
}
.wpcf7 .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Submit */
.contact-actions {
  margin-top: 24px;
  text-align: center;
}
.wpcf7 .wpcf7-submit {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  width: auto;
  padding: 12px 40px;
  background-color: var(--primary-blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.wpcf7 .wpcf7-form p:has(.wpcf7-submit) {
  text-align: center;
  padding: 20px 0;
  background: #fff;
}
.wpcf7 .wpcf7-submit:hover {
  color: #fff;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgba(172, 22, 22, 0.45);
}

/* Helper: floating-like label support */
.is-filled + .u-faux-label,
.wpcf7-form-control:focus + .u-faux-label {
  opacity: 1;
  transform: translateY(-2px);
}
.u-faux-label {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b87a6;
  opacity: 0;
  transform: translateY(2px);
  transition: 0.2s var(--easing-standard);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (min-width: 768px) {
  .wpcf7 {
    padding: 32px 32px 36px;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .wpcf7 label {
    --contact-label-width: 220px;
  }
}

/* -----------------------------------------
SP: 0 - 767px
----------------------------------------- */
@media (max-width: 767px) {
  .wpcf7 {
    margin: 16px auto 64px;
    border-radius: 8px;
  }
  .wpcf7 .wpcf7-form p {
    border-left: none;
    border-right: none;
  }
  .wpcf7 label {
    --contact-label-width: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 14px;
  }
  .wpcf7 label::before {
    display: none;
  }
  .wpcf7 .wpcf7-form p > label:has(.wpcf7-validates-as-required)::after {
    position: static;
    transform: none;
    margin-left: 8px;
    width: 30px;
    text-align: center;
  }
  .wpcf7 .wpcf7-form-control {
    font-size: 16px; /* モバイルでの読みやすさ */
    padding: 12px 12px;
  }
  .wpcf7 .wpcf7-textarea {
    min-height: 160px;
  }
  .wpcf7 .wpcf7-form p:has(.wpcf7-submit) {
    padding: 16px 12px;
  }
  .wpcf7 .wpcf7-submit {
    width: 100%;
    max-width: 320px;
  }
  .wpcf7 .wpcf7-list-item {
    margin-right: 12px;
  }
  .wpcf7 .wpcf7-response-output {
    margin-left: 12px;
    margin-right: 12px;
  }
}

/* reCAPTCHA（もし表示される場合） */
.wpcf7 .grecaptcha-badge,
.wpcf7 .g-recaptcha {
  margin: 8px auto;
  display: block;
}

/* =========================================
Page Sections (Hero / Intro / Flow / Card)
========================================= */

.contact-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 16px 96px;
}

.contact-intro {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
  color: #2a3b4c;
}
.contact-intro p {
  margin-bottom: 12px;
}

/* Flow */
.contact-flow {
  max-width: 860px;
  margin: 24px auto 48px;
}
.contact-flow__title {
  text-align: center;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.contact-flow__list {
  border: 1px solid #e6e8ef;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.contact-flow__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 18px;
  align-items: start;
  border-top: 1px solid #eef1f6;
}
.contact-flow__item:first-child {
  border-top: none;
}
.contact-flow__icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 2px solid #2a3b4c;
}
.contact-flow__body dt {
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-flow__body dd {
  color: #4a5a6a;
  font-size: 14px;
}

/* Callout (TEL) */
.contact-callout {
  text-align: center;
  margin: 24px 0 16px;
}
.contact-callout__box {
  display: inline-block;
  background: var(--primary-blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 8px 18px -12px rgba(178, 31, 45, 0.5);
}
.contact-callout__tel {
  font-weight: 800;
  letter-spacing: 0.05em;
}
.contact-callout__note {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

/* Card wrapper for form + notes */
.contact-card {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}
.contact-card__head {
  padding: 18px 20px;
  border-bottom: 1px solid #eef1f6;
  background: #f8f9fc;
  text-align: center;
}
.contact-card__head p {
  color: #4a5a6a;
  font-size: 14px;
}
.contact-card__body {
  padding: 0 0 8px;
}

/* Contact Form 7 送信成功時のメッセージを非表示にする */
.wpcf7 form.sent .wpcf7-response-output {
  display: none !important;
}

/* Responsive for sections */
@media (max-width: 767px) {
  .c-hero.-contact {
    min-height: 220px;
  }
  .contact-flow {
    margin: 12px auto 32px;
  }
  .contact-card__head {
    padding: 14px 12px;
  }
}
