/* Common CSS for all pages */
:root {
    --bg: #FCFCFC;
    --text: #2B2B2B;
    --accent: #2B2B2B;
    --hover-blue: #0A4DA2;
    --meter-fill: #4A90A4;
    --meter-bg: #F0F4F6;
    --footer-bg: #2C2C2C;
    --footer-text: #FFF;
    --border: #E5E5E5;
    --surface: #FFFFFF;
    --text-light: #666;
    --text-lighter: #999;
    
    /* Font families */
    --font-serif-jp: "Noto Serif JP", "YuMincho", "Hiragino Mincho ProN", serif;
    --font-sans-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
    --font-display: "Zen Kaku Gothic New", "Zen Kaku Gothic Antique", var(--font-sans-jp);
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, var(--font-sans-jp);
    
    /* Font weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-bold: 700;
}

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

body {
    font-family: var(--font-sans-jp);
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    font-weight: var(--font-light);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(252, 252, 252, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: var(--font-light);
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
nav {
    display: flex;
    gap: 3rem;
}

nav a {
    font-family: var(--font-ui);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: var(--font-regular);
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.6;
}

/* Main Content */
main {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: opacity .4s, transform .4s;
    opacity: .6;
    filter: grayscale(100%);
}

.social-links a.x-icon {
    background-image: url('../x.png');
    background-size: 13px 13px;
}

.social-links a.insta-icon {
    background-image: url('../insta.png');
}

.social-links a.note-icon {
    background-image: url('../note.png');
    background-size: 12px 12px;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: grayscale(0%);
}

.copyright {
    font-size: 0.65rem;
    color: #999999;
    opacity: 0.6;
}

/* Media Queries */
@media (hover: none) {
    .work-item:hover,
    .timeline-card:hover,
    .news-item:hover,
    .other-item:hover {
        transform: none;
        background: transparent;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 99;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        font-size: 1.1rem;
    }
    
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .copyright {
        font-size: 0.75rem;
        opacity: 0.8;
    }
}