/* サブカテゴリーのリストスタイル */
.p-sub-category {
  padding: 10px;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #efefef; /* 大枠の背景色はグレーのまま */
}

/* サブカテゴリー項目のスタイル */
.p-sub-category__item {
  box-sizing: border-box;
  width: calc(33.3333% - 10px);
  text-align: center;
  border: 1px solid #ccc;
  margin: 5px;
  transition: color 0.2s, background-color 0.2s;
  color: #333;
  min-height: 40px;
  overflow: hidden;
  word-wrap: break-word;
  display: flex;          
  justify-content: center; 
  align-items: center; /* 垂直方向に中央揃え */
  background-color: #fff; /* カテゴリー項目の背景色を白に設定 */
  position: relative;
}

/* ホバー時のスタイル */
.p-sub-category__item:hover {
  color: #fff;
  background-color: #333;
}

/* サブカテゴリー項目のリンクスタイル */
.p-sub-category__link {
  display: block;
  transition: opacity .2s;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;          
  align-items: center;    
  justify-content: center; 
}

/* ホバー時のリンクスタイル */
.p-sub-category__link:hover {
  opacity: .66;
}

/* アクティブ時のリンクスタイル */
.p-sub-category__link:active {
  opacity: 1;
}

/* サブカテゴリー項目のテキストスタイル */
.p-sub-category__name {
  line-height: 1.3;
  display: inline-block;  
  margin: 0;
}

/* メディアクエリ: 幅600px未満の場合 */
@media screen and (max-width: 600px) {
  .p-sub-category__item {
    width: calc(50% - 10px);
    margin: 5px auto;
  }
}


.cartjs_product_table {
  display: none;
}

.cartjs_cart_in input[type="submit"] {
    background-color: #ff9900;
    color: #fff;
    padding: 8px 15px;
    margin: 20px auto 10px; /* 上: 20px, 左右: auto, 下: 10px */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.3s;
}


.cartjs_cart_in input[type="submit"]:hover {
    background-color: #45a049; /* ホバー時の背景色を少し濃くして反応を示す */
    transform: scale(1.05); /* ホバー時に少し拡大して押しやすさを演出 */
}

.cart_in_modal, .cart_in_error_modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
margin: 10px auto;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.closeModal {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 25px;
  color: #aaaaaa;
}

.closeModal:hover {
  color: #777;
}

.cart_in_modal__heading {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
}

.cart_in_modal__detail {
  text-align: center;
}

.cart_in_modal__image-wrap {
  margin-bottom: 15px;
}

.cart_in_modal__image {
  max-width: 100px;
  height: auto;
  border-radius: 5px;
}

.cart_in_modal__name {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.cart_in_modal__button-wrap {
  margin-top: 20px;
}

.cart_view_with_async2,
.continueShopping {
  background: #007bff;
  color: #ffffff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  display: inline-block;
  width: calc(50% - 10px);
  margin: 5px;
  text-align: center;
}

.cart_view_with_async2:hover,
.continueShopping:hover {
  background: #0056b3;
}

.continueShopping {
  background: transparent;
  color: #007bff;
  text-decoration: none;
}

.continueShopping:hover {
  text-decoration: underline;
  background: none;
}

/* エラーメッセージ用のスタイル */
.cart_in_error_message {
  color: #d9534f;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.cart_in_modal__button-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* ボタンを縦に並べる */
  width: 100%;
}

.c-product-sort {
  display: flex;
  align-items: center; /* 子要素を中央揃えに */
  justify-content: flex-start; /* 子要素を左端から配置 */
  margin: 30px 10px 0;
}

.c-product-sort__switch {
  margin-left: auto; /* この要素を右端に寄せる */
}

@media (max-width: 600px) {
  .c-product-sort__switch {
    margin-left: auto; /* この要素を右端に寄せる (既存のスタイルを維持) */
    margin-top: -15px; /* 要素を上に少し移動させる */
  }
}


/* 不要なfloatプロパティの削除 */
.c-product-sort__total, .c-product-sort__switch {
  float: none;
}

.c-product-sort::after {
  content: none; /* Flexboxを使用している場合は不要 */
}

.c-section__heading--sub-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  color: #000;
  border-bottom: 5px solid #dcdddd;
  padding-bottom: 20px;
}

@media (max-width: 768px) {
  .c-section__heading--sub-title {
    font-size: 24px;
  }
}


        .video-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            max-width: 100%;
            background: #000;
        }
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

.buy-together-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 1em 0 0.5em;
  padding-left: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.4em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buy-together-list {
	  list-style: none;
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
}
.buy-together-item {
  flex: 0 0 120px;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 0.6em;
  text-align: left;
  background: #fafafa;
  position: relative;
  transition: box-shadow 0.2s ease;
}
.buy-together-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.buy-together-item img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}
.buy-together-item .name {
  font-size: 0.8em;
  margin-top: 0.5em;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.buy-together-item .price {
  margin-top: 0.4em;
  font-weight: bold;
  font-size: 0.85em;
}
.buy-together-item .sale-price {
  color: #d9534f;
}
.buy-together-item .original-price {
  font-size: 0.7em;
  color: #999;
  text-decoration: line-through;
  margin-left: 0.4em;
}
.buy-together-item .soldout-text {
  color: #999;
  font-weight: bold;
  font-size: 0.85em;
}
.buy-together-item .sale-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #d9534f;
  color: #fff;
  font-size: 0.7em;
  padding: 4px 6px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
}
	.buy-together-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  height: 2.8em;
}

.c-dokodemo-btn {
  display: inline-block;
  padding: 10px 16px;
  background: #ff6600;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease;
}
.c-dokodemo-btn:hover {
  background: #cc5200;
}

.review-stars {
  font-size: 1.3em;
  color: gold;
  text-align: center;
  margin-top: 0.3em;
}

.review-stars i {
  margin: 0 1px;
}

.c-product-list__item {
  position: relative;
    overflow: hidden;
}

/* ランクごとの色分け */
/* ランキングバッジの改善 */
.category-ranking-item.rank-1 .category-ranking-rank {
  background-color: #B28900; /* 皇金 */
  color: #fff;
}

.category-ranking-item.rank-2 .category-ranking-rank {
  background-color: #6A0DAD; /* パープル */
  color: #fff;
}

.category-ranking-item.rank-3 .category-ranking-rank {
  background-color: #B7410E; /* 赤銅 */
  color: #fff;
}

.category-ranking-item.rank-4 .category-ranking-rank {
  background-color: #003366; /* 紺 */
  color: #fff;
}

.category-ranking-item.rank-5 .category-ranking-rank {
  background-color: #145A32; /* 森林 */
  color: #fff;
}

.category-ranking-item:not(.rank-1):not(.rank-2):not(.rank-3):not(.rank-4):not(.rank-5) .category-ranking-rank {
  background-color: #A0A0A0; /* アッシュグレー */
  color: #fff;
}



@media screen and (max-width: 768px) {
  .c-product-list__item {
    overflow: hidden;
  }
}
