@charset "UTF-8";

/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    --primary-color: #c50018; /* エレクトリレッド */
    --iport-orange: #FB4C02;  /* IPORTオレンジ */
    --secondary-color: #033560;
    --accent-color: #8abc60;
    --text-color: #333;
    --text-light: #666;
    --text-dark-bg: #e0e0e0;
    --bg-color: #f8f9fa;
    --bg-dark: #25282a;
    --bg-dark-panel: #1a1c1e;
    --border-color: #ddd;
    --border-dark: #444;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* フォント設定 */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

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

html {
    font-family: var(--font-family-base);
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    padding-top: 130px;
}

button,
input,
select,
textarea,
table,
th,
td {
    font-family: inherit;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; border: none; }

/* Utility Classes */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.discontinued { color: var(--primary-color); font-size: 14px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--iport-orange);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}
.skip-link:focus { top: 0; }


/* =========================================
   2. Dark Theme Overrides (Index & Connect)
   ========================================= */
body.index-page,
body.connect-page {
    background-color: var(--bg-dark) !important;
    color: var(--text-dark-bg);
}

.index-page .site-main,
.connect-page .site-main,
.index-page .main-content,
.connect-page .main-content {
    background-color: var(--bg-dark) !important;
    padding-top: 0 !important;
}

/* Connect Page Specific Hero */
.hero-section {
    background: linear-gradient(135deg, #000000 0%, #222222 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}


/* =========================================
   3. Header & Footer
   ========================================= */
/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px; 
    z-index: 9000 !important; 
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img { height: 50px; width: auto; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 12px;
    font-family: var(--font-family-base);
}

.nav-menu a:hover { color: var(--iport-orange); transform: translateY(-2px); }
.nav-menu img { height: 30px; margin-bottom: 5px; }

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}
.site-footer p { margin: 0; font-size: 14px; }

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--text-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.scroll-top.show { opacity: 0.7; visibility: visible; }
.scroll-top:hover { opacity: 1; transform: translateY(-5px); }


/* =========================================
   4. Common Components (Buttons, CTA, Badges)
   ========================================= */
/* Buttons（グローバル - CTAセクション以外で使用） */
.btn-primary, .btn-secondary {
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-family: var(--font-family-base);
}

.btn-primary {
    background: #ffffff;
    color: var(--iport-orange);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.btn-secondary:hover {
    background: #ffffff;
    color: var(--iport-orange);
}

/* =========================================
   CTA Section（元のHTMLと完全に同じレイアウト）
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, #FB4C02, #ff8c42) !important;
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 80px;
    width: 100%;
    position: relative;
    z-index: 10;
    font-family: var(--font-family-base);
}

.cta-section .cta-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section .cta-content h2 {
    font-size: 32px;
    color: #ffffff !important;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: var(--font-family-base);
}

.cta-section .cta-content p {
    font-size: 18px;
    color: #ffffff !important;
    margin-bottom: 30px;
    font-family: var(--font-family-base);
}

/* CTAボタンコンテナ - 横並び（元のHTMLと同じ） */
.cta-section .cta-buttons {
    display: flex;
    flex-direction: row !important;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

/* CTAセクション内のボタン - 幅は自動（横並びのため） */
.cta-section .cta-buttons .btn-primary,
.cta-section .cta-buttons .btn-secondary {
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: var(--font-family-base);
    width: auto !important;
    flex-shrink: 0;
}

.cta-section .cta-buttons .btn-primary {
    background: #ffffff;
    color: #FB4C02;
    border: none;
}

.cta-section .cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-section .cta-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-section .cta-buttons .btn-secondary:hover {
    background: #ffffff;
    color: #FB4C02;
}

.cta-section .trademark-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-family-base);
}

/* CTAセクション レスポンシブ - スマホのみ縦並び */
@media (max-width: 768px) {
    .cta-section {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .cta-section .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-section .cta-buttons {
        flex-direction: column !important;
        align-items: center;
    }
    
    .cta-section .cta-buttons .btn-primary,
    .cta-section .cta-buttons .btn-secondary {
        width: 250px !important;
    }
}

/* Badges */
.new-product, .new-product-card { position: relative; }
.new-badge, .new-badge-card {
    position: absolute;
    right: 10px;
    background: linear-gradient(135deg, var(--iport-orange), #ff8c42);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 4px 15px rgba(251, 76, 2, 0.4);
    font-family: var(--font-family-base);
}
.new-badge { top: -5px; padding: 4px 12px; font-size: 11px; }
.new-badge-card { top: 10px; padding: 6px 15px; font-size: 12px; }

@keyframes pulse-badge {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(251, 76, 2, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(251, 76, 2, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(251, 76, 2, 0.4); }
}


/* =========================================
   5. Sidebar Layout & Toggle
   ========================================= */
/* Grid Layout for Sidebar + Main */
.content-wrapper-left {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    background-color: var(--bg-dark) !important;
}

/* Sidebar Styles */
.sidebar-left {
    background: var(--bg-dark-panel);
    padding: 0;
    border-radius: 8px;
    position: relative;
    height: fit-content;
    border: 1px solid #333;
}

.sidebar-title {
    background: #ffffff !important;
    color: #333333 !important;
    padding: 20px;
    margin: 0;
    border-radius: 8px 8px 0 0;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 3px solid var(--iport-orange);
    text-align: center;
    letter-spacing: 1px;
    font-family: var(--font-family-base);
}

.sidebar-left .sidebar-section {
    padding: 20px;
    border-top: 1px solid var(--border-dark);
}
.sidebar-left .sidebar-section:first-of-type { border-top: none; margin-top: 10px; }

.sidebar-section h3 { color: #ffffff; margin-bottom: 5px; font-family: var(--font-family-base); }
.sidebar-section p {
    color: #f5f5f5;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 15px;
}

.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-dark); }
.sidebar-menu li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-menu a { color: #d0d0d0; text-decoration: none; display: block; transition: color 0.3s ease; font-family: var(--font-family-base); }
.sidebar-menu a:hover { color: var(--iport-orange); }
.sidebar-menu small { color: #b8b8b8; font-weight: 500; display: block; font-size: 11px; }
.sidebar-menu strong { color: #ffffff; display: block; font-size: 13px; }

.sidebar-img-link { display: block; text-align: center; margin: 15px 0; }
.sidebar-img-link img {
    max-width: 120px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    transition: var(--transition);
}
.sidebar-img-link:hover img { transform: scale(1.1); }

.sidebar-links { padding: 20px; border-top: 1px solid var(--border-dark); }
.link-button {
    display: block;
    padding: 12px;
    margin: 10px 0;
    background: var(--bg-dark);
    border: 2px solid var(--iport-orange);
    color: var(--iport-orange);
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-family-base);
}
.link-button:hover { background: var(--iport-orange); color: white; }

/* Mobile Sidebar Toggle Logic */
.sidebar-toggle-btn { display: none; font-family: var(--font-family-base); }

@media (max-width: 1024px) {
    .content-wrapper-left { grid-template-columns: 1fr; }
    
    .sidebar-toggle-btn {
        display: block;
        width: 100%;
        padding: 15px;
        background-color: var(--bg-dark-panel);
        color: #ffffff;
        border: 2px solid var(--iport-orange);
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        margin-bottom: 10px;
        text-align: center;
        transition: all 0.3s ease;
    }
    .sidebar-toggle-btn:hover { background-color: #25282a; }
    .sidebar-toggle-btn.active { background-color: var(--iport-orange); }

    .sidebar-left {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        margin-bottom: 0;
        border: none;
        transition: all 0.4s ease-in-out;
        visibility: hidden;
    }
    .sidebar-left.open {
        max-height: 3000px;
        opacity: 1;
        padding: 0;
        margin-bottom: 40px;
        border: 1px solid #333;
        visibility: visible;
    }
}


/* =========================================
   6. Index & Content Sections
   ========================================= */
/* Intro Section */
.intro-section {
    background: var(--bg-dark) !important;
    padding: 0 0 30px 0 !important;
    margin-top: 0 !important;
}
.intro-section h2 {
    background: var(--bg-dark-panel);
    color: #ffffff;
    border-left: 4px solid var(--iport-orange);
    padding: 12px 20px;
    font-size: 18px;
    margin-bottom: 20px;
    font-family: var(--font-family-base);
}
.intro-section p { color: #d0d0d0; }
.full-width-img { width: 100%; height: auto; margin: 20px 0; }

/* =========================================
   News Section (ダークテーマ修正)
   ========================================= */
.news-section {
    background: var(--bg-dark) !important;
    padding: 40px 0;
}

.news-section h2 {
    background: var(--bg-dark-panel);
    color: #ffffff;
    border-left: 4px solid var(--iport-orange);
    padding: 12px 20px;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: var(--font-family-base);
}

.news-box {
    background-color: #1a1c1e !important;
    border: 1px solid #333;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.news-item {
    background-color: transparent !important;
    border-bottom: 1px solid #444;
    padding: 15px 0;
    margin-bottom: 0;
    border-radius: 0;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.news-item:hover {
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: var(--font-family-base);
}

.news-item p {
    color: #d0d0d0 !important;
    font-size: 14px;
    line-height: 1.6;
}

.news-item a {
    color: var(--iport-orange);
    text-decoration: underline;
}

.news-item a:hover {
    opacity: 0.8;
}

/* =========================================
   Tabs（元のHTMLと同じ幅 - 修正版）
   ========================================= */
.tabs-section { 
    background: var(--bg-dark) !important; 
    padding: 40px 0; 
    width: 100%;
}

.tabs { 
    background: var(--bg-dark) !important; 
    width: 100%;
    margin: 0;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border-dark);
    background: var(--bg-dark) !important;
    margin-bottom: 30px;
    width: 100%;
}

.tab-button {
    flex: 1;
    min-width: 0;
    padding: 12px 20px;
    background: var(--bg-dark-panel);
    color: #b0b0b0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-family: var(--font-family-base);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-button:hover { background: #202224; }

.tab-button.active {
    color: var(--iport-orange);
    border-bottom-color: var(--iport-orange);
    background: var(--bg-dark-panel);
    font-weight: bold;
}

.tab-content { 
    display: none; 
    animation: fadeIn 0.3s; 
    background: var(--bg-dark) !important; 
    width: 100%;
}

.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* タブのレスポンシブ対応 */
@media (max-width: 768px) {
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 50%;
        font-size: 12px;
        padding: 10px 8px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .tab-button {
        flex: 1 1 100%;
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
    background: var(--bg-dark) !important;
}
.product-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background: #f8f8f8 !important;
}
.product-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    text-decoration: none;
    color: var(--text-color);
}
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
    background-color: #fff;
    padding: 10px;
}
.product-card h3 { color: #333333 !important; margin-bottom: 10px; font-size: 18px; font-weight: 700; font-family: var(--font-family-base); }
.product-card p { font-size: 14px; color: #666666 !important; line-height: 1.6; }

/* Product Tables */
.product-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-family: var(--font-family-base); }
.product-table th {
    background: var(--bg-dark-panel);
    color: #ffffff;
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-dark);
}
.product-table td {
    background: var(--bg-dark);
    color: #d0d0d0;
    padding: 12px;
    border: 1px solid var(--border-dark);
}
.product-table tr:hover td { background: #202224; }
#index h3 { color: #ffffff; margin-top: 40px; font-family: var(--font-family-base); }

/* iPad Selector Section */
.ipad-selector-section {
    background: #1a1c1e;
    border: 1px solid #333;
    padding: 40px 20px;
    text-align: center;
    margin: 40px 0;
    border-radius: 10px;
}
.ipad-selector-content { max-width: 800px; margin: 0 auto; }
.ipad-selector-content h2 { font-size: 24px; color: #ffffff; margin-bottom: 12px; font-weight: bold; font-family: var(--font-family-base); }
.ipad-selector-content p { font-size: 15px; color: #b0b0b0; margin-bottom: 25px; }
.btn-selector {
    background: var(--iport-orange);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 76, 2, 0.3);
    font-family: var(--font-family-base);
}
.btn-selector:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251, 76, 2, 0.4); background: #e04400; }
.btn-selector::after { content: '→'; font-size: 18px; transition: transform 0.3s ease; }
.btn-selector:hover::after { transform: translateX(5px); }

/* =========================================
   Scene Grid (活用事例)
   ========================================= */
.scene-title {
    background: var(--bg-dark-panel);
    color: #ffffff;
    border-left: 4px solid var(--iport-orange);
    padding: 12px 20px;
    font-size: 16px;
    margin: 40px 0 20px;
    font-weight: 700;
    font-family: var(--font-family-base);
}

.scene-grid {
    display: grid;
    gap: 20px;
    background: var(--bg-dark) !important;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .scene-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.scene-item {
    background: var(--bg-dark-panel);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 10;
}

.scene-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: #555;
    z-index: 20; 
}

.scene-item a {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; 
    position: relative;
    overflow: hidden;
}

.scene-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.scene-item:hover img {
    transform: scale(1.1);
}

.scene-item p {
    color: #e0e0e0;
    margin: 0;
    padding: 15px 10px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    background: var(--bg-dark-panel);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-info {
    background: var(--bg-dark-panel);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    border: 1px solid #333;
}
.company-info h3 { color: #ffffff; margin-bottom: 20px; font-family: var(--font-family-base); }
.company-info p { color: #b0b0b0; }

/* Catalog & PDF Links */
.note { color: var(--iport-orange); margin-bottom: 10px; font-size: 13px; text-align: right; }
.catalog-img { max-width: 350px; display: block; margin: 0 auto; transition: var(--transition); }
.catalog-link:hover .catalog-img { transform: scale(1.05); }


/* =========================================
   7. Connect Page Specifics
   ========================================= */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-title { font-size: 48px; font-weight: 700; margin-bottom: 20px; font-family: var(--font-family-base); }
.hero-subtitle { font-size: 24px; color: var(--iport-orange); margin-bottom: 20px; font-family: var(--font-family-base); }
.hero-description { font-size: 18px; line-height: 1.8; margin-bottom: 30px; opacity: 0.95; }
.hero-features { display: flex; gap: 30px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.feature-icon { font-size: 24px; color: var(--iport-orange); }

.features-section { padding: 80px 0; background: var(--bg-dark); }
.section-title {
    text-align: center;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 50px;
    position: relative;
    font-family: var(--font-family-base);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--iport-orange);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.feature-card {
    background: var(--bg-dark-panel);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
}
.feature-card:hover { transform: translateY(-10px); background: #202224; }
.feature-icon-large { font-size: 48px; margin-bottom: 20px; color: var(--iport-orange); }
.feature-card h3 { color: #ffffff; margin-bottom: 15px; font-size: 20px; font-family: var(--font-family-base); }
.feature-card p { color: #b0b0b0; }

.product-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.main-image {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}
.main-image img { max-height: 220px; object-fit: contain; }

.thumbnail-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }

.thumbnail {
    background: #ffffff;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thumbnail:hover, .thumbnail.active { border-color: var(--iport-orange); }
.thumbnail img { max-height: 50px; }

.product-info { padding-top: 10px; }
.product-title { font-size: 28px; color: #ffffff; margin-bottom: 8px; font-family: var(--font-family-base); }
.product-sku { color: #888; font-size: 13px; margin-bottom: 16px; }
.product-description { font-size: 15px; line-height: 1.7; color: #d0d0d0; margin-bottom: 24px; }

ul.product-features {
    list-style: none !important;
    padding: 0;
    margin: 0 0 24px 0;
}

ul.product-features li {
    position: relative;
    padding: 10px 0 10px 30px;
    border-bottom: 1px solid #444;
    font-size: 14px;
    line-height: 1.6;
    color: #d0d0d0;
}

ul.product-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 12px;
    color: #8abc60;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

ul.product-features li:last-child {
    border-bottom: none;
}

.model-tag {
    background: var(--bg-dark-panel);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #d0d0d0;
    border: 1px solid #444;
    font-family: var(--font-family-base);
}

.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-item {
    background: var(--bg-dark-panel);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #444;
}
.spec-label { display: block; color: #888; font-size: 11px; }
.spec-value { display: block; color: #ffffff; font-size: 14px; font-weight: bold; }

.use-cases-section {
    padding: 60px 0;
    background: transparent !important;
}
.use-case-card {
    background: var(--bg-dark);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}
.use-case-icon { font-size: 40px; margin-bottom: 16px; color: var(--iport-orange); }
.use-case-card h3 { color: #ffffff; margin-bottom: 12px; font-family: var(--font-family-base); }
.use-case-card p { color: #b0b0b0; font-size: 13px; }


/* =========================================
   8. Plugin: Lightbox 2
   ========================================= */
body.lb-disable-scrolling {
    position: static !important;
    overflow: visible !important;
    height: auto !important;
}
.lightboxOverlay {
    position: absolute; top: 0; left: 0; z-index: 9999;
    background-color: black; opacity: 0.8; display: none;
}
.lightbox {
    position: absolute; left: 0; width: 100%; z-index: 10000;
    text-align: center; line-height: 0; font-weight: normal;
}
.lightbox .lb-image {
    display: block; height: auto; max-width: inherit; border-radius: 3px; border: 4px solid white;
    cursor: pointer !important;
}
.lb-outerContainer {
    position: relative; width: 250px; height: 250px; margin: 0 auto;
    border-radius: 4px; background-color: white;
}
.lb-outerContainer:after, .lb-dataContainer:after { content: ""; display: table; clear: both; }
.lb-loader { position: absolute; top: 43%; left: 0; height: 25%; width: 100%; text-align: center; line-height: 0; }
.lb-cancel {
    display: block; width: 32px; height: 32px; margin: 0 auto;
    background: url(../images/loading.gif) no-repeat;
}
.lb-nav, .lb-prev, .lb-next, .lb-number {
    display: none !important;
}
.lb-container > .nav { left: 0; }
.lb-dataContainer {
    margin: 0 auto; padding-top: 5px; width: 100%;
    border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;
}
.lb-data { padding: 0 4px; color: #ccc; }
.lb-data .lb-details { width: 85%; float: left; text-align: left; line-height: 1.1em; }
.lb-data .lb-caption { font-size: 13px; font-weight: bold; line-height: 1em; font-family: var(--font-family-base); }
.lb-data .lb-close {
    display: block; float: right; width: 30px; height: 30px;
    background: url(../images/close.png) top right no-repeat;
    text-align: right; outline: none; opacity: 0.7; transition: opacity 0.2s;
}
.lb-data .lb-close:hover { cursor: pointer; opacity: 1; }


/* =========================================
   9. Legacy & Shared Styles (Do Not Delete)
   ========================================= */
.site h1 a { color: #000000; text-decoration: none; }
.site h1 { margin: 0; font-size: 30px; font-family: var(--font-family-base); }
.bread ol { margin: 0; padding: 0; list-style: none; }
.bread li { float: left; }
.bread li:after { content: '\003e'; margin: 0 10px; color: #888; }
.bread:after { content: ""; display: block; clear: both; }

table.dealer {
    margin-top: 0; border-top: 1px solid #ddd; border-left: 1px solid #ddd;
    border-collapse: collapse; background-color: #fff; font-size: 90%;
    font-family: var(--font-family-base);
}
.dealer th {
    border-right: 1px solid #ddd; border-bottom: 1px solid #ddd;
    color: #333; background-color: #eee; padding: 0.3em 1em;
}
.dealer td {
    border-right: 1px solid #ddd; border-bottom: 1px solid #ddd;
    padding: 0.3em 1em;
}

.boxA:after, .box4:after, .box6:after, .box7:after { content: ""; display: block; clear: both; }
.box1, .box4-1, .box6-1, .box6-2, .box7-2 { float: left; }
.box2, .box7-1 { float: right; }
@media (min-width: 1190px) {
    .box3, .box4, .boxA-inner, .box5-inner, .box6, .box7 { width: 1140px; margin: 0 auto; }
}


/* =========================================
   10. Global Media Queries (Responsiveness)
   ========================================= */
@media (max-width: 1200px) {
    .product-detail { grid-template-columns: 350px 1fr; gap: 30px; }
    .product-images { max-width: 350px; }
}

@media (max-width: 1024px) {
    .content-wrapper-left { 
        display: block !important; 
        grid-template-columns: none !important;
        padding-top: 20px;
    }

    aside#productSidebar,
    .sidebar-left {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        border: none !important;
        margin-bottom: 20px;
    }

    .sidebar-toggle-btn {
        display: block !important;
        width: 100%;
        padding: 15px;
        background-color: var(--bg-dark-panel);
        color: #ffffff;
        border: 2px solid var(--iport-orange);
        border-radius: 8px 8px 0 0 !important;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        z-index: 100;
        margin-bottom: 0 !important;
        border-bottom: 1px solid #444 !important;
        font-family: var(--font-family-base);
    }
    
    .sidebar-toggle-btn:hover { background-color: #25282a; }
    .sidebar-toggle-btn.active { background-color: var(--iport-orange); }

    .mobile-sidebar-logo {
        display: block !important;
        text-align: center;
        background: var(--bg-dark-panel);
        padding: 15px;
        border-radius: 0 0 8px 8px;
        border: 2px solid var(--iport-orange);
        border-top: none;
        margin-bottom: 20px;
    }

    .mobile-sidebar-logo img {
        max-width: 150px;
        height: auto;
    }

    .sidebar-content-body {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease-in-out;
        background: var(--bg-dark-panel);
        border-radius: 8px;
        border: none;
    }

    aside#productSidebar.open .sidebar-content-body,
    .sidebar-left.open .sidebar-content-body {
        max-height: 3000px;
        opacity: 1;
        border: 1px solid #333;
        margin-bottom: 40px;
        display: block !important;
        visibility: visible !important;
    }

    .sidebar-logo.pc-only { display: none !important; }

    .hero-content, .product-detail { grid-template-columns: 1fr; }
    .product-images { position: static; max-width: 100%; margin-bottom: 24px; }
    .thumbnail-grid { max-width: 400px; margin: 0 auto; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .scene-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: white; flex-direction: column; padding: 20px;
        border-top: 1px solid var(--border-color);
        display: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }
    .nav-menu.active { display: flex; }
    
    .product-grid { grid-template-columns: 1fr; }
    .features-grid, .use-cases-grid, .specs-grid { grid-template-columns: 1fr; }
    .hero-features { flex-direction: column; gap: 12px; }
    .thumbnail-grid { grid-template-columns: repeat(5, 1fr); max-width: 100%; }
    .company-content-wrapper { flex-direction: column; }
    .company-image { max-width: 100%; margin-top: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar-menu small { font-size: 10px; }
}

/* =========================================
   Company Info Section (SONANCE)
   ========================================= */
.company-info {
    background: transparent;
    padding: 40px 0;
    margin-top: 60px;
    border: none;
    border-top: 1px solid #333;
}

.company-info h3 {
    background: var(--bg-dark-panel);
    color: #ffffff;
    border-left: 4px solid var(--iport-orange);
    padding: 12px 20px;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 700;
    font-family: var(--font-family-base);
}

.company-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

.company-text {
    flex: 1;
}

.company-info p {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.company-image {
    flex: 1;
    max-width: 500px;
}

.company-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

@media (max-width: 768px) {
    .company-content-wrapper {
        flex-direction: column;
    }
    
    .company-image {
        max-width: 100%;
        margin-top: 20px;
    }
}

/* =========================================
   Mobile Logo Control
   ========================================= */
.mobile-sidebar-logo {
    display: none;
}

.sidebar-logo.pc-only {
    display: block;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.sidebar-content-body {
    display: block;
}

/* =========================================
   Product Highlight (製品ハイライト)
   ========================================= */
.product-highlight {
    background: #1a1c1e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.highlight-icon {
    font-size: 42px;
    color: #FB4C02;
    flex-shrink: 0;
}

.product-highlight p {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 600px) {
    .product-highlight {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .highlight-icon {
        margin-bottom: 10px;
    }
}

/* =========================================
   Sidebar Custom Style (PC/SP Switching)
   ========================================= */
.mobile-sidebar-logo {
    display: none;
}
.pc-only {
    display: block;
}
.sidebar-content-body {
    display: block;
}

@media (max-width: 1024px) {
    .pc-only {
        display: none !important;
    }

    .mobile-sidebar-logo {
        display: block;
        text-align: center;
        margin-bottom: 15px;
        background: #1a1c1e;
        padding: 10px;
        border-radius: 8px;
    }
    .mobile-sidebar-logo img {
        max-width: 150px;
        height: auto;
    }

    .sidebar-content-body {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease-in-out;
        visibility: hidden;
    }

    .sidebar-left.open .sidebar-content-body {
        max-height: 3000px;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
    }
}

/* =========================================
   Mobile Sidebar Connected Style (一体型)
   ========================================= */
.mobile-menu-group {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu-group {
        display: flex;
        flex-direction: column;
        border: 2px solid #FB4C02;
        border-radius: 8px;
        background-color: #1a1c1e;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .mobile-logo-link {
        display: block;
        text-align: center;
        padding: 15px;
        background: #1a1c1e;
        border-bottom: 1px solid #444;
    }
    .mobile-logo-link img {
        max-width: 160px;
        height: auto;
    }

    .sidebar-toggle-btn.connected-btn {
        border: none;
        border-radius: 0;
        margin: 0;
        width: 100%;
        background: transparent;
        color: #fff;
        font-family: var(--font-family-base);
    }
    
    .sidebar-toggle-btn.connected-btn:hover,
    .sidebar-toggle-btn.connected-btn.active {
        background-color: #333;
    }
}

/* =========================================
   Smooth Scroll Offset (ヘッダー被り防止)
   ========================================= */
[id] {
    scroll-margin-top: 140px;
}

@media (max-width: 1024px) {
    [id] {
        scroll-margin-top: 100px;
    }
}