/* ==============================
   Wizard Form Styles
   ============================== */

/* ページタイトル・パンくず・フッター非表示 */
body.page-wizard .page-title,
body.page-wizard .breadcrumb,
body.page-wizard > footer,
body.page-wizard #contact-section {
  display: none !important;
}

body.page-wizard {
  height: auto !important;
  min-height: 100vh;
  overflow: auto !important;
}

/* ---- Landing Section ---- */
.wizard-landing {
  background-color: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-landing-inner {
  max-width: 960px;
  margin: 0 auto;
}

.wizard-landing-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #111;
}

.wizard-copyright {
  background-color: #f5f5f5;
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

.wizard-landing-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 48px;
}

.wizard-landing-subtitle p {
  margin: 0;
}

.wizard-landing-body {
  display: flex;
  justify-content: center;
}

.wizard-landing-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 780px;
  width: 100%;
  overflow: visible;
}

.wizard-landing-card-inner {
  display: flex;
  align-items: stretch;
}

.wizard-landing-operator {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
  position: relative;
  align-self: flex-end;
  margin-top: -80px;
  margin-bottom: 0;
  margin-left: 15px;
}

.wizard-landing-operator img {
  width: 100%;
  height: auto;
  display: block;
}

.wizard-landing-operator .wizard-speech-bubble {
  margin-bottom: 12px;
}

.wizard-landing-content {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px 0 48px;
}

.wizard-landing-question-text {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.6;
}

.wizard-landing-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.wizard-start-btn {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 18px 48px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  min-width: 160px;
}

.wizard-start-btn:hover {
  background: #b91c1c;
}

.wizard-start-btn:active {
  transform: scale(0.97);
}

/* ---- Fallback ---- */
.wizard-landing-fallback {
  padding: 40px;
  font-size: 16px;
  color: #666;
}

.wizard-fallback-link {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 40px;
  background: #111;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.wizard-fallback-link:hover {
  background: #333;
}

/* ---- Speech Bubble ---- */
.wizard-speech-bubble {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  padding: 14px 18px;
  position: relative;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  text-align: left;
  min-width: 220px;
}

.wizard-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}

.wizard-speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid #e0e0e0;
}

/* ==============================
   Wizard Modal
   ============================== */
.wizard-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  background: #f5f6f7;
  overflow-y: auto;
}

.wizard-modal.active {
  display: flex;
}

/* ---- Phase Bar ---- */
.wizard-phase-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 16px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.wizard-phase-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s;
}

.wizard-phase-item .phase-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: background-color 0.3s, color 0.3s;
}

.wizard-phase-item.active {
  color: #111;
}

.wizard-phase-item.active .phase-icon {
  background: #059669;
  color: #fff;
}

.wizard-phase-item.completed {
  color: #6b7280;
}

.wizard-phase-item.completed .phase-icon {
  background: #9ca3af;
  color: #fff;
}

.wizard-phase-line {
  flex: 1;
  height: 2px;
  background: #d1d5db;
  margin: 0 12px;
  min-width: 30px;
}

/* ---- Modal Main ---- */
.wizard-modal-main {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  padding: 20px;
}

/* ---- Concierge (Modal) ---- */
.wizard-modal-concierge {
  flex-shrink: 0;
  width: 180px;
  text-align: center;
  align-self: flex-end;
}

.wizard-modal-concierge img {
  width: 100%;
  height: auto;
  display: block;
}

.wizard-modal-concierge .wizard-speech-bubble {
  margin-bottom: 16px;
  min-width: unset;
}

/* ---- Card ---- */
.wizard-modal-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 650px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.wizard-card-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
}

/* ---- Progress Circle ---- */
.wizard-progress {
  position: relative;
  width: 50px;
  height: 50px;
}

.wizard-progress-svg {
  transform: rotate(-90deg);
}

.wizard-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #374151;
}

.wizard-progress-circle {
  transition: stroke-dashoffset 0.4s ease;
}

/* ---- Close Button ---- */
.wizard-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.wizard-close:hover {
  color: #374151;
}

/* ---- Card Body ---- */
.wizard-card-body {
  flex: 1;
  padding: 28px 36px;
}

.wizard-question {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ---- Choice Buttons ---- */
.wizard-choices {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wizard-choice-btn {
  flex: 1;
  min-width: 120px;
  padding: 18px 24px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  text-align: center;
}

.wizard-choice-btn:hover {
  border-color: #374151;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wizard-choice-btn:active {
  background: #f3f4f6;
}

/* ---- Card Footer ---- */
.wizard-card-footer {
  padding: 16px 36px 28px;
}

.wizard-back {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.wizard-back:hover {
  color: #374151;
}

/* ---- Contact Form ---- */
.wizard-contact-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.5;
}

.wizard-form-group {
  margin-bottom: 20px;
}

.wizard-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.wizard-form-group .required {
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 500;
  vertical-align: middle;
}

.wizard-form-group input,
.wizard-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.wizard-form-group input:focus,
.wizard-form-group textarea:focus {
  outline: none;
  border-color: #374151;
  box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.1);
}

.wizard-agreement-text {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin: 12px 0 4px;
}

.wizard-agreement-text a {
  color: #2563eb;
  text-decoration: underline;
}

.wizard-submit-btn {
  width: 100%;
  padding: 16px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.wizard-submit-btn:hover {
  background: #b91c1c;
}

.wizard-submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.wizard-next-btn {
  width: 100%;
  padding: 16px;
  background: #374151;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.wizard-next-btn:hover {
  background: #1f2937;
}

/* ---- Complete ---- */
.wizard-complete-area {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.wizard-complete-icon {
  margin-bottom: 24px;
  line-height: 1;
}

.wizard-complete-area h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.wizard-complete-area p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.8;
}

.wizard-toppage-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 48px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s;
}

.wizard-toppage-btn:hover {
  background: #b91c1c;
  color: #fff;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
  .wizard-landing {
    padding: 120px 16px 60px;
  }

  .wizard-landing-title {
    font-size: 22px;
  }

  .wizard-landing-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .wizard-landing-body {
    flex-direction: column;
    align-items: center;
  }

  .wizard-landing-card-inner {
    flex-direction: column;
    align-items: center;
  }

  .wizard-landing-operator {
    width: 140px;
    margin-top: -60px;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .wizard-landing-content {
    padding: 0 24px 32px;
  }

  .wizard-landing-card {
    padding: 0;
  }

  .wizard-landing-question-text {
    font-size: 18px;
  }

  .wizard-landing-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .wizard-start-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }

  /* Modal */
  .wizard-modal-concierge {
    display: none;
  }

  .wizard-modal-main {
    padding: 12px;
  }

  .wizard-modal-card {
    min-height: 360px;
  }

  .wizard-card-body {
    padding: 20px;
  }

  .wizard-question {
    font-size: 17px;
    margin-bottom: 24px;
  }

  .wizard-choices {
    flex-direction: column;
  }

  .wizard-choice-btn {
    min-width: unset;
  }

  .wizard-card-footer {
    padding: 12px 20px 24px;
  }

  .wizard-phase-bar {
    padding: 20px 12px 12px;
  }

  .wizard-phase-item {
    font-size: 12px;
    gap: 4px;
  }

  .wizard-phase-item .phase-icon {
    width: 28px;
    height: 28px;
  }

  .wizard-phase-line {
    margin: 0 6px;
    min-width: 16px;
  }
}
