/* ============================================================
   contact.css — contact.html 固有スタイル
   base.css と併用する
   ============================================================ */

body { background: var(--off-white); }

.page-wrap { max-width: 860px; margin: 0 auto; padding: 96px 5% 80px; }
.two-col   { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; }

/* ── ページヘッダー ── */
.page-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--salmon); margin-bottom: 12px; display: block; }
.page-title   { font-family: 'Noto Serif JP', serif; font-size: clamp(22px, 3vw, 32px); font-weight: 600; color: var(--navy); line-height: 1.5; margin-bottom: 8px; }
.page-title em { font-style: normal; color: var(--salmon); }
.page-sub  { font-size: 14px; color: var(--gray-text); line-height: 1.8; margin-bottom: 28px; }

/* ── 診断サマリカード ── */
.diag-summary { background: var(--navy); border-radius: 12px; overflow: hidden; margin-bottom: 28px; }

.ds-header      { padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ds-header-left { display: flex; align-items: center; gap: 12px; }
.ds-icon        { width: 36px; height: 36px; border-radius: 8px; background: rgba(232,114,90,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ds-eyebrow     { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 3px; }
.ds-type        { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--salmon); line-height: 1.2; }
.ds-badge       { font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); border-radius: 3px; padding: 3px 10px; white-space: nowrap; }

.ds-price-row   { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: baseline; gap: 6px; }
.ds-price-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-right: 8px; }
.ds-price       { font-family: 'DM Serif Display', serif; font-size: 38px; color: var(--salmon); line-height: 1; }
.ds-price-unit  { font-size: 14px; color: rgba(255,255,255,0.4); }
.ds-price-note  { font-size: 11px; color: rgba(255,255,255,0.25); margin-left: 8px; }

.ds-qa      { padding: 16px 24px 20px; display: flex; flex-direction: column; }
.ds-qa-item { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ds-qa-item:last-child { border-bottom: none; }
.ds-q       { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; line-height: 1.5; padding-top: 1px; }
.ds-a       { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.6; }
.ds-a.empty { color: rgba(255,255,255,0.25); font-style: italic; }

.ds-actions-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.28); padding: 0 24px 8px; }
.ds-actions  { padding: 0 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.ds-action   { display: flex; align-items: flex-start; gap: 10px; }
.ds-action-dot   { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--salmon); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--white); margin-top: 2px; }
.ds-action-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.65); line-height: 1.6; }
.ds-no-data { padding: 28px 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7; }

/* 診断なしバナー */
.no-diag-banner { background: var(--salmon-light); border: 1px solid rgba(232,114,90,0.25); border-left: 3px solid var(--salmon); border-radius: 0 8px 8px 0; padding: 16px 20px; margin-bottom: 28px; }
.no-diag-banner p { font-size: 13px; color: var(--navy); line-height: 1.7; }
.no-diag-banner a { color: var(--salmon); font-weight: 700; text-decoration: none; }

/* ── フォームカード ── */
.right-col { position: sticky; top: 80px; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.form-card-head        { background: var(--navy); padding: 20px 24px; }
.form-card-head-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.form-card-head-title  { font-size: 16px; font-weight: 700; color: var(--white); line-height: 1.4; }
.form-card-head-sub    { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; line-height: 1.55; }

.form-body { padding: 24px 24px 20px; }
.form-section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--salmon); margin-bottom: 16px; display: block; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.4; }
.form-label .req { color: var(--salmon); margin-left: 4px; font-size: 11px; background: var(--salmon-light); padding: 1px 5px; border-radius: 2px; }
.form-label .opt { color: var(--gray-text); margin-left: 4px; font-size: 11px; background: var(--gray-light); padding: 1px 5px; border-radius: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-mid); border-radius: 6px;
  font-family: inherit; font-size: 14px; color: var(--text-body);
  background: var(--white); outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--salmon);
  box-shadow: 0 0 0 3px rgba(232,114,90,0.1);
}
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
.diagnosis-prefill-note { margin: 6px 0 0; color: var(--gray-text); font-size: 11px; line-height: 1.7; }
.diagnosis-prefill-note[hidden] { display: none; }
.form-select-wrap { position: relative; }
.form-select-wrap::after { content: '▾'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-text); pointer-events: none; font-size: 12px; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* チェックボックス */
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--salmon); flex-shrink: 0; margin-top: 3px; cursor: pointer; }
.check-item-label { font-size: 13px; color: var(--text-body); line-height: 1.5; }

.privacy-note { font-size: 11px; color: var(--gray-text); line-height: 1.65; margin-bottom: 16px; }

/* 送信ボタン */
.btn-submit {
  width: 100%; background: var(--salmon); color: var(--white);
  border: none; border-radius: 4px; padding: 15px 24px;
  font-size: 15px; font-family: inherit; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover:not(:disabled) { background: var(--salmon-hover); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-submit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.btn-submit-label { white-space: nowrap; }
.btn-submit small {
  border-left: 1px solid rgba(255,255,255,0.5);
  padding-left: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.form-subnote {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 11px;
  color: var(--gray-text);
  text-align: center;
  margin-top: 10px;
  line-height: 1.6;
}
.form-subnote span + span::before { content: '・'; margin: 0 4px; }

/* ── 送信完了画面 ── */
#thanks-screen { display: none; padding: 120px 5% 80px; text-align: center; }
.thanks-inner  { max-width: 520px; margin: 0 auto; }
.thanks-icon   { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 28px; }
.thanks-title  { font-family: 'Noto Serif JP', serif; font-size: 26px; font-weight: 600; color: var(--navy); margin-bottom: 14px; line-height: 1.5; }
.thanks-body   { font-size: 14px; color: var(--gray-text); line-height: 1.9; margin-bottom: 32px; }
.thanks-next   { background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; padding: 24px 28px; text-align: left; }
.thanks-next-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--salmon); margin-bottom: 14px; display: block; }
.thanks-step   { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.thanks-step:last-child { margin-bottom: 0; }
.thanks-step-num  { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.thanks-step-text { font-size: 13px; color: var(--text-body); line-height: 1.6; }

/* ── レスポンシブ ── */
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .right-col { position: static; }
  .page-wrap { padding: 84px 5% 60px; }
  .ds-qa-item { grid-template-columns: 1fr; gap: 2px; }
  .ds-q { font-size: 10px; }
}

@media (max-width: 480px) {
  .btn-submit { padding: 15px 14px; font-size: 14px; gap: 7px; }
  .btn-submit small { padding-left: 7px; font-size: 10px; }
  .form-subnote { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 10.5px; }
  .form-subnote span + span::before { content: none; }
}

/* その他入力欄のスタイル */
#otherInputGroup {
  padding-left: 28px; /* チェックボックスとの位置合わせ */
  animation: fadeIn 0.3s ease;
}

#otherText {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

#otherText:focus {
  outline: none;
  border-color: var(--salmon);
  background: var(--salmon-light);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   iOSフォーム自動ズーム対策（input font-size を16px固定）
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select,
.form-input,
.form-textarea,
.form-select {
  font-size: 16px !important;  /* iOS Safari の自動ズーム抑制 */
}
