/* TOPページタグクラウド */
.freearea {
    text-shadow: none;
    padding: 10px 10px;
    margin: 0 0;
    background: white;
    color: #333333;
    /* width: 95%; */
}
#contents{
	margin: 0!important;
}
section:before {
    content: " ";
    margin-top: -50px;
    height: 15px!important;
    display: block;
    visibility: hidden;
}

.besmpbadge-group{
  margin: 0 auto;
  margin-bottom:4px;
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
	  justify-content: center; /*センター表示に*/
}
.besmpbadge-item{
  margin-top: 10px;
  margin-right: 5px;
  border-radius: 4px;
  background: #e6e6e6;
  padding: 8px 10px;
  overflow: hidden;
  color: #4d4d4d;
  font-size: 12px;

}
.besmpbadge-item:before {
  content: "#";	
}
/* TOPページタグクラウドここまで */


.bt-slider-container {
  width: 100%;
  overflow-x: auto;
  /*padding: 5px;*/
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;  /* IE & Edge */
  scrollbar-width: none;     /* Firefox */
 box-sizing: border-box;
}


.bt-slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.bt-scroll-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  gap: 7px;
}

.bt-product {
  position: relative;
  width: 29vw; /* 2列は約80vw */
   /*background-color: #fff;
 border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
  scroll-snap-align: start;
}
.bt-product:first-child {
  position: relative;
  width: 70vw; /* 2列は約80vw */
  /*background-color: #fff;
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
  scroll-snap-align: start;
grid-row: span 2;
    grid-column: span 2;
}

.bt-product-link {
  display: block;   /* 横幅ズレ防止 */
  width: 100%;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.bt-product-link:hover,
.bt-product-link:focus,
.bt-product-link:active {
  text-decoration: none;
  outline: none;

}

/* フォーカス時・クリック時の下線・枠線も消す */
.bt-product-link:focus,
.bt-product-link:active {
  outline: none;
  text-decoration: none;
}

.bt-product-image {
  width: 100%;
  height: auto;
  /*border-radius: 6px;*/
aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.bt-product-name {
  font-size: 8px;
  margin-top: 3px;
  color: #888;
  line-height: 1.3;
	  text-align: left; /* ←ここもcenterからleftに */

}

.bt-product-price {
  font-size: 7px;
  color: #6D7CB5;
 font-weight: 600; /* 中太（やや強調） */
  margin-top: 3px;
	  text-align: left; /* ←ここもcenterからleftに */

}

.bt-rank-badge {
position: absolute;
    /* top: 8px; */
    /* left: 8px; */
    width: 0;
    height: 0;
    border-top: 34px solid #7A86AC;
    border-right: 34px solid transparent;
    /* background-color: #7A86AC; */
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); */
    user-select: none;
}

.bt-rank-badge span {
    position: absolute;
    top: -32px;
    left: 5px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

/* 1~3位の特別カラー */
.bt-rank-1 { background-color: #fcd772; color: #323c6f; }
.bt-rank-2 { background-color: #e8e3e3; color: #323c6f; }
.bt-rank-3 { background-color: #cd7f32; color: #fff; }





.bt-slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.bt-slider-dot {
  width: 8px;
  height: 8px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  transition: background-color 0.3s;
}

.bt-slider-dot.active {
  background-color: #666;
}

/* bti スライダー全体 */
.bti-swiper {
  padding: 20px 0;
}

.bti-swiper .swiper-slide {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 20px;
  overflow: visible;
	  height: auto;
  display: flex;
  flex-direction: column;
	 box-sizing: border-box;
}

/* 商品カード */
.bti-product-card {
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	  display: flex;
  flex-direction: column;
  height: 100%;
	  justify-content: space-between;

}

/* メイン画像 */
.bti-main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
	  margin-bottom: 10px;

}

/* 下部の情報（サムネ + 商品名 + 価格） */
.bti-bottom-info {
  display: flex;
  align-items: center;
  padding: 4px;
}

/* サムネ画像 */
.bti-thumb-img {
  width: 40px;
  height: 40px;
  border-radius: 0px;
  margin-right: 4px;
  object-fit: cover;
}

/* テキスト情報 */
.bti-text-info {
  flex: 1;
  max-width: 100px; /* ← 必要に応じて調整 */
}

.bti-product-name {
  display: block;
  font-size: 9px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%; /* 念のため */
}

.bti-price {
  font-size: 11px;
  color: #555;
  margin: 2px 0 0;
}

/* 商品カードのリンク全体をブロック要素にする */
.bti-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.swiper-pagination {
  position: relative !important; /* 重なり防止のため絶対位置を解除 */
  margin-top: 10px;               /* ページネーションの上に余白を作る */
  text-align: center;             /* 中央揃え */
}

/* ページネーションの通常のドット */
.swiper-pagination-bullet {
  background-color: #999 !important; /* 普通の色 */
  opacity: 1; /* 透明にならないように */
}

/* アクティブなドット */
.swiper-pagination-bullet-active {
  background-color: #323c6f !important; /* アクティブ色 */
}

.sns-heading {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight:600!important;
  color: #333;
  gap: 8px;
  margin-bottom: 0px;
}

.bsmp-heading {
  text-align: center!important;
  font-size: 15px;
  font-weight:600!important;
  color: #333;
  margin-bottom: 0;
}


.instagram-icon {
  flex-shrink: 0;
}


/* もっと見るボタン */
.btb-button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #323c6f;
  color: #323c6f;
  font-size: 11px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
  font-family: sans-serif;
  cursor: pointer;
  position: relative;
  margin-bottom: 20px;
  margin-top: 10px;
}

.btb-button::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s;
}

.btb-button:hover {
  background-color: #323c6f;
  color: #fff;
}

.btb-button:hover::after {
  transform: translateX(3px);
}

/* 2行スライダー */
.bti-grid-section {
  margin: 10px 0;  /* 上下20pxの余白 */
  padding: 0 0px;  /* 横はお好みで */
}

.bti-grid-img {
  width: 100%;
  height: auto;
  border-radius: 0px; /* 角の丸み */
  object-fit: cover;
  display: block;
}

/* おむつケーキ新商品用スライダー */
.ni-slider-section {
  padding: 3px 0;
}

.ni-swiper .swiper-slide {
  width: auto;
  margin: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
	
}

.ni-product-card {
  /*background: #fff; */
    border-radius: 0;
    overflow: hidden;
    width: 42vw;
    /* padding: 5px; */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    display: flex;
    flex-direction: column;
    /* padding: 5px; */
    height: auto;
    box-sizing: border-box;
    scroll-snap-align: start;

}

.ni-main-img {
  width: 100%;
  height: auto;
  object-fit: contain; 
  margin-bottom: 8px;
    border-radius: 0px;
    object-fit: cover;
    display: block;
}

.ni-product-name {
  font-size: 10px;
  margin: 0 0 3px !important;
  line-height: 1.2 !important; /* !important で優先度を上げる */
  text-align: left;  /* ←ここをcenterからleftに */
  width: 100%;
  white-space: normal;         /* 複数行OKにする */
  overflow: visible;           /* はみ出しを許可 */
  text-overflow: unset;        /* 省略なし */
  display: -webkit-box;        /* 複数行省略に対応（必要な場合） */
  -webkit-line-clamp: 3;       /* 最大3行 */
  -webkit-box-orient: vertical;
}

.ni-price {
	  white-space: normal; /* 複数行OK */
  font-size: 8px;
  color: #6D7CB5;
 font-weight: 600; /* 中太（やや強調） */
  margin: 0;
  line-height: 1;        /* 行の高さを小さく */
  text-align: left; /* ←ここもcenterからleftに */
	  overflow-wrap: break-word;

}

.ni-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ni-swiper .swiper-wrapper {
  margin-left: 0px; /* ← 必要に応じて調整 */
}
.ni-dummy-slide {
  width: 40vw;  /* 商品と同じ幅 */
  pointer-events: none; /* クリック無効 */
  background: transparent;
  box-shadow: none;
}


/* 人気ランキング背景 */
.ranking-bg {
  background-color: #f7f7f7;  /* 背景色 */
  padding:15px;         /* コンテンツの内側余白 */
  margin-bottom: 20px;        /* 下のセクションとの余白 */
  width: 100%;               /* ビューポート幅100% */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* 新着商品背景 */
.newitem-bg {
  background-color: #f7f7f7; /* 背景色 */
  padding: 15px;         /* コンテンツの内側余白 */
  margin-bottom: 20px;        /* 下のセクションとの余白 */
  width: 100%;               /* ビューポート幅100% */
  position: relative;
  left: 47%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.bssection-title {
  font-size: 15px;         /* フォントサイズ */
  font-weight: 600;        /* 太さ（700＝bold） */
  color: #333;             /* 色 */
  margin-bottom: 0px;     /* 下の余白 */
  text-align: left;     
}

/*タブ切り替え*/

 .tab_container {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    border-bottom: 1px solid #ddd;
    }
    .rank_arrow {
      cursor: pointer;
      font-size: 14px;
      user-select: none;
      color: #DFDFDF;
      padding: 0 10px;
    }
    .tab-wrapper {
     flex-grow: 1;
    overflow-x: auto;
    white-space: nowrap;
  
    scrollbar-width: none;
    scrollbar-color: #fff #fff;
    scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
    }
    .tab-item {
      display: inline-block;
        width: 75px;
    padding: 4px;
      text-align: center;
font-size: 10px;
      cursor: pointer;

      user-select: none;
		margin: 5px;
    }
	 .tab-item:hover {
     border-bottom: 5px solid #1f2b62;
	margin: 5px;
    }
    .tab-item.active {
    border-bottom: 5px solid #1f2b62;
    font-weight: bold;
		margin: 5px;
    }

  .tab-item-price {
      display: inline-block;
        width: 75px;
    padding: 4px;
      text-align: center;
font-size: 10px;
      cursor: pointer;

      user-select: none;
		margin: 5px;
    }
	 .tab-item-price:hover {
     border-bottom: 5px solid #1f2b62;
	margin: 5px;
    }
    .tab-item-price.active {
    border-bottom: 5px solid #1f2b62;
    font-weight: bold;
		margin: 5px;
    }


    .tab-content {
      max-width: 900px;
      margin: 10px auto;
      background: #fff;
      display: block;
  visibility: hidden;
  position: absolute;
  opacity: 0;
	height: 0;
  overflow: hidden;
    }
    .tab-content.active {
      display: block;
		visibility: visible;
  position: static;
  opacity: 1;
		 height: auto;
    }

 .tab-price-content {
      max-width: 900px;
      margin: 10px auto;
      background: #fff;
      display: block;
  visibility: hidden;
  position: absolute;
  opacity: 0;
	height: 0;
  overflow: hidden;
    }
    .tab-price-content.active {
      display: block;
		visibility: visible;
  position: static;
  opacity: 1;
		 height: auto;
    }

.motto_btn a {
    width: 70%;
    margin: auto;
    margin-top: 15px;
    display: block;
    padding: 9px 0;
    font-size: 13px;
    font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
    color: #2C3061;
    text-align: center;
    border-radius: 5px;
    background: #D9E2F0;
    position: relative;
}


/* ===== タブ ===== */
.tab-nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: none;
background-color: #fff;
}

.tab-btn.active {
 border-bottom: 5px solid #1f2b62;
    font-weight: bold;
    margin: 5px;
}

/* ===== タブ中身 ===== */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ===== スライダー ===== */
.ranking-slider {
  padding: 10px 0;
}

.swiper-slide {
  width: 70%;
}

/* 1位 */
.rank1 {
  width: 85%;
}

.card {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 10px;
}

/* 1位カード */
.card.big {
  height: 200px;
  background: #ffe9a7;
}

/* 2列 */
.col2 {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.col2 .card {
  height: 95px;
}

/* スクロールバー消す（任意） */
.tab-nav::-webkit-scrollbar {
  display: none;
}