@charset "UTF-8";

/* 共通隔離ID: #sap-system */
#sap-system {
    font-family: "Inter", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    padding-bottom: 80px;
}

#sap-system .sap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* パンくず */
.sap-breadcrumb {
    font-size: 13px;
    color: #888;
    padding: 20px 0;
}
.sap-breadcrumb a { color: #888; text-decoration: none; }
.sap-manage-id { float: right; background: #eee; padding: 2px 8px; border-radius: 4px; }

/* レイアウト構成 */
.sap-detail-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}
.sap-gallery-area { flex: 1; min-width: 0; }
.sap-info-area { width: 440px; }

/* ギャラリー */
.sap-main-visual img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.sap-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 15px;
}
.sap-thumb-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}
.sap-thumb-item img:hover { opacity: 0.7; }

/* 右側: 情報セクション */
.sap-vehicle-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* 価格表示 (Buddica風) */
.sap-price-section {
    background: #fff1f1;
    border: 2px solid #f87171;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}
.sap-total-price { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.sap-total-price .p-label { font-size: 16px; font-weight: bold; color: #d32f2f; }
.sap-total-price .p-value { font-size: 64px; font-weight: 900; color: #d32f2f; line-height: 1; letter-spacing: -2px; }
.sap-total-price .p-unit { font-size: 24px; font-weight: bold; color: #d32f2f; }
.sap-tax-info { font-size: 12px; color: #d32f2f; margin-top: 5px; }

/* スペックグリッド (3列2段) */
.sap-spec-grid-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}
.spec-cell {
    background: #fff;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.spec-cell .l { font-size: 11px; color: #888; margin-bottom: 4px; }
.spec-cell .v { font-size: 15px; font-weight: bold; color: #333; }

/* CTAボタン */
.sap-btn-tel {
    display: block;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 12px;
}
.sap-btn-tel .btn-label { display: block; font-size: 12px; }
.sap-btn-tel .btn-num { font-size: 26px; font-weight: 900; }

.sap-btn-mail {
    display: block;
    border: 2px solid #1a1a1a;
    color: #1a1a1a !important;
    text-decoration: none;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

/* 諸元表 */
.sap-section-title {
    font-size: 20px;
    font-weight: bold;
    border-left: 5px solid #1a1a1a;
    padding-left: 15px;
    margin: 40px 0 20px;
}
.sap-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}
.sap-spec-table th, .sap-spec-table td {
    border: 1px solid #eee;
    padding: 15px;
    text-align: left;
}
.sap-spec-table th {
    background: #f9f9f9;
    color: #666;
    font-weight: normal;
    width: 180px;
}
.sap-spec-table td { font-weight: bold; }

/* レスポンシブ */
@media (max-width: 1024px) {
    .sap-detail-layout { flex-direction: column; }
    .sap-info-area { width: 100%; }
}