/* ============================================================
   お問い合わせページ（contact.html / thanks.html）
   トップページのトンマナ（2.5px黒罫線・ハードシャドウ・黄／ピンク）を継承
   ============================================================ */

/* ---- ヒーロー（黄色帯） ---- */
.contact-hero {
  background: var(--yellow);
  border-bottom: 2.5px solid var(--black);
  padding: 44px 80px 48px;
}

.contact-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-hero__inner .section-badge {
  align-self: center;
}

.contact-hero__title {
  font-weight: 900;
  font-size: 34px;
  line-height: 44px;
  color: var(--black);
  text-wrap: balance;
}

.contact-hero__lead {
  font-weight: 700;
  font-size: 14px;
  line-height: 25px;
  color: var(--black);
}

.contact-hero__notes {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 6px;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.contact-hero__notes li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- フォームエリア ---- */
.contact-main {
  background: var(--white);
  border-bottom: 2.5px solid var(--black);
  padding: 56px 80px 72px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 640px;
  margin: 0 auto;
}

/* 2カラム行（会社名／お名前など） */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-field {
  flex: 1;
  min-width: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none; /* fieldset のデフォルト枠を打ち消し */
  padding: 0;
  margin: 0;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 14px;
  line-height: 20px;
  color: var(--black);
  padding: 0; /* legend のデフォルト余白を打ち消し */
}

/* legend は flex の子にならないため、下の要素との間隔を明示 */
legend.form-label {
  margin-bottom: 10px;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 900;
  font-size: 10px;
  line-height: 14px;
  flex-shrink: 0;
}

.form-badge--optional {
  background: #a5a5a5;
}

/* ---- テキスト入力 ---- */
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 2.5px solid var(--black);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  color: var(--black);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b5b5b5;
}

/* フォーカス時も見た目は変えない（黒枠のまま） */
.form-input:focus,
.form-textarea:focus {
  outline: none;
}

.form-textarea {
  min-height: 170px;
  resize: vertical;
}

/* ---- ご相談内容（ラジオ → ピル型ボタン） ---- */
.form-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px; /* 縦はシャドウ4px分を見込む */
  padding-bottom: 4px; /* 選択時に4px沈むぶんの逃げ */
}

.form-radio {
  position: relative;
}

.form-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 未選択＝浮いている（ハードシャドウあり）、選択＝押し込まれて凹んで見える */
.form-radio span {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--white);
  border: 2.5px solid var(--black);
  box-shadow: 0 4px 0 0 var(--black);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--black);
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.form-radio span:hover {
  background: #fffbd6;
}

.form-radio input:checked + span {
  background: var(--yellow);
  font-weight: 900;
  box-shadow: none;
  transform: translateY(4px);
}

.form-radio input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---- 同意チェック ---- */
.form-consent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: #f5f5f5;
}

.form-consent label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  line-height: 20px;
  color: var(--black);
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.form-consent p {
  margin: 0;
  padding-left: 28px;
  font-weight: 500;
  font-size: 11px;
  line-height: 18px;
  color: #888;
}

/* ---- 送信ボタン ---- */
.form-submit {
  align-self: center;
  width: 340px;
  margin-top: 4px;
  padding: 17px 11.5px;
}

.form-submit:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.form-note {
  margin-top: -14px;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  color: #888;
  text-align: center;
}

/* ============================================================
   送信完了ページ（thanks.html）
   ============================================================ */
.thanks-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 640px;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--white);
  border: 2.5px solid var(--black);
  box-shadow: 0 5px 0 0 var(--black);
  text-align: center;
}

.thanks-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border: 2.5px solid var(--black);
  border-radius: 50%;
}

.thanks-icon svg {
  width: 30px;
  height: 30px;
}

.thanks-title {
  font-weight: 900;
  font-size: 22px;
  line-height: 32px;
  color: var(--black);
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
  width: 100%;
  min-width: 0;
}

.thanks-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 26px;
  color: var(--black);
}

.thanks-back {
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .contact-hero {
    padding: 32px 20px 36px;
  }

  .contact-hero__inner {
    width: 100%;
  }

  .contact-hero__notes {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    white-space: normal;
  }

  .contact-main {
    padding: 40px 20px 56px;
  }

  .contact-form {
    width: 100%;
    max-width: 640px;
  }

  .thanks-box {
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 28px 16px 32px;
  }

  .contact-hero__title {
    font-size: 26px;
    line-height: 36px;
  }

  .contact-hero__lead br {
    display: none;
  }

  .contact-main {
    padding: 32px 16px 48px;
  }

  .contact-form {
    gap: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 24px;
  }

  .form-radio span {
    padding: 9px 14px;
    font-size: 13px;
  }

  .form-submit {
    width: 100%;
    max-width: 360px;
  }

  .thanks-box {
    padding: 36px 20px;
  }

  .thanks-title {
    font-size: 19px;
    line-height: 28px;
  }

  .thanks-text {
    font-size: 13px;
    line-height: 24px;
  }

  .thanks-text br {
    display: none;
  }
}
