:root {
  --border-color: #d5d5d5;
  --input-bg: #f5f5f5;
  --placeholder-color: rgba(18, 22, 25, 0.25);
}
.section__wrap--contact{
    max-width: calc(600px + 24px * 2);
    gap: 0;
}

/* 横線 */
.form-steps li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #ddd;
  z-index: 0;
  transform: translateX(0%);
}

/* 最後のステップには線を引かない */
/* .form-steps li:last-child::after {
      content: none;
    } */

.form__ttl {
  font-size: 18px;
  border-bottom: 1px solid var(--theme-black-dark);
  padding-bottom: 16px;
  margin-bottom: 64px;
}

/**/

.submit {
  margin-top: 60px;
}
.single__form .submit {
  margin-top: 3rem;
}
.single__form .cf7-cf-turnstile {
  margin-top: 64px !important;
}
/* マウスオーバーした際のデザイン */
/* .wpcf7 .wpcf7-submit:hover {
      transform: translate(0, 3px);
    } */

/* form
    
    ====================================================*/

.wpcf7 {
  width: 100%;
  margin-top: 0;
}
.form-card p,
.select_area p {
  margin-bottom: 32px;
}
.form-card div p{
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1;
    font-weight: bold;
    margin-bottom: 16px;
}
.single__form p {
  margin-bottom: 16px;
}
.wpcf7-form p:empty {
  display: none;
  padding: 0;
  margin: 0;
}
.confirm_area > p {
  margin-bottom: 16px;
}

[data-class="wpcf7cf_group"] p {
  margin-bottom: 2rem;
}
.multiform-label {
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.92px;
}

.label p {
  width: 100%;
}

/* ---  フォーム : 必須  --- */
.required,
.any {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  padding: 4px 8px;
  line-height: 1;
  display: inline-block;
  border-radius: 2px;
  white-space: nowrap;
}

.required {
  background: var(--thema-red);
}
.any {
  background: var(--theme-black-dark);
}
/* ---  フォーム :   --- */

/* input */
/* .wpcf7 input {
      border: 1px solid var(--border-color);
      padding: 0.8rem 16px;
    } */

.wpcf7 input:focus {
  outline: none;
  border: 1px solid var(--theme-black-dark);
}
.wpcf7 input::placeholder {
  font-size: 16px;
  text-align: left;
  color: #dddddd;
}

.wpcf7-form .mb-0 {
  margin-bottom: 8px;
}
.wpcf7-form .mb-0 + p {
  font-size: 14px;
}
.wpcf7 label,
.select_area label {
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
  font-weight: bold;
  margin-bottom: 16px;
}
.select_area label.check,
.single__form label {
  margin-bottom: 8px;
}
.wpcf7 input,
.wpcf7 select,
textarea {
  width: 100%;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 24px;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
}
@media screen and (max-width: 768px) {
  .wpcf7 label,
  .select_area label {
    margin-bottom: 8px;
  }
  .wpcf7 input,
  .wpcf7 select,
  textarea {
    padding: 12px 16px;
  }
}
.wpcf7 input::placeholder {
  font-size: 16px !important;
  color: var(--placeholder-color) !important;
}
.wpcf7-select {
  border: 1px solid var(--border-color);
  align-items: center;
  border-radius: 4px;
  padding: 16px 24px;
}
.wpcf7 select:focus {
  outline: none;
  border: 1px solid #0549ae;
}

/* ---  フォーム : radio / checkbox  --- */
.wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wpcf7-radio .wpcf7-list-item label {
  margin-bottom: 0;
}
.wpcf7-checkbox .wpcf7-list-item-label {
  line-height: 1;
  display: flex;
  /* margin-top: 2px; */
}
[data-name="newsletter"] {
  margin-top: 16px;
  display: block;
}
.wpcf7-checkbox .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item label,
.wpcf7-radio .wpcf7-list-item,
.wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 16px;
}

.wpcf7-radio .wpcf7-list-item label {
  cursor: pointer;
}
.wpcf7-checkbox {
  display: grid;
  gap: 0;
}


/* ---  個人情報の同意  --- */
.field_agreement{
    margin-top: 24px;
    padding: 24px 0;

background: rgba(0, 65, 114, 0.2);
text-align: center;
}
.field_agreement .wpcf7-list-item-label{
    font-weight: bold;
}
.field_agreement .wpcf7-list-item {
  margin: 0 !important;
  display: block;
  /* width: 100%; */
}
.field_agreement .wpcf7-list-item label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0em;
  text-align: left;
  cursor: pointer;
  margin: 0 auto;
}



.agreement_link a {
  text-decoration: underline;
  font-weight: 600;
  color: var(--thema-blue);
}

.field_agreement .wpcf7-not-valid-tip {
  margin-top: 0;
}

.wpcf7-form-control-wrap[data-name="acceptance"] {
  width: 100%;
}

/* ---  エラー表示  --- */
.wpcf7-not-valid-tip,
.form-error {
  margin-top: 4px;
  color: var(--thema-red) !important;
  font-size: 12px !important;
  text-align: left;
}

.wpcf7-response-output {
  background-color: #fff;
  text-align: center;
}

/* ---  ボタン  --- */
.submit p {
  display: flex;
  flex-direction: column;
}
.submit p:last-child {
  margin-bottom: 0;
}
.wpcf7 .wpcf7-submit:disabled {
  opacity: 0.7 !important;
  box-shadow: none;
}

.wpcf7 .wpcf7-submit:disabled:hover {
  box-shadow: none;
  transform: none;
}

.section--form button.btn,
.section--form input.btn,
button.wpcf7-submit,
input.wpcf7-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border: none;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  padding: 16px;
  max-width: 472px;
  width: 100%;
  border-radius: 4px;
  transition: 0.2s;
  position: relative;
  transition: background 0.6s ease-in-out;
  background: var(--thema-blue);
  color: #fff;
}
button.wpcf7-submit,
input.wpcf7-submit {
  height: auto !important;
}

.btn--gray {
  background: var(--border-color);
}
.btn--gra {
  background: var(--gra) !important;
  color: #fff;
}

button.js-form-return-input {
  background: var(--border-color);
}
.btn--arrow-left::after,
.btn--arrow-right::after {
  content: "";
  background: url(../img/icon/chevron-right-light.svg) no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  position: absolute;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.btn--arrow-right::after {
  right: 16px;
  filter: var(--svg-white);
}
.btn--arrow-right:hover::after {
  transform: translateX(8px);
}

.btn--arrow-left::after {
  left: 16px;
  transform: rotate(180deg);
  filter: var(--svg-black);
}
.btn--arrow-left:hover::after {
  transform: rotate(180deg) translateX(8px);
}

/* cloudflare */
.cf7-cf-turnstile div {
  text-align: center;
}

/* 確認画面 */
.confirm_area label {
  margin-bottom: 16px;
}
.confirm_area .confirm_area__text {
  padding: 16px 0;
  border-bottom: 1px solid #d5d5d5;
  margin-bottom: 0;
}
.confirm_area .confirm_area__text:first-child {
  border-top: 1px solid #d5d5d5;
}
.confirm_area__text p {
  margin-bottom: 0;
}
.confirm_area__text p:first-child {
  margin-bottom: 16px !important;
}
.confirm_assignment {
  white-space: break-spaces;
  word-break: break-all;
}

/* ---  確認画面と完了画面を非表示  --- */
.confirm_area,
.thanks_area {
  display: none;
}

.confirm_area-card {
  background: #fff;
  padding: 8px 15px;
  border-radius: 3px;
  margin-bottom: 24px;
}

.confirm_area-card > p {
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

/* ---  デフォルトのサンクスメッセージを非表示  --- */
/* .wpcf7-response-output {
    display: none;
  } */
.wpcf7-turnstile.cf-turnstile {
  display: none;
}

@media screen and (max-width: 768px) {
  #form {
  }

  #form .section_ttl-body {
    margin-bottom: 40px;
  }

  .field {
    flex-direction: column;
    margin-bottom: 16px;
  }

  .field .label {
    width: 100%;
    margin-bottom: 8px;
    margin-right: 0;
  }

  .field .label label {
    justify-content: left;
    margin-right: 0;
  }

  .select,
  .input {
    width: 100%;
  }

  /* .input input,
      .select .wpcf7-form-control-wrap {
        padding: 8.5px 16px;
      } */

  .form-comment {
    margin-top: 56px;
  }

  .form_bottom {
    margin-bottom: 56px;
  }
}

/**/

.p-postal-code {
  max-width: 150px;
}
/* .zip_wrap > span {
    display: flex;
    gap: 32px;
    align-items: baseline;
  }
  .zip_wrap input {
    max-width: 130px;
    width: 100%;
  }
  .zip_wrap button {
    background: #fff;
    border: 1px solid var(--theme-black-dark);
    border-radius: 4px;
    font-size: 16px;
    padding: 16px 24px;
  } */

/* チェックボックス全体 */
.wpcf7-list-item label {
  width: fit-content;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 8px;
  font-size: 16px;
  font-weight: normal;
  /* line-height: 1.5; */
  /* color: #404040; */
}

/* チェックボックス全体（アイコンを上に表示） */
.wpcf7-list-item label.checkbox--icon-top {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  place-items: center;
  text-align: center;
}

/* チェックボックス全体（アイコンを下に表示） */
.wpcf7-list-item label.checkbox--icon-bottom {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  place-items: center;
  text-align: center;
}

/* チェックボックス全体（アイコンを右に表示） */
.wpcf7-list-item label.checkbox--icon-right {
  width: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: dashed 1px #bdbdbd;
}

.wpcf7-list-item label.checkbox--icon-right:last-child {
  border-bottom: none;
}

/* チェックボックス全体：非活性の見た目 */
.wpcf7-list-item label:has(.checkbox_icon:disabled) {
  opacity: 0.4;
}

/* アイコン */
.wpcf7-list-item input {
  position: relative;
  width: 24px;
  height: 24px;
  appearance: none;
  background: #ffffff;
  border: solid 2px var(--border-color);
  padding: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 0 transparent;
  transition-duration: 0.2s;
  transition-property: background-color, border, box-shadow, color;
}
.check input {
  position: relative;
  width: 24px;
  height: 24px;
  appearance: none;
  background: #ffffff;
  border-radius: 24px;
  border: solid 2px var(--border-color);
  padding: 0;
  box-shadow: 0 0 0 0 transparent;
  transition-duration: 0.2s;
  transition-property: background-color, border, box-shadow, color;
}

/* 強制カラーモードが有効のときは、既定のシステムカラー値を設定して、トランジションを無効にする */
@media (forced-colors: active) {
  .wpcf7-list-item input,
  .check input {
    transition: none;
    border-color: CanvasText;
  }
}

/* アイコン：選択済みの見た目 */
.wpcf7-list-item input:checked,
.check input:checked {
  background: var(--thema-blue);
  border-color: var(--thema-blue);
}

@media (forced-colors: active) {
  .wpcf7-list-item input:checked,
  .check input:checked {
    background-color: Canvas;
    border-color: CanvasText;
  }
}

/* アイコン：活性時のホバー演出 */
.wpcf7-list-item input:hover:enabled,
.wpcf7-form-control-wrap input:hover:enabled,
.check input:hover:enabled,
textarea:hover:enabled {
  border-color: var(--thema-blue);
  box-shadow: 0 0 0 4px rgba(0, 65, 114, 0.2);
}

@media (forced-colors: none) and (any-hover: hover) {
  .wpcf7-list-item input:hover:enabled,
  .wpcf7-form-control-wrap input:hover:enabled,
  .check input:hover:enabled,
  textarea:hover:enabled {
    border-color: var(--thema-blue);
    box-shadow: 0 0 0 4px rgba(0, 65, 114, 0.2);
  }
}

/**/
.wpcf7-not-valid {
  border-color: var(--thema-red) !important;
  border-width: 2px !important;
}
.wpcf7-not-valid:hover:enabled {
  box-shadow: 0 0 0 4px rgba(147, 78, 112, 0.5) !important;
  border-color: var(--thema-red) !important;
}
@media (forced-colors: none) and (any-hover: hover) {
  input.wpcf7-not-valid:hover:enabled {
    box-shadow: 0 0 0 4px rgba(191, 78, 112, 0.5) !important;
    border-color: var(--thema-red) !important;
  }
}

/* チェックマーク */
.wpcf7-list-item input::before,
.check input::before {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  opacity: 0;
  mask-image: url("../img/icon-check.svg");
  mask-repeat: no-repeat;
  mask-size: cover;
  background-color: #fff;
  transition: opacity 0.2s;
  filter: var(--svg-white);
}

@media (forced-colors: active) {
  .wpcf7-list-item input::before,
  .check input::before {
    transition: none;
    background-color: CanvasText;
  }
}

/* チェックマーク：選択済みの見た目 */
.wpcf7-list-item input:checked::before,
.check input:checked::before {
  opacity: 1;
}
