/**
 * Override CSS
 * オーバーライドCSS
 * 
 * このファイルは非エンジニアがサーバー上で直接編集できます。
 * 全てのスタイルの最後に読み込まれるため、
 * ここに記載したスタイルが最優先で適用されます。
 * 
 * ========================================
 * 注意事項
 * ========================================
 * 
 * 1. 編集前に必ずバックアップを取ってください
 * 
 * 2. !important は基本的に不要です
 *    （このファイルが最後に読み込まれるため）
 * 
 * 3. 変更後はブラウザのキャッシュをクリアしてください
 *    - Windows: Ctrl + F5
 *    - Mac: Cmd + Shift + R
 * 
 * 4. CSSの書き方例:
 *    .クラス名 {
 *      プロパティ: 値;
 *    }
 * 
 * ========================================
 * 使用例
 * ========================================
 * 
 * 文字色を変更:
 * .header { color: #333; }
 * 
 * 背景色を変更:
 * .section { background-color: #f5f5f5; }
 * 
 * フォントサイズを変更:
 * .title { font-size: 24px; }
 * 
 * 余白を変更:
 * .content { padding: 20px; margin-bottom: 30px; }
 * 
 * 要素を非表示:
 * .banner { display: none; }
 * 
 */

/* ===== カスタムスタイルをここに記載 ===== */


/* Contact Form 7: Turnstile（送信ボタンの上・左右中央） */
.l-wpform-contact__turnstile {
  display: flex;
  justify-content: center;
  margin: 4rem 0 0;
}

.l-wpform-contact__turnstile + .l-wpform-contact__submit {
  margin-top: 2.5rem;
}

@media screen and (max-width: 767px) {
  .l-wpform-contact__turnstile {
    margin-top: 2.5rem;
  }

  .l-wpform-contact__turnstile + .l-wpform-contact__submit {
    margin-top: 1.5rem;
  }
}

/* Contact Form 7: 電話番号・郵便番号のエラー文を各欄ではなくグループの下に1つだけ出す */
.l-wpform-contact__tel,
.l-wpform-contact__zip {
  flex-wrap: wrap;
}

.l-wpform-contact__tel .wpcf7-not-valid-tip,
.l-wpform-contact__zip .wpcf7-not-valid-tip {
  display: none;
}

.l-wpform-contact__tel:has(.wpcf7-not-valid-tip)::after,
.l-wpform-contact__zip:has(.wpcf7-not-valid-tip)::after {
  content: "入力してください。";
  flex-basis: 100%;
  color: red;
  font-size: 0.875rem;
  line-height: 1.7142857143;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0.375rem 0 0;
}
