/* ========================================
   車両販売 - 親ページ・一覧・詳細
   ======================================== */

.main--cars {
    padding: 0;
    max-width: none;
    background: #f8f8f8;
}

.cars-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 18px 56px;
}

/* ----- 親ページ（車両販売トップ） ----- */
.main--cars-top .cars-page-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 4.5vw, 42px);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #1a1a1a;
}

.main--cars-top .cars-page-desc {
    margin: 0 0 36px;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
}

.cars-entry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .cars-entry-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

.cars-entry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 28px 40px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cars-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    border-color: rgba(214, 58, 0, 0.3);
}

.cars-entry-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background: rgba(214, 58, 0, 0.08);
    color: #D63A00;
    border-radius: 0;
}

.cars-entry-card__icon svg {
    width: 48px;
    height: 48px;
}

.cars-entry-card__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #1a1a1a;
}

.cars-entry-card__desc {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    flex: 1;
}

.cars-entry-card__link {
    display: inline-block;
    padding: 12px 24px;
    background: #D63A00;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 0;
    transition: filter 0.2s;
}

.cars-entry-card:hover .cars-entry-card__link {
    filter: brightness(1.08);
}

/* ----- 一覧ページ共通 ----- */
.main--cars-list .cars-wrap {
    padding: 28px 18px 56px;
}

.cars-breadcrumb {
    margin: 0 0 20px;
    font-size: 13px;
    color: #666;
}

.cars-breadcrumb a {
    color: #D63A00;
    text-decoration: none;
}

.cars-breadcrumb a:hover {
    text-decoration: underline;
}

.cars-breadcrumb span {
    margin: 0 6px;
    color: #999;
}

.cars-list-title {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

.cars-list-desc {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* 検索UI */
.cars-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding: 20px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cars-toolbar__keyword {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 0;
}

.cars-toolbar__status,
.cars-toolbar__price {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
}

.cars-toolbar__sort {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
}

/* 検索窓の下：車両一覧エリア */
.cars-list-section {
    margin-top: 0;
}

.cars-result-count {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
}

/* カードグリッド（通常） */
.cars-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .cars-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .cars-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 一覧表示：検索窓の直下で1行1台のリスト */
.cars-card-grid--list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cars-card-grid--list .cars-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cars-card-grid--list .cars-card:last-child {
    border-bottom: none;
}

.cars-card-grid--list .cars-card__thumb-wrap {
    flex: 0 0 140px;
    width: 140px;
    aspect-ratio: 4 / 3;
    margin: 0;
}

.cars-card-grid--list .cars-card__thumb {
    aspect-ratio: 4 / 3;
}

.cars-card-grid--list .cars-card__body {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cars-card-grid--list .cars-card__name {
    margin: 0;
    font-size: 16px;
    width: 100%;
}

.cars-card-grid--list .cars-card__price {
    margin: 0;
    font-size: 18px;
}

.cars-card-grid--list .cars-card__btn {
    width: auto;
    min-width: 120px;
    margin-left: auto;
}

@media (max-width: 599px) {
    .cars-card-grid--list .cars-card {
        flex-wrap: wrap;
    }
    .cars-card-grid--list .cars-card__thumb-wrap {
        flex: 0 0 100%;
        width: 100%;
        max-height: 180px;
    }
    .cars-card-grid--list .cars-card__body {
        flex: 1;
        min-width: 0;
    }
    .cars-card-grid--list .cars-card__btn {
        width: 100%;
        margin: 0 16px 16px;
    }
}

.cars-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cars-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.cars-card__thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #e8e8e8;
    overflow: hidden;
}

.cars-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cars-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: #c00;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    transform: rotate(-8deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.cars-card__body {
    padding: 18px;
}

.cars-card__name {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: #1a1a1a;
}

.cars-card__price {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 900;
    color: #D63A00;
    letter-spacing: 0.02em;
}

.cars-card__price span {
    font-size: 13px;
    font-weight: 700;
    margin-left: 2px;
}

.cars-card__btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #D63A00;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: filter 0.2s;
}

.cars-card:hover .cars-card__btn {
    filter: brightness(1.08);
}

/* ----- 詳細ページ ----- */
.main--cars-detail .cars-wrap {
    max-width: 1000px;
    padding: 28px 18px 56px;
}

.cars-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #D63A00;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cars-detail-back:hover {
    text-decoration: underline;
}

.cars-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: #fff;
    padding: 24px;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .cars-detail-layout {
        padding: 32px;
        gap: 40px;
    }
}

/* カルーセル */
.cars-carousel {
    position: relative;
    width: 100%;
    background: #111;
    border-radius: 0;
    overflow: hidden;
}

.cars-carousel__track-wrap {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.cars-carousel__track {
    display: flex;
    transition: transform 0.35s ease-out;
}

.cars-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.cars-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cars-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s;
    z-index: 2;
}

.cars-carousel__btn:hover {
    background: #fff;
}

.cars-carousel__btn--prev {
    left: 8px;
}

.cars-carousel__btn--next {
    right: 8px;
}

.cars-carousel__btn svg {
    width: 24px;
    height: 24px;
}

.cars-carousel__dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.cars-carousel__dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.cars-carousel__dot.is-active {
    background: #fff;
}

/* 詳細・情報 */
.cars-detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 900;
    line-height: 1.35;
    color: #1a1a1a;
}

.cars-detail-price {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 900;
    color: #D63A00;
    letter-spacing: 0.02em;
}

.cars-detail-price span {
    font-size: 16px;
    font-weight: 700;
    margin-left: 4px;
}

.cars-detail-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 0;
    overflow: hidden;
}

@media (min-width: 480px) {
    .cars-detail-dl {
        grid-template-columns: 28% 1fr;
    }
}

.cars-detail-dl dt,
.cars-detail-dl dd {
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}

.cars-detail-dl dt {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.06em;
    background: #fafafa;
}

.cars-detail-dl dd {
    font-size: 15px;
    color: #222;
}

.cars-detail-dl dt:last-of-type,
.cars-detail-dl dd:last-of-type {
    border-bottom: none;
}

/* 詳細ページ CTA（電話・LINE） */
.cars-detail-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cars-detail-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 0;
    transition: filter 0.2s, transform 0.2s;
}

.cars-detail-cta a:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.cars-detail-cta__tel {
    background: #D63A00;
    color: #fff;
}

.cars-detail-cta__line {
    background: #06C755;
    color: #fff;
}

.cars-detail-cta .cta-icon {
    width: 22px;
    height: 22px;
}

.cars-detail-cta .cta-icon svg {
    width: 100%;
    height: 100%;
}
