@charset "UTF-8";
/* ========================================
   何を選べばいい？BAMBI WATERの定番アイテム8選。
   サイズは「カンプ上のpx × var(--px)」(375pxで等倍、800pxで最大)
   見本は楽天ページ(designs/2412_ranking/_source/page.png 375px)。
   01_mv(1280px)はJPG全体を1枚の画像。1〜8位の写真の上の英字はHTML(写真の画像pxで指定。--u)
======================================== */
:root {
    --px: min(calc(100vw / 375), calc(800px / 375));
    --c-text: #333333;
}

.l-wrapper {
    max-width: 800px;
    margin-inline: auto;
}

.sl {
    color: var(--c-text);
    font-family: "Yu Gothic Pr6N M", "游ゴシック", YuGothic, sans-serif;
    letter-spacing: 0;
    line-height: 1.8;
    overflow: hidden;
    padding-bottom: calc(80 * var(--px));
}

.sl img {
    max-width: none;
}

.sl figure {
    margin: 0;
}

/* feature.css の a { transition: all } だと、画面幅を変えたときに位置まで動くので opacity だけにする */
.sl a {
    transition: opacity 0.3s ease;
}

/* feature.css の :before, :after { transition } で矢印が動かないようにする */
.sl ::before,
.sl ::after {
    transition: none;
}

/* ---------- 冒頭(01_mv はJPG全体を1枚の画像。h1) ---------- */
.sl-mv {
    margin: 0;
    line-height: 0;
}

.sl-mv img {
    display: block;
    width: 100%;
    height: auto;
}

/* ページタイトル(h1。MVの下。19_nightbraseries の .nb-head__title と同じ。11/13) */
.sl-head__title {
    margin: 0;
    padding: calc(24 * var(--px)) calc(16 * var(--px)) 0;
    font-family: "Yu Gothic Pr6N B", "游ゴシック", YuGothic, sans-serif;
    font-weight: bold;
    font-size: calc(16 * var(--px));
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .sl-head__title {
        font-size: 18px;
    }
}

/* ---------- 本文 ---------- */
.sl-text {
    margin-top: calc(28 * var(--px));
    padding: 0 calc(16 * var(--px));
    font-size: 16px;
    line-height: 1.8;
}

.sl-text p + p {
    margin-top: 1.8em;
}

.sl-text--lead {
    margin-top: calc(28 * var(--px));
}

.sl-text--end {
    margin-top: calc(36 * var(--px));
}

@media screen and (max-width: 768px) {
    .sl-text {
        font-size: 14px;
    }
}

/* ---------- 1〜8位 ---------- */
.sl-rank {
    margin-top: calc(48 * var(--px));
}

.sl-rank__title,
.sl-items__title {
    margin: 0 0 calc(12 * var(--px));
    padding: 0 calc(16 * var(--px));
    font-family: "Yu Gothic Pr6N B", "游ゴシック", YuGothic, sans-serif;
    font-weight: bold;
    font-size: calc(14 * var(--px));
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .sl-rank__title,
    .sl-items__title {
        margin-bottom: calc(16 * var(--px));
        font-size: calc(16 * var(--px));
    }
}

/* ---------- 写真+HTMLの英字 ----------
   写真は img/〇〇_photo.webp(designs/2412_ranking/parts の文字を消した仮の写真。差し替えはファイルを置き換えるだけ)
   --y / --fs / --ls は見本(parts/〇〇_text.jpg)の画像px。横は中央ぞろえ(--dx で微調整)
   --u は「写真の表示幅 ÷ 写真の横幅」(コンテナクエリ単位 cqw で、表示幅が変わっても自動で合う) */
.sl .sl-ph {
    --w: 750;
    position: relative;
    margin: 0 calc(16 * var(--px));
    container-type: inline-size;
    line-height: 1;
}

/* .sl .sl-ph(--w: 750)より強くして 540 を効かせる(11/16 修正。以前は 750 のままで2位の文字が小さく・上寄りになっていた) */
.sl .sl-ph--uback {
    --w: 540;
}

/* 写真(と写真の上の文字)は商品ページへのリンク(11/13) */
.sl-ph__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sl-ph__img {
    display: block;
    width: 100%;
    height: auto;
}

.sl-ph__text {
    margin: 0;
}

.sl-ph__text > span {
    --u: calc(100cqw / var(--w));
    --dx: 0;
    position: absolute;
    top: calc(var(--y) * var(--u));
    left: calc(var(--dx) * var(--u));
    width: 100%;
    color: #fff;
    font-size: calc(var(--fs) * var(--u));
    letter-spacing: calc(var(--ls) * var(--u));
    /* 字間は文字の右に付くので、左にも同じだけ足して中央をそろえる */
    text-indent: calc(var(--ls) * var(--u));
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    /* 見本の文字の周りのうっすらした影 */
    text-shadow: 0 0 calc(12 * var(--u)) rgba(0, 0, 0, 0.18);
}

/* 1・2・3・5位(Futura) */
.sl-ph__text--futura > span {
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 500;
}

/* 全順位(Helvetica 系の太字。11/13 に 1・2・3・5位も futura から統一) */
.sl-ph__text--gothic > span {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
}

/* ---------- 紹介した商品のカルーセル ---------- */
.sl-items {
    margin-top: calc(48 * var(--px));
}

/* Swiper(js/script.js)で横にスワイプ。.sl-items__carousel は PC の矢印の位置の基準 */
.sl-items__carousel {
    position: relative;
}

.sl-items__slider {
    padding: 0 calc(4 * var(--px)) 0 calc(16 * var(--px));
}

.sl-items__list li {
    width: calc(136 * var(--px));
    margin-right: calc(12 * var(--px));
}

.sl-items__list a {
    display: block;
    color: var(--c-text);
    text-decoration: none;
}

.sl-items__img {
    position: relative;
}

.sl-items__img > img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
}

.sl-items__name {
    display: block;
    margin-top: calc(6 * var(--px));
    font-family: "Yu Gothic Pr6N B", "游ゴシック", YuGothic, sans-serif;
    font-size: calc(12 * var(--px));
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}

.sl-items__price {
    display: block;
    margin-top: calc(2 * var(--px));
    font-size: calc(12 * var(--px));
    text-align: center;
    line-height: 1.5;
}

.sl-items__price small {
    font-size: 0.85em;
}

/* PCは1画面に4商品(見切りなし) */
@media screen and (min-width: 769px) {
    .sl-items__slider {
        margin-inline: calc(16 * var(--px));
        padding: 0;
    }

    .sl-items__list li {
        width: calc((100% - 3 * 6 * var(--px)) / 4);
        margin-right: calc(6 * var(--px));
    }

    .sl-items__list li:last-child {
        margin-right: 0;
    }

    .sl-items__name,
    .sl-items__price {
        font-size: calc(6.5 * var(--px));
    }
}

/* ---------- カルーセルの矢印(PCのみ。04_qualityforyou_ep02 の section-product に合わせる) ---------- */
/* Swiper標準のアイコン(svg)は消し、その方向にスワイプできないとき(最初の左・端まで来た側・全部が1画面に収まるとき)は矢印を消す */
.sl-items .swiper-button-prev svg,
.sl-items .swiper-button-next svg {
    display: none !important;
}

.sl-items .swiper-button-prev,
.sl-items .swiper-button-next {
    position: absolute;
    width: calc(18.75 * var(--px));
    height: calc(14.75 * var(--px));
    margin: auto;
    top: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 100;
}

.sl-items .swiper-button-prev {
    left: calc(2 * var(--px));
    right: auto;
}

.sl-items .swiper-button-next {
    left: auto;
    right: calc(2 * var(--px));
}

.sl-items .swiper-button-prev::before,
.sl-items .swiper-button-prev::after,
.sl-items .swiper-button-next::before,
.sl-items .swiper-button-next::after {
    position: absolute;
    content: "";
    width: 1px;
    height: calc(14.75 * var(--px));
    background: #171716;
    top: 0;
    bottom: 0;
}

.sl-items .swiper-button-prev::before,
.sl-items .swiper-button-prev::after {
    left: 0;
}

.sl-items .swiper-button-next::before,
.sl-items .swiper-button-next::after {
    right: 0;
}

.sl-items .swiper-button-prev::before,
.sl-items .swiper-button-next::before {
    transform: rotate(-40deg);
}

.sl-items .swiper-button-prev::after,
.sl-items .swiper-button-next::after {
    transform: rotate(40deg);
}

.sl-items .swiper-button-disabled,
.sl-items .swiper-button-lock {
    display: none;
}

@media screen and (max-width: 768px) {
    .sl-items .swiper-button-prev,
    .sl-items .swiper-button-next {
        display: none;
    }
}

/* 商品画像の右上のアイコン(css/common.css の .product-wrapper ul.product-list li .icon-container と同じ値) */
.sl-items__img .icon-container {
    position: absolute;
    top: 7px;
    right: 7px;
}

.sl-items__list .sl-items__img .icon-container img {
    width: 100%;
    max-width: 30px;
    aspect-ratio: auto;
    object-fit: fill;
}

@media screen and (max-width: 768px) {
    .sl-items__img .icon-container {
        /* カルーセルの中では上がはみ出すと切れるため、商品一覧(-2px)より下げる */
        top: 2px;
        right: 2px;
    }

    .sl-items__list .sl-items__img .icon-container img {
        max-width: 27px;
    }
}

/* ページタイトル直後の本文の余白(11/13) */
.sl-head__title + .sl-text {
    margin-top: calc(20 * var(--px));
}
