/* ===================================
   FinanceCar - Clean Light Theme
   Inspired by ucar.subaru.jp
   =================================== */

/* --- Reset & Variables --- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-input: #f5f7fa;
    --primary: #0b5ed7;
    --primary-light: #3d85e0;
    --primary-dark: #0a4fb3;
    --accent: #e8501e;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border: #e2e5ea;
    --border-light: #eef0f3;
    --danger: #dc3545;
    --success: #0d9f6e;
    --info: #2563eb;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: 0.25s ease;
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ja);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-img-footer {
    height: 44px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-gold:hover {
    background: var(--primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
}

.btn-gold.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--primary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.btn-dark:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: #fff !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #06C755;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.btn-line:hover {
    opacity: 0.9;
}

/* --- Hero Section --- */
/* --- Site Identity Banner --- */
.site-identity {
    background: linear-gradient(135deg, #0b5ed7 0%, #1a73e8 50%, #2d8cf0 100%);
    color: #fff;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.site-identity::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.identity-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.identity-copy {
    flex-shrink: 0;
}

.identity-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.identity-tag {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.identity-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.identity-points {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.identity-point {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
}

.identity-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 0.65rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .identity-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .identity-heading {
        justify-content: center;
        font-size: 1.05rem;
    }

    .identity-points {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .identity-point {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .site-identity {
        padding: 16px 0;
    }

    .identity-heading {
        font-size: 0.95rem;
    }

    .identity-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .identity-desc {
        font-size: 0.75rem;
    }
}

/* --- Stats Navigation Bar (ucar.subaru.jp style) --- */
.stats-nav-bar {
    background: var(--bg-card);
    border-top: 3px solid var(--primary);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.stats-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 20px;
}

.stats-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.stats-count-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stats-count-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-count-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-en);
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stats-count-unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stats-badges {
    display: flex;
    gap: 10px;
}

.stats-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.stats-badge-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stats-badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    padding: 0 8px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-en);
    line-height: 1;
}

.stats-date {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Stats Nav Links */
.stats-nav-links {
    display: flex;
    gap: 0;
    border-left: 1px solid var(--border);
}

.stats-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-right: 1px solid var(--border-light);
    transition: all var(--transition);
    min-width: 90px;
    position: relative;
}

.stats-nav-link:last-child {
    border-right: none;
}

.stats-nav-link:hover {
    background: rgba(11, 94, 215, 0.04);
    color: var(--primary);
}

.stats-nav-link-main {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.stats-nav-link-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.stats-nav-link:hover .stats-nav-link-sub {
    color: var(--primary-light);
}

.stats-nav-arrow {
    font-size: 0.6rem;
    color: var(--text-muted);
    line-height: 1;
    margin-top: 2px;
}

/* --- Quick Search Section --- */
.quick-search-section {
    background: var(--bg-secondary);
    padding: 16px 0;
}

.campaign-banner-light {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 94, 215, 0.06);
    border: 1px solid rgba(11, 94, 215, 0.15);
    border-radius: var(--radius);
    padding: 10px 20px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--text-primary);
    width: 100%;
}

.campaign-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.campaign-link-light {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: underline;
}

.quick-search-bar {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.qs-select, .qs-input {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-ja);
    transition: border-color var(--transition);
    flex: 1;
    min-width: 0;
}

.qs-select {
    flex: 0 1 180px;
    cursor: pointer;
}

.qs-input {
    flex: 1 1 220px;
}

.qs-select:focus, .qs-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.qs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-ja);
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.qs-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
}

/* Legacy hero (kept for other pages if needed) */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #0b5ed7 0%, #1a73e8 50%, #4a90e2 100%);
    color: #fff;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Search Bar (legacy) --- */
.search-bar {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.search-bar select,
.search-bar input {
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-ja);
    min-width: 160px;
    transition: border-color var(--transition);
}

.search-bar select:focus,
.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

/* --- Section --- */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

/* --- Vehicle Grid --- */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vehicle-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.vehicle-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.vehicle-card a {
    color: inherit;
    text-decoration: none;
}

.vehicle-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-secondary);
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.05);
}

.vehicle-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.vehicle-card-badge.sold {
    background: var(--danger);
    color: #fff;
}

.vehicle-card-body {
    padding: 16px 18px;
}

.vehicle-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.vehicle-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.vehicle-card-spec {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.vehicle-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-en);
}

.vehicle-card-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-ja);
}

.vehicle-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Detail Page --- */
.detail-page {
    padding: 40px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.image-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.image-slider-main {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.image-slider-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-slider-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: var(--bg-secondary);
}

.image-slider-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color var(--transition);
}

.image-slider-thumb.active,
.image-slider-thumb:hover {
    border-color: var(--primary);
}

.image-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-en);
    margin-bottom: 4px;
}

.detail-price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-ja);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-light);
}

.spec-table th,
.spec-table td {
    padding: 12px 0;
    text-align: left;
    font-size: 0.88rem;
}

.spec-table th {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-actions .btn-gold,
.detail-actions .btn-line,
.detail-actions .btn-outline {
    width: 100%;
}

.video-section {
    margin-top: 32px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.description-section {
    margin-top: 32px;
}

.description-section h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.description-text {
    color: var(--text-secondary);
    line-height: 1.9;
    white-space: pre-wrap;
}

/* --- Forms --- */
.form-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.form-page h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-primary);
}

.form-page .form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--danger);
    font-size: 0.8rem;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-ja);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    background-color: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}

.form-actions .btn-gold {
    flex: 1;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 8px;
}

.doc-badge {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin: 2px 4px 2px 0;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 6px;
}

/* User type selector */
.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.user-type-option {
    position: relative;
}

.user-type-option input {
    position: absolute;
    opacity: 0;
}

.user-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.user-type-option input:checked + label {
    border-color: var(--primary);
    background: rgba(11, 94, 215, 0.04);
}

.user-type-icon {
    font-size: 2rem;
}

.user-type-name {
    font-weight: 600;
    font-size: 1rem;
}

.user-type-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Image Upload --- */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: #fff;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(11, 94, 215, 0.03);
}

.image-upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.image-upload-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.image-upload-text strong {
    color: var(--primary);
}

.image-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Dashboard --- */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 1.5rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-en);
    color: var(--primary);
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.listing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.listing-table th,
.listing-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-light);
}

.listing-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.listing-table tr:hover td {
    background: var(--bg-card-hover);
}

.listing-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(13, 159, 110, 0.1);
    color: var(--success);
}

.status-sold {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.status-draft {
    background: rgba(153, 153, 153, 0.1);
    color: var(--text-secondary);
}

.status-unpaid {
    background: rgba(232, 80, 30, 0.1);
    color: var(--accent);
}

.status-paid {
    background: rgba(13, 159, 110, 0.1);
    color: var(--success);
}

/* --- Inquiry List --- */
.inquiry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inquiry-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
    box-shadow: var(--shadow-sm);
}

.inquiry-card.unread {
    border-left: 3px solid var(--primary);
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.inquiry-vehicle {
    font-weight: 600;
    color: var(--primary);
}

.inquiry-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.inquiry-message {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.inquiry-reply {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 12px;
}

.inquiry-reply-label {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

/* --- Payment Info --- */
.payment-info {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 16px 0;
}

.payment-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.payment-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
}

.payment-paypay {
    background: #ff0033;
    color: #fff !important;
}

.payment-rakuten {
    background: #bf0000;
    color: #fff !important;
}

.payment-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-en);
    transition: all var(--transition);
}

.pagination a {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

/* --- Flash Messages --- */
.flash-message {
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.flash-success {
    background: rgba(13, 159, 110, 0.08);
    color: var(--success);
    border-bottom: 1px solid rgba(13, 159, 110, 0.15);
}

.flash-error {
    background: rgba(220, 53, 69, 0.08);
    color: var(--danger);
    border-bottom: 1px solid rgba(220, 53, 69, 0.15);
}

.flash-info {
    background: rgba(37, 99, 235, 0.08);
    color: var(--info);
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.flash-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

/* --- No Image Placeholder --- */
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
    height: 100%;
}

/* --- Column / Article --- */
.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.column-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}
.column-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.column-card-body {
    padding: 24px;
}
.column-card-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.column-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.5;
}
.column-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.column-card h3 a:hover {
    color: var(--primary);
}
.column-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}
.article-page h1 {
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.article-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.article-body {
    line-height: 1.9;
    color: var(--text-secondary);
}
.article-body h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.article-body h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 32px 0 12px;
}
.article-body p {
    margin-bottom: 16px;
}
.article-body ul, .article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body .info-box {
    background: rgba(11, 94, 215, 0.05);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body .warn-box {
    background: rgba(220, 53, 69, 0.05);
    border-left: 4px solid var(--danger);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-nav {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Footer --- */
.site-footer {
    background: #1a2332;
    color: #ccc;
    padding: 60px 0 0;
    margin-top: 80px;
}

.site-footer .logo {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 16px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* --- Guide Page --- */
.guide-page {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.guide-page h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.guide-page .lead {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.guide-section {
    margin-bottom: 48px;
}

.guide-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.guide-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    font-family: var(--font-en);
}

.guide-step h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.guide-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
    font-size: 0.95rem;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition);
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    padding: 0 24px 20px;
    max-height: 800px;
}

.faq-answer p { margin-bottom: 8px; }
.faq-answer ul, .faq-answer ol { margin: 8px 0 8px 20px; }
.faq-answer li { margin-bottom: 4px; font-size: 0.9rem; }
.faq-answer a { color: var(--primary); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* FAQ Page Tabs */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.faq-tab {
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}
.faq-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.faq-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.faq-category-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.faq-more {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-light);
    border-radius: var(--radius);
}
.faq-more p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Checklist Box (for checklist.php column) */
.checklist-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 16px 0;
}
.checklist-box h3 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist li {
    position: relative;
    padding: 6px 0 6px 28px;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.checklist li:last-child {
    border-bottom: none;
}
.checklist li::before {
    content: '\2610';
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 1.1rem;
    color: var(--primary);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.2;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .logo-img {
        height: 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        gap: 2px;
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
    }

    /* Stats Nav Bar - tablet */
    .stats-nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: auto;
    }

    .stats-left {
        padding: 14px 0;
        justify-content: center;
        gap: 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .stats-nav-links {
        border-left: none;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-nav-link {
        padding: 10px 14px;
        min-width: 70px;
        flex: 1;
    }

    .stats-nav-link-main {
        font-size: 0.82rem;
    }

    .stats-nav-link-sub {
        font-size: 0.65rem;
    }

    /* Quick Search - tablet */
    .quick-search-bar {
        flex-wrap: wrap;
    }

    .qs-select {
        flex: 1 1 45%;
    }

    .qs-input {
        flex: 1 1 100%;
        order: -1;
    }

    .qs-btn {
        flex: 1 1 100%;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar select,
    .search-bar input {
        min-width: 100%;
    }

    .section {
        padding: 40px 0;
    }

    .vehicle-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .listing-table {
        display: block;
        overflow-x: auto;
    }

    .payment-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .stats-left {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .stats-count-number {
        font-size: 1.6rem;
    }

    .stats-nav-link {
        padding: 8px 10px;
        min-width: 60px;
    }

    .stats-nav-link-main {
        font-size: 0.75rem;
    }

    .stats-nav-link-sub {
        font-size: 0.6rem;
    }

    .stats-nav-arrow {
        display: none;
    }

    .quick-search-bar {
        flex-direction: column;
    }

    .qs-select, .qs-input {
        flex: 1 1 100%;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .user-type-selector {
        grid-template-columns: 1fr;
    }

    .image-previews {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vehicle-card {
    animation: fadeIn 0.4s ease forwards;
}

.vehicle-card:nth-child(2) { animation-delay: 0.05s; }
.vehicle-card:nth-child(3) { animation-delay: 0.1s; }
.vehicle-card:nth-child(4) { animation-delay: 0.15s; }
.vehicle-card:nth-child(5) { animation-delay: 0.2s; }
.vehicle-card:nth-child(6) { animation-delay: 0.25s; }

/* --- Admin Page --- */
.admin-page {
    padding: 40px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-size: 1.5rem;
}

.admin-nav {
    display: flex;
    gap: 2px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--border);
}

.admin-nav-link {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.admin-nav-link:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.admin-nav-link.active {
    background: var(--primary);
    color: #fff;
}

.admin-nav-link.active:hover {
    color: #fff;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-section-header .section-title {
    margin-bottom: 0;
}

.admin-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav {
        width: 100%;
        overflow-x: auto;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-filters {
        flex-direction: column;
    }

    .admin-filters .form-control {
        max-width: 100% !important;
        width: 100%;
    }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--primary); }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* --- Favorite Button --- */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
    color: #e74c3c;
}
.favorite-btn.favorited {
    color: #e74c3c;
}
.favorite-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}
.favorite-btn-detail:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}
.favorite-btn-detail.favorited {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* --- SNS Share Buttons --- */
.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.share-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.share-btn-line {
    background: #06C755;
    color: #fff;
}
.share-btn-line:hover {
    background: #05b34c;
    color: #fff;
}
.share-btn-x {
    background: #1a1a1a;
    color: #fff;
}
.share-btn-x:hover {
    background: #333;
    color: #fff;
}

/* --- Unread Badge --- */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 4px;
    line-height: 1;
}

/* --- Search Page --- */
.search-page {
    padding: 32px 0;
}

.search-filters {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

/* Search Panel (collapsible) */
.search-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.search-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.search-panel-header:hover {
    background: var(--bg-secondary);
}

.search-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.search-panel-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

.search-panel-toggle {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.search-panel-body {
    padding: 24px;
}

.search-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.search-form-group {
    display: flex;
    flex-direction: column;
}

.search-form-group .form-control {
    margin-top: 0;
}

/* Active Filter Tags */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(11, 94, 215, 0.08);
    color: var(--primary);
    border: 1px solid rgba(11, 94, 215, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1.4;
}

.filter-tag:hover {
    background: rgba(11, 94, 215, 0.15);
    color: var(--primary-dark);
    border-color: rgba(11, 94, 215, 0.35);
}

.filter-tag-remove {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.6;
}

.filter-tag:hover .filter-tag-remove {
    opacity: 1;
}

.filter-clear-all {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: underline;
    margin-left: 4px;
}

.filter-clear-all:hover {
    color: var(--danger);
}

/* Search Results Header */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-results-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.search-results-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
    margin-right: 2px;
}

.search-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-sort-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.search-sort-options {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid var(--border-light);
}

.sort-option {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition);
    white-space: nowrap;
}

.sort-option:hover {
    color: var(--primary);
    background: rgba(11, 94, 215, 0.06);
}

.sort-option.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(11, 94, 215, 0.3);
}

.sort-option.active:hover {
    color: #fff;
}

/* Pagination dots */
.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Search page responsive */
@media (max-width: 768px) {
    .search-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-panel-body {
        padding: 16px;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-sort-options {
        flex-wrap: wrap;
    }

    .sort-option {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .active-filters {
        gap: 6px;
    }

    .filter-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* --- Contact Page --- */
.contact-page .form-card {
    max-width: 640px;
    margin: 0 auto;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

/* --- Delete Account Section --- */
.delete-account-section {
    margin-top: 48px;
    padding: 24px;
    border: 1px solid var(--danger);
    border-radius: var(--radius);
    background: rgba(220, 53, 69, 0.03);
}

.delete-account-section h3 {
    color: var(--danger);
    margin-bottom: 8px;
}

.delete-account-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ===================================
   FinanceCar - Top Page Redesign
   =================================== */

/* --- Featured Carousel --- */
.featured-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #111;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    text-decoration: none;
    color: #fff;
    display: block;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
    padding: 80px 40px 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.carousel-slide-info {
    max-width: 700px;
}

.carousel-slide-maker {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.carousel-slide-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.carousel-slide-details {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.carousel-slide-price {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-en);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.carousel-slide-specs {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
}

.carousel-slide-cta {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
    pointer-events: auto;
    flex-shrink: 0;
}

.carousel-slide:hover .carousel-slide-cta {
    background: rgba(255,255,255,0.3);
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
}

.featured-carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Dot Indicators */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.7);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* Pause Button */
.carousel-pause {
    position: absolute;
    bottom: 14px;
    right: 20px;
    z-index: 5;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.55rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    letter-spacing: 1px;
    opacity: 0;
}

.featured-carousel:hover .carousel-pause {
    opacity: 1;
}

.carousel-pause:hover {
    background: rgba(0,0,0,0.5);
    color: #fff;
}

/* --- Section Header Row --- */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* --- Condition Search Card --- */
.condition-search-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.condition-group {
    margin-bottom: 28px;
}

.condition-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.condition-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

/* --- Range Sliders --- */
.range-slider-wrap {
    padding: 0 8px;
}

.range-values {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-en);
}

.range-values span:nth-child(2) {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.dual-range, .single-range {
    position: relative;
    height: 36px;
}

.dual-range input[type="range"],
.single-range input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 14px;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

.dual-range input[type="range"]:first-child {
    z-index: 1;
}
.dual-range input[type="range"]:last-child {
    z-index: 2;
}

.dual-range input[type="range"]::-webkit-slider-runnable-track,
.single-range input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.dual-range input[type="range"]:first-child::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--border) 0%, var(--primary) 50%, var(--border) 100%);
}

.single-range input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--primary) 0%, var(--border) 100%);
}

.dual-range input[type="range"]::-webkit-slider-thumb,
.single-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    margin-top: -9px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
}

.dual-range input[type="range"]::-webkit-slider-thumb:hover,
.single-range input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 8px rgba(11, 94, 215, 0.3);
}

.dual-range input[type="range"]::-moz-range-thumb,
.single-range input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.dual-range input[type="range"]::-moz-range-track,
.single-range input[type="range"]::-moz-range-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    border: none;
}

/* --- Maker Grid --- */
.maker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.maker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.maker-card:hover {
    border-color: var(--primary);
    background: rgba(11, 94, 215, 0.03);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.maker-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.maker-card-count {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    font-family: var(--font-en);
}

/* --- Price Range Grid --- */
.price-range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.price-range-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.price-range-card:hover {
    border-color: var(--primary);
    background: rgba(11, 94, 215, 0.03);
    transform: translateY(-2px);
}

.price-range-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price-range-count {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-en);
}

/* --- Mobile adjustments for new sections --- */
@media (max-width: 768px) {
    .featured-carousel {
        height: 360px;
    }

    .carousel-slide-overlay {
        padding: 60px 20px 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .carousel-slide-title {
        font-size: 1.2rem;
    }

    .carousel-slide-price {
        font-size: 1.2rem;
    }

    .carousel-slide-cta {
        display: none;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        opacity: 1;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-pause {
        opacity: 1;
    }

    .condition-search-card {
        padding: 20px;
    }

    .range-values {
        font-size: 0.95rem;
    }

    .maker-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .maker-card {
        padding: 12px 6px;
    }

    .maker-card-name {
        font-size: 0.78rem;
    }

    .price-range-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .price-range-card {
        padding: 12px 14px;
    }

    .column-grid {
        grid-template-columns: 1fr !important;
    }

    .section-header-row {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .featured-carousel {
        height: 280px;
    }

    .carousel-slide-title {
        font-size: 1rem;
    }

    .carousel-slide-price {
        font-size: 1.05rem;
    }

    .carousel-slide-details {
        gap: 10px;
    }

    .carousel-slide-specs {
        font-size: 0.78rem;
    }

    .carousel-slide-overlay {
        padding: 50px 16px 24px;
    }

    .maker-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .price-range-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   広告バナー
   =================================== */
.ad-banner-section { padding: 16px 0; }
.ad-banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ad-banner-item { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: opacity 0.2s; }
.ad-banner-item:hover { opacity: 0.85; }
.ad-banner-item img { width: 100%; height: auto; display: block; aspect-ratio: 16/5; object-fit: cover; }
.ad-banner-placeholder { padding: 24px; text-align: center; background: var(--bg-secondary); color: var(--text-secondary); font-size: 0.9rem; aspect-ratio: 16/5; display: flex; align-items: center; justify-content: center; }
.ad-banner-label { text-align: right; font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

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

/* サイドバー付きレイアウト（縦長バナー） */
.main-with-sidebar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 20px;
}
.main-with-sidebar.no-sidebar {
    display: block;
}
.main-with-sidebar .main-content {
    min-width: 0;
    overflow: hidden;
}
.main-with-sidebar .main-content .container {
    max-width: none;
    padding: 0;
}
.sidebar-banners {
    position: sticky;
    top: 80px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 12px;
    width: 180px;
}
.sidebar-banner-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: opacity 0.2s;
    width: 160px;
    margin: 0 auto;
}
.sidebar-banner-item:hover { opacity: 0.85; }
.sidebar-banner-item img {
    width: 160px;
    height: 240px;
    display: block;
    object-fit: cover;
}
.sidebar-banner-placeholder {
    width: 160px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .main-with-sidebar {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .main-with-sidebar .main-content {
        overflow: visible;
    }
    .main-with-sidebar .main-content .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    .sidebar-banners {
        position: static;
        flex-direction: row;
        justify-content: center;
        padding: 16px 20px;
        width: auto;
    }
}

/* 広告申込ページ */
.ad-pricing-info { background: var(--bg-secondary); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; border: 1px solid var(--border); }
.ad-pricing-campaign { text-align: center; margin-bottom: 16px; }
.ad-pricing-normal { text-align: center; margin-bottom: 16px; }
.ad-pricing-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.ad-pricing-price { font-size: 1.5rem; font-weight: 700; font-family: var(--font-en); }
.ad-pricing-original { text-decoration: line-through; color: var(--text-muted); font-size: 1rem; }
.ad-pricing-free { color: var(--primary); margin-left: 8px; }
.ad-pricing-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.ad-pricing-features { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; justify-content: center; }
.ad-pricing-features li { font-size: 0.85rem; color: var(--text-secondary); }
.ad-pricing-features li::before { content: "✓ "; color: var(--primary); font-weight: 600; }

@media (max-width: 768px) {
    .ad-pricing-features { flex-direction: column; gap: 8px; align-items: center; }
}

/* バナータイプ選択 */
.banner-type-selector { display: flex; gap: 12px; }
.banner-type-option { display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; flex: 1; transition: border-color 0.2s, background 0.2s; }
.banner-type-option.active { border-color: var(--primary); background: rgba(11, 94, 215, 0.05); }
.banner-type-option input[type="radio"] { display: none; }
.banner-type-content { display: flex; flex-direction: column; gap: 4px; }
.banner-type-content strong { font-size: 0.95rem; }
.banner-type-content span { font-size: 0.8rem; color: var(--text-muted); }

/* 買取フォーム説明 */
.purchase-form-notice { background: rgba(11, 94, 215, 0.05); border: 1px solid rgba(11, 94, 215, 0.2); border-radius: var(--radius); padding: 16px; }
.purchase-form-notice strong { display: block; margin-bottom: 8px; color: var(--primary); font-size: 0.9rem; }
.purchase-form-notice p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* 買取フォームページ */
.purchase-form-info { text-align: center; margin-bottom: 24px; }
.purchase-form-banner { margin-bottom: 16px; }
.purchase-form-banner img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.purchase-form-company { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.purchase-form-hp { margin-bottom: 16px; }
.purchase-form-hp a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border: 1px solid var(--primary); color: var(--primary); border-radius: var(--radius); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background 0.2s, color 0.2s; }
.purchase-form-hp a:hover { background: var(--primary); color: #fff; }
.purchase-form-hp-icon { font-size: 1rem; }
.purchase-form-desc { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-top: 8px; font-size: 0.95rem; line-height: 1.8; color: var(--text-secondary); text-align: left; }

@media (max-width: 768px) {
    .banner-type-selector { flex-direction: column; }
}

/* バナー解析 */
.banner-chart-container { height: 300px; position: relative; }
.hourly-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-bottom: 20px; position: relative; }
.hourly-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.hourly-bar { width: 100%; background: var(--primary); border-radius: 2px 2px 0 0; min-height: 2px; transition: height 0.3s; }
.hourly-bar-wrap:hover .hourly-bar { background: var(--accent); }
.hourly-label { font-size: 0.6rem; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
    .hourly-label { font-size: 0.5rem; }
}

/* ===================================
   出品者SNSリンク
   =================================== */
.seller-sns-links { display: flex; flex-direction: column; gap: 8px; }
.seller-sns-link { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text-primary); text-decoration: none; font-size: 0.9rem; transition: background 0.2s; }
.seller-sns-link:hover { background: var(--bg-secondary); }
.seller-sns-link.sns-x::before { content: "𝕏"; font-weight: 700; width: 24px; text-align: center; }
.seller-sns-link.sns-instagram::before { content: "📷"; width: 24px; text-align: center; }
.seller-sns-link.sns-tiktok::before { content: "🎵"; width: 24px; text-align: center; }
.seller-sns-link.sns-youtube::before { content: "▶"; width: 24px; text-align: center; color: #c00; }
.seller-sns-link.sns-facebook::before { content: "f"; font-weight: 700; width: 24px; text-align: center; color: #1877f2; }
