@charset "UTF-8";

/* ========================================
 * 1. 共通設定 (Common & Reset)
 * ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* WebP 優先のために <img> を <picture> で包んでいる。包む前と同じ見え方にする */
picture {
    display: contents;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.wrapper {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    min-height: unset;
}

/* ========================================
 * 2. セクション1: ヘッダー・ナビゲーション
 * ======================================== */
.site-header {
    padding: 20px;
    text-align: center;
}

.header-accessory {
    margin-top: -2px;
    text-align: center;
}

/* カウントダウンタイマー */
#countdown {
    position: relative;
    padding: 0 20px;
    color: #020202;
    background-color: #fff;
}

.countdown-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(2, 2, 2, 0.5);
}

.countdown-title {
    font-size: 1.2rem;
    line-height: 1.5;
    white-space: nowrap;
}

/* 先行発売の告知と限定ストア導線（2027で追加）。XD: 告知 12px #6E6E6E、リンク 13px 通常の太さ */
.presale {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
}

.presale-note {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #6e6e6e;
}

.presale-link {
    flex-shrink: 0;
    font-size: 1.3rem;
    color: #020202;
    text-decoration: underline;
    white-space: nowrap;
}

.timer {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

/* 360px未満（iPhone SE 初代など）ではタイトルとタイマーが1行に収まらないので2段にする */
@media (max-width: 359px) {
    .countdown-inner {
        flex-wrap: wrap;
    }

    .timer {
        margin-left: auto;
    }
}

.timer-unit {
    display: flex;
    align-items: baseline;
}

.time-number {
    margin-right: 4px;
    font-size: 2.4rem;
    font-weight: bold;
}

.time-label {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 2.4rem;
}

/* メインビジュアル */
#kv {
    position: relative;
    overflow: hidden;
    text-align: center;
}

#kv h1 {
    margin: 0;
    font-size: 100%;
    font-weight: normal;
}

.kv-image {
    position: relative;
    left: 50%;
    margin-bottom: 0;
    transform: translateX(-50%);
}

/* アンカーリンクナビゲーション (オリジナル) */
#sticky-nav-origin {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 550px;
    margin-top: calc(-116.5 / 375 * 100vw);
    margin-right: auto;
    margin-bottom: calc(116.5 / 375 * 100vw - var(--lantern-h));
    margin-left: auto;
    z-index: 40;
    transform: translateX(0);
}

#sticky-nav-origin ul {
    display: flex;
    align-items: center;
    justify-content: center;
}

#sticky-nav-origin li {
    position: relative;
}

#sticky-nav-origin li+li {
    margin-left: var(--lantern-overlap);
}

#sticky-nav-origin li:nth-child(1) {
    z-index: 4;
}

#sticky-nav-origin li:nth-child(2) {
    z-index: 3;
}

#sticky-nav-origin li:nth-child(3) {
    z-index: 2;
}

#sticky-nav-origin li:nth-child(4) {
    z-index: 1;
}

#sticky-nav-origin li:nth-child(5) {
    z-index: 0;
}

/* アンカーナビのランタン。XD(2027) は SP 80×56.2・PC 102.5×72、隣と 1/16 幅ぶん重なる。
   5つ並べた全幅 = 4.75 × 幅 なので、画面幅から逆算して両端が切れないようにする。
   追従ナビ(#fixed-nav)は .fukubukuro2027 の外にあるので、両方に定義する */
.fukubukuro2027,
#fixed-nav {
    --lantern-w: min(102.5px, calc((100vw - 8px) / 4.75));
    --lantern-h: calc(var(--lantern-w) * 0.7025);
    --lantern-overlap: calc(var(--lantern-w) * -0.0625);
}

.nav-anchor {
    display: inline-block;
    width: var(--lantern-w);
    height: var(--lantern-h);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
}

.nav-anchor:hover {
    position: relative;
    z-index: 5;
    transform: scale(1.05) translateZ(0);
}

.nav-gokuyume {
    background-image: url('/cms/img/fukubukuro2027/lantern-gokuyume.png?v=v8');
}

.nav-matsu {
    background-image: url('/cms/img/fukubukuro2027/lantern-matsu.png?v=v8');
}

.nav-take {
    background-image: url('/cms/img/fukubukuro2027/lantern-take.png?v=v8');
}

.nav-ume {
    background-image: url('/cms/img/fukubukuro2027/lantern-ume.png?v=v8');
}

.nav-comparison {
    background-image: url('/cms/img/fukubukuro2027/lantern-comparison.png?v=v8');
}


/* ========================================
 * 3. 商品セット共通スタイル (PRODUCT SETS)
 * ======================================== */

.product-set {
    position: relative;
    margin-top: 0;
    padding: 40px 20px 48px;
    overflow: hidden;
    text-align: center;
}

.product-info {
    position: relative;
    z-index: 2;
}

.product-set h2 {
    margin-bottom: 20px;
    font-size: 100%;
    font-weight: normal;
}

.product-set .product-title {
    margin: 0 auto;
    height: auto;
}

/* XD: セット上端から写真枠まで 104px（キャッチ2行の下 13px） */
.catchphrase {
    margin-bottom: 13px;
}


.product-set .product-image {
    position: relative;
    margin-bottom: 0;
}

/* 完売御礼。販売終了時に body.is-sold-out で表示する */
.soldout-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72%;
    max-width: 380px;
    /* #set-gokuyume .product-image img { transform: translateX(0) } がID指定で勝つため !important で中央寄せを守る */
    transform: translate(-50%, -50%) rotate(-6deg) !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

body.is-sold-out .soldout-badge {
    display: block;
}

/* 販売終了時はカウントダウンと先行発売の導線を出さない */
body.is-sold-out #countdown {
    display: none;
}

body.is-sold-out .sale-ended {
    display: block;
    padding: 12px 20px;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    color: #C8102E;
    background-color: #fff;
}

.product-set .product-price {
    font-size: 3.6rem;
    font-weight: bold;
    color: #000;
}

.product-set .add-to-cart-btn {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 70px;
    margin-bottom: 40px;
    padding: 0 40px;
    overflow: hidden;
    color: #000;
    text-decoration: none;
    background-color: #ffffff;
    border: 4px solid #000;
    border-radius: 50px;
    transition: border-width 0.2s ease;
}

/* SP・タブレット表示：タップ時に線が内側に太くなる */
.product-set .add-to-cart-btn:active {
    border-width: 6px;
}

/* PC表示：マウスオン時に線が内側に太くなる */
@media (min-width: 1024px) {
    .product-set .add-to-cart-btn:hover {
        border-width: 6px;
    }

    /* PC表示では:activeを無効化 */
    .product-set .add-to-cart-btn:active {
        border-width: 4px;
    }
}

.btn-text {
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: bold;
    white-space: nowrap;
}

/* カートボタンといいねボタンの横並び（2027で追加） */
/* PC の右カラムは order で「本数 → 価格 → カート」に並べている */
.price-and-cartbtn > .cart-row {
    order: 3;
}

/* 2026 の PC 用 CSS がカートボタンに order:3 を付けているので、いいねはその後ろへ */
.cart-row .like-btn {
    order: 4;
}

/* XD: カートボタンの段から内容リストまで 20px */
.cart-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* 並びの余白は .cart-row 側で持つ */
.cart-row .add-to-cart-btn {
    margin-bottom: 0;
}

.like-btn {
    display: flex;
    position: relative;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    gap: 3px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* 件数の吹き出し。XDの「合体 4」に合わせて 39×29・角丸12px・線なしの白。
   下辺の中央に 6.2×4 の角（しっぽ）を付ける */
.like-count {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    height: 29px;
    padding: 0 8px;
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    color: #000;
    background-color: #fff;
    border-radius: 12px;
}

.like-count::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 4px solid #fff;
    border-right: 3.1px solid transparent;
    border-left: 3.1px solid transparent;
    transform: translateX(-50%);
}

/* 吹き出しのしっぽ(4px)ぶんだけ間隔を詰めて、XDの重なりに合わせる */
.like-btn {
    gap: 7px;
}

.like-icon {
    width: 27px;
    height: 27px;
    fill: #000;
    transition: transform 0.15s ease;
}

.like-btn:active .like-icon {
    transform: scale(0.9);
}

/* ── いいねのエフェクト ──────────────────────────────
   LPの意匠（黄色・橙・雲・「福」）に寄せて、
   ビールの泡が立ち上るイメージで「福」と粒を飛ばす */
.like-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.like-particle {
    position: absolute;
    top: 0;
    left: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    animation: like-float 900ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.like-particle.is-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* たまに出る「大吉」。他の粒より大きく、白フチで背景から浮かせる */
.like-particle.is-rare {
    font-size: 2.0rem;
    color: #E5601F;
    text-shadow:
        1px 1px 0 #fff, -1px 1px 0 #fff,
        1px -1px 0 #fff, -1px -1px 0 #fff;
    animation-duration: 1150ms;
}

@keyframes like-float {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translate(calc(-50% + var(--like-dx)), calc(-50% + var(--like-dy)))
            scale(var(--like-scale)) rotate(var(--like-rotate));
    }
}

/* 押した瞬間のサムズアップの跳ね */
.like-btn.is-pop .like-icon {
    animation: like-pop 520ms cubic-bezier(0.34, 1.8, 0.4, 1);
}

@keyframes like-pop {
    0% {
        transform: scale(1) rotate(0deg);
    }

    30% {
        transform: scale(1.45) rotate(-12deg);
    }

    60% {
        transform: scale(0.92) rotate(6deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* 数字が増えたことを分かりやすく */
.like-btn.is-pop .like-count {
    animation: like-bump 520ms ease-out;
}

@keyframes like-bump {
    0% {
        transform: translateY(0);
        background-color: #fff;
    }

    35% {
        transform: translateY(-6px);
        background-color: #F8E133;
    }

    100% {
        transform: translateY(0);
        background-color: #fff;
    }
}

/* アニメーションを控える設定の環境では動かさない */
@media (prefers-reduced-motion: reduce) {

    .like-btn.is-pop .like-icon,
    .like-btn.is-pop .like-count,
    .like-particle {
        animation: none;
    }

    .like-particle {
        display: none;
    }
}

.btn-wave {
    display: none;
    position: absolute;
    top: -1%;
    left: 50%;
    width: 3000%;
    height: 3000%;
    z-index: 1;
    fill: #f8e132;
    animation: wave-animation 35s linear infinite;
    transform-origin: center center;
}

@keyframes wave-animation {
    0% {
        transform: translateX(calc(-50% + 2.5px)) translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateX(calc(-50% + 0px)) translateY(2.5px) rotate(-90deg);
    }

    50% {
        transform: translateX(calc(-50% - 2.5px)) translateY(0px) rotate(-180deg);
    }

    75% {
        transform: translateX(calc(-50% + 0px)) translateY(-2.5px) rotate(-270deg);
    }

    100% {
        transform: translateX(calc(-50% + 2.5px)) translateY(0px) rotate(-360deg);
    }
}

/* お客様レビュー共通（2027でスタッフコメントから変更。紹介するスタッフの顔写真と名前を添える） */
.review-comment {
    position: relative;
    z-index: 3;
    margin-top: 30px;
    padding: 34px 17px 20px 20px;
    font-size: 1.2rem;
    color: #333;
    background-color: #E5BD65;
    border: #fff 1px solid;
    border-radius: 20px;
}

.review-label {
    /* 2026 の「スタッフより」と同じ手書き風の輪郭。文字数がスタッフ名で変わるので、
       輪郭のSVGを文字幅に合わせて伸ばす（白い縁の太さは変わらない） */
    display: inline-flex;
    position: absolute;
    top: -18px;
    left: 12px;
    align-items: center;
    height: 38px;
    padding: 2px 20px 0;
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    color: #333;
    white-space: nowrap;
    background: url('/cms/img/fukubukuro2027/label_staff_wavy.svg?v=v8') no-repeat center / 100% 100%;
}

.review-comment-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 3px;
    text-align: left;
}

/* 2027: 「スタッフ◯◯が紹介！お客様の声」。紹介するスタッフの顔写真を添える */
.review-staff {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
}

/* 2026 と同じく、顔写真の後ろに丸い月（黄色の円）。2027 の写真は切り抜きなので CSS で敷く */
.review-staff-image {
    width: 66px;
    height: 66px;
    margin-bottom: 3px;
    object-fit: cover;
    background-color: #f8e133;
    border-radius: 50%;
}

.review-staff-name {
    font-size: 1.1rem;
    color: #333;
    white-space: nowrap;
}


.review-headline {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

/* 2027: キャッチコピーを画像からテキストに変更（原稿が年ごとに変わるため）
   XD: Logo Arl Std Bold 16px / 白、強調部分は4セット共通で #7328C7 */
.catchphrase-text {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.6;
    color: #fff;
    text-align: center;
}

.catchphrase-text .catchphrase-em {
    color: #7328C7;
}

/* SP は2行、PC は全角スペースで区切って1行（XD 1002。1001 までは「／」） */
.catch-sep {
    display: block;
}

@media (min-width: 1024px) {
    .catch-sep {
        display: inline;
    }

    .catch-sep::before {
        content: "\3000";
    }

    /* PC はタイトルを大きく（XD）。SP 用の ID 指定の幅をここで上書きする */
    #set-gokuyume .product-title {
        width: 236px;
    }

    #set-matsu .product-title,
    #set-take .product-title,
    #set-ume .product-title {
        width: 158px;
    }
}

/* 素材が未支給の商品画像。枠だけ出して「無い」ことを見せる */
.is-missing-asset {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    font-size: 1.1rem;
    color: #5f5747;
    background-color: #fffbe9;
    border: 2px dashed #c9a227;
    border-radius: 12px;
}

.comment-body {
    margin-bottom: 0;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* 価格・詳細共通 */
.set-summary {
    margin-bottom: 5px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
}

.price-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 24px;
}

.price-details {
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: left;
}

/* 元のセレクタ (SP & Default) */
.set-details-list .list-item-box {
    margin-bottom: 20px;
    padding: 0 5px;
}

.set-details-list .list-item-box p {
    margin: 0;
    line-height: 1.5;
}

.set-details-list .list-item-box p:first-child {
    margin-bottom: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 1.2rem;
    font-weight: normal;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
}

.set-details-list .list-item-box p:not(:first-child) {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
    color: #000;
}

/* 背景装飾共通 */
.product-set::before,
.product-set::after {
    content: '';
    position: absolute;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: contain;
}

.product-set::before {
    top: 120px;
    left: -55px;
    width: 191.7px;
    height: 96.53px;
    background-image: url('/cms/img/fukubukuro2027/cloud_background_left.png?v=v8');
}

.product-set::after {
    top: 60px;
    right: -68px;
    width: 160px;
    height: 107px;
    background-image: url('/cms/img/fukubukuro2027/cloud_background_right.png?v=v8');
}

/* XD(1002): 雲の塗りはセットごとに違う（極夢 #E6BE64 / 松 #65A1A8 / 竹 #63B27D / 梅 #E59999）。
   色違いは tools/tint_clouds.py で極夢用から作る */
#set-matsu.product-set::before {
    background-image: url('/cms/img/fukubukuro2027/cloud_background_left_matsu.png?v=v8');
}

#set-matsu.product-set::after {
    background-image: url('/cms/img/fukubukuro2027/cloud_background_right_matsu.png?v=v8');
}

#set-take.product-set::before {
    background-image: url('/cms/img/fukubukuro2027/cloud_background_left_take.png?v=v8');
}

#set-take.product-set::after {
    background-image: url('/cms/img/fukubukuro2027/cloud_background_right_take.png?v=v8');
}

#set-ume.product-set::before {
    background-image: url('/cms/img/fukubukuro2027/cloud_background_left_ume.png?v=v8');
}

#set-ume.product-set::after {
    background-image: url('/cms/img/fukubukuro2027/cloud_background_right_ume.png?v=v8');
}

/* アニメーション雲共通 */
.anim-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: hidden;
    pointer-events: none;
}

.anim-cloud {
    position: absolute;
    max-width: none;
    opacity: 1;
    transition: opacity 3s, transform 3s;
}

.cloud-1 {
    top: 80px;
    left: -150px;
    z-index: 3;
    width: 1132px;
    height: 303.72px;
    transform: translateX(-5%);
}

.cloud-2 {
    top: 330px;
    right: -100px;
    left: auto;
    z-index: 2;
    width: 265.37px;
    height: 172.44px;
    transform: translateX(-5%);
}

.cloud-3 {
    top: 338px;
    bottom: auto;
    left: -180px;
    right: auto;
    z-index: 1;
    width: 374.18px;
    height: 166.36px;
    transform: translateX(5%);
}

.anim-clouds.is-animated {
    pointer-events: none;
}

.anim-clouds.is-animated .cloud-1 {
    opacity: 0;
    transform: translateX(150%);
}

.anim-clouds.is-animated .cloud-2 {
    opacity: 0;
    transform: translateX(150%);
}

.anim-clouds.is-animated .cloud-3 {
    opacity: 0;
    transform: translateX(-150%);
}


/* ========================================
 * 4. 商品セット個別スタイル (SP-Specific)
 * ======================================== */

/* 4.1 商品セット背景色設定 */
#set-gokuyume {
    background-color: #DBC837;
    margin-top: 9px;
    position: relative;
    z-index: 50;
}

#set-matsu {
    /* XD 2027: FV をオレンジにしたため松はティールに変更（2025-09 ヤッホー様コメント） */
    background-color: #2FC1B5;
}

#set-take {
    background-color: #2FC15E;
}

#set-ume {
    background-color: #FC9393;
    background-image: url('/cms/img/fukubukuro2027/set_section_accessary.png?v=v8');
    background-repeat: no-repeat;
    background-position: 0 bottom;
    padding: 40px 20px 160px;
    background-size: contain;
}


/* 4.2 松・竹・梅セット共通スタイル */
#set-matsu .product-catchphrase,
#set-take .product-catchphrase,

#set-matsu .product-title,
#set-take .product-title,
#set-ume .product-title {
    height: auto;
    transform: translateX(0);
}

#set-matsu .product-image,
#set-take .product-image {
    height: auto;
}

/* 4.3 極夢セット (GOKUYUME) 個別調整 */
#set-gokuyume .product-title {
    width: 153px;
    margin: 0 auto;
    transform: none;
}



#set-gokuyume .set-details-list {
    margin-top: 0;
}

#set-gokuyume .set-summary {
    margin-top: 0;
}

/* 4.3 極夢セット (GOKUYUME) 個別調整 */

#set-matsu .product-title {
    width: 102.39px;
}


/* 竹セット (TAKE) - 独自調整 */

#set-take .product-title {
    width: 102.33px;
}


/* 梅セット (UME) - 独自調整 */

#set-ume .product-title {
    width: 102.87px;
    height: auto;
    transform: translateX(0);
}



/* 2027: セット写真は XD の写真枠(375×375)をそのまま全幅で表示し、タイトルを枠の上に重ねる。
   こうすると缶・グッズの大きさと位置が XD と一致する。--title-top は XD 上の枠内 y 座標(px) */
#set-gokuyume { --title-top: 29; }
#set-matsu, #set-take, #set-ume { --title-top: 24; }

@media (max-width: 1023px) {
    .product-set .left-column {
        position: relative;
    }

    .product-set .product-title-wrapper {
        position: absolute;
        top: calc(var(--title-top) / 375 * 100vw);
        right: 0;
        left: 0;
        z-index: 2;
        margin: 0;
    }

    /* XD: 写真枠の下端から本数まで 24px */
    .product-set .product-image {
        margin: 0 -20px 24px;
    }

    .product-set .product-image img:not(.soldout-badge) {
        display: block;
        width: 100%;
    }
}

/* ========================================
 * 5. 詳細・その他セクション
 * ======================================== */

/* 5.1 共通セクションスタイル */
#details,
#notes {
    padding: 50px 20px;
    background-color: #fff;
}

/* 5.2 詳細セクション (DETAILS) */
/* ========================================
 * 配送箱・よな里新聞（2027で新規）
 * ======================================== */
#delivery-box {
    padding: 40px 20px 48px;
    background-color: #f7f7f7;
    text-align: center;
}

.delivery-box-title {
    margin-bottom: 20px;
    font-size: 2.4rem;
    font-weight: bold;
    color: #000;
}

.delivery-box-media {
    margin-bottom: 20px;
}

.delivery-box-image {
    max-width: 720px;
    cursor: pointer;
}

.delivery-box-text {
    margin-bottom: 14px;
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: left;
}

/* 素材・原稿の支給待ちであることが一目で分かるようにする */
.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    margin-bottom: 20px;
    padding: 20px;
    font-size: 1.3rem;
    color: #5f5747;
    background-color: #fffbe9;
    border: 2px dashed #c9a227;
    border-radius: 12px;
}

/* ========================================
 * 昨年度購入者のレビュー（2027で新規）
 * ======================================== */
#reviews {
    padding: 40px 20px 56px;
    background-color: #fff;
}

.reviews-title {
    margin-bottom: 20px;
    font-size: 3.0rem;
    font-weight: bold;
    line-height: 1.3;
    color: #000;
}

.reviews-title-sub {
    display: block;
    font-size: 1.8rem;
}

/* 件数・星の分布・一覧は ReviCo が描く（末尾「ReviCo」ブロック） */

/* ========================================
 * セット比較表（2027で新規）
 * ======================================== */
.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
}

#comparison {
    padding: 40px 0 48px;
    background-color: #fff;
}

.comparison-title {
    margin-bottom: 20px;
    font-size: 2.4rem;
    font-weight: bold;
    color: #000;
    text-align: center;
}

/* ── XD(2027)の比較表 ──────────────────────────────
   列 204px・セル背景 #F7F7F8・セルの間は 2px（列は 4px）の白、行見出し列は #CECECE。
   SP は表だけを横スクロールし、行見出しは固定。右端に「›」のヒントを出す */
.comparison-frame {
    position: relative;
}

/* 左端は XD どおり 20px あけ、そこを境に表を切る（padding だと固定した行見出しの左に
   スクロールした中身が透けて見えるため、余白は margin で取る） */
.comparison-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 20px;
}

.comparison-table {
    min-width: calc(56px + 204px * 4 + 4px * 4);
    border-collapse: separate;
    border-spacing: 4px 2px;
    margin: 0 -4px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #000;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 8px 10px;
    vertical-align: middle;
    background-color: #F7F7F8;
}

.comparison-table tbody th[scope="row"],
.comparison-corner {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 56px;
    min-width: 56px;
    padding: 8px 4px;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    background-color: #CECECE;
}

.comparison-corner {
    background-color: #CECECE;
}

/* XD: 金額だけ Bold 16px、注記は 12px で続ける */
.cmp-price {
    font-size: 1.6rem;
    font-weight: bold;
}

.comparison-table thead th {
    height: 38px;
    padding: 0 10px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.cmp-head--gokuyume { color: #7328C9 !important; background-color: #DBC837 !important; }
.cmp-head--matsu { background-color: #11AEB4 !important; }
.cmp-head--take { background-color: #009630 !important; }
.cmp-head--ume { background-color: #EF5D5D !important; }

/* 中身は上寄せ（行見出しの th は中央のまま）。文字量がセットで違っても書き出しが揃う */
.comparison-table tbody td {
    width: 204px;
    min-width: 204px;
    vertical-align: top;
}

.comparison-media-row td {
    height: 184px;
    padding: 0;
}

.comparison-media-row img {
    display: block;
    width: 100%;
    height: auto;
}

.comparison-big-row td {
    height: 40px;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
}

.comparison-price-row td {
    text-align: center;
}

.comparison-cart-row td {
    height: 76px;
    text-align: center;
}

/* XD: ピル型 178×46、Bold 14px。販売前（メルマガ登録）は白抜き、
   販売開始後（カートに追加）は #F8E132。各セットのボタンの「白→黄の波」と揃える */
.comparison-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 178px;
    max-width: 100%;
    min-height: 46px;
    padding: 6px 12px;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.3;
    color: #000;
    text-align: center;
    background-color: #fff;
    border: 3px solid #000;
    border-radius: 100px;
    transition: border-width 0.2s ease;
}

.comparison-cart-btn.is-cart-open {
    background-color: #F8E132;
}

.comparison-cart-btn:active {
    border-width: 5px;
}

/* 横スクロールのヒント。XD: 白丸＋影、紺の › */
.comparison-hint {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    background-color: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
}

.comparison-hint::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #182341;
    border-right: 2px solid #182341;
    transform: translate(-65%, -50%) rotate(45deg);
}

.comparison-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

#details {
    background-color: #f7f7f7;
    text-align: center;
    background-image: url('/cms/img/fukubukuro2027/set_section_accessary2.png?v=v8');
    background-repeat: no-repeat;
    background-position: 0 bottom;
    padding: 40px 20px 160px;
    background-size: contain;
}

.detail-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.details-copy-wrapper {
    margin-bottom: 12px;
    text-align: center;
    padding: 0 20px;
}

/* XD: RodinNTLG Pro B 16px / 行間24px / 黒 / 中央。画像からテキストに変更 */
.details-copy-text {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.5;
    color: #000;
}


.details-main-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #000;
    position: relative;
    margin-bottom: 40px;
}

/* カテゴリタイトル */
.beer-category-title,
.goods-category-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #189C00;
    padding: 4px 0;
    display: inline-block;
    margin: 0 auto 20px;
    text-align: center;
    position: relative;
    border-top: #189C00 1px solid;
    border-bottom: #189C00 1px solid;
}

/* 5.3 限定醸造ビール */
.limited-beer-wrapper {
    text-align: center;
}

.product-cards-container {
    display: block;
    overflow-x: visible;
    padding-bottom: 0;
    text-align: center;
    margin-top: -40px;
}

.product-card {
    flex-shrink: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 20px 20px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    text-align: center;
    position: relative;
    overflow: visible;
    display: block;
}

.product-card:last-child {
    margin-bottom: 0;
}

.product-image-container {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    z-index: 1;
}

/* 背景の放射状の点線をproduct-cardに設定 */
.product-card::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 100vw;
    height: 100vw;
    background-image: url('/cms/img/fukubukuro2027/product_background.png?v=v8');
    background-size: contain;
    /* coverではなくcontainで比率維持 */
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    opacity: 1;
    /* 適度な透明度 */
    z-index: 0;
    pointer-events: none;
}

.product-image-container img {
    object-fit: contain;
    z-index: 2;
    max-height: 50%;
}

/* XD: 缶＋グラスの合成で約150×164px（SP）。書き出しは3倍なので幅で指定する */
.limited-product-image {
    width: 150px;
    max-width: 40%;
    height: auto;
}

/* XD: 画像(146×163)の右端から5px、上端から159pxの位置に 64×33 の「新年限定！」吹き出し */
.new-year-badge {
    position: absolute;
    top: calc(40px + 159 / 163 * 167px);
    left: calc(50% + 78px);
    z-index: 3;
    width: 64px;
    height: auto;
}

/* テキスト要素を中央寄せに調整 */
.product-card>div {
    text-align: center;
    position: relative;
    z-index: 2;
}

.product-name--wrap {
    position: relative;
    width: max-content;
    margin-inline: auto;
}


/* 商品名・サブタイトル共通スタイル */
.product-name,
.product-subtitle {
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.product-name {
    font-size: 2.4rem;
    margin: 32px 0 16px;
}

.product-subtitle {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.product-details {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
    text-align: center;
}

.product-details-extra {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.product-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.link-text {
    margin-top: 0;
    margin-bottom: 0;
    clear: both;
    text-align: right;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.link-text a {
    font-size: 1.3rem;
    color: #000;
    text-decoration: underline;
}

/* 5.4 限定グッズ */
.limited-goods-wrapper {
    margin-top: 80px;
}

.goods-items-container {
    display: flex;
    flex-direction: column;
}

.goods-item {
    padding: 20px 0;
    text-align: left;
}

.goods-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: #000;
    padding-bottom: 8px;
    margin: 0 0 10px 0;
    text-align: center;
}



/* グッズカルーセル (横スクロール) */
.goods-carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: scroll;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    max-width: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.goods-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    transition: transform 0.3s ease;
}

/* XD: 1枚 335px（375px 画面で左右20px）、次の写真が右端に覗く */
.carousel-track .slick-slide {
    width: min(335px, calc(100vw - 40px));
    margin: 0 10px 0 0;
}

.goods-carousel .slick-list {
    padding-left: 20px;
}



.carousel-track.slick-initialized {
    display: block;
}

.carousel-track .slick-track {
    display: flex;
}

.carousel-slide {
    flex-shrink: 0;
    height: auto;
    display: inline-block;
    border-radius: 8px;
    position: relative;
}

/* XD: 写真は黄色の太枠・角丸12px・薄い影、左上に「福」の判子 */
.carousel-slide img,
.delivery-box-image {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    border: 4px solid #F8E132;
    border-radius: 12px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16);
    position: relative;
    z-index: 2;
}

.carousel-slide::before,
.delivery-box-media::before {
    content: "福";
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    width: 20px;
    height: 20px;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 1.3rem;
    line-height: 20px;
    color: #EABF4C;
    text-align: center;
    background-color: #fff;
    border: 0.6px solid #EABF4C;
    border-radius: 50%;
    pointer-events: none;
}

.delivery-box-media {
    position: relative;
}

.carousel-btn,
.slick-prev,
.slick-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: normal;
    font-family: 'Arial';
}

.carousel-btn:hover,
.slick-prev:hover,
.slick-next:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev,
.slick-prev {
    left: 10px;
}

.carousel-btn-next,
.slick-next {
    right: 10px;
}

/* Slick.jsのデフォルトスタイルをリセット */
.slick-prev:before,
.slick-next:before {
    display: none;
}

/* カルーセル内のキャプション */
.slide-caption {
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 1.3rem;
    line-height: 1.5;
    text-align: left;
    padding: 8px 16px;
    color: #333;
    z-index: 3;
    white-space: normal;
}

/* アーティスト情報 */

/* 5.5 その他逸品 */
.core-products-wrapper {
    margin: 60px 0;
}

.core-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    justify-items: center;
    padding-top: 20px;
}

.small-product-card {
    background-color: #fff;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    position: relative;
    min-height: 330px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.small-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.carousel-slide img:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.small-product-image {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    border-radius: 8px;
}

.small-product-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
    padding: 0 13px;
    text-align: left;
}

.small-product-style {
    margin-bottom: 8px;
    padding: 0 13px;
    font-size: 1.1rem;
    color: #888;
    text-align: left;
}

.small-product-description {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 16px;
    text-align: left;
    padding: 0 13px;
}

.small-product-description.note {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.3);
}

/* 定番ビールの特徴バッジ（王道・驚愕の苦味 など）は XD(1002) で削除（トルツメ） */
.small-product-media {
    position: relative;
}

.small-product-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60px;
    height: 60px;
    background-color: #f8e132;
    background-image: url('/cms/img/fukubukuro2027/ionic-ios-arrow-forward.png?v=v8');
    background-position: 18px 14px;
    background-repeat: no-repeat;
    border-radius: 50%;
}

/* 5.6 注意事項 */
.notes-wrap {
    background-color: #F6F7F7;
    padding: 48px 20px;
}

.notes-wrap .section-title {
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    color: #000;
}

.notes-wrap .notes-content {
    margin-top: 36px;
}

.note-heading {
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: bold;
}

.note-list {
    font-size: 12px;
    padding-left: 1em;
    text-indent: -1em;
}

.note-list li:not(:last-of-type) {
    margin-bottom: 12px;
}

.note-list:not(:last-of-type) {
    margin-bottom: 24px;
}

/* ========================================
 * 6. フッター・追従ナビゲーション
 * ======================================== */
.site-footer {
    background-color: #DBC837;
    padding: 30px 20px;
    text-align: center;
}

.site-footer small {
    font-size: 1.2rem;
}

/* 追従アンカーリンク */
#fixed-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

#fixed-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

#fixed-nav li {
    position: relative;
}

#fixed-nav li+li {
    margin-left: var(--lantern-overlap);
}

#fixed-nav li:nth-child(1) {
    z-index: 4;
}

#fixed-nav li:nth-child(2) {
    z-index: 3;
}

#fixed-nav li:nth-child(3) {
    z-index: 2;
}

#fixed-nav li:nth-child(4) {
    z-index: 1;
}

#fixed-nav li:nth-child(5) {
    z-index: 0;
}

#fixed-nav .nav-anchor {
    width: var(--lantern-w);
    height: var(--lantern-h);
}

body.show-fixed-nav #fixed-nav {
    transform: translateY(0);
}


/* ========================================
 * 7. レスポンシブ対応 (Tablet・PC)
 * ======================================== */

/* -------------------------------------- */
/* --- Tablet (600px - 1023px) --- */
@media (min-width: 600px) {

    /* 修正1: 共通設定 */
    .wrapper {
        padding-left: 30px;
        padding-right: 30px;
    }

    .product-set {
        padding: 30px 30px 48px;
    }

    #details,
    #notes {
        padding: 60px 30px;
    }

    /* 修正2: KVの背景化 (PC KV画像をTabletでも利用) */
    #kv {
        background-color: #F88521;
        overflow: visible;
        z-index: 10;
        margin-bottom: 0;
    }

    #kv h1 {
        background-image: url('/cms/img/fukubukuro2027/kv_pc.jpg?v=v8');
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
        /* 2027 の kv_pc.jpg は 2800×1499（XD 261016、鱗模様の最下段まで）。padding-bottom の % は親の幅基準になり
           親が広いと画像の下に帯が出るので、自身の幅基準の aspect-ratio で高さを決める */
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 2800 / 1499;
        max-width: 1440px;
        margin: 0 auto;
        position: relative;
    }

    .kv-image {
        display: none;
    }

    /* 修正3: ナビゲーションの位置とサイズをTablet向けに初期コードから復元 */
    #sticky-nav-origin {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        transform: translateX(0);
        max-width: calc(0.6548 * 100vw - 42.88px);
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        margin-top: calc(-115 / 1400 * min(100vw, 1440px));
        margin-bottom: calc(115 / 1400 * min(100vw, 1440px) - var(--lantern-h));
    }



    /* 修正4: 最初のセクションの位置調整 */
    #set-gokuyume {
        margin-top: 0;
        z-index: 5;
    }
}

/* -------------------------------------- */
/* --- ～1023px (SP・タブレット) --- */
@media (max-width: 1023px) {
    .product-card.first {
        padding-top: 80px;
    }
}

/* -------------------------------------- */
/* --- PC (1024px以上) --- */
@media (min-width: 1024px) {

    /* ★修正1: コンテンツの最大幅を1200pxに設定 */
    .wrapper {
        max-width: 1400px;
        padding-left: 100px;
        padding-right: 100px;
        min-height: unset;
    }

    /* #details,  #notesセクションのラッパーも1200pxに */
    #details .wrapper,
    #notes .wrapper {
        max-width: 1200px;
    }

    /* 修正2: ヘッダー装飾 */
    .header-accessory {
        position: relative;
        z-index: 20;
        background-image: url('/cms/img/fukubukuro2027/header_accessary_pc.png?v=v8');
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
        height: 50px;
        margin-top: 0px;
        margin-bottom: 0;
        z-index: 20;
        width: 100%;
        position: relative;
        left: 0;
        transform: none;
    }

    .header-accessory img {
        display: none;
    }

    .site-header {
        position: relative;
        z-index: 30;
    }

    /* 修正3: カウントダウンタイマー */
    #countdown {
        position: relative;
        z-index: 50;
        margin-bottom: 0;
        padding-top: 0px;
        width: 100%;
    }

    /* XD(PC): 「タイトル＋タイマー(幅335・下線つき)」と「先行発売の告知＋限定ストアへ」を1行に並べる。
       全体幅692を中央に置く。文字サイズはSPと同じ（12/24/12、告知12・リンク13） */
    .countdown-content {
        display: flex;
        align-items: flex-end;
        gap: 22px;
        max-width: 692px;
        margin: -5px auto 0;
        padding-left: 0;
        padding-right: 0;
    }

    .countdown-inner {
        flex: 0 0 335px;
        padding-top: 0px;
        margin-bottom: 0;
    }

    .presale {
        flex: 1;
        padding-bottom: 0;
    }

    /* 修正4: メインビジュアル (KV) */
    #kv {
        background-color: #F88521;
        padding-top: 0;
        overflow: visible;
        width: 100%;
        position: relative;
        left: auto;
        transform: none;
        z-index: 10;
        margin-bottom: 0;
    }

    #kv h1 {
        background-image: url('/cms/img/fukubukuro2027/kv_pc.jpg?v=v8');
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
        height: auto;
        padding-bottom: 0;
        aspect-ratio: 2800 / 1499;
        max-width: 1440px;
        margin: 0 auto;
        position: relative;
        overflow: visible;
    }

    .kv-image {
        display: none;
    }

    /* 修正5: アンカーリンクナビゲーションの位置とサイズをPC向けに初期コードから復元 */
    #sticky-nav-origin {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        transform: translateX(0);
        max-width: calc(0.6548 * 100vw - 42.88px);
        margin-top: calc(-115 / 1400 * min(100vw, 1440px));
        margin-bottom: calc(115 / 1400 * min(100vw, 1440px) - var(--lantern-h));
        padding-left: 100px;
        padding-right: 100px;
    }

    #sticky-nav-origin ul {
        margin-bottom: -9px;
    }



    /* 修正6: 商品セット共通スタイル (背景を全幅にするための修正) */
    .product-set {
        padding: 0;
    }

    /* 修正7: 極夢セクションのPC向け調整 */
    #set-gokuyume {
        margin-top: -5px;
        position: relative;
        z-index: 50;
        background-color: #DBC837;
    }

    /* --- PCスタイルコンテナの左右カラム共通設定（統一化されたクラス名対応） --- */
    .left-column,
    .right-column {
        flex: 1;
        min-width: 300px;
    }

    .right-column {
        display: flex;
        flex-direction: column;
        padding-top: 13px;
    }

    /* 商品タイトルラッパーの統一スタイル */
    .product-title-wrapper {
        font-size: 100%;
        font-weight: normal;
        margin-bottom: 20px;
    }

    /* キャッチフレーズの統一スタイル */
    .catchphrase {
        margin-bottom: 42px;
    }

    /* 後方互換性のため、既存のセレクタも維持 */
    .product-details-wrapper>.pc-style>div:first-child,
    .product-details-wrapper>.pc-style>div:last-child {
        flex: 1;
        min-width: 300px;
    }

    .product-details-wrapper>.pc-style>div:last-child {
        display: flex;
        flex-direction: column;
        padding-top: 13px;
    }

    /* PCスタイルコンテナ全体にFlexboxと中央寄せを適用 (松竹梅セット用) */
    .pc-style {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 100px;
        padding-right: 100px;
        text-align: left;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 40px;
    }

    #set-ume {
        /* XD(1002): 梅の背景は PC も SP と同じ #FC9393（2026 の #FFC3C3 のままだった） */
        background-color: #FC9393;
        background-image: url(/cms/img/fukubukuro2027/set_section_accessary_pc.png?v=v8);
        background-repeat: no-repeat;
        background-position: 0px bottom;
        padding: 80px 20px 160px;
        background-size: contain;
    }


    /* ★全セット共通調整: 極夢セットのスタイルを松竹梅セットにも適用 */
    /* 松竹梅セットの左右カラムのflex設定は、共通設定に統合したため削除/修正 */
    #set-matsu .pc-style>div:first-child,
    #set-matsu .pc-style>div:last-child,
    #set-take .pc-style>div:first-child,
    #set-take .pc-style>div:last-child,
    #set-ume .pc-style>div:first-child,
    #set-ume .pc-style>div:last-child {
        order: initial !important;
    }

    .price-and-cartbtn {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 修正8: 商品セット個別調整 (極夢, 松, 竹, 梅) のPC向けレイアウト */

    /* === キャッチフレーズのPC版表示調整 (共通化) === */
    #set-gokuyume .catchphrase,
    #set-matsu .catchphrase,
    #set-take .catchphrase,
    #set-ume .catchphrase {
        margin-bottom: 0;
        width: 100%;
        text-align: center;
        order: 1;
    }

    .catchphrase-text {
        font-size: 2.2rem;
        line-height: 1.5;
    }

    /* ▼ 全セット共通: タイトル画像サイズ固定 (極夢のスタイルを共通化) */
    .product-set .product-title {
        order: 2;
        width: 100%;
        max-width: 236px;
        margin-top: 0;
        margin-bottom: 0;
        margin-right: auto;
        height: auto;
        text-align: left;
    }

    .product-set .product-title img {
        width: 235.64px;
        max-width: none;
        height: 114.15px;
        display: block;
        margin: 0 auto;
    }


    /* ▼ 全セット共通: サマリー、価格、ボタンの順序を極夢セットのルールに統一 */
    .product-set .set-summary {
        order: 3;
        font-size: 1.8rem;
        margin-bottom: 0;
        text-align: center;
    }

    .product-set .price-area {
        order: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding-top: 0;
        margin-bottom: 0;
    }

    /* 【修正済み】カートボタンの順番を明示的に指定し、価格エリアの下に配置 */
    .product-set .price-and-cartbtn .set-summary {
        order: 1;
    }

    .product-set .price-and-cartbtn .price-area {
        order: 2;
    }

    .product-set .price-and-cartbtn .add-to-cart-btn {
        order: 3;
        margin-bottom: 40px;
        margin-left: auto;
        margin-right: auto;
        margin: 24px auto 40px;
    }

    .set-details-list .list-item-box p:first-child {
        font-weight: normal;
        font-size: 1.2rem;
        margin-bottom: 8px;
        padding-top: 4px;
        padding-bottom: 4px;
        text-align: center;
    }


    .comment-body {
        font-size: 1.4rem;
    }

    .product-set .product-info {
        text-align: center;
        /* 松竹梅のテキストカラム全体を中央寄せ */
    }

    /* その他のスタイルは維持 */
    .product-set::before,
    .product-set::after {
        width: 268px;
        height: 171px;
    }

    .product-set::before {
        top: 150px;
        left: -80px;
    }

    .product-set::after {
        top: 220px;
        right: -80px;
    }

    .product-set h2 {
        font-size: 4rem;
        text-align: center;
    }

    #details,
    #notes {
        padding: 80px 100px;
    }

    /* セット比較表 (PC調整): 4列が収まるので横スクロールもヒントも無し */
    #comparison {
        padding: 60px 20px 72px;
    }

    .comparison-title {
        margin-bottom: 28px;
        font-size: 3.2rem;
    }

    .comparison-scroll {
        margin-left: 0;
    }

    .comparison-table {
        margin: 0 auto;
    }

    .comparison-hint {
        display: none;
    }

    #details {
        background-color: #f7f7f7;
        background-image: url(/cms/img/fukubukuro2027/set_section_accessary2_pc.png?v=v8);
        background-repeat: no-repeat;
        background-position: 0px bottom;
        padding: 80px 20px 160px;
        background-size: contain;
    }

    /* ▼ PC向け詳細セクション (DETAILS) */
    .detail-wrapper {
        max-width: 1200px;
    }

    .details-copy-wrapper {
        margin-bottom: 30px;
    }


    .details-main-title {
        font-size: 4rem;
        padding-bottom: 25px;
        margin-bottom: 60px;
    }

    .beer-category-title,
    .goods-category-title {
        font-size: 3.2rem;
        padding: 0px 14px;
        margin-bottom: 80px;
        border-top: #189C00 2px solid;
        border-bottom: #189C00 2px solid;
    }

    .goods-category-title {
        margin: 120px 080px;
    }


    /* --- 限定醸造ビール (PC) --- */
    .limited-beer-wrapper {
        margin-bottom: 0;
    }

    .product-cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* gap: 30px; */
        overflow-x: visible;
        padding-bottom: 0;
        text-align: center;
        margin-top: 0;
    }

    .product-cards-container .product-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 50%;
        width: auto;
        margin-left: 0;
        padding-top: 40px;
    }

    .product-cards-container .product-card:nth-child(3)::before {
        top: 50%;
    }

    .product-card {
        width: auto;
        padding: 20px;
        text-align: left;
        margin-bottom: 0;
        border: none;
        background-color: transparent;
        margin-left: 0;
    }

    /* PC用：背景画像のサイズを制限 */
    .product-card::before {
        width: min(100vw, 600px);
        /* 最大700pxに制限 */
        height: min(100vw, 600px);
        top: 40%;
    }

    .product-image-container {
        width: 160px;
        height: 160px;
        margin: 0 auto 10px auto;
        /* border-radius: 50%; */
        left: auto;
        transform: none;
        /* padding-top: 0; */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .limited-product-image {
        position: relative;
    }

    .product-card>div {
        max-width: none;
        margin: 0;
        width: 100%;
        display: block;
        height: auto;
    }

    .product-name,
    .product-subtitle,
    .product-details,
    .product-details-extra {
        text-align: center;
    }

    .product-name {
        margin: 52px 0 27px;
        font-size: 36px;
    }

    .product-description {
        clear: both;
        margin-top: 20px;
        text-align: left;
        max-width: none;
    }

    .link-text {
        padding-bottom: 0;
        max-width: none;
        text-align: right;
    }

    .link-text a {
        color: #000;
        text-decoration: none;
        border: 1px solid #000;
        padding: 10px 30px;
        display: inline-block;
        font-weight: bold;
        transition: background-color 0.2s ease, color 0.2s ease;
        border-radius: 50px;
    }

    /* --- 限定グッズ (PC) --- */

    .limited-goods-wrapper {
        margin-top: 0;
    }

    .goods-item {
        padding: 0 30px;
    }

    /* PC時にカレンダーのカルーセルが無効化された際の横並びレイアウト */
    .goods-item-sp .carousel-track {
        display: flex;
        justify-content: center;
    }

    .goods-item-sp .carousel-slide {
        width: 335px;
    }

    .goods-title {
        font-size: 2.8rem;
    }

    /* PC時のgoods-carouselを左寄せに */
    .goods-carousel {
        overflow: visible;
    }

    /* centerModeによる中央寄せを無効化 */
    .goods-carousel .slick-list {
        padding: 0 !important;
    }

    .goods-carousel .slick-track {
        margin-left: 0 !important;
    }



    .goods-carousel {
        overflow-x: visible;
        margin: 0 0 20px 0;
        padding: 0;
        width: auto;
        left: auto;
        transform: none;
    }



    .slide-caption {
        font-size: 1.5rem;
        padding: 10px 8px;
    }

    .carousel-btn {
        display: none;
    }



    /* --- その他逸品 (PC) --- */

    .core-products-wrapper {
        margin-top: 120px;
        max-width: 1200px;
        padding: 0 30px;
        margin-inline: auto;
    }

    .core-products-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 30px 20px;
        justify-items: center;
    }

    .small-product-card {
        text-align: center;
    }

    .small-product-image {
        max-width: 180px;
    }


    /* 注意事項セクションのPCスタイル調整 */
    .note-heading {
        font-size: 18px;
    }

    .notes-wrap {
        padding: 48px 40px;
    }

    .note-list {
        font-size: 15px;
    }

    .note-list:not(:last-of-type) {
        margin-bottom: 32px;
    }
}

/* ========================================
 * 8. ユーティリティクラス・モーダル機能
 * ======================================== */
/* 新規追加: タイマー終了時に使用（要素全体を非表示） */
#countdown.is-hidden {
    display: none;
}

/* ========================================
 * モーダル機能のスタイル
 * ======================================== */

/* 共通設定 */
.cursor {
    cursor: pointer;
}

/* モーダル背景カバー */
#modal-inner-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    transition: all 0.5s;
    will-change: transform;
}

.modal-inner-cover-close {
    pointer-events: none;
    opacity: 0;
}

.modal-inner-cover-open {
    opacity: 1;
    background: rgba(0, 0, 0, 1);
    background-color: rgba(0, 0, 0, 1);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* モーダル本体 */
#modal {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 1001;
    margin: 0 auto;
    transition: all 0.5s;
    /* overflow: hidden; */
}

.modal-close {
    pointer-events: none;
    opacity: 0;
    top: 10vh;
}

.modal-open {
    opacity: 1;
    top: 0;
}

#modal-inner-wrapper {
    padding: 5rem 0;
    z-index: 1;
}

.modal-inner {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 20px;
    overflow-y: auto;
}

#carouselButtonArea {
    display: flex;
    margin-top: 20px;
    justify-content: flex-end;
}

.prev-button {
    margin-right: 15px;
}

.prev-button,
.next-button {
    border: solid #e4e4e4 1px;
    line-height: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    width: 40px;
}

.prev-button>img,
.next-button>img {
    display: block;
    width: 1rem;
}

.modal-close-button {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    top: 0.5rem;
    right: 0;
    z-index: 1002;
    cursor: pointer;
}

.modal-txt-area {
    padding: 3rem 2rem;
}

.modal-product-name {
    font-size: 2.6rem;
    line-height: 3.8rem;
    font-weight: 700;
}

.modal-product-info {
    margin-top: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-description {
    margin-top: 1.6rem;
    font-size: 1.4rem;

}





/* レスポンシブ対応 */
@media (min-width: 768px) {
    #modal {
        width: 30vw;
        left: 35vw;
        top: 100px;
    }
}

@media (max-width: 767px) {
    #modal {
        left: 5vw;
        width: 90vw;
    }
}

/* ★ 変更点: ライトボックス用のCSSを追加 */
/* ====== Lightbox 基本UI ====== */
.lb-overlay {
    position: fixed;
    inset: 0;
    display: none;
    /* 初期は非表示 */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .8);
    z-index: 9999;
}

.lb-overlay.is-open {
    display: flex;
}

.lb-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    touch-action: manipulation;
    /* ネイティブピンチズームを妨げない */
}

.lb-img-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 4vw; */
    /* 端に密着しないように少し余白 */
}

.lb-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lb-close {
    position: absolute;
    padding: 5px 5px 0 0;
    top: env(safe-area-inset-top, 12px);
    right: env(safe-area-inset-right, 12px);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 999px;
    background: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    outline: none;
    /* オレンジの線を消す */
}

/* 背景スクロール固定用 */
.lb-lock-scroll {
    overflow: hidden !important;
    touch-action: none;
}

/* フェードイン/アウトの気持ち良さ */
.lb-overlay,
.lb-img {
    transition: opacity .18s ease, transform .18s ease;
}

.lb-overlay.is-opening {
    opacity: 0;
}

.lb-overlay.is-open {
    opacity: 1;
}

/* ========================================
 * XD(1002) セット区画の寸法（4セット共通）
 * 右カラムの縦の並び: 本数(18px/行24) → 8 → 価格(36px/行48) → 26 → カート(70)
 *   → 40 → 帯(25) → 12 → 内容(13px Bold/行21) → 22 → … → 32 → お客様の声
 * ======================================== */
.product-set .set-summary {
    margin: 0;
    font-size: 1.8rem;
    line-height: 24px;
}

.product-set .price-area {
    gap: 12px;
    margin: 8px 0 0;
}

.product-set .product-price {
    font-size: 3.6rem;
    font-weight: bold;
    line-height: 48px;
}

.product-set .cart-row {
    margin: 26px 0 40px;
}

.product-set .add-to-cart-btn {
    max-width: 282px;
}

.set-details-list .list-item-box {
    margin-bottom: 22px;
    padding: 0;
}

.set-details-list .list-item-box p:first-child {
    height: 25px;
    margin-bottom: 12px;
    padding: 0;
    font-size: 1.2rem;
    line-height: 25px;
}

.set-details-list .list-item-box p:not(:first-child) {
    font-size: 1.3rem;
    line-height: 21px;
}

/* 最後の内容の下は、お客様の声の margin-top で取る（margin の相殺で間が縮まないように） */
.set-details-list .list-item-box:last-child {
    margin-bottom: 0;
}

/* お客様の声: ラベルは枠の上辺に重ね、見出し → 本文。枠の上から見出しまで 32px。SP は内容から 33px */
.product-set .review-comment {
    margin-top: 33px;
    padding: 32px 17px 20px 20px;
}

.product-set .review-comment-inner {
    align-items: flex-start;
    padding-top: 0;
}

.product-set .comment-body {
    font-size: 1.2rem;
    line-height: 20px;
}

.product-set .review-headline {
    margin-bottom: 1px;
    line-height: 20px;
}

/* SP: XD はセット上端からキャッチの基準線まで 54px、写真枠まで 104px、お客様の声からセット下端まで 47px */
.product-set {
    padding-top: 35px;
    padding-bottom: 47px;
}

.product-set .catchphrase {
    margin-bottom: 18px;
}

@media (min-width: 1024px) {
    /* セット上端からキャッチの基準線まで 108px（26px・行39 の行頭まで 77px） */
    .product-set,
    #set-gokuyume {
        padding: 77px 0 56px;
    }

    #set-ume {
        padding-bottom: 160px;
    }

    .catchphrase-text {
        font-size: 2.6rem;
        line-height: 39px;
    }

    /* キャッチの基準線から写真枠まで 41px。左右 580px の2カラム、間 40px */
    .product-set .pc-style {
        max-width: 1400px;
        margin: 33px auto 0;
        padding: 0 100px;
        gap: 40px;
    }

    .product-set .product-details-wrapper > .pc-style > .left-column,
    .product-set .product-details-wrapper > .pc-style > .right-column {
        flex: 0 0 580px;
        min-width: 0;
    }

    /* タイトルは写真枠に重ねる（SP と同じ）。XD: 枠の上端から 22px、枠の中心より 17px 右に中心 */
    .product-set .left-column {
        position: relative;
    }

    .product-set .product-title-wrapper {
        position: absolute;
        top: 22px;
        left: calc(50% + 17px);
        z-index: 2;
        margin: 0;
        transform: translateX(-50%);
    }

    .product-set .product-title-wrapper .product-title,
    #set-gokuyume .product-title,
    #set-matsu .product-title,
    #set-take .product-title,
    #set-ume .product-title {
        width: auto;
        max-width: none;
        height: 121px;
    }

    .product-set .product-title-wrapper .product-title img,
    .product-set .product-title img {
        width: auto;
        height: 121px;
    }

    .product-set .product-image,
    .product-set .product-image img:not(.soldout-badge) {
        display: block;
        width: 580px;
        margin: 0;
    }

    /* 右カラムは写真枠の上端から 41px で本数（2026 の div:last-child 指定より強くする） */
    .product-set .product-details-wrapper > .pc-style > .right-column {
        padding-top: 41px;
    }

    .product-set .catchphrase {
        margin-bottom: 0;
    }

    .product-set .price-and-cartbtn .add-to-cart-btn {
        margin: 0;
    }

    /* PC: 最後の内容からお客様の声まで 54px */
    .product-set .review-comment {
        margin-top: 54px;
        padding-bottom: 25px;
    }
}

/* XD(1002): 松の限定グッズの下に「詳しくはこちら」。13px Bold・右寄せ、内容から 10px */
.list-item-more {
    display: block;
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 21px;
    color: #000;
    text-align: right;
    text-decoration: underline;
}

/* ========================================
 * XD(1002) 比較表〜詳細の見出し
 * ======================================== */
.sp-br {
    display: inline;
}

/* 比較表: 見出し 28px。セルは 12px / 行16、行見出しも行16 */
.comparison-title {
    font-size: 2.8rem;
    line-height: 40px;
    margin-bottom: 34px;
}

.comparison-table tbody td {
    font-size: 1.2rem;
    line-height: 16px;
}

.comparison-table tbody th[scope="row"] {
    padding: 4px;
    line-height: 16px;
}

/* 表の下端から詳細の帯まで（SP 6px / PC 25px） */
#comparison {
    padding-bottom: 6px;
}

/* 詳細の上端の鱗模様の帯: 下端の装飾(set_section_accessary2)を上下反転して使う */
#details {
    position: relative;
    padding-top: 218px;
}

#details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 750 / 204;
    background-image: url('/cms/img/fukubukuro2027/set_section_accessary2.png?v=v8');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: scaleY(-1);
    pointer-events: none;
}

#details .detail-wrapper {
    position: relative;
}

/* SP: 見出し(28px/行32・2行) → 11px → リード(16px/行24・2行) */
/* SP: リードから「限定醸造のクラフトビール！」の帯まで 31px（PC は見出しの margin-bottom 60px で取る） */
.details-head {
    display: flex;
    flex-direction: column;
    margin-bottom: 31px;
}

@media (min-width: 1024px) {
    .details-head {
        margin-bottom: 0;
    }
}

.details-head .details-main-title {
    order: 1;
    margin-bottom: 0;
    font-size: 2.8rem;
    line-height: 32px;
}

.details-head .details-copy-wrapper {
    order: 2;
    margin: 11px 0 0;
}

@media (min-width: 1024px) {
    .sp-br {
        display: none;
    }

    .comparison-title {
        margin-bottom: 66px;
    }

    #comparison {
        padding-bottom: 23px;
    }

    #details::before {
        aspect-ratio: 2800 / 282;
        background-image: url('/cms/img/fukubukuro2027/set_section_accessary2_pc.png?v=v8');
    }

    /* PC: リード(28px/行42・1行) → 15px → 見出し(40px/行54)。帯の上端からリードまで 225px */
    #details {
        padding-top: 225px;
    }

    .details-head .details-copy-wrapper {
        order: 0;
        margin: 0;
    }

    .details-head .details-copy-text {
        font-size: 2.8rem;
        line-height: 42px;
    }

    .details-head .details-main-title {
        order: 1;
        margin: 15px 0 60px;
        font-size: 4rem;
        line-height: 54px;
    }
}

/* XD(1002) PC: 限定ビールの缶＋グラスは高さ 263px（SP の約1.6倍）。見出しの基準線から画像まで 121px */
@media (min-width: 1024px) {
    .limited-beer-wrapper .product-image-container {
        width: auto;
        height: 263px;
        margin: 0 auto 10px;
        padding-top: 0;
    }

    .limited-beer-wrapper .product-image-container .limited-product-image {
        width: auto;
        max-width: none;
        height: 263px;
        max-height: none;
    }

    /* 見出しの下 15px ＋ カード上余白 20px で、基準線から画像まで 121px */
    .limited-beer-wrapper .beer-category-title {
        margin-bottom: 15px;
    }

    /* 2段目（眠れるししし）は 1段目の画像から 721px 下（XD） */
    .limited-beer-wrapper .product-cards-container .product-card:nth-child(3) {
        padding-top: 103px;
    }

    .limited-beer-wrapper .new-year-badge {
        top: calc(159 / 163 * 263px);
        left: calc(50% + 123px);
    }
}

/* ========================================
 * XD(1002) よな里新聞・配送箱（グレーの詳細の続き。鱗模様の帯はこの区画の下端に移す）
 * 見出し 24px → 基準線から 34px で写真枠 335×210 → 24px で本文 13px
 * ======================================== */
#details {
    padding-bottom: 0;
    background-image: none;
}

#delivery-box {
    padding: 19px 20px 119px;
    background-color: #f7f7f7;
    background-image: url('/cms/img/fukubukuro2027/set_section_accessary2.png?v=v8');
    background-repeat: no-repeat;
    background-position: 0 bottom;
    background-size: 100% auto;
}

.delivery-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.delivery-item {
    width: 100%;
    max-width: 335px;
}

.delivery-item .delivery-box-title {
    margin-bottom: 28px;
    font-size: 2.4rem;
    line-height: 32px;
}

.delivery-item .delivery-box-media {
    margin-bottom: 24px;
}

.delivery-item .delivery-box-image {
    display: block;
    width: 100%;
    max-width: none;
    aspect-ratio: 335 / 210;
    object-fit: cover;
}

.delivery-item .delivery-box-text {
    margin: 0;
    font-size: 1.3rem;
    line-height: 21px;
}

@media (min-width: 1024px) {
    #details {
        padding-bottom: 0;
        background-image: none;
    }

    #delivery-box {
        padding: 64px 20px 230px;
        background-image: url('/cms/img/fukubukuro2027/set_section_accessary2_pc.png?v=v8');
    }

    .delivery-grid {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 120px;
    }
}

/* XD(1002) PC: 松セット限定グッズの商品名は 36px、全セット共通特典（カレンダー）は 24px。
   商品名の基準線から写真まで 58px（36px）/ 31px（24px） */
@media (min-width: 1024px) {
    .limited-goods-wrapper .goods-title {
        padding-bottom: 0;
        font-size: 3.6rem;
        line-height: 48px;
        margin: 0 0 50px;
    }

    .limited-goods-wrapper .goods-items-container:last-of-type .goods-title {
        font-size: 2.4rem;
        line-height: 32px;
        margin: 18px 0 25px;
    }

    /* 見出しの基準線から商品名まで 139px、2つ目の見出しはグッズの最後から 582px（XD） */
    .limited-goods-wrapper .goods-category-title {
        margin: 80px 80px 80px;
    }

    .limited-goods-wrapper .goods-category-title:first-child {
        margin-top: 120px;
    }

    .limited-goods-wrapper .goods-items-container:first-of-type .goods-item + .goods-item {
        margin-top: 21px;
    }

    #delivery-box {
        padding-top: 10px;
        padding-bottom: 146px;
    }
}

/* XD(1002) 定番ビール: カード 160×360、SP は 2列（間 16px・行間 16px）、PC は 7列（間 8px）。
   幅が足りない画面（320px・1024px 付近）ではカードを縮める */
.core-products-grid {
    grid-template-columns: repeat(2, minmax(0, 160px));
    gap: 16px;
    justify-content: center;
    padding-top: 25px;
}

.core-products-grid .small-product-card {
    width: 100%;
    max-width: 160px;
    min-height: 360px;
}

@media (min-width: 1024px) {
    .core-products-grid {
        grid-template-columns: repeat(7, minmax(0, 160px));
        gap: 8px;
        padding-top: 0;
    }
}

/* XD(1002) 定番ビール区画の上下: SP は上 44px。下はグッズ見出しの margin と相殺されるので padding で 20px 足す */
.core-products-wrapper {
    margin-top: 44px;
    padding-bottom: 20px;
}

@media (min-width: 1024px) {
    /* PC: 見出しの基準線からカードまで 89px、カードの下からグッズ見出しまで 525px */
    .core-products-wrapper {
        margin: 164px auto 60px;
        padding-bottom: 0;
    }

    .core-products-wrapper .beer-category-title {
        margin-bottom: 70px;
    }

    .limited-goods-wrapper .goods-category-title:first-child {
        margin-top: 63px;
    }
}

/* XD(1002) 注意事項: 見出しは左寄せ 30px/行45。小見出し 15px Bold/行21、本文 13px/行21（SP・PC 共通）
   見出し → 35px → 小見出し → 16px → 本文（間 10px）→ 22px → 次の小見出し。「・」はぶら下げ */
.notes-wrap .section-title {
    line-height: 45px;
    text-align: left;
}

.notes-wrap .notes-content {
    margin-top: 35px;
}

.notes-wrap .note-heading {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 21px;
}

.notes-wrap .note-list {
    font-size: 13px;
    line-height: 21px;
    padding-left: 13px;
    text-indent: -13px;
}

.notes-wrap .note-list li:not(:last-of-type) {
    margin-bottom: 10px;
}

.notes-wrap .note-list:not(:last-of-type) {
    margin-bottom: 22px;
}

@media (min-width: 1024px) {
    .notes-wrap {
        padding: 48px;
    }

    .notes-wrap .note-heading {
        font-size: 15px;
    }

    .notes-wrap .note-list {
        font-size: 13px;
    }

    .notes-wrap .note-list:not(:last-of-type) {
        margin-bottom: 22px;
    }
}

/* ========================================
 * XD(261016) 配送箱は写真2枚（SP はスライダー）。グッズの開発秘話はラバーコースターの下
 * ======================================== */
.delivery-item--box {
    max-width: none;
}

.delivery-item--box .goods-carousel {
    margin-top: 0;
}

.delivery-carousel .carousel-slide {
    width: 335px;
    margin-right: 10px;
}

.delivery-carousel .slide-caption {
    padding: 24px 0 0;
    font-size: 1.3rem;
    line-height: 21px;
}

.goods-story-link {
    margin-top: 24px;
}

@media (min-width: 1024px) {
    /* PC: よな里新聞 335px（x=110）と配送箱 335px×2（間 8px、x=622）。全体 1190px */
    .delivery-grid {
        max-width: 1190px;
        margin: 0 auto;
        justify-content: space-between;
        gap: 0;
    }

    .delivery-item--box {
        width: 678px;
        max-width: 678px;
    }

    .delivery-carousel {
        position: static;
        width: auto;
        left: auto;
        transform: none;
        overflow: visible;
    }

    .delivery-carousel .carousel-track {
        display: flex;
        gap: 8px;
    }

    .delivery-carousel .carousel-slide {
        width: 335px;
        margin-right: 0;
    }

    .delivery-carousel .carousel-slide img {
        aspect-ratio: 335 / 210;
        object-fit: cover;
    }

    /* XD: ボタン（220×40）の右端はグッズの右端 1300、上端はコースター本文の下 */
    .goods-story-link {
        max-width: 1190px;
        margin: 24px auto 0;
    }
}

@media (min-width: 1024px) {
    #delivery-box .wrapper.delivery-grid {
        max-width: 1190px;
        padding: 0;
    }

    .delivery-grid > .delivery-item:first-child {
        flex: 0 0 335px;
    }
}

/* XD(261016) の縦位置: SP はよな里新聞→配送箱の見出し 426px、配送箱→注意事項 627px。
   PC は開発秘話ボタンの上端がコースター本文の直下、全体は x=110〜1300（左 110・右 100） */
.delivery-grid {
    gap: 48px;
}

#delivery-box {
    padding-bottom: 147px;
}

@media (min-width: 1024px) {
    .delivery-grid {
        gap: 0;
    }

    #delivery-box {
        padding-bottom: 146px;
    }

    #delivery-box .wrapper.delivery-grid,
    .goods-story-link {
        position: relative;
        left: 5px;
    }

    .goods-story-link {
        margin-top: -26px;
    }

    .limited-goods-wrapper .goods-category-title {
        margin-top: 61px;
    }

    .limited-goods-wrapper .goods-category-title:first-child {
        margin-top: 63px;
    }
}

/* XD(261016): 日付が「11月3日(火・祝)」と長くなったぶん、数字と単位の間を詰めて 335px に収める */
.time-number {
    margin-right: 0;
}

/* 1024〜1199px は配送箱の写真2枚を縮めて収める */
@media (min-width: 1024px) and (max-width: 1199px) {
    .delivery-grid {
        gap: 20px;
    }

    .delivery-item--box {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .delivery-carousel .carousel-slide {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }
}

/* yonasato.com の共通 CSS（previous_user.css）に `.wrapper::after { content:""; display:block; clear:both }` がある。
   flex/grid の中ではこれが見えない子要素になって gap ぶん幅を食う（先行販売の告知が折り返した。2026-10-16 CMS で確認） */
.fukubukuro2027 .countdown-content::after,
.fukubukuro2027 .delivery-grid::after,
.fukubukuro2027 .delivery-grid::before {
    content: none;
}

/* いいねアイコンの <symbol> 置き場。width/height=0 でも行の高さぶん場所を取り、
   ブロックの上に約26〜29pxの空白が出ていた（CMS で確認 2026-10-16）。レイアウトから外す */
.fukubukuro2027 > svg.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ========================================
 * XD(261016) 最終調整 2026-10-17
 * ======================================== */

/* カウントダウン: XD はタイトル2行目の基準線にタイマーの数字をそろえる（1行目は数字より16px上） */
.countdown-inner {
    align-items: last baseline;
}

/* SP の XD では 2行目の基準線（数字）から下線まで 9px */
.countdown-title {
    line-height: 16px;
    padding-bottom: 2px;
}

/* SP: 下線から告知の基準線まで XD は 29px */
.countdown-inner {
    margin-bottom: 13px;
}

/* カウントダウンの下線から KV まで: XD は SP 63px・PC 7px（白地） */
#kv {
    margin-top: 19px;
}

@media (min-width: 1024px) {
    .countdown-inner {
        margin-bottom: 0;
    }

    .presale {
        padding-bottom: 0;
        margin-bottom: -3px;
    }

    #kv {
        margin-top: 8px;
    }
}

/* KV: 1440px を超える画面でも左右いっぱいに広げる（左右にオレンジの帯が出ていた） */
@media (min-width: 600px) {
    #kv h1 {
        max-width: none;
    }

    #sticky-nav-origin {
        margin-top: calc(-115 / 1400 * 100vw);
        margin-bottom: calc(115 / 1400 * 100vw - var(--lantern-h));
    }
}

/* SP のランタン: XD(1002〜) は KV の下端から中心まで 61.4px（375幅）。1001 の 116.5px のままだった */
@media (max-width: 599px) {
    #sticky-nav-origin {
        margin-top: calc(-61.4 / 375 * 100vw - var(--lantern-h) / 2);
        margin-bottom: calc(61.4 / 375 * 100vw - var(--lantern-h) / 2);
    }
}

/* ランタン: XD は枠線 6px が図形の外側に付き、隣どうしの枠が重なって見える。
   書き出しは外側の線と影まで含めて上下左右 24px（80×56.2 の図形に対して）広く取ってあるので、
   箱（クリック範囲・並びの間隔）は XD の図形の大きさのまま、絵だけを箱の外へはみ出させる */
.nav-anchor {
    position: relative;
    background-size: 0 0;
}

.nav-anchor::before {
    content: '';
    position: absolute;
    top: calc(-24 / 56.2 * 100%);
    right: calc(-24 / 80 * 100%);
    bottom: calc(-24 / 56.2 * 100%);
    left: calc(-24 / 80 * 100%);
    background-image: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

/* 比較表の左上の空きセル: `.comparison-table th` の #F7F7F8 に負けていた。XD は行見出しと同じ #CECECE */
.comparison-table .comparison-corner {
    background-color: #CECECE;
}

/* 限定ビールの放射線: 以前は 100vw 角でカードの中央に置いていたため、広い画面では見出しまで覆っていた。
   XD は商品ごとの列の大きさ（PC 600×536・SP 375×383）で、缶の上端より PC 64px・SP 40px 上から始まる。
   XD の「背景」グループをそのまま書き出し（product_rays_*）、缶の入れ物を基準に置く */
.limited-beer-wrapper .product-card::before {
    content: none;
}

.limited-beer-wrapper .product-image-container::before {
    content: '';
    position: absolute;
    top: 0; /* SP は入れ物の上余白 40px のところに缶があるので、その 40px 上 = 入れ物の上端 */
    left: 50%;
    z-index: -1;
    width: 375px;
    height: 383px;
    background-image: url('/cms/img/fukubukuro2027/product_rays_sp.png?v=v8');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: translateX(-50%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .limited-beer-wrapper .product-image-container::before {
        top: -64px;
        width: 600px;
        height: 536px;
        background-image: url('/cms/img/fukubukuro2027/product_rays_pc.png?v=v8');
    }
}

/* SP のグッズ写真の説明文: XD は 15px・行 24px（PC は既に 15px） */
.slide-caption {
    font-size: 1.5rem;
    line-height: 24px;
}

/* 数字の基準線から下線まで XD は 9px */
.fukubukuro2027 .time-number {
    line-height: 24px;
}

/* 限定ビール: 見出しの基準線から缶の上端まで XD は PC 121px・SP 89px（実装は 53px・114px だった） */
.limited-beer-wrapper .product-cards-container {
    margin-top: -65px;
}

@media (min-width: 1024px) {
    .limited-beer-wrapper .product-cards-container {
        margin-top: 68px;
    }
}

/* 「新年限定！」の吹き出し: XD(261016) は青緑 #0E7F8C・白文字・影なし（以前は 1001/1002 の白地・紫文字のまま）。
   位置は XD どおり、列の中央から右へ SP 65.5px・PC 126px、缶の上端から SP 154px・PC 296px */
.limited-beer-wrapper .new-year-badge {
    top: calc(40px + 154px);
    left: calc(50% + 65.5px);
    width: 64px;
}

@media (min-width: 1024px) {
    .limited-beer-wrapper .new-year-badge {
        top: 296px;
        left: calc(50% + 126px);
    }
}

/* SP: KV と極夢の間に白い隙間が出ていた（2026-10-19 お戻し）。XD は極夢の背景が KV の下端より 3px 上から始まる */
@media (max-width: 599px) {
    #set-gokuyume {
        margin-top: -3px;
    }
}

/* SP:「グッズの開発秘話はこちら」が下の「マジ福袋限定特典！」にくっついていた（2026-10-19 お戻し P36）。
   上の「さらに詳しい香味を見る」→「マジ福袋2027 厳選クラフトビール」と同じ 68px あける */
@media (max-width: 1023px) {
    .limited-goods-wrapper .goods-story-link {
        margin-bottom: 68px;
    }
}

/* ランタンの <a> が inline-block のままだと、行の高さ（下の余白）ぶんナビの箱がランタンより高くなる
   （SP 54px → 62px）。位置の計算はナビの高さ = ランタンの高さが前提なので、その差が KV と極夢の間の
   白い隙間になっていた（2026-10-19 お戻し）。block にして余白を無くし、PC の ul の -9px の補正も外す */
#sticky-nav-origin .nav-anchor,
#fixed-nav .nav-anchor {
    display: block;
}

@media (min-width: 1024px) {
    #sticky-nav-origin ul {
        margin-bottom: 0;
    }
}

/* ========================================
 * 昨年度購入者のレビュー: ReviCo（2026-10-20）
 * 見た目は yonasato.com 共通の custom_revico.css（商品詳細ページと同じ）。ここではページ固有の
 * レイアウト（商品詳細の page_detail.css 相当: PC は左に星・右に一覧、SP は縦積み）とタブだけを持つ
 * ======================================== */
/* PC の .wrapper は左右 100px の余白があるので、中身 1200px（商品詳細ページと同じ）にするには 1400px */
#reviews .wrapper {
    max-width: 1400px;
}

.reviews-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 8px;
}

.reviews-tab {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
    padding: 8px 12px;
    font: inherit;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.3;
    color: #000;
    background-color: #fff;
    border: 3px solid var(--tab-color);
    border-radius: 999px;
    cursor: pointer;
}

/* セットの色は比較表の見出しと同じ。文字は黒（白文字やセット色の文字は WCAG AA のコントラストに届かない） */
.reviews-tab--gokuyume { --tab-color: #DBC837; }
.reviews-tab--matsu { --tab-color: #11AEB4; }
.reviews-tab--take { --tab-color: #009630; }
.reviews-tab--ume { --tab-color: #EF5D5D; }

.reviews-tab[aria-selected="true"] {
    background-color: var(--tab-color);
}

.reviews-tab:focus-visible {
    outline: 3px solid #112240;
    outline-offset: 2px;
}

#reviews #revico-comment {
    position: relative;
    color: #000;
    background-color: #fff;
}

#reviews .revico-wrap {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
}

#reviews .revico-content-star,
#reviews .revico-content-review {
    width: 100%;
}

/* 「レビューを書く」は昨年の商品へのレビュー投稿に飛ぶので出さない */
#reviews .revico-comment-footer--writebutton {
    display: none !important;
}

@media (min-width: 1024px) {
    .reviews-tabs {
        flex-wrap: nowrap;
        gap: 16px;
        max-width: 800px;
        margin: 8px auto 0;
    }

    .reviews-tab {
        flex: 1 1 0;
        font-size: 1.6rem;
    }

    /* XD(PC): 見出しは中央（SP は左） */
    #reviews .reviews-title {
        text-align: center;
    }

    #reviews .revico-wrap {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 60px;
    }

    /* 商品詳細ページは「星 = 全体 − 800px」だが、LP は 1024px から2列なので星の列を 320px に固定し、
       一覧のほうを縮める（中身 1000px 以下だと星の列が潰れて星が3つしか見えなかった） */
    #reviews .revico-content-star {
        flex: 0 0 320px;
        width: 320px;
        margin-top: 34px;
        margin-right: 40px;
    }

    #reviews .revico-content-review {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 800px;
    }
}

@media (min-width: 1400px) {
    #reviews .revico-content-star {
        margin-right: 80px;
    }
}

/* ========================================
 * 2026-10-21 修正（v9）
 * ======================================== */

/* ③ 商品詳細モーダル（PC）: 画面の高さに収まらず、下の矢印ボタンやカードの下側が切れていた。
   幅を「画面幅の30%」と「画面の高さから逆算した幅」の小さいほうにし、上の 100px の空きも詰める。
   逆算の目安: カードの写真は幅の約0.66倍、文字の部分と上下の余白・矢印で約420px。
   上の余白 28px は右上の「×」のぶん。
   それでも収まらない低い画面では、モーダルの中を縦にスクロールできるようにする */
@media (min-width: 768px) {
    #modal {
        top: 0;
        right: 0;
        left: 0;
        width: min(30vw, max(280px, calc((100vh - 420px) * 1.5)));
        max-height: 100vh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #modal-inner-wrapper {
        padding: 28px 0 12px;
    }
}

/* ⑤「グッズの開発秘話はこちら」を一時非表示にしたため、下の見出し「マジ福袋限定特典！」が
   グッズにくっつかないよう間隔を取る。SP はグッズの説明文の下端から 68px（下余白 20px ＋ 48px）、
   PC はボタンがあったときと同じくらい（61px → 80px）。
   ボタンを戻すと、間に <p> が入ってこの指定は当たらなくなる（自動で元の間隔に戻る） */
.limited-goods-wrapper .goods-items-container + .goods-category-title {
    margin-top: 48px;
}

@media (min-width: 1024px) {
    .limited-goods-wrapper .goods-items-container + .goods-category-title {
        margin-top: 80px;
    }
}

/* ⑥ 比較表のボタンの行: 一般販売開始（11/3 10:00）までは行ごと隠す。
   時刻になると main_v9.js が .is-sale-open を付けて表示する（カウントダウンと同じ判定） */
.comparison-cart-row {
    display: none;
}

.comparison-cart-row.is-sale-open {
    display: table-row;
}

/* ⑦ 注意事項の折り畳み: 「配送について」が少し見えるところで下端をフェードさせて畳む。
   高さは main_v9.js が測って max-height に入れる */
.notes-wrap .notes-content.is-collapsible {
    position: relative;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.notes-wrap .notes-content.is-collapsible::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(246, 247, 247, 0), #F6F7F7);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.notes-wrap .notes-content.is-collapsed::after {
    opacity: 1;
}

/* ボタンは比較表のボタンと同じピル型（白地・黒の太線） */
.notes-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 46px;
    margin: 16px auto 0;
    padding: 6px 24px;
    font: inherit;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.3;
    color: #000;
    background-color: #fff;
    border: 3px solid #000;
    border-radius: 100px;
    cursor: pointer;
    transition: border-width 0.2s ease;
}

.notes-more[hidden] {
    display: none;
}

.notes-more:active {
    border-width: 5px;
}

.notes-more:focus-visible {
    outline: 3px solid #112240;
    outline-offset: 2px;
}

@media (min-width: 1024px) {
    .notes-more:hover {
        border-width: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notes-wrap .notes-content.is-collapsible,
    .notes-wrap .notes-content.is-collapsible::after {
        transition: none;
    }
}
