/* =========================================================
   contact.css — お問い合わせページ専用スタイル
   ========================================================= */

/* ---------- シミュレーター引き継ぎバナー ---------- */
.est-prefill-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(31, 108, 255, 0.06);
  border: 1px solid rgba(31, 108, 255, 0.25);
  border-left: 4px solid var(--brand-1);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.est-prefill-banner__icon {
  width: 28px;
  height: 28px;
  color: var(--brand-1);
  flex-shrink: 0;
}
.est-prefill-banner__icon svg { width: 100%; height: 100%; }
.est-prefill-banner__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.est-prefill-banner__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-1);
  display: block;
}
.est-prefill-banner__detail {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.est-prefill-banner__link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-1);
  text-decoration: none;
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid rgba(31, 108, 255, 0.25);
  border-radius: 6px;
  transition: background 0.2s;
}
.est-prefill-banner__link:hover {
  background: rgba(31, 108, 255, 0.08);
}

/* ---------- 連絡方法カード ---------- */
.contact-methods {
  background: var(--bg-2);
}
.contact-methods__head {
  text-align: center;
  margin-bottom: 20px;
}
.contact-methods__lead {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 56px;
}
.contact-methods__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.contact-method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(31, 108, 255, 0.1);
  border-color: var(--brand-1);
}
.contact-method-card--form {
  background: rgba(31, 108, 255, 0.03);
  border-color: var(--brand-1);
}
.contact-method-card__icon {
  width: 48px;
  height: 48px;
  color: var(--brand-1);
}
.contact-method-card__icon svg {
  width: 100%;
  height: 100%;
}
.contact-method-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.contact-method-card__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}
.contact-method-card__label--recommend {
  color: var(--brand-1);
  background: rgba(31, 108, 255, 0.08);
  padding: 2px 10px;
  border-radius: 40px;
  align-self: flex-start;
}
.contact-method-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.contact-method-card__desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}
.contact-method-card__action {
  display: inline-block;
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-1);
  text-decoration: none;
  word-break: break-all;
}
.contact-method-card__action:hover {
  text-decoration: underline;
}
.contact-method-card__action--btn {
  display: inline-flex;
  align-items: center;
  background: var(--grad);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
  text-decoration: none;
  align-self: flex-start;
}
.contact-method-card__action--btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* ---------- お問い合わせフォーム ---------- */
.contact-form-section {
  background: var(--bg);
}
.contact-form-section__head {
  text-align: center;
  margin-bottom: 16px;
}
.contact-form-section__note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 48px;
}
.contact-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.07);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 横並びレイアウト */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group--half { /* grid内で使用 */ }

/* ラベル */
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-required {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--brand-1);
  padding: 1px 7px;
  border-radius: 40px;
  letter-spacing: 0.05em;
}
.form-optional {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 7px;
  border-radius: 40px;
}

/* 入力フィールド共通 */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  font-size: 13px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-1);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 108, 255, 0.1);
}
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.75;
}

/* セレクトボックス */
.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: '∨';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.form-select {
  cursor: pointer;
  padding-right: 36px;
}

/* エラーメッセージ */
.form-error {
  font-size: 12px;
  color: #e53e3e;
  min-height: 16px;
  display: block;
}

/* チェックボックス */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form-check__box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.form-check__box::after {
  content: '';
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity 0.15s;
}
.form-check input:checked ~ .form-check__box {
  background: var(--brand-1);
  border-color: var(--brand-1);
}
.form-check input:checked ~ .form-check__box::after {
  opacity: 1;
}
.form-check__label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.form-check__link {
  color: var(--brand-1);
  text-decoration: underline;
  text-decoration-color: rgba(31, 108, 255, 0.35);
  text-underline-offset: 3px;
}

/* 送信ボタン */
.form-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 18px 48px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
  min-width: 240px;
  justify-content: center;
}
.form-submit:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-2px);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-submit__arrow {
  font-size: 18px;
  font-family: var(--mono);
  transition: transform 0.2s;
}
.form-submit:hover:not(:disabled) .form-submit__arrow {
  transform: translateX(4px);
}
.form-submit__note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.form-error-general {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 8px;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.6;
  text-align: center;
}

/* ---------- プライバシーポリシー ---------- */
.contact-privacy {
  background: var(--bg-2);
}
.contact-privacy__inner {
  max-width: 760px;
  margin: 0 auto;
}
.contact-privacy__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-privacy__body p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0 0 12px;
}
.contact-privacy__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}
.contact-privacy__body li {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-privacy__body li::before {
  content: '→';
  color: var(--brand-1);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- FAQカード ---------- */
.contact-faq {
  background: var(--bg);
}
.contact-faq__head {
  text-align: center;
  margin-bottom: 48px;
}
.contact-faq__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.contact-faq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-faq-card__q {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.contact-faq-card__q::before {
  content: 'Q';
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-1);
  background: rgba(31, 108, 255, 0.08);
  border: 1px solid rgba(31, 108, 255, 0.2);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-faq-card__a {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}
.contact-faq__more {
  text-align: center;
  margin-top: 36px;
  font-size: 14px;
}
.contact-faq__more a {
  color: var(--brand-1);
  text-decoration: none;
  font-weight: 700;
}
.contact-faq__more a:hover {
  text-decoration: underline;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .contact-methods__grid { grid-template-columns: 1fr; }
  .contact-faq__grid     { grid-template-columns: repeat(2, 1fr); }
  .form-row              { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-form-wrap { padding: 28px 20px; }
  .contact-faq__grid { grid-template-columns: 1fr; }
  .form-submit       { width: 100%; }
}

/* =================== 送信完了メッセージ =================== */
.contact-form-success {
  padding: clamp(40px, 6vw, 80px) 40px;
  text-align: center;
  background: rgba(31,108,255,.06);
  border: 1px solid rgba(31,108,255,.2);
  border-radius: 16px;
}
.contact-form-success p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
}
