/* ==========================================================
   お問い合わせ（FAQ＋フォーム）
   ========================================================== */

.gh-contact-lead {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- FAQ（詳細ブロック） ---------- */
.gh-faq > .wp-block-group__inner-container,
.gh-faq:not(:has(> .wp-block-group__inner-container)) {
  display: grid;
  gap: 12px;
}

.gh-faq details.wp-block-details {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--gh-white);
  border: 1px solid var(--gh-line);
  border-radius: 10px;
  transition: border-color 0.25s ease;
}

.gh-faq details.wp-block-details[open] {
  border-color: var(--gh-cyan);
}

.gh-faq details.wp-block-details > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 16px 64px 16px 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gh-ink);
  list-style: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.gh-faq details.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.gh-faq details.wp-block-details > summary:hover {
  background: var(--gh-field);
}

/* Q */
.gh-faq details.wp-block-details > summary::before {
  content: "Q";
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gh-white);
  background: var(--gh-blue);
  border-radius: 50%;
}

/* ＋／− */
.gh-faq details.wp-block-details > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(var(--gh-blue), var(--gh-blue)) center / 16px 2px no-repeat,
    linear-gradient(var(--gh-blue), var(--gh-blue)) center / 2px 16px no-repeat;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.gh-faq details.wp-block-details[open] > summary::after {
  background: linear-gradient(var(--gh-blue), var(--gh-blue)) center / 14px 2px no-repeat;
}

/* 回答 */
.gh-faq details.wp-block-details > :not(summary) {
  position: relative;
  margin: 0;
  padding: 0 32px 0 74px;
  font-size: 15px;
  line-height: 1.9;
  background: var(--gh-pale);
}

.gh-faq details.wp-block-details > summary + * {
  padding-top: 22px;
}

.gh-faq details.wp-block-details > :last-child {
  padding-bottom: 22px;
}

.gh-faq details.wp-block-details > summary + *::before {
  content: "A";
  position: absolute;
  top: 18px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gh-white);
  background: var(--gh-cyan);
  border-radius: 50%;
}

.gh-faq details.wp-block-details a {
  font-weight: 700;
  color: var(--gh-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gh-faq details.wp-block-details a:hover {
  text-decoration: none;
}

/* ---------- フォーム ---------- */
.gh-contact {
  scroll-margin-top: 100px;
}

.gh-contact__alert {
  margin: 0 0 24px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gh-red);
  background: #fdf0f0;
  border: 1px solid #f3c4c4;
  border-radius: 8px;
}

.gh-contact__lead {
  margin: 0 0 24px;
  font-size: 15px;
}

.gh-contact__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gh-contact__rows {
  margin: 0;
  border-top: 1px solid var(--gh-line);
}

.gh-contact__row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--gh-line);
}

.gh-contact__row[hidden] {
  display: none;
}

.gh-contact__form.is-sales .gh-contact__row--sales {
  background: #fff9e6;
  box-shadow: -16px 0 0 #fff9e6, 16px 0 0 #fff9e6;
}

.gh-contact__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: start;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--gh-ink);
}

.gh-contact__req,
.gh-contact__opt {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gh-white);
  background: var(--gh-red);
  border-radius: 3px;
}

.gh-contact__opt {
  background: #9aa3ab;
}

.gh-contact__req[hidden],
.gh-contact__opt[hidden] {
  display: none;
}

.gh-contact__field {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.gh-contact input[type="text"],
.gh-contact input[type="email"],
.gh-contact input[type="tel"],
.gh-contact select,
.gh-contact textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gh-ink);
  background: var(--gh-field);
  border: 1px solid var(--gh-line);
  border-radius: 6px;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-contact textarea {
  min-height: 200px;
  resize: vertical;
}

.gh-contact input::placeholder,
.gh-contact textarea::placeholder {
  color: #a3abb2;
}

.gh-contact input:focus,
.gh-contact select:focus,
.gh-contact textarea:focus {
  background: var(--gh-white);
  border-color: var(--gh-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 100, 169, 0.15);
}

.gh-contact .is-error input,
.gh-contact .is-error select,
.gh-contact .is-error textarea {
  background: #fff7f7;
  border-color: var(--gh-red);
}

.gh-contact input.gh-contact__zip {
  max-width: 300px;
}

.gh-contact__select {
  position: relative;
}

.gh-contact__select select {
  padding-right: 44px;
  cursor: pointer;
  appearance: none;
}

.gh-contact__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  border-top: 7px solid #555;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transform: translateY(-50%);
  pointer-events: none;
}

.gh-contact__note {
  margin: 0;
  font-size: 12px;
  color: var(--gh-sub);
}

.gh-contact__error {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-red);
}

.gh-contact__agree {
  margin: 36px 0 0;
  text-align: center;
}

.gh-contact__agree label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}

.gh-contact__agree input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--gh-blue);
}

.gh-contact__agree a {
  color: var(--gh-blue);
  text-decoration: underline;
}

.gh-contact__agree .gh-contact__error {
  margin-top: 8px;
}

.gh-contact__submit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 0;
}

.gh-contact__btn {
  min-width: 320px;
  padding: 18px 40px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--gh-white);
  cursor: pointer;
  background: var(--gh-blue);
  border: 2px solid var(--gh-blue);
  border-radius: 60px;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.gh-contact__btn:hover {
  color: var(--gh-blue);
  background: var(--gh-white);
}

.gh-contact__btn--back {
  min-width: 240px;
  color: var(--gh-blue);
  background: var(--gh-white);
}

.gh-contact__btn--back:hover {
  color: var(--gh-white);
  background: var(--gh-blue);
}

/* 確認画面 */
.gh-contact__confirm .gh-contact__label {
  min-height: 0;
}

.gh-contact__confirm .gh-contact__field {
  display: block;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.gh-contact__empty {
  color: #a3abb2;
}

/* 完了画面 */
.gh-contact__done {
  padding: 48px 40px;
  text-align: center;
  background: var(--gh-pale);
  border-radius: 24px 6px 24px 6px;
}

.gh-contact__done p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
}

p.gh-contact__done-title {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gh-blue);
}

p.gh-contact__done-back {
  margin-top: 28px;
}

@media (max-width: 767px) {
  .gh-faq details.wp-block-details > summary {
    gap: 12px;
    min-height: 0;
    padding: 14px 48px 14px 14px;
    font-size: 15px;
  }

  .gh-faq details.wp-block-details > summary::before,
  .gh-faq details.wp-block-details > summary + *::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .gh-faq details.wp-block-details > summary::after {
    right: 18px;
    width: 14px;
    height: 14px;
  }

  .gh-faq details.wp-block-details > :not(summary) {
    padding: 0 18px 0 54px;
    font-size: 14px;
  }

  .gh-faq details.wp-block-details > summary + *::before {
    top: 18px;
    left: 14px;
  }

  .gh-contact__row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .gh-contact__label {
    min-height: 0;
  }

  .gh-contact__form.is-sales .gh-contact__row--sales {
    box-shadow: -12px 0 0 #fff9e6, 12px 0 0 #fff9e6;
  }

  .gh-contact__btn,
  .gh-contact__btn--back {
    width: 100%;
    min-width: 0;
  }

  .gh-contact__done {
    padding: 32px 20px;
  }
}

p.gh-contact-policy {
  margin: 32px 0 0;
  font-size: 13px;
  color: var(--gh-sub);
  text-align: center;
}

p.gh-contact-policy a {
  color: var(--gh-blue);
  text-decoration: underline;
}

/* お電話でのお問い合わせ（ページ上部） */
.wp-block-group.gh-contact-tel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 28px;
  margin: 0 0 48px;
  padding: 20px 28px;
  background: var(--gh-pale);
  border-radius: 24px 6px 24px 6px;
}

.gh-contact-tel > .wp-block-group__inner-container {
  display: contents;
}

.gh-contact-tel p {
  margin: 0;
}

p.gh-contact-tel__title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-blue);
}

p.gh-contact-tel__num {
  font-size: 24px;
  font-weight: 700;
  color: var(--gh-blue);
}

p.gh-contact-tel__num a {
  color: inherit;
  text-decoration: none;
}

p.gh-contact-tel__time {
  font-size: 13px;
  color: var(--gh-sub);
}

p.gh-contact-tel__jump a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gh-white);
  text-decoration: none;
  background: var(--gh-navy);
  border-radius: 40px;
}

@media (max-width: 767px) {
  .wp-block-group.gh-contact-tel {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
