

/* 適合表ページ スタイル */

:root {
    --gold: #D4AF37;
    --gold-dark: #B8942C;
    --black: #000000;
    --dark-gray: #1A1A1A;
}

* {
    box-sizing: border-box;
}

.compatibility-page {
    min-height: 100vh;
    background-color: var(--black);
    color: white;
}

/* ========== Header ========== */
.site-header {
    background-color: var(--black);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
}

.logo-text {
    color: var(--gold);
    letter-spacing: 0.3em;
    font-size: 1.1rem;
}

.logo-subtext {
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-top: 0.25rem;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.main-nav a.active {
    border-bottom: 1px solid var(--gold);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--gold);
}

/* ========== Main Content ========== */
.main-content {
    padding: 5rem 0;
}

.main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Page Title ========== */
.page-title {
    margin-bottom: 5rem;
    text-align: center;
}

.page-title h1 {
    color: white;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.title-divider {
    width: 96px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto;
}

/* ========== Selection Section ========== */
.selection-section {
    max-width: 1400px;
    margin: 0 auto;
}

.selection-text {
    text-align: center;
    color: white;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    line-height: 1.4;
    
}

.selection-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.selection-btn {
    position: relative;
    background: linear-gradient(to bottom, var(--dark-gray), var(--black));
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.selection-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.btn-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0));
    transition: all 0.3s;
    pointer-events: none;
}

.selection-btn:hover .btn-overlay {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.1));
}

.btn-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.btn-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.btn-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    transition: transform 0.3s;
}

.selection-btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-label span {
    color: white;
    letter-spacing: 0.2em;
    transition: color 0.3s;
}

.selection-btn:hover .btn-label span {
    color: var(--gold);
}

.btn-selected {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold);
    letter-spacing: 0.1em;
    display: none;
}

.btn-selected.active {
    display: block;
}

/* ========== Reset Button ========== */
.reset-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.reset-btn {
    padding: 0.75rem 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: transparent;
    color: white;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* ========== Product Table ========== */
.product-table-container {
    margin-top: 1rem;
    overflow-x: scroll;
}

.table-header {
    text-align: center;
    margin-bottom: 3rem;
    display: none;
}

.table-header h2 {
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom:1rem;
    font-size: 1.5rem;
}

.table-divider {
    width: 64px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto;
}

.table-wrapper {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-collapse: collapse;
    min-width: 1100px;
}

.product-table thead tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.product-table th {
    padding: 1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.5;
    font-size: 12px;
    vertical-align: middle;
}

.product-table th.text-right {
    text-align: right;
}

.product-table th.text-center {
    text-align: center;
}

.product-table tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: background-color 0.3s;
}

.product-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.product-table td {
    padding: 1rem;
    color: white;
    font-size: 12px;
    line-height: 1.4;
    min-width: 100px;
}

.product-table td.text-right {
    text-align: right;
}

.product-table td.text-center {
    text-align: center;
}

.product-table td:nth-child(2),
.product-table td:nth-child(3),
.product-table td:nth-child(4) {
    color: rgba(255, 255, 255, 0.8);
}

.purchase-btn {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
    color: var(--black);
    border: none;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

.purchase-btn:hover {
    background: linear-gradient(to right, var(--gold-dark), var(--gold));
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results p {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
}

.brake-title {
    font-size: 24px;
    padding: 16px;
}
.brake-table {
    margin-bottom: 120px;
}

/* ========== Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: none;
    animation: fadeIn 0.2s;
}

.modal-overlay.active {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 51;
    width: 90%;
    max-width: 640px;
    display: none;
    animation: modalIn 0.2s;
}

.modal.active {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    background: linear-gradient(to bottom, var(--dark-gray), var(--black));
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 2rem;
    max-height: 540px;
}

.modal-header {
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 2rem;
}

.modal-header h3 {
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.2em;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.modal-body {
     overflow-y: scroll;
    max-height: 400px;
}

.modal_inner {
    display: grid;
   grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-option {
    position: relative;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(26, 26, 26, 0.5));
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.5rem 2rem;
    color: white;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-option:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: linear-gradient(to right, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.1));
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .selection-text {
        font-size: 14px;
    }
    .selection-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-title h1 {
        font-size: 1.75rem;
    }

    .table-wrapper {
        overflow-x: scroll;
    }

    .product-table {
        min-width: 600px;
    }

    .modal {
        top: 55%;
    }
    .modal_inner {
        display: flex;
    flex-direction: column;
    gap: 1rem;
    }
}

.reset-container p a {
    color: #d39f25;
    display: contents;
}

.zeibetu-txt {
	font-size: 0.8rem ;
	text-align: right;
}
@media (max-width: 768px) {

}