/* =========================================
  Contact – Design Digital Spoke
  Tailwindクラスベースの微調整用CSS
========================================= */

.contact-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 96px;
}

/* 見出しエリア */
.contact-hero {
  margin-bottom: 32px;
}

.contact-eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9ca3af;
  /* text-gray-400 */
  margin-bottom: 8px;
}

.contact-title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  /* text-gray-900 */
  margin-bottom: 12px;
}

.contact-lead {
  font-size: 14px;
  line-height: 1.9;
  color: #4b5563;
  /* text-gray-600 */
}

/* カード本体 */
.contact-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 32px 28px 36px;
  border: 1px solid #e5e7eb;
  /* border-gray-200 */
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

/* ラベル・バッジ */
.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  /* text-gray-700 */
}

.contact-badge-required,
.contact-badge-optional {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.contact-badge-required {
  background-color: #fee2e2;
  /* red-100 */
  color: #b91c1c;
  /* red-700 */
}

.contact-badge-optional {
  background-color: #e5e7eb;
  /* gray-200 */
  color: #4b5563;
  /* gray-600 */
}

/* 説明文とのバランス調整 */
.contact-card .space-y-6>div {
  margin-bottom: 1.5rem;
}

/* 送信ボタン */
.contact-submit {
  text-align: center;
  margin-top: 12px;
}

.contact-submit-button {
  padding: 12px 40px;
  border-radius: 999px;
  border: 1px solid #004751;
  background-color: #004751;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.contact-submit-button:hover {
  background-color: #003842;
  box-shadow: 0 10px 25px rgba(0, 71, 81, 0.35);
  transform: translateY(-1px);
}

.contact-submit-button .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.15s ease;
}

.contact-submit-button:hover .material-symbols-outlined {
  transform: translateX(3px);
}

/* スマホ調整 */
@media (max-width: 640px) {
  .contact-wrapper {
    padding: 0px;
  }

  .contact-card {
    padding: 24px 18px 28px;
    border-radius: 18px;
  }

  .contact-title {
    font-size: 24px;
  }
}

/*  送信中 */
.contact-submit-button.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* 確認用 */

.contact-confirm-box {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 20px;
}

.contact-confirm-row+.contact-confirm-row {
  border-top: 1px solid #e5e7eb;
  margin-top: 12px;
  padding-top: 12px;
}

.contact-confirm-row dt {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.contact-confirm-row dd {
  font-size: 14px;
  color: #111827;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* 送信中の見た目 */
.contact-submit-button.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.contact-submit-button--secondary {
  background: #ffffff;
  color: #154b5a;
  border: 1px solid #154b5a;
}

/* 確認ステップのボタン行 */
.contact-step-confirm.contact-submit {
  display: flex;
  gap: 1rem;
}

/* ★ 2つ目のボタンを右端に寄せる */
.contact-step-confirm .contact-submit-button:last-child {
  margin-left: auto;
}

/* ▼ スマホ用（画面幅768px以下）で縦並びにする */
@media (max-width: 768px) {
  .contact-step-confirm.contact-submit {
    flex-direction: column;
    /* ★ 縦並び */
    align-items: stretch;
    /* 幅を広げる */
  }

  .contact-step-confirm .contact-submit-button:last-child {
    margin-left: 0;
    /* 右寄せ解除 */
  }

  .contact-submit-button,
  .contact-submit-button--secondary {
    width: 100%;
    /* ボタンを画面幅いっぱいに */
    justify-content: center;
  }
}