/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Blocksy Child Theme for ComicRouter
Author: ComicRouter
Template: blocksy
Version: 1.0.0
*/

.comic-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    display: block;
    max-width: 100%;
}

.comic-release-table {
    border-collapse: collapse;
    width: max-content;
    min-width: 1200px;
}

.comic-release-table th,
.comic-release-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

/* 商品名列 */
.comic-release-table th:first-child,
.comic-release-table td:first-child {
    width: 35vw;
    min-width: 350px;
    max-width: 600px;
    white-space: normal;
}

/* 出版社列 */
.comic-release-table th:nth-child(4),
.comic-release-table td:nth-child(4) {
    width: 15vw;
    min-width: 150px;
    max-width: 220px;
}

/* その他列 */
.comic-release-table th,
.comic-release-table td:not(:first-child):not(:nth-child(4)) {
    white-space: nowrap;
}

.comic-release-table th {
    background: #f5f5f5;
}

.comic-table-inner {
    overflow-x: auto;
}

/* PC/スマホ表示切替 */

.mobile-only {
    display: none !important;
}

.pc-only {
    display: block !important;
}

@media screen and (max-width: 768px) {

    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

}

/* スマホカード */

.comic-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comic-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.comic-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.5;
}

.comic-card p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.comic-card p:last-child {
    margin-top: 12px;
}
/* 絞り込みボタン */

.comic-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.comic-filter button {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.comic-filter button:hover {
    background: #f5f5f5;
}
/* 選択中ボタン */

.comic-filter button.active {
    background: #333;
    color: #fff;
    border-color: #333;
}
/* 詳細絞り込み */

.comic-filter-panel {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.comic-filter-panel h4 {
    margin: 15px 0 8px;
    font-size: 15px;
}

.publisher-filter,
.store-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.filter-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.filter-apply {
    background: #333;
    color: #fff;
}

.filter-clear {
    background: #fff;
    border: 1px solid #ccc;
}
/* 絞り込みUI */

.comic-filter-panel {
    margin: 15px 0;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.filter-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.publisher-filter label,
.store-filter label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* スマホ絞り込み */

@media screen and (max-width: 768px) {

    .comic-filter-panel {
        padding: 12px;
        border-radius: 10px;
    }

   .publisher-filter,
   .store-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

    .publisher-filter label,
    .store-filter label {
        font-size: 14px;
        padding: 6px 0;
    }

   .filter-actions {
        flex-direction: column;
    }
    .filter-actions button {
        width: 100%;
        padding: 12px;
    }

}
/* ComicRouter custom styles */