/* ===================================
   日商簿記1級 勘定科目クイズ RPG
   帳簿・伝票・スタンプテーマ
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  /* ダークモードカラー */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.8);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.2);
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-yellow: #eab308;
  
  /* 帳簿テクスチャ用 */
  --ledger-line: rgba(148, 163, 184, 0.1);
  --stamp-red: #dc2626;
  --stamp-blue: #2563eb;
}

.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: rgba(100, 116, 139, 0.2);
  --ledger-line: rgba(100, 116, 139, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

/* 帳簿風背景テクスチャ */
.dark-mode {
  background: 
    /* 横罫線 */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      var(--ledger-line) 29px,
      var(--ledger-line) 30px
    ),
    /* 縦罫線（左マージン） */
    linear-gradient(
      90deg,
      transparent 39px,
      rgba(239, 68, 68, 0.1) 39px,
      rgba(239, 68, 68, 0.1) 41px,
      transparent 41px
    ),
    /* グラデーション背景 */
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.light-mode {
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      var(--ledger-line) 29px,
      var(--ledger-line) 30px
    ),
    linear-gradient(
      90deg,
      transparent 39px,
      rgba(239, 68, 68, 0.15) 39px,
      rgba(239, 68, 68, 0.15) 41px,
      transparent 41px
    ),
    linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f8fafc 100%);
}

/* ===================================
   コンテナ
=================================== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* ===================================
   ヘッダー
=================================== */
.header {
  text-align: center;
  padding: 2rem 0;
}

.header-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.header-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* ===================================
   カード共通スタイル
=================================== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
}

/* ===================================
   統計カード
=================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===================================
   戦闘画面
=================================== */
#battleContainer {
  position: relative;
}

/* HUD（ヘッドアップディスプレイ） */
.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-hearts {
  display: flex;
  gap: 0.25rem;
  font-size: 1.5rem;
}

.hud-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.hud-combo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

.hud-right {
  text-align: right;
}

.hud-progress {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* 敵カード */
.enemy-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent-red);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: visible;
}

.enemy-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.enemy-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.enemy-info {
  flex: 1;
}

.enemy-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
}

.enemy-hp-bar {
  height: 1.25rem;
  background: var(--bg-secondary);
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.enemy-hp-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 9999px;
  transition: width 0.5s ease, background-color 0.3s ease;
}

.enemy-hp-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* 敵ノックバックアニメーション */
.enemy-knockback {
  animation: knockback 0.3s ease;
}

@keyframes knockback {
  0% { transform: translateX(0); }
  25% { transform: translateX(20px); }
  50% { transform: translateX(-10px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* ダメージ数字 */
.damage-number {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-yellow);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: damageFloat 1s ease-out forwards;
  pointer-events: none;
  z-index: 100;
}

@keyframes damageFloat {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
  }
}

/* ===================================
   問題カード（仕訳帳風）
=================================== */
.question-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  
  /* 仕訳帳風の装飾 */
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      var(--ledger-line) 29px,
      var(--ledger-line) 30px
    );
}

.question-card::before {
  content: '仕訳帳';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent-purple);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.question-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* タグスタイル */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-category {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.tag-field {
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
}

.tag-importance-a {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.tag-importance-b {
  background: rgba(234, 179, 8, 0.2);
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow);
}

.tag-importance-c {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid #9ca3af;
}

/* タイマーリング */
.timer-ring {
  width: 60px;
  height: 60px;
  position: relative;
}

.timer-ring svg {
  transform: rotate(-90deg);
}

.timer-ring circle {
  fill: none;
  stroke-width: 6;
}

.timer-ring .timer-bg {
  stroke: var(--bg-secondary);
}

.timer-ring .timer-progress {
  stroke: var(--accent-green);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 700;
}

/* 問題文 */
.question-text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  border-left: 4px solid var(--accent-purple);
}

/* ===================================
   4択ボタン（科目ラベル風）
=================================== */
.choices-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .choices-container {
    grid-template-columns: 1fr;
  }
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  
  /* 科目ラベル風の装飾 */
  position: relative;
  overflow: hidden;
}

.choice-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-purple);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.choice-btn:hover:not(:disabled) {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.choice-btn:hover:not(:disabled)::before {
  transform: scaleY(1);
}

.choice-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.choice-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent-purple);
  color: white;
  border-radius: 0.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.choice-text {
  flex: 1;
  line-height: 1.4;
}

/* 正解・不正解スタイル */
.choice-btn.correct {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--accent-green);
}

.choice-btn.correct::before {
  background: var(--accent-green);
  transform: scaleY(1);
}

.choice-btn.correct .choice-label {
  background: var(--accent-green);
}

.choice-btn.incorrect {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--accent-red);
}

.choice-btn.incorrect::before {
  background: var(--accent-red);
  transform: scaleY(1);
}

.choice-btn.incorrect .choice-label {
  background: var(--accent-red);
}

/* ===================================
   スタンプ
=================================== */
.stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid;
  border-radius: 0.5rem;
  font-weight: 900;
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

.stamp-correct {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
}

.stamp-incorrect {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

.stamp-icon {
  font-size: 3rem;
  margin-bottom: 0.25rem;
}

.stamp-text {
  font-size: 1.25rem;
}

/* スタンプ出現アニメーション */
.stamp-appear {
  animation: stampAppear 0.5s ease forwards;
}

@keyframes stampAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-15deg) scale(2);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0.9);
  }
  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) rotate(-15deg) scale(1);
  }
}

/* ===================================
   画面揺れ
=================================== */
.screen-shake {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* HP点滅 */
.hp-blink {
  animation: blink 0.5s ease;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

/* コンボバウンス */
.combo-bounce {
  animation: comboBounce 0.3s ease;
}

@keyframes comboBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ===================================
   解説カード
=================================== */
.explanation-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 2px solid var(--accent-blue);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.explanation-card h5 {
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.explanation-answer {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.explanation-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .explanation-details {
    grid-template-columns: repeat(4, 1fr);
  }
}

.detail-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 600;
}

/* ===================================
   次へボタン
=================================== */
.next-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 1rem auto 0;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* ===================================
   結果画面
=================================== */
.results-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.results-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.results-score {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.results-message {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .results-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.result-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
}

.result-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.result-correct .result-value { color: var(--accent-green); }
.result-incorrect .result-value { color: var(--accent-red); }
.result-percentage .result-value { color: var(--accent-purple); }
.result-combo .result-value { color: var(--accent-yellow); }

.results-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .results-buttons {
    flex-direction: row;
  }
}

.results-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.results-btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #ec4899);
  color: white;
}

.results-btn-secondary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
}

.results-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 間違えた問題 */
.wrong-answers {
  margin-top: 2rem;
  text-align: left;
}

.wrong-answers h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent-red);
}

.wrong-answer-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.wrong-answer-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.wrong-answer-num {
  background: var(--accent-red);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.wrong-answer-question {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.wrong-answer-answers {
  font-size: 0.875rem;
}

.your-answer {
  color: var(--accent-red);
  margin-bottom: 0.25rem;
}

.correct-answer {
  color: var(--accent-green);
}

/* ===================================
   設定パネル
=================================== */
.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 1.5rem;
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.settings-panel:not(.hidden) {
  transform: translateX(0);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.settings-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.settings-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.settings-group {
  margin-bottom: 1.5rem;
}

.settings-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.settings-label span {
  font-weight: 600;
}

/* トグルスイッチ */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  transition: 0.3s;
  border-radius: 24px;
  border: 2px solid var(--border-color);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-secondary);
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-purple);
  border-color: var(--accent-purple);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: white;
}

/* スライダー */
.volume-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-primary);
  outline: none;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  border: none;
}

/* 設定ボタン */
.settings-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: white;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
  transition: all 0.2s ease;
  z-index: 100;
}

.settings-btn:hover {
  transform: scale(1.1);
}

/* ===================================
   検索
=================================== */
.search-container {
  margin-top: 2rem;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-results {
  margin-top: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  border-color: var(--accent-purple);
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.search-result-name {
  font-weight: 700;
  font-size: 1.125rem;
}

.search-result-reading {
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.search-result-tags {
  display: flex;
  gap: 0.25rem;
}

.search-result-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.search-no-results {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
}

/* ===================================
   フェードイン
=================================== */
.fade-in {
  animation: fadeIn 0.3s ease;
}

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

/* ===================================
   フッター
=================================== */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===================================
   ユーティリティ
=================================== */
.hidden {
  display: none !important;
}

.text-red-500 { color: #ef4444; }
.text-gray-600 { color: #4b5563; }
.text-green-400 { color: #4ade80; }
.text-red-400 { color: #f87171; }
.text-yellow-400 { color: #facc15; }
