/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
    --bg-color: #0a0a0a;          /* 背景色: 極めて深い黒 */
    --text-color: #f0f0f0;        /* テキスト色: オフホワイト */
    --accent-color: #c5a059;      /* アクセント: アンティークゴールド */
    --header-height: 80px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* ベースサイズ */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .lang-switch, .cta-button, .page-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   2. Typography (Mobile Optimized with clamp)
   ========================================================================== */
/* 画面幅に応じてフォントサイズを最小〜最大の間で自動調整します */
h1 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-align: center;
}

p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    margin-bottom: 1.2rem;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.logo img {
    height: 50px; /* HTML上のサイズ比率を維持しつつ調整 */
    width: auto;
    display: block;
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

#main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

#main-nav a:hover {
    color: var(--accent-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-color);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 1px solid var(--accent-color);
    top: 100%;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--accent-color);
    color: #000;
}

.menu-icon {
    display: none; /* デスクトップでは非表示 */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-color);
}

/* ==========================================================================
   4. Hero Section (Index only)
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 0.4; /* 背景として暗めに設定 */
}

.hero-content {
    padding: 0 20px;
    max-width: 900px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 30px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* ==========================================================================
   5. Content Sections
   ========================================================================== */
.content-section {
    padding: clamp(50px, 10vh, 100px) 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    margin-top: 40px;
}

/* Model Gallery */
.model-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.model-item {
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(197, 160, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-family: 'Cinzel', serif;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
}

.model-item:hover {
    border-color: var(--accent-color);
    background: rgba(197, 160, 89, 0.05);
}



/* ==========================================================================
   5.5. Image Gallery & Zoom Styles
   ========================================================================== */
/* 画像リンク全体のスタイル（クリックできることを伝える） */
.image-link {
    display: block;
    cursor: zoom-in; /* 虫眼鏡アイコンを表示 */
    transition: opacity 0.3s ease;
    overflow: hidden;
    background-color: #000; /* ホバー時に透けた際の背景 */
}

.image-link:hover {
    opacity: 0.8;
}

/* モデル詳細ページ(modelR.html)などの画像の間隔調整 */
.Model-R-img img,
.Model-R-img2 img {
    margin-bottom: 30px; /* 画像の下に余裕を持たせる */
    width: 100%;
    height: auto;
    border: 1px solid rgba(197, 160, 89, 0.1); /* 非常に薄い枠線で高級感を出す */
}



/* ==========================================================================
   6. Cookie Banner (New Specification)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    border-top: 1px solid var(--accent-color);
    padding: 30px 20px;
    z-index: 9999;
    display: none; /* JSで制御 */
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
}

.cookie-text p {
    margin: 0;
    text-align: center;
    max-width: 800px;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 12px 25px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    min-width: 200px;
}

.cookie-btn.primary {
    background-color: var(--accent-color);
    color: #000;
}

.cookie-btn:hover {
    opacity: 0.8;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    background: #050505;
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   8. Responsive Design (Mobile)
   ========================================================================== */
@media (max-width: 992px) {
    #main-nav ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .menu-icon {
        display: block; /* ハンバーガーメニューを表示 */
    }

    #main-nav {
        display: none; /* 初期状態は非表示 */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 40px 20px;
        border-bottom: 1px solid var(--accent-color);
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        text-align: center;
    }

    .content-section {
        padding: 60px 20px;
    }

    .cookie-btn {
        width: 100%; /* モバイルではボタンをフル幅に */
    }
}

/* --- About Us: Founder Profiles --- */
.founder-profile {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.founder-flex.reverse {
    flex-direction: row-reverse;
}

.founder-image {
    flex: 0 0 250px; /* 写真の横幅を固定 */
}

.founder-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--accent-color);
    display: block;
}

.founder-info {
    flex: 1;
    text-align: left;
}

.founder-info h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

/* モバイル対応（画面幅が狭い時） */
@media (max-width: 768px) {
    .founder-flex, .founder-flex.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-info {
        text-align: center;
    }

    .founder-image {
        flex: 0 0 200px;
        margin-bottom: 20px;
    }
}


/* --- Technical Specifications Styles (縦並び・統一版) --- */
.spec-container {
    max-width: 850px; /* 横幅を少し絞ることで、1列にした時に読みやすくなります */
    margin: 0 auto;
    padding: 80px 20px;
}

/* 縦に並べるための設定 */
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 60px; /* 各セクション間の余白 */
    margin-top: 30px;
}

.spec-group {
    width: 100%;
}

.spec-group h3 {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 8px;
    margin-bottom: 10px;
    text-align: left;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem; /* 読みやすさのためにわずかに大きく */
    color: #ccc;
    table-layout: fixed;
}

/* 項目名と内容の整列 */
.spec-table th {
    width: 30%;          /* 項目名の幅を一定に揃える */
    font-weight: 600;
    color: #eee;
    text-align: left;
    padding: 15px 0;     /* 上下の余白を少し広げてゆとりを出す */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.spec-table td {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    vertical-align: top;
    color: #ccc;
}

/* Supplierも他の行と完全にデザインを統一 */
.spec-table tr.supplier th, 
.spec-table tr.supplier td {
    color: #ccc; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 各テーブルの最後の行だけ下線を消す（オプション） */
.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table td ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .spec-table th {
        width: 40%;
    }
}

/* パートナーカードのスタイル調整 */
.model-gallery {
    display: grid;
    /* 1列の幅を 240px〜300px に制限し、最大でも300px以上広がらないようにする */
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); 
    gap: 25px;
    padding-top: 40px;
    justify-content: center; /* 画面中央に並べる */
}

.model-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 300px; /* カードの肥大化を防止 */
}

.model-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* 画像エリアの設定（スリムな 2:1 比率） */
.partner-image {
    width: 100%;
    aspect-ratio: 2 / 1; 
    overflow: hidden;
    background-color: #002222;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.model-item:hover .partner-image img {
    transform: scale(1.05);
}

/* 情報エリア（余白を絞って上品に） */
.partner-info {
    padding: 15px 20px;
    text-align: center;
    flex-grow: 1;
}

.partner-info h3 {
    margin-bottom: 12px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.partner-info .cta-button {
    font-size: 0.75rem;
    padding: 8px 16px;
    min-width: 140px;
    display: inline-block;
    text-decoration: none;
}