/* =========================================
   HB 2026 CSS - Margin/Spacing tuned (PC + SP)
   - 余白（margin/padding/line-height）を「詰める」
   - 章区切りは残しつつ、カード内リズムをタイトに
   - SPも同じ思想で再調整
========================================= */

/* =========================
   Variables
========================= */
:root {
    /* Brand */
    --hb-primary: #b2514a;
    --hb-primary-dark: #a13c3c;
    --hb-primary-darker: #812c30;

    /* Surface / BG */
    --hb-accent-bg: #faf5f3;
    --hb-surface: #ffffff;
    --hb-surface-soft: #f7f7f7;

    /* Text */
    --hb-text: #333333;
    --hb-muted: #777777;

    /* Border / Link */
    --hb-border: #dddddd;
    --hb-link: #0066cc;

    /* Radius */
    --hb-radius-sm: 4px;
    --hb-radius-md: 10px;
    --hb-radius-lg: 14px;
    --hb-radius-xl: 18px;

    /* Shadow */
    --hb-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
    --hb-shadow-strong: 0 10px 28px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --hb-transition-fast: 0.18s ease;
    --hb-transition-normal: 0.28s ease;

    /* Layout */
    --hb-max-width: 1180px;
    --hb-container-pad: 16px;

    /* Spacing scale（詰め版） */
    --hb-space-1: 6px;
    --hb-space-2: 10px;
    --hb-space-3: 14px;
    --hb-space-4: 52px;
    --hb-space-5: 26px;
    --hb-space-6: 40px;
    --hb-space-7: 56px;
    --hb-space-8: 80px;

    /* Section padding（詰め版） */
    --hb-section-pad: 52px;
    --hb-section-pad-sp: 20px;

    /* Fonts */
    --hb-font-size-base: 17px;

    --hb-font-size-heading-xxl: 2.5rem;
    --hb-font-size-heading-xl: 2.05rem;
    --hb-font-size-heading-lg: 1.75rem;
    --hb-font-size-heading-md: 1.5rem;
    --hb-font-size-heading-sm: 1.25rem;

    --hb-font-size-lead: 1.22rem;
    --hb-font-size-body: 1.08rem;
    --hb-font-size-body-sm: 1.02rem;

    --hb-font-size-caption: 1.02rem;
    --hb-font-size-caption-sm: 0.92rem;

    --hb-font-size-button-lg: 1.12rem;
    --hb-font-size-tiny: 0.82rem;
}

/* =========================
   Reset / Base
========================= */
a {
    color: inherit;
}

.pc {
    display: block;
}

.sp {
    display: none;
}

h3 {
    border: none !important;
}


/* =========================
   Global Wrappers
========================= */
.Happybag_body {
    background: var(--hb-accent-bg);
}

.wrapper_2026 {
    background: var(--hb-accent-bg);
}

.hb-container,
.section_one_inner,
.section_two_inner,
.section_neko_inner {
    max-width: var(--hb-max-width);
    margin: 0 auto;
    line-height: 1.65;
    /* padding: 0 var(--hb-container-pad); */
}

/* =========================
   Hero
========================= */
.oneArea {
    text-align: center;
    background: var(--hb-primary);
}

.oneArea img {
    width: 100%;
    max-width: var(--hb-max-width);
    margin: 0 auto;
    display: block;
}

.oneArea+.section_one {
    padding-top: var(--hb-section-pad);
}

/* =========================
   Section One
========================= */
section.section_one {
    background: var(--hb-accent-bg);
    padding: var(--hb-section-pad) 0;
}

.happybag__wrapper {
    background: var(--hb-surface);
    border-radius: var(--hb-radius-xl);
    box-shadow: var(--hb-shadow-soft);
    padding: var(--hb-space-6) var(--hb-space-5);
}

/* intro */
.happybag_text {
    text-align: center;
}

.happybag_text__w {
    max-width: 1000px;
    margin: 0 auto;
}

/* タイトル */
#content h3 {
    font-size: var(--hb-font-size-heading-lg);
    font-weight: 800;
    margin: 0 0 var(--hb-space-2);
    line-height: 1.3;
}

/* 本文 */
#content p {
    margin: 0 auto;
    max-width: 46em;
    font-size: var(--hb-font-size-body);
    line-height: 1.75;
}

#content p+p {
    margin-top: var(--hb-space-1);
}

.happybag_text .i_image {
    margin-top: 44px;
}

.happybag_text img {
    border-radius: 16px;
}

/* 期間ブロック */
.happybag_kikan {
    margin-top: 36px;
}

.happybag_kikan__e h3 {
    text-align: center;
    margin: 0 0 var(--hb-space-1);
    font-size: var(--hb-font-size-heading-md);
    font-weight: 800;
    color: var(--hb-primary);
    line-height: 1.25;
}

.happybag_kikan__e p {
    margin: 0 0 var(--hb-space-3);
    font-size: 1.65rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.4;
}

.timer {
    text-align: center;
    font-size: var(--hb-font-size-body);
    color: var(--hb-primary);
    margin: 0 0 20px;
    line-height: 1.4;
    margin-bottom: 36px;
}

/* 注意書き */
.happybag_note {
    max-width: 1000px;
    margin: 0 auto;
}

.happybag_note__e {
    background: var(--hb-surface-soft);
    border-radius: var(--hb-radius-lg);
    padding: var(--hb-space-4);
    margin-top: var(--hb-space-3);
    font-size: var(--hb-font-size-body-sm);
    line-height: 1.75;
}

.happybag_note__e h3 {
    font-size: var(--hb-font-size-heading-sm);
    margin: 0 0 var(--hb-space-2);
    padding: 0;
    font-weight: 800;
    text-align: left;
    line-height: 1.3;
    text-align: center;
}

.happybag_note__e ul {
    margin: 0;
    padding-left: 1.2em;
}

.happybag_note__e li {
    list-style: disc;
    margin-bottom: var(--hb-space-1);
    font-size: var(--hb-font-size-body-sm);
    line-height: 1.65;
}

.happybag_note__e li:last-child {
    margin-bottom: 0;
}

.happybag_note__e a {
    color: var(--hb-link);
    text-decoration: underline;
}

/* =========================
   Section Titles
========================= */
.head-border {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hb-space-2);
    font-weight: 900;
    text-align: center;
    margin: 0 auto var(--hb-space-4);
    font-size: var(--hb-font-size-heading-xl);
    line-height: 1.25;
}

.head-border::before,
.head-border::after {
    content: "";
    height: 2px;
    flex: 1 1 0;
    background: var(--hb-border);
}

/* =========================
   NEKO Section
========================= */
section.section_neko {
    padding: var(--hb-section-pad) 0;
    background: linear-gradient(135deg, #fffaf0, #ffe4c4);
}

/* .section_neko_inner {
    padding: 0 var(--hb-container-pad);
} */

.neko h3.head-border {
    color: #333;
}

.neko-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.neko-banner {
    background: #fff;
    border-radius: var(--hb-radius-xl);
    box-shadow: var(--hb-shadow-soft);
    padding: var(--hb-space-5);
    display: flex;
    gap: var(--hb-space-5);
    align-items: stretch;
}

.neko-banner-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    max-width: 1000px;
    margin: auto;
}

.neko-banner-image {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neko-banner-image img {
    border-radius: 16px;
}

.neko-main-title {
    margin: 20px 0 40px;
    font-size: var(--hb-font-size-heading-xl);
    font-weight: 900;
    text-align: center;
    line-height: 1.35;
}

.neko-sub-title {
    margin: 20px auto;
    text-align: center;
    font-size: var(--hb-font-size-body);
    line-height: 1.75;
    max-width: 46em;
}

.neko-price-block {
    margin: 0 0 20px 0;
}

.neko-price-main {
    font-size: 2.05rem;
    font-weight: 900;
    margin: 0;
    text-align: center;
    line-height: 1.15;
}

.neko-set-note {
    display: block;
    margin-top: var(--hb-space-1);
    font-size: var(--hb-font-size-caption-sm);
    color: var(--hb-muted);
    text-align: center;
    line-height: 1.55;
}

.neko-limit {
    margin: var(--hb-space-2) 0 var(--hb-space-3);
    font-size: var(--hb-font-size-body);
    font-weight: 800;
    color: #b25b41;
    text-align: center;
    line-height: 1.55;
}

.neko-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: fit-content;
    margin: 0 auto var(--hb-space-2);
    padding: 12px 22px;
    border-radius: 999px;
    background: #c62828;
    color: #fff !important;
    text-decoration: none;
    font-size: var(--hb-font-size-button-lg);
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform var(--hb-transition-fast), box-shadow var(--hb-transition-fast), filter var(--hb-transition-fast);
    width: 100%;
    max-width: 600px;
}

.neko-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    filter: brightness(1.02);
}

.neko-cta:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.neko-donation-copy {
    margin: 0;
    text-align: center;
    font-size: var(--hb-font-size-caption);
    color: #444;
    line-height: 1.6;
}

.section_neko .bag_list {
    padding: 40px;
    padding: 20px 40px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 10px;

}

/* =========================
   Section Two (grid list)
========================= */
section.section_two {
    background: var(--hb-primary);
    padding: var(--hb-section-pad) 0;
}

.section_two_inner .head-border {
    color: #fff;
}

.section_two_inner .head-border::before,
.section_two_inner .head-border::after {
    background: rgba(255, 255, 255, 0.38);
}

.happybag_anchor__b {
    display: none;
}

/* 商品グリッド（詰め） */
.happybag_item__w {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--hb-space-5);
    row-gap: var(--hb-space-5);
    /* 6→5 */
    padding: 0 0 var(--hb-space-5);
    /* 5/6→4/5 */
    align-items: stretch;
}

/* 外枠 */
.happybag_item__b {
    width: 100%;
    background: transparent;
    border-radius: var(--hb-radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--hb-transition-normal), transform var(--hb-transition-normal), box-shadow var(--hb-transition-normal);
    display: flex;
}

.happybag_item__b.visible {
    opacity: 1;
    transform: translateY(0);
}

.happybag_item__b:hover {
    box-shadow: var(--hb-shadow-strong);
}

/* カード本体（padding詰め） */
.happybag_item__e {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: var(--hb-radius-lg);
    box-shadow: var(--hb-shadow-soft);
    padding: 20px;
    /* 4のまま（20px）で十分タイト */
    display: flex;
    flex-direction: column;
}

/* 画像（下余白詰め） */
.happybag_item__image {
    position: relative;
    border-radius: var(--hb-radius-lg);
    overflow: hidden;
    margin: 0 0 var(--hb-space-2);
    /* 3→2 */
}

.happybag_item__image img {
    width: 100%;
    display: block;
    border-radius: var(--hb-radius-lg);
    transition: transform var(--hb-transition-normal);
}

@media (hover:hover) and (pointer:fine) {
    .happybag_item__image:hover img {
        transform: scale(1.04);
    }
}

/* タイトル（下余白詰め） */
.happybag_item__e h4 {
    font-size: var(--hb-font-size-heading-sm);
    font-weight: 900;
    line-height: 1.45;
    margin: 0 0 var(--hb-space-2);
    /* 3→2 */
    padding: 0 var(--hb-space-1);
    text-align: center;
    min-height: 3.0em;
    /* 3.2→3.0 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 価格（下余白詰め） */
.happybag_item__e h5 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 15px auto;
    text-align: center;
}

span.happybag__tax {
    font-size: 1.12rem;
    font-weight: 700;
}

/* 相当価格（下余白詰め） */
.Happybag__total {
    margin: 0 0 var(--hb-space-3);
    /* 4→3 */
    display: flex;
    justify-content: center;
}

.Happybag__total p {
    margin: 0;
    font-weight: 900;
    font-size: 1.15rem;
    color: #333;
    border-radius: 999px;
    line-height: 1.2;
    color: #b25b41;
}

/* パック内容（padding/間隔詰め） */
.bag_list {
    background: var(--hb-surface-soft);
    border-radius: var(--hb-radius-lg);
    padding: 20px 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--hb-space-1);
    /* 2→1 */
    flex: 1 0 auto;
}

.bag_list h6 {
    margin: 0 0 var(--hb-space-1);
    padding: 0 0 var(--hb-space-1);
    border-bottom: 2px solid var(--hb-border);
    font-size: var(--hb-font-size-body);
    font-weight: 900;
    text-align: center;
    line-height: 1.35;
}

.bag_list ul {
    margin: 0;
    padding-left: 1.2em;
    list-style: disc;
}

.bag_list ul li {
    margin: 0 0 5px;
    /* 6→5 */
    font-size: var(--hb-font-size-body);
    line-height: 1.6;
    text-align: left;
}

.bag_list ul li:last-child {
    margin-bottom: 0;
}

.bag_list .all_item {
    margin-top: auto;
    font-size: var(--hb-font-size-caption-sm);
    font-weight: 800;
    text-align: right;
    color: var(--hb-muted);
    line-height: 1.4;
}

/* ボタン */
.addCart_b {
    margin-to.bag_listp: auto;
    text-align: center;
    margin: 20px 0 0px;
}

.addCart {
    display: inline-block;
    width: 100%;
    max-width: 340px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #c62828;
    color: #fff !important;
    text-decoration: none;
    font-weight: 900;
    font-size: var(--hb-font-size-button-lg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    transition: transform var(--hb-transition-fast), box-shadow var(--hb-transition-fast), filter var(--hb-transition-fast);
}

.addCart:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    filter: brightness(1.02);
}

.addCart:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

p.addCart_kanbai {
    display: inline-block;
    width: 100%;
    max-width: 340px;
    margin: 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: #888;
    color: #fff !important;
    font-weight: 900;
    font-size: var(--hb-font-size-button-lg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

/* 完売オーバーレイ */
.kanbai {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kanbai img {
    max-width: 70%;
    transform: rotate(10deg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

/* =========================
   Back to top
========================= */
.buck_to_top {
    margin: var(--hb-space-5) auto 0;
    /* 6→5 */
    text-align: center;
    width: 220px;
}

.buck_to_top a {
    display: block;
    padding: 12px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: var(--hb-radius-md);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    transition: transform var(--hb-transition-fast), box-shadow var(--hb-transition-fast), filter var(--hb-transition-fast);
}

.buck_to_top a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    filter: brightness(1.02);
}

/* =========================
   Debug Panel
========================= */
#hb-debug-panel {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    padding: 8px 12px;
    border-radius: 6px 6px 0 0;
    color: #fff;
    font-size: var(--hb-font-size-tiny);
    display: block !important;
}

#hb-debug-panel button {
    margin-right: 6px;
    margin-bottom: 6px;
    padding: 4px 7px;
    border-radius: 6px;
    border: none;
    font-size: 10px;
    cursor: pointer;
}

#hb-debug-panel button[data-state="auto"] {
    background: #424242;
    color: #fff;
}

#hb-debug-panel button[data-state="before"] {
    background: #1565c0;
    color: #fff;
}

#hb-debug-panel button[data-state="during"] {
    background: #2e7d32;
    color: #fff;
}

#hb-debug-panel button[data-state="after"] {
    background: #b71c1c;
    color: #fff;
}

#hb-debug-panel button[data-state="newyear"] {
    background: #6a1b9a;
    color: #fff;
}

/* =========================
   Keyframes
========================= */
@keyframes sparkle {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* =========================
   Responsive (SPも詰める)
========================= */
@media screen and (max-width: 780px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    :root {
        /* コンテナ左右の余白を少し広めに（詰め過ぎない） */
        --hb-container-pad: 16px;

        /* セクションの上下余白を増やす */
        --hb-section-pad: 34px;

        /* SP spacing（広め） */
        --hb-space-1: 5px;
        --hb-space-2: 14px;
        --hb-space-3: 18px;
        --hb-space-4: 14px;
        --hb-space-5: 20px;
        --hb-space-6: 30px;
        --hb-space-7: 56px;
        --hb-space-8: 72px;

        /* フォント（SPで読みやすく、やや大きめ） */
        --hb-font-size-base: 18px;

        --hb-font-size-heading-xl: 1.85rem;
        --hb-font-size-heading-lg: 1.55rem;
        --hb-font-size-heading-md: 1.32rem;
        --hb-font-size-heading-sm: 1.18rem;

        --hb-font-size-lead: 1.18rem;
        --hb-font-size-body: 1.12rem;
        --hb-font-size-body-sm: 1.06rem;

        --hb-font-size-caption: 1.00rem;
        --hb-font-size-caption-sm: 0.94rem;

        --hb-font-size-button-lg: 1.10rem;
    }

    /* SPは行間も少しゆったり */
    body {
        line-height: 1.8;
    }


    /* セクション */
    section.section_one,
    section.section_neko,
    section.section_two {
        padding: var(--hb-section-pad) 0;
    }

    .hb-container,
    .section_one_inner,
    .section_two_inner,
    .section_neko_inner {
        max-width: var(--hb-max-width);
        margin: 0 auto;
        padding: 0 var(--hb-container-pad);
    }

    /* Hero直後の上余白も少し足す */
    .oneArea+.section_one {
        padding-top: calc(var(--hb-section-pad) + 10px);
    }

    /* wrapper：カード内の余白を増やす */
    .happybag__wrapper {
        padding: var(--hb-space-6) var(--hb-space-4);
        border-radius: var(--hb-radius-lg);
    }

    /* 章タイトル */
    #content h3 {
        font-size: var(--hb-font-size-heading-lg);
        margin: 0 0 var(--hb-space-3);
        line-height: 1.35;
    }

    /* 本文：中央寄せのままだと“間延び”しやすいので、SPは読みやすい左寄せ寄りへ */
    #content p {
        font-size: var(--hb-font-size-body);
        max-width: 42em;
        line-height: 1.9;
        text-align: left;
        padding: 0 var(--hb-space-4);
    }

    #content p+p {
        margin-top: var(--hb-space-2);
    }

    /* 期間ブロック */
    .happybag_kikan {
        margin-top: var(--hb-space-6);
    }

    .happybag_kikan__e h3 {
        margin-bottom: var(--hb-space-2);
    }

    .happybag_kikan__e p {
        margin: 0 0 var(--hb-space-4);
        line-height: 1.5;
    }

    .timer {
        margin: 0 0 var(--hb-space-5);
        margin-bottom: var(--hb-space-6);
    }

    /* 注意書き：padding増やして読みやすく */
    .happybag_note__e {
        padding: var(--hb-space-5);
        line-height: 1.9;
    }

    .happybag_note__e li {
        margin-bottom: var(--hb-space-1);
        line-height: 1.8;
    }

    /* 見出し帯：SPは線なしのまま、上下余白を増やす */
    .head-border {
        font-size: var(--hb-font-size-heading-xl);
        margin: inherit;
    }

    .head-border::before,
    .head-border::after {
        content: none;
    }

    /* NEKO */
    .neko-inner {
        padding: var(--hb-space-5) 0 var(--hb-space-6);
    }

    .neko-banner {
        flex-direction: column-reverse;
        padding: var(--hb-space-6) var(--hb-space-4);
        gap: var(--hb-space-5);
    }

    .neko-main-title {
        font-size: var(--hb-font-size-heading-lg);
        /* margin: 0 0 var(--hb-space-4); */
    }

    .neko-sub-title {
        text-align: left;
        margin: ;
        line-height: 1.9;
        padding: 0 var(--hb-space-4);
    }

    .neko-price-main {
        font-size: 1.9rem;
    }

    .neko-limit {
        margin: var(--hb-space-3) 0 var(--hb-space-4);
    }

    .neko-cta {
        width: 100%;
        max-width: 520px;
        min-height: 50px;
        margin: 0 auto var(--hb-space-3);
    }

    /* 商品グリッド：SPは1カラムのまま、間隔を広げる */
    .happybag_item__w {
        grid-template-columns: 1fr;
        row-gap: var(--hb-space-6);
        padding: var(--hb-space-5) 0 var(--hb-space-6);
    }

    /* 商品カード：内側paddingを増やす */
    .happybag_item__e {
        padding: var(--hb-space-5);
    }

    .happybag_item__image {
        margin: 0 0 var(--hb-space-3);
    }

    .happybag_item__e h4 {
        margin: 0 0 var(--hb-space-3);
        font-size: var(--hb-font-size-heading-sm);
        line-height: 1.55;
    }


    /* 価格：余白を増やす（ここが詰まりの体感ポイント） */
    .happybag_item__e h5 {
        font-size: 1.95rem;
        margin: inherit;
        margin-bottom: 15px;
        line-height: 1.15;

    }

    .Happybag__total {
        margin: 0 0 15px;
    }

    .Happybag__total p {
        font-size: 1.0rem;
    }

    .release_date {
        margin: 0 0 var(--hb-space-3);
        font-size: var(--hb-font-size-heading-sm);
    }

    .bag_list {
        padding: 15px 20px;
    }

    .section_neko .bag_list {
        padding: 15px 20px;

    }

    .bag_list ul li {
        font-size: 1rem;
        margin: 0 0 2px;
    }
    .happybag_kikan {
        margin-top: 40px;
    }
}

/* ボタン：タップしやすく */
.addCart,
p.addCart_kanbai {
    max-width: 100%;
    padding: 14px 18px;
}

/* TOPへ戻る：間隔を広げる */
.buck_toztop {
    margin: var(--hb-space-6) auto 0;
    width: 240px;
}