/* ==========================
form
============================ */
.cf7-step-form {
  max-width: 760px;
  margin: 0 auto;
}

.cf7-step {
  display: none;
}

.cf7-step.is-active {
  display: block;
}

.cf7-step h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 24px;
}

.cf7-field {
  margin-bottom: 20px;
}

.cf7-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.required {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 12px;
  color: #fff;
  background: #d33;
  border-radius: 4px;
}

.cf7-field input,
.cf7-field select,
.cf7-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.cf7-field textarea {
  resize: vertical;
}

.cf7-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.cf7-buttons button,
.cf7-buttons input[type="submit"] {
  min-width: 140px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
}

.cf7-next {
  background: #222;
  color: #fff;
}

.cf7-prev {
  background: #e5e5e5;
  color: #222;
}

.cf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cf7-confirm-area {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
}

.cf7-confirm-list {
  margin: 0;
}

.cf7-confirm-list dt {
  font-weight: 700;
  margin-top: 16px;
}

.cf7-confirm-list dt:first-child {
  margin-top: 0;
}

.cf7-confirm-list dd {
  margin: 6px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
  white-space: pre-wrap;
}

.cf7-privacy {
  margin-top: 24px;
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
}

.cf7-progress-bar {
  margin-bottom: 32px;
}

.cf7-progress-status {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.cf7-progress-track {
  width: 100%;
  height: 10px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
}

.cf7-progress-fill {
  width: 33.333%;
  height: 100%;
  background: #222;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.cf7-note {
  font-size: 13px;
  color: #999;
}

/* Contact Form 7 ラジオボタン横並び調整 */
.wpcf7-radio .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wpcf7-radio .wpcf7-list-item input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
  width: 1em;
}

.wpcf7-radio .wpcf7-list-item .wpcf7-list-item-label {
  line-height: 1.5;
}

/* CF7 ラジオボタン：選択肢全体 */
.cf7-field .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 各選択肢の余白リセット */
.cf7-field .wpcf7-radio .wpcf7-list-item {
  display: block;
  margin: 0;
}

/* ラジオボタン＋テキストを横並び */
.cf7-field .wpcf7-radio .wpcf7-list-item label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  line-height: 1.5;
}

/* ラジオボタン本体 */
.cf7-field .wpcf7-radio input[type="radio"] {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
  flex: 0 0 auto;
}

/* テキスト */
.cf7-field .wpcf7-radio .wpcf7-list-item-label {
  display: inline-block !important;
}

/* バリデーション */
.is-step-error-box {
  outline: 1px solid #d33;
  outline-offset: 8px;
  border-radius: 8px;
}

.is-step-error {
  border-color: #d33 !important;
  background: #fff7f7;
}

.js-step-error {
  display: block;
  margin-top: 8px;
  color: #d33;
  font-size: 14px;
  font-weight: 700;
}

/* cf7のバリデーションを非表示にする */
.cf7-step-form .wpcf7-not-valid-tip {
  display: none;
}

.cf7-step-form .wpcf7-response-output {
  display: block;
}

/* smtボタンの挙動 */
.cf7-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

/* submitの外枠 */
.cf7-submit-wrap {
  position: relative;
  display: block;
  width: 100%;
  border: 2px solid #222;
  border-radius: 999px;
  overflow: hidden;
  background: #222;
}

/* 左から右へ広がる黄色背景 */
.cf7-submit-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffd60b;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  z-index: 0;
  pointer-events: none;
}

.cf7-submit-wrap:hover::before {
  transform: scaleX(1);
}

/* CF7 submit本体 */
.cf7-submit-wrap .cf7-submit {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 16px 48px 16px 24px;
  border: none;
  border-radius: 999px;
  background: transparent !important;
  color: #fff;
  font-weight: 800;
  line-height: 1.4;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.3s ease;
}

.cf7-submit-wrap:hover .cf7-submit {
  color: #222;
}

/* CF7のスピナー */
.cf7-submit-wrap .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 2;
  margin: 0;
  transform: translateY(-50%);
}

/* 次へボタン */
.cf7-next {
  position: relative;
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  border: 2px solid #222 !important;
  border-radius: 999px;
  overflow: hidden;
  background: #222;
  color: #fff;
  font-weight: 800;
  line-height: 1.4;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.cf7-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffd60b;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  z-index: 0;
  pointer-events: none;
}

.cf7-next span {
  position: relative;
  z-index: 1;
}

.cf7-next:hover {
  color: #222;
}

.cf7-next:hover::before {
  transform: scaleX(1);
}

.cf7-buttons .cf7-next,
.cf7-buttons .cf7-next:hover,
.cf7-submit-wrap .cf7-submit,
.cf7-submit-wrap:hover .cf7-submit {
  font-weight: 800;
}

@media screen and (max-width: 640px) {
  .single-side-form {
    display: none;
  }
  .cf7-progress {
    flex-direction: column;
  }

  .cf7-buttons {
    flex-direction: column;
  }

  .cf7-buttons button,
  .cf7-buttons input[type="submit"] {
    width: 100%;
  }
}
