@charset "UTF-8";

/* ================================
  CF7 全体
================================ */
.wpcf7 {
  margin: 8rem auto 0;
}
@media screen and (max-width: 767px) {
  .wpcf7 {
    margin: 5rem auto 0;
  }
}

/* pタグのデフォルト余白（CF7特有） */
.wpcf7 p:not([class]) + p {
  margin-top: 30px;
}

/* label 基本 */
.wpcf7 label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
}
@media screen and (max-width: 767px) {
  .wpcf7 label {
    font-size: 15px;
  }
}

/* 必須・任意 */
.wpcf7 .required {
  background-color: #004397;
  color: #fff;
  padding: 3px 6px;
  margin-right: 10px;
  font-size: 13px;
  font-weight: bold;
}
.wpcf7 .any {
  background-color: #D7DDE4;
  color: #6E8095;
  padding: 3px 6px;
  margin-right: 10px;
  font-size: 13px;
  font-weight: bold;
}

/* テキスト入力 */
.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-email,
.wpcf7 .wpcf7-tel,
.wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid #D7DDE4;
  margin-top: 20px;
  background-color: #fff;
  color: #000;
}
@media screen and (max-width: 767px) {
  .wpcf7 .wpcf7-text,
  .wpcf7 .wpcf7-email,
  .wpcf7 .wpcf7-tel,
  .wpcf7 textarea {
    margin-top: 10px;
  }
}
.wpcf7 textarea {
  height: 190px;
  resize: vertical;
}

/* ================================
  ラジオボタン
================================ */
.wpcf7 .radio-group {
  display: flex;
  align-items: baseline;
  gap: 32px;
  margin-top: 16px;
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .wpcf7 .radio-group {
    flex-direction: column;
    gap: 0;
  }
}

/* CF7のラッパー調整 */
.wpcf7 .radio-group .wpcf7-list-item {
  margin: 0;
  display: inline-flex;
  position: relative;
}

/* SPで縦並び時の余白 */
@media screen and (max-width: 767px) {
  .wpcf7 .radio-group .wpcf7-list-item {
    margin-bottom: 20px;
  }

  .wpcf7 .radio-group .wpcf7-list-item.last {
    margin-bottom: 0;
  }
}

.wpcf7 .radio-group .wpcf7-list-item-label {
  display: inline-flex;
  align-items: flex-start;
  font-weight: normal;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  padding-left: 44px;
  padding-right: 20px;
  min-height: 32px;
}

/* radio本体（CF7が生成） */
.wpcf7 .radio-group input[type="radio"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
  z-index: 1;
}

/* ○（疑似要素で作成） */
.wpcf7 .radio-group .wpcf7-list-item-label::before {
  content: "";
  width: 32px;
  height: 32px;
  border: 2px solid #D7DDE4;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  pointer-events: none;
}

/* ●（選択時） */
.wpcf7 .radio-group input[type="radio"]:checked
+ .wpcf7-list-item-label::after {
  content: "";
  width: 18px;
  height: 18px;
  background: #004397;
  border-radius: 50%;
  position: absolute;
  left: 7px;
  top: 7px;
  pointer-events: none;
}

/* ================================
  プライバシーポリシーテキスト
================================ */
.wpcf7 .form-privacy-policy {
  margin-top: 40px;
  font-size: 14px;
  line-height: 1.8;
  max-width: 1000px;
  margin-inline: auto;
}

.wpcf7 .form-privacy-policy a {
  color: #00B7EC;
  text-decoration: underline;
}

/* ================================
  プライバシーチェック
================================ */
.wpcf7 .privacy-box {
  max-width: 380px;
  background: #004397;
  border-radius: 5px;
  padding: 18px 20px;
  margin: 30px auto 0;
  min-height: 74px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.wpcf7 .privacy-box .wpcf7-list-item {
  margin: 0;
  width: 100%;
}

.wpcf7 .privacy-box .wpcf7-list-item-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  color: #fff !important;
  font-size: 16px;
  cursor: pointer;
  font-weight: normal;
  line-height: 1.4;
}

.wpcf7 .privacy-box input[type="checkbox"] {
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  flex-shrink: 0;
  cursor: pointer;
}

.wpcf7 .privacy-box,
.wpcf7 .privacy-box * {
  color: #fff !important;
  padding-right: 10px;
}

/* ================================
  送信ボタン
================================ */
.wpcf7 .wpcf7-submit.btn-contact-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 576px;
  margin: 56px auto 0;
  text-align: center;
  padding: 24px 30px;
  border-radius: 5px;
  background: var(--color-accent);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 .wpcf7-submit.btn-contact-form:hover {
  opacity: 0.8;
}

.wpcf7 .wpcf7-submit.btn-contact-form img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

@media screen and (max-width: 767px) {
  .wpcf7 .wpcf7-submit.btn-contact-form {
    width: 100%;
    max-width: 576px;
  }
}

/* ================================
  エラー表示
================================ */
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  color: #e00;
  font-size: 13px;
  font-weight: normal;
  margin-top: 6px;
}

.privacy-error {
  color: #e00;
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}