.base__content form p {
  margin: 0;
}

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

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

.field {
  margin-bottom: 16px;
  padding: 30px 0;
  width: 100%;
  border-bottom: 1px solid #cfcccd;
}

.field:nth-last-of-type(2),
.field:nth-last-of-type(3) {
  border-bottom: none;
}

.field__label,
.confirm-label {
  display: block;
  margin-bottom: 6px;
  width: 20%;
  min-width: 320px;
  font-weight: 600;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 80%;
}
@media screen and (max-width: 767px) {
  .wpcf7-form-control-wrap {
    width: 100%;
  }
}

.field--privacy .wpcf7-form-control-wrap {
  width: 80px;
}

.field--privacy .wpcf7-form-control-wrap .wpcf7-list-item {
  display: flex;
}

.req {
  margin-right: 16px;
  padding: 0 10px;
  line-height: 1;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  background-color: #c00;
  border: 1px solid #c00;
  border-radius: 3px;
}

.opt {
  margin-right: 16px;
  padding: 0 10px;
  line-height: 1;
  font-size: 16px;
  font-weight: 400;
  color: #888;
  border: 1px solid #888;
  border-radius: 3px;
}

.field {
  display: flex;
}

@media screen and (max-width: 767px) {
  .field {
    flex-direction: column;
  }
}

.field__input,
.field__select,
.field__textarea {

  width: 100% !important;
  padding: 10px !important;
  background-color: #f4f4f4;
  border: 2px solid #f4f4f4 !important;
}

@media screen and (max-width: 767px) {
  .field__input,
  .field__select,
  .field__textarea {
}
}

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

.field__input:focus-visible,
.field__select:focus-visible,
.field__textarea:focus-visible,
.field__radio:focus-visible,
.field__checkbox:focus-visible {
  outline: 2px solid #003b87 !important;
}

.field--address-box {
  width: 100%;
}
.field__textarea {
  width: 100%;
  min-height: 140px;
}
.field--privacy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.field--privacy a {
  font-weight: 500;
  color: #003b87;
  text-decoration: underline;
}
.field--privacy-box {
  display: flex;
}

.actions {
  display: flex;
  gap: 12px;
}
@media screen and (max-width: 767px) {
  .actions {
    flex-direction: column;
  }
}

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

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

.btn--confirm,
input[type=submit].btn--submit {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 400px;
  height: 100px;
  line-height: 1;
  border-radius: 90px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  background: #003b87;
  transition: none;
  border: none;
}
@media screen and (max-width: 767px) {
  .btn--confirm,
  input[type=submit].btn--submit {
    width: 320px;
  }
}




.btn--confirm:hover,
input[type=submit].btn--submit:hover {
  opacity: 1;
  color: #fff;
  background: linear-gradient(to right, #3b3680, #c24b93);
}

.btn--confirm::after {
  position: absolute;
  content: "";
  background: url(../cocoon-master/images/arrow-white-xl.png) no-repeat center center / cover;
  width: 25px;
  height: 22px;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s, color 0.3s;
}

.btn.btn--ghost {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 400px;
  height: 100px;
  line-height: 1;
  border-radius: 90px;
  font-size: 20px;
  font-weight: 500;
  color: #222;
  background: #ccc;
  transition: none;
  border: none;
}

@media screen and (max-width: 767px) {
  .btn.btn--ghost {
    width: 320px;
  }
}

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

.confirm-list li {
  padding: 20px 0;
  border-bottom: 1px solid #cfcccd;
  display: flex;
  gap: 24px;
}
@media screen and (max-width: 767px) {
  .confirm-list li {
    flex-direction: column;
    gap: 8px;
  }
}

.confirm-list li:last-of-type {
  border-bottom: none;
}

/* .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--address-box {
  display: flex;
  flex-direction: column;
}

.field--postal-code {
  margin-bottom: 24px;
}

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

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

/* .field--address {
  margin-bottom: 12px;
} */

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

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

.field__note:last-child {
  color: #666;
}

/* 確認画面でプライバシーポリシーの項目を非表示 */
.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;
}

input[type="checkbox"].field__acceptance {
  -webkit-appearance: none;
  appearance: none;
  
  margin-right: 20px;
  width: 32px;
  height: 32px;
  
  /* 未チェック時のスタイル */
  background-color: #f4f4f4;
  border: 1px solid #bfbfbf;
  border-radius: 3px;
  cursor: pointer;
  
  /* チェックマーク用 */
  position: relative;
}

/* チェックマーク（CSSで描画） */
input[type="checkbox"].field__acceptance::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 1px;
  width: 14px;
  height: 22px;
  
  border: solid white;
  border-width: 0 5px 5px 0;
  transform: rotate(45deg);
  
  opacity: 0;  /* 未チェック時は非表示 */
}

/* チェック時 */
input[type="checkbox"].field__acceptance:checked {
  background-color: #003b87;
  border: 1px solid #003b87;
}

input[type="checkbox"].field__acceptance:checked::after {
  opacity: 1;  /* チェック時に表示 */
}

@media screen and (max-width: 767px) {
  .wpcf7 form .wpcf7-response-output {
  width: 85%;
  }
}