.cf7-section {
  margin-bottom: 24px;
}

.cf7-section[hidden] {
  display: none;
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.req {
  color: #c00;
  margin-left: 6px;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
}

.field__radio label,
.field__checkbox label {
  display: inline-block;
  margin-right: 12px;
}

.field__textarea {
  min-height: 140px;
}

.actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 18px;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  cursor: pointer;
}

.btn--ghost {
  background: #fff;
  color: #333;
}

.btn--submit {
  background: #0066cc;
  border-color: #0066cc;
}

.confirm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.confirm-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  gap: 24px;
}

.confirm-label {
  display: block;
  width: 160px;
  font-weight: 600;
}

.confirm-value {
  display: block;
  flex: 1;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
  display: none !important;
}

/* エラーメッセージ表示 */
.wpcf7-not-valid-tip {
  display: block;
  color: #c00;
  font-size: 0.9em;
  margin-top: 4px;
}

.wpcf7-response-output {
  padding: 12px;
  margin: 16px 0;
  border: 2px solid #c00;
  background: #ffe0e0;
  color: #c00;
}

.wpcf7-response-output.wpcf7-validation-errors {
  display: block !important;
}

/* スピナーを常に非表示 */
.wpcf7-spinner {
  display: none !important;
}

/* 郵便番号とご住所を1つの項目としてまとめる */
.field--postal-code {
  margin-bottom: 8px;
  /* 下のマージンを小さく */
}

.field--postal-code+.field--address {
  margin-top: 0;
  /* 上のマージンをゼロに */
}

/* 郵便番号のp要素の余白を調整 */
.field--postal-code>p {
  margin-bottom: 12px !important;
}

.field--address {
  margin-bottom: 1.8em;
}

/* 住所のp要素の余白を調整 */
.field--address>p {
  margin-bottom: 12px !important;
}

/* フィールド説明文のスタイル */
.field__note {
  font-size: 0.85em;
  color: #666;
  margin: 4px 0 0 0;
}

/* 確認画面でプライバシーポリシーの項目を非表示 */
.cf7-section--confirm .confirm-list li[data-confirm-field="privacy"] {
  display: none;
}

/* 郵便番号の入力欄幅を調整 */
.field--postal-code .field__input {
  max-width: 200px;
}

/* 日付入力欄の幅を調整 */
input[type="date"] {
  position: relative;
  cursor: pointer;
  max-width: 200px;
  font-weight: 400;
  margin-bottom: 12px;
  /* 下側に余白を追加 */
}

/* 年の両側の半角スペースを削除 */
input[type="date"]::-webkit-datetime-edit-year-field {
  padding: 0 !important;
  margin: 0 !important;
}

/* 年と月の間のスペースを削除 */
input[type="date"]::-webkit-datetime-edit-text {
  padding: 0 !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

/* 時間選択欄のフォントウェイトを調整 */
.field__select {
  font-weight: 400;
}

/* 郵便番号と住所の入力欄の間隔を調整 */
.field--postal-code {
  margin-bottom: 12px;
  /* 8pxから12pxに変更 */
}