/* グッズTOP（Issue #326で刷新：帯見出し＋白カード） */

.goods-main {
    min-width: 0;
}

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

.goods-section {
    margin-bottom: 30px;
}

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

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

/* 現在販売中 */
.goods-sale-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.goods-sale-card {
    background: #fff;
    border: 1px solid var(--theme-border-soft);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(61, 44, 46, .06);
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goods-type-chip {
    display: inline-block;
    background: var(--theme-blush);
    color: var(--theme-brand);
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
}

.goods-sale-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--theme-text);
    line-height: 1.45;
}

.goods-sale-event {
    font-size: 13px;
    color: var(--theme-text-sub);
}

.goods-sale-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 2px;
}

.goods-sale-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--theme-text);
}

.goods-sale-info-item svg {
    color: var(--theme-brand);
    flex: 0 0 auto;
}

.goods-sale-period {
    font-size: 12.5px;
    color: var(--theme-text-muted);
}

.goods-sale-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.goods-official-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-btn-from), var(--theme-primary));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 22px;
    text-decoration: none;
}

.goods-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--theme-brand);
    border: 1.5px solid var(--theme-border);
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 22px;
    text-decoration: none;
}

.goods-empty-card {
    background: #fff;
    border: 1px solid var(--theme-border-soft);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(61, 44, 46, .06);
    padding: 28px 20px;
    text-align: center;
}

.goods-empty-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 6px;
}

.goods-empty-text {
    font-size: 13px;
    color: var(--theme-text-sub);
}

/* 集計情報 */
.goods-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.goods-stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--theme-border-soft);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(61, 44, 46, .06);
    padding: 16px 18px;
    box-sizing: border-box;
    text-decoration: none;
}

.goods-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text-sub);
}

.goods-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--theme-text);
    line-height: 1.2;
}

.goods-stat-value small {
    font-size: 14px;
    font-weight: 700;
    margin-left: 2px;
}

.goods-stat-sub {
    font-size: 12.5px;
    color: var(--theme-text-muted);
}

.goods-stat-bar {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: var(--theme-tint);
    overflow: hidden;
    margin-top: 4px;
}

.goods-stat-bar-value {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--theme-btn-from), var(--theme-primary));
}

.goods-stat-note {
    font-size: 12px;
    color: var(--theme-text-muted);
    line-height: 1.6;
    margin: 10px 2px 0;
}

/* 推し活状況 */
.goods-status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.goods-status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--theme-border-soft);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(61, 44, 46, .06);
    padding: 16px 18px;
    box-sizing: border-box;
    text-decoration: none;
}

.goods-status-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--theme-blush);
    color: var(--theme-brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-status-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.goods-status-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--theme-text);
}

.goods-status-value {
    font-size: 13px;
    color: var(--theme-text-sub);
    line-height: 1.5;
}

.goods-status-subvalue {
    color: var(--theme-text-muted);
    font-size: 12px;
    margin-left: 4px;
}

.goods-status-arrow {
    flex: 0 0 auto;
    font-size: 22px;
    color: var(--theme-text-muted);
    line-height: 1;
}

.goods-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.goods-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--theme-tint);
    overflow: hidden;
}

.goods-progress-value {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--theme-btn-from), var(--theme-primary));
}

.goods-progress-rate {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--theme-brand);
}

@media (min-width: 640px) {
    .goods-sale-grid {
        grid-template-columns: 1fr 1fr;
    }

    .goods-status-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

@media (min-width: 1100px) {
    .goods-section-title {
        font-size: 21px;
    }

    .goods-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .goods-status-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .goods-status-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        position: relative;
        padding: 18px;
    }

    .goods-status-arrow {
        position: absolute;
        top: 16px;
        right: 16px;
    }
}

/* ワイド画面用サイド情報（ライブTOPと共通の見た目） */
.live-side-info{
    display:none;
}

.live-side-card{
    min-width:0;
    padding:16px;
    box-sizing:border-box;
    border:1px solid var(--theme-border-soft);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 24px rgba(var(--theme-brand-rgb),.07);
}

.live-side-title{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    color:var(--theme-text);
    font-size:16px;
    font-weight:bold;
    line-height:1.5;
}

.live-side-dot{
    flex:0 0 auto;
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--theme-primary);
}

.live-side-list{
    list-style:none;
    margin:0;
    padding:0;
}

.live-side-list li + li{
    margin-top:10px;
}

.live-side-list a{
    display:block;
    color:var(--theme-text);
    text-decoration:none;
}

.live-side-date{
    display:block;
    font-size:11px;
    color:var(--theme-text-muted);
    line-height:1.5;
}

.live-side-item-title{
    display:block;
    font-size:13.5px;
    font-weight:bold;
    line-height:1.5;
}

.live-side-empty{
    font-size:12.5px;
    color:var(--theme-text-muted);
    margin:0;
    line-height:1.6;
}

.live-side-more{
    display:block;
    margin-top:12px;
    text-align:right;
    color:var(--theme-primary);
    font-size:13px;
    font-weight:bold;
    line-height:1.4;
    text-decoration:none;
}

.live-side-reminder-list{
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    max-height:150px;
}

.live-side-info .live-side-reminder-list{
    max-height:245px;
}

/* サイド列は画面の高さに合わせて表示量を減らす（HOMEと同じ段階） */
@media(max-height:999px){
    .live-side-info .live-side-list li:nth-child(n+5){
        display:none;
    }

    .live-side-info .live-side-reminder-list{
        max-height:150px;
    }
}

@media(max-height:849px){
    .live-side-info .live-side-list li:nth-child(n+4){
        display:none;
    }

    .live-side-info .live-side-reminder-list{
        max-height:103px;
    }
}

/* ライブ画面は本文（1348px）＋広告レールの分だけHOMEより広い幅が必要なため、
   専用列は2150px以上で、本文とレールの間の空き空間に置く */
@media(min-width:2150px){
    .live-side-info{
        display:flex;
        flex-direction:column;
        gap:12px;
        position:fixed;
        top:197px;
        left:calc(var(--pc-side-nav-width,220px) + 30px + 1348px + 24px);
        width:calc(100vw - var(--pc-side-nav-width,220px) - 1630px);
        max-width:440px;
        z-index:40;
        max-height:calc(100vh - 237px);
        max-height:calc(100dvh - 237px);
        overflow-y:auto;
        scrollbar-width:none;
        overscroll-behavior:contain;
    }

    .live-side-info::-webkit-scrollbar{
        display:none;
    }
}
