/* 車両詳細ページスタイル */
.car-detail-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
}

.car-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background: #f5f5f5;
}

.car-hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.car-hero-bg-decoration-1 {
    position: absolute;
    top: -30%;
    right: -15%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.car-hero-bg-decoration-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 1;
}

.car-hero-content {
    position: relative;
    z-index: 2;
}

.car-hero-title {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    line-height: 1.3;
    font-weight: 700;
    color: white;
}

.car-hero-price {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-weight: 800;
    font-size: 1.8em;
    margin: 15px auto;
    padding: 12px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(238, 90, 36, 0.3);
    display: inline-block;
}

.car-hero-specs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.car-hero-spec-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
}

.car-hero-spec-label {
    color: #b3d9ff;
}

.car-main-content {
    padding: 30px 20px;
    background: #fff;
    border-radius: 15px 15px 0 0;
    margin-top: -15px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.car-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.car-thumb {
    flex: 0 0 40%;
    max-width: 40%;
}

.car-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.car-info {
    flex: 1 1 55%;
    max-width: 55%;
}

.car-info-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.car-section-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.car-section-title.green {
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.car-section-title.orange {
    background: linear-gradient(45deg, #fd7e14, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.car-info-list {
    list-style: none;
    padding: 0;
    line-height: 1.8;
}

.car-info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.car-info-list li:last-child {
    border-bottom: none;
}

.car-info-label {
    min-width: 120px;
    font-weight: bold;
}

.car-status-good {
    color: #28a745;
    font-weight: bold;
}

.car-status-bad {
    color: #dc3545;
}

.car-status-none {
    color: #6c757d;
    font-style: italic;
}

.car-spec-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.car-spec-table th {
    text-align: left;
    padding: 12px 10px;
    background: #f8f9fa;
    font-weight: bold;
    width: 30%;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.car-spec-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.car-spec-table tr:last-child th,
.car-spec-table tr:last-child td {
    border-bottom: 1px solid #ddd;
}

.car-spec-table th:last-child,
.car-spec-table td:last-child {
    border-right: none;
}

.car-gallery-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
    background: linear-gradient(45deg, #dc3545, #e83e8c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
}

.car-sub-gallery {
    display: flex;
    overflow-x: auto;
    padding: 15px 0;
    gap: 10px;
    max-width: 100%;
}

.car-sub-gallery::-webkit-scrollbar {
    height: 8px;
}

.car-sub-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.car-sub-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.car-sub-gallery a {
    flex: 0 0 auto;
}

.car-sub-gallery img {
    height: 100px;
    width: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.car-contact-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.car-contact-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.4em;
}

.car-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.car-contact-btn {
    display: inline-block;
    width: 220px;
    text-align: center;
    color: #fff;
    padding: 15px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    border: none;
    transform: translateY(0);
}

.car-contact-btn.phone {
    background: linear-gradient(135deg, #333, #555);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.car-contact-btn.line {
    background: linear-gradient(135deg, #06C755, #05a246);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
}

.car-contact-btn.email {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.car-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.car-carsensor-section {
    text-align: center;
    padding-bottom: 40px;
}

.car-carsensor-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f60, #ff8c00);
    color: #fff;
    padding: 18px 35px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

.car-carsensor-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.6);
}

.car-debug-info {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .car-detail {
        flex-direction: column;
    }

    .car-thumb,
    .car-info {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .car-contact-btn {
        width: 90%;
        margin: 8px auto;
    }

    .car-hero-title {
        font-size: 1.2em;
    }

    .car-hero-price {
        font-size: 1.5em;
        padding: 10px 20px;
    }

    .car-hero-specs {
        flex-direction: column;
        gap: 10px;
    }

    .car-hero-spec-item {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}