/* ===== SUBPAGE COMMON STYLES ===== */
/* 各サービスページ共通（usedcars, shaken, parts, carcare, bodywork） */

/* ヘッダー固定分のスペース確保 */
body.theme-green,
body.theme-blue,
body.theme-purple,
body.theme-teal,
body.theme-brown {
    padding-top: 130px;
}

/* ページタイトルセクション */
.subpage-title-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subpage-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.03)"/></svg>');
    pointer-events: none;
}

.subpage-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.subpage-title i {
    margin-right: 12px;
}

.subpage-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

/* カラーテーマ */
.theme-green .subpage-title-section { background: linear-gradient(135deg, #2E7D32, #66BB6A); }
.theme-blue .subpage-title-section { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.theme-purple .subpage-title-section { background: linear-gradient(135deg, #6A1B9A, #AB47BC); }
.theme-teal .subpage-title-section { background: linear-gradient(135deg, #00695C, #26A69A); }
.theme-brown .subpage-title-section { background: linear-gradient(135deg, #4E342E, #8D6E63); }

/* コンテンツエリア */
.subpage-content {
    padding: 60px 0;
    background: var(--bg-light);
}

.subpage-content .container {
    max-width: 1000px;
}

/* 特徴リスト */
.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.feature-list-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-list-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--white);
}

.theme-blue .feature-list-icon { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.theme-purple .feature-list-icon { background: linear-gradient(135deg, #6A1B9A, #AB47BC); }
.theme-teal .feature-list-icon { background: linear-gradient(135deg, #00695C, #26A69A); }
.theme-brown .feature-list-icon { background: linear-gradient(135deg, #4E342E, #8D6E63); }
.theme-green .feature-list-icon { background: linear-gradient(135deg, #2E7D32, #66BB6A); }

.feature-list-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.feature-list-item p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* 料金テーブル */
.price-table-section {
    padding: 60px 0;
    background: var(--white);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.price-table th {
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-align: left;
}

.theme-blue .price-table th { background: #1565C0; }
.theme-purple .price-table th { background: #6A1B9A; }
.theme-teal .price-table th { background: #00695C; }
.theme-brown .price-table th { background: #4E342E; }
.theme-green .price-table th { background: #2E7D32; }

.price-table td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table .price-cell {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    white-space: nowrap;
}

/* 注意書き */
.note-box {
    background: var(--gray-100);
    border-left: 4px solid var(--gray-400);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.note-box p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* CTA */
.subpage-cta {
    padding: 60px 0;
    text-align: center;
}

.theme-blue .subpage-cta { background: linear-gradient(135deg, #1565C0, #1976D2); }
.theme-purple .subpage-cta { background: linear-gradient(135deg, #6A1B9A, #7B1FA2); }
.theme-teal .subpage-cta { background: linear-gradient(135deg, #00695C, #00796B); }
.theme-brown .subpage-cta { background: linear-gradient(135deg, #4E342E, #5D4037); }
.theme-green .subpage-cta { background: linear-gradient(135deg, #2E7D32, #388E3C); }

.subpage-cta h2 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.subpage-cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.subpage-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* フローステップ */
.flow-steps {
    position: relative;
    padding-left: 40px;
}

.flow-steps::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step-number {
    position: absolute;
    left: -40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    z-index: 1;
}

.theme-blue .flow-step-number { background: #1565C0; }
.theme-purple .flow-step-number { background: #6A1B9A; }
.theme-teal .flow-step-number { background: #00695C; }
.theme-brown .flow-step-number { background: #4E342E; }
.theme-green .flow-step-number { background: #2E7D32; }

.flow-step-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.flow-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.flow-step-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* レスポンシブ */
@media (max-width: 900px) {
    body.theme-green,
    body.theme-blue,
    body.theme-purple,
    body.theme-teal,
    body.theme-brown {
        padding-top: 65px;
    }
}

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
    }

    .subpage-title {
        font-size: 1.5rem;
    }

    .price-table {
        font-size: 0.8rem;
    }

    .price-table th,
    .price-table td {
        padding: 10px 12px;
    }
}
