/* ==========================================================================
   SimpleCalc Design System v2.1 - Stable Version
   参考デザインに基づく安定したスタイル
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors - 参考デザイン準拠 */
  --sc-primary: #4F80BF;
  --sc-primary-dark: #3D6A9E;
  --sc-primary-light: #6B96CB;

  /* Neutral Colors */
  --sc-white: #FFFFFF;
  --sc-gray-50: #F9FAFB;
  --sc-gray-100: #F3F4F6;
  --sc-gray-200: #E5E7EB;
  --sc-gray-500: #6B7280;
  --sc-gray-900: #1F2937;

  /* Semantic Colors */
  --sc-success: #10B981;
  --sc-warning: #F59E0B;
  --sc-error: #EF4444;

  /* Typography */
  --sc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --sc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --sc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   基本スタイル - 既存スタイルを上書きしないよう配慮
   -------------------------------------------------------------------------- */
body {
  background-color: var(--sc-white);
}

/* --------------------------------------------------------------------------
   ヘッダー - 参考デザイン準拠
   デスクトップ: ロゴ（左） | Categories / Tools / Language（右）
   モバイル: ロゴ（左） | ハンバーガー（右）
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--sc-white) !important;
  border-bottom: 1px solid var(--sc-gray-200) !important;
  position: relative !important;
  backdrop-filter: none !important;
}

/* ヘッダーコンテナ: ロゴ（左） | ナビ（右） */
.site-header .header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 64px !important;
}

/* ロゴスタイル */
.site-header .site-logo {
  font-weight: 700 !important;
  color: var(--sc-gray-900) !important;
  text-decoration: none !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--sc-gray-900) !important;
  font-size: 18px !important;
}

/* ヘッダーナビゲーション */
.site-header .header-nav {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}

.site-header .header-nav-link {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--sc-gray-500) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.site-header .header-nav-link:hover {
  color: var(--sc-gray-900) !important;
}

/* ヘッダーインライン検索バー */
.header-search {
  position: relative;
  margin: 0 4px;
}

.header-search-input {
  width: 180px !important;
  height: 34px !important;
  padding: 6px 36px 6px 12px !important;
  border: 1px solid var(--sc-gray-200) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  background: var(--sc-gray-50) !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.header-search-input:hover {
  border-color: var(--sc-primary) !important;
}

.header-search-shortcut {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--sc-gray-200);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sc-gray-500);
  pointer-events: none;
}

.dark-mode .header-search-input {
  background: #16213e !important;
  border-color: #2d2d44 !important;
  color: #e8e8f0 !important;
}

.dark-mode .header-search-shortcut {
  background: #2d2d44;
  color: #a0a0b8;
}

/* 言語切替 */
.site-header .lang-switch {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.site-header .lang-btn {
  padding: 4px 8px !important;
  font-size: 14px !important;
  color: var(--sc-gray-500) !important;
  text-decoration: none !important;
}

.site-header .lang-btn.active {
  color: var(--sc-gray-900) !important;
  font-weight: 600 !important;
}

/* 通貨セレクト */
.site-header .currency-switch {
  margin-left: 8px !important;
}

.site-header .currency-select {
  padding: 4px 8px !important;
  border: 1px solid var(--sc-gray-200) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background: var(--sc-white) !important;
  cursor: pointer !important;
}

/* デスクトップ/モバイル表示切替 */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* ハンバーガーメニューボタン */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle .hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sc-gray-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* モバイルメニュー（ドロワー） */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--sc-white);
  border-bottom: 1px solid var(--sc-gray-200);
  box-shadow: var(--sc-shadow-md);
  padding: 16px;
  z-index: 100;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--sc-gray-900);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--sc-gray-100);
}

.mobile-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
}

/* --------------------------------------------------------------------------
   ヒーローセクション - 参考デザイン準拠
   白背景、中央揃え、シンプルなバッジ
   -------------------------------------------------------------------------- */
.hero-section,
.hero-area {
  background: var(--sc-white) !important;
  text-align: center !important;
  padding-top: 64px !important;
  padding-bottom: 48px !important;
}

.hero-section h1,
.hero-area h1 {
  font-family: var(--sc-font) !important;
  font-weight: 700 !important;
  color: var(--sc-gray-900) !important;
  margin-bottom: 16px !important;
}

.hero-section .hero-subtitle,
.hero-section .hero-desc,
.hero-area .hero-desc {
  color: var(--sc-gray-500) !important;
  margin-bottom: 24px !important;
}

/* Trust Badges - 参考デザイン準拠（シンプルなピル型） */
.trust-badges {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 24px !important;
  margin-bottom: 32px !important;
}

.trust-badges .badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  background: var(--sc-gray-100) !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 14px !important;
  color: var(--sc-gray-500) !important;
  box-shadow: none !important;
}

/* チェックマーク付きバッジ */
.trust-badges .badge::before {
  content: '✓' !important;
  margin-right: 6px !important;
  color: var(--sc-success) !important;
  font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   カテゴリーカード - 参考デザイン準拠
   白背景、ボーダー、シャドウ、左にアイコン
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid !important;
  gap: 16px !important;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.category-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 20px !important;
  background: var(--sc-white) !important;
  border: 1px solid var(--sc-gray-200) !important;
  border-radius: 12px !important;
  box-shadow: var(--sc-shadow-sm) !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.category-card:hover {
  box-shadow: var(--sc-shadow-md) !important;
  transform: translateY(-2px) !important;
}

.category-card .category-icon {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  filter: none !important;
}

.category-card .category-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.category-card h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--sc-gray-900) !important;
  margin: 0 0 4px 0 !important;
}

.category-card p {
  font-size: 13px !important;
  color: var(--sc-gray-500) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.category-card-content {
  flex: 1 !important;
}

/* --------------------------------------------------------------------------
   ツールカード - 参考デザイン準拠
   白背景、ボーダー、シャドウ
   -------------------------------------------------------------------------- */
.tool-grid {
  display: grid !important;
  gap: 16px !important;
}

@media (min-width: 768px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1024px) {
  .tool-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.tool-card-link {
  display: flex !important;
  flex-direction: column !important;
  padding: 20px !important;
  background: var(--sc-white) !important;
  border: 1px solid var(--sc-gray-200) !important;
  border-radius: 12px !important;
  box-shadow: var(--sc-shadow-sm) !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.tool-card-link:hover {
  box-shadow: var(--sc-shadow-md) !important;
  transform: translateY(-2px) !important;
}

.tool-card-link .tool-card-icon {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
  background: var(--sc-gray-100) !important;
  border-radius: 8px !important;
}

.tool-card-link .tool-card-icon svg {
  width: 24px !important;
  height: 24px !important;
}

.tool-card-link .tool-card-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--sc-gray-900) !important;
  margin-bottom: 4px !important;
}

.tool-card-link .tool-card-desc {
  font-size: 13px !important;
  color: var(--sc-gray-500) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* 英語版ツールカード用追加スタイル */
.tool-card-link .tool-icon {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  margin-bottom: 12px !important;
  background: var(--sc-gray-100) !important;
  border-radius: 8px !important;
}

.tool-card-link .tool-name {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--sc-gray-900) !important;
  margin: 0 0 4px 0 !important;
}

.tool-card-link .tool-desc {
  font-size: 13px !important;
  color: var(--sc-gray-500) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* CTAを非表示（参考デザインにはない） */
.tool-card-link .tool-cta {
  display: none !important;
}

/* --------------------------------------------------------------------------
   プライマリボタン - 参考デザイン準拠
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-primary-large {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 24px !important;
  background: var(--sc-primary) !important;
  color: var(--sc-white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary-large:hover {
  background: var(--sc-primary-dark) !important;
}

/* セカンダリボタン */
.btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 20px !important;
  background: transparent !important;
  color: var(--sc-primary) !important;
  border: 1.5px solid var(--sc-primary) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-secondary:hover {
  background: var(--sc-primary) !important;
  color: var(--sc-white) !important;
}

/* ヒーローCTA: フレックスレイアウト */
.hero-cta {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* ダークモードのセカンダリボタン */
.dark-mode .btn-secondary {
  border-color: var(--sc-primary-light) !important;
  color: var(--sc-primary-light) !important;
}

.dark-mode .btn-secondary:hover {
  background: var(--sc-primary-light) !important;
  color: #1a1a2e !important;
}

/* --------------------------------------------------------------------------
   モバイルボトムナビ - 参考デザイン準拠
   -------------------------------------------------------------------------- */
.mobile-nav {
  display: none !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60px !important;
  background: var(--sc-white) !important;
  border-top: 1px solid var(--sc-gray-200) !important;
  z-index: 1000 !important;
}

.mobile-nav-items {
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  height: 100% !important;
  padding: 0 16px !important;
}

.mobile-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
  color: var(--sc-gray-500) !important;
  font-size: 12px !important;
  min-width: 64px !important;
}

.mobile-nav-item.active,
.mobile-nav-item:first-child {
  color: var(--sc-primary) !important;
}

.mobile-nav-item .nav-icon {
  font-size: 20px !important;
}

/* --------------------------------------------------------------------------
   モバイル対応
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {

  /* デスクトップナビを非表示 */
  .desktop-only,
  .site-header .header-nav {
    display: none !important;
  }

  /* モバイル要素を表示 */
  .mobile-only {
    display: flex !important;
  }

  /* ハンバーガーメニューを表示 */
  .mobile-menu-toggle {
    display: flex !important;
  }

  /* モバイルナビを表示 */
  .mobile-nav {
    display: block !important;
  }

  /* ボトムナビ分のパディング */
  body {
    padding-bottom: 60px !important;
  }

  /* ヒーローセクション調整 */
  .hero-section,
  .hero-area {
    padding-top: 32px !important;
    padding-bottom: 24px !important;
  }

  .hero-section h1,
  .hero-area h1 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  /* カテゴリーカード縦積み */
  .category-grid {
    grid-template-columns: 1fr !important;
  }

  /* ツールカード縦積み */
  .tool-grid {
    grid-template-columns: 1fr !important;
  }

  /* ヘッダー検索を非表示（モバイル） */
  .header-search {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   フォーム要素
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="number"],
input[type="email"],
select {
  height: 44px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--sc-gray-200) !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  background: var(--sc-white) !important;
}

input:focus,
select:focus {
  outline: none !important;
  border-color: var(--sc-primary) !important;
}

/* --------------------------------------------------------------------------
   計算結果エリア
   -------------------------------------------------------------------------- */
.result-section {
  background: linear-gradient(180deg, #E8F0F8 0%, #D6E4F0 100%) !important;
  padding: 24px !important;
  text-align: center !important;
  border-radius: 0 0 12px 12px !important;
}

.result-value,
.res-value {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--sc-primary) !important;
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--sc-gray-50) !important;
  border-top: 1px solid var(--sc-gray-200) !important;
  padding: 48px 0 24px !important;
}

.site-footer .footer-nav h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--sc-gray-900) !important;
  margin-bottom: 16px !important;
}

.site-footer .footer-links a {
  color: var(--sc-gray-500) !important;
  font-size: 14px !important;
}

.site-footer .footer-links a:hover {
  color: var(--sc-primary) !important;
}

/* --------------------------------------------------------------------------
   CLS対策
   -------------------------------------------------------------------------- */
.hero-section,
.hero-area {
  min-height: 200px !important;
}

.category-card {
  min-height: 100px !important;
}

.tool-card-link {
  min-height: 120px !important;
}

/* --------------------------------------------------------------------------
   アクセシビリティ: スキップナビゲーション
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -50px;
  left: 16px;
  background: #1F2937;
  color: #FFFFFF;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   アクセシビリティ: フォーカスリング（WCAG 2.1 AA準拠）
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
}

/* マウスクリック時はフォーカスリングを非表示 */
:focus:not(:focus-visible) {
  outline: none !important;
}

/* フォーム要素のフォーカス */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 0 !important;
  border-color: var(--sc-primary) !important;
}

/* ボタン・リンクのフォーカス */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   アクセシビリティ: カラーコントラスト改善（4.5:1以上）
   -------------------------------------------------------------------------- */
::placeholder {
  color: #4b5563 !important;
  opacity: 1;
}

/* 補足テキストのコントラスト強化 */
.label-note,
.micro-copy,
.last-updated {
  color: #6b7280 !important;
}

/* --------------------------------------------------------------------------
   アクセシビリティ: 計算結果ライブリージョン
   -------------------------------------------------------------------------- */
.result-section[aria-live] {
  /* スクリーンリーダーが変更を認識しやすくする */
  contain: content;
}

/* --------------------------------------------------------------------------
   ダークモード
   -------------------------------------------------------------------------- */

/* ダークモード切替ボタン */
.dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--sc-gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 8px;
}

.dark-mode-toggle:hover {
  background: var(--sc-gray-100);
}

/* ダークモードテーマ */
.dark-mode {
  --sc-white: #1a1a2e;
  --sc-gray-50: #16213e;
  --sc-gray-100: #1a1a2e;
  --sc-gray-200: #2d2d44;
  --sc-gray-500: #a0a0b8;
  --sc-gray-900: #e8e8f0;
}

.dark-mode body {
  background-color: #0f0f23 !important;
  color: #e8e8f0 !important;
}

.dark-mode .site-header {
  background: #1a1a2e !important;
  border-bottom-color: #2d2d44 !important;
}

.dark-mode .site-logo {
  color: #e8e8f0 !important;
  -webkit-text-fill-color: #e8e8f0 !important;
}

.dark-mode .header-nav-link {
  color: #a0a0b8 !important;
}

.dark-mode .header-nav-link:hover {
  color: #e8e8f0 !important;
}

.dark-mode .currency-select {
  background: #1a1a2e !important;
  border-color: #2d2d44 !important;
  color: #e8e8f0 !important;
}

.dark-mode .hero-section,
.dark-mode .hero-area {
  background: #0f0f23 !important;
}

.dark-mode .hero-section h1,
.dark-mode .hero-area h1 {
  color: #e8e8f0 !important;
}

.dark-mode .hero-subtitle,
.dark-mode .hero-desc {
  color: #a0a0b8 !important;
}

.dark-mode .trust-badges .badge {
  background: #2d2d44 !important;
  color: #a0a0b8 !important;
}

.dark-mode .category-card,
.dark-mode .tool-card-link {
  background: #1a1a2e !important;
  border-color: #2d2d44 !important;
}

.dark-mode .category-card:hover,
.dark-mode .tool-card-link:hover {
  border-color: #4F80BF !important;
}

.dark-mode .category-card h3,
.dark-mode .tool-card-link .tool-card-title,
.dark-mode .tool-card-link .tool-name {
  color: #e8e8f0 !important;
}

.dark-mode .category-card p,
.dark-mode .tool-card-link .tool-card-desc,
.dark-mode .tool-card-link .tool-desc {
  color: #a0a0b8 !important;
}

.dark-mode .tool-card-link .tool-card-icon,
.dark-mode .tool-card-link .tool-icon {
  background: #2d2d44 !important;
}

.dark-mode .calculator-card,
.dark-mode .input-section {
  background: #1a1a2e !important;
  border-color: #2d2d44 !important;
}

.dark-mode .result-section {
  background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%) !important;
}

.dark-mode input[type="text"],
.dark-mode input[type="number"],
.dark-mode input[type="email"],
.dark-mode select,
.dark-mode textarea {
  background: #16213e !important;
  border-color: #2d2d44 !important;
  color: #e8e8f0 !important;
}

.dark-mode .main-content h1,
.dark-mode .main-content h2,
.dark-mode .main-content h3 {
  color: #e8e8f0 !important;
}

.dark-mode .seo-description,
.dark-mode .tool-article,
.dark-mode .seo-text-block,
.dark-mode .tool-faq-section,
.dark-mode .tool-disclaimer {
  background: #1a1a2e !important;
  color: #c0c0d0 !important;
}

.dark-mode .tool-article p,
.dark-mode .seo-text-block p,
.dark-mode .seo-description p {
  color: #c0c0d0 !important;
}

.dark-mode .concrete-example {
  background: #1a1a2e !important;
  border-left-color: #f59e0b !important;
}

.dark-mode .site-footer {
  background: #0d0d1a !important;
  border-top-color: #2d2d44 !important;
}

.dark-mode .site-footer .footer-nav h3 {
  color: #e8e8f0 !important;
}

.dark-mode .site-footer .footer-links a {
  color: #a0a0b8 !important;
}

.dark-mode .mobile-menu {
  background: #1a1a2e !important;
  border-bottom-color: #2d2d44 !important;
}

.dark-mode .mobile-menu-link {
  color: #e8e8f0 !important;
  border-bottom-color: #2d2d44 !important;
}

.dark-mode .mobile-nav {
  background: #1a1a2e !important;
  border-top-color: #2d2d44 !important;
}

.dark-mode .mobile-nav-item {
  color: #a0a0b8 !important;
}

.dark-mode .dark-mode-toggle {
  border-color: #2d2d44;
  color: #e8e8f0;
}

.dark-mode .dark-mode-toggle:hover {
  background: #2d2d44;
}

.dark-mode .breadcrumb-nav a {
  color: #a0a0b8 !important;
}

.dark-mode .search-modal-content {
  background: #1a1a2e !important;
}

.dark-mode .search-input {
  background: #16213e !important;
  color: #e8e8f0 !important;
}

/* 自動検出（システム設定連動） */
@media (prefers-color-scheme: dark) {
  html:not(.light-mode) {
    --sc-white: #1a1a2e;
    --sc-gray-50: #16213e;
    --sc-gray-100: #1a1a2e;
    --sc-gray-200: #2d2d44;
    --sc-gray-500: #a0a0b8;
    --sc-gray-900: #e8e8f0;
  }
}