/* グッズ一覧（刷新：帯見出し＋白カード） */

/* ==========================
   スクロール領域
========================== */

.page-scroll{
    width:100%;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

.page-scroll::-webkit-scrollbar{
    display:none;
}


/* ==========================
   コンテナ
========================== */

.goods-list-container{
    width:100%;
    max-width:1348px;
    margin:0;
    padding:6px 16px 40px;
    box-sizing:border-box;
}

.goods-list-container .back-button{
    display:inline-block;
    margin:2px 0 10px;
}


/* ==========================
   販売状態選択（フィルターカード）
========================== */

.goods-status-select{
    margin-bottom:20px;
}

.goods-status-tabs{
    display:flex;
    gap:5px;
    padding:5px;
    background:#fff;
    border:1px solid var(--theme-border-soft);
    border-radius:999px;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
}

.goods-status-tab{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:40px;
    padding:0 6px;
    border:none;
    border-radius:999px;
    background:transparent;
    color:var(--theme-text-sub);
    font-family:inherit;
    font-size:13.5px;
    font-weight:bold;
    white-space:nowrap;
    cursor:pointer;
}

.goods-status-tab .cnt{
    padding:2px 8px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-primary);
    font-size:11.5px;
}

.goods-status-tab.active{
    background:linear-gradient(135deg, var(--theme-btn-from), var(--theme-primary));
    color:#fff;
}

.goods-status-tab.active .cnt{
    background:rgba(255,255,255,.25);
    color:#fff;
}

@media (min-width: 900px){
    .goods-status-tab{
        min-height:44px;
        font-size:14.5px;
    }
}

/* スマホでは「（期間限定）」を省略して1行に収める */
@media (max-width: 767px){
    .goods-status-tab{
        font-size:12.5px;
        gap:5px;
    }

    .goods-status-tab-note{
        display:none;
    }
}

/* ==========================
   販売状態セクション
========================== */

.goods-list-section-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0 0 14px;
    color:var(--theme-heading);
    font-size:19px;
    font-weight:bold;
    line-height:1.4;
}

.goods-list-section-title::before{
    content:"";
    flex:0 0 auto;
    width:5px;
    height:22px;
    border-radius:3px;
    background:linear-gradient(180deg,var(--theme-btn-from),var(--theme-primary));
}

.goods-status-section{
    width:100%;
    margin-bottom:26px;
}

.goods-status-section[hidden]{
    display:none;
}


/* ==========================
   グッズグループ（白カード）
========================== */

.goods-group-section{
    width:100%;
    margin-bottom:14px;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    background:#fff;
    box-shadow:0 6px 18px rgba(61,44,46,.06);
    overflow:hidden;
}

.goods-group-header{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    width:100%;
    padding:14px 16px;
    box-sizing:border-box;
}

.goods-group-section.open .goods-group-header{
    border-bottom:1px solid var(--theme-border-soft);
}

.goods-group-toggle{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    width:100%;
    padding:0;
    border:0;
    background:transparent;
    color:inherit;
    font-family:inherit;
    text-align:left;
    cursor:pointer;
}

.goods-group-toggle > span:first-child{
    min-width:0;
}

.goods-group-title{
    display:block;
    color:var(--theme-text);
    font-size:15.5px;
    font-weight:bold;
    line-height:1.5;
    word-break:break-word;
}

.goods-group-total{
    display:block;
    margin-top:4px;
    color:var(--theme-brand);
    font-size:12.5px;
    font-weight:bold;
    line-height:1.5;
}

.goods-event{
    display:block;
    margin-top:3px;
    color:var(--theme-text-sub);
    font-size:12px;
    line-height:1.5;
    word-break:break-word;
}

.sales-period{
    display:block;
    margin-top:3px;
    color:var(--theme-text-muted);
    font-size:11.5px;
    line-height:1.5;
    word-break:break-word;
}

.goods-group-arrow{
    flex-shrink:0;
    margin-top:4px;
    color:var(--theme-primary);
    font-size:12px;
    transition:transform .2s;
}

.goods-group-section.open .goods-group-arrow{
    transform:rotate(180deg);
}


/* ==========================
   グループ内容
========================== */

.goods-group-content{
    display:none;
    flex-direction:column;
    gap:12px;
    padding:14px 16px 16px;
}

.goods-group-section.open .goods-group-content{
    display:grid;
    grid-template-columns:1fr;
}


/* ==========================
   公式情報・関連イベント
========================== */

.official-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:9px 16px;
    box-sizing:border-box;
    border:1.5px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-brand);
    font-family:inherit;
    font-size:13.5px;
    font-weight:bold;
    text-decoration:none;
}

.official-btn:hover{
    opacity:.85;
}

.related-event-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    align-self:flex-end;
    min-height:34px;
    margin:8px 0 0;
    padding:6px 14px;
    box-sizing:border-box;
    border:1.5px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-brand);
    font-size:13px;
    font-weight:bold;
    text-align:center;
    text-decoration:none;
}

.related-event-btn:hover{
    opacity:.85;
}


/* ==========================
   グッズカード
========================== */

.goods-card{
    padding:14px 16px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:16px;
    background:#fff;
    box-shadow:0 3px 10px rgba(61,44,46,.05);
}

.goods-name{
    margin:0 0 4px;
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
    line-height:1.5;
    word-break:break-word;
}

.goods-info{
    color:var(--theme-brand);
    font-size:14px;
    font-weight:bold;
    line-height:1.5;
}


/* ==========================
   公式画像ボタン
========================== */

.official-image-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:40px;
    margin:10px 0 0;
    padding:8px 14px;
    box-sizing:border-box;
    border:1.5px solid var(--theme-border);
    border-radius:999px;
    background:#fff;
    color:var(--theme-brand);
    font-family:inherit;
    font-size:13px;
    font-weight:bold;
    cursor:pointer;
}

.official-image-btn::before{
    content:"▧";
    margin-right:7px;
    font-size:16px;
}

.official-image-btn:hover{
    opacity:.85;
}

.official-image-btn:focus-visible,
.official-image-modal-close:focus-visible{
    outline:3px solid var(--theme-border);
    outline-offset:2px;
}

.minaca-checker-btn{
    display:flex;
    width:100%;
    margin:10px 0 0;
    box-sizing:border-box;
}


/* ==========================
   公式画像ポップアップ
========================== */

.official-image-modal{
    position:fixed;
    inset:0;
    z-index:2000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:clamp(8px,3vw,24px);
    box-sizing:border-box;
    isolation:isolate;
}

.official-image-modal[hidden]{display:none !important;}

.official-image-modal-overlay{
    position:absolute;
    inset:0;
    z-index:-1;
    background:rgba(24,18,21,.72);
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
}

.official-image-modal-content{
    position:relative;
    display:flex;
    flex-direction:column;
    width:min(100%,900px);
    max-height:calc(100vh - 32px);
    max-height:calc(100dvh - 32px);
    padding:20px;
    box-sizing:border-box;
    border:1px solid rgba(255,255,255,.7);
    border-radius:18px;
    background:#fff;
    box-shadow:0 18px 60px rgba(0,0,0,.3);
    overflow:auto;
    overscroll-behavior:contain;
}

.official-image-modal-title{
    flex:0 0 auto;
    padding:0 44px 12px 0;
    color:var(--theme-text);
    font-size:15px;
    font-weight:bold;
    line-height:1.5;
    overflow-wrap:anywhere;
}

.official-image-wrapper{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:0;
    width:100%;
}

#official-image-modal-image{
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:calc(100vh - 150px);
    max-height:calc(100dvh - 150px);
    object-fit:contain;
}

.official-image-modal-content.is-scrollable-image .official-image-wrapper{
    align-items:flex-start;
    max-height:calc(100vh - 150px);
    max-height:calc(100dvh - 150px);
    overflow-y:auto;
    overscroll-behavior:contain;
}

.official-image-modal-content.is-scrollable-image #official-image-modal-image{
    max-height:none;
}

.official-image-modal-close{
    position:absolute;
    top:10px;
    right:10px;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    padding:0;
    border:0;
    border-radius:50%;
    background:var(--theme-blush);
    color:var(--theme-brand);
    font-size:27px;
    line-height:1;
    cursor:pointer;
}

.official-image-modal-source{
    flex:0 0 auto;
    margin-top:10px;
    color:var(--theme-text-muted);
    font-size:11px;
    line-height:1.5;
    text-align:center;
}

body.official-image-modal-open{overflow:hidden;}


/* ==========================
   購入情報
========================== */

.purchase-info{
    margin-top:12px;
    padding-top:10px;
    border-top:1px solid var(--theme-border-soft);
}

.purchase-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    color:var(--theme-text);
    font-size:13.5px;
    font-weight:bold;
    line-height:1.8;
}

.quantity-control{
    display:flex;
    align-items:center;
    gap:6px;
}

.quantity-btn{
    width:34px;
    height:34px;
    padding:0;
    border:1.5px solid var(--theme-border);
    border-radius:50%;
    background:#fff;
    color:var(--theme-brand);
    font-size:18px;
    line-height:1;
    cursor:pointer;
}

.quantity-control input{
    width:52px;
    height:36px;
    padding:0 5px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:10px;
    background:#fff;
    color:var(--theme-text);
    text-align:center;
    font-family:inherit;
    font-size:16px;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button{
    margin:0;
}


/* ==========================
   メモ
========================== */

.memo-area{
    margin-top:10px;
}

.memo-area label{
    display:block;
    margin-bottom:6px;
    color:var(--theme-text-sub);
    font-size:12.5px;
    font-weight:bold;
}

.goods-memo-input{
    width:100%;
    min-height:56px;
    padding:10px 12px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:12px;
    background:#fff;
    color:var(--theme-text);
    font-family:inherit;
    font-size:16px;
    line-height:1.5;
    resize:vertical;
}


/* ==========================
   データなし
========================== */

.no-goods{
    width:100%;
    padding:34px 16px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:18px;
    background:#fff;
    color:var(--theme-text-muted);
    font-size:13.5px;
    text-align:center;
}


/* ==========================
   タブレット・PC
========================== */

@media(min-width:768px){
    .goods-list-container{
        padding:6px 30px 48px;
    }

    .goods-list-section-title{
        font-size:21px;
    }

    .goods-group-header{
        padding:16px 20px;
    }

    .goods-group-content{
        padding:16px 20px 20px;
    }
}

@media(min-width:900px){
    .goods-group-section.open .goods-group-content{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .official-btn{
        grid-column:1 / -1;
    }
}

@media(min-width:1250px){
    .goods-group-section.open .goods-group-content{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}


/* ==========================
   スマートフォン
========================== */

@media(max-width:600px){
    .official-image-modal{
        padding:10px;
    }

    .official-image-modal-content{
        max-height:calc(100vh - 20px);
        max-height:calc(100dvh - 20px);
        padding:10px;
        border-radius:14px;
    }

    #official-image-modal-image{
        max-height:calc(100vh - 130px);
        max-height:calc(100dvh - 130px);
    }

    .official-image-modal-content.is-scrollable-image .official-image-wrapper{
        max-height:calc(100vh - 130px);
        max-height:calc(100dvh - 130px);
    }
}

@media(max-width:360px){
    .goods-group-header{
        padding:12px 13px;
    }

    .goods-card{
        padding:12px;
    }

    .quantity-btn{
        width:32px;
        height:32px;
    }

    .quantity-control input{
        width:48px;
        height:34px;
    }
}

/* ==========================
   年見出し・発売日
========================== */

.goods-year-heading{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:8px;
}

.goods-year-label{
    flex:0 0 auto;
    padding:4px 14px;
    border-radius:999px;
    background:var(--theme-blush);
    color:var(--theme-heading);
    font-size:15px;
    font-weight:bold;
    line-height:1.5;
}

.goods-year-count{
    flex:0 0 auto;
    color:var(--theme-text-muted);
    font-size:11.5px;
}

.goods-year-line{
    flex:1;
    height:1px;
    background:var(--theme-border-soft);
}

.goods-release-date{
    margin-top:2px;
    color:var(--theme-text-muted);
    font-size:11.5px;
    line-height:1.5;
}
