@charset 'UTF-8';

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0d0d0d;
    color: #fff;
}

.fadein {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease-out;
}

.fadein.show {
    opacity: 1;
    transform: translateY(0);
}

.show {
    opacity: 1;
    transform: translate(0);
}

#splash {
    position: fixed;
    height: 100%;
    width: 100%;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: 1s ease;
}

#splash.hide {
    opacity: 0;
    pointer-events: none;
}

#splash h1 {
    font-size: 3rem;
    color: #e60012;
    letter-spacing: 0.2em;
    animation: fadeLogo 1.5s ease forwards;
    position: fixed;
    left: 0;
    width: 100%;
}

@keyframes fadeLogo {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

header {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

header video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

header h1 {
    position: absolute;
    font-size: 3em;
    letter-spacing: 0.2em;
    z-index: 2;
}

#scramble {
    font-size: 3rem;
    letter-spacing: 0.1em;
    color: #e60012;
    text-align: center;
}

section {
    padding: 80px 10%;
    border-bottom: 1px solid #222;
}

@media (max-width: 699px) {
    section {
        padding: 15px;
    }
}

h2 {
    position: relative;
    overflow: hidden;
    font-size: 2.2rem;
    margin-bottom: 30px;
    border-left: 6px solid #e60012;
    padding-left: 15px;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: #e60012;
    transition: 0.5s ease;
}

.fadein.show h2::after {
    width: 100%;
}

/* FEATURE */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    position: relative;
    background: #111;
    border-radius: 8px;
    border: 1px solid #222;
    transition: 0.3s;
    height: 400px;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: #e60012;
}

.feature-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.feature-contents {
    position: absolute;
    top: 80%;
    transform: translate(0, -50%);
}

.feature-item h3,
.feature-item p {
    padding-inline: 25px;
}

/* STOCK CARS */
.grid {
    display: grid;
    gap: 18px;
}

.grid-resp {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 999px) {
    .grid-resp {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .grid-resp {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.card {
    border-radius: 8px;
    background: #111;
    border: 1px solid #222;
    padding: 14px 14px 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    color: #9aa0b5;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card-tag {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9aa0b5;
}

.car-thumb {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    min-height: 120px;
    position: relative;
}

/* ▼ ここに車ラインナップのサムネイル画像を挿入してください */
/* <img src="images/car-sedan.jpg" alt="セダンのフロントビュー" class="car-thumb-image" /> */

.car-thumb-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    mix-blend-mode: screen;
}

.car-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
    color: #9aa0b5;
}

.car-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.car-meta strong {
    color: #f5f7fb;
}

.car-price {
    font-size: 15px;
    font-weight: 600;
    color: #f5f7fb;
}

.car-price span {
    font-size: 11px;
    color: #9aa0b5;
    margin-left: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
    color: #9aa0b5;
}

.btn {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    border: 1px solid #1b2233;
    background: rgba(10, 14, 24, 0.9);
    color: #f5f7fb;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-footer .btn {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(5, 7, 11, 0.9);
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-grid div {
    background: #111;
    height: 180px;
    border-radius: 8px;
    border: 1px solid #222;
    overflow: hidden;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: 1.6s ease;
}

.gallery-grid div:hover img {
    transform: scale(1.15);
}

/* STAFF */
.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.staff-item {
    background: #111;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #222;
    text-align: center;
}

.staff-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* CONTACT */
.contact-box {
    background: #111;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #222;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 699px) {
    .contact-box {
        display: block;
    }

    .cta-actions {
        margin-top: 40px;
        justify-content: center;
    }
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-primary {
    height: 40px;
    background: linear-gradient(135deg, #1bb1a1, #10ac84);
    border-color: transparent;
    color: #05070b;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(16, 172, 132, 0.35);
    margin: auto 0 10px 0;
}

.btn-primary:hover {
    box-shadow: 0 18px 40px rgba(16, 172, 132, 0.45);
}

.btn-outline {
    height: 40px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(5, 7, 11, 0.9);
    margin: auto 0 10px 0;
}

.btn-outline:hover {
    background: rgba(15, 20, 35, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

footer {
    padding: 40px 10%;
    background: #000;
    color: #aaa;
    font-size: 0.9rem;
}