:root {
    --primary: #000000;
    --accent: #3b82f6;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: #ffffff;
    color: var(--primary);
    scroll-behavior: smooth;
}
body.dark-mode {
    background-color: #000000;
    color: #ffffff;
}
.font-serif {
    font-family: 'Playfair Display', serif;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }

nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Animations */
[data-aos="reveal-left"] {
    clip-path: inset(0 100% 0 0);
    transition-property: clip-path;
}
[data-aos="reveal-left"].aos-animate {
    clip-path: inset(0 0 0 0);
}

.img-container img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-container:hover img {
    transform: scale(1.1);
}

/* Common UI Elements */
.sns-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    transition: all 0.3s;
}
.sns-button:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: scale(1.1);
}

.sns-icon-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.05);
}
.sns-icon-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.1);
}

/* Mobile Menu */
#mobileMenu {
    transform: translateY(-100%);
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}
#mobileMenu.active {
    transform: translateY(0%);
}

/* Company Page Specific */
.company-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 0;
    display: grid;
    grid-template-cols: 1fr;
}
@media (min-width: 768px) {
    .company-row {
        grid-template-columns: 1fr 2fr;
    }
}
.text-vertical {
    writing-mode: vertical-rl;
}

/* Contact Page Specific */
input, textarea {
    transition: all 0.3s ease;
}
input:focus, textarea:focus {
    border-color: var(--accent) !important;
}

/* Profile Page Specific (Timeline) */
.timeline-container { position: relative; }
.timeline-line { position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: #f3f4f6; }
.timeline-item { position: relative; padding-left: 60px; padding-bottom: 4rem; }

.timeline-dot { 
    position: absolute; 
    left: 11px; 
    top: 8px; 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    background: var(--accent);
    border: 4px solid #fff; 
    box-shadow: 0 0 0 2px var(--accent); 
    z-index: 10; 
}

.timeline-year { font-size: 0.75rem; font-weight: 900; color: #9ca3af; letter-spacing: 0.2em; margin-bottom: 0.5rem; display: block; }

.profile-img-adjust {
    object-position: 50% 10%; 
}