@charset "UTF-8";
/* -------------------------------------
カラー
------------------------------------- */
.form-block {
  padding-block: 8.5rem 2rem;
  max-width: 82.5rem;
  margin-inline: auto;
}

.form_item {
  display: grid;
  align-items: center;
}
.form_item + .form_item {
  margin-top: 4.8rem;
}
@media screen and (max-width: 768px) {
  .form_item + .form_item {
    margin-top: 3.8rem;
  }
}

.form_item-ttl {
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.5;
}
.form_item-ttl.must::before {
  content: "必須";
  display: inline-block;
  background-color: #DB7814;
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  margin-right: 0.9rem;
  border-radius: 0.3rem;
}
@media screen and (max-width: 768px) {
  .form_item-ttl.must::before {
    font-size: 1.2rem;
  }
}
.form_item-ttl:not(.must)::before {
  content: "任意";
  display: inline-block;
  background-color: #EEE;
  border: 1px solid #D4D2CF;
  color: #333;
  text-align: center;
  font-weight: 400;
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  margin-right: 0.9rem;
  border-radius: 0.3rem;
}
@media screen and (max-width: 768px) {
  .form_item-ttl:not(.must)::before {
    font-size: 1.2rem;
  }
}

.form_item-field input[type=text],
.form_item-field input[type=email],
.form_item-field input[type=tel],
.form_item-field textarea {
  width: 100%;
  background-color: #fff;
  border: 1px solid #DFDCD9;
  padding: 2rem;
  border-radius: 0.5rem;
  transition: 0.15s;
}
@media screen and (max-width: 768px) {
  .form_item-field input[type=text],
  .form_item-field input[type=email],
  .form_item-field input[type=tel],
  .form_item-field textarea {
    padding: 1.5rem;
  }
}
.form_item-field input[type=text]:focus,
.form_item-field input[type=email]:focus,
.form_item-field input[type=tel]:focus,
.form_item-field textarea:focus {
  outline: none;
  border-color: #DB7814;
}
.form_item-field select {
  width: 100%;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #DFDCD9;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  transition: 0.15s;
}
.form_item-field select:focus {
  outline: none;
  border-color: #DB7814;
}
.form_item-field .wpcf7-list-item > label {
  cursor: pointer;
}

.form_item-wrap {
  height: 27.7rem;
  overflow-y: scroll;
  border: 1px solid #DFDCD9;
  background-color: #fff;
  border-radius: 0.5rem;
}

.form_item-pp {
  padding: 2rem;
  line-height: 1.5;
}
@media screen and (max-width: 768px) {
  .form_item-pp {
    padding: 1.5rem;
  }
}
.form_item-pp .--title {
  display: block;
}

.form_item-pp_check {
  margin-top: 2rem;
}

.form_submit {
  width: 25rem;
  height: 6rem;
  margin: 13.8rem auto 0;
  display: flex;
  justify-content: center;
}
@media screen and (max-width: 768px) {
  .form_submit {
    margin: 6.8rem auto 0;
  }
}
.form_submit input[type=submit] {
  font-weight: 400;
  cursor: pointer;
  transition: 0.15s;
  background-color: transparent;
}
.form_submit input[type=submit]:disabled {
  pointer-events: none;
}
@media (hover: hover) {
  .form_submit input[type=submit]:hover {
    color: #fff;
    background-color: #DB7814;
  }
}
.form_submit .c-btn {
  cursor: pointer;
}
.form_submit .c-btn.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* ラッパー */
.wpcf7-acceptance {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem 0 0 0;
}

/* 各アイテム */
.wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
}

/* label */
.wpcf7-acceptance .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
  -webkit-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

/* ネイティブのチェックボックスを非表示 */
.wpcf7-acceptance .wpcf7-list-item input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* カスタムチェックボックス（::before で実装） */
.wpcf7-acceptance .wpcf7-list-item label::before {
  content: "";
  display: inline-flex;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border: 1.5px solid #184675;
  border-radius: 0.3rem;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* チェック済みの状態 */
.wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked + .wpcf7-list-item-label::before,
.wpcf7-acceptance .wpcf7-list-item input[type=checkbox]:checked ~ .wpcf7-list-item-label::before {
  /* JS回避のため、label::before に直接当てられないため label を使う */
}

/* ※ CF7ではinputとspan.wpcf7-list-item-labelがlabel内に並ぶため、
        :has() を使ってlabel::beforeを制御する */
.wpcf7-acceptance .wpcf7-list-item label:has(input[type=checkbox]:checked)::before {
  background-color: #184675;
  border-color: #184675;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5.5 11l4 4 7-8' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* フォーカス時のアクセシビリティ対応 */
.wpcf7-acceptance .wpcf7-list-item label:has(input[type=checkbox]:focus-visible)::before {
  outline: 0.2rem solid #184675;
  outline-offset: 0.2rem;
}