@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-bg: #F8F9FA;
    /* Pale Gray / White */
    --color-bg-dark: #1A1A1A;
    /* Dark Background for Accents */
    --color-text-primary: #1F2937;
    /* Deep Charcoal */
    --color-text-secondary: #4B5563;
    /* Medium Gray */
    --color-accent: #0F766E;
    /* Sophisticated Teal */
    --color-accent-dark: #134E4A;
    --color-white: #FFFFFF;
    --color-border: #E5E7EB;

    /* Premium Shadows & Glass */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --backdrop-blur: blur(12px);

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Add padding to the right equal to sidebar width (80px) on desktop to prevent overlap */
    padding-right: 0;
}

@media (min-width: 1024px) {
    body {
        padding-right: 80px;
        /* Sidebar width */
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

/* Top Navigation */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    /* Fixed height for top bar */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Logo in Nav */
.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
}

.sidebar-nav .nav-list {
    display: flex;
    flex-direction: row;
    /* Horizontal */
    gap: 32px;
    width: auto;
    align-items: center;
}

.sidebar-nav .nav-item {
    display: block;
    width: auto;
}

.sidebar-nav .nav-link {
    writing-mode: horizontal-tb;
    /* Reset writing mode */
    text-orientation: mixed;
    transform: none;
    padding: 8px 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    /* For underline */
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: var(--color-accent);
}

.sidebar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* Align to bottom for horizontal nav */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    top: auto;
    /* Reset sidebar style */
    right: auto;
    transform: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    z-index: 1100;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-nav-overlay.open {
    display: flex;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--color-text-primary);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .sidebar-nav .nav-list {
        display: none;
        /* Hide desktop links */
    }

    .mobile-nav-toggle {
        display: block;
    }

    .sidebar-nav {
        padding: 0 20px;
    }
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #9CA3AF;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--color-white);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Layout Specifics */
.hero-section {
    padding: 120px 0 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F8F9FA 0%, #E6FFFA 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    transition: transform 0.3s ease;
}

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

.icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(15, 118, 110, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1rem;
}