@charset "UTF-8";
/**
 * MW WP Form 用カスタムCSS
 * - <dl class="custom-form-container">構造に対応
 * - 入力画面・確認画面・完了画面で共通利用
 * - エラーメッセージ表示にも対応
 */

/* ───────── フォームコンテナ ───────── */
.custom-form-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 0;
}

/* ───────── ラベル（dt） ───────── */
.custom-form-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--abyss-navy);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 必須タグ */
.custom-required-tag {
  display: inline-flex;
  align-items: center;
  background: var(--abyss-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  line-height: 1.6;
  margin-left: 11px;
}
.custom-required-text {
  font-style: normal;
}

/* ───────── 入力フィールド（dd） ───────── */
.custom-form-field {
  margin: 0;
}
.custom-form-field input[type="text"],
.custom-form-field input[type="email"],
.custom-form-field input[type="tel"],
.custom-form-field input[type="url"],
.custom-form-field input[type="number"],
.custom-form-field textarea,
.custom-form-field select {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--abyss-line);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.7;
  background: #fff;
  color: var(--abyss-text);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-form-field input:focus,
.custom-form-field textarea:focus,
.custom-form-field select:focus {
  outline: none;
  border-color: var(--abyss-accent);
  box-shadow: 0 0 0 3px rgba(232, 146, 58, 0.15);
}
.custom-form-field textarea {
  resize: vertical;
  min-height: 160px;
}
.custom-form-field input::placeholder,
.custom-form-field textarea::placeholder {
  color: #b0b0b8;
}

.cf-turnstile div{
  text-align: center;
}

/* ───────── エラーメッセージ（Contact Form 7） ───────── */
.custom-form-field .wpcf7-not-valid-tip,
.wpcf7-not-valid-tip {
  display: block;
  color: #c93232;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}
.wpcf7-form .wpcf7-response-output {
  border: 1px solid #c93232;
  color: #c93232;
  background: #fff5f5;
  padding: 12px 16px;
  margin: 16px 0 0;
  border-radius: 4px;
  font-size: 14px;
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: #2c7a3a;
  background: #f1faf3;
  color: #2c7a3a;
}
/* CF7 が入力欄を <span class="wpcf7-form-control-wrap"> でラップするので、
   そのままで横幅 100% が効くよう調整 */
.custom-form-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ───────── 送信ボタン ───────── */
.custom-submit-button {
  text-align: center;
  margin: 48px 0 0;
}
.custom-submit-button input[type="submit"],
.custom-submit-button input[type="button"],
.custom-submit-button button {
  display: inline-block;
  background: var(--abyss-navy);
  color: #fff;
  padding: 14px 40px;
  border: 1px solid var(--abyss-navy);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin: 6px;
  min-width: 200px;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.custom-submit-button input[type="submit"]:hover,
.custom-submit-button input[type="button"]:hover,
.custom-submit-button button:hover {
  background: var(--abyss-accent);
  border-color: var(--abyss-accent);
}
.custom-submit-button input[type="submit"]:disabled,
.custom-submit-button input[type="button"]:disabled,
.custom-submit-button button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ───────── CF7 送信中スピナー ───────── */
.wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
}

/* ───────── レスポンシブ ───────── */
@media (max-width: 768px) {
  .custom-form-container {
    gap: 22px;
    margin-top: 24px;
  }
  .custom-form-field input[type="text"],
  .custom-form-field input[type="email"],
  .custom-form-field input[type="tel"],
  .custom-form-field textarea,
  .custom-form-field select {
    font-size: 16px; /* iOSのズーム防止 */
  }
  .custom-submit-button {
    margin-top: 32px;
  }
  .custom-submit-button input[type="submit"],
  .custom-submit-button input[type="button"],
  .custom-submit-button button {
    display: block;
    width: 100%;
    margin: 8px 0;
    min-width: 0;
  }
}
