/* ======================================= お問い合わせページ ======================================= */
/* Figma node 7649:11994 (PC), 7649:11835 (SP) 準拠 */
/* Design tokens: MOSS BLACK #42220F, BACKGROUND WHITE #FEFDFB, CLEAR MOSS #B2A581, FLORAL #E66D54, MUTED GOLD #75612C, SUBTLE MOSS #E9E9E2 */

.contact-page {
  background-color: #fefdfb;
  padding-top: 72px;
}

/* PC: コンテンツ幅 800px + 左右パディング 320px = max-width 1440px */
.contact-page__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 152px 320px 80px;
  box-sizing: border-box;
}

/* ページ見出し */
.contact-page__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 56px;
}

.contact-page__heading-en {
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.12px;
  line-height: 1;
  color: #b2a581;
  margin: 0;
  text-transform: uppercase;
}

.contact-page__heading-jp {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 2.56px;
  line-height: 1;
  color: #42220f;
  margin: 0;
}

/* フォームコンテナ */
.contact-page__form {
  width: 100%;
}

/* WPForms コンテナのリセット */
.contact-page__form .wpforms-container {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* WPForms ユーティリティ（CSS無効化時に必要） */
.contact-page__form .wpforms-hidden {
  display: none;
}

.contact-page__form .wpforms-label-hide {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* fieldset リセット（ラジオ・チェックボックスグループ） */
.contact-page__form .wpforms-field fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.contact-page__form .wpforms-field fieldset legend {
  margin: 0;
  padding: 0;
}

.contact-page__form .wpforms-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* フィールド間の余白（フィールドは .wpforms-field-container の子要素） */
.contact-page__form .wpforms-field-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* フィールドグループ */
.contact-page__form .wpforms-field {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}

/* ラベル + 必須バッジ（label および fieldset 内の legend） */
.contact-page__form .wpforms-field-label,
.contact-page__form .wpforms-field fieldset legend.wpforms-field-label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 1.7;
  color: #42220f;
  margin: 0;
}

.contact-page__form .wpforms-field-label-inline {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

/* 必須バッジ */
.contact-page__form .wpforms-required-label {
  display: inline-block;
  background-color: #e66d54;
  color: #fefdfb;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.48px;
  padding: 4px 8px;
  margin: 0;
  line-height: 1;
}

/* テキスト入力フィールド */
.contact-page__form .wpforms-field input[type="text"],
.contact-page__form .wpforms-field input[type="email"] {
  width: 100%;
  height: 67px;
  padding: 20px 16px;
  border: 1px solid #b2a581;
  border-radius: 0;
  background-color: #ffffff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 1.7;
  color: #42220f;
  box-sizing: border-box;
}

.contact-page__form .wpforms-field input[type="text"]::placeholder,
.contact-page__form .wpforms-field input[type="email"]::placeholder {
  color: #e9e9e2;
}

.contact-page__form .wpforms-field input[type="text"]:focus,
.contact-page__form .wpforms-field input[type="email"]:focus {
  outline: none;
  border-color: #75612c;
}

/* テキストエリア */
.contact-page__form .wpforms-field textarea {
  width: 100%;
  height: 240px;
  padding: 20px 16px;
  border: 1px solid #b2a581;
  border-radius: 0;
  background-color: #ffffff;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 1.7;
  color: #42220f;
  resize: vertical;
  box-sizing: border-box;
}

.contact-page__form .wpforms-field textarea::placeholder {
  color: #e9e9e2;
}

.contact-page__form .wpforms-field textarea:focus {
  outline: none;
  border-color: #75612c;
}

/* ラジオボタンコンテナ（legend と選択肢の間の隙間を確保） */
.contact-page__form .wpforms-field-radio fieldset ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-page__form .wpforms-field-radio li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ラジオボタン（カスタムスタイル） */
.contact-page__form .wpforms-field-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #b2a581;
  border-radius: 50%;
  background-color: #ffffff;
  margin: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.contact-page__form .wpforms-field-radio input[type="radio"]:checked {
  border-color: #75612c;
  background-color: #75612c;
}

.contact-page__form .wpforms-field-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
}

.contact-page__form .wpforms-field-radio label {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 1.7;
  color: #42220f;
  margin: 0;
  cursor: pointer;
}

/* チェックボックスコンテナ（legend と選択肢の間の隙間を確保） */
.contact-page__form .wpforms-field-checkbox fieldset ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.contact-page__form .wpforms-field-checkbox li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* チェックボックス（カスタムスタイル） */
.contact-page__form .wpforms-field-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #75612c;
  border-radius: 2px;
  background-color: #ffffff;
  margin: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.contact-page__form .wpforms-field-checkbox input[type="checkbox"]:checked {
  background-color: #75612c;
  border-color: #75612c;
}

.contact-page__form .wpforms-field-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.contact-page__form .wpforms-field-checkbox label {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 1.7;
  color: #42220f;
  margin: 0;
  cursor: pointer;
}

.contact-page__form .wpforms-field-checkbox label a {
  color: #42220f;
  text-decoration: underline;
}

.contact-page__form .wpforms-field-checkbox label a:hover {
  text-decoration: none;
}

/* 送信ボタンコンテナ */
.contact-page__form .wpforms-submit-container {
  margin-top: 32px;
  width: 100%;
}

/* 送信ボタン */
.contact-page__form .wpforms-submit {
  width: 100%;
  padding: 24px;
  border-radius: 0;
  background-color: #75612c;
  color: #fefdfb;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.contact-page__form .wpforms-submit:hover {
  opacity: 0.9;
  filter: brightness(0.98);
}

.contact-page__form .wpforms-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* エラーメッセージ */
.contact-page__form .wpforms-error-container {
  margin-top: 16px;
}

.contact-page__form .wpforms-error {
  color: #e66d54;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
}

/* 成功メッセージ */
.contact-page__form .wpforms-confirmation-container {
  margin-top: 32px;
  padding: 24px;
  background-color: #f9f6f2;
  border: 1px solid #b2a581;
}

.contact-page__form .wpforms-confirmation-container-full {
  color: #42220f;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
}

/* パンくず */
.contact-page__breadcrumb {
  background-color: #fefdfb;
  padding: 0 160px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.78px;
  color: #42220f;
}

.contact-page__breadcrumb a {
  color: #42220f;
  text-decoration: none;
}

.contact-page__breadcrumb a:hover {
  text-decoration: underline;
}

.contact-page__breadcrumb-sep {
  color: #b2a581;
}

/* ======================================= タブレット (max-width: 1024px) ======================================= */
@media screen and (max-width: 1024px) {
  .contact-page__container {
    padding-left: 80px;
    padding-right: 80px;
  }

  .contact-page__breadcrumb {
    padding-left: 80px;
    padding-right: 80px;
  }
}

/* ======================================= SP (max-width: 1024px) ======================================= */
@media screen and (max-width: 1024px) {
  .contact-page {
    padding-top: 56px;
  }

  .contact-page__container {
    padding: 80px 24px 80px;
  }

  .contact-page__heading {
    gap: 12px;
    margin-bottom: 40px;
  }

  .contact-page__heading-en {
    font-size: 13px;
    letter-spacing: 1.04px;
  }

  .contact-page__heading-jp {
    font-size: 24px;
    letter-spacing: 1.92px;
  }

  .contact-page__form .wpforms-form {
    gap: 40px;
  }

  .contact-page__form .wpforms-field-container {
    gap: 40px;
  }

  .contact-page__form .wpforms-field fieldset {
    gap: 8px;
  }

  .contact-page__form .wpforms-field {
    gap: 12px;
  }

  .contact-page__form .wpforms-field-label {
    font-size: 14px;
    letter-spacing: 0.56px;
  }

  .contact-page__form .wpforms-required-label {
    font-size: 11px;
    letter-spacing: 0.44px;
    padding: 4px 8px;
  }

  .contact-page__form .wpforms-field input[type="text"],
  .contact-page__form .wpforms-field input[type="email"] {
    height: 56px;
    padding: 16px;
    font-size: 14px;
    letter-spacing: 0.56px;
  }

  .contact-page__form .wpforms-field textarea {
    height: 200px;
    padding: 16px;
    font-size: 14px;
    letter-spacing: 0.56px;
  }

  .contact-page__form .wpforms-field-radio fieldset ul {
    margin-top: 8px;
  }

  .contact-page__form .wpforms-field-checkbox fieldset ul {
    margin-top: 8px;
  }

  .contact-page__form .wpforms-field-radio input[type="radio"] {
    width: 14px;
    height: 14px;
  }

  .contact-page__form .wpforms-field-radio input[type="radio"]:checked::after {
    width: 5px;
    height: 5px;
  }

  .contact-page__form .wpforms-field-radio label {
    font-size: 14px;
    letter-spacing: 0.56px;
  }

  .contact-page__form .wpforms-field-checkbox label {
    font-size: 14px;
    letter-spacing: 0.56px;
  }

  .contact-page__form .wpforms-submit-container {
    margin-top: 24px;
  }

  .contact-page__form .wpforms-submit {
    height: 64px;
    padding: 0 24px;
    line-height: 64px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .contact-page__breadcrumb {
    padding: 0 24px 40px;
    font-size: 12px;
    letter-spacing: 0.72px;
  }
}
