.page-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 28px;
    /* font-weight: 600; */
    margin-bottom: 30px;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
}


/* placeholder属性がない、または値が空の場合の対応 */
.wpcf7 input:not([value=""]):not(:focus) + label,
.wpcf7 textarea:not(:empty):not(:focus) + label,
.wpcf7 input:valid + label,
.wpcf7 textarea:valid + label {
  top: 0;
  font-size: 12px;
  color: #b02a2a;
  font-weight: 600;
}

.wpcf7 .form-group label.active {
  top: 0;
  font-size: 12px;
  color: #b02a2a;
  font-weight: 600;
}


/* フォーム全体のスタイル */
.wpcf7 {
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
}

/* フォームグループ（フローティングラベル用） */
.wpcf7 .form-group {
  position: relative;
  margin-bottom: 30px;
}

/* 入力フィールドの共通スタイル */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 20px 15px 10px 15px;
  font-size: 16px;
  border: none;
  border-bottom: 2px solid #ddd;
  background-color: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

/* テキストエリアの高さ調整 */
.wpcf7 textarea {
  min-height: 100px;
  resize: vertical;
  padding-top: 25px;
}

/* フローティングラベルのスタイル */
.wpcf7 .form-group label {
  position: absolute;
  left: 15px;
  top: 20px;
  font-size: 16px;
  color: #999;
  pointer-events: none;
  transition: all 0.3s ease;
  background-color: transparent;
}

/* 入力時・フォーカス時のラベルアニメーション */
.wpcf7 input:focus + label,
.wpcf7 textarea:focus + label,
.wpcf7 input:not(:placeholder-shown) + label,
.wpcf7 textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #b02a2a;
  font-weight: 600;
}

/* フォーカス時のボーダー */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-bottom-color: #b02a2a;
}

/* 送信ボタンのスタイル */
.wpcf7 input[type="submit"] {
  width: 50%;
  margin: auto;	
  padding: 20px 30px;
  background-color: #dc3545;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
 display: block;	
}

/* 送信ボタンのホバーエフェクト */
.wpcf7 input[type="submit"]:hover {
  background-color: #b02a2a;
  transform: translateY(-2px);
}

/* 送信ボタンのアクティブ状態 */
.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

/* エラーメッセージのスタイル */
.wpcf7-not-valid-tip {
  display: block;
  color: #ff0000;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

/* フォーム送信時のエラーメッセージ（全体） */
.wpcf7-response-output {
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

/* バリデーションエラーメッセージ */
.wpcf7-validation-errors {
  background-color: #ffebee;
  color: #ff0000;
  border: 1px solid #ff0000;
}

/* 送信成功メッセージ */
.wpcf7-mail-sent-ok {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

/* 送信失敗メッセージ */
.wpcf7-mail-sent-ng {
  background-color: #ffebee;
  color: #ff0000;
  border: 1px solid #ff0000;
}

/* 入力エラー時のフィールドスタイル */
.wpcf7-not-valid {
  border-bottom-color: #ff0000 !important;
}

/* 入力エラー時のラベル */
.wpcf7-not-valid + label {
  color: #ff0000 !important;
}

/* スピナー（送信中アイコン）を非表示 */
.wpcf7 .ajax-loader {
  display: none;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
  .wpcf7 {
    padding: 5px;
  }
  
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    font-size: 16px; /* iOSでズームを防ぐため */
  }
}