/* ---------- Wordpress CF7の共通スタイリング ---------- */
/* ----- 入力画面スタイリング ----- */
.wpcf7-form {
  width: 520px;
}

/* カーソルを当てた時のスタイリング */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border: 2px solid var(--sakrea-main-color) !important;
  background: var(--white-color) !important;
  outline: none;
}
.wpcf7-form input[type="submit"]:focus {
  border: none !important;
}

/* 一応、入力後の元々ついているスタイリングをはずす */
.wpcf7-form input:-internal-autofill-selected,
.wpcf7-form textarea:-internal-autofill-selected {
  color: var(--sakrea-text-color) !important;
}

/* 入力後のスタイリング */
.wpcf7-form input:-webkit-autofill,
.wpcf7-form textarea:-webkit-autofill {
  /* box-shadow: 0 0 0px 1000px var(--white-color) inset; */
  -webkit-box-shadow: 0 0 0px 1000px var(--white-color) inset;
  -webkit-text-fill-color: var(--sakrea-text-color);
  /* transition: background-color 5000s ease-in-out 0s; */
}

.wpcf7-form input:not(:placeholder-shown),
.wpcf7-form textarea:not(:placeholder-shown) {
  background: var(--white-color) !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
  width: 520px;
  height: 42px;
  color: var(--sakrea-text-color);
  font-size: var(--font-size-S);
  font-family: var(--font-family-zkgn);
  letter-spacing: .02em;
  border: 1px solid #E0E0E0;
  background: var(--sakrea-sub-color);
  border-radius: 10px;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  width: 14px;
  aspect-ratio: 1;
  color: var(--sakrea-text-color);
  font-size: var(--font-size-S);
  font-family: var(--font-family-zkgn);
  border: 1px solid #E0E0E0;
  background: var(--sakrea-sub-color) !important;
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  vertical-align: -1px;
  position: relative;
}

.wpcf7-form input[type="checkbox"]:checked,
.wpcf7-form input[type="radio"]:checked {
  background-color: #D6A9B4 !important;
  border-color: #D6A9B4 !important;
}

.wpcf7-form input[type="checkbox"]:checked::after,
.wpcf7-form input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  width: 5px;
  height: 8px;
  border: 1px solid var(--white-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wpcf7-form :is(.wpcf7-checkbox, .wpcf7-radio) .wpcf7-list-item {
  display: block;
  margin: 0 0 2px 7px;
}

.wpcf7-form .privacypolicy-checkbox-area .wpcf7-checkbox .wpcf7-list-item {
  display: inline-block;
}

.wpcf7-form textarea {
  width: 520px;
  height: 200px;
  color: var(--sakrea-text-color);
  font-size: var(--font-size-S);
  font-family: var(--font-family-zkgn);
  line-height: 150%;
  border: 1px solid #E0E0E0;
  background: var(--sakrea-sub-color);
  border-radius: 10px;
}

.wpcf7-form .btn-confirm {
  width: 100%;
  height: 50px;
  background: #D6A9B480 !important;
  border-radius: 40px;
  color: var(--sakrea-accent-color);
  font-size: var(--font-size-M);
  font-family: var(--font-family-zkgn);
  font-weight: 500;
  box-shadow: var(--pink-box-shadow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.17,0.84,0.44,1);
}
@media (hover: hover) {
  .wpcf7-form .btn-confirm:hover {
    background: #D6A9B460 !important;
    transform: translate(1px, 2px);
    box-shadow: 0 4px 8px #1F1F1F10;
  }
}

.wpcf7-form .form-input-area > p:not(:nth-last-of-type(2)) {
  margin: 0 0 25px 0;
}

.wpcf7-form .wpcf7-not-valid-tip {
  display: inline-block;
  color: var(--sakrea-red-color);
  font-size: .75em;
  font-weight: 500;
  line-height: normal;
  padding: 0 0 0 20px;
  position: relative;
  vertical-align: 5px;
}

.wpcf7-form .wpcf7-not-valid-tip::before {
  position: absolute;
  content: "";
  display: block;
  width: 16px;
  aspect-ratio: 1;
  /*アイコン幅が300で細目 background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23E29999'><path d='M480-290.77q13.73 0 23.02-9.29t9.29-23.02q0-13.73-9.29-23.02-9.29-9.28-23.02-9.28t-23.02 9.28q-9.29 9.29-9.29 23.02t9.29 23.02q9.29 9.29 23.02 9.29Zm.01-146.15q12.76 0 21.37-8.63 8.62-8.62 8.62-21.37v-180q0-12.75-8.63-21.38-8.63-8.62-21.38-8.62-12.76 0-21.37 8.62-8.62 8.63-8.62 21.38v180q0 12.75 8.63 21.37 8.63 8.63 21.38 8.63Zm.06 336.92q-78.84 0-148.21-29.92t-120.68-81.21q-51.31-51.29-81.25-120.63Q100-401.1 100-479.93q0-78.84 29.92-148.21t81.21-120.68q51.29-51.31 120.63-81.25Q401.1-860 479.93-860q78.84 0 148.21 29.92t120.68 81.21q51.31 51.29 81.25 120.63Q860-558.9 860-480.07q0 78.84-29.92 148.21t-81.21 120.68q-51.29 51.31-120.63 81.25Q558.9-100 480.07-100Zm-.07-60q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/></svg>"); */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23E29999'><path d='M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0;
  left: 3px;
}

.wpcf7-form .required-mark {
  color: var(--sakrea-red-color);
  font-size: var(--font-size-S);
  font-weight: 700;
  vertical-align: 6px;
}

.wpcf7-form .privacypolicy-checkbox-area {
  text-align: center;
  position: relative;
  margin: 50px 0 85px 0;
}

.wpcf7-form .privacypolicy-checkbox-area .wpcf7-list-item {
  position: relative;
}

.wpcf7-form .privacypolicy-checkbox-area .wpcf7-list-item::before {
  position: absolute;
  content: "＊";
  display: block;
  width: 16px;
  aspect-ratio: 1;
  color: var(--sakrea-red-color);
  font-size: var(--font-size-S);
  font-weight: 700;
  top: -16px;
  left: -16px;
}

.wpcf7-form .wpcf7-spinner {
  display: none;
}

.wpcf7 .wpcf7-form .wpcf7-response-output {
  display: none;
  /* ↑送信後にありがとうございましたという文言が一瞬出てしまうので非表示にしてしまおう。 */
  /* display: block;
  color: var(--sakrea-red-color);
  font-weight: 700;
  text-align: center;
  border: none !important;
  padding: 0 0 0 16px;
  margin: 2em auto 1em; */
}

.wpcf7 .wpcf7-form .wpcf7-response-output svg {
  --svg-color: var(--sakrea-red-color);
  --svg-width: 18px;
  --svg-va: -6px;
  margin: 0 4px 0 0;
}

/* ----- 確認画面スタイリング ----- */
.wpcf7-form .form-confirm-area > p {
  margin: 0 0 38px 0;
}

.wpcf7-form .form-confirm-area .input-list {
  display: flex;
  flex-direction: column;
  gap: 38px 0;
  margin: 0 0 85px 0;
}

.wpcf7-form .form-confirm-area .input-list li {
  border-bottom: 1px solid #E1E1E1;
}

.wpcf7-form .form-confirm-area .input-list .item-title {
  display: block;
  font-weight: 700;
  line-height: normal;
  margin: 0 0 2px 0;
}

.wpcf7-form .form-confirm-area .input-list .list-item {
  display: block;
  padding: 0 0 2px 0;
}

.wpcf7-form .form-confirm-area .btn-wrap input[type="submit"] {
  width: 100%;
  height: 50px;
  color: var(--sakrea-accent-color);
  font-size: var(--font-size-M);
  font-family: var(--font-family-zkgn);
  font-weight: 500;
  box-shadow: var(--pink-box-shadow);
  background: #D6A9B480 !important;
  border-radius: 40px;
  margin: 0 0 30px 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.17,0.84,0.44,1);
}

.wpcf7-form .form-confirm-area .btn-wrap .btn-back {
  width: 100%;
  height: 50px;
  background: var(--white-color);
  border: 2px solid #D6A9B480 !important;
  border-radius: 40px;
  color: var(--sakrea-accent-color);
  font-size: var(--font-size-M);
  font-family: var(--font-family-zkgn);
  font-weight: 500;
  box-shadow: var(--black-box-shadow);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.17,0.84,0.44,1);
}

@media (hover: hover) {
  .wpcf7-form .form-confirm-area .btn-wrap input[type="submit"]:hover {
    background: #D6A9B460 !important;
    transform: translate(1px, 2px);
    box-shadow: 0 4px 8px #1F1F1F10;
  }
  .wpcf7-form .form-confirm-area .btn-wrap .btn-back:hover {
    color: #5C5F6660 !important;
    transform: translate(1px, 2px);
    box-shadow: 0 4px 8px #1F1F1F10;
  }
}


  
@media screen and (max-width:768px) {
  .wpcf7-form {
    width: 100%;
  }
  .wpcf7-form > p:not(:nth-last-of-type(2)) {
    width: 90%;
    margin-inline: auto;
  }
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"] {
    width: 100%;
  }
  .wpcf7-form textarea {
    width: 100%;
  }
  .wpcf7-form input[type="checkbox"] {
    width: 16px;
  }
  .wpcf7-form input[type="submit"] {
    display: block;
    width: 90%;
    margin-inline: auto;
  }
  .wpcf7-form .privacypolicy-checkbox-area .wpcf7-list-item {
    position: relative;
  }
  .wpcf7-form .privacypolicy-checkbox-area .wpcf7-list-item::before {
    position: absolute;
    content: "＊";
    display: block;
    width: 16px;
    aspect-ratio: 1;
    color: var(--sakrea-red-color);
    font-size: var(--font-size-S);
    font-weight: 700;
    top: -16px;
    left: -16px;
  }
  /* .wpcf7-form input[type="checkbox"]:checked::after {
    left: 3px;
    top: 0px;
  } */
}