/**
 * File: assets/css/single-car.css
 * Version: 1.01.11
 * Description: ブルーベース ＆ メール・電話 2種カードデザイン統合版
 */

.car-detail-page {
    padding: 40px 0;
    background-color: #f0f8ff;
}

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

/* ヘッダー */
.cp-header {
    margin-bottom: 30px;
    border-bottom: 3px solid #0055aa;
    padding-bottom: 15px;
}

.cp-brand {
    display: inline-block;
    background: #003366;
    color: #fff;
    padding: 3px 12px;
    font-size: 11px;
    border-radius: 2px;
    font-weight: bold;
}

.cp-title {
    font-size: 28px;
    font-weight: bold;
    color: #003366;
}

/* レイアウト */
.cp-flex-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cp-left-col {
    flex: 1;
    min-width: 0;
}

.cp-right-col {
    width: 380px;
    position: sticky;
    top: 100px;
}

/* 画像・ギャラリー */
.cp-main-visual {
    background: #fff;
    border: 1px solid #d0e0f0;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.cp-main-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

.cp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.cp-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 2px;
    overflow: hidden;
}

.cp-thumb:hover {
    opacity: 0.8;
    border-color: #0077ee;
}

/* 価格・スペック */
.cp-price-panel {
    background: #fff;
    border: 2px solid #0055aa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 85, 170, 0.1);
}

.cp-price-item.total {
    border-bottom: 1px dashed #d0e0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cp-value {
    font-size: 32px;
    font-weight: bold;
    color: #0077ee;
}

.cp-spec-table-compact {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #d0e0f0;
    margin-bottom: 25px;
}

.cp-spec-table-compact th,
.cp-spec-table-compact td {
    border: 1px solid #d0e0f0;
    padding: 10px 4px;
    text-align: center;
}

.cp-spec-table-compact th {
    background: #f0f8ff;
    color: #6688aa;
    font-size: 10px !important;
    width: 55px;
}

.cp-spec-table-compact td {
    color: #333;
    font-weight: bold;
    font-size: 16px !important;
}

/* 共通カードデザイン */
.cp-action-card {
    background-color: #fff;
    border: 1px solid #d0e0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cp-action-card-header {
    background-color: #f5f8fa;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    color: #003366;
    border-bottom: 1px solid #d0e0f0;
}

.cp-action-card-body {
    padding: 20px 15px;
}

/* メールカード */
.cp-action-lead {
    text-align: center;
    font-size: 13px;
    color: #0077ee;
    font-weight: bold;
    margin-bottom: 15px;
}

.cp-action-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cp-btn-blue-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    background-color: #0055aa;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 0 #003366;
    transition: 0.2s;
}

.cp-btn-blue-solid:hover {
    background-color: #0077ee;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #003366;
}

.cp-btn-blue-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background-color: #fff;
    color: #0055aa;
    border: 2px solid #0055aa;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.cp-btn-blue-outline:hover {
    background-color: #f0f8ff;
}

.cp-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cp-btn-blue-outline.small {
    font-size: 12px;
    padding: 10px 5px;
}

.cp-action-note {
    text-align: center;
    font-size: 10px;
    color: #999;
    margin-top: 8px;
}

/* 電話カード */
.cp-tel-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cp-tel-free {
    background-color: #0055aa;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.cp-tel-number {
    font-size: 26px;
    font-weight: bold;
    color: #0055aa;
    text-decoration: none;
}

.cp-tel-info {
    font-size: 11px;
    color: #666;
    border-top: 1px dotted #d0e0f0;
    padding-top: 10px;
    line-height: 1.6;
}

.cp-tel-sub {
    margin-left: 10px;
}

.cp-tel-note {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

@media (max-width: 920px) {
    .cp-flex-wrapper {
        flex-direction: column;
    }

    .cp-right-col {
        width: 100%;
        position: static;
    }
}

/* 車両詳細ブロック（ワイド版） */
.cp-detail-integrated-block {
    background: #fff;
    padding: 30px;
    margin: 40px 0;
    /* 前後の余白を確保 */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.cp-sec-title {
    font-size: 20px;
    border-bottom: 2px solid #0055aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* スペックテーブルのデザイン */
.cp-spec-visual-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
    table-layout: fixed;
    /* セル幅を固定 */
}

.cp-spec-visual-table th {
    width: 15%;
    background-color: #f7f9fb;
    color: #555;
    font-weight: normal;
    text-align: left;
    padding: 15px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.cp-spec-visual-table td {
    width: 35%;
    background-color: #fff;
    color: #333;
    font-weight: bold;
    padding: 15px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
}

/* 主要装備セクション */
.cp-equipment-footer {
    margin-top: 30px;
}

.cp-sub-title-small {
    font-size: 16px;
    color: #0055aa;
    margin-bottom: 15px;
}

.cp-equipment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-equip-tag {
    background: #ffffff;
    border: 1px solid #0055aa;
    color: #0055aa;
    padding: 6px 14px;
    border-radius: 20px;
    /* 丸みのあるデザイン */
    font-size: 13px;
    font-weight: bold;
}

/* スマホ対応 */
@media (max-width: 768px) {

    .cp-spec-visual-table th,
    .cp-spec-visual-table td {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .cp-spec-visual-table th {
        background-color: #eee;
        border-bottom: none;
    }
}

/* 安全装備用グリッド */
.cp-safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background-color: #e0e0e0;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.cp-safety-item {
    background-color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.cp-safety-item.is-inactive {
    color: #ccc;
}

.cp-safety-item.is-active {
    color: #333;
    font-weight: bold;
}

.cp-safety-status {
    margin-right: 10px;
    font-size: 12px;
    width: 15px;
}

.cp-safety-item.is-active .cp-safety-status {
    color: #0055aa;
}

/* 複数選択式のテキスト表示 */
.cp-complex-specs {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 10px;
}

.cp-complex-row {
    margin-bottom: 5px;
    font-size: 14px;
}

.cp-complex-row strong {
    color: #555;
    width: 150px;
    display: inline-block;
}

/* 余白調整 */
.mt-40 {
    margin-top: 40px;
}

/* 商談中警告バナー */
.cp-status-alert-banner {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* タイトル横のラベル */
.cp-title .status-label {
    background: #f1c40f;
    color: #000;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 10px;
}