/* ============================================================
   読見古文315 - 和モダン スタイルシート
   ============================================================ */

:root {
  /* 伝統色 */
  --color-kinari: #F7F6F3;       /* 生成り色 */
  --color-sumitsumi: #2B2B2B;    /* 消炭色 */
  --color-shinku: #A8282B;       /* 深紅 */
  --color-ai: #0F2537;           /* 藍色 */
  --color-kincha: #C9A85C;       /* 金茶（アクセント補助） */
  --color-usuzumi: rgba(43,43,43,0.06); /* 淡墨 */

  --text-main: #2B2B2B;
  --text-sub: #6b6560;
  --surface: rgba(255,255,255,0.55);
  --surface-strong: rgba(255,255,255,0.72);
  --border-soft: rgba(43,43,43,0.08);

  --bg-base: var(--color-kinari);
  --header-h: 84px;

  --font-serif: "Shippori Mincho", "Noto Serif JP", "游明朝", "Yu Mincho", serif;

  --shadow-soft: 0 8px 32px rgba(43,43,43,0.10);
  --shadow-deep: 0 16px 48px rgba(15,37,55,0.18);

  --transition-base: 0.35s cubic-bezier(.22,.9,.32,1);
}

[data-theme="dark"] {
  --color-kinari: #2B2B2B;
  --text-main: #EDE8DE;
  --text-sub: #b9b2a6;
  --surface: rgba(30,30,30,0.55);
  --surface-strong: rgba(35,35,35,0.72);
  --border-soft: rgba(255,255,255,0.10);
  --bg-base: #201f1d;
  --color-usuzumi: rgba(255,255,255,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-serif);
  background: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景装飾（和紙・波紋のグラデーション） ---------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
[data-theme="dark"] .bg-wave { opacity: .18; }
.bg-wave-1 {
  width: 60vw; height: 60vw;
  top: -20vw; right: -15vw;
  background: radial-gradient(circle, var(--color-shinku), transparent 70%);
}
.bg-wave-2 {
  width: 55vw; height: 55vw;
  bottom: -20vw; left: -15vw;
  background: radial-gradient(circle, var(--color-ai), transparent 70%);
}

/* ============================================================
   ヘッダー / ナビゲーション
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-shinku), #7d1517);
  color: #F7F6F3;
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.logo-sub { font-size: 10px; letter-spacing: .18em; color: var(--text-sub); font-family: sans-serif; }

.main-nav { display: flex; gap: 6px; }
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-sub);
  padding: 8px 16px;
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: .05em;
  transition: all var(--transition-base);
}
.nav-btn i { font-size: 16px; }
.nav-btn:hover { background: var(--color-usuzumi); color: var(--text-main); }
.nav-btn.active {
  background: linear-gradient(135deg, var(--color-ai), #1a3a54);
  color: #F7F6F3;
  box-shadow: var(--shadow-soft);
}

.dark-toggle, .hamburger {
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  font-size: 16px;
  flex-shrink: 0;
}
.hamburger { display: none; flex-direction: column; gap: 4px; border-radius: 10px; }
.hamburger span { width: 18px; height: 2px; background: var(--text-main); border-radius: 2px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  z-index: 99;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  flex-direction: column;
  padding: 8px;
  box-shadow: var(--shadow-soft);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-btn { flex-direction: row; justify-content: flex-start; gap: 10px; width: 100%; padding: 12px 16px; font-size: 14px; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   縦書き見出し
   ============================================================ */
[data-vertical] {
  writing-mode: vertical-rl;
  text-orientation: upright;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-ai);
  height: 220px;
  margin: 0 auto 24px;
  letter-spacing: .18em;
  position: relative;
}
[data-theme="dark"] .section-title { color: #d8c9a3; }
.section-title::after {
  content: "";
  position: absolute;
  left: -14px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-shinku), transparent);
}

/* ============================================================
   共通レイアウト
   ============================================================ */
main { padding-top: var(--header-h); }
.mode-section { display: none; min-height: calc(100vh - var(--header-h) - 56px); padding: 40px 0 80px; }
.mode-section.active { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px);} to { opacity:1; transform:none; } }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-sub);
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
}

/* ============================================================
   ① ダッシュボード
   ============================================================ */
.dashboard-summary {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
}
.progress-ring-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.progress-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--color-usuzumi); stroke-width: 8; }
.progress-ring-fg {
  fill: none; stroke: var(--color-shinku); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s cubic-bezier(.22,.9,.32,1);
}
.progress-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.progress-ring-label span { font-size: 24px; font-weight: 700; color: var(--color-shinku); }
.progress-ring-label small { font-size: 11px; color: var(--text-sub); }

.summary-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat-card { display: flex; align-items: center; gap: 10px; }
.stat-icon { font-size: 20px; color: var(--color-ai); }
.stat-icon.mastered { color: var(--color-shinku); }
.stat-icon.unlearned { color: var(--text-sub); }
.stat-card strong { display: block; font-size: 22px; }
.stat-card span { font-size: 12px; color: var(--text-sub); }

.dashboard-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-tab {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-serif);
  color: var(--text-sub);
  transition: all var(--transition-base);
}
.dash-tab.active { background: var(--color-ai); color: #fff; border-color: var(--color-ai); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.dash-item {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}
.dash-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.dash-item .dash-word { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.dash-item .dash-kana { font-size: 11px; color: var(--text-sub); margin: 0; }
.dash-item .dash-status {
  position: absolute; top: 8px; right: 8px; font-size: 12px;
}
.dash-item .dash-status.mastered { color: var(--color-shinku); }
.dash-item .dash-status.unlearned { color: var(--text-sub); opacity: .5; }
.dash-group-title { font-size: 16px; margin: 28px 0 12px; color: var(--color-ai); font-weight: 700; }
[data-theme="dark"] .dash-group-title { color: #d8c9a3; }

/* ============================================================
   ② カード機能（百人一首モード）
   ============================================================ */
.cards-hint { text-align: center; color: var(--text-sub); font-size: 13px; margin-bottom: 8px; font-family: sans-serif; }
.card-counter { text-align: center; font-size: 13px; color: var(--text-sub); margin-bottom: 16px; }

.card-stage { display: flex; justify-content: center; margin-bottom: 28px; perspective: 1600px; }
.flip-card {
  width: min(320px, 84vw);
  height: 440px;
  cursor: pointer;
  outline: none;
}
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(.22,.9,.32,1);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card.shake .flip-card-inner { animation: shake .45s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.flip-card-face {
  position: absolute; inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-deep);
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
}
.flip-card-front {
  justify-content: space-between;
  background: linear-gradient(160deg, var(--surface-strong), var(--color-usuzumi));
}
.card-chapter {
  align-self: flex-start;
  font-size: 11px; color: var(--text-sub);
  border: 1px solid var(--border-soft);
  padding: 3px 10px; border-radius: 12px;
  font-family: sans-serif;
}
.card-word {
  font-size: 42px; font-weight: 700; height: 200px;
  color: var(--color-ai); margin: 8px 0;
}
[data-theme="dark"] .card-word { color: #ecdcb8; }
.card-kana { font-size: 14px; color: var(--text-sub); margin: 0; }
.card-pos {
  font-size: 12px; background: var(--color-ai); color: #fff;
  padding: 4px 14px; border-radius: 14px; font-family: sans-serif;
}
.flip-instruction { font-size: 11px; color: var(--text-sub); font-family: sans-serif; }

.flip-card-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--color-ai), #0a1a28);
  color: #F7F6F3;
}
.back-word { font-size: 22px; margin: 0 0 12px; font-weight: 700; }
.back-meanings { list-style: none; padding: 0; margin: 0 0 14px; width: 100%; }
.back-meanings li {
  padding: 6px 0 6px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: relative;
  font-size: 15px;
}
.back-meanings li::before { content: "・"; position: absolute; left: 0; color: var(--color-shinku); }
.back-nuance { font-size: 12.5px; line-height: 1.8; color: #d9d4c9; margin: 0 0 12px; font-family: sans-serif; }
.back-example { border-top: 1px dashed rgba(255,255,255,0.25); padding-top: 10px; width: 100%; }
.example-text { font-size: 13.5px; margin: 0 0 4px; }
.example-translation { font-size: 12px; color: #c7bfa9; margin: 0; font-family: sans-serif; }

.card-actions { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 20px; }
.sort-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 10px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 14px;
  transition: all var(--transition-base);
}
.sort-unlearned:hover, .sort-unlearned.active { background: var(--color-sumitsumi); color: #fff; }
.sort-mastered:hover, .sort-mastered.active { background: var(--color-shinku); color: #fff; border-color: var(--color-shinku); }
.fav-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  cursor: pointer;
  color: var(--color-kincha);
  font-size: 16px;
}
.fav-btn.active i { font-weight: 900; }
.fav-btn.active { color: var(--color-kincha); }

.card-nav-btns { display: flex; justify-content: center; gap: 20px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface-strong);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}
.round-btn:hover { background: var(--color-ai); color: #fff; }

/* ============================================================
   ③ テスト機能
   ============================================================ */
.test-select-title { text-align: center; font-weight: 700; color: var(--color-ai); }
[data-theme="dark"] .test-select-title { color: #d8c9a3; }
.test-mode-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.test-mode-card {
  width: 240px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.test-mode-card i { font-size: 28px; color: var(--color-shinku); }
.test-mode-card strong { font-size: 16px; }
.test-mode-card span { font-size: 12px; color: var(--text-sub); text-align: center; font-family: sans-serif; }
.test-mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.test-progress-bar { height: 6px; background: var(--color-usuzumi); border-radius: 4px; overflow: hidden; max-width: 480px; margin: 0 auto; }
.test-progress-fill { height: 100%; width: 0%; background: var(--color-shinku); transition: width .4s; }
.test-progress-text { text-align: center; font-size: 12px; color: var(--text-sub); margin: 8px 0 24px; }

.test-card {
  max-width: 480px; margin: 0 auto;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.test-card.shake { animation: shake .45s; }
.test-word { font-size: 34px; font-weight: 700; height: 140px; margin: 0 auto 8px; color: var(--color-ai); }
[data-theme="dark"] .test-word { color: #ecdcb8; }
.test-kana { color: var(--text-sub); margin-bottom: 20px; }

.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 14px;
  transition: all .25s;
}
.quiz-option:hover { background: var(--color-usuzumi); }
.quiz-option.correct { background: var(--color-ai); color: #fff; border-color: var(--color-ai); }
.quiz-option.wrong { background: var(--color-shinku); color: #fff; border-color: var(--color-shinku); }

.reveal-btn, .primary-btn {
  background: var(--color-ai);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s;
}
.reveal-btn:hover, .primary-btn:hover { transform: translateY(-2px); }
.selfcheck-answer {
  margin-top: 18px; text-align: left;
  background: var(--color-usuzumi);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.8;
}
.selfcheck-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
.self-btn {
  border: none; padding: 12px 22px; border-radius: 24px; cursor: pointer;
  font-family: var(--font-serif); font-size: 14px; color: #fff;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-soft);
}
.self-wrong { background: var(--color-sumitsumi); }
.self-correct { background: var(--color-shinku); }

.ink-splash {
  position: fixed; top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,43,43,0.5), transparent 70%);
  transform: translate(-50%,-50%) scale(0);
  pointer-events: none;
  z-index: 9999;
}
.ink-splash.play { animation: inkPlay 0.9s ease-out; }
@keyframes inkPlay {
  0% { transform: translate(-50%,-50%) scale(0); opacity: .8; }
  100% { transform: translate(-50%,-50%) scale(40); opacity: 0; }
}

.test-result { max-width: 400px; margin: 60px auto; text-align: center; background: var(--surface); border-radius: 24px; padding: 40px; border: 1px solid var(--border-soft); }
.result-score { font-size: 24px; font-weight: 700; color: var(--color-shinku); margin: 16px 0 24px; }

.hidden { display: none !important; }

/* ============================================================
   ④ 辞書機能（2カラム）
   ============================================================ */
.dictionary-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  position: relative;
}
.dictionary-list-pane {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 16px;
  max-height: 620px;
  overflow-y: auto;
}
.dict-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-soft); border-radius: 14px; padding: 8px 14px; margin-bottom: 12px; background: var(--surface-strong); }
.dict-search input { border: none; background: transparent; outline: none; font-family: var(--font-serif); font-size: 14px; color: var(--text-main); width: 100%; }
.dict-word-list { list-style: none; margin: 0; padding: 0; }
.dict-word-item {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.dict-word-item:hover, .dict-word-item.active { background: var(--color-usuzumi); }
.dict-word-item.active { background: var(--color-ai); color: #fff; }
.dict-word-item .diw-word { font-size: 15px; }
.dict-word-item .diw-kana { font-size: 11px; color: var(--text-sub); }
.dict-group-label { font-size: 11px; color: var(--color-shinku); font-weight: 700; margin: 14px 0 4px 4px; font-family: sans-serif; }

.dictionary-detail-pane {
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 40px;
  min-height: 620px;
  display: flex;
  gap: 30px;
  box-shadow: var(--shadow-soft);
}
.detail-word-vertical {
  font-size: 44px; font-weight: 700; color: var(--color-ai);
  height: 100%;
  flex-shrink: 0;
}
[data-theme="dark"] .detail-word-vertical { color: #ecdcb8; }
.detail-body { flex: 1; }
.detail-kana { color: var(--text-sub); margin: 0 0 6px; }
.detail-pos-chapter { display: flex; gap: 8px; margin-bottom: 18px; }
.detail-pos-chapter span { font-size: 12px; background: var(--color-usuzumi); padding: 4px 12px; border-radius: 12px; font-family: sans-serif; }
.detail-meanings { padding: 0 0 0 18px; margin: 0 0 18px; }
.detail-meanings li { margin-bottom: 6px; font-size: 15px; }
.detail-nuance { background: var(--color-usuzumi); border-radius: 14px; padding: 16px 18px; font-size: 13.5px; line-height: 1.9; margin-bottom: 18px; font-family: sans-serif; }
.detail-example { border-left: 3px solid var(--color-shinku); padding-left: 16px; }
.detail-example .ex-text { font-size: 15px; margin: 0 0 6px; }
.detail-example .ex-trans { font-size: 13px; color: var(--text-sub); margin: 0; font-family: sans-serif; }

.kana-index {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 6px;
  align-self: start;
}
.kana-index button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  cursor: pointer; font-size: 12px;
  font-family: var(--font-serif);
}
.kana-index button:hover, .kana-index button.active { background: var(--color-shinku); color: #fff; }

@media (max-width: 900px) {
  .dictionary-layout { grid-template-columns: 1fr; }
  .dictionary-detail-pane { flex-direction: column; }
  .detail-word-vertical { writing-mode: horizontal-tb; height: auto; font-size: 30px; }
  .kana-index { display: none; }
}

/* ============================================================
   ⑤ 設定機能
   ============================================================ */
.settings-panel { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.settings-block {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
}
.settings-block h2 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--color-ai); }
[data-theme="dark"] .settings-block h2 { color: #d8c9a3; }
.settings-block p { font-size: 13.5px; line-height: 1.8; color: var(--text-sub); font-family: sans-serif; margin: 0 0 14px; }
.settings-meta { font-size: 12px !important; }

.danger-btn {
  background: transparent;
  color: var(--color-shinku);
  border: 1px solid var(--color-shinku);
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  font-family: var(--font-serif);
}
.danger-btn:hover { background: var(--color-shinku); color: #fff; }

.import-mode-select { display: flex; gap: 20px; margin-bottom: 14px; font-family: sans-serif; font-size: 13px; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.file-drop {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px dashed var(--border-soft);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  font-family: sans-serif; font-size: 13px;
  color: var(--text-sub);
  transition: all .25s;
}
.file-drop:hover { background: var(--color-usuzumi); }
.file-drop i { font-size: 20px; color: var(--color-ai); }
.import-status { font-size: 12.5px; color: var(--color-shinku); margin-top: 10px; font-family: sans-serif; }

/* ============================================================
   トースト
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-sumitsumi);
  color: #F7F6F3;
  padding: 12px 26px;
  border-radius: 24px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 999;
  font-family: sans-serif;
  box-shadow: var(--shadow-deep);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 600px) {
  .section-title { font-size: 22px; height: 180px; }
  .dashboard-summary { flex-direction: column; }
  .flip-card { height: 400px; }
  .card-word { font-size: 32px; height: 160px; }
}
