#car-comparison-tool {
    max-width: 900px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* 絞り込み・車種選択エリア */
.car-selectors {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.selector-group {
    flex: 1;
    min-width: 300px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #fcfcfc;
}

.filter-container,
.selector-container {
    margin-bottom: 10px;
}
.filter-container:last-child,
.selector-container:last-child {
    margin-bottom: 0;
}

.filter-container label,
.selector-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.filter-maker,
.filter-body-type,
.car-selector {
    width: 100%;
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* 画像比較エリア */
.image-comparison-area {
    margin-bottom: 30px;
}

.view-switcher,
.alignment-controls {
    text-align: center;
    margin-bottom: 10px;
}

.view-switcher button,
.alignment-controls button {
    padding: 8px 16px;
    cursor: pointer;
    margin: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    transition: background-color 0.2s;
    vertical-align: middle;
}

.view-switcher button:hover,
.alignment-controls button:hover {
    background-color: #e9e9e9;
}

.view-switcher button.active {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    overflow: hidden;
}

.car-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s;
}

.car-image {
    max-height: 100%;
    height: auto;
    object-fit: contain;
    display: none;
}

.layer-front {
    z-index: 10;
}

.layer-back {
    z-index: 5;
}

/* 透明度調整スライダー */
.opacity-control-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    vertical-align: middle;
}


/* ▼▼▼ ここから下がスライダーの見た目を【最優先で】修正するコードです ▼▼▼ */

#opacity-slider {
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 150px !important;
    height: 8px !important;
    background: #d3d3d3 !important;
    border-radius: 5px !important;
    outline: none !important;
    padding: 0 !important; /* 内側の余白を強制的に削除 */
    margin: 0 !important; /* 外側の余白を強制的に削除 */
}

/* Chrome, Safari, Edge用のつまみスタイル */
#opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    background: #0073aa !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    margin-top: -5px !important; /* バーの中央に配置するための微調整 */
}

/* Firefox用のつまみスタイル */
#opacity-slider::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    background: #0073aa !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: none !important;
}

/* スライダーのバー（トラック）部分のスタイル */
#opacity-slider::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 8px !important;
    cursor: pointer !important;
    background: #d3d3d3 !important;
    border-radius: 5px !important;
}

#opacity-slider::-moz-range-track {
    width: 100% !important;
    height: 8px !important;
    cursor: pointer !important;
    background: #d3d3d3 !important;
    border-radius: 5px !important;
}

/* ▲▲▲ ここまでが修正コードです ▲▲▲ */


/* スペック比較表エリア */
.spec-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.spec-comparison-table th,
.spec-comparison-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    vertical-align: middle;
}

.spec-comparison-table th {
    background-color: #f7f7f7;
}

.spec-comparison-table td:first-child {
    text-align: left;
    font-weight: bold;
}