/* ==========================================================
   出演・お問合せページ（新デザイン 2026-07-31 カンプ準拠）
   ========================================================== */

/* ---------- お問い合わせ案内 ---------- */
.contact {
  padding: clamp(56px, 8vw, 104px) var(--space-sm);
}

.contact__inner {
  max-width: 880px;
  margin: 0 auto;
}

.contact__boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}

.contact-box {
  border: 1px solid #333;
  background: var(--color-white);
  padding: clamp(24px, 3.5vw, 36px) clamp(20px, 3vw, 32px);
  text-align: center;
}

.contact-box--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  text-align: left;
}

.contact-box--wide .contact-box__body {
  text-align: center;
}

.contact-box__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.contact-box__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  margin-bottom: 14px;
}

.contact-box__text {
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.contact-box__text a {
  color: var(--color-red);
  text-decoration: underline;
}

.contact-box__text a:hover {
  opacity: 0.7;
}

.contact-box__btns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.contact-box__btns .btn {
  width: 100%;
  max-width: 320px;
  padding-inline: 20px;
  white-space: nowrap;
}

/* ---------- リード文 ---------- */
.contact__lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* ---------- お問い合わせフォーム（Contact Form 7 置き換え前提） ---------- */
.contact__form {
  margin-top: clamp(40px, 6vw, 64px);
  background: #f2f2f2;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 64px);
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.form-required {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding: 12px 14px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid #ff5faa;
  outline-offset: -1px;
  border-color: #ff5faa;
}

.form-field--radio {
  border: none;
  padding: 0;
  margin-inline: 0;
}

.form-field--radio legend {
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.form-note-inline {
  font-size: 13px;
  font-weight: 400;
  color: #777;
  margin-left: 8px;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #ff5faa;
}

.form-field textarea {
  resize: vertical;
}

.form-field ::placeholder {
  color: #999;
}

/* ---------- 個人情報保護への同意 ---------- */
.form-consent {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: center;
}

.form-consent__text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.form-consent__text a {
  color: var(--color-red);
  text-decoration: underline;
}

.form-consent__text a:hover {
  opacity: 0.7;
}

.form-consent__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.form-consent__check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #ff5faa;
}

.form-submit {
  text-align: center;
  margin-top: clamp(28px, 4vw, 40px);
}

.form-submit .btn {
  min-width: 240px;
}

/* ==========================================================
   Contact Form 7 対応
   CF7 は独自のマークアップ（.wpcf7-form-control-wrap / .wpcf7-list-item）を
   出力するため、静的版の .form-radio / .form-radio-group が存在しない。
   そのままだと .form-field input{width:100%} がラジオ・チェックボックスにも当たり、
   丸が横幅いっぱいに広がって文字が下に回り込んでしまう。
   ========================================================== */

/* 入力欄のラッパー（既定は inline-block）をブロック化して幅100%を効かせる */
.contact__form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ラジオ・チェックボックスは幅100%・枠線・余白の指定から除外する */
.contact__form input[type="radio"],
.contact__form input[type="checkbox"],
.form-field input[type="radio"],
.form-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  accent-color: #ff5faa;
}

/* 選択肢を縦並びにする（静的版の .form-radio-group 相当） */
.contact__form .wpcf7-radio,
.contact__form .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__form .wpcf7-list-item {
  margin: 0;
}

/* 丸とテキストを横並び・上下中央に（静的版の .form-radio 相当） */
.contact__form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
}

/* 同意チェックだけは中央寄せのまま（.form-consent が text-align:center） */
.contact__form .wpcf7-acceptance .wpcf7-form-control-wrap,
.contact__form .form-consent .wpcf7-form-control-wrap {
  display: inline-block;
  width: auto;
}

.contact__form .form-consent .wpcf7-list-item label {
  display: inline-flex;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* 任意選択にするため [checkbox ... exclusive] を使っている項目は、
   見た目だけラジオボタン（丸）に揃える。
   ※CF7の [radio] は仕様上つねに必須になるため、任意項目には使えない。
   　同意チェック（.wpcf7-acceptance）は四角のままにするので対象外。 */
.contact__form .wpcf7-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #8a8a94;
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
}

.contact__form .wpcf7-checkbox input[type="checkbox"]:checked {
  border-color: #ff5faa;
}

.contact__form .wpcf7-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ff5faa;
}

.contact__form .wpcf7-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid #ff5faa;
  outline-offset: 2px;
}

/* エラー表示・送信結果メッセージ */
.contact__form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-red);
}

.contact__form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
}

/* 送信中スピナー。
   CF7 は送信ボタンの隣にスピナー（幅24px＋左右マージン24px）を常に出力する。
   非表示のときも場所を取るため、inline のままだとボタンとスピナーの2つで
   中央揃えされ、ボタンだけが左に36pxずれて見える。
   ブロック化して中央下に置くことで、ボタンが正しく中央に来る。 */
.contact__form .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* 送信ボタンが無効なとき（同意チェック未チェック時など）は、
   押せないことが見た目で分かるようにする */
.contact__form .wpcf7-submit:disabled {
  background: #b9b9c2;
  border-color: #b9b9c2;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}

.contact__form .wpcf7-submit:disabled:hover {
  background: #b9b9c2;
  transform: none;
}

@media (max-width: 767px) {
  .contact__boxes {
    grid-template-columns: 1fr;
  }

  .contact-box--wide {
    grid-template-columns: 1fr;
  }

  .contact-box__text br {
    display: none;
  }
}
