@charset "UTF-8";
/* ========================================
   もう悩まない！旅行のインナー・トップスは「コンパクト」で「快適」が正解
   サイズは「375px幅のページ上のpx × var(--px)」(375pxで等倍、800pxで最大)
   正解は楽天ページ(designs/2505_travel/_source/page.png)。MV だけ画像のまま
   写真+文字の図(.trv-ph)の中の位置は、見本の画像(designs/2505_travel/parts/〇〇_text.jpg 1280px)上のpxのまま
   var(--u)(= 表示幅 ÷ 1280)に掛ける
======================================== */
:root {
    --px: min(calc(100vw / 375), calc(800px / 375));
    --c-text: #333333;
}

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

.trv {
    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.75;
    overflow: hidden;
}

.trv img {
    max-width: none;
}

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

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

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

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

.trv-text p + p {
    margin-top: 1.75em;
}

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

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

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

/* ---------- セクション見出し(h2) ---------- */
.trv-sec {
    margin-top: calc(56 * var(--px));
}

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

/* ---------- 図(左右16pxの余白の中に、横幅いっぱい) ---------- */
.trv-fig {
    margin: 0 calc(16 * var(--px));
}

/* ---------- 写真 + HTMLの縦書きの英字(.trv-ph) ----------
   --x / --y / --fs / --ls は見本の画像上のpx。--u は「写真の表示幅 ÷ 画像の横幅」(コンテナクエリ単位 cqw) */
.trv-ph {
    position: relative;
    container-type: inline-size;
    line-height: 1;
}

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

.trv-ph__text {
    margin: 0;
}

.trv-ph__text > span {
    --u: calc(100cqw / var(--iw));
    position: absolute;
    top: calc(var(--y) * var(--u));
    left: calc(var(--x) * var(--u));
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 300;
    font-size: max(10px, calc(var(--fs) * var(--u))); /* SPで10pxより小さくならないように */
    letter-spacing: calc(var(--ls) * var(--u));
    line-height: 1;
    white-space: nowrap;
}

.trv-ph__text > span.is-v {
    writing-mode: vertical-rl;
    word-spacing: -0.14em; /* 「×」の前後のすき間を見本に合わせる */
}

.trv-ph__text--pink > span {
    color: #e0809a;
}

.trv-ph__text--blue > span {
    color: #62a0b6;
}

.trv-ph__text--brown > span {
    color: #b2825a;
}

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

.trv-items__title {
    margin-bottom: calc(36 * var(--px));
    text-align: center;
    font-family: futura-pt, "Futura PT", "Jost", sans-serif;
    font-weight: 400;
    font-size: calc(22 * var(--px));
    line-height: 1.4;
    letter-spacing: 0.04em;
}

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

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

.trv-items__img {
    position: relative;
}

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

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

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

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

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

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

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

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

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

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