/* CONTACT ページ専用スタイル */

/* 明るい背景ページ */
.p-page--light .p-header {
  background: var(--color-navy);
}

.p-contact {
  background: var(--color-bg-gray);
  padding: clamp(112px, 72px + 8vw, 176px) 0 clamp(80px, 56px + 5vw, 128px);
}

.p-contact__inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: var(--gutter-sm);
}

/* 見出し */
.p-contact__head {
  text-align: center;
  margin-bottom: clamp(28px, 20px + 1.4vw, 40px);
}

.p-contact__title {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 8px + 1.6vw, 32px);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(36px, 26px + 2.6vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text);
}

.p-contact__title::before,
.p-contact__title::after {
  content: "";
  width: clamp(36px, 20px + 3vw, 72px);
  height: 2px;
  background: var(--color-text);
  flex-shrink: 0;
}

.p-contact__lead {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-sub);
  font-size: clamp(16px, 15px + 0.3vw, 18px);
  line-height: 2;
}

/* フォーム */
.p-contact__form {
  max-width: 640px;
  margin: clamp(44px, 28px + 2.4vw, 72px) auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 16px + 0.8vw, 30px);
}

.p-contact__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-contact__label {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.p-contact__req {
  margin-left: 6px;
  color: #d13a4b;
}

.p-contact__control {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font-jp);
  font-size: 16px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.p-contact__control::placeholder {
  color: #9aa0b5;
}

.p-contact__control:focus {
  outline: none;
  border-color: var(--color-gold-soft);
  box-shadow: 0 0 0 3px rgba(142, 133, 43, 0.18);
}

/* select */
select.p-contact__control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234a4d6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

select.p-contact__control:invalid {
  color: #9aa0b5;
}

textarea.p-contact__control {
  min-height: 180px;
  line-height: 1.8;
  resize: vertical;
}

/* 送信ボタン（現状の見た目：黄色・中央寄せ・黒文字） */
.p-contact__submit {
  display: block;
  width: 100%;
  max-width: 360px;
  min-height: 60px;
  margin: clamp(8px, 4px + 0.6vw, 16px) auto 0;
  padding: 0.5rem 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: #ffd700;
  color: #333;
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.1s;
}

.p-contact__submit:hover {
  background: #393f4c;
  color: #ffd700;
}

.p-contact__submit:active {
  transform: translateY(1px);
}

/* Contact Form 7（フォームタグは独自クラス .p-contact__* でレイアウト） */
.p-contact__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 16px + 0.8vw, 30px);
}

.p-contact__form .wpcf7-form-control-wrap {
  display: block;
}

/* バリデーションエラー */
.p-contact__form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #d13a4b;
  font-size: 16px;
}

.p-contact__form .p-contact__control.wpcf7-not-valid {
  border-color: #d13a4b;
}

/* 送信結果メッセージ */
.p-contact__form .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1.7;
}

/* 送信中スピナー */
.p-contact__form .wpcf7-spinner {
  margin: 12px auto 0;
}
