/* ============================================================
   サポ婚 婚活診断 — スタイルシート
   スマホファースト / デザイントークンは :root に集約
   (WordPress 化の際はテーマの style として移植)
   ============================================================ */

: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;
}

/* ---- Reset (minimal) */
*, *::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); }

/* ============================================================
   Layout
   ============================================================ */
.shindan {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 16px 48px;
}
#shindan-intro {
  padding-bottom: 0;
}

@media (min-width: 600px) {
  .shindan { padding: 36px 16px 72px; }
}

/* スマホ幅(599px以下)でのみ<br>を効かせ、PC幅では改行させないためのユーティリティ */
.sp-only-br { display: none; }
@media (max-width: 599px) {
  .sp-only-br { display: inline; }
}

/* Screen transition */
.screen { animation: screenIn 0.34s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
.screen--back { animation-name: screenInBack; }
/* カレンダー選択操作のたびにDOMが作り直され、この画面だけ再生されてしまうフェードインを打ち消す */
.screen--no-anim { animation: none; }
@keyframes screenIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes screenInBack {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@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; }
}

/* ============================================================
   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);
  color: #fff;
  font-size: 15px;
  padding: 14px 24px;
  width: 100%;
  box-shadow: 0 12px 26px -10px rgba(6, 199, 85, 0.5);
}
.btn--line:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ============================================================
   1. First view (Hero)
   ============================================================ */
.hero { text-align: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.5s 0.05s both;
}
.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__title-sub {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 6px;
}
.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;
}
.hero__lead {
  margin: 14px auto 0;
  max-width: 30em;
  font-size: 14px;
  color: var(--c-muted);
  white-space: pre-line;
  animation: fadeUp 0.5s 0.2s both;
}

.hero__merits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  animation: fadeUp 0.5s 0.28s both;
}
.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;}

.hero__cta { margin-top: 28px; animation: fadeUp 0.5s 0.36s both; }
.hero__cta .btn--primary { font-size: 17px; padding: 18px 28px; }
.hero__cta-note { margin-top: 10px; font-size: 12px; color: var(--c-muted); }

.hero__trust {
  margin: 30px 0 0;
  padding: 18px 18px 16px;
  list-style: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  text-align: left;
  animation: fadeUp 0.5s 0.44s both;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-ink);
  padding: 6px 0;
}
.hero__trust svg { width: 18px; height: 18px; color: var(--c-accent); flex-shrink: 0; }

@media (min-width: 600px) {
  .hero__title { font-size: 52px; }
  .merit { padding: 24px 14px 20px; }
  .merit__title { font-size: 15px; }
  .merit__body { font-size: 14px; }
}

/* ============================================================
   2. Question screens
   ============================================================ */
.qheader { margin-bottom: 16px; }
.qheader__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.qheader__count { font-size: 14px; font-weight: 800; color: var(--c-primary); }
.qheader__count small { font-weight: 500; color: var(--c-muted); font-size: 12px; }
.qheader__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.14em;
}
.progress {
  height: 8px;
  background: rgba(156, 65, 96, 0.12);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%);
  transition: width 0.45s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.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); }

.opts { display: grid; gap: 10px; margin-top: 16px; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-ctrl);
  padding: 15px 46px 15px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  box-shadow: 0 6px 16px -14px rgba(126, 48, 80, 0.4);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
  animation: fadeUp 0.34s both;
}
.opt:nth-child(1) { animation-delay: 0.03s; }
.opt:nth-child(2) { animation-delay: 0.07s; }
.opt:nth-child(3) { animation-delay: 0.11s; }
.opt:nth-child(4) { animation-delay: 0.15s; }
.opt:nth-child(5) { animation-delay: 0.19s; }
.opt:nth-child(6) { animation-delay: 0.23s; }
.opt:nth-child(7) { animation-delay: 0.27s; }
.opt:hover { border-color: rgba(156, 65, 96, 0.45); background: #fdf7f9; }
.opt:active { transform: scale(0.98); }
.opt__radio {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.opt__check {
  position: absolute;
  right: 14px;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--c-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.opt__check svg { width: 12px; height: 12px; }
.opt.is-selected {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: 0 10px 22px -14px rgba(126, 48, 80, 0.55);
}
.opt.is-selected .opt__radio { border-color: var(--c-primary); background: var(--c-primary); box-shadow: inset 0 0 0 3.5px var(--c-primary-soft); }
.opt.is-selected .opt__check { opacity: 1; transform: scale(1); }

/* pulse on select (auto-advance feedback) */
.opt.is-picked { animation: optPulse 0.32s ease; }
@keyframes optPulse {
  0% { transform: scale(1); }
  40% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.qselect {
  width: 100%;
  margin-top: 16px;
  padding: 15px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--c-ink);
  background: var(--c-surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239c4160' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-ctrl);
  appearance: none;
  -webkit-appearance: none;
}
.qselect:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(156, 65, 96, 0.14); }

.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);
}

/* ============================================================
   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); }

/* ============================================================
   3. Analyzing screen
   ============================================================ */
.analyzing {
  text-align: center;
  padding: 48px 0 24px;
}
.analyzing__ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
}
.analyzing__ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.analyzing__ring .ring-bg { stroke: rgba(156, 65, 96, 0.14); }
.analyzing__ring .ring-fg {
  stroke: url(#ringGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}
.analyzing__heart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  animation: heartbeat 1.2s ease-in-out infinite;
}
.analyzing__heart svg { width: 30px; height: 30px; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.12); }
  45% { transform: scale(1); }
}
.analyzing__title { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.analyzing__lead { font-size: 16px; color: var(--c-muted); margin: 0 0 24px; }

.analyzing__steps {
  max-width: 320px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}
.astep {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--c-muted);
  padding: 7px 0;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}
.astep__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.astep__icon svg { width: 11px; height: 11px; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.astep.is-active { opacity: 1; color: var(--c-ink); font-weight: 600; }
.astep.is-done { opacity: 1; }
.astep.is-done .astep__icon { background: var(--c-positive); border-color: var(--c-positive); }
.astep.is-done .astep__icon svg { opacity: 1; transform: scale(1); }

/* ============================================================
   4. Result screen
   ============================================================ */
.result { padding-bottom: 80px; }
.rcard {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 16px;
  animation: fadeUp 0.5s both;
}
.rcard:nth-of-type(2) { animation-delay: 0.08s; }
.rcard:nth-of-type(3) { animation-delay: 0.16s; }
.rcard:nth-of-type(4) { animation-delay: 0.24s; }
.rcard__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}
.rcard__title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
}
.rcard__note { font-size: 11.5px; color: var(--c-muted); margin: 0 0 14px; }

/* --- Result hero */
.rhero {
  text-align: center;
  padding: 30px 20px 26px;
  overflow: hidden;
  position: relative;
}
.rhero__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--c-muted);
  margin: 0 0 12px;
}
.rhero__rank {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-weight: 900;
  line-height: 1;
  color: var(--rank-color, var(--c-primary));
  animation: rankPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.rhero__rank-main { font-size: 84px; letter-spacing: -0.02em; }
.rhero__rank-badge {
  display: inline-block;
  background: var(--rank-color, var(--c-primary));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  letter-spacing: 0.1em;
  vertical-align: middle;
}
@keyframes rankPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
.rhero__headline {
  margin: 10px 0 2px;
  font-size: 17px;
  font-weight: 800;
  color: var(--rank-color, var(--c-primary));
}
.rhero__catch {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.6;
  white-space: pre-line;
}
.rhero__hensachi {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--c-border);
}
.rhero__hensachi-label { font-size: 12px; font-weight: 700; color: var(--c-muted); letter-spacing: 0.14em; }
.rhero__hensachi-value {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.rhero__hensachi-value small { font-size: 16px; font-weight: 700; color: var(--c-muted); margin-left: 2px; }

/* --- Rank scale (6段階マップ) */
.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.scale__cell {
  text-align: center;
  padding: 10px 2px 8px;
  border-radius: 10px;
  background: #f4ecef;
  color: #b5a3ac;
  font-weight: 800;
  font-size: 14px;
  position: relative;
  transition: background-color 0.3s, color 0.3s;
}
.scale__cell small { display: block; font-size: 8.5px; font-weight: 600; letter-spacing: 0.04em; margin-top: 1px; }
.scale__cell.is-active {
  background: var(--rank-color, var(--c-primary));
  color: #fff;
  box-shadow: 0 10px 20px -10px var(--rank-color, var(--c-primary));
  animation: rankPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}
.scale__you {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}
.scale__you::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--c-ink);
}
.scale-wrap { padding-top: 24px; }

/* --- Report card (通知表) */
.report { display: grid; gap: 14px; }
.rrow {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-ctrl);
  background: #fffdfd;
}
.rrow__grade {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.rrow__grade--S { background: linear-gradient(135deg, #d4a437, #b8860b); }
.rrow__grade--A { background: linear-gradient(135deg, #b0567a, #9c4160); }
.rrow__grade--B { background: linear-gradient(135deg, #58a97d, #45a06b); }
.rrow__grade--C { background: linear-gradient(135deg, #9a9aa6, #82828e); }
.rrow__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rrow__label { font-size: 14px; font-weight: 800; }
.rrow__score { font-size: 11px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.rrow__bar {
  height: 7px;
  margin: 7px 0 8px;
  background: rgba(156, 65, 96, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.rrow__bar-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transition: width 0.8s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.rrow__comment { font-size: 12.5px; color: var(--c-muted); line-height: 1.65; margin: 0; }

/* --- Summary / Strategy */
.rtext { font-size: 14.5px; line-height: 1.9; margin: 0; }
.rcard--strategy {
  background: linear-gradient(180deg, #fffdf6 0%, #fff 60%);
  border-color: rgba(192, 144, 46, 0.35);
}

/* --- CTA section */
.rcta {
  text-align: center;
  background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 90%);
  color: #fff;
  border: none;
  padding: 30px 20px 26px;
}
.rcta__heading { font-size: 19px; font-weight: 800; line-height: 1.55; margin: 0 0 10px; }
.rcta__body { font-size: 13.5px; line-height: 1.8; opacity: 0.92; margin: 0 0 20px; }
.rcta .btn--primary {
  background: #fff;
  color: var(--c-primary);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
  font-size: 16px;
}
.rcta .btn--line { margin-top: 10px; }
.rcta__micro { font-size: 11.5px; opacity: 0.85; margin: 14px 0 0; }

.result__restart { text-align: center; margin-top: 22px; }
.result__restart a { font-size: 13px; color: var(--c-muted); }
.result__note { font-size: 11px; color: var(--c-muted); margin-top: 18px; line-height: 1.7; }

/* --- Sticky CTA bar */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-border);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
  z-index: 50;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__inner { max-width: var(--content-max); margin: 0 auto; }
.sticky-cta .btn--primary { padding: 14px 24px; font-size: 15px; }

/* ============================================================
   Footer
   ============================================================ */
.shindan-footer {
  text-align: center;
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 40px;
}

/* ============================================================
   P0改善: ヒーローQ1埋め込み(ゼロクリック開始)
   ============================================================ */
.qs {
  margin-top: 20px;
  background: var(--c-surface);
  border: 1.5px solid rgba(156, 65, 96, 0.25);
  border-radius: var(--radius-card);
  padding: 18px 16px 12px;
  box-shadow: var(--shadow-card);
  text-align: left;
  animation: fadeUp 0.5s 0.24s both;
}
.qs__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}
.qs__badge {
  flex-shrink: 0;
  background: var(--c-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  padding: 3px 9px;
  letter-spacing: 0.08em;
}
.qs__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qs__chip {
  padding: 13px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, color 0.15s ease;
}
.qs__chip:hover { border-color: var(--c-primary); background: #fff; }
.qs__chip:active { transform: scale(0.96); }
.qs__chip.is-selected {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  animation: optPulse 0.3s ease;
}
.qs__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--c-muted);
  text-align: center;
}
@media (min-width: 600px) {
  .qs__chips { grid-template-columns: repeat(4, 1fr); }
  .qs__chip { font-size: 13px; }
}

/* ============================================================
   P0改善: カウンセラーカード(信頼要素)
   ============================================================ */
.counselor {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.counselor--compact { animation: fadeUp 0.5s 0.36s both; }
.counselor__photo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.counselor__photo--avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}
.counselor__photo--avatar svg { width: 28px; height: 28px; }
.counselor__name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
}
.counselor__name small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: 1px;
}
.counselor__msg {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-muted);
}

/* ============================================================
   P0改善: 質問画面の細部
   ============================================================ */
.qheader__encourage {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--c-accent);
  margin-left: 6px;
}
.field__note { font-size: 11px; color: var(--c-muted); margin: 5px 0 0; }

/* ============================================================
   P0改善: 結果画面のCTA・注記・不安解消ブロック
   ============================================================ */
.btn--hero-cta {
  margin-top: 18px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--hero-cta:hover { transform: translateY(-2px); }
.btn--after-strategy { width: 100%; margin-top: 16px; font-size: 15px; }
.rdisclaimer {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(156, 65, 96, 0.05);
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--c-muted);
}
.rconsult__points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rconsult__points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
}
.rconsult__points li svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--c-positive);
}
.rcta__micro--above { margin: 0 0 14px; font-size: 12px; opacity: 0.9; }

/* ============================================================
   P0改善: 仮予約フロー
   ============================================================ */
.rv-section { margin-top: 20px; }
.rv-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}
.rv-label svg { width: 17px; height: 17px; color: var(--c-primary); }
.rv-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.rv-date {
  padding: 8px 2px 7px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}
.rv-date:active { transform: scale(0.95); }
.rv-date__md { display: block; font-size: 12.5px; font-weight: 800; color: var(--c-ink); }
.rv-date__youbi { display: block; font-size: 10px; color: var(--c-muted); margin-top: 1px; }
.rv-date--weekend .rv-date__youbi { color: var(--c-primary); }
.rv-date.is-selected {
  border-color: var(--c-primary);
  background: var(--c-primary);
}
.rv-date.is-selected .rv-date__md,
.rv-date.is-selected .rv-date__youbi { color: #fff; }
.rv-chips { display: grid; gap: 8px; }
.rv-chip {
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.rv-chip:active { transform: scale(0.97); }
.rv-chip.is-selected {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: #fff;
}
@media (min-width: 600px) {
  .rv-chips { grid-template-columns: repeat(3, 1fr); }
  .rv-chips .rv-chip:only-child, .rv-chips--two { grid-template-columns: 1fr 1fr; }
}
.rv-contact {
  padding: 12px 14px;
  background: var(--c-primary-soft);
  border-radius: 12px;
  font-size: 13.5px;
}
.rv-contact p { margin: 2px 0; }
.rv-note { margin: 18px 0 0; font-size: 11.5px; color: var(--c-muted); line-height: 1.7; }

/* --- 仮予約完了 --- */
.rv-done { padding-top: 24px; }
.rv-done__card { text-align: center; }
.rv-done__icon {
  width: 62px;
  height: 62px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--c-positive);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rankPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.rv-done__icon svg { width: 30px; height: 30px; }
.rv-done__title { text-align: center; }
.rv-done__points { text-align: left; margin-top: 16px; }
.rv-done__back { margin-top: 20px; }

/* ============================================================
   P0改善: フッター運営情報リンク
   ============================================================ */
.shindan-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.shindan-footer__links a { color: var(--c-muted); text-decoration: none; }
.shindan-footer__links a:hover { color: var(--c-primary); text-decoration: underline; }

/* ============================================================
   カレンダー日程選択画面
   ============================================================ */
/* .hero__merits と同じ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; }
}
.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; }
.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;
}
.cal-dummy-note {
  font-size: 0.72rem;
  color: var(--c-muted);
  margin-left: 0.4em;
}
.shindan-footer__sep { color: var(--c-border); }

/* --- 表現改善: ランクマップの可読性(レビュー6-6) --- */
.scale__cell small { font-size: 10px; }
