/**************** トップページランキンググリッド ****************/
.scroll-ranking {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: 1200px; /* 任意：6列想定でレイアウト安定させたい場合 */
  margin: 0 auto 40px;
  padding:10px;
}

.scroll-ranking::-webkit-scrollbar {
  display: none;
}


.scroll-track {
  display: flex;
  gap: 10px;
}

.scroll-track .photo-item {
  flex: 0 0 150px; /* カード幅（上のギャラリーと合わせる） */
}

.scroll-track img {
  width: 100%;
  aspect-ratio: 1 / 1.3;  /* 画像比率 */
  object-fit: cover;
  display: block;
  /* scroll-snap-align: start; */
}

.captions {
  text-align: left;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.4;
  padding: 0 2px;
  color:#494949 !important;
}

.captions-price {
  text-align: left;
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.4;
  padding: 0 2px;
  color:#535353 !important;
}

/* スマホだけ「2枚 + 3枚目半分」= 2.5枚見せる */
@media (max-width: 719px) {
  .scroll-track .photo-item {
    /* 2.5枚見せたいので visibleCount=2.5
       gapが10pxで、2.5枚表示の間のgapは「2つ」見える想定（2.5 - 1 = 1.5だけど視覚的には2つ分見えるので扱いを固定）
       シンプルに「2つ分のgap」を引いて割るのが安定します */
    flex: 0 0 calc((100% - 10px * 2) / 2.5);
  }
}


/* ========================
   ランキングラベルリボン型
======================== */
.rank1::before,
.rank2::before,
.rank3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 30px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding-top: 3px;

  font-size: 13px;
  font-weight: 700;
  color: #fff;
  z-index: 3;

  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    50% 70%,
    0 100%
  );
}

.rank1::before {
  content: "1";
  background: #D3AE2B;
}

.rank2::before {
  content: "2";
  background: #bfc3c8;
}

.rank3::before {
  content: "3";
  background: #b87333;
}

/* ========================
   4位以降：三角
======================== */
.rank4::before,
.rank5::before,
.rank6::before,
.rank7::before,
.rank8::before,
.rank9::before,
.rank10::before,
.rank11::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  content: "";
  border-top: 30px solid #6f6f6f;
  border-right: 30px solid transparent;
  z-index: 2;
}

.rank4::after,
.rank5::after,
.rank6::after,
.rank7::after,
.rank8::after,
.rank9::after,
.rank10::after,
.rank11::after {
  position: absolute;
  top: 1px;
  left: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  z-index: 3;
}

.rank4::after { content: "4"; }
.rank5::after { content: "5"; }
.rank6::after { content: "6"; }
.rank7::after { content: "7"; }
.rank8::after { content: "8"; }
.rank9::after { content: "9"; }
.rank10::after { content: "10"; }
.rank11::after { content: "11"; }


/**************** トップページカラーランキンググリッド ****************/
/* radioは見せない */
.tab-color-ranking > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* タブ */
.tab-color-ranking .tabs {
  display: flex;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #ddd;
  margin-bottom: 16px;
  max-width: 600px;
  text-align;center;
  margin:0 auto;
}

.tab-color-ranking .tab {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #777;
  text-align: center;
  flex: 1;
}

/* パネルはデフォルト非表示 */
.pane {
  display: none;
}

#tab1:checked ~ .panes .pane1 {
  display: block;
}

#tab2:checked ~ .panes .pane2 {
  display: block;
}

/* アクティブ文字色 */
#tab1:checked ~ .tabs label[for="tab1"],
#tab2:checked ~ .tabs label[for="tab2"] {
  color: #111;
  font-weight: 600;
}

/* スライドする下線 */
.tab-color-ranking .tabs::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 2px;
  background: #111;
  transition: transform 0.3s ease;
}

/* タブ切り替えで下線移動 */
#tab2:checked ~ .tabs::after {
  transform: translateX(100%);
}

.captions2 {
  text-align: center;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.4;
  padding: 0 2px;
  color:#494949 !important;
}


/**************** トップページ商品一覧グリッド ****************/
.photo-grid {
  display: grid;
  gap: 8px;

  /* PC：最小幅に応じて自動調整、最大6列まで */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 1200px; /* 任意：6列想定でレイアウト安定させたい場合 */
  margin: 0 auto 40px;
  padding:10px;
}

.photo-item {
    padding-bottom:20px;
    position: relative;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 1 / 1.3;  /* 画像比率 */
  object-fit: cover;
  display: block;
}

/* スマホは常に3列固定 */
@media (max-width: 719px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/**************** トップページキャンペーングリッド ****************/
.grid-cpn {
  --gap: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--gap);
}

.card-cpn {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  transition: transform .2s, box-shadow .2s;
}

.card-cpn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .grid-cpn { grid-template-columns: repeat(2, 1fr); }
}

/*****************Q&A*****************/

:root{
    --faq-parent-max: 1200px;
    --faq-inner-max: 660px;
    --faq-bg: #fff;
    --faq-border: #fff;
    --faq-question: #111827;
    --faq-answer: #374151;
    --faq-accent: #2563eb;
}

/* 親ラッパー */
.faq-wrapper {
    width: 100%;
    max-width: var(--faq-parent-max);
    margin: 50px auto;
    padding: 40px 16px 60px;
    box-sizing: border-box;
    background-color: #f2eee7;
}

/* アコーディオン本体 */
.faq {
    width: 90%;
    max-width: var(--faq-inner-max);
    margin: 0 auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 13px;
    color: #494949;
    font-weight:400 !important;
}

.faq details {
    background: var(--faq-bg);
    border: 1px solid var(--faq-border);
    border-radius: 12px;
    margin: 12px 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }

.faq summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    font-weight: 400;
    color: var(--faq-question);
    user-select: none;
}

.faq summary::after {
    content: "+";
    margin-left: auto;
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}
.faq details[open] > summary::after {
    content: "−";
    font-size: 18px;
}

.faq summary:focus { outline: none; }
.faq summary:focus-visible {
    box-shadow: inset 0 0 0 2px var(--faq-accent);
    border-radius: 10px;
}

.faq .answer-wrap { padding: 0 20px 18px; }
.faq .answer {
    color: var(--faq-answer);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
}
.faq details[open] .answer {
    max-height: 600px;
}

.faq .answer p { margin: 12px 0; }
.faq .divider {
    height: 1px;
    background: var(--faq-border);
    margin: 0 20px 12px;
}

/* 質問（Qアイコン） */
.faq details > summary::before {
  content: "";                /* ← これが無いと擬似要素は出ません */
  display: inline-block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;             /* ← shrinkしない・必ず40px確保 */
  min-width: 30px;            /* 念のため */
  background-image: url("https://d2w53g1q050m78.cloudfront.net/rltjp/uploads/images/shop/faq-a.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;   /* 比率維持。枠ピッタリなら cover に変更 */
}

/* 回答（Aアイコン） */
.faq .answer {
  position: relative;
  padding-left: 60px; /* アイコンの分だけ左に余白を作る */
}

.faq .answer::before {
  content: "";
  position: absolute;
  left: 0;      /* answer 内での横位置 */
  top: 1em;       /* answer 内での縦位置 */
  width: 30px;
  height: 30px;
  background: url("https://d2w53g1q050m78.cloudfront.net/rltjp/uploads/images/shop/faq-q.png") no-repeat center/contain;
}

/**************** カテゴリリスト ***************/
.category-list{
  list-style:none;
  margin:0 auto 50px;
  padding:0;
  width:90%;
  max-width:1000px;
}

.category-list li{
  margin-bottom:5px;
}

.category-list a{
  display:flex;
  align-items:center;
  padding:10px;
  background:#f6f6f6;
  border-radius:5px;
  text-decoration:none;
  color:#333;
  position:relative;
  min-height:56px;
}

.cat-icon{
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-right:14px;
  flex-shrink:0;
}

.cat-icon img{
  width:50px;
  height:50px;
  object-fit:contain;
}

.cat-text{
  font-size:14px;
  font-weight:500;
}

.category-list a::after{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  width:7px;
  height:7px;
  border-top:2px solid #666;
  border-right:2px solid #666;
  transform:translateY(-50%) rotate(45deg);
}

@media (min-width:768px){
  .category-list{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
  }

  .category-list li{
    margin-bottom:0;
  }
}

/**************** ユーコミ口コミエリア上書き ***************/
.reviewWidget_inner {
    padding-top:0 !important;
}
.review-widget-summary-container {
    margin:10px 0 !important;
}

/*****************その他調整*****************/
/*PCのFV下余白*/
@media (min-width: 769px) {
    .fv-t {
            margin-top: 40px !important;
    }
}
@media (max-width: 768px) {
    .fv-t {
            margin-bottom: 20px !important;
    }
}

/**************** トップページカラバリグリッド（未使用） ****************/
.grid-cards {
  --gap: 12px;
  --row-h: 260px;
  --img-h: 200px;
  --pad: 12px;
  --fs: 13px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: var(--gap);
  display: grid;
  grid-auto-rows: var(--row-h);
  gap: var(--gap);
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}

.card {
  padding: var(--pad);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.card img {
  width: 100%;
  height: var(--img-h);
  object-fit: cover;
  display: block;
}

.card p {
  margin: 0;
  font-size: var(--fs);
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #9A9A9A;
  font-weight:400;
}


/*****************bundle.css変更部分*****************/

.u-margin__top--80 {
    margin-top: 50px;
}

@media screen and (max-width: 719px) {
    .u-margin_sp__top--60 {
        margin-top: 0px !important;
    }
}

.u-margin__bottom--80 {
    margin-bottom: 50px !important;
}

.p-new_product__title {
    margin-bottom:20px !important;
}

/*ニュース（コラム）一覧サムネ比率変更*/
.c-column_item__inner__img {
    padding-top: 90.9090909%; /* 1.1:1 の比率 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/*モバイル版トップスライド比率１：１に変更*/
@media screen and (max-width: 719px) {
  .p-kv_slider__track__list__item__inner {
    padding-top: 100% !important;
    background-size: cover;
    background-position: center;
  }
}

@media screen and (max-width: 719px) {
  /* ナビ（ドット・矢印）を画像の下へ */
  .p-kv_slider__nav {
    position: static !important;
    inset: auto !important;       /* top/right/bottom/left の打ち消し */
    transform: none !important;
    margin-top: 12px;
    justify-content: center;
  }

  /* 中身の並び調整（任意） */
  .p-kv_slider__nav__pagination {
    justify-content: center;
  }

  /* 矢印がabsoluteなら解除（テンプレによっては必要） */
  .p-kv_slider__nav__arrow {
    position: static !important;
  }
}

@media screen and (max-width: 719px) {

  .p-kv_slider__nav {
    display: flex;
    justify-content: center !important;
    align-items: center;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 12px;
  }

  .p-kv_slider__nav__pagination button {
    background-color: #ccc !important;
  }

  .p-kv_slider__nav__pagination__dot.is-current button {
    background-color: #999 !important;
  }

  .p-kv_slider__nav__arrow .u-icon--arrow {
    color: #ccc !important;
  }

}

/******FV画像全体にリンク*****/
.kv-slide-link{
  position:absolute;
  inset:0;
  z-index:2;
  display:block;
}
.p-kv_slider__track__list__item__inner{
  position:relative;
}

