/* Header Styles */
.header {
    background-color: #2a2a2a;
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
}

:root { 
    --header-height-desktop: 78px; 
    --header-height-mobile: 55px; 
}
body { margin-top: var(--header-height-desktop) !important; }
@media (max-width: 960px) { 
    body { 
        margin-top: var(--header-height-mobile); 
        padding-top: 0; 
    } 
}

.header-content {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.lang a{
    color: #cccccc;
    text-decoration: none;
}

.logo {
    color: #888;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}
.logo img { height: 48px; width: auto; display: block; }

.nav {
    display: flex;
    gap: 60px;

}

.nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s; 
    padding: 15px 0 12px;
}

.nav a:hover, .nav a.active { color: #ff0000; }
.nav a.active { border-bottom: 3px solid #ff0000; }


.user-info {
    color: #ccc;
    font-size: 18px;
    max-width: 270px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-shrink: 0;
}

.user-login{
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cccccc;
    text-decoration: none;
}

    .user-login img{
        width: 20px;
        height: 20px;
    }



/* mobile nav toggle & drawer */
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .3s; }

@media (max-width: 960px) {
    .logo img { height: 20px; }
    .menu-toggle { display: inline-block; margin-right: 10px; }
    .nav { position: fixed; top: 0; right: 0; height: 100vh; width: 70%; max-width: 320px; background: #1f1f1f; flex-direction: column; padding: 80px 24px 24px; gap: 18px; transform: translateX(100%); transition: transform .3s ease; z-index: 99; }
    .nav a { font-size: 18px; }
    .user-info { margin-left: auto; gap: 16px; font-size: 16px; }
    .header-content { gap: 12px; }
    .nav-overlay { display: block; }
    body.nav-open .nav { transform: translateX(0); }
    body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
    .user-login img{
        width: 15px;
        height: 15px;
    }
}

/* Footer Styles */
.footer {
    background-color: #12151a;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #ff0000;
}

.footer-text {
    font-size: 12px;
    color: #888;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        gap: 20px;
    }
    
    .nav a {
        font-size: 16px;
    }
    
    .user-info {
        font-size: 16px;
        gap: 20px;
    }
    
    .footer-nav {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }
    
    .user-info { font-size: 14px; gap: 12px; }
    
    .footer-nav { gap: 10px; }
    
    .footer-nav a {
        font-size: 12px;
    }
}

/* Avoid default margins and horizontal scroll */
html, body { width: 100%; overflow-x: hidden; margin: 0; padding: 0; }

/* 全局字体，统一各页面字体风格 */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    color: #2a2a2a;
}

/* Global: remove underline on hover */
a:hover { text-decoration: none; }

/* Hero SNS Links - Global Social Links Styles - Replicated from hy-stars.jp */
.hero__sns {
    display: flex;
    flex-direction: column;
    height: fit-content;
    gap: 1.5rem;
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 5;
}

.hero__sns a {
    display: block;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease;
}

.hero__sns a:hover {
    opacity: 0.7;
}

.hero__sns img {
    width: auto;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .hero__sns {
        top: 28.2rem;
        right: 1.5rem;
        transform: none;
        gap: 0.5rem;
    }
    
    .hero__sns a {
        width: 3rem;
        height: 3rem;
    }
    
    .hero__sns img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}


