/* ==========================================================================
   英検 語彙マスター（4級〜1級 単語・熟語トレーナー） — Mobile-First Learning App UI
   ========================================================================== */

:root {
  --bg-app: #f0f7f6;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #f0fdfa;
  --primary-border: #99f6e4;
  --accent-indigo: #4338ca;
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #6ee7b7;
  --danger: #e11d48;
  --danger-bg: #fff1f2;
  --danger-border: #fda4af;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--text-main);
  background: var(--bg-app);
  -webkit-tap-highlight-color: transparent;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: var(--bg-app);
  color: var(--text-main);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.5;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  border: none;
  background: none;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

[hidden] {
  display: none !important;
}

/* アプリ外枠（スマホ中央フレーム、PCでも美しいモバイルアプリビュー） */
.eapp-shell {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(74px + var(--safe-bottom));
}

/* ==================== 上部ヘッダー ==================== */
.eapp-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.eapp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eapp-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e, #0284c7);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(15, 118, 110, 0.28);
}

.eapp-brand-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.eapp-brand-sub {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.eapp-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==================== メインコンテンツ領域 ==================== */
.eapp-view {
  flex: 1;
  padding: 14px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==================== ヒーローカード ==================== */
.eapp-hero-card {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 50%, #0284c7 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eapp-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eapp-hero-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.eapp-hero-desc {
  margin: 0;
  font-size: 12.5px;
  opacity: 0.92;
}

.eapp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.eapp-stat-box {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 9px 10px;
  text-align: center;
}

.eapp-stat-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.eapp-stat-label {
  font-size: 11px;
  opacity: 0.88;
}

.eapp-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.eapp-hero-btn {
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.1s;
}

.eapp-hero-btn:active {
  transform: scale(0.98);
}

.eapp-hero-btn.is-primary {
  background: #ffffff;
  color: #115e59;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.eapp-hero-btn.is-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

/* ==================== 級タブ（4級〜1級） ==================== */
.eapp-grade-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #cbd5e1;
  padding: 4px;
  border-radius: 13px;
  gap: 4px;
}

.eapp-grade-tab {
  padding: 9px 4px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-sub);
  text-align: center;
  transition: all 0.15s ease;
}

.eapp-grade-tab.is-active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

/* 種類・出題形式コントロールバー */
.eapp-mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.eapp-segmented {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
}

.eapp-seg-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-sub);
}

.eapp-seg-btn.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.25);
}

/* ==================== ステージ（Part）カードリスト ==================== */
.eapp-stage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.eapp-stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eapp-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.eapp-stage-info {
  flex: 1;
  min-width: 0;
}

.eapp-stage-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 3px;
}

.eapp-stage-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.eapp-stage-preview {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eapp-stage-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eapp-progress-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.eapp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #10b981);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.eapp-progress-text {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.eapp-stage-actions {
  display: flex;
  gap: 8px;
}

.eapp-stage-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.eapp-stage-btn.is-quiz {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.2);
}

.eapp-stage-btn.is-quiz.is-completed {
  background: var(--success);
}

.eapp-stage-btn.is-card {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-sub);
}

/* ==================== 演習セッション画面（4択＆単語カード共通フルスクリーン） ==================== */
.eapp-session-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
}

.eapp-session-header {
  flex: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eapp-session-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.eapp-icon-btn {
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eapp-icon-btn.is-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-dark);
}

.eapp-session-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eapp-session-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eapp-session-step-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  min-width: 64px;
}

.eapp-session-dots {
  flex: 1;
  display: flex;
  gap: 3px;
  height: 7px;
  overflow: hidden;
}

.eapp-session-dot {
  flex: 1;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.eapp-session-dot.is-current {
  background: var(--primary);
  transform: scaleY(1.3);
}

.eapp-session-dot.is-correct {
  background: var(--success);
}

.eapp-session-dot.is-wrong {
  background: var(--danger);
}

/* セッション本文 */
.eapp-session-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 問題・見出し語カード */
.eapp-question-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
}

.eapp-badge-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.eapp-grade-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 800;
}

.eapp-speak-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eapp-speak-btn:active {
  transform: scale(0.96);
  background: #dbeafe;
}

.eapp-word-display {
  margin: 6px 0 2px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-main);
  letter-spacing: 0.01em;
  word-break: break-word;
}

.eapp-word-prompt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==================== 4択オプションボタン ==================== */
.eapp-choices-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.eapp-choice-btn {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.12s ease;
}

.eapp-choice-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.eapp-choice-index {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid #94a3b8;
  color: #334155;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eapp-choice-btn.is-correct {
  border-color: var(--success);
  background: var(--success-bg);
}

.eapp-choice-btn.is-correct .eapp-choice-index {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.eapp-choice-btn.is-wrong {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.eapp-choice-btn.is-wrong .eapp-choice-index {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

/* ==================== フラッシュカード（暗記カードモード） ==================== */
.eapp-flashcard {
  min-height: 250px;
  background: #ffffff;
  border: 2px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.eapp-flashcard:active {
  transform: scale(0.99);
}

.eapp-flashcard-divider {
  width: 80%;
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.eapp-flashcard-answer {
  font-size: 21px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.45;
}

.eapp-flashcard-hint {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 999px;
}

.eapp-judge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.eapp-judge-btn {
  min-height: 54px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.eapp-judge-btn.is-ng {
  background: var(--danger-bg);
  border: 2px solid var(--danger-border);
  color: var(--danger);
}

.eapp-judge-btn.is-ok {
  background: var(--success);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

/* ==================== 採点結果・解説カード ==================== */
.eapp-result-card {
  border-radius: var(--radius-md);
  padding: 15px 16px;
  border: 2px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eapp-result-card.is-correct {
  border-color: var(--success-border);
  background: linear-gradient(to bottom, #ecfdf5 0%, #ffffff 80px);
}

.eapp-result-card.is-wrong {
  border-color: var(--danger-border);
  background: linear-gradient(to bottom, #fff1f2 0%, #ffffff 80px);
}

.eapp-result-verdict {
  font-size: 18px;
  font-weight: 900;
}

.eapp-result-card.is-correct .eapp-result-verdict { color: var(--success); }
.eapp-result-card.is-wrong .eapp-result-verdict { color: var(--danger); }

.eapp-pair-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.eapp-pair-en {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-main);
}

.eapp-pair-ja {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
}

.eapp-submit-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.eapp-next-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

.eapp-giveup-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 700;
}

/* ==================== 検索・単語帳・過去問カード ==================== */
.eapp-search-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: var(--shadow-sm);
}

.eapp-search-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1.5px solid #cbd5e1;
  font-size: 15px;
  background: var(--bg-subtle);
}

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

.eapp-filter-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-sub);
}

.eapp-filter-chip.is-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-dark);
}

.eapp-dict-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.eapp-dict-main {
  flex: 1;
  min-width: 0;
}

.eapp-dict-en {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.eapp-dict-ja {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-sub);
  margin-top: 2px;
}

.eapp-exam-url-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 9px;
}

.eapp-exam-url-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-sub);
}

.eapp-exam-url-controls {
  display: flex;
  gap: 6px;
}

.eapp-exam-url-input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 長文パッセージ・ライティング・二次試験UI ==================== */
.eapp-stimulus-box {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eapp-stimulus-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-dark);
}

.eapp-stimulus-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-main);
  white-space: pre-wrap;
  font-family: Georgia, "Times New Roman", -apple-system, BlinkMacSystemFont, sans-serif;
}

.eapp-question-prompt-box {
  width: 100%;
  text-align: left;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-wrap;
}

.eapp-written-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.eapp-written-textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border-radius: 11px;
  border: 1.5px solid #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  background: var(--bg-subtle);
}

.eapp-written-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}

.eapp-wordcount-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary-dark);
}

.eapp-rubric-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.eapp-rubric-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.eapp-rubric-item input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
}

.eapp-sample-box {
  background: #f0fdfa;
  border-left: 4px solid var(--primary);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.68;
  white-space: pre-wrap;
  color: var(--text-main);
}

.eapp-exp-detail-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.62;
  white-space: pre-wrap;
  color: #78350f;
}

.eapp-option-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eapp-option-reason-item {
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  font-size: 13px;
  line-height: 1.5;
}

/* ==================== 下部ボトムナビゲーション ==================== */
.eapp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 6px 8px calc(6px + var(--safe-bottom));
  display: flex;
  justify-content: space-around;
  max-width: 680px;
  margin: 0 auto;
}

.eapp-nav-item {
  flex: 1;
  padding: 6px 4px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.eapp-nav-icon {
  font-size: 19px;
  line-height: 1.1;
}

.eapp-nav-item.is-active {
  color: var(--primary);
}

.eapp-badge-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  margin-left: 3px;
}
