/* =======================================================
   CAR DEALER PORTFOLIO (style.css)
   特徴：ダッシュボード・カッチリ・信頼レイアウト
======================================================= */
:root {
    --primary-color: #0b2239;
    /* 信頼のネイビー */
    --accent-color: #e51d20;
    /* スポーティな赤 */
    --text-color: #333333;
    --bg-color: #ffffff;
    --bg-gray: #f5f7fa;
    --border-color: #e2e8f0;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-en: 'Oswald', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

li {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}

.section {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--bg-gray);
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.section-title span {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #666;
    font-weight: bold;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #c41417;
}

.full-width {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 20px;
    font-weight: bold;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-en);
    font-size: 1.8rem;
    color: var(--primary-color);
}

.gnav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: bold;
}

.gnav a:hover:not(.btn-primary) {
    color: var(--accent-color);
}

/* Hero */
.hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 34, 57, 0.4);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-search-box h2 {
    font-family: var(--font-en);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.hero-search-box p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.quick-search {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-search select {
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
    border-radius: 4px;
    background: #fff;
}

.btn-search {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-search:hover {
    background: var(--accent-color);
}

/* Inventory Grid */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.car-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.car-img.bg-placeholder {
    height: 200px;
    background: #ccd5df;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    overflow: hidden;
}

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

.car-info {
    padding: 20px;
}

.badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 10px;
}

.badge.new {
    background: var(--accent-color);
    color: #fff;
}

.badge.body-type {
    background: #eee;
    color: #666;
}

.car-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.car-specs {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.car-price {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.car-price strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 5px;
}

.car-total {
    font-size: 0.9rem;
    font-weight: bold;
}

.car-total .total {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 0 5px;
}

/* Loan Simulator */
.calculator-wrap {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.calc-inputs {
    flex: 1;
}

.calc-results {
    flex: 1;
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 8px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1rem;
}

.calc-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
    line-height: 1.4;
}

.calc-results h4 {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.result-row.primary {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.result-row.primary .amount {
    font-size: 2.5rem;
}

.result-row span[id] {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-family: var(--font-en);
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-policies {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* 古物商表記エリア */
.kobutsu-info {
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding: 15px 30px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* SP Menu Basic */
.hamburger {
    display: none;
}

.sp-nav {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-wrap {
        flex-direction: column;
        padding: 20px;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
    }

    .gnav {
        display: none;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 101;
        cursor: pointer;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--primary-color);
        transition: 0.3s;
        border-radius: 2px;
    }

    .hamburger span:nth-of-type(1) {
        top: 0;
    }

    .hamburger span:nth-of-type(2) {
        top: 9px;
    }

    .hamburger span:nth-of-type(3) {
        bottom: 0;
        top: 18px;
    }

    .hamburger.active span:nth-of-type(1) {
        top: 9px;
        transform: rotate(45deg);
    }

    .hamburger.active span:nth-of-type(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-of-type(3) {
        top: 9px;
        transform: rotate(-45deg);
    }

    .sp-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 100;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: 0.3s;
        pointer-events: none;
    }

    .sp-nav.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .sp-nav ul {
        text-align: center;
    }

    .sp-nav li {
        margin-bottom: 30px;
    }

    .sp-nav a {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--primary-color);
    }

    .sp-nav a.btn-primary {
        display: inline-block;
        padding: 15px 40px;
        margin-top: 20px;
    }

    .hero-search-box {
        padding: 25px;
    }

    .footer-policies {
        flex-direction: column;
        gap: 15px;
    }
}
/* PC\SPj[\id\̖h~j */
@media (min-width: 769px) { .sp-nav, .hamburger { display: none !important; } }

