@charset "UTF-8";
/* ========================================
   春夏におすすめ！カップ付きウェアで叶えるらくちんオフィスカジュアルスタイル
   サイズは「375px幅のページ上のpx × var(--px)」(375pxで等倍、800pxで最大)
   正解は楽天ページ(designs/2504_officecasual/_source/page.png)。MV だけ画像のまま
   WHAT'S OFFICE CASUAL? とコーデ写真は「文字を消した写真 + 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;
}

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

.oc img {
    max-width: none;
}

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

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

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

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

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

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

/* ---------- セクション(見出し → COORDINATE → コーデ写真 → 本文 → おすすめアイテム) ---------- */
.oc-sec {
    margin-top: calc(40 * var(--px));
}

.oc-sec--intro {
    margin-top: calc(37 * var(--px));
}

.oc-sec--intro + .oc-sec {
    margin-top: calc(47 * var(--px));
}

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

.oc-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) {
    .oc-sec__title {
        margin-bottom: calc(18 * var(--px));
        font-size: calc(16 * var(--px));
    }
}

/* COORDINATE(楽天は文字の画像 kaiyu/coordinate.jpg。futura-pt の HTML の文字にした) */
.oc-coord {
    margin: calc(-2 * var(--px)) 0 calc(37 * var(--px));
    color: #000;
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 400;
    font-size: calc(23.5 * var(--px));
    letter-spacing: calc(0.5 * var(--px));
    line-height: 1;
    text-align: center;
}

/* 写真(画像は元の縦横比の大きさ) */
.oc-photo {
    margin: 0 calc(16 * var(--px));
    aspect-ratio: 750 / 599;
    overflow: hidden;
}

.oc-photo--whats {
    aspect-ratio: 750 / 442;
}

.oc-photo .oc-ts {
    width: 100%;
}

.oc-photo + .oc-photo {
    margin-top: calc(22.5 * var(--px));
}

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

/* ---------- おすすめアイテム ---------- */
.oc-items {
    margin-top: calc(47 * var(--px));
}

.oc-items__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) {
    .oc-items__title {
        margin-bottom: calc(18 * var(--px));
        font-size: calc(16 * var(--px));
    }
}

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

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

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

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

.oc-items__img {
    position: relative;
}

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

.oc-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; /* 長い商品名は単語の途中(スクエアネ/ック)ではなくスペースの位置で折り返す */
}

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

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

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

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

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

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

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

.oc-items__carousel .swiper-button-prev,
.oc-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;
}

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

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

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

.oc-items__carousel .swiper-button-prev::before,
.oc-items__carousel .swiper-button-prev::after {
    left: 0;
}

.oc-items__carousel .swiper-button-next::before,
.oc-items__carousel .swiper-button-next::after {
    right: 0;
}

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

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

.oc-items__carousel .swiper-button-disabled,
.oc-items__carousel .swiper-button-lock {
    display: none;
}

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

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

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

.oc-items__list .oc-items__img .icon-container img.icon--cool {
    margin: 0 auto;
    max-width: 28px;
}

.oc-items__list .oc-items__img .icon-container img.icon--bottom {
    margin-top: 3px;
}

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

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

    .oc-items__list .oc-items__img .icon-container img.icon--cool {
        max-width: 25px;
    }
}

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

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

.oc-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* 下線(高さ2px。太い下線は写真から消してこれで引く。JSON の "ul": [x, 幅, y](375基準のスライド上の位置)) */
.oc-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) */
.oc-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);
}

