/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #4a4238; /* 深みのあるブラウン */
    --accent-color: #c5a16f;  /* 真鍮・木目調のゴールド */
    --bg-color: #f9f8f6;      /* 温かみのあるグレーホワイト */
    --text-color: #333;
    --font-main: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    /* スクロールを強制的に許可する設定 */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--accent-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo span {
    font-weight: 300;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
}

.cta-nav a {
    background: var(--primary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 2px;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: #000;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 3;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 20px 0;
}

.sub-copy {
    font-size: 1.1rem;
    letter-spacing: 4px;
}

/* ==========================================================================
   Spec & Equipment
   ========================================================================== */
.spec {
    background: #fff;
}

.spec-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.spec-main-img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0px rgba(197, 161, 111, 0.1);
}

.spec-table table {
    width: 100%;
    border-top: 1px solid #333;
}

.spec-table th, .spec-table td {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* ==========================================================================
   EQUIPMENT Section (カードの修正版)
   ========================================================================== */
.equipment {
    background-color: #f7f5f2;
    padding: 100px 0;
}

.equipment-grid {
    display: grid;
    /* PCでは3列に並べる */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.equip-card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #e8e2d9;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;    /* ★中身を左右中央に */
    text-align: center;     /* ★テキストを中央揃えに */
    min-height: 280px;
}

.equip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.equip-icon {
    font-size: 2.5rem;      /* アイコンを少し大きく */
    margin-bottom: 20px;
}

.equip-card h3 {
    font-size: 1.2rem;
    font-weight: 700;       /* ★太文字 */
    margin-bottom: 15px;
    color: var(--primary-color);
}

.equip-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* --- スマホ表示（768px以下）の設定 --- */
@media (max-width: 768px) {
    .equipment-grid {
        /* スマホでは1列（または好みで2列） */
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .equip-card {
        padding: 30px 20px;
        min-height: auto;
    }
}
/* ==========================================================================
   Interior Gallery (Dark Mode)
   ========================================================================== */
.gallery {
    background-color: #111;
    color: #fff;
    padding: 100px 0;
}

.gallery .section-title { color: #fff; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.gallery-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(197, 161, 111, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    animation: zoomIn 0.3s ease;
}

/* ==========================================================================
   CTA & Footer
   ========================================================================== */
.cta {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary { background: var(--accent-color); color: #fff; }
.btn-secondary { border: 1px solid #fff; color: #fff; }

footer {
    padding: 40px;
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
}

/* ==========================================================================
   Responsive (Mobile Settings)
   ========================================================================== */
@media (max-width: 768px) {
    /* Hamburger logic */
    .hamburger { display: flex; }

    .nav-links {
        display: none; /* 通常は隠す */
        position: fixed;
        top: 0; right: 0;
        width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    /* JavaScriptでクラスが付与された時に強制表示 */
    .nav-links.active {
        display: flex !important;
    }

    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; color: #333; }

    /* Layout stack */
    .hero-content h1 { font-size: 2.5rem; }
    .spec-content, .equipment-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* X印のアニメーション */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
/* style.css の @media (max-width: 768px) の中に追加 */

/* style.css の @media (max-width: 768px) の中に追加 */

@media (max-width: 768px) {
    /* INTERIORセクションの画像を適切なサイズに固定 */
    .feature-img img {
        height: auto !important;   /* 横幅に合わせて高さを自動調整 */
        max-height: 300px;         /* 大きくなりすぎないよう、高さの上限を設定 */
        object-fit: cover;         /* 画像を枠内に綺麗に収める */
        transform: none !important; /* GSAPなどの拡大アニメーションを無効化 */
    }

    /* 画像とテキストの間の余白を調整 */
    .feature-text {
        margin-top: 15px;
        padding: 0 10px;
    }
}
/* style.css の @media (max-width: 768px) の中に追加 */

@media (max-width: 768px) {
    /* INTERIORセクションの画像を適切なサイズに固定 */
    .feature-img img {
        height: auto !important;   /* 高さを自動調整（横幅に合わせる） */
        max-height: 300px;         /* 大きくなりすぎないよう上限を設定 */
        object-fit: cover;         /* 画像を枠内に綺麗に収める */
        transform: none !important; /* GSAPの拡大アニメーションを無効化 */
    }

    /* 画像とテキストの間の余白を調整 */
    .feature-text {
        margin-top: 15px;
        padding: 0 10px;
    }
}
/* ==========================================================================
   FEATURES (INTERIOR) Section 修正版
   ========================================================================== */
.features {
    background: #fff;
    padding: 100px 0;
}

.feature-grid {
    display: grid;
    /* PCでは横に2枚並べる */
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* 中央寄せ */
    text-align: center;
}

.feature-img {
    width: 100%;
    /* 画像が巨大化するのを防ぐ */
    max-width: 500px; 
    margin-bottom: 25px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 400px; /* PCでの高さを固定（適宜調整してください） */
    object-fit: cover; /* 枠に合わせて切り抜き */
    transition: transform 0.5s ease;
}

.feature-item:hover .feature-img img {
    transform: scale(1.05);
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- スマホ表示（768px以下）の設定 --- */
@media (max-width: 768px) {
    .feature-grid {
        /* スマホでは縦に1枚ずつ */
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .feature-img img {
        /* スマホでは少し高さを抑える */
        height: 250px !important;
        transform: none !important; /* スマホでは拡大を無効化 */
    }

    .feature-item {
        max-width: 100%;
    }
}
/* ==========================================================================
   Scroll Down Indicator
   ========================================================================== */
.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    z-index: 10;
    opacity: 0.8;
}

/* スクロールの下の動く棒線 */
.scroll-down::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}
/* --- Exterior Section --- */
.section-lead {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

.exterior-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に分割 */
    gap: 20px;
}

.exterior-item {
    overflow: hidden; /* はみ出しを隠す（ズーム用） */
    border-radius: 4px;
    aspect-ratio: 16 / 10; /* 画像の比率を統一 */
}

.exterior-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.exterior-item:hover img {
    transform: scale(1.1); /* ホバー時にズーム */
}

/* レスポンシブ対応：スマホでは1列にする */
@media (max-width: 768px) {
    .exterior-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Logo Styles --- */
.logo-link {
    text-decoration: none; /* 下線を消す */
    display: flex;
    align-items: baseline;
    gap: 15px; /* Van Revo と DIARIO の間の余白 */
}

.brand-name {
    color: #4a4238; /* 濃いブラウン（紫から変更） */
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.model-name {
    color: #c4a47c; /* ウッド調のゴールドベージュ */
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
}

/* ホバー時に色が変わりすぎないように設定 */
.logo-link:hover {
    opacity: 0.8;
}