/* =========================================
   contact.css (NAKATOMI)
   Contact Form 7 専用
   - ページ背景：薄グレー
   - フォーム：中央寄せ + 白カード + 最大幅
   - 入力：統一デザイン
   - 送信ボタン：ゴールド/幅240/中央寄せ
   ※ .wpcf7（CF7標準）だけで完結。独自class不要
========================================= */

/* ページ背景（contactページでこのCSSを読み込む前提） */
body{
  background: #f2f2f2;
}

/* フォーム外枠（中央寄せの土台） */
.wpcf7{
  display: flex;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

/* フォーム本体（白カード） */
.wpcf7 form,
.wpcf7 .wpcf7-form{
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 26px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  box-sizing: border-box;
}

/* ラベル */
.wpcf7 label{
  display: block;
  margin: 0 0 8px;
  font-weight: 600;
}

/* 入力共通 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea{
  width: 100%;
  box-sizing: border-box;

  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;

  font-size: 16px;
  line-height: 1.5;

  /* select だけ太字になる事故対策 */
  font-weight: 400 !important;
}

/* プレースホルダ */
.wpcf7 ::placeholder{
  color: rgba(0,0,0,.45);
}

/* textarea */
.wpcf7 textarea{
  min-height: 180px;
  resize: vertical;
}

/* focus */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  outline: none;
  border-color: rgba(47,110,74,.55);
  box-shadow: 0 0 0 3px rgba(47,110,74,.14);
}

/* 余白：段落や改行（CF7は <p> で囲うことが多い） */
.wpcf7 p{
  margin: 0 0 16px;
}
.wpcf7 p:last-of-type{
  margin-bottom: 0;
}

/* 送信ボタン：中央 / 幅240 / ゴールド */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"]{
  width: 240px;
  max-width: 100%;
  height: 56px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 34px auto 10px;
  padding: 0 16px;

 /* background: rgba(164,131,98,1); */
 background: rgb(42, 48, 54);
  color: #fff;
  -webkit-text-fill-color: #fff;

  border: none;
  border-radius: 6px;
  box-shadow: none;

  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;

  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* hover */
@media (hover:hover){
  .wpcf7 input[type="submit"]:hover,
  .wpcf7 button[type="submit"]:hover{
    filter: brightness(.95);
  }
}

/* 送信中スピナー */
.wpcf7 .wpcf7-spinner{
  display: block;
  margin: 10px auto 0;
}

/* エラー文 */
.wpcf7 .wpcf7-not-valid-tip{
  margin-top: 6px;
  font-size: 14px;
}

/* 送信結果メッセージ枠 */
.wpcf7 .wpcf7-response-output{
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  box-sizing: border-box;
}

/* モバイル微調整 */
@media (max-width: 768px){
  .wpcf7{
    padding: 34px 14px;
  }
  .wpcf7 form,
  .wpcf7 .wpcf7-form{
    padding: 22px 18px;
  }
}




/* =========================================
   見出しと入力欄の間の余白調整
========================================= */

/* ラベルと入力欄の間 */
.wpcf7 label{
  margin-bottom: 10px;   /* ← 余白を少し広げる */
}

/* 各項目ブロックの下余白 */
.wpcf7 p{
  margin-bottom: 22px;   /* ← 全体的に少しゆとり */
}


/* =========================================
   送信ボタンを完全中央にする
========================================= */

/* ボタンを中央配置 */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"]{
  display: block;          /* inline-flex → block に変更 */
  margin: 40px auto 0;     /* ← autoで左右中央 */
}

/* =========================================
   ラベルと入力欄の間に余白（CF7標準構造対応）
========================================= */

/* label内の改行(br)の直後にある入力ラッパーをブロック化して余白を作る */
.wpcf7 label .wpcf7-form-control-wrap{
  display: block;
  margin-top: 10px;   /* ← ここで調整（8〜14px推奨） */
}

/* labelがそもそもブロックでないテーマ対策 */
.wpcf7 label{
  display: block;
}