/*共通CSS*/
/* ==========================================
   Spacing Utility
========================================== */

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.pd-32 { padding-bottom: 32px;}

/* ==========================================
   Text Utility
========================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.sp_br {
  display: none;
}

@media screen and (max-width: 768px) {

  .pc_br {
    display: none;
  }

  .sp_br {
    display: block;
  }

}

/* 強調 */

.str {
  color: #BC1B21;
  font-weight: 700;
  font-size: 1.2em;
}

.t10 {
    font-size: 1.1em;
}
.t20 {
    font-size: 1.2em;
}
.t30 {
    font-size: 1.3em;
}
.t09 {
    font-size:0.9em;
}
.t08 {
    font-size:0.8em;
}

/* ==========================================
   Layout Utility
========================================== */

.w-100 {
  width: 100%;
}

.d-block {
  display: block;
}


/* ==========================================
   Guide Note
========================================== */

.guide-note {
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: #f8f6f2;
  border: 1px solid #e4ded2;
  border-radius: 8px;
  line-height: 1.8;
  color: #333;
}

.guide-note__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.guide-note p {
  margin: 0 0 12px;
  font-size: 15px;
}

.guide-note p:last-child {
  margin-bottom: 0;
}


/* カテゴリテキスト */
.cttext-block {
  max-width: 800px;     /* 横幅制限（重要） */
  margin: 24px auto;    /* 上下余白＋中央寄せ */
  padding: 0 16px;      /* スマホ対策 */
  line-height: 1.3em;     /* 行間 */
  font-size: 16px;
  color: #333;
}

/* 段落 */
.cttext-block p {
  margin-bottom: 1.3em; /* 段落間余白 */
}

/* PC基準 */
.ctimg-wrap {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 20px;
  box-sizing: border-box;
}

.ctimg {
  display: block;
  width: 100%;
  height: auto;
}

/* ▼スマホだけ余白削る */
@media screen and (max-width: 768px) {
  .ctimg-wrap {
    padding: 0 8px;   /* ←ここがポイント */
    margin-bottom: 16px;
  }
}

/*商品セクション：幅指定*/
.recommend-limited {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.recommend-limited .ec-shelfGrid {
  margin-left: 0;
  margin-right: 0;
}

.recommend-limited .ec-shelfGrid__item {
  box-sizing: border-box;
}

/*youtube貼り付け*/
.youtube-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.youtube-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/*関連商品CSS*/

.related-products {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
}

.related-products-stack {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
}

.ec-layoutRole__contents > .related-products-stack {
  flex: 0 0 100%;
  max-width: 1500px;
}

/*.related-products {
  position: relative;
  width: 100%;
  max-width: 1280px;
  padding: 10px 10px 24px;
  box-sizing: border-box;
  border-top: 1px solid #232323;
}
*/

.rp-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
}

.rp-scroll::-webkit-scrollbar {
  display: none;
}

.rp-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.rp-item {
  flex: 0 0 calc((100% - 24px * 3.5) / 4.5);
  text-decoration: none;
  color: #111;
  box-sizing: border-box;
}

.rp-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.rp-title {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 8px;
  color: #111;
}

.rp-price {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  color: #D33828;
  font-weight: bold;
}

.rp-price span {
  font-size: 13px;
}

.rp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 48px;
  border: none;
  background: transparent;
  color: #D33828;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.rp-prev {
  left: 0;
}

.rp-next {
  right: 0;
}

/* もっと見る */
.rp-more {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-more-inner {
  text-align: center;
}

.rp-more-circle {
  width: 64px;
  height: 64px;
  border: 2px solid #D33828;
  border-radius: 50%;
  color: #D33828;
  font-size: 36px;
  line-height: 60px;
  margin: 0 auto 10px;
}

.rp-more-text {
  font-size: 14px;
  color: #D33828;
  margin: 0;
}

.rp-lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  text-align:center;
}

/* ホバー（PCのみ） */
@media (hover: hover) {
  .rp-more:hover .rp-more-circle {
    background: #D33828;
    color: #fff;
  }
}


.rp-item,
.rp-item img,
.rp-title,
.rp-price {
  -webkit-user-drag: none;
  user-select: none;
}

@media screen and (max-width: 768px) {
  .related-products {
    padding: 0 3px 0 3px;
  }

  .rp-scroll {
    gap: 16px;
  }

  .rp-item {
    flex: 0 0 calc((100% - 16px * 1.2) / 2.2);
  }

  .rp-title {
    font-size: 13px;
  }

  .rp-price {
    font-size: 17px;
  }
  .rp-lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  text-align: left;
}
}

/*商品ページ動画CSS*/
.product-video {
  width: 100%;
  height: auto;
  display: block;
  max-width:320px;
}

/*商品の説明画像に適応させるCSS*/
.item-spec br {
 display:none;
}

.item-spec img {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 16px;
  margin: 0 auto 16px;
}

/* Lightbox */
.item-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  cursor: zoom-out;
}

.item-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 4px;
}

.item-stock-note {
  margin: 20px 0;
  padding: 16px;
  border-radius: 10px;
  background: #f7f3ed;
  border: 1px solid #d8cfc2;
}

/*商品注釈用CSS*/
.item-note  {
  margin: 0;
  color: #D86B6D;
}

/*特集ページ用パンくずCSS*/
.feature-breadcrumb {
  max-width: 880px;
  margin: 0 auto 16px;
  font-size: 13px;
  color: #666;
}

.feature-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-breadcrumb li::after {
  content: ">";
  margin-left: 6px;
  color: #aaa;
}

.feature-breadcrumb li:last-child::after {
  display: none;
  content: "";
}

.feature-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.feature-breadcrumb a:hover {
  text-decoration: underline;
}

/*カテゴリ内の注釈*/
.category-note {
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: #f8f6f2;
  border: 1px solid #e4ded2;
  border-radius: 8px;
  line-height: 1.8;
  color: #333;
}

.category-note__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.category-note p {
  margin: 0 0 12px;
  font-size: 13px;
}

.category-note p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .category-note {
    padding: 16px;
    margin: 24px 0;
    font-size: 14px;
  }

  .category-note__title {
    font-size: 15px;
  }
}

/*カート用のCSS*/
.cart-delivery-duration {
    margin: 5px auto;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
.cart-delivery-duration strong{
    font-weight:bold;
}

/*ページトップボタン*/
.page-top {
  position: fixed;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 72px;
  right: -70px;
  bottom: calc(30% - 36px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border: 0;
  background: #dba351;
  transition: .2s;
  font-weight: bold;
  border-radius: 10px 0 0 10px;
}

.page-top__arrow {
  position: absolute;
  top: 10px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

.page-top__text {
  position: absolute;
  bottom: 12px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 2px;
  color: #fff;
}

.page-top.is-active {
  right: -2px;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .page-top {
    width: 48px;
    height: 62px;
    bottom: 88px;
    right: -60px;
    border-radius: 8px 0 0 8px;
  }

  .page-top.is-active {
    right: -2px;
  }

  .page-top__arrow {
    top: 8px;
    font-size: 24px;
  }

  .page-top__text {
    bottom: 10px;
    font-size: 11px;
    letter-spacing: 1px;
  }
}