/* ===========================
   shop.css
   各ショップロゴの一覧レイアウト
   =========================== */

/* 全体のボックス */
.brand_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 最後の1つを中央寄せに */
  gap: 20px;
  margin: 20px auto;
  max-width: 800px; /* 全体の幅制限 */
}

/* 各ショップの外枠（画像＋文字のコンテナ） */
.brand_inbox {
  width: calc(50% - 20px); /* 横2列で均等配置 */
  max-width: 350px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 画像はサイズを変えず中央配置 */
.brand_inbox img {
  max-width: 350px; /* 元画像の幅を超えない */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ショップ名部分（ここにだけ枠をつける） */
.brand_title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: center;

  background-color: #f3f3f2; /* 枠の色 */
  border-radius: 8px;
  padding: 8px 0;

  width: 260px; /* ← 固定幅で全ショップ同じ大きさに */
  box-sizing: border-box;
}

/* ホバー時の軽いアニメーション（全体に） */
.brand_inbox:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease;
}

/* ---------------------------
   スマホ表示（768px以下）
   --------------------------- */
@media screen and (max-width: 768px) {
  .brand_box {
    flex-direction: column;
    align-items: center;
  }

  .brand_inbox {
    width: 100%;
    max-width: 350px;
  }

  .brand_title {
    width: 80%; /* スマホでは画面幅に合わせて可変 */
  }
}
