@charset "UTF-8";

/* ==========================================================================
   Existing [prize_list] Styles (View A/B/C)
   ========================================================================== */

/* Common Layout */
.prize-list-wrapper {
    margin-top: 0;
}

.prz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 0;
}

details .prz-grid,
.da-details .prz-grid,
.accordion-content .prz-grid,
.toggle-content .prz-grid {
    padding-bottom: 40px !important;
}

/* --- View A Styles (Ported from Inline) --- */
.tb-view-a-item {
    margin-bottom: 32px;
}

.tb-view-a-img-wrap {
    text-align: center;
    margin: 8px 0 14px;
}

.tb-view-a-img {
    display: block;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.tb-view-a-info {
    padding: 18px 12px;
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 28px auto;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.55;
}

.tb-view-a-ref {
    display: block;
    font-size: 12px;
}

.tb-view-a-row {
    display: block;
    padding: 2px 0;
}

/* --- View B & C Components --- */
.prz-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    height: 100%;
}

.prz-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.prz-row.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .prz-row {
        grid-template-columns: 1fr;
    }
}

.prz-title-wrap {
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 8px;
    flex-grow: 1;
}

.prz-b-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
    padding: 8px 4px;
    margin-bottom: 4px;
    background-color: #fafafa;
    width: 100%;
}

.prz-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.prz-imgbox {
    width: min(100%, 600px);
    aspect-ratio: 1/1;
    margin: 0 auto;
    background-color: #f0f0f0;
    background-image: var(--bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .prz-imgbox.is-wide {
        aspect-ratio: 16/9 !important;
    }
}

@media (min-width: 769px) {
    .prize-list-wrapper .prz-row.is-both-wide .prz-imgbox {
        aspect-ratio: 4/3 !important;
    }
}

.prz-imgbox>img {
    display: none !important;
}

.prz-ref {
    display: block;
    font-size: 12px;
}

.prz-ref a {
    color: #2271b1;
    text-decoration: underline;
}

.prz-ref a:hover,
.prz-ref a:focus {
    color: #135e96;
}

.has-note-row .prz-note {
    display: block;
    font-size: 12px;
    color: #d00;
    text-align: center;
    line-height: 1.2;
    min-height: 1.2em;
}

.prz-note {
    display: block;
    font-size: 12px;
    color: #d00;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .has-note-row .prz-note {
        min-height: 0;
    }

    .prz-note:empty {
        display: none;
    }
}

/* Load More Button */
.prz-load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.prz-load-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #fff;
    border: 1px solid #333;
    color: #333;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-decoration: none;
    user-select: none;
}

.prz-load-more-btn:hover {
    background: #333;
    color: #fff;
}

/* View C (Table) */
.prz-table-wrap {
    width: 100%;
    overflow-x: auto;
}

table.prz-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.prz-table col.col-left {
    width: 1%;
}

.prz-table col.col-name {
    width: auto;
}

details .prz-table-wrap,
.da-details .prz-table-wrap,
.accordion-content .prz-table-wrap,
.toggle-content .prz-table-wrap {
    padding-bottom: 40px !important;
}

.prz-table th,
.prz-table td {
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 10px;
    vertical-align: middle;
}

.prz-table td:first-child {
    padding: 8px;
}

.prz-c-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 0;
}

.prz-c-imgbox {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.prz-c-imgbox img {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.prz-c-date-top {
    color: #d00;
    font-size: 12px;
    line-height: 1.2;
    margin: 0 0 4px 0;
    text-align: left;
    white-space: nowrap;
}

.prz-c-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-weight: 600;
}

.prz-th-pc {
    display: inline;
}

.prz-th-sp {
    display: none;
}

@media (max-width: 600px) {
    .prz-th-pc {
        display: none;
    }

    .prz-th-sp {
        display: inline;
    }

    .prz-table th,
    .prz-table td {
        padding: 6px 8px;
    }

    .prz-table td:first-child {
        padding: 6px 8px;
    }

    .prz-c-imgbox {
        width: 100px;
    }

    .prz-c-imgbox img {
        max-height: 100px;
    }

    .prz-table col.col-left {
        width: 0.01%;
    }

    .prz-c-date-top {
        font-size: 11px;
        margin: 0 0 3px 0;
    }
}


/* ==========================================================================
   New Unified Styles (Ported from [prize_data] & [prize_monthly])
   ========================================================================== */

/* 1. Basic Layout (Card & Grid) */
.tb-prize-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .tb-prize-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.tb-prize-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.tb-prize-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tb-card-img {
    position: relative;
    aspect-ratio: 1/1;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.tb-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tb-prize-card:hover .tb-card-img img {
    transform: scale(1.05);
}

.tb-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    text-align: center;
}

.tb-card-meta {
    align-self: center;
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.tb-card-title {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.tb-card-action {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.tb-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.tb-btn-detail:after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 1px;
}

/* 2. List View */
.tb-prize-list-container {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .tb-prize-list-container {
        grid-template-columns: 1fr 1fr;
    }
}

.tb-prize-list-card {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.tb-prize-list-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tb-list-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: #f9f9f9;
}

.tb-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-list-body {
    padding: 10px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tb-list-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}

.tb-list-title {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* 3. Modal */
.tb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tb-modal-container {
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    animation: tbFadeIn 0.2s ease-out;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

@keyframes tbFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tb-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-modal-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .tb-modal-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .tb-modal-left {
        width: 50%;
        padding: 40px 30px 30px;
        border-right: 1px solid #f0f0f0;
        box-sizing: border-box;
    }

    .tb-modal-right {
        width: 50%;
        padding: 40px 30px 30px;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {

    .tb-modal-left,
    .tb-modal-right {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .tb-modal-right {
        padding-top: 0;
    }
}

.tb-modal-title,
.tb-oncle-label,
.tb-info-label {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    padding: 0 0 5px 0 !important;
    margin: 0 0 15px 0 !important;
    color: #333 !important;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: left;
}

.tb-oncle-label,
.tb-info-label {
    font-size: 1rem;
    margin-top: 25px !important;
}

.tb-oncle-label {
    margin-top: 0 !important;
}

.tb-modal-note {
    color: #d63333;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.tb-modal-img-area {
    text-align: center;
    margin-bottom: 15px;
}

.tb-modal-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.tb-modal-ref {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
}

.tb-modal-ref a {
    color: #0073aa;
    text-decoration: underline;
}

.tb-oncle-area {
    margin-bottom: 10px;
}

.tb-oncle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tb-oncle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    text-decoration: none;
    color: #333;
}

.tb-oncle-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.tb-oncle-item:hover .tb-oncle-img {
    transform: scale(1.05);
    border-color: #ff9900;
}

.tb-oncle-name {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.tb-oncle-none {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.tb-modal-specs {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tb-modal-specs>div {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.tb-modal-specs dt {
    width: 90px;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
}

.tb-modal-specs dd {
    margin: 0;
    flex-grow: 1;
    color: #333;
}

.tb-modal-intro {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333;
}

.tb-modal-works {
    text-align: left;
}

.tb-work-link {
    display: block;
    background: transparent;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.tb-work-link::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    transform: rotate(45deg);
    margin-right: 8px;
    margin-bottom: 2px;
}

.tb-work-link:hover {
    color: #0073aa;
    opacity: 1;
}

.tb-work-link:hover::before {
    border-color: #0073aa;
}

/* 4. Weekly Comment */
.tb-weekly-comment-box {
    background: #fdfdfd;
    border: none;
    border-top: 5px solid #333;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.tb-comment-header {
    background: transparent;
    color: #333;
    padding: 0 0 10px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-comment-header svg {
    fill: #333;
    width: 22px;
    height: 22px;
}

.tb-comment-body {
    padding: 15px 0 0 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.tb-comment-body p:last-child {
    margin-bottom: 0;
}

/* 5. Monthly Summary & Pickup */
.tb-monthly-summary {
    background: transparent;
    border: none;
    padding: 20px 0;
    margin-bottom: 20px;
    line-height: 1.8;
}

.tb-monthly-summary p:last-child {
    margin-bottom: 0;
}

.tb-monthly-pickup-list {
    margin-top: 30px;
}

.tb-pickup-item {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.tb-pickup-item:last-child {
    border-bottom: none;
}

.tb-pickup-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
}

.tb-pickup-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

@media(min-width: 768px) {
    .tb-pickup-body {
        flex-direction: row;
    }

    .tb-pickup-img-col {
        width: 300px;
        flex-shrink: 0;
    }

    .tb-pickup-info-col {
        flex-grow: 1;
    }
}

.tb-pickup-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tb-pickup-ref {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
}

.tb-pickup-ref a {
    color: #0073aa;
    text-decoration: underline;
}

.tb-pickup-specs {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.tb-pickup-text {
    line-height: 1.7;
}

.tb-pickup-text p:last-child {
    margin-bottom: 0;
}

.tb-pickup-h4 {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #333 !important;
    padding: 0 0 5px 0 !important;
    margin: 20px 0 15px 0 !important;
    color: #333 !important;
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
}

.tb-pickup-h4-oncle {
    margin-top: 0 !important;
}

.tb-pickup-oncle-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tb-pu-oncle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    text-decoration: none;
    color: #333;
}

.tb-pu-oncle-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

.tb-pu-oncle-item:hover .tb-pu-oncle-img {
    transform: scale(1.05);
    border-color: #ff9900;
}

.tb-pu-oncle-name {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.tb-pickup-works-area {
    margin-top: 25px;
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tb-postcard-link {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tb-postcard-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    color: #0073aa;
}

.tb-postcard-img {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    background: #f0f0f0;
    position: relative;
}

.tb-postcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-postcard-img.tb-no-thumb span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: #999;
}

.tb-postcard-content {
    padding: 10px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tb-postcard-title {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.tb-postcard-more {
    font-size: 0.75rem;
    color: #888;
    text-align: right;
}

/* 6. Brand Filter */
.tb-brand-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tb-brand-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    outline: none;
    appearance: none;
    font-family: inherit;
}

.tb-brand-btn:hover {
    background: #f9f9f9;
    border-color: #ccc;
    transform: translateY(-1px);
}

.tb-brand-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tb-brand-count {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

.tb-brand-btn.active .tb-brand-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 7. Series Header */
.tb-series-h3 {
    font-size: 1.4rem;
    margin: 40px 0 20px;
    padding-left: 10px;
    border-left: 5px solid #333;
}

.tb-series-h4 {
    font-size: 1.1rem;
    margin: 30px 0 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}



/* * =========================================================
 * 以下、[prize_pagination] 用スタイル (旧式互換)
 * =========================================================
 */

/* ページネーション全体 */
.tb-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 40px 0 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* ボタン共通スタイル */
.tb-pager-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    width: 42%;
    /* 左右ボタンの幅 */
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #333;
}

.tb-pager-btn:hover {
    background: #f9f9f9;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #0073aa;
}

/* テキストエリア */
.tb-pager-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tb-pager-prev .tb-pager-text {
    text-align: left;
    padding-left: 10px;
}

.tb-pager-next .tb-pager-text {
    text-align: right;
    padding-right: 10px;
}

/* サブテキスト（前の月へ/次の月へ） */
.tb-pager-sub {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 2px;
}

/* メインテキスト（◯月） */
.tb-pager-main {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

/* 矢印 */
.tb-pager-arrow {
    font-size: 1.5rem;
    font-weight: normal;
    color: #ccc;
}

.tb-pager-btn:hover .tb-pager-arrow {
    color: #0073aa;
}

/* 中央の現在地表示 */
.tb-pager-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #aaa;
    width: 16%;
}

.tb-pager-current-label {
    font-weight: bold;
    color: #ccc;
    font-family: sans-serif;
}

.tb-pager-current-type {
    font-size: 0.65rem;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* 空要素（レイアウト維持用） */
.tb-pager-empty {
    width: 42%;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .tb-pagination-container {
        gap: 5px;
    }

    .tb-pager-btn {
        padding: 8px 5px;
    }

    .tb-pager-main {
        font-size: 0.9rem;
    }

    .tb-pager-arrow {
        font-size: 1.2rem;
    }

    /* スマホでは中央表示を消してボタンを広くする選択肢もあり */
    .tb-pager-current {
        display: none;
    }

    .tb-pager-btn,
    .tb-pager-empty {
        width: 48%;
    }
}


/* =========================================================
 * [prize_monthly_link] 最終確定版スタイル (v3.18)
 * 修正内容：スマホ版ラベルの中央寄せ、画像拡大(130px)の維持
 * ========================================================= */

.tb-monthly-table-wrapper {
    margin: 24px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0 !important;
}

.tb-monthly-img-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    background: #fff;
    table-layout: fixed;
    border: none !important;
}

/* 1. ヘッダー */
.tb-month-header-row th {
    background: #333 !important;
    color: #fff !important;
    padding: 13px 14px 11px !important;
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    font-weight: bold;
    border: none !important;
    line-height: 1.2 !important;
}

.tb-month-tbody+.tb-month-tbody .tb-month-header-row th {
    border-top: 2px solid #fff !important;
}

/* 2. コンテンツセル（PC） */
.tb-month-content-row td {
    padding: 16px 12px 14px !important;
    text-align: center;
    vertical-align: top;
    background: #fff;
    border-right: 1px solid #eee !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.tb-month-content-row td:last-child {
    border-right: none !important;
}

.tb-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px !important;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.tb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tb-img-link {
    display: block;
    text-decoration: none !important;
    color: #333 !important;
    border: none !important;
}

.tb-img-link:hover .tb-img-wrap {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* 3. ラベル（PC版）：ユーザー指定重心補正 (7:5) */
.tb-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px 5px !important;
    border-radius: 4px;
    font-size: 0.95rem !important;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 0.03em;
    line-height: 1.0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.tb-type-badge.type-まとめ {
    background: #444 !important;
}

.tb-type-badge.type-フィギュア {
    background: #1e73be !important;
}

.tb-type-badge.type-ぬいぐるみ {
    background: #c62828 !important;
}

.tb-mobile-arrow {
    display: none !important;
}

/* ---------------------------------------------------------
 * 4. スマホ表示：ラベル中央寄せ ＆ 画像拡大(130px)
 * --------------------------------------------------------- */
@media (max-width: 600px) {

    .tb-monthly-img-table,
    .tb-month-tbody,
    .tb-month-header-row,
    .tb-month-content-row {
        display: block;
        width: 100% !important;
    }

    .tb-month-tbody {
        border-bottom: 1px solid #eee;
    }

    .tb-month-tbody:last-child {
        border-bottom: none;
    }

    .tb-month-header-row th {
        display: block;
        padding: 12px 12px 10px !important;
        box-sizing: border-box;
    }

    .tb-month-content-row {
        display: flex;
        flex-direction: column;
    }

    /* セル内余白を1/2（4px）に維持 */
    .tb-month-content-row td {
        display: block;
        width: 100% !important;
        padding: 4px 12px !important;
        box-sizing: border-box;
        border-bottom: 1px solid #f0f0f0 !important;
        border-right: none !important;
    }

    .tb-month-content-row td:last-child {
        border-bottom: none !important;
    }

    /* スマホ版グリッド：3列構成 */
    .tb-img-link {
        display: grid;
        grid-template-columns: 130px 1fr 24px;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .tb-img-wrap {
        width: 130px;
        height: 73px;
        margin-bottom: 0 !important;
    }

    /* 【変更箇所】ラベルを中央寄せに配置 */
    .tb-img-text {
        display: flex;
        align-items: center;
        justify-content: center !important;
        /* 中央寄せを強制 */
        width: 100%;
    }

    /* ラベル（スマホ版）：8:6補正 ＆ 幅の自動調整 */
    .tb-type-badge {
        font-size: 0.9rem !important;
        padding: 8px 12px 6px !important;
        min-width: 100px;
        flex-grow: 0;
        /* 幅いっぱいには広げず、ブロックとして中央に置く */
    }

    /* 右側のアクセント矢印 */
    .tb-mobile-arrow {
        display: block !important;
        /* サイズを 8px → 12px へ拡大 */
        width: 12px;
        height: 12px;
        /* 線の太さは 2.5px を維持しつつ、クッキリと強調 */
        border-top: 2.5px solid #ccc;
        border-right: 2.5px solid #ccc;
        /* 角度と配置の微調整 */
        transform: rotate(45deg);
        justify-self: center;
        /* タップしやすさを視覚的に強調するため、少し右に寄せる場合は margin-left で調整可 */
        margin-left: 2px;
    }

    .tb-cell-empty {
        display: none !important;
    }
}



/* ==========================================================================
   Affiliate Buttons ( もしもアフィリエイト どこでもリンク )
   ・Cocoon テーマとの競合を避けるため tb-af-* プレフィックスで完全分離
   ・button / text の2スタイルに対応
   ========================================================================== */

/* --- ラッパー共通 --- */
.tb-af-wrap {
    position: relative;
    /* impression img の絶対位置決定のための基準 */
    margin-top: 12px;
    width: 100%;
}

/* インプレッション計測用 img（1px）を flex レイアウトから確実に除外
   PHPのインラインstyleだけでは不確実なため、CSSでも position:absolute を明示 */
.tb-af-wrap>img {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none;
    border: none !important;
}

/* BaguetteBox等のLightbox機能がimgを<a>でラップした場合も flex から除外
   Cocoon の BaguetteBox は <img> を <a class="baguettebox-image"> で自動的に囲む。
   ※ style-c のテキストリンク(.tb-af-wrap--text)に影響しないよう
     --button ラッパー内のみを対象にする */
.tb-af-wrap--button>a:not(.tb-af-btn) {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* --- ボタンスタイル（style-a / style-b / モーダル） --- */
.tb-af-wrap--button {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tb-af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 90px;
    max-width: 200px;
    padding: 7px 14px;
    /* ① 元の対称paddingに復元（アイコン・テキスト共に中央揃え） */
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none !important;
    color: #fff !important;
    border: none !important;
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    line-height: 1.3;
}

.tb-af-btn:hover,
.tb-af-btn:focus {
    opacity: 0.82;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

/* Amazon: ブランドカラー #FF9900 に黒文字（コントラスト比の確保） */
.tb-af-btn--amazon {
    background: #FF9900;
    color: #222 !important;
}

.tb-af-btn--amazon::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23222' d='M13.23 12.26c-.43.46-.56 1.1-.38 1.69.54 1.78 2.57 2.75 4.24 2.13a4.14 4.14 0 0 0 2.24-2.13c.47-1.16.34-2.67-.38-3.66-.5-.7-1.28-1.11-2.14-1.14-1.59-.05-3.17 1.35-3.58 3.11zm-6.31 7.26c1.97.93 4.11 1.38 6.24 1.32a13.4 13.4 0 0 0 6.8-1.94c.19-.12.23-.36.1-.54-.13-.18-.37-.22-.56-.11a12.1 12.1 0 0 1-6.14 1.7c-1.94.04-3.87-.39-5.65-1.25-.2-.1-.44-.02-.54.18-.1.2-.02.43.18.54h-.43zM3 17.4C3 19.93 5.07 22 7.6 22h8.8c2.53 0 4.6-2.07 4.6-4.6V6.6C21 4.07 18.93 2 16.4 2H7.6C5.07 2 3 4.07 3 6.6v10.8z'/%3E%3C/svg%3E") no-repeat center / contain;
    flex-shrink: 0;
}

/* 楽天: ブランドカラー #BF0000 */
.tb-af-btn--rakuten {
    background: #BF0000;
    color: #fff !important;
}

.tb-af-btn--rakuten::before {
    content: 'R';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background: #fff;
    color: #BF0000;
    font-size: 11px;
    font-weight: 900;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1;
}

/* メルカリ: 将来追加用（コメントアウト） */
/*
.tb-af-btn--mercari {
    background: #FF0211;
    color: #fff !important;
}
*/

/* --- テキストリンクスタイル（style-c 用） --- */
.tb-af-wrap--text {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 5px;
    font-size: 11px;
}

.tb-af-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: underline !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 1px 0;
    transition: opacity 0.2s;
}

.tb-af-link:hover {
    opacity: 0.7;
}

.tb-af-link--amazon {
    color: #c47800 !important;
}

.tb-af-link--rakuten {
    color: #9e0000 !important;
}

/* メルカリ: 将来追加用（コメントアウト） */
/*
.tb-af-link--mercari { color: #c0000c !important; }
*/

/* ② モーダル左カラム内（参照テキストの直下） */
.tb-modal-affiliate {
    margin: 10px 0 0;
}

.tb-modal-affiliate .tb-af-wrap--button {
    justify-content: flex-start;
}

.tb-modal-affiliate .tb-af-btn {
    flex: 1;
    min-width: 90px;
    max-width: none;
    font-size: 12px;
    padding: 7px 14px;
    /* ① 元の対称paddingに合わせて復元 */
}

/* ③ pickup: PC用（2カラム直後）/ スマホ用（オンクレh4直前） */
.tb-pickup-af-pc {
    margin: 8px 0 14px;
}

.tb-pickup-af-sp {
    display: none;
    /* ③ 上(gapと同じ20px相当)・下(h4 margin-topの20px分に合わせて均等) */
    margin: 0 0 20px;
}

/* ⑤ スマホ: 1行複数ボタン表示（column削除）
   min-width: 90px で2〜3個まで横並びに収まる */
@media (max-width: 600px) {

    /* .tb-af-wrap--button は flex-direction をリセット不要（デフォルトrowのまま） */
    .tb-af-btn {
        max-width: none;
    }
}

/* ③ pickup スマホ: sp表示・pc非表示 */
@media (max-width: 767px) {
    .tb-pickup-af-sp {
        display: block;
    }

    .tb-pickup-af-pc {
        display: none;
    }
}