* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

:root {
    --bg-dark: #000000;
    --text-white: #ffffff;
    --accent-red: #d12b1a;
    --font-main: 'Inter', sans-serif;
    --text-gray: #444;
    --text-gray-light: #666;
    --border-gray: #e5e5e5;
    --shadow-neutral: 0 2px 10px rgba(20, 20, 20, 0.05);
    --blue-link: #0066cc;
}

body {
    background-color: #ffffff;
    font-family: var(--font-main);
    color: #000;
    overflow-x: hidden;
}

body.has-fixed-nav {
    padding-top: 80px;
}

/* Inner pages: bar is always visible. Home uses .is-home until scroll. */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 22px 60px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.sticky-header.is-home {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.sticky-header.is-home.is-scrolled {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sticky-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5em;
    max-width: 80%;
    justify-content: flex-end;
    margin-left: auto;
}

.sticky-nav a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.sticky-nav a.active,
.sticky-nav a:hover {
    color: var(--accent-red);
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    border: none;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.footer {
    width: 100%;
    background-color: #fafafa;
    border-top: 1px solid var(--border-gray);
    padding: 60px 60px 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-left { flex: 1; min-width: 300px; }
.footer-title { font-size: 1.2rem; font-weight: 500; letter-spacing: 0.1em; margin-bottom: 20px; }
.footer-text { font-size: 0.95rem; line-height: 1.8; color: var(--text-gray); }
.footer-contact { margin-top: 28px; }
.footer-contact p { color: var(--text-gray); line-height: 1.8; }
.footer-contact a { color: var(--text-gray); text-decoration: underline; }
.footer-right { flex: 1; min-width: 300px; text-align: right; }
.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}
.footer-copyright {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 768px) {
    body.has-fixed-nav { padding-top: 88px; }
    .sticky-header {
        padding: 12px 16px;
        justify-content: center;
    }
    .sticky-nav {
        gap: 8px 12px;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    .sticky-nav a { font-size: 0.65rem; letter-spacing: 0.1em; }
    .back-to-top { width: 42px; height: 42px; font-size: 16px; bottom: 24px; right: 20px; }
    .footer { padding: 40px 30px 20px; }
    .footer-inner { flex-direction: column; gap: 30px; }
    .footer-right { display: none; }
}
