/* Manufacturer Section Styles */
.manufacturer-section {
    max-width: 1200px;
    margin: 2rem auto 5rem;
    padding: 0 1rem;
    font-family: "Noto Sans JP", sans-serif;
}

/* .manufacturer-title {
    text-align: center;
    margin-bottom: 3rem;
}

.manufacturer-title h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.manufacturer-title span {
    color: #999;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
}

.manufacturer-title span::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #004170;
    margin: 10px auto 0;
} */

.manufacturer-section .news {
    margin-bottom: 1.5rem;
}

/* Tabs */
.manufacturer-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: #fff;
    border: 1px solid #ccc;
    /* Or a lighter color */
    color: #666;
    /* Or #004170 */
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    border-radius: 0;
    transition: all 0.3s;
    min-width: 60px;
}

.tab-btn:hover,
.tab-btn.active {
    background: #000;
    /* Black */
    color: #fff;
    border-color: #000;
}

/* メーカーが存在しない行のタブ */
.tab-btn:disabled,
.tab-btn.empty {
    background: #f5f5f5;
    border-color: #ddd;
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

/* List */
.manufacturer-list {
    border-top: 1px solid #eee;
}

.manufacturer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.manufacturer-item:hover {
    background: #fcfcfc;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.company-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-company-info,
.btn-product-list {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-company-info {
    background: #fff;
    border: 1px solid #000;
    color: #000;
}

.btn-company-info:hover {
    background: #f0f0f0;
}

.btn-product-list {
    background: #000;
    border: 1px solid #000;
    color: #fff;
}

.btn-product-list:hover {
    background: #333;
    color: #fff;
}

.btn-product-list.disabled {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: #a0a0a0;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Modal */
.company-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-modal-overlay.open {
    display: flex;
    /* Flex required for centering */
    opacity: 1;
}

.company-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    padding: 3rem;
    border-radius: 0;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.company-modal-overlay.open .company-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
}

.modal-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.modal-logo-wrapper {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 0;
    margin-right: 1.5rem;
    padding: 10px;
}

.modal-logo {
    max-width: 100%;
    max-height: 100%;
}

.modal-company-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    /* Black */
    margin: 0;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 0.1em;
}

.modal-overview {
    margin-bottom: 2rem;
}

.modal-overview h4 {
    font-size: 0.9rem;
    color: #000;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.modal-overview p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.modal-specs {
    display: flex;
    gap: 1rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 0;
    margin-bottom: 2rem;
}

.spec-item {
    flex: 1;
    font-size: 0.9rem;
}

.spec-item i {
    color: #aaa;
    margin-right: 0.3rem;
}

.spec-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal-products {
    background: #000;
    border: 1px solid #000;
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-modal-products:hover {
    background: #333;
    color: #fff;
}

.btn-modal-products.disabled {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: #a0a0a0;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-modal-close {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-modal-close:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .company-modal-content {
        padding: 1.5rem;
    }

    .manufacturer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .company-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-logo-wrapper {
        margin-bottom: 1rem;
    }

    .modal-specs {
        flex-direction: column;
    }
}