@charset "UTF-8";
/* ========================================
   新年は新しい下着で晴れやかに。 バンビウォーターのナイトブラ＆ショーツ特集
   サイズは「375px幅のページ上のpx × var(--px)」(375pxで等倍、800pxで最大)
   正解は楽天ページ(designs/2601_nightbra_shorts/_source/page.png)。MV だけ画像のまま
   色の写真と色見本は「文字を消した写真 + HTMLの文字」(色の写真は scripts/text-slide.mjs)
======================================== */
:root {
    --px: min(calc(100vw / 375), calc(800px / 375));
    --c-text: #333333;
}

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

.nbs {
    color: var(--c-text);
    font-family: "Yu Gothic Pr6N M", "游ゴシック", YuGothic, sans-serif;
    letter-spacing: 0;
    line-height: 1.72;
    overflow: hidden;
}

.nbs img {
    max-width: none;
}

/* ---------- 冒頭(MV は楽天の 2512_newyear.jpg を1枚の画像のまま) ---------- */
.nbs-mv img {
    display: block;
    width: 100%;
    height: auto;
}

.nbs-head__text {
    padding: calc(24 * var(--px)) calc(16 * var(--px)) 0;
}

.nbs-head__title {
    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) {
    .nbs-head__title {
        font-size: 18px;
    }
}

/* ---------- 本文(楽天:14px、行の間隔24px、段落の間は1行あける) ---------- */
.nbs-text {
    padding: 0 calc(16 * var(--px));
    font-size: 16px;
    line-height: 1.72;
}

.nbs-text p + p {
    margin-top: 1.72em;
}

.nbs-head + .nbs-text {
    margin-top: calc(20 * var(--px));
}

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

    .nbs-head + .nbs-text {
        margin-top: calc(24 * var(--px));
    }
}

/* ---------- セクション(楽天の実測:本文 → 見出し 55、見出し → 写真 12、写真 → 本文 38、見出し → 本文 18) ---------- */
.nbs-text + .nbs-sec,
.nbs-sec + .nbs-sec {
    margin-top: calc(55 * var(--px));
}

.nbs-sec:last-child {
    margin-bottom: calc(80 * var(--px));
}

.nbs-sec__title,
.nbs-color__title {
    margin: 0 calc(16 * var(--px)) calc(12 * var(--px));
    color: var(--c-text);
    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) {
    .nbs-sec__title,
    .nbs-color__title {
        font-size: calc(16 * var(--px));
    }
}

.nbs-sec__title + .nbs-text {
    margin-top: calc(18 * var(--px));
}

/* 写真(02 は文字のない写真のまま) */
.nbs-photo {
    margin: 0 calc(16 * var(--px));
}

.nbs-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.nbs-photo + .nbs-text,
.nbs-fig + .nbs-text {
    margin-top: calc(38 * var(--px));
}

/* ---------- 運気別おすすめカラー(楽天の実測:見出し → 01 ピンク 32、色見本 → 次の色 51) ---------- */
.nbs-sec__title + .nbs-color {
    margin-top: calc(32 * var(--px));
}

.nbs-color + .nbs-color,
.nbs-color + .nbs-text {
    margin-top: calc(51 * var(--px));
}

.nbs-fig {
    position: relative;
    margin: 0 calc(16 * var(--px));
    overflow: hidden;
}

.nbs-fig .swiper-slide {
    width: 100%;
    height: auto;
}

/* 色の写真の文字はすべて明朝体(楽天の画像に合わせる) */
.nbs-color .nbs-ts__t {
    font-family: "Yu Mincho Pr6N M", "游明朝", YuMincho, "Hiragino Mincho ProN", serif;
    font-weight: normal;
}

/* 和文の縦書き(色の写真の2行目)は、SP で 10px に大きくなると写真の下からはみ出すので、字間を 0 にする */
@media screen and (max-width: 768px) {
    .nbs-color .nbs-ts__t--v:nth-of-type(2) {
        letter-spacing: 0;
    }
}

/* ← SWIPE →(楽天は画像 swipe_4.jpg。343×38 の中に、文字と左右の矢印) */
.nbs-swipe {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(23.5 * var(--px));
    box-sizing: border-box;
    height: calc(38 * var(--px));
    margin-top: calc(36 * var(--px));
    padding-top: calc(28 * var(--px)); /* 文字と矢印の中心を、画像と同じ上から 33 に置く */
    color: #4d4d4d;
}

.nbs-swipe span {
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 300;
    font-size: max(10px, calc(12.5 * var(--px)));
    letter-spacing: calc(4.6 * var(--px));
    line-height: 1;
    margin-right: calc(-4.6 * var(--px));
}

.nbs-swipe svg {
    width: calc(44 * var(--px));
    height: calc(3.6 * var(--px));
    overflow: visible;
}

.nbs-swipe path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
}

.nbs-swipe + .nbs-sw__carousel {
    margin-top: calc(38 * var(--px));
}

.nbs-text + .nbs-sw__carousel {
    margin-top: calc(36 * var(--px));
}

/* 色見本:写真の下の「カラー/〜」は HTML(画像の文字は白で消した)。位置は元の画像の文字の左上(%) */
.nbs-sw__slider {
    padding-bottom: calc(16 * var(--px));
}

.nbs-sw__img {
    position: relative;
    container-type: inline-size;
}

.nbs-sw__img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.nbs-sw__cap {
    position: absolute;
    left: calc(var(--cx) * 1%);
    top: calc(var(--cy) * 1%);
    color: #111;
    font-family: "Yu Gothic Pr6N M", "游ゴシック", YuGothic, sans-serif;
    display: flex;
    flex-wrap: wrap;
    max-width: calc(100% - var(--cx) * 1%);
    font-size: max(10px, 3.6cqw);
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* SP で 10px に大きくなると1行に収まらないので、「カラー/」「色名」「(シームレス)」の区切りでだけ折り返す。
   ブラの段は文字が写真の下端にあるので、折り返した行が切れないよう下の余白を広げる */
@media screen and (max-width: 768px) {
    .nbs-sw__slider[class*="-bra"] {
        padding-bottom: calc(28 * var(--px));
    }
}

/* ---------- 色見本と今回紹介した商品(横のカルーセル。SP は楽天どおり 136px ずつ、PC は1画面に4つ。14_staffcode と同じ) ---------- */
.nbs-sw__carousel,
.nbs-items__carousel {
    position: relative;
}

.nbs-sw__slider,
.nbs-items__slider {
    padding-left: calc(16 * var(--px));
    padding-right: calc(4 * var(--px));
}

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

.nbs-sw__list a,
.nbs-items__list a {
    display: block;
    color: var(--c-text);
    text-decoration: none;
    transition: opacity .3s;
}

.nbs-items__img {
    position: relative;
}

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

.nbs-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;
    word-break: keep-all;
}

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

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

@media screen and (min-width: 769px) {
    .nbs-sw__slider,
    .nbs-items__slider {
        margin-inline: calc(16 * var(--px));
        padding-left: 0;
        padding-right: 0;
    }

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

    .nbs-sw__list li:last-child,
    .nbs-items__list li:last-child {
        margin-right: 0;
    }

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

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

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

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

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

/* ---------- カルーセルの矢印(PCのみ。04_qualityforyou_ep02 の section-product に合わせる) ---------- */
/* 矢印は .swiper の外(.nbs-sw__carousel / .nbs-items__carousel の中)に置く。その方向にスワイプできないときは消す */
:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-prev svg,
:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-next svg {
    display: none !important;
}

:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-prev,
:is(.nbs-sw__carousel, .nbs-items__carousel) .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;
}

:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-prev {
    left: calc(2 * var(--px));
    right: auto;
}

:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-next {
    left: auto;
    right: calc(2 * var(--px));
}

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

:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-prev::before,
:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-prev::after {
    left: 0;
}

:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-next::before,
:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-next::after {
    right: 0;
}

:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-prev::before,
:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-next::before {
    transform: rotate(-40deg);
}

:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-prev::after,
:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-next::after {
    transform: rotate(40deg);
}

:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-disabled,
:is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-lock {
    display: none;
}

@media screen and (max-width: 768px) {
    :is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-prev,
    :is(.nbs-sw__carousel, .nbs-items__carousel) .swiper-button-next {
        display: none;
    }
}

/* ===== 文字入りスライド(写真 + HTMLの文字) scripts/text-slide.mjs で作成 ===== */
.nbs-ts {
    position: relative;
    container-type: inline-size;
}

.nbs-ts > img {
    display: block;
    width: 100%;
    height: auto;
}

.nbs-ts__t {
    --u: calc(100cqw / 375);
    position: absolute;
    left: calc(var(--x) * var(--u));
    top: calc(var(--y) * var(--u));
    margin: 0;
    color: var(--c, #232323);
    font-family: "Yu Gothic Pr6N M", "游ゴシック", YuGothic, sans-serif;
    font-size: max(10px, calc(var(--fs) * var(--u))); /* SPで10px未満にしない(小さい文字は10pxで少し大きくなる) */
    font-feature-settings: normal;
    letter-spacing: calc(var(--ls) * var(--u));
    line-height: 1;
    white-space: nowrap;
}

.nbs-ts__t--b {
    font-family: "Yu Gothic Pr6N B", "游ゴシック", YuGothic, sans-serif;
    font-weight: bold;
}

.nbs-ts__t--d {
    font-family: "Yu Gothic Pr6N D", "游ゴシック", YuGothic, sans-serif;
    font-weight: 600;
}

.nbs-ts__t--en {
    font-family: futura-pt, "Yu Gothic Pr6N M", sans-serif;
}

.nbs-ts__t--i {
    font-style: italic;
}

.nbs-ts__t.nbs-ts__t--en  {
    font-family: "Helvetica Neue", Helvetica, Arial, "Yu Gothic Pr6N M", sans-serif;
}

/* 中央そろえ・右そろえ(--x が中心・右端) */
.nbs-ts__t--c {
    transform: translateX(-50%);
}

.nbs-ts__t--r {
    transform: translateX(-100%);
}

.nbs-ts__t--v {
    writing-mode: vertical-rl;
}

.nbs-ts__t--up {
    text-orientation: upright;
}

/* 詰め(元の画像がかな・句読点を詰めているとき。縦書きは vpal) */
.nbs-ts__t--palt {
    font-feature-settings: "palt";
}

.nbs-ts__t--v.nbs-ts__t--palt {
    font-feature-settings: "vpal";
}

/* 行の中の英数字(360°、1枚 の 1 など)だけ futura-pt */
.nbs-ts__en {
    font-family: futura-pt, "Yu Gothic Pr6N M", sans-serif;
}

/* 傍点 */
.nbs-ts__t em {
    font-style: normal;
    -webkit-text-emphasis: filled dot;
    text-emphasis: filled dot;
}

/* 大きい数字(360°、No.1 など)の字間。広がりすぎないよう em で詰める(SP・PC で同じ見た目。JSON の "tight": true) */
.nbs-ts__t.nbs-ts__t--tight {
    letter-spacing: -0.06em;
}

/* 下線(高さ2px。太い下線は写真から消してこれで引く。JSON の "ul": [x, 幅, y](375基準のスライド上の位置)) */
.nbs-ts__t--ul::after {
    content: "";
    position: absolute;
    left: calc((var(--ul-x) - var(--x)) * var(--u));
    top: calc((var(--ul-y) - var(--y)) * var(--u) - 1px);
    width: calc(var(--ul-w) * var(--u));
    height: 2px;
    background: currentColor;
}

/* 写真の上の白い文字のドロップシャドウ(元の画像に影があるとき。JSON の "shadow": true) */
.nbs-ts__t--shadow {
    text-shadow: calc(1.4 * var(--u)) calc(1.4 * var(--u)) calc(4.5 * var(--u)) rgba(0, 0, 0, 0.3);
}


