body {
    font-family: "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
}

header {
    background-color: #e60012;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.car-detail {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem 1rem;
    gap: 2rem;
    justify-content: center;
}

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

.car-info {
    max-width: 500px;
}

.car-info h2 {
    margin-top: 0;
    color: #e60012;
}

.specs,
.price ul {
    list-style: none;
    padding: 0;
}

.specs li,
.price li {
    margin-bottom: 0.5rem;
}

.reserve-button {
    display: inline-block;
    background-color: #e60012;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1.5rem;
}

.reserve-button:hover {
    opacity: 0.9;
}

.top-button {
    display: inline-block;
    background-color: #888;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    margin-left: 1rem;
}

.top-button:hover {
    background-color: #666;
}


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

    .car-info {
        /* width: 100%;*/
        padding: 0 0.5rem;
    }
}

/* 車両一覧 */
.carousel-container {
    margin-top: 3rem;
    padding: 1rem;
    background-color: #f8f8f8;
}

.carousel-container h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #e60012;
    text-align: center;
}

.carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    padding-bottom: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* カルーセル内画像の共通スタイル */
.carousel a {
    flex: 0 0 auto;
    width: 180px;
    scroll-snap-align: start;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.carousel img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* PC用ホバー効果 */
.carousel a:hover {
    transform: scale(1.05);
}

/* -------------------------------
スマホ（600px以下）では縦表示
  ---------------------------------- */
@media (max-width: 600px) {
    .carousel {
        flex-direction: column;
        align-items: center;
        overflow-x: unset;
        overflow-y: auto;
    }

    .carousel a {
        width: 80%;
    }
}

/* ===============================
   車両詳細ページ サブ画像付きの場合
=================================*/

.car-image {
    text-align: center;
}

.car-image .main-car {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

/* サブ画像（下の小さな写真たち） */
.sub-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.sub-images img {
    width: 180px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sub-images img:hover {
    transform: scale(1.05);
}

/* スマホ表示 */
@media (max-width: 600px) {
    .sub-images img {
        width: 45%;
    }
}