:root {
  --ink: #1A1A1A;
  --ink-soft: #4A4A46;
  --ink-faint: #8A8A82;
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --line: #E4E2DB;
  --line-soft: #EDEBE4;
  --accent: #2244CC;
  --accent-soft: #EEF1FC;
  --danger: #B3261E;
  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 560px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "IBM Plex Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ペーパーグレイン（気配レベル） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
}

h1, h2, h3 {
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s var(--ease-out);
}

button:not(:disabled):active {
  transform: scale(0.98);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
}

/* --- 画面遷移（240msクロスフェード + 8px上スライド） --- */

.screen-enter {
  animation: screen-in 240ms var(--ease-out) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-exit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: screen-out 240ms var(--ease-out) both;
}

@keyframes screen-out {
  to { opacity: 0; }
}

/* --- stagger reveal（80-120ms遅延はJS側でanimation-delay指定） --- */

.st {
  opacity: 0;
  animation: st-in 400ms var(--ease-out) forwards;
}

@keyframes st-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: st-in 400ms var(--ease-out) forwards;
}

.reveal-d1 { animation-delay: 0ms; }
.reveal-d2 { animation-delay: 80ms; }
.reveal-d3 { animation-delay: 160ms; }
.reveal-d4 { animation-delay: 240ms; }
.reveal-d5 { animation-delay: 320ms; }

/* --- 共通パーツ --- */

.overline {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-weight: 500;
}

.title {
  font-size: 26px;
  line-height: 1.5;
}

.body-text {
  font-size: 15px;
  color: var(--ink-soft);
}

.legal-text {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-note {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  transition: background-color 300ms ease, transform 0.12s var(--ease-out), opacity 0.15s ease;
}

/* 無効時はグレー。同意で有効化 → インクへ300msで沈む */
.btn-primary:disabled {
  background: #C8C6BE;
  opacity: 1;
  cursor: not-allowed;
}

.btn-primary:not(:disabled):active {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
}

.btn-secondary:active {
  background: var(--line-soft);
}

.link-small {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.link-small:active {
  color: var(--ink);
}

/* --- welcome --- */

.consent-block {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
  flex-shrink: 0;
}

details.advanced {
  font-size: 13px;
  color: var(--ink-soft);
}

details.advanced summary {
  cursor: pointer;
  color: var(--ink-soft);
  padding: 8px 0;
}

.advanced-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 4px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle-row .toggle-label {
  font-size: 13px;
  color: var(--ink-soft);
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.switch-track::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::before {
  transform: translateX(16px);
}

/* --- mictest --- */

.mictest-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}

.self-preview {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #202020;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.self-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scaleX(-1);
  transition: opacity 0.2s ease;
}

.self-preview.is-live .self-preview-video {
  opacity: 1;
}

.self-preview-empty {
  max-width: 220px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.self-preview.is-live .self-preview-empty {
  display: none;
}

.self-preview-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.03em;
}

canvas.waveform {
  width: 100%;
  max-width: 320px;
  height: 72px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-line {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.mic-ok-check {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  margin-right: 6px;
}

/* --- progress --- */

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar-track {
  width: 100%;
  height: 3px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
}

.progress-index {
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.probe-chip {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
}

/* --- question card --- */

.question-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.question-line {
  font-size: 24px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 200ms ease;
}

/* 深掘り中: 元質問を減光し、スレッドが会話の主役であることを示す */
.question-block.probing .question-line {
  opacity: 0.35;
}

/* 行単位インクリビール。最終状態は clip 全開・フル濃度 #1A1A1A（opacityは使わない） */
.reveal-line {
  display: block;
  color: var(--ink);
  clip-path: inset(-4px 100% -4px 0);
  animation: ink-reveal 400ms var(--ease-out) forwards;
}

@keyframes ink-reveal {
  to { clip-path: inset(-4px -4px -4px 0); }
}

/* --- thread（深掘り会話履歴: Q→A→Qの縦の流れ） --- */

.thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.thread-item {
  position: relative;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thread-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.thread-item.thread-a::before {
  background: var(--ink);
}

/* 深掘り質問の出現: 左罫線が上→下へ200msで伸びる */
.thread-item.grow-in::before {
  transform-origin: top;
  animation: rule-grow 200ms var(--ease-out) both;
}

@keyframes rule-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.thread-item .probe-text {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
}

.transcript-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.transcript-text {
  font-size: 14px;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

/* 文字起こしプレビュー: 引用の作法（左2pxインク罫・「あなたの回答」ラベル） */
.transcript-quote {
  border-left: 2px solid var(--ink);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transcript-quote .transcript-text {
  font-size: 15px;
  color: var(--ink);
}

/* スレッド内の回答は thread-item 側の左罫線に乗せる（Q→A→Qの縦の流れ） */
.thread-item .transcript-quote {
  border-left: none;
  padding-left: 0;
}

.thread-item .transcript-quote .transcript-text {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --- recorder --- */

.recorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
}

.recorder .self-preview {
  margin-bottom: 6px;
}

.mic-button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.3s ease, transform 0.12s var(--ease-out);
}

/* 待機時: 呼吸（box-shadowの輪が4秒周期、opacity 0.15→0.3） */
.mic-button.idle {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 8px rgba(26, 26, 26, 0.15); }
  50% { box-shadow: 0 0 0 12px rgba(26, 26, 26, 0.3); }
}

.mic-button .mic-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
}

/* 録音中: 輪がインクの実線、内側は停止アイコン */
.mic-button.recording {
  animation: none;
  border-color: var(--ink);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--ink);
}

.mic-button.recording .mic-icon {
  border-radius: 2px;
  background: var(--ink);
  width: 20px;
  height: 20px;
}

.mic-button:disabled {
  opacity: 0.35;
}

canvas.rec-waveform {
  width: 100%;
  max-width: 280px;
  height: 40px;
}

.rec-timer {
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.rec-hint {
  font-size: 12px;
  color: var(--ink-faint);
}

.rec-caption {
  font-size: 13px;
  color: var(--ink-soft);
}

/* --- preview / actions --- */

.action-row {
  display: flex;
  gap: 10px;
}

.action-row .btn-primary,
.action-row .btn-secondary {
  width: auto;
  flex: 1;
}

.textarea-field {
  width: 100%;
  min-height: 100px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  resize: vertical;
}

.textarea-field:focus {
  outline: 1px solid var(--accent);
  outline-offset: 0;
}

/* --- 判定待ち: 2段ステータス行 + 行頭3点ドット --- */

.listen-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.listen-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.listen-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.15;
  animation: dot-ink 1.2s ease-in-out infinite;
}

.listen-dots span:nth-child(2) { animation-delay: 0.2s; }
.listen-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-ink {
  0%, 100% { opacity: 0.15; }
  40% { opacity: 0.85; }
}

.listen-label {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --- footer / links --- */

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}

/* --- error --- */

.error-box {
  border: 1px solid var(--danger);
  background: #FBEEED;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-box .error-text {
  font-size: 14px;
  color: var(--danger);
}

/* --- resume banner --- */

.resume-banner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- done / rating --- */

.rating-row {
  display: flex;
  gap: 8px;
}

.star-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: var(--ink-faint);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.12s var(--ease-out);
}

.star-btn.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-card);
}

.rating-done {
  font-size: 13px;
  color: var(--ink-soft);
}

.memo-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.cta-copy {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

/* --- memo生成: processing theater（大） --- */

.memo-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 0;
}

/* A4様の白いカードの輪郭が薄く現れていく */
.theater {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 300px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.theater::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  opacity: 0;
  animation: a4-in 2.8s ease forwards;
}

@keyframes a4-in {
  to { opacity: 1; }
}

.proc-step {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  opacity: 0;
}

.proc-step.active {
  animation: st-in 400ms var(--ease-out) forwards;
}

.proc-check {
  width: 16px;
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.proc-check::before {
  content: "";
}

.proc-step.step-done .proc-check::before {
  content: "✓";
}

.proc-step.step-done {
  color: var(--ink);
}

.proc-step.active:not(.step-done) .proc-check::before {
  content: "…";
  color: var(--ink-faint);
}

/* --- memo表示 --- */

.memo-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.memo-conclusion {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 押印風: 1.5pxインク枠・角丸2px・letter-spacing 0.1em */
.conclusion-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  padding: 4px 14px;
  letter-spacing: 0.1em;
}

.conclusion-badge.go {
  color: var(--ink);
  border-color: var(--ink);
}

.memo-question {
  font-size: 14px;
  color: var(--ink-soft);
}

.memo-section-title {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.reason-item {
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reason-item:first-of-type {
  border-top: none;
}

.reason-text {
  font-size: 15px;
}

/* 引用ブロック: 左罫2px＋出典行 */
.reason-quote {
  border-left: 2px solid var(--ink);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reason-quote .quote-text {
  font-size: 13px;
  color: var(--ink-soft);
}

.quote-source {
  font-size: 11px;
  color: var(--ink-faint);
}

.memo-block {
  font-size: 14px;
  color: var(--ink-soft);
}

.sample-link-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.sample-link-box a {
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}

.sample-link-box a:active {
  opacity: 0.7;
}

/* 透かし風フッター（書類らしさ＋営業導線） */
.memo-watermark {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-align: center;
  padding-top: 8px;
}

@media (min-width: 600px) {
  .app {
    padding-top: 56px;
  }
}

/* --- prefers-reduced-motion: 全アニメを即時表示に落とす --- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== UX v3: 海外プロダクト寄せ（回答者フロー） ===== */

.btn-primary {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.12), 0 4px 14px rgba(26, 26, 26, 0.08);
}

.btn-secondary {
  border-radius: 8px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

.body-text-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.interviewer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.interviewer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: interviewer-breathe 3s ease-in-out infinite;
}

@keyframes interviewer-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.interviewer-name {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(26, 26, 26, 0.22);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .interviewer-dot { animation: none; opacity: 1; }
}

/* ===== 同意ブロック v0.2（リーガル改修） ===== */

.consent-summary {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.consent-summary-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.consent-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clip-choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clip-choice-label {
  font-size: 13px;
  color: var(--ink);
}

.clip-choice-row {
  display: flex;
  gap: 10px;
}

.clip-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 8px;
  font-size: 13.5px;
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.clip-option:has(input:checked) {
  border-color: var(--ink);
  background: var(--bg);
  font-weight: 600;
}

.clip-option input {
  accent-color: var(--ink);
  margin: 0;
}

/* ===== UX v3: ミナトの声（TTS） ===== */

/* 読み上げ中: インタビュアードットが強めに脈動 */
.interviewer-dot.speaking {
  animation: speaking-pulse 0.9s ease-in-out infinite;
}

@keyframes speaking-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.voice-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.voice-rate {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.voice-rate:active {
  color: var(--ink);
  border-color: var(--ink);
}

.voice-replay {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.voice-replay:active {
  color: var(--ink);
}

/* ミナトの受け止め（要約リフレクト）行 */
.ack-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
}

.ack-line .interviewer-dot {
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.ack-text {
  font-size: 15px;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .interviewer-dot.speaking { animation: none; opacity: 1; }
}

/* --- mic guide / in-app browser warning --- */

.mic-guide-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mic-guide-steps li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.status-line.mic-live-ok {
  color: var(--ink);
  font-weight: 600;
}

.warn-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.warn-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

.warn-text {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.warn-box .btn-secondary {
  align-self: flex-start;
}

/* --- hybrid research: structured questions --- */
.question-type-chip {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: .04em;
}

.structured-kicker {
  margin: 34px 0 8px;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: .06em;
}

.structured-question { margin-bottom: 24px; }
.structured-question .question-line { margin-bottom: 0; }

.structured-options,
.scale-options {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
}

.structured-options input,
.scale-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.structured-option {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.structured-option:hover,
.structured-options input:focus-visible + .structured-option,
.scale-options input:focus-visible + .structured-option {
  border-color: var(--ink-faint);
}

.structured-options input:checked + .structured-option,
.scale-options input:checked + .structured-option,
.structured-option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.choice-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 10px;
}

.structured-options input[type="checkbox"]:checked + .structured-option .choice-mark::after { content: "✓"; }
.choice-label { font-size: 14px; line-height: 1.5; }

.scale-options {
  grid-template-columns: repeat(5, minmax(48px, 1fr));
}

.scale-options .structured-option {
  justify-content: center;
  padding: 10px 6px;
}

.scale-options .choice-mark { display: none; }
.scale-options .choice-label { font-size: 16px; font-variant-numeric: tabular-nums; }
.scale-labels {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-faint);
  font-size: 11px;
}

.structured-submit { margin-top: 6px; }
.structured-error { margin-bottom: 10px; }
.screening-screen .structured-kicker { color: var(--accent, #2875ef); }
.screening-privacy {
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}
.screenout-screen {
  justify-content: center;
  text-align: center;
}
.screenout-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: #eef4ff;
  color: #2875ef;
  font-size: 20px;
}

@media (max-width: 480px) {
  .structured-kicker { margin-top: 26px; }
  .structured-option { min-height: 48px; }
  .scale-options { gap: 6px; }
}
