@charset "UTF-8";
/* ========================================
   キャミソール？タンクトップ？欲しいデザインが見つかるカップ付きウェア診断
   サイズは「カンプ上のpx × var(--px)」(375pxで等倍、800pxで最大)
   カンプ(楽天の元画像)の換算:01_mv 1280px は横幅いっぱい(375)
     02_sleeveless・05_sleeve 1363px → 343 ÷ 1363(×0.25165)
     03・04・06・07 のバナー 1080px → 343 ÷ 1080(×0.31759)
     08_allitem 1040px → 343 ÷ 1040(×0.32981)
   02〜08 は楽天ページと同じく左右16pxの余白をとった幅343で置く
   01_mv はJPG全体を1枚の画像。02・05 のチャートは写真以外をHTML、バナーは文字を消した写真(14_staffcode と同じ)+文字
======================================== */
:root {
    --px: min(calc(100vw / 375), calc(800px / 375));
    --c-text: #333333;
    --c-banner: #2b2522;
}

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

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

.cps img {
    max-width: none;
}

/* ---------- 冒頭(01_mv はJPG全体を1枚の画像) ---------- */
.cps-mv img {
    display: block;
    width: 100%;
    height: auto;
}

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

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

/* ---------- 本文 ---------- */
.cps-text {
    margin-top: calc(38 * var(--px));
    padding: 0 calc(16 * var(--px));
    font-size: 16px;
    line-height: 1.715; /* 楽天ページと同じ 14px で 24px */
}

.cps-text p + p {
    margin-top: 1.715em;
}

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

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

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

/* ---------- セクション ---------- */
.cps-sec {
    margin-top: calc(31 * var(--px));
}

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

.cps-sec--lineup {
    margin-top: calc(52 * var(--px));
}

/* セクション見出し(h2)「バリエーション豊富なアイテム一覧はこちら」 */
.cps-sec__title {
    margin-bottom: 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) {
    .cps-sec__title {
        margin-bottom: calc(18 * var(--px));
        font-size: calc(16 * var(--px));
    }
}

/* 「アイテム一覧はこちら」のバナー(楽天の cupinwear.jpg) */
.cps-lineup {
    padding: 0 calc(16 * var(--px));
}

.cps-lineup a {
    display: block;
    transition: opacity 0.3s ease;
}

.cps-lineup img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- 02・05:診断チャート ----------
   style 属性の値はカンプ上のpx。--w がカンプの横幅、--h が高さ。表示幅は343なので --u = var(--px) × 343 ÷ --w
   --x / --y:左上の位置、--bw / --bh:箱の大きさ、--cx / --cy:文字の中心(見出し)、--cw:画像の幅
   --fs:文字サイズ、--ls:字間、--bg:箱の色
   矢印と線は SVG(viewBox はカンプと同じ大きさ) */
.cps-chart {
    --u: calc(var(--px) * 343 / var(--w));
    position: relative;
    width: calc(343 * var(--px));
    height: calc(var(--h) * var(--u));
    margin: 0 auto;
    overflow: hidden;
    background: var(--chart-bg);
    color: #222222;
    font-family: "Yu Gothic Pr6N B", "游ゴシック", YuGothic, sans-serif;
    font-weight: bold;
    line-height: 1;
}

.cps-chart--sl {
    --chart-bg: #fcf5e3;
    --chart-band: #faecc7;
    --chart-rule: #6c6d67;
}

.cps-chart--sv {
    --chart-bg: #eff5fa;
    --chart-band: #cfdde8;
    --chart-rule: #6e6966;
}

.cps-chart > *,
.cps-chart__head > * {
    position: absolute;
    top: calc(var(--y, 0) * var(--u));
    left: calc(var(--x, 0) * var(--u));
    margin: 0;
}

.cps-chart > .cps-chart__head {
    display: contents;
}

/* 上の帯と下の線 */
.cps-chart__band {
    width: 100%;
    height: calc(var(--bh) * var(--u));
    background: var(--chart-band);
    border-bottom: calc(2 * var(--u)) solid var(--chart-rule);
}

/* 帯の中の薄い英字(SLEEVELESS など。上が切れている) */
.cps-chart__ghost {
    color: rgba(255, 255, 255, 0.58);
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 500;
    font-size: calc(var(--fs) * var(--u));
    letter-spacing: calc(var(--ls) * var(--u));
    white-space: nowrap;
}

/* 箱(文字は箱の中央) */
.cps-chart__catch,
.cps-chart__start,
.cps-chart__q,
.cps-chart__label,
.cps-chart__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--bw) * var(--u));
    height: calc(var(--bh) * var(--u));
    font-size: calc(var(--fs) * var(--u));
    letter-spacing: calc(var(--ls) * var(--u));
    white-space: nowrap;
    box-sizing: border-box;
    /* --dy:文字だけを上下にずらす量(カンプ上のpx。+で下) */
    padding-top: max(0px, calc(var(--dy, 0) * 2 * var(--u)));
    padding-bottom: max(0px, calc(var(--dy, 0) * -2 * var(--u)));
}

/* カップ付きウェアの定番 / 着回し力抜群なのにらくちん(白い箱) */
.cps-chart__catch {
    background: #ffffff;
    color: #333333;
}

/* キャミソール & タンクトップ(h2。--cx / --cy が文字の中心) */
.cps-chart__head > .cps-chart__title {
    top: calc(var(--cy) * var(--u));
    left: calc(var(--cx) * var(--u));
    transform: translate(-50%, -50%);
    font-size: calc(var(--fs) * var(--u));
    letter-spacing: calc(var(--ls) * var(--u));
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
}

/* START / 質問(角丸の箱。下側に影) */
.cps-chart__start,
.cps-chart__q {
    border-radius: 999px;
    box-shadow: calc(1 * var(--u)) calc(3 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, 0.45);
}

.cps-chart__start {
    background: #bbb4a1;
    color: #ffffff;
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 600;
}

.cps-chart__q {
    background: #ffffff;
}

/* 分かれ道のラベル(キャミソール、ベーシックなど) */
.cps-chart__label {
    background: var(--bg);
    border: calc(2 * var(--u)) solid rgba(255, 255, 255, 0.7);
    border-radius: calc(8 * var(--u));
    color: #4f4a45;
}

/* 写真 */
.cps-chart .cps-chart__img {
    display: block;
    width: calc(var(--cw) * var(--u));
    height: auto;
}

/* 写真の下の商品名の帯(SPで10pxより小さくしないため、文字が大きくなったら <wbr> で折り返し、帯は下に伸びる) */
.cps-chart__bar {
    flex-direction: column;
    /* 帯の下端をカンプの位置に固定し、文字が大きくなったら上(写真の下側)に伸びる */
    top: auto !important;
    bottom: calc((var(--h) - var(--y) - var(--bh)) * var(--u));
    height: auto;
    min-height: calc(var(--bh) * var(--u));
    padding: calc(10 * var(--u)) calc(6 * var(--u)) calc(4 * var(--u));
    background: var(--bg);
    border: calc(2 * var(--u)) solid #ffffff;
    border-radius: calc(18 * var(--u));
    color: #ffffff;
    font-size: max(10px, calc(var(--fs) * var(--u)));
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
}

.cps-chart__bar span {
    display: block;
}

/* PCは折り返さない */
@media screen and (min-width: 769px) {
    .cps-chart__bar {
        white-space: nowrap;
    }

    .cps-chart__bar wbr {
        display: none;
    }
}

.cps-chart__bar-sub {
    margin-bottom: calc(4 * var(--u));
    letter-spacing: calc(-1 * var(--u));
    font-size: max(10px, calc(24 * var(--u)));
}

.cps-chart__bar--sm {
    border-width: calc(1.5 * var(--u));
    border-radius: calc(14 * var(--u));
}

.cps-chart__bar--sm .cps-chart__bar-sub {
    margin-bottom: calc(3 * var(--u));
    font-size: max(10px, calc(23 * var(--u)));
}

/* SPで10pxより小さくしない(ラベルは少し詰める) */
.cps-chart__label {
    font-size: max(10px, calc(var(--fs) * var(--u)));
}

/* SP:商品名の帯は10pxで折り返すので、字間を少し詰める */
@media screen and (max-width: 768px) {
    .cps-chart__label,
    .cps-chart__bar {
        letter-spacing: -0.04em;
    }

    .cps-chart__bar {
        padding: 2px 1px;
        line-height: 1.15;
    }

    .cps-chart__bar-sub {
        margin-bottom: 1px;
        letter-spacing: -0.04em;
    }
}

/* 矢印と線 */
.cps-chart > .cps-chart__lines {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cps-chart__lines line,
.cps-chart__lines path {
    fill: none;
    stroke: #393735;
    stroke-width: 6;
}

/* COMINGSOON の丸(文字は円に沿わせる) */
.cps-chart__soon {
    width: calc(var(--cw) * var(--u));
    height: calc(var(--cw) * var(--u));
}

.cps-chart__soon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cps-chart__soon circle {
    fill: #a6c4da;
}

.cps-chart__soon text {
    fill: #ffffff;
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 500;
    font-size: 40px;
    letter-spacing: 6px;
}

.cps-chart__soon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: max(10px, calc(40 * var(--u)));
    line-height: 1.65;
    text-align: center;
    white-space: nowrap;
}

/* ---------- バナー(文字を消した画像 + 文字。14_staffcode と同じ写真・文字の位置) ---------- */
/* 文字の位置はカンプ(1080px)上の値。バナーごとの中心(x)で指定。縦の位置は4枚とも同じ */
.cps-type {
    margin-top: calc(39 * var(--px));
}

.cps-type + .cps-type {
    margin-top: calc(36 * var(--px));
}

.cps-banner {
    --u: calc(var(--px) * 343 / 1080);
    position: relative;
    width: calc(343 * var(--px));
    margin: 0 auto;
}

.cps-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.cps-banner--cami { --en-x: 312.5; --jp-x: 312.5; }
.cps-banner--tank { --en-x: 772.1; --jp-x: 773; }
.cps-banner--short { --en-x: 753.4; --jp-x: 733; }
.cps-banner--long { --en-x: 291.5; --jp-x: 306; }

.cps-banner__en,
.cps-banner__text {
    position: absolute;
    margin: 0;
    transform: translateX(-50%);
    color: var(--c-banner);
    white-space: nowrap;
    text-align: center;
}

.cps-banner__en {
    top: calc(213.7 * var(--u));
    left: calc(var(--en-x) * var(--u));
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 500;
    font-size: calc(63.9 * var(--u));
    line-height: 1;
    letter-spacing: 0.08em;
    text-indent: 0.08em;
}

.cps-banner__text {
    top: calc(333.5 * var(--u));
    left: calc(var(--jp-x) * var(--u));
    font-family: "Yu Gothic Pr6N B", "游ゴシック", YuGothic, sans-serif;
    font-weight: bold;
    font-size: calc(40.9 * var(--u));
    line-height: calc(69.1 * var(--u));
    letter-spacing: 0.04em;
}

/* ---------- 商品のカルーセル ---------- */
/* Swiper(js/script.js)で横にスワイプ。.cps-items__carousel は PC の矢印の位置の基準 */
.cps-items {
    margin-top: calc(39 * var(--px));
}

.cps-items__carousel {
    position: relative;
}

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

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

.cps-items__list a {
    display: block;
    color: var(--c-text);
    text-decoration: none;
    /* feature.css の a { transition: all } だと画面幅を変えたときに大きさまで動くので opacity だけにする */
    transition: opacity 0.3s ease;
}

.cps-items__img {
    position: relative;
}

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

.cps-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;
    /* 「リブUバッ / ク」のように語の途中で折り返さず、空白か <br> で折り返す */
    word-break: keep-all;
}

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

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

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

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

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

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

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

.cps-items .swiper-button-prev,
.cps-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;
}

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

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

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

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

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

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

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

/* 端まで来た側(.swiper-button-disabled)と、全部が1画面に収まるとき(.swiper-button-lock)は矢印を出さない */
.cps-items .swiper-button-disabled,
.cps-items .swiper-button-lock {
    display: none;
}

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