/* Contact Form 7 全体 */
.wp-block-contact-form-7-contact-form-selector {
  width: 100%;
}

.wpcf7 form {
  margin: 0 auto;     /* 中央寄せ */
  padding: 2em;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: "Helvetica Neue", "Hiragino Sans", "Meiryo", sans-serif;
  line-height: 1.6;
}

.wpcf7-block {
  margin-bottom: 1.2em;
}

.wpcf7 form hr {
  border-top: 2px dashed #ccc;
}

.wpcf7 form .required {
  display: inline-block;
  margin-left: 10px;
  color: #f17171;
}

.wpcf7 form .inline-group {
  display: flex;
  gap: 20px;
}

/* ラベルと入力要素のベース */
.wpcf7 form p {
  margin-bottom: 1.2em;
}

.wpcf7 form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4em;
  color: #333;
  font-size: 14px;
}

/* テキスト系フィールド */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.7em 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
  outline: none;
}

/* プルダウン（optgroup見出し強調） */
.wpcf7 select optgroup {
  font-weight: bold;
  color: #444;
  background: #f5f5f5;
}

/* ラジオボタン */
.wpcf7 input[type="radio"] {
  margin-right: 0.3em;
}
.wpcf7 .wpcf7-list-item {
  display: inline-block;
  margin-right: 1em;
  font-weight: normal;
}

/* チェックボックス (acceptance) */
.wpcf7 input[type="checkbox"] {
  margin-right: 0.5em;
}
.wpcf7-acceptance label {
  font-weight: normal;
  color: #555;
}

/* テキストエリア */
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* 送信ボタン */
.wpcf7 input[type="submit"],
.wpcf7 input[type="reset"] {
  background: #0073aa;
  color: #fff;
  font-size: 15px;
  padding: 0.8em 2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5em;
  transition: background 0.2s, transform 0.1s;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="reset"]:hover {
  background: #005f8d;
}

.wpcf7 input[type="submit"]:active,
.wpcf7 input[type="reset"]:active {
  transform: scale(0.97);
}

/* エラーメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
  color: #d93025;
  font-size: 13px;
  margin-top: 0.3em;
}

.wpcf7 form.invalid .wpcf7-response-output {
  border: 1px solid #d93025;
  color: #d93025;
  background: #fff5f5;
  padding: 0.7em;
  border-radius: 4px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #46b450;
  color: #155724;
  background: #e6f9ec;
  padding: 0.7em;
  border-radius: 4px;
}