/* =======================================================
   BASE STYLES (V14 - V13 Base + Modern Style Tweaks)
   ======================================================= */
:root {
    --background-color: #000;
    --text-color: #f5f5f7;
    --accent-color: #0071e3;
    --secondary-text-color: #a1a1a6;
    --card-background: #1a1a1c;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Roboto', 'Noto Sans JP', 'Roboto Mono', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
}

/* 見出しの個別設定はbodyに統合したため削除 */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* --- LOGO STYLES (V14 Text Only) --- */
.logo {
    display: flex;
    align-items: center;
}

.logo-text-link {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    
    /* 文字ロゴスタイル */
    letter-spacing: -0.01em; 
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
    
    transition: opacity 0.3s ease;
}

.logo-text-link:hover {
    opacity: 0.7;
}

/* スクロールで出現する製品名（Gate）のスタイル */
.product-name {
    opacity: 0;
    transform: translateX(-10px);
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 0.3em;
}

/* JSで付与されるクラス */
header.scrolled .product-name {
    opacity: 1;
    transform: translateX(0);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Series Lineup Nav */
.lineup-nav {
    padding: 20px 5%;
    background-color: #111;
    border-bottom: 1px solid var(--card-background);
    padding-top: 80px;
}

.lineup-container {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    max-width: 1200px;
    margin: 0;
}

.lineup-card {
    background: var(--card-background);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 180px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lineup-card a {
    text-decoration: none;
    color: var(--text-color);
    padding: 15px;
    display: block;
    height: 100%;
    box-sizing: border-box;
}

.lineup-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    margin-top: 0;
}

.lineup-card p {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    margin: 0;
}

.lineup-card .brand-name {
    font-size: 0.8em;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 2px;
    margin-top: 0;
    padding-top: 0;
}

.lineup-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.lineup-card.active {
    border-color: var(--accent-color);
    background-color: #222;
}

.lineup-card.active h3, .lineup-card.active p {
    color: #fff;
}

.lineup-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lineup-card.disabled a {
    pointer-events: none;
}

.lineup-card.disabled:hover {
    transform: none;
    border-color: #555;
}

main {
    padding-top: 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    
    /* Common Background Styles */
    background-size: 1060px auto, cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(-114px);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

/* V14変更: ボタンサイズをコンパクト化 */
.cta-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 26px; /* 修正: 13px 48px -> 10px 26px */
    font-size: 1rem;    /* 修正: 1.17rem -> 1rem */
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    background-color: #0077ed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Unified Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 3rem;
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

/* Concept Section */
.concept {
    padding: 120px 5%;
    text-align: left;
    background-color: #000;
}

.concept-inner {
    max-width: 800px;
    margin: 0 auto;
}

.concept h2 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.concept p {
    font-size: 1.3rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

/* Features Grid */
.features {
    padding: 100px 5%;
    background-color: #000;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--card-background);
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-item p {
    color: var(--secondary-text-color);
    line-height: 1.6;
    flex-grow: 1;
}

/* Image Card Variation */
.feature-item.has-image {
    padding: 0;
    overflow: hidden;
}

.feature-item.has-image .card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.feature-item.has-image:hover .card-image {
    transform: scale(1.05);
}

.feature-item.has-image .card-content {
    padding: 32px;
    flex-grow: 1;
}

.feature-item.has-image h3 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Interface Showcase */
.interface-showcase {
    padding: 120px 5%;
    background-color: #050505;
}

.interface-container {
    max-width: 1200px;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8));
}

/* Technology Deep Dive */
.technology-deep-dive {
    padding: 120px 5%;
    background-color: #000;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 600;
    color: var(--secondary-text-color); text-transform: uppercase;
    white-space: nowrap;
}

.tech-specs-mini {
    margin-top: 20px; padding-top: 15px; border-top: 1px solid #333;
    display: flex; flex-direction: column; gap: 8px; width: 100%;
}

.tech-specs-mini span {
    font-size: 0.85rem; color: #a1a1a6; font-family: 'Roboto Mono', monospace;
}

.tech-specs-mini small { color: #666; margin-right: 8px; }

/* Terminal Window */
.terminal-window {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    background: #111; border-radius: 10px; border: 1px solid #333;
    font-family: 'Roboto Mono', monospace; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: left;
}

.terminal-header {
    background: #2a2a2c; padding: 10px 15px; display: flex; align-items: center; gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.terminal-title { color: #999; font-size: 0.8rem; margin-left: 15px; }
.terminal-body { padding: 20px; color: #fff; font-size: 0.9rem; line-height: 1.5; font-feature-settings: normal; letter-spacing: 0; }
.terminal-body code { display: block; white-space: pre-wrap; }
.prompt { color: #f0f; margin-right: 10px; }
.green { color: #28c840; } .red { color: #ff3b30; } .yellow { color: #ffcc00; } .blue { color: #0a84ff; }

/* Specs Section */
.specs { padding: 100px 5%; background: #080808; }
.specs-container { max-width: 800px; margin: 0 auto; border-top: 1px solid #333; }
.spec-row { display: flex; border-bottom: 1px solid #333; padding: 20px 0; }
.spec-label { flex: 0 0 200px; color: var(--secondary-text-color); font-weight: 600; text-align: left; }
.spec-value { flex: 1; color: var(--text-color); text-align: left; }

/* Disclaimer Styles */
.disclaimer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 1rem;
    text-align: left;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

.disclaimer p {
    margin-bottom: 0.5rem;
}

/* CTA Footer */
.cta-footer {
    padding: 150px 5% 100px; text-align: center;
    background: linear-gradient(to top, #111 0%, #000 100%);
}
.cta-content h2 { font-size: 3rem; margin-bottom: 20px; }
.cta-content p { font-size: 1.2rem; color: var(--secondary-text-color); margin-bottom: 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }
.cta-button.secondary {
    background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color);
}
.cta-button.secondary:hover { background: rgba(0, 113, 227, 0.1); }

/* --- FOOTER LOGO (New) --- */
footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid var(--card-background);
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-logo-img {
    width: 160px;
    height: auto;
    display: block;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* =======================================================
   HAMBURGER MENU (V6 SAFE STYLE)
   ======================================================= */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    width: 24px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1px; 
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { bottom: 9px; }

.hamburger.active span:nth-child(1) {
    top: 50%;
    margin-top: -0.5px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    bottom: 50%;
    margin-bottom: -0.5px;
    transform: rotate(-45deg);
}

/* =======================================================
   MOBILE TWEAKS (FIXING LINE BREAKS)
   ======================================================= */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: #000; flex-direction: column; justify-content: flex-start; align-items: flex-start;
        padding: 80px 0 0; box-sizing: border-box;
        transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links li { width: 100%; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; border-bottom: none; }
    .nav-links.active li { opacity: 1; transform: translateY(0); }
    .nav-links.active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.35s; }
    .nav-links li a { display: block; padding: 12px 40px; font-size: 1.7rem; font-weight: 700; color: #f5f5f7; letter-spacing: -0.02em; }
    
    .hero { height: auto; padding: 78px 20px 234px; background-position: center top; background-size: 802px auto; align-items: flex-start; }
    .hero-content { transform: none; margin-top: -20px; }
    
    .hero-content h1 { font-size: 1.8rem; margin-top: 10px; margin-bottom: 10px; }
    
    /* V14変更: スマホ時、ボタンを引き上げるために余白をPCより狭くする */
    .hero-content p { 
        font-size: 0.9rem; 
        line-height: 1.6; 
        margin-bottom: 20px; /* PC30px -> スマホ20px */
    }
    
    /* 改行無効化 */
    .pc-br { display: none; }
    
    .concept h2 { font-size: 2rem; }
    .image-wrapper { margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); max-width: none; }
    .section-header h2 { font-size: 2rem; }
    .spec-row { flex-direction: column; }
    .spec-label { margin-bottom: 5px; color: var(--accent-color); }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-button.secondary { margin-left: 0; margin-top: 10px; }
}
/* --- P-MARK STYLE --- */
.p-mark-container {
    margin-bottom: 20px; /* コピーライトとの余白 */
}

.p-mark-img {
    width: 80px;  /* Pマークは少し小さめが上品です（適宜調整してください） */
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.p-mark-img:hover {
    opacity: 1.0;
}
/* Monitor View Styles */
.monitor-wrapper {
    text-align: center;
    margin-bottom: 80px;
    perspective: 1000px;
    padding: 0 20px;
}

.monitor-frame {
    display: inline-block;
    background: #111;
    padding: 16px;
    border-radius: 6px;
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px #333,
        0 40px 80px rgba(0, 0, 0, 0.8);
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.monitor-frame .screen {
    overflow: hidden;
    border-radius: 2px;
    line-height: 0;
    position: relative;
    background: #000;
}

.monitor-frame .screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.05) 40%, 
        rgba(255,255,255,0.08) 50%, 
        rgba(255,255,255,0.05) 60%, 
        rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.monitor-frame img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 900px;
}

/* Modifier for cropping portrait images to landscape */
.monitor-frame.crop-portrait img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
}

.monitor-stand {
    width: 36%;
    max-width: 300px;
    min-width: 120px;
    height: 100px;
    background: linear-gradient(to right, #999, #bfbfbf, #999);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transform: translateY(-10px);
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.2); 
}

.monitor-stand::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: #8e8e93;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 15px 30px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .monitor-frame {
        padding: 10px;
        border-radius: 4px;
    }
    .monitor-stand {
        height: 40px;
    }
}

/* =======================================================
   PRINT STYLES (For Documentation & Proposals)
   ======================================================= */
@media print {
    /* Reset Colors for Print */
    body {
        background-color: #fff !important;
        color: #000 !important;
    }
    
    /* Hide Navigation & Interactive Elements */
    header, 
    .lineup-nav,
    .cta-button,
    .hamburger,
    footer,
    .terminal-window { /* Optional: Hide complex UI elements */
        display: none !important;
    }

    /* Adjust Layout for Paper */
    .hero, .concept, .features, .specs, .technology-deep-dive {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }

    /* Typography Adjustments */
    h1, h2, h3 {
        color: #000 !important;
        page-break-after: avoid;
    }

    p {
        color: #333 !important;
    }

    /* Ensure Images Print Clearly */
    img {
        max-width: 100% !important;
        filter: none !important; /* Remove any dark mode filters */
    }

    /* Add URL to Links (Optional but helpful for print) */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    /* Specific Section Tweaks */
    .hero-content {
        text-align: left;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 24pt;
    }
}
