/* TOP画像 */
.hero{
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  padding-left: 8vw;
  background-color: #f9f9f9;   overflow: hidden;
  margin-bottom: 50px;
}

/* 背景画像レイヤー：明るさを抑え、コントラストを調整 */
.hero::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/top2.png') center 40% / cover no-repeat;
  /* ぼかしを最小限にしつつ、明るさを0.85に落として白文字を浮き立たせる */
  filter: blur(1.5px) brightness(0.85) contrast(1.1); 
  z-index: 1;
}

/* 全体を覆う薄い色膜：もやもやさせず、均一に「上品な深み」を出す */
.hero::after{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* 少しだけベージュを混ぜたグレーを均一に重ねる（清潔感を保つ隠し味） */
  background: rgba(80, 70, 60, 0.2); 
  z-index: 2;
}

/* TOP画像のテキスト */
.hero-text{
  position: relative;
  z-index: 3;
  color: #ffffff; /* パキッとした白文字 */
  white-space: nowrap; /* 絶対に改行させない */
  border-left: 5px solid #cc0000;
  padding-left: 25px;
}
.hero-text h1{
  /* 画面幅に応じてサイズ調整。改行させないためにclampを使用 */
  font-size: clamp(24px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  margin: 0;
  /* 白文字を読みやすくする、ごく薄いシャドウ */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-text p{
  white-space: nowrap;
  font-size: clamp(14px, 1.6vw, 19px);
  margin-top: 15px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* カテゴリーカード */
.category-cards{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 720px; /* ← 横幅制限で折り返し防止 */
  margin: 0 auto;
}
.category-card{
  width: 200px; /* ← 少し小さくして3枚並ぶように */
  height: 100px;
  text-align: center;
  border-top: 4px solid #cc0000;
  border-radius: 6px;
  background: #fff;
  padding: 16px 12px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;

}
.category-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.category-img img{
  width: 40px;
  height: auto;
  object-fit: contain;
}
.category-name{
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.03em;
}

/* 代表商品 */
.featured-products{
  padding: 40px 0;
  text-align: center;
}
.featured-swiper{
  width: 100%;
  padding-bottom: 24px;
}
.product-card{
  width: 120px; /* ← 160px → 140px にさらに縮小 */
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.product-card:hover {
  transform: translateY(-4px);
}
.product-card img{
  width: 100%;
  height: 90px; /* ← 小さめにして見切れ防止 */
  object-fit: contain; /* ← 全体表示 */
  background: #f8f8f8;
}
.product-card p{
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0 10px;
}

.swiper-slide{
  width: auto; /* ← これが超重要 */}
.swiper-pagination-bullet{
  background: #ccc !important; /* 非アクティブ */
  opacity: 1 !important;
}
.swiper-pagination-bullet-active{
  background: #cc0000 !important; /* アクティブ（赤） */
}

/* 新着情報 */
.news h2{
  font-size: 1.5rem;
  color: #cc0000;
  margin: 10px 0 10px;
  padding-left: 100px; /* ← これで確実に効く */
}
.news iframe{
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 6px;
}

/* リンクバナー */
.external-links{
  margin: 25px 0px;
  padding-top: 35px; /* ← これで確実に余白ができる */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}
.ext-card{
  display: flex;
  justify-content: center;
  align-items: center; /* ← これが中央揃えの決め手 */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 160px; /* こだわりんが選んだ高さ */
  transition: 0.2s;
}
.ext-card:hover{
  border-color: #c00;
}
.ext-card img{
  width: 160px;   /* ← 小さめに固定 */
  height: auto;
  margin: 0 auto;
  display: block;
  padding: 20px;  /* ← 余白で上品に */
}
