.wpcf7-list-item {
  margin: 0!important;
}

/* --------------------------------
  Header
-------------------------------- */
.Header-Menu {
  display: flex;
}

/* --------------------------------
  Main
-------------------------------- */
.Page-Wrapper::after {
  content: 'CONTACT';
}

.Contact-Description {
  margin-bottom: 30px;
  font-size: 15px;
}

.Contact-Field {
  display: flex;
  flex-direction: column;
}

.Contact-Label {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 20px;
}

.Contact-Textarea {
  resize: none;
  min-height: 180px;
}

.Contact-Required {
  color: #FF8A24;
  font-weight: bold;
}

.Contact-Action {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 共通：初期（未入力） */
.Contact-Input,
.Contact-Textarea {
  background-color: #FAD715;
  border: 1px solid #000;
  padding: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
  border-radius: 5px;
  width: 100%;
}

/* 入力済み */
.Contact-Input.Filled,
.Contact-Textarea.Filled {
  background-color: #FFFFFF;
}

/* プライバシーフィールド */
.Contact-Field--Privacy {
  margin-top: 18px;
  font-size: 16px;
  position: relative;
}

/* 以下プラグイン指定 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* inputはクリック可能のまま透明化 */
.wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}

/* ラベル全体の箱組み */
.wpcf7-list-item label {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* テキスト側に左パディング */
.wpcf7-list-item .wpcf7-list-item-label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.6;
}

/* 左の黄色いボックス */
.wpcf7-list-item .wpcf7-list-item-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid #000;
  border-radius: 4px;
  background: #FAD715;
  transition: background-color .3s;
}

/* チェック時の白地＋オレンジのスラッシュ */
.wpcf7-list-item input[type="checkbox"]:checked ~ .wpcf7-list-item-label::before {
  background: #fff;
}

.wpcf7-list-item input[type="checkbox"]:checked ~ .wpcf7-list-item-label::after {
  content: "／";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translate(-50%,-55%);
  font-size: 18px;
  color: #FF8A24;
}

/* プライバシーポリシーのリンク見た目 */
.Contact-Privacy-Link {
  text-decoration: none;
  border-bottom: 1px solid #FF8A24;
  color: inherit;
  transition: color .3s, border-color .3s;
}
.Contact-Privacy-Link:hover {
  color: #FF8A24;
  border-color: #FF8A24;
}

/* 送信ボタンの状態 */
.Contact-Button {
  background: #AAA;
  color: #666666;
  border: 1px solid #000;
  padding: 8px 30px;
  font-size: 24px;
  font-weight: bold;
  border-radius: 27px;
  line-height: 1.4;
  cursor: not-allowed;
  transition: background-color .3s,color .3s;
}

.Contact-Button.enabled {
  background: #FAD715;
  color: #000;
  cursor: pointer;
}

.Contact-Button.enabled:hover {
  background: #FF8A24;
  color: #fff;
}

/* エラーリスト */
.screen-reader-response {
  display: none;
}

/* CF7バリデーション対応追加 */
.wpcf7-form-control.wpcf7-not-valid {
  background-color: #FF8A24;
  border-color: #FF8A24;
}

/* 全体のエラーメッセージ（送信ボタンの下に出る） */
.wpcf7-response-output {
  color: #FF8A24;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* 各フィールドごとのエラーメッセージ */
.wpcf7-not-valid-tip {
  display: block;
  color: #FF8A24;
  font-size: 0.875rem;
  margin-top: 4px;
}

@media screen and (max-width: 768px) {
  .Contact-Action {
    flex-direction: column;
    align-items: stretch;
  }

  .Contact-Button {
    margin: 0 auto;
    width: 100%;
    font-size: 20px;
    padding: 12px;
  }

  .wpcf7-response-output {
    white-space: normal;
    margin-top: 6px;
  }
}
