.bag-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
.bag-card { background: #fff; overflow: hidden; }
.bag-thumbnail { position: relative; aspect-ratio: 15 / 8; }
.slider-image { display: none; }
.slider-image.active { display: block; }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.7); border: none;
  padding: 0.3em 0.6em; font-size: 1.2em; cursor: pointer;
}
.slider-prev { left: 5px; }
.slider-next { right: 5px; }
.soldout-label {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: red; color: white; font-weight: bold;
  padding: 0.25em 0.5em; font-size: 0.85rem; z-index: 5;
  display: none;
}
.bag-info { padding: 1em; }
.bag-title { font-size: 1.2rem; margin: 0; }



.pgb-archive-card img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.pgb-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

.pgb-card {
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.pgb-card:hover {
  transform: none;
}

.pgb-card-image-wrapper {
  width: 100%;
  position: relative;
  padding-top: calc(550 / 1500 * 100%); /* PC用の比率 約2:1 */
  background-color: #f5f5f5;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .pgb-card-image-wrapper {
    padding-top: calc(350 / 1500 * 100%); /* スマホ用比率 */
  }
}

.pgb-card-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pgb-soldout-label {
  font-weight: bold;
  padding: 0.25em 0.5em;
  font-size: 0.85rem;
  background: red;
  color: white;
  display: none; /* 初期は非表示 */
}

/* 表示用に追加で使うときは display: block にする */

.bag-thumbnail {
  width: 100%;
  aspect-ratio: 15 / 8; /* 1500px × 800px 相当 */
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bag-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bag-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

.bag-card {
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  /* transition: transform 0.3s ease; 削除済み */
}

.bag-card:hover {
  transform: none; /* 動きをなくす */
}


.bag-thumbnail {
  width: 100%;
  position: relative;
  padding-top: calc(550 / 1500 * 100%); /* デフォルトはPC用の比率 2:1 */
  background-color: #f5f5f5;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .bag-thumbnail {
    padding-top: calc(350 / 1500 * 100%); /* スマホ用の比率 3:10 */
  }
}

.bag-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.slider-image {
  display: none;
  transition: opacity 0.3s ease-in-out;
}

.slider-image.active {
  display: block;
}

.slider-prev, .slider-next {
   background: rgba(245, 246, 247, 0.7); /* 通常時の透明背景 */
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   z-index: 10;
   /* background: #f5f6f7; */
   border: none;
   font-size: 2.2rem;
   cursor: pointer;
   padding: 0.3em 0.2em;
   user-select: none;
   /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
   border-radius: 0;
   transition: transform 0.05s, box-shadow 0.05s;
   color: #000; /* 初期文字色（黒） */
}

.slider-prev { left: 5px; }
.slider-next { right: 5px; }

.bag-info {
  padding: 1em;
}

.bag-title {
  font-size: 1.2rem;
  margin: 0 0 0.5em;
}

.color-chips {
  display: flex;
  gap: 5px;
  margin-bottom: 0.5em;
}

.color-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.soldout-label {
font-weight: bold;
  padding: 0.25em 0.5em;
  font-size: 0.85rem;
  background: red;
        color: white;
  display: none; /* 初期非表示 */
}


.soldout-label {
        /* position: absolute; */
        /* top: 0.5rem; */
        /* left: 0.5rem; */
        /* background: red; */
        /* color: white; */
        /* font-weight: bold; */
        /* padding: 0.25em 0.5em; */
        /* font-size: 0.85rem; */
        /* z-index: 5; */
        /* border-radius: 0.2em; */
    }
.bag-thumbnail.bag-slider {
  position: relative;
  overflow: hidden;
  height: 200px; /* 必ずimgと同じ高さに合わせる */
}

.detail-button {
  padding: 0.6em 1.2em;
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.detail-button:hover,
.detail-button:focus {
  color: #e73230;
  text-decoration: underline;
}

.bag-slider {
  position: relative;
}

.bag-slider {
  position: relative; /* ドットのabsolute位置指定の基準にする */
}

.slider-dots {
  position: absolute;
  bottom: 10px; /* スライダーの下から10px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
}





.detail-button {
  float: right;
  background-color: #0073aa;  /* 通常時の背景色 */
  color: #fff !important;     /* 通常時の文字色 */
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease; /* スムーズな変化 */
  display: inline-block;
}

.detail-button:hover {
  background-color: #0056b3;  /* ホバー時の背景色 */
  color: #e0e0e0;             /* ホバー時の文字色 */
  cursor: pointer;
}


.category-heading {
  font-size: 1.8em;
  margin-top: 40px;
  border-left: 5px solid #333;
  padding-left: 10px;
  font-weight: bold;
}

.product-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}


.slider-dots {
  text-align: center;
  margin-top: 8px;
}
.slider-dots .dot {
  background: none;
  border: none;
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  margin: 0 4px;
  transition: color 0.3s ease;
}
.slider-dots .dot.active {
  color: #333;
}
.category-heading {
  font-size: 1.6em;
  font-weight: bold;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.category-divider {
  border: none;
  height: 2px;
  background-color: #ccc;
  margin-bottom: 1.5em;
}


.bag-slider {
  position: relative;
}

/* スライダー画像 */
.slider-image {
  display: none;
  transition: opacity 0.3s ease-in-out;
}
.slider-image.active {
  display: block;
}

/* 前・次ボタン */
.slider-prev,
.slider-next {
  /* position: absolute; */
  /* top: 50%; */
  /* transform: translateY(-50%); */
  /* background: rgba(255, 255, 255, 0.7); */
  /* border: none; */
  /* padding: 0.3em 0.6em; */
  /* font-size: 1.2em; */
  /* cursor: pointer; */
  /* z-index: 2; */
}
.slider-prev { left: 5px; }
.slider-next { right: 5px; }

/* ドット配置 */
.slider-dots {
  position: absolute;
  bottom: 10px; /* スライダーの下から10px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ドットの見た目 */
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.slider-dots .dot.active {
  background-color: #333;
}


.yamanami-golfbag-link,
.premium-golfbag-link {
  text-align: right;
  margin-top: 8px;
  font-size: 0.9rem;
}

.yamanami-golfbag-link a,
.premium-golfbag-link a,
.store-link a {
  color: #0073aa;
  text-decoration: underline;
}

.yamanami-golfbag-link a:hover,
.premium-golfbag-link a:hover,
.store-link a:hover {
  text-decoration: none;
}


.bag-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

@media screen and (max-width: 600px) {
  .bag-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
  }
}

.type-heading {
  margin-bottom: 1em;
  font-size: 1.2em;
  color: #333;
}

.type-heading {
  display: flex;
  align-items: center;
  margin-bottom: 1.5em; /* 必要なら間隔調整 */
}

.type-heading h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
  white-space: nowrap;
}

.type-heading::after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background-color: #ccc; /* 線の色 */
  margin-left: 1em; /* 種類名との間隔 */
}



/* カテゴリーナビゲーション */
.category-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
  padding: 0;
  list-style: none;
  max-width: 800px; /* 中央1列に制限 */
}

/* カテゴリリンクスタイル */
.category-nav li a {
  display: block;
  padding: 0.6rem 1rem;
  background-color: #ededff;
  color: #333;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-nav li a:hover {
  background-color: #babae9;
  color: #000;
}

.category-nav-intro {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
}



.ttlpg {
    margin-bottom: 30px;
    position: relative;
}


.ttlpg h2{
    font-size: 23px;
    letter-spacing: 3px;
    font-weight: bold;
}


.ttlpg h2 small{
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0;
}


.ttlyamanami {
    margin-bottom: 30px;
    position: relative;
}


.ttlyamanami h2{
    font-size: 23px;
    letter-spacing: 3px;
    font-weight: bold;
}


.ttlyamanami h2 small{
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0;
}



.hero-section {
  position: relative;
  width: 100%;
  height: 130px; /* 必要に応じて調整 */
  overflow: hidden;
}

 .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* opacity: 0.3; */
        /* 透明度を調整 */
        z-index: 1;
    }

/* スマホ対応：画像を比率維持で縮小して全体表示 */
@media (max-width: 768px) {
  .hero-bg {
    object-fit: contain;
  }
}

    .hero-content {
        position: relative;
        z-index: 2;
        /* text-align: center; */
        padding: 20px 20px;
        color: #ffffff;
        /* 必要に応じて色調整 */
    }




/* 押したときにちょっと沈む（translateY追加ではなく calc で統合） */
.slider-prev:active, .slider-next:active {
    transform: translateY(calc(-50% + 2px));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


.slider-prev:hover,
.slider-next:hover {
    background: #000;       /* 黒背景 */
    color: #fff;            /* 白文字に反転 */
}

.order-period {
margin-bottom: 25px;
    margin-top: 2em;
}







