@charset "Shift_JIS";

body{
  margin:0;
  padding:0;
}


/*******************************
新着情報（4項目表示・スクロール版）
********************************/

/* ベース：リキッド対応 */
.news-section {
  width: 100%;
  padding: 4% 5%;
  box-sizing: border-box;
  background-color: #f9f9f9;
  font-family: sans-serif;
}

.news-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.news-heading {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 30px;
  text-align: center;
}

/* リスト構造：ここを書き換え・追加しました */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #ccc;
  
  /* ★ 4項目分（1個約70〜80px想定）の高さに制限 ★ */
  max-height: 310px; 
  overflow-y: auto;   /* 縦スクロールを有効に */
  
  /* スクロールバーのスタイル（Firefox用） */
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

/* スクロールバーのカスタマイズ（Chrome, Safari用） */
.news-list::-webkit-scrollbar {
  width: 6px;
}
.news-list::-webkit-scrollbar-track {
  background: transparent;
}
.news-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.news-item {
  border-bottom: 1px solid #ccc;
}

.news-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px 15px; /* 高さを揃えやすくするため微調整 */
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

.news-link:hover {
  background-color: #fff;
}

/* 日付とカテゴリのグループ */
.news-meta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 20px;
  margin-bottom: 5px;
  margin-top:5px;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  width: 100px;
}

.news-category {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 2px;
  color: #fff;
  margin-right: 10px;
  white-space: nowrap;
}

/* カテゴリ色 */
.label-event { background-color: #d35400; }
.label-info { background-color: #2980b9; }

/* タイトル */
.news-title {
  flex: 1;
  min-width: 300px;
  margin: 5px 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ボタン（スクロールがある場合は「もっと見る」として機能） */
.news-footer {
  text-align: center;
  margin-top: 30px;
}

.btn-more {
  display: inline-block;
  width: 80%;
  max-width: 250px;
  padding: 15px 0;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* 超小型デバイス向けの微調整 */
@media (max-width: 480px) {
  /* スマホ時は高さ制限を少し広げて見やすく調整 */
  .news-list {
    max-height: 380px; 
  }
  .news-meta {
    width: 100%;
    margin-bottom: 10px;
  }
  .news-title {
    min-width: 100%;
    font-size: 0.9rem;
  }
}




/******************************
商品一覧 3列
********************************/

/* 全体コンテナ */
.product-section {
  width: 100%;
  padding: 5% 4%;
  box-sizing: border-box;
  background-color: #fff;
}

.product-container {
  width: 100%;
  max-width: 1200px; /* 最大幅を少し広めに設定 */
  margin: 0 auto;
}

.product-heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 5%;
}

/* グリッドレイアウトの肝 */
.product-grid {
  display: grid;
  /* PC時は3列 (1fr = 均等な1比率) */
  grid-template-columns: repeat(3, 1fr);
  /* アイテム間の隙間もリキッドに（画面幅の2%） */
  gap: 30px 2%; 
}

/* カードスタイル */
.product-card {
  display: block;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover {
  opacity: 0.8;
  transform: translateY(-5px); /* 軽く浮き上がる演出 */
}

/* 1. 親要素の基本設定 */
.product-image,
.ranking-image {
  position: relative; /* 必須：オーバーレイの基準になります */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  overflow: hidden;
}

/* 2. 画像の設定 */
.product-image img,
.ranking-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 3. SOLD OUT時のオーバーレイ設定（標準的な記述） */
.product-item.sold-out div.product-image::after,
.ranking-item.sold-out div.ranking-image::after{
  content: attr(data-sold-out-text, "SOLD OUT");
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* 背景を半透明の黒にする */
  background-color: rgba(0, 0, 0, 0.5);
  
  /* 文字のデザイン */
  color: #ffffff;
  font-family: sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  
  /* 文字を上下左右中央に配置 */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* 重なり順と操作設定 */
  z-index: 1;
  pointer-events: none; /* リンクなどのクリックを邪魔しない */
}

/* 商品情報 */
.product-name {
  font-size: 1rem;
  margin: 0 0 8px 0;
  line-height: 1.4;
  font-weight: 600;
}

.product-price {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  color: #d35400;
}

.tax-in {
  font-size: 0.7rem;
  font-weight: normal;
  color: #888;
}

/* --- レスポンス設定（スマホ：2列） --- */
@media (max-width: 768px) {
  .product-grid {
    /* スマホ時は2列 */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 3%; /* 隙間を少し狭く調整 */
  }
  
  .product-name {
    font-size: 0.9rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
}

/* 超小型デバイス用（任意） */
@media (max-width: 400px) {
  /* 必要であれば1列にしても良いですが、
     最近のスマホは高解像度なので2列維持が一般的です */
}


/*******************************
ランキング
********************************/

/*ランキング*/
/* 全体コンテナ */
.ranking-section {
  width: 100%;
  padding: 60px 0;
  background-color: #f8f8f8;
  overflow: hidden; /* はみ出し防止 */
  font-family: sans-serif;
}

.ranking-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.ranking-heading {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  margin-bottom: 30px;
}

/* タブボタン */
.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 2vw, 15px);
  margin-bottom: 30px;
  padding: 0 4%;
}

.tab-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* スライダーエリア */
.ranking-group {
  display: none; /* 初期は非表示 */
}

.ranking-group.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ranking-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 4% 30px;
  scrollbar-width: none; /* Firefox */
}

.ranking-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ★肝：3.5枚表示の設定★ */
.ranking-item {
  flex: 0 0 calc(100% / 3.5); /* 画面幅の3.5分の1 */
  margin-right: 15px;
  scroll-snap-align: start;
  position: relative;
}

/* バッジ（順位） */
.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 35px;
  height: 35px;
  background: #666;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.rank-badge.is-top {
  background: #d35400; /* 上位3位の色 */
}

/* カード */
.ranking-card {
  display: block;
  text-decoration: none;
  color: #333;
  background: #fff;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.ranking-card:hover {
  transform: translateY(-3px);
}

.ranking-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ranking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info {
  padding: 12px;
}

.ranking-name {
  font-size: 0.85rem;
  margin: 0 0 8px;
  line-height: 1.4;
  height: 2.8em; /* 2行分確保 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-price {
  font-weight: bold;
  color: #d35400;
  margin: 0;
}

/* スマホ用レスポンシブ（2.5枚/1.5枚） */
@media (max-width: 900px) {
  .ranking-item { flex: 0 0 calc(100% / 2.5); }
}

@media (max-width: 600px) {
  .ranking-item { flex: 0 0 calc(100% / 1.5); }
  .ranking-tabs { padding: 0 10px; overflow-x: auto; justify-content: flex-start; }
}




/******************************
カテゴリー
*******************************/

/* セクション全体 */
.category-section {
  width: 100%;
  padding: 60px 4%;
  box-sizing: border-box;
  background-color: #fff;
}

.category-container {
  max-width: 1200px;
  margin: 0 auto;
}

.category-heading {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 40px;
}

/* 5列グリッド（リキッド対応） */
.category-grid {
  display: grid;
  /* 基本は5列 */
  grid-template-columns: repeat(4, 1fr);
  gap: 15px; /* アイテム間の隙間 */
}

/* 各カテゴリーアイテム */
.category-item {
  text-decoration: none;
  display: block;
}

.category-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* ★正方形を維持 */
  overflow: hidden;
  border-radius: 4px; /* お好みで角を丸く */
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ホバー時に画像を少しズーム */
.category-item:hover .category-image img {
  transform: scale(1.1);
}

/* テキストの重なり部分（オーバーレイ） */
.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* 画像を少し暗くして文字を見やすく */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.category-item:hover .category-overlay {
  background: rgba(0, 0, 0, 0.4); /* ホバー時に少し暗く */
}

.category-name {
  color: #fff;
  font-weight: bold;
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #fff; /* 文字を枠で囲むとお洒落です */
  padding: 8px 15px;
  pointer-events: none;
}

/* --- レスポンス対応（リキッドデザイン） --- */

/* タブレットサイズ：3列 */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* スマホサイズ：2列 */
@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .category-name {
    padding: 5px 10px;
  }
}


/*******************************
タイトル
********************************/
/* セクションヘッダー全体の調整 */
.section-header {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 50px); /* 余白もリキッドに */
  position: relative;
}

/* タイトル本体 */
.section-title {
  display: flex;
  flex-direction: column; /* 上下に並べる */
  align-items: center;
  gap: 8px; /* 英字と日本語の隙間 */
}

/* 英語タイトル（メイン） */
.section-title .en {
  font-family: 'Playfair Display', 'Helvetica Neue', serif; /* お洒落なセリフ体などがおすすめ */
  font-size: clamp(1.8rem, 6vw, 2.5rem); /* リキッドサイズ */
  font-weight: 700;
  text-transform: uppercase; /* 大文字に強制 */
  letter-spacing: 0.15em; /* 字間を広げてモダンに */
  color: #333;
  line-height: 1;
}

/* 日本語タイトル（サブ） */
.section-title .jp {
  font-size: clamp(0.8rem, 2vw, 0.9rem); /* 小さめに配置 */
  font-weight: 500;
  color: #888;
  letter-spacing: 0.2em;
  position: relative;
  padding-bottom: 15px;
}

/* 下線のアクセント（お好みで） */
.section-title .jp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; /* 線の長さ */
  height: 2px; /* 線の太さ */
  background-color: #d35400; /* ブランドカラーをアクセントに */
}


/*******************************
スライダー左右ナビゲーション
********************************/


/* スライダーを囲む親要素 */
.slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* ボタンの共通スタイル */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: #333;
  border-color: #333;
}

/* 矢印（くの字）の作成 */
.slider-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transition: border-color 0.3s;
}

.slider-arrow:hover span {
  border-color: #fff;
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.prev span { transform: rotate(-135deg); margin-left: 4px; }

.slider-arrow.next { right: 10px; }
.slider-arrow.next span { transform: rotate(45deg); margin-right: 4px; }

/* スマホではスワイプがメインなのでボタンを隠す（または透過させる） */
@media (max-width: 768px) {
  .slider-arrow {
    display: none; 
  }
}