@charset "utf-8";


/* =========================================
   ADO 認定中古車専用スタイル
========================================= */

/* 車両カード一覧 */
#used-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0;
}

/* 車両カード */
.used-card {
    background: #fff;
    color: #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 車両画像 */
.used-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f5f5f5;
}

/* カード本文 */
.used-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 車両ID */
.used-card-id {
    font-size: 0.8rem;
    color: #777;
}

/* 機種名 */
.used-card-body h3 {
    margin: 10px 0;
    padding: 0;
    border: none;
    font-size: 1.3rem;
}

/* 販売価格 */
.used-card-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #c62828;
}

/* 走行距離・コメント */
.used-card-mileage,
.used-card-comment {
    font-size: 0.95rem;
}

/* 購入ボタン */
.used-card-button {
    margin-top: auto;
    padding-top: 20px;
}

.used-order-button {
    display: block;
    padding: 12px;
    text-align: center;
    background: #00b1d4;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* タブレット */
@media screen and (max-width: 900px) {
    #used-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* スマートフォン */
@media screen and (max-width: 600px) {
    #used-list {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   認定中古車：写真・Lightbox
========================================= */

.used-photo-link {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.used-photo-link img {
    display: block;
    width: 100%;
}

/* 拡大表示中は背景をスクロールさせない */
body.used-lightbox-open {
    overflow: hidden;
}

/* Lightbox全体 */
.used-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    padding: 55px 20px 25px;
    box-sizing: border-box;
}

/* 非表示 */
.used-lightbox[hidden] {
    display: none;
}

/* 拡大画像 */
.used-lightbox-image {
    max-width: 900px;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 閉じるボタン */
.used-lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* 拡大画像を囲む領域 */
.used-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}


/* =========================================
   工程1-⑤：複数写真・Lightbox切り替え
========================================= */

/* 写真枚数アイコン */
.used-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.4;
    pointer-events: none;
}

/* Lightbox内の画像表示領域 */
.used-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 前後の写真へ切り替えるボタン */
.used-lightbox-prev,
.used-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 54px;
    border: 0;
    border-radius: 4px;
    background: rgba(30, 30, 30, 0.8);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.used-lightbox-prev {
    left: 10px;
}

.used-lightbox-next {
    right: 10px;
}

/* 拡大写真の枚数表示 */
.used-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 2;
    padding: 5px 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.9rem;
}

/* 写真が1枚の場合、切り替え操作は非表示 */
.used-lightbox-prev[hidden],
.used-lightbox-next[hidden],
.used-lightbox-counter[hidden] {
    display: none;
}

@media screen and (max-width: 600px) {
    .used-lightbox-prev {
        left: 0;
    }

    .used-lightbox-next {
        right: 0;
    }
}

/* =========================================
   工程1-⑥：機種別検索・並び替え
========================================= */

#used-search {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0 15px;
    padding: 20px;
    background: #333;
    border-radius: 8px;
}

.used-search-item {
    flex: 1 1 220px;
}

.used-search-item label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: bold;
}

.used-search-item select {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 1rem;
}

#used-result-count {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #ddd;
}

@media screen and (max-width: 600px) {
    #used-search {
        gap: 15px;
        padding: 15px;
    }
}

.used-card[hidden] {
    display: none;
}
/* 認定アイコン */
.certified-used-badge-area {
    text-align: center;
    margin: 20px 0 25px;
}

.certified-used-badge {
    display: inline-block;
    width: 150px;
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 600px) {
    .certified-used-badge {
        width: 120px;
    }
}


/* =========================================
   工程1-⑦ D：認定アイコン横並び
========================================= */

.certified-used-intro-layout {
    display: flex;
    align-items: center;
    gap: 35px;
}

.certified-used-intro-text {
    flex: 1;
    min-width: 0;
}

.certified-used-badge-area {
    flex: 0 0 220px;
    margin: 0;
    text-align: center;
}

.certified-used-badge {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

/* スマートフォン */
@media screen and (max-width: 700px) {

    .certified-used-intro-layout {
        flex-direction: column;
        gap: 20px;
    }

    .certified-used-badge-area {
        flex: none;
        width: 100%;
    }

    .certified-used-badge {
        width: 160px;
        margin: 0 auto;
    }
}

/* =========================================
   工程1-⑧：送料案内
========================================= */

.used-shipping-info {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #00b1d4;
    background: #333;
    color: #fff;
}

.used-shipping-info p {
    margin: 0;
}

.used-shipping-info strong {
    font-size: 1.1rem;
}

.used-shipping-info span {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* =========================================
   工程1-⑧ A：購入方法のご案内
========================================= */

.used-purchase-guide {
    margin: 30px 0 40px;
}

.used-purchase-guide h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.used-purchase-lead {
    margin-bottom: 25px;
    line-height: 1.9;
}

.used-purchase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.used-purchase-item {
    padding: 25px 20px;
    background: #333;
    border-top: 4px solid #00b1d4;
    border-radius: 6px;
    text-align: center;
}

.used-purchase-icon {
    display: block;
    margin-bottom: 15px;
    font-size: 2.5rem;
    line-height: 1.2;
}

.used-purchase-item h4 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 1.15rem;
}

.used-purchase-item p {
    margin: 0;
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.8;
}

.used-purchase-note {
    margin-top: 15px;
    color: #ccc;
    font-size: 0.85rem;
}

@media screen and (max-width: 700px) {
    .used-purchase-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .used-purchase-item {
        padding: 20px;
    }
}

/* =========================================
   工程1-⑧ C：車両情報・販売状況
========================================= */

.used-card-color,
.used-card-condition {
    font-size: 0.95rem;
    line-height: 1.7;
}

.used-card-status {
    margin: 12px 0;
}

.used-status-label {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* 販売中 */
.used-status-label[data-status="available"] {
    background: #e3f5e8;
    color: #176b35;
}

/* 購入申込受付済み */
.used-status-label[data-status="reserved"] {
    background: #fff0d6;
    color: #8a5200;
}

/* =========================================
   工程1-⑨：9機種別カラーポイント
========================================= */

/* カード上端にカラーラインを表示 */
.used-card {
    border-top: 7px solid #00b1d4;
}

/* Air20 */
.used-card[data-model="Air20"] {
    border-top-color: #00b1d4;
}

/* AIR20 PRO */
.used-card[data-model="AIR20 PRO"] {
    border-top-color: #805ad5;
}

/* Air20 Ultra */
.used-card[data-model="Air20 Ultra"] {
    border-top-color: #d94f70;
}

/* Air Carbon */
.used-card[data-model="Air Carbon"] {
    border-top-color: #d58a31;
}

/* Air Carbon Pro */
.used-card[data-model="Air Carbon Pro"] {
    border-top-color: #92764c;
}

/* Air One */
.used-card[data-model="Air One"] {
    border-top-color: #2e9d72;
}

/* Air One Ultra */
.used-card[data-model="Air One Ultra"] {
    border-top-color: #2176ae;
}

/* Air28 */
.used-card[data-model="Air28"] {
    border-top-color: #697586;
}

/* Air28 Pro */
.used-card[data-model="Air28 Pro"] {
    border-top-color: #a65b9a;
}



/* =========================================
   案件②：車両カードの余白をコンパクトに調整
   車両状態の本文行間（1.7）は変更しない
========================================= */

/* ID・販売状況・価格・走行距離・車体カラーの項目間隔 */
.used-card-body .used-card-id,
.used-card-body .used-card-status,
.used-card-body .used-card-price,
.used-card-body .used-card-mileage,
.used-card-body .used-card-color {
    margin-top: 0;
    margin-bottom: 8px;
}

/* 機種名の上下余白 */
.used-card-body h3 {
    margin: 4px 0 8px;
}

/* 車両状態は段落の外側だけ調整し、本文の行間は保持 */
.used-card-body .used-card-condition {
    margin-top: 4px;
    margin-bottom: 0;
}

/* 購入ボタンはカード下端で揃え、説明文との間隔を確保 */
.used-card-body .used-card-button {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 16px;
}
