/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Koto Mincho ProN', 'Yu Gothic', sans-serif;
  background: #f8f8f8;
  color: #1a1a1a;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #999;
  font-size: 14px;
}

/* ===== PHASE COLORS ===== */
:root {
  --f1: #94a3b8;       /* F1: グレーブルー */
  --f2: #60a5fa;       /* F2: ブルー */
  --f3: #34d399;       /* F3: グリーン */
  --f3w: #ef4444;      /* F3警告: レッド */
  --f4: #a78bfa;       /* F4: パープル */
  --f5: #f59e0b;       /* F5: アンバー */
  --neutral: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
}

/* ===== HEADER ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.app-header .date-info {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== MAIN CONTENT ===== */
.screen {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

.screen-content {
  padding: 20px 20px 0;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 20;
  padding: env(safe-area-inset-bottom) 0 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-lighter);
  font-size: 10px;
  gap: 3px;
  transition: color 0.15s;
}

.nav-item .nav-icon {
  font-size: 22px;
  line-height: 1;
}

.nav-item.active {
  color: var(--text);
}

.nav-item.active .nav-icon {
  transform: scale(1.05);
}

/* ===== HOME SCREEN ===== */
.home-hero {
  text-align: center;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.home-hero .label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.home-hero .count-big {
  font-size: 64px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -2px;
}

.home-hero .count-unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
  margin-left: 4px;
}

.home-hero .contract-info {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-lighter);
}

.home-hero .contract-info span {
  font-weight: 600;
}

/* ===== TODAY GOAL ===== */
.today-goal-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: 1px solid var(--border);
}

.today-goal-card:active {
  transform: scale(0.98);
  background: #f1f5f9;
}

.today-goal-card .goal-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.today-goal-card .goal-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.today-goal-card .goal-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.today-goal-card .goal-checkbox.done {
  background: var(--f3);
  border-color: var(--f3);
  color: white;
}

.today-goal-card .goal-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--text-lighter);
}

/* ===== LAST PHASE ===== */
.last-phase-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.last-phase-card .lp-label {
  font-size: 11px;
  color: var(--text-lighter);
  margin-bottom: 2px;
}

.last-phase-card .lp-phase {
  font-size: 16px;
  font-weight: 700;
}

.last-phase-card .lp-date {
  font-size: 11px;
  color: var(--text-lighter);
  margin-left: auto;
}

/* ===== CHALLENGE ===== */
.challenge-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
}

.challenge-card .ch-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.challenge-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.challenge-progress .ch-nums {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.challenge-progress .ch-nums .ch-total {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-lighter);
}

.progress-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.challenge-card .ch-message {
  font-size: 13px;
  color: var(--text-light);
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  line-height: 1.5;
}

/* ===== MONTHLY MSG ===== */
.monthly-msg {
  padding: 16px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== FIELD SCREEN ===== */
.field-intro {
  text-align: center;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.field-intro .fi-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.field-intro .fi-sub {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== QUESTION CARD ===== */
.q-card {
  background: var(--bg);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.q-card.warning-card {
  background: #fff5f5;
  border-color: #fecaca;
}

.q-card .q-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-lighter);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.q-card .q-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}

.q-card.warning-card .q-text {
  color: #dc2626;
}

.q-card .q-note {
  font-size: 11px;
  color: #ef4444;
  margin-top: -8px;
  margin-bottom: 10px;
}

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

.opt-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.opt-btn:hover {
  border-color: #94a3b8;
}

.opt-btn.selected {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.opt-btn.selected-f1 { border-color: var(--f1); background: var(--f1); color: #fff; }
.opt-btn.selected-f2 { border-color: var(--f2); background: var(--f2); color: #fff; }
.opt-btn.selected-f3 { border-color: var(--f3); background: var(--f3); color: #fff; }
.opt-btn.selected-f3w { border-color: var(--f3w); background: var(--f3w); color: #fff; }
.opt-btn.selected-f4 { border-color: var(--f4); background: var(--f4); color: #fff; }
.opt-btn.selected-f5 { border-color: var(--f5); background: var(--f5); color: #fff; }

/* ===== F5 MANUAL BUTTON ===== */
.f5-trigger-btn {
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--f5);
  border-radius: 12px;
  background: #fffbeb;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 14px;
  transition: all 0.15s;
}

.f5-trigger-btn:active {
  background: #fef3c7;
}

/* ===== PHASE RESULT ===== */
.phase-result {
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  border: 2px solid transparent;
  animation: fadeIn 0.3s ease;
}

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

.phase-result.f1 { background: #f8fafc; border-color: var(--f1); }
.phase-result.f2 { background: #eff6ff; border-color: var(--f2); }
.phase-result.f3 { background: #f0fdf4; border-color: var(--f3); }
.phase-result.f3w { background: #fff5f5; border-color: var(--f3w); }
.phase-result.f4 { background: #faf5ff; border-color: var(--f4); }
.phase-result.f5 { background: #fffbeb; border-color: var(--f5); }

.phase-result .pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  color: #fff;
  margin-bottom: 10px;
}

.phase-result.f1 .pr-badge { background: var(--f1); }
.phase-result.f2 .pr-badge { background: var(--f2); }
.phase-result.f3 .pr-badge { background: var(--f3); }
.phase-result.f3w .pr-badge { background: var(--f3w); }
.phase-result.f4 .pr-badge { background: var(--f4); }
.phase-result.f5 .pr-badge { background: var(--f5); }

.phase-result .pr-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.phase-result .pr-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ===== TEMPLATE COPY ===== */
.template-box {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.template-box .tb-label {
  font-size: 11px;
  color: var(--text-lighter);
  margin-bottom: 6px;
  font-weight: 600;
}

.template-box .tb-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}

.copy-btn {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn:active, .copy-btn.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
}

/* ===== NG WORDS ===== */
.ng-accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ng-accordion .ng-header {
  padding: 12px 14px;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  user-select: none;
}

.ng-accordion .ng-header:active {
  background: #f1f5f9;
}

.ng-accordion .ng-body {
  padding: 12px 14px;
  background: #fff;
  display: none;
}

.ng-accordion.open .ng-body {
  display: block;
}

.ng-accordion.open .ng-chevron {
  transform: rotate(180deg);
}

.ng-chevron {
  transition: transform 0.2s;
  color: var(--text-lighter);
}

.ng-word-item {
  font-size: 13px;
  color: #dc2626;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ng-word-item::before {
  content: '✕';
  font-size: 11px;
  color: #fca5a5;
}

/* ===== SIMULATOR BUTTON ===== */
.simulator-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  transition: opacity 0.15s;
}

.simulator-btn:active {
  opacity: 0.85;
}

/* ===== COMPLETION SCREEN ===== */
.completion-screen {
  padding: 20px;
}

.completion-screen .cs-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.completion-screen .cs-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.checklist-card {
  background: var(--bg);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}

.check-item:last-child {
  border-bottom: none;
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.check-item.checked .check-box {
  background: var(--f3);
  border-color: var(--f3);
  color: white;
  font-size: 13px;
}

.check-item .check-label {
  font-size: 14px;
  color: var(--text);
}

.score-input-wrap {
  margin-bottom: 16px;
}

.score-input-wrap .score-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 600;
}

.score-buttons {
  display: flex;
  gap: 6px;
}

.score-btn {
  flex: 1;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.score-btn.selected {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.complete-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: opacity 0.15s;
}

.complete-btn:active {
  opacity: 0.85;
}

.still-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
}

/* ===== LOG SCREEN ===== */
.log-header-hero {
  text-align: center;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.log-header-hero .label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.log-header-hero .count-big {
  font-size: 56px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -2px;
}

.log-header-hero .count-unit {
  font-size: 16px;
  color: var(--text-light);
  margin-left: 4px;
}

/* ===== LOG TABLE ===== */
.log-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.log-table th {
  font-size: 11px;
  color: var(--text-lighter);
  font-weight: 600;
  text-align: left;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--border);
}

.log-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  vertical-align: middle;
}

.log-table tr:last-child td {
  border-bottom: none;
}

.phase-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.phase-tag.f1 { background: var(--f1); }
.phase-tag.f2 { background: var(--f2); }
.phase-tag.f3 { background: var(--f3); }
.phase-tag.f3w { background: var(--f3w); }
.phase-tag.f4 { background: var(--f4); }
.phase-tag.f5 { background: var(--f5); }

/* ===== POSTURE CHECK ===== */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ===== EMOTION LOG ===== */
.emotion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.emotion-btn {
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.emotion-btn.selected {
  border-color: var(--f2);
  background: #eff6ff;
  color: var(--f2);
  font-weight: 600;
}

/* ===== CONTRACT DETAIL ===== */
.contract-detail {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.contract-detail-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.contract-detail-toggle .cdt-label {
  font-size: 13px;
  color: var(--text-lighter);
}

.contract-detail-body {
  display: none;
  margin-top: 12px;
}

.contract-detail.open .contract-detail-body {
  display: block;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .dr-label {
  color: var(--text-light);
}

.detail-row .dr-value {
  font-weight: 600;
  color: var(--text);
}

/* ===== MONTH END MESSAGE ===== */
.month-end-msg {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.month-end-msg .mem-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-lighter);
}

.empty-state .es-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-state .es-text {
  font-size: 14px;
  line-height: 1.5;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #1e293b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
}

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

/* ===== SEPARATOR ===== */
.sep {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ===== FIELD STEP INDICATOR ===== */
.field-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.field-step {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  transition: background 0.3s;
}

.field-step.done {
  background: var(--f3);
}

.field-step.active {
  background: var(--f2);
}

/* ===== ANIMATIONS ===== */
.screen { animation: screenIn 0.2s ease; }
@keyframes screenIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== COMPACT CARD ===== */
.compact-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}

/* ===== UTILITIES ===== */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-light); }
.text-lighter { color: var(--text-lighter); }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }

/* ===== SETUP MODE (準備モード) ===== */
.setup-mode-card {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid #93c5fd;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.sm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sm-badge {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.sm-progress {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

.sm-next-label {
  font-size: 11px;
  color: var(--text-lighter);
  margin-bottom: 4px;
}

.sm-next-task {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.sm-expand-btn {
  width: 100%;
  padding: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.sm-all-tasks {
  margin-top: 12px;
  border-top: 1px solid #bfdbfe;
  padding-top: 12px;
}

.sm-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e0f2fe;
  cursor: pointer;
  user-select: none;
}

.sm-task-item:last-child {
  border-bottom: none;
}

.sm-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #93c5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: #fff;
}

.sm-task-item.done .sm-check-box {
  background: #34d399;
  border-color: #34d399;
}

.sm-task-label {
  font-size: 14px;
  color: var(--text);
}

.sm-task-item.done .sm-task-label {
  color: var(--text-lighter);
  text-decoration: line-through;
}

/* ===== FIELD QUESTIONS NEW ===== */
.options-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opt-btn-wide {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.opt-btn-wide.selected {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.opt-btn-wide .opt-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.opt-btn-wide .opt-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* Q3 同意カード */
.q-consent-card {
  background: #fefce8 !important;
  border-color: #fde047 !important;
}

.q-note-info {
  font-size: 11px;
  color: #92400e;
  background: #fef3c7;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Q4 可視化カード */
.q-viz-card {
  background: #faf5ff !important;
  border-color: #c4b5fd !important;
}

/* フェーズプレビュー */
.phase-preview {
  border: 2px solid;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  animation: fadeIn 0.3s ease;
}

.pp-label {
  font-size: 11px;
  color: var(--text-lighter);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.pp-phase {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pp-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.pp-detail-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pp-detail-btn:active {
  opacity: 0.85;
}

.field-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-lighter);
  padding: 20px 0;
}

/* F5 トリガーボタン（更新） */
.f5-trigger-btn {
  width: 100%;
  padding: 13px;
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 12px;
  transition: all 0.15s;
}

.f5-trigger-btn.f5-active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

/* シミュレーターセクション */
.simulator-section {
  margin-bottom: 12px;
}

.sim-label {
  font-size: 12px;
  color: var(--text-lighter);
  font-weight: 600;
  margin-bottom: 8px;
}

.sim-note {
  font-size: 11px;
  color: var(--text-lighter);
  text-align: center;
  margin-top: 6px;
}

/* ===== COMPLETION SCREEN UPDATE ===== */
.cs-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cs-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cs-phase {
  font-size: 14px;
  font-weight: 600;
}

.f5-check-wrap {
  margin-bottom: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
}

.f5-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.f5-check-item .check-box {
  border-color: #fbbf24;
  margin-top: 2px;
  flex-shrink: 0;
}

.f5-check-item.checked .check-box {
  background: #f59e0b;
  border-color: #f59e0b;
}

/* ===== TOOLS SCREEN ===== */
.tools-intro {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.tools-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid transparent;
  transition: all 0.15s;
}

.tool-item:active {
  background: #f1f5f9;
  border-color: var(--border);
}

.tool-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.tool-info {
  flex: 1;
}

.tool-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tool-desc {
  font-size: 12px;
  color: var(--text-lighter);
}

.tool-arrow {
  color: var(--text-lighter);
  font-size: 14px;
}

.data-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.data-btn {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.data-btn:active {
  background: var(--bg);
}

.data-btn.danger {
  color: #ef4444;
  border-color: #fecaca;
  background: #fff5f5;
}

.data-btn.danger:active {
  background: #fee2e2;
}

/* ===== 4 TAB BOTTOM NAV 調整 ===== */
.nav-item {
  font-size: 9px;
}

/* ===== OPENING LINE CARD（切り出しセリフ） ===== */
.opening-line-card {
  border: 2px solid;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  animation: fadeIn 0.3s ease;
}

.opening-line-card.brake {
  border-color: #ef4444 !important;
  background: #fff5f514 !important;
}

.ol-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ol-emoji {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.2;
}

.ol-meta {
  flex: 1;
}

.ol-timing {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 3px;
  line-height: 1.4;
}

.ol-situation {
  font-size: 12px;
  color: var(--text-lighter);
  line-height: 1.4;
}

.ol-divider {
  height: 1px;
  background: currentColor;
  opacity: 0.12;
  margin-bottom: 12px;
}

.ol-line-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-lighter);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ol-line {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
  padding: 10px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(0,0,0,0.06);
}

.ol-line2 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.ol-note {
  font-size: 11px;
  color: var(--text-lighter);
  margin-bottom: 12px;
  padding-left: 4px;
  line-height: 1.4;
}

.ol-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ol-copy-btn {
  padding: 9px 16px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: all 0.15s;
  opacity: 0.7;
}

.ol-copy-btn:active,
.ol-copy-btn.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
  opacity: 1;
}

.ol-hint {
  font-size: 11px;
  color: var(--text-lighter);
  font-style: italic;
}

/* ===== BRAKE BANNER（提案欲ブレーキ） ===== */
.brake-banner {
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
}

.brake-banner-inner {
  background: #fff5f5;
  border: 2px solid #fca5a5;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.brake-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.brake-content {
  flex: 1;
}

.brake-title {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 8px;
}

.brake-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  line-height: 1.5;
  border: 1px solid #fecaca;
}

.brake-copy-btn {
  padding: 7px 14px;
  border: 1.5px solid #fca5a5;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.15s;
}

.brake-copy-btn:active,
.brake-copy-btn.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
}

/* ===== 会話ナビ (CONVERSATION NAVI) ===== */

/* ─── シーン選択 ─── */
.navi-header {
  text-align: center;
  padding: 20px 0 12px;
}
.navi-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.navi-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.scene-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.scene-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}
.scene-btn:active {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.scene-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.scene-info {
  flex: 1;
}
.scene-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.scene-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.scene-arrow {
  font-size: 18px;
  color: var(--text-light);
}

/* ─── ステップインジケーター ─── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
  padding: 0 4px;
}
.si-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--white);
  flex-shrink: 0;
  transition: all 0.2s;
}
.si-step.active {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.si-line {
  height: 2px;
  flex: 1;
  background: var(--border);
  transition: background 0.2s;
}
.si-line.done {
  background: #94a3b8;
  opacity: 0.5;
}

/* ─── フェーズバッジ ─── */
.navi-phase-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.npb-emoji {
  font-size: 20px;
}
.npb-title {
  font-size: 15px;
  font-weight: 700;
}

/* ─── フレーズカード ─── */
.navi-phrase-card {
  background: var(--white);
  border: 2px solid;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
}
.npc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.npc-phrase {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 6px;
  word-break: break-all;
}
.npc-note {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-style: italic;
}
.npc-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.npc-copy-btn:active {
  background: #f1f5f9;
}
.npc-copy-btn.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
}

/* ─── サブフレーズカード (F3ブレーキ) ─── */
.navi-subphrase-card {
  background: #fff7f7;
  border: 1.5px solid;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

/* ─── 可視化ツールセクション ─── */
.navi-tools-section {
  background: #faf5ff;
  border: 1.5px solid #e9d5ff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.nts-label {
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 10px;
}
.nts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nts-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
}
.nts-btn:active {
  background: #f5f3ff;
}
.nts-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.nts-label-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.nts-note {
  font-size: 11px;
  color: var(--text-light);
}

/* ─── フェーズ解説アコーディオン ─── */
.phase-detail-accordion {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white);
}
.pda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  user-select: none;
}
.pda-chevron {
  font-size: 11px;
  transition: transform 0.2s;
  display: inline-block;
}
.pda-body {
  display: none;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
}
.phase-detail-accordion.open .pda-body {
  display: block;
}
.pda-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.pda-ng-title {
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 8px;
}
.ng-word-item {
  font-size: 12px;
  color: #ef4444;
  background: #fff0f0;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 6px;
}

/* ─── 反応ボタン ─── */
.reaction-section {
  margin-bottom: 12px;
}
.reaction-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}
.reaction-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s;
  font-size: 14px;
}
.reaction-btn:active {
  background: color-mix(in srgb, var(--r-color, #64748b) 8%, white);
  border-color: var(--r-color, #64748b);
}
.rb-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.rb-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ─── 強制終了ボタン ─── */
.navi-end-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  text-align: center;
  margin-bottom: 10px;
  transition: all 0.15s;
}
.navi-end-btn:active {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* ─── 終了画面カード ─── */
.navi-end-card {
  border: 2px solid;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.nec-emoji {
  font-size: 40px;
  margin-bottom: 8px;
}
.nec-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.nec-msg {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.nec-phrase-wrap {
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
}
.nec-phrase-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
}
.nec-phrase {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}
.nec-note {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 8px;
}

/* ===== シーン別温度設定 (SCENE TEMPERATURE) ===== */

/* ─── シーン選択：推奨フェーズ表示 ─── */
.scene-recommend {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

/* ─── 温度設定バナー（フレーズ画面上部） ─── */
.scene-temp-banner {
  border: 1.5px solid;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.stb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.stb-scene {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.stb-recommend {
  font-size: 12px;
  font-weight: 700;
}
.stb-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stb-item {
  font-size: 11px;
  color: var(--text-light);
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ─── シーン超過警告バナー ─── */
.scene-warn-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.scene-lock-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff0f0;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.swb-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.swb-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

/* ─── ステップインジケーター：グレーアウト ─── */
.si-step.locked {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #cbd5e1;
  font-size: 12px;
}
.si-line.locked {
  background: #e2e8f0;
  opacity: 0.5;
}

/* ─── 反応ボタン：ロック状態 ─── */
.reaction-btn-wrap.locked {
  margin-bottom: 0;
}
.reaction-btn--locked {
  opacity: 0.55;
  border-style: dashed;
  border-color: #cbd5e1 !important;
  background: #f8fafc;
}
.rb-lock-note {
  font-size: 10px;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
  font-weight: 600;
}

/* ─── 反応ボタン：警告状態 ─── */
.reaction-btn--warn {
  border-color: #fcd34d;
  background: #fffbeb;
}
.reaction-btn--warn:active {
  background: #fef9c3;
}
.rb-label-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rb-warn-note {
  font-size: 10px;
  color: #d97706;
  font-weight: 600;
}

/* ===== 自分の欲チェック (DESIRE CHECK GATE) ===== */
.desire-check-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  margin-bottom: 16px;
}
.dc-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.dc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.dc-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.dc-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.dc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}
.dc-item.safe {
  border-color: #86efac;
}
.dc-item.warn {
  border-color: #fca5a5;
}
.dc-item.selected.safe {
  background: #f0fdf4;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px #86efac;
}
.dc-item.selected.warn {
  background: #fff0f0;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px #fca5a5;
}
.dc-item-icon {
  font-size: 22px;
}
.dc-item-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.dc-check {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  color: #16a34a;
  font-weight: 700;
}
.dc-feedback {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: left;
}
.dc-feedback.safe {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
.dc-feedback.warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.dc-proceed-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1e293b;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.dc-proceed-btn.warn {
  background: #92400e;
}
.dc-proceed-btn:active {
  opacity: 0.85;
}
.dc-hint {
  font-size: 13px;
  color: var(--text-light);
  padding: 8px;
}

/* ===== 空気チェック (AIR CHECK) ===== */
.air-check-section {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.acs-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}
.acs-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.acs-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.acs-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s;
}
.acs-item.selected {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}
.acs-icon {
  font-size: 16px;
}
.acs-text {
  font-size: 12px;
}
.acs-note {
  font-size: 11px;
  color: #22c55e;
  font-weight: 700;
  margin-top: 8px;
  text-align: right;
}

/* ===== 完了画面: 空気観察ログ ===== */
.air-obs-section {
  margin-bottom: 16px;
}
.air-obs-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.air-phase-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.aps-tag {
  font-size: 11px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 600;
}
.air-obs-input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  resize: none;
  line-height: 1.6;
  background: var(--white);
  transition: border-color 0.15s;
}
.air-obs-input:focus {
  outline: none;
  border-color: #60a5fa;
}

/* フレーズカードのヒント */
.npc-hint {
  font-size: 11px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

/* ─── F6/F7 ロック・カウントロック ─── */
.si-step.count-locked {
  background: #fef9c3;
  border-color: #fde047;
  color: #a16207;
  font-size: 10px;
}
.f6-lock-hint {
  font-size: 11px;
  color: #92400e;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 6px;
  text-align: center;
}
.reaction-btn--count-locked {
  opacity: 0.7;
  background: #fef9c3 !important;
  border: 2px dashed #fde047 !important;
  color: #92400e !important;
  cursor: not-allowed;
}
.rb-count-note {
  display: block;
  font-size: 10px;
  color: #92400e;
  margin-top: 2px;
}

/* ─── F7 成約バナー ─── */
.f7-contract-banner {
  background: linear-gradient(135deg, #fdf4ff, #fce7f3);
  border: 2px solid #f9a8d4;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #9d174d;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ─── ステップインジケーター F6/F7対応（7フェーズ） ─── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 0;
}
.si-step {
  min-width: 28px;
  height: 28px;
  font-size: 9px;
  flex-shrink: 0;
}
.si-line {
  flex-shrink: 0;
  width: 10px;
}

/* ─── ホーム: F6/F7解放ヒント ─── */
.f6-unlock-hint {
  font-size: 12px;
  color: #92400e;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
  line-height: 1.6;
  text-align: center;
}
.f6-unlock-done {
  font-size: 12px;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
  text-align: center;
}

/* ─── フレーズバリエーション UI ─── */
.npc-phrase-variants {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.npv-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.npv-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.npv-count {
  font-size: 11px;
  color: var(--text-light);
}
.npv-nav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.npv-prev-btn,
.npv-next-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.npv-prev-btn:hover:not(.disabled),
.npv-next-btn:hover:not(.disabled) {
  background: #f0f9ff;
  border-color: #60a5fa;
}
.npv-prev-btn.disabled,
.npv-next-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.npv-next-btn {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.npv-next-btn:hover:not(.disabled) {
  background: #dcfce7;
  border-color: #4ade80;
}

/* ─── 前提チェックゲート ─── */
.precond-card {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 16px;
}
.pc-icon {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}
.pc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px;
}
.pc-sub {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}
.pc-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s;
}
.pc-item.checked {
  border-color: #34d399;
  background: #f0fdf4;
}
.pc-item.checked.required {
  border-color: #34d399;
}
.pc-item:active {
  transform: scale(0.98);
}
.pc-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s;
}
.pc-item.checked .pc-check-box {
  background: #34d399;
  border-color: #34d399;
  color: #fff;
}
.pc-item-body {
  flex: 1;
  min-width: 0;
}
.pc-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.pc-item-icon {
  font-size: 14px;
}
.pc-required-badge {
  font-size: 10px;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  padding: 1px 6px;
  border-radius: 10px;
}
.pc-optional-badge {
  font-size: 10px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  padding: 1px 6px;
  border-radius: 10px;
}
.pc-item-hint {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
}
.pc-hint-msg {
  font-size: 12px;
  color: #92400e;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.pc-ready-msg {
  font-size: 13px;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 600;
}
.pc-start-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 10px;
}
.pc-start-btn.ready {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  box-shadow: 0 2px 8px rgba(52,211,153,0.3);
}
.pc-start-btn.ready:active {
  transform: scale(0.98);
}
.pc-start-btn.disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}
.pc-skip-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: transparent;
  color: var(--text-light);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.pc-skip-btn:hover {
  background: #f8fafc;
  color: var(--text);
}
