/* ═══════════════════════════════════════════
   Responsive - モバイル最適化・ボトムナビ
   ═══════════════════════════════════════════ */

/* ─── デフォルト: ボトムナビ非表示 ─── */
.bottom-nav { display: none; }

/* ─── モバイル（768px以下） ─── */
@media (max-width: 768px) {
  body {
    padding: 15px 15px 110px 15px;
  }

  .header-container {
    flex-direction: row;
    margin-bottom: 15px;
  }

  h1 { font-size: 1.4rem; }

  .desktop-only-btns { display: none !important; }

  .summary-container {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
  }

  .summary-card { padding: 15px; }

  .filters {
    padding: 15px;
    margin-bottom: 15px;
  }

  .card-content {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-right {
    align-items: flex-start;
    text-align: left;
    margin-top: 4px;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
  }

  .card-amount {
    font-size: 1.5rem;
    text-align: right;
    width: 100%;
  }

  .card-notes { max-width: 100%; }

  /* ─── ボトムナビゲーション ─── */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: var(--z-nav);
    padding-bottom: env(safe-area-inset-bottom);
    justify-content: space-around;
    align-items: center;
    height: calc(65px + env(safe-area-inset-bottom));
  }

  .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 4px;
    cursor: pointer;
    height: 100%;
    transition: all var(--trans-fast);
  }

  .nav-item:active { transform: scale(0.85); opacity: 0.7; }

  .nav-icon { font-size: 1.4rem; margin-bottom: 2px; }

  .mobile-header-actions { display: flex; align-items: center; }

  .excel-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 12px;
    background: rgba(71, 85, 104, 0.1);
    color: #475569;
    box-shadow: none;
    font-weight: 800;
  }

  .excel-btn::after { display: none; }
}

/* ─── デスクトップ（769px以上） ─── */
@media (min-width: 769px) {
  .mobile-header-actions { display: none; }
}
