/* フォーム全体 */
.wpcf7 {
  background-color: #f3f1ee !important;
  padding: 48px !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  max-width: 640px !important;
  margin: 60px auto !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  border: 1px solid #e0dcd6 !important;
}

/* ラベル */
.wpcf7-form label {
  /*display: block;*/
  margin-bottom: 10px !important;
  color: #4a4a4a !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* 入力欄（text, email, tel, textarea共通） */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100% !important;
  padding: 0 40px 0 16px !important;
  font-size: 16px !important;
  border: 1px solid #ccc !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: #333 !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

/* input の高さ */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
  height: 48px !important;
  line-height: 48px !important;
}

/* textarea 専用設定 */
.wpcf7 textarea {
  height: 144px !important;
  line-height: 1.5 !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  resize: vertical !important;
}

/* select 専用 */
body .wpcf7 form select.wpcf7-select {
  width: 100% !important;
  height: 48px !important;
  padding: 12px 40px 12px 16px !important;
  font-size: 16px !important;
  border: 1px solid #ccc !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: #333 !important;
  background-image: url("data:image/svg+xml,%3Csvg%20fill='%239b8d77'%20height='20'%20viewBox='0%200%2024%2024'%20width='20'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M7%2010l5%205%205-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  box-sizing: border-box !important;
}

/* IE対策 */
select::-ms-expand {
  display: none;
}

/* プレースホルダー */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #aaa !important;
  font-style: italic !important;
}

/* フォーカス時 */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #9b8d77 !important;
  box-shadow: 0 0 0 3px rgba(155, 141, 119, 0.2) !important;
  outline: none !important;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  background: linear-gradient(135deg, #9b8d77, #a99a82) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 36px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 32px !important;
  cursor: pointer !important;
  display: inline-block !important;
  margin-top: 32px !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.3s ease !important;
}

.wpcf7 input[type="submit"]:hover {
  background: #8a7b66 !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* フォーム項目ラップ */
.wpcf7-form-control-wrap {
  margin-bottom: 26px !important;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .wpcf7 {
    padding: 32px 20px !important;
    margin: 32px 16px !important;
  }
}
.wpcf7 .required-mark {
  color: #e60033 !important;
  font-weight: bold !important;
  margin-left: 4px !important;
}

.wpcf7 .form-required-note {
  margin-top: 20px !important;
  font-size: 14px !important;
  color: #777 !important;
  text-align: right !important;
  font-style: italic !important;
}
html body .wpcf7-form label .required-mark {
  color: #e60033 !important;
}
.cf7-error-msg {
  color: #e60033;
  font-size: 13px;
  margin-top: 4px;
}

.wpcf7 input[aria-required="true"],
.wpcf7 textarea[aria-required="true"],
.wpcf7 select[aria-required="true"] {
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
}
.required-mark {
  color: #e60033;
  font-weight: bold;
  margin-left: 4px;
}

.form-group {
  margin-top: 16px;
  margin-bottom: 8px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 8px;
}

.form-checkbox input[type="checkbox"] {
  margin-right: 6px;
}

.form-note {
  font-size: 13px;
  color: #555;
  margin-top: 12px;
  margin-bottom: 4px;
}
.wpcf7-form-control.wpcf7-acceptance {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.form-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.form-checkbox .required-mark {
  color: #e60033;
  font-weight: bold;
  margin-left: 4px;
}

.wpcf7-not-valid-tip {
  margin-left: 8px;
  color: #e60033;
  font-size: 13px;
}
/* チェックボックス専用ラベルは横並びに */
.form-checkbox label {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.wpcf7-acceptance label .required-mark {
  color: #e60033;
  font-weight: bold;
  margin-left: 4px;
}