/* ========================================
   タブレット・スマホ向けレイアウト（補助）
   ヘッダードロワーは styles.css に統合済み
   ======================================== */

@media (max-width: 1024px) {
  :root {
    --header-h: 60px;
  }

  .container {
    width: 94vw;
  }

  .demo-card {
    padding: 1.5rem;
  }

  .demo-stage {
    padding: 1.25rem;
  }

  .demo-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: calc(100dvh - var(--header-h));
    padding: 2.5rem 0 3rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .adopt-hub-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .adopt-hub-toolbar .btn,
  .adopt-hub-toolbar .demo-back-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .adopt-session-item {
    flex-direction: column;
    align-items: stretch;
  }

  .adopt-session-actions {
    justify-content: flex-end;
  }

  .adopt-sessions-toolbar {
    justify-content: stretch;
  }

  .adopt-sessions-toolbar .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  .demo-card {
    padding: 1.25rem;
  }

  .countup-num {
    font-size: 2.25rem;
  }

  .logo {
    font-size: 1rem;
  }

  .selection-fs-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .selection-fs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 28vh;
    padding-top: 1rem;
  }

  .selection-fs-overlay .fs-close {
    top: 0.5rem;
    left: 0.5rem;
  }

  .selection-tray {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
}
