@charset "UTF-8";
/* ========================================
   夏の猛暑日も快適に！オールシーズン使えるブラトップのおすすめコーデ
   サイズは「375px幅のページ上のpx × var(--px)」(375pxで等倍、800pxで最大)
   正解は楽天ページ(designs/2506_summercode/_source/page.png)。MV だけ画像のまま
   バナー(.sc-ph)の中の位置は、見本の画像(designs/2506_summercode/parts/〇〇_text.jpg、1280×720)上のpxのまま
   var(--u)(= 表示幅 ÷ 画像の横幅 --iw)に掛ける
======================================== */
:root {
    --px: min(calc(100vw / 375), calc(800px / 375));
    --c-text: #333333;
}

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

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

.sc img {
    max-width: none;
}

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

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

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

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

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

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

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

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

/* ---------- セクション(バナー → 本文 → コーデ写真 → PICKUP ITEM) ---------- */
.sc-sec {
    margin-top: calc(30 * var(--px));
}

/* ---------- バナー:写真 + HTMLの帯・文字(.sc-ph) ----------
   --x / --y / --w / --h / --fs / --ls は見本の画像上のpx。--u は「写真の表示幅 ÷ 画像の横幅」(コンテナクエリ単位 cqw) */
.sc-ph {
    position: relative;
    margin: 0 calc(16 * var(--px));
    container-type: inline-size;
    line-height: 1;
}

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

.sc-ph__t,
.sc-ph__box {
    --u: calc(100cqw / var(--iw));
    position: absolute;
    top: calc(var(--y) * var(--u));
    left: calc(var(--x) * var(--u));
    margin: 0;
}

.sc-ph__t {
    font-size: max(10px, calc(var(--fs) * var(--u))); /* SPで10pxより小さくならないように */
    letter-spacing: calc(var(--ls) * var(--u));
    line-height: 1;
    white-space: nowrap;
}

.sc-ph__box {
    width: calc(var(--w) * var(--u));
    height: calc(var(--h) * var(--u));
}

/* 白い角丸の帯(楽天の画像では写真がうっすら透ける白) */
.sc-ph__pill {
    border-radius: calc(29.5 * var(--u));
    background: rgba(255, 255, 255, 0.9);
}

/* 白い帯の中の文字:--x は帯の中央(帯 342〜938 の真ん中 = 640)。SPで10pxに大きくなっても左右均等に広がるよう中央基準にする(11/17) */
.sc-ph__ja {
    transform: translateX(-50%);
    color: #3a2827;
    font-family: "Yu Gothic Pr6N D", "游ゴシック", YuGothic, sans-serif;
    font-weight: 600;
    font-feature-settings: "palt";
}

.sc-ph__en {
    color: #fff;
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 400;
}

/* ---------- コーデ写真(2列の格子 + アイテム名) ---------- */
.sc-code {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(16 * var(--px)) calc(12 * var(--px));
    margin-top: calc(32 * var(--px));
    padding: 0 calc(16 * var(--px));
}

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

.sc-code a:hover {
    opacity: 0.7;
}

.sc-code img {
    display: block;
    width: 100%;
    height: auto;
}

.sc-code__name {
    display: block;
    margin-top: calc(1 * var(--px));
    padding-left: calc(1 * var(--px));
    font-size: max(10px, calc(11.5 * var(--px)));
    letter-spacing: 0;
    line-height: 1.4;
}

/* ---------- PICKUP ITEM(商品の一覧) ---------- */
.sc-items {
    margin-top: calc(32 * var(--px));
}

.sc-items__title {
    margin-bottom: calc(32 * var(--px));
    text-align: center;
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    color: #111;
    font-weight: 400;
    font-size: calc(26.7 * var(--px));
    line-height: 1;
    letter-spacing: 0.062em;
}

.sc-items__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(24 * var(--px)) calc(12 * var(--px));
    padding: 0 calc(16 * var(--px));
}

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

.sc-items__img {
    position: relative;
}

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

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

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

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

/* PCは4列(rules.md の「商品の一覧」) */
@media screen and (min-width: 769px) {
    .sc-items__list {
        grid-template-columns: repeat(4, 1fr);
        gap: calc(20 * var(--px)) calc(6 * var(--px));
    }

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

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

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

@media screen and (max-width: 768px) {
    .sc-items__img .icon-container {
        top: -2px;
        right: 2px;
    }

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

/* ---------- まとめ ---------- */
.sc-text--end {
    margin-top: calc(34 * var(--px));
}

/* SP:「お出かけできる カップ付きウェア」が10pxに大きくなる分、字間を詰めて白い帯の中に収める(11/17) */
@media screen and (max-width: 768px) {
    .sc-ph__ja {
        letter-spacing: 0.02em;
    }
}
