/* assets/css/responsive.css — モバイル・タブレット対応 */

/* ===== タブレット (≤ 900px) ===== */
@media (max-width: 900px) {
  /* レストラン詳細: 縦並び */
  .restaurant-detail__header {
    grid-template-columns: 1fr;
  }

  .restaurant-detail__img,
  .restaurant-detail__img-placeholder {
    height: 220px;
  }

  .restaurant-detail__name {
    font-size: 1.6rem;
  }

  /* フッター */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .site-footer__meta {
    text-align: center;
  }
}

/* ===== モバイル (≤ 680px) ===== */
@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  /* ヘッダー: ハンバーガーメニュー */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-bottom: 2px solid var(--color-border);
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: var(--shadow);
    z-index: 199;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav__link {
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
  }

  /* カテゴリタブ: top調整 */
  .category-tabs {
    top: 56px;
  }

  /* グリッド: 1列 */
  .restaurant-grid {
    grid-template-columns: 1fr;
  }

  /* レストランカード */
  .restaurant-card {
    flex-direction: row;
    max-height: 140px;
  }

  .restaurant-card__img,
  .restaurant-card__img--placeholder {
    width: 120px;
    height: 140px;
    min-width: 120px;
    border-radius: 0;
  }

  .restaurant-card__img--placeholder {
    font-size: 2.5rem;
  }

  .restaurant-card__body {
    padding: 0.75rem;
    gap: 0.3rem;
  }

  .restaurant-card__name {
    font-size: 0.95rem;
  }

  .restaurant-card__desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  /* メニューアイテム */
  .menu-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .menu-item__price {
    text-align: left;
    min-width: auto;
  }

  /* レストラン詳細 */
  .restaurant-detail__name {
    font-size: 1.35rem;
  }

  .restaurant-detail__img,
  .restaurant-detail__img-placeholder {
    height: 180px;
  }

  /* カテゴリヒーロー */
  .category-hero {
    padding-block: 1.5rem;
  }

  .category-hero__icon {
    font-size: 2.25rem;
  }

  .category-hero__title {
    font-size: 1.5rem;
  }

  /* タブ文字サイズ */
  .tab {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  /* ボタン */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.825rem;
  }

  /* セクション見出し */
  .section-heading {
    font-size: 1.25rem;
  }
}

/* ===== 小型モバイル (≤ 400px) ===== */
@media (max-width: 400px) {
  .restaurant-card {
    flex-direction: column;
    max-height: none;
  }

  .restaurant-card__img,
  .restaurant-card__img--placeholder {
    width: 100%;
    height: 160px;
    min-width: auto;
  }
}
