/* ============================================================
   サポ婚 面談予約(LP2) — スタイルシート
   /counseling-reserve/ と /counseling-thanks/ でのみ読み込む。

   sapokon-diagnosis/assets/css/shindan.css から、LP2 で使う部分のみを複製している
   (既存プラグインの CSS ファイルは読み込まない)。各ブロックの見出しに複製元の行番号を記載。
   末尾の「LP2 固有」セクションのみ新規。
   ============================================================ */

/* ---- 複製元: shindan.css 7-35 (:root デザイントークン) */
:root {
  /* ---- Color tokens */
  --c-primary: #9c4160;
  --c-primary-dark: #7e3050;
  --c-primary-soft: #f6e7ec;
  --c-ink: #3a2530;
  --c-muted: #8d7280;
  --c-bg-top: #fdf8f6;
  --c-bg-bottom: #f6ebe9;
  --c-surface: #ffffff;
  --c-border: #ecdce1;
  --c-accent: #c0902e;          /* gold */
  --c-positive: #45a06b;
  --c-error: #d64545;
  --c-line: #06c755;

  /* ---- Shadow tokens */
  --shadow-card: 0 18px 44px -28px rgba(126, 48, 80, 0.4), 0 8px 16px -12px rgba(192, 144, 46, 0.18);
  --shadow-soft: 0 10px 26px -20px rgba(126, 48, 80, 0.35);
  --shadow-btn: 0 14px 28px -12px rgba(126, 48, 80, 0.45);

  /* ---- Shape / spacing tokens */
  --radius-card: 20px;
  --radius-ctrl: 14px;
  --radius-pill: 999px;
  --content-max: 650px;

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

/* ---- 複製元: shindan.css 38-56 (Reset) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--c-ink);
  line-height: 1.7;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.95), transparent 42%),
    linear-gradient(180deg, var(--c-bg-top) 0%, var(--c-bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); }

/* ---- 複製元: shindan.css 59-63, 68-70 (Layout) */
.shindan {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 16px 48px;
}
@media (min-width: 600px) {
  .shindan { padding: 36px 16px 72px; }
}

/* ---- 複製元: shindan.css 72-76 (スマホ幅のみ改行) */
.sp-only-br { display: none; }
@media (max-width: 599px) {
  .sp-only-br { display: inline; }
}

/* ---- 複製元: shindan.css 91-97 (fadeUp / 視差効果を減らす設定) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- 複製元: shindan.css 102-141 (Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
  font-size: 16px;
  padding: 16px 28px;
  width: 100%;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(126, 48, 80, 0.55); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: var(--c-surface);
  color: var(--c-muted);
  border: 1.5px solid var(--c-border);
  font-size: 14px;
  padding: 12px 22px;
}
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--line {
  background: var(--c-line) !important;
  color: #fff;
  font-size: 15px;
  padding: 14px 24px;
  width: 100%;
}
.btn--line:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---- 複製元: shindan.css 146, 162-169, 179-186 (Hero: 中央寄せ・タイトル・ブランド) */
.hero { text-align: center; }
.hero__title {
  margin: 18px 0 4px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  animation: fadeUp 0.5s 0.12s both;
}
.hero__brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.2em;
  margin-bottom: 2px;
  animation: fadeUp 0.5s 0.08s both;
}

/* ---- 複製元: shindan.css 205-230 (.merit カード) */
.merit {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 18px 8px 14px;
  box-shadow: var(--shadow-soft);
}
.merit__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.merit__icon svg { width: 22px; height: 22px; }
.merit__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-primary);
  margin: 0 0 4px;
}
.merit__body { font-size: 11px; color: var(--c-muted); margin: 0; line-height: 1.55; text-align: center;}

/* ---- 複製元: shindan.css 294-308 (.qcard) */
.qcard {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  /* border-radius: var(--radius-card); */
  box-shadow: var(--shadow-card);
  padding: 24px 18px 20px;
}
.qcard__label {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  white-space: pre-line;
}
.qcard__desc { margin: 0 0 6px; font-size: 13px; color: var(--c-muted); }

/* ---- 複製元: shindan.css 394-405 (.qnav / .qerror) */
.qnav { display: flex; gap: 10px; margin-top: 18px; }
.qnav .btn--ghost { flex: 0 0 auto; min-width: 96px; }
.qnav .btn--primary { flex: 1; }
.qnav--single { justify-content: flex-start; }

.qerror {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-error);
}

/* ---- 複製元: shindan.css 409-447 (Contact screen: 入力欄・同意チェック) */
.contact-grid { display: grid; gap: 14px; margin-top: 16px; }
.contact-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
  margin-bottom: 5px;
  letter-spacing: 0.06em;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-ctrl);
}
.field input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(156, 65, 96, 0.14); }
.field.has-error input { border-color: var(--c-error); }
.field__error { font-size: 12px; color: var(--c-error); margin: 4px 0 0; font-weight: 600; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-ctrl);
  cursor: pointer;
  font-size: 14px;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-primary); }
.consent.has-error { border-color: var(--c-error); }

/* ---- 複製元: shindan.css 762-767 (フッター) */
.shindan-footer {
  text-align: center;
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 40px;
}

/* ---- 複製元: shindan.css 1044-1116 (POINT 01〜03 の3カラム) */
.point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 35px 0 16px;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .point-grid {
    margin: 55px 0 16px;
  }
}
/* 数字バッジがカード上辺に半分はみ出す余白を確保する */
.merit--point {
  position: relative;
  padding-top: 50px;
}
.merit__icon--num {
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.05;
  flex-direction: column;
  gap: 2px;
  border: 3px solid var(--c-surface);
  box-shadow: var(--shadow-soft);
}
.merit__icon-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.merit__title--pill {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: 100%;
  text-align: center;
  line-height: 1.4;
  font-size: 12px;
  margin-bottom: 15px;
}
@media (min-width: 600px) {
  .merit__title--pill {
    line-height: 1.8;
    font-size: 13px;
    margin-bottom: 20px;
  }
}
.text-em {
  color: var(--c-accent);
  font-weight: 800;
  font-size: 13px;
}
@media (min-width: 600px) {
  .text-em {
    color: var(--c-accent);
    font-weight: 800;
    font-size: 20px;
  }
}
@media (min-width: 600px) {
  .merit__icon--num { width: 70px; height: 70px; font-size: 20px; top: -35px; }
  .merit__icon-label { font-size: 9px; }
}

/* ---- 複製元: shindan.css 1118-1134 (情報カード) */
.info-card {
  margin: 12px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
}
.info-card__list { margin: 0; padding: 0; list-style: none; }
.info-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-ink);
  padding: 5px 0;
}
.info-card__label { font-weight: 700; color: var(--c-primary); flex-shrink: 0; }

/* ---- 複製元: shindan.css 1135-1233 (カレンダー。.cal-cell--limited 系も含めそのまま複製) */
.cal-card { padding-bottom: 1.5rem; }

.cal-wrap {
  margin: 1rem -1rem 0;
}
.cal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem 0.5rem;
}
.cal-table {
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.78rem;
  min-width: max-content;
}
.cal-table th,
.cal-table td {
  border: 1px solid var(--c-border);
  text-align: center;
  vertical-align: middle;
}
.cal-th-time,
.cal-time {
  width: 3.6rem;
  min-width: 3.6rem;
  padding: 0.4rem 0.3rem;
  background: #faf7f4;
  color: var(--c-muted);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}
.cal-th-date {
  width: 3.0rem;
  min-width: 3.0rem;
  padding: 0.35rem 0.2rem;
  background: #faf7f4;
  color: var(--c-ink);
  font-size: 0.72rem;
}
.cal-th--weekend { color: var(--c-primary); }
.cal-date-md { display: block; font-weight: 700; }
.cal-date-wd { display: block; font-size: 0.65rem; color: var(--c-muted); }
.cal-th--weekend .cal-date-wd { color: var(--c-primary); }

.cal-cell {
  width: 3.0rem;
  min-width: 3.0rem;
  height: 2.4rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  transition: background 0.12s, transform 0.1s;
  user-select: none;
}
.cal-cell--available {
  color: var(--c-positive);
  background: #f0faf4;
  cursor: pointer;
}
.cal-cell--available:hover,
.cal-cell--available:focus { background: #d6f5e3; outline: none; }
.cal-cell--limited {
  color: var(--c-accent);
  background: #fff8ef;
  cursor: pointer;
}
.cal-cell--limited:hover,
.cal-cell--limited:focus { background: #ffe8c8; outline: none; }
.cal-cell--unavailable {
  color: #c0b8b4;
  background: #f5f3f1;
  cursor: default;
}
.cal-cell.is-selected {
  background: var(--c-primary) !important;
  color: #fff !important;
  transform: scale(1.06);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cal-selection {
  margin: 0.9rem 0 0.3rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  text-align: center;
}
.cal-selection--empty {
  background: #f5f0eb;
  color: var(--c-muted);
  font-weight: 400;
}

/* ============================================================
   LP2 固有(新規)
   ============================================================ */

.hero__title--reserve { font-size: 40px; }
@media (min-width: 600px) {
  .hero__title--reserve { font-size: 52px; }
}

/* フォーム内の区切り見出し(面談日時 / お客様情報) */
.sr-section-title {
  margin: 26px 0 4px;
  padding-left: 10px;
  border-left: 4px solid var(--c-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

/* キーボード操作時のフォーカス表示(LP1 は :focus で outline を消しているため補う) */
.cal-cell--available:focus-visible { box-shadow: inset 0 0 0 2px var(--c-primary); }

/* honeypot: 画面外へ配置(display:none だと入力しない bot がいるため)。aria-hidden で読み上げ対象外 */
.sr-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* 視覚的に隠し、スクリーンリーダーには読ませる(カレンダー左上の「時刻」見出し) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-cta { margin-top: 22px; }

/* 完了画面: LINEログインから戻ってきた場合のメッセージ */
.sr-line-notice {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1.5px solid var(--c-error);
  border-radius: var(--radius-ctrl);
  background: #fff5f5;
  color: var(--c-error);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}
.sr-line-notice--cancel {
  border-color: var(--c-accent);
  background: #fff8ef;
  color: var(--c-ink);
}

/* 完了画面 */
.sr-thanks__message { margin: 8px 0 0; font-size: 14px; line-height: 1.9; white-space: pre-line; }
.sr-thanks__note { margin: 14px 0 0; font-size: 12px; color: var(--c-muted); }
.sr-thanks .info-card__value { font-weight: 700; }
.sr-thanks .btn--line { margin-top: 18px; }
