/* products-top.css: このページ種専用の内容スタイル(共通部分は site.css) */
.cBox { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.cBox h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background-color: #efefef;
    color: var(--text-color);
    padding: 10px 15px 10px 35px;
    margin: 40px 0 20px 0;
    border-radius: 4px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}
.cBox h3::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 8px;
    background-color: var(--primary-color);
    border-radius: 3px;
}
.cBox h3:first-of-type { margin-top: 0; }
.product-category { margin-bottom: 30px; }
.cBox table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    table-layout: fixed; 
}
.cBox td {
    border: 1px solid var(--border-color);
    padding: 15px 12px;
    text-align: center;
    vertical-align: top;
    font-size: 1.0rem;
    word-wrap: break-word;
    width: 33.333%; 
    transition: background-color 0.3s ease;
}
.cBox td a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
}
.cBox td a:hover {
    color: var(--primary-color);
}
.cBox td a .product-name {
    display: block;
    min-height: 2.8em; 
    line-height: 1.4;
    margin-bottom: 10px;
}
.cBox td img {
    margin: 0 auto;
    display: block;
    max-height: 60px;
    width: auto;
}
.cBox table td:hover {
    background-color: #efefef;
}
.cBox table td:empty {
    visibility: hidden;
    border: none;
    background: none;
}
@media (max-width: 1023px) {
    .cBox table,
    .cBox tbody,
    .cBox tr,
    .cBox td {
        display: block; 
        width: 100% !important; 
        border: none; 
        
        border-bottom: 1px solid var(--border-color);
    }
    .cBox td {
        border-bottom: none; 
        text-align: left; 
        padding: 0; 
        font-size: 1.0rem;
        background-color: #fff;
        visibility: visible; 
    }
    .cBox td a {
        display: flex; 
        align-items: center; 
        gap: 15px; 
        color: var(--text-color);
        text-decoration: none;
        min-height: auto;
        padding: 15px 10px; 
        transition: background-color 0.2s ease;
    }
    .cBox td a:hover {
        background-color: #f0f0f0; 
        color: var(--primary-color);
        text-decoration: none;
    }
    .cBox td a .product-name {
        flex-grow: 1; 
        min-width: 0; 
        line-height: 1.4;
        margin-bottom: 0; 
        min-height: 0; 
    }
    .cBox td img {
        margin: 0; 
        max-width: 60px; 
        max-height: 50px; 
        height: auto;
        flex-shrink: 0; 
        object-fit: contain; 
    }
    .cBox table td:empty {
        display: none;
    }
    .cBox tr:last-child {
         border-bottom: none;
     }
    .product-category tr:last-child {
         border-bottom: 1px solid var(--border-color); 
     }
    .product-category:last-child tr:last-child {
         border-bottom: none; 
     }
}
@media (max-width: 767px) {
    .container, .header-container, .cBox, .footer-container { padding: 0 10px; }
    .cBox h3 { font-size: 1.3rem; padding: 8px 15px 8px 30px; margin: 25px 0 15px 0; }
    .cBox h3::before { width: 6px; left: 10px; top: 6px; bottom: 6px; }
    .cBox td a {
        padding: 12px 10px; 
     }
    .cBox td img {
        max-width: 50px; 
        max-height: 40px; 
     }
    .product-category tr:last-child {
         border-bottom: none;
     }
}
