/* 画面サイズ */
nav {
  max-width: 1200px;     /* 最大幅を指定 */
  margin-left: auto;     /* 右寄せ */
  margin-right: auto;    /* 左寄せ（中央寄せ） */
}

main {
  max-width: 1200px;     /* 最大幅を指定 */
  margin-left: auto;     /* 右寄せ */
  margin-right: auto;    /* 左寄せ（中央寄せ） */
}

/* メッセージ */
.top_message {
  text-align: center;
  padding: 60px 20px;
}

.top_message h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 10px;
}

.top_message p {
  font-size: 16px;
  color: #666;
}

/* お知らせ */
.top_news {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.top_news h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.top_news ul {
  list-style: none;
  padding: 0;
}

.top_news li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

/* セクション共通 */
.top_brands,
.top_popular-items,
.top_recommend-sets,
.top_faq,
.top_instagram {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* カード共通デザイン */
.top_brand-card,
.top_item-card,
.top_set-card,
.top_insta-card {
  background: white;
  width: 230px;
  height: 280px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);

  display: flex;
  flex-direction: column;   /* ← 画像 → テキストの縦並び */
  align-items: center;
  justify-content: center;
  text-align: center;

  margin: 20px;
}

/* 1列4個で中央揃え */
.top_brand-list,
.top_item-list,
.top_set-list,
.top_insta-list {
  display: grid;
  grid-template-columns: repeat(4, 230px);
  gap: 50px;
  justify-content: center;
}

/* FAQ */
.top_faq ul {
  list-style: none;
  padding: 0;
}

.top_faq li {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.6;
}

/* カード内の画像（丸くトリミング） */
.top_brand-card img,
.top_insta-card img {
  width: 140px;          /* ← 正方形にすることで丸くできる */
  height: 140px;
  object-fit: cover;     /* ← 画像をきれいに丸く切り抜く */
  border-radius: 50%;    /* ← 完全な円 */
  margin-bottom: 12px;   /* ← テキストとの余白 */
}

/* カード内のテキスト */
.top_brand-card p,
.top_item-card p,
.top_set-card p,
.top_insta-card p {
  font-size: 14px;
  margin: 0;
}

/* item-card / set-card の画像を縦長の四角にする */
.top_item-card img,
.top_set-card img {
  width: 100%;          /* ← カード幅いっぱいに広げる */
  height: 160px;        /* ← 縦長にする最適値（調整可） */
  object-fit: cover;    /* ← 画像をきれいにトリミング */
  border-radius: 8px;   /* ← 角丸四角（完全な四角にしたいなら 0） */
  margin-bottom: 12px;  /* ← テキストとの余白 */
}



/* スマホ（〜796px）のときのカードレイアウト */
@media (max-width: 796px) {

  /* カードサイズをスマホ向けに調整 */
  .top_brand-card,
  .top_item-card,
  .top_set-card,
  .top_insta-card {
    width: 100%;        /* ← 1列にするので100%が最適 */
    height: auto;       /* ← 内容に応じて高さ可変にするのが安全 */
    margin: 10px auto;
  }

  /* Grid の列数をスマホ用に変更（1列） */
  .top_brand-list,
  .top_item-list,
  .top_set-list,
  .top_insta-list {
    grid-template-columns: 1fr;  /* ← 1列表示に変更 */
    gap: 20px;
    justify-content: center;
  }
  /* カード内の画像（丸くトリミング） */
.top_brand-card img,
.top_insta-card img {
  width: 140px;          /* ← 正方形にすることで丸くできる */
  height: 140px;
  object-fit: cover;     /* ← 画像をきれいに丸く切り抜く */
  border-radius: 50%;    /* ← 完全な円 */
  margin-bottom: 12px;   /* ← テキストとの余白 */
}

/* カード内のテキスト */
.top_brand-card p,
.top_item-card p,
.top_set-card p,
.top_insta-card p {
  font-size: 14px;
  margin: 0;
}

/* item-card / set-card の画像を縦長の四角にする */
.top_item-card img,
.top_set-card img {
  width: 100%;          /* ← カード幅いっぱいに広げる */
  height: auto;        /* ← 縦長にする最適値（調整可） */
  object-fit: cover;    /* ← 画像をきれいにトリミング */
  border-radius: 8px;   /* ← 角丸四角（完全な四角にしたいなら 0） */
  margin-bottom: 12px;  /* ← テキストとの余白 */
}
}