@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500&display=swap');

:root {
    --text-color: #121212;
    --bg-color: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --sidebar-width: 280px;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-speed);
}

a:hover {
    opacity: 0.7;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    padding: 40px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--bg-color);
    z-index: 100;
    box-sizing: border-box;
}

.site-title {
    margin-bottom: 40px;
    text-align: center;
}

.site-title a {
    display: flex;
    /* Changed from block to flex for perfect centering */
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--bg-color);
    /* Start White text */
    background-color: var(--text-color);
    /* Start Black bg */
    letter-spacing: 0.15em;
    border: 1px solid var(--text-color);
    /* Border matches bg initially so size doesn't jump */
    padding: 15px 0;
    transition: all 0.3s ease;
    text-decoration: none;
    font-variant-numeric: lining-nums;
    /* Ensure numbers align */
    line-height: 1;
    /* fix vertical alignment quirk */
}

.site-title a:hover {
    background-color: var(--bg-color);
    /* Hover White bg */
    color: var(--text-color);
    /* Hover Black text */
    /* Border is already there, just colors change */
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-nav a {
    font-size: 16px;
    font-family: var(--font-serif);
    font-variant-numeric: lining-nums;
    letter-spacing: 0.05em;
}

/* Banner Placeholder */
.sidebar-banner {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.sidebar-banner img {
    width: 140px;
    height: auto;
    display: block;
}

.sidebar-footer {
    font-size: 12px;
    font-family: var(--font-serif);
    font-variant-numeric: lining-nums;
    opacity: 0.6;
}

/* Main Content */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 0;
    /* Full width for slideshow */
    min-height: 100vh;
    box-sizing: border-box;
}

/* Mobile specific elements */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 20px;
    box-sizing: border-box;
    z-index: 90;
    /* mix-blend-mode: difference; Optional for visibility over images, but user wanted white bg theme */
}

.mobile-site-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 18px;
    /* Smaller than desktop 26px */
    font-weight: 400;
    color: var(--bg-color);
    /* White text */
    background-color: var(--text-color);
    /* Black bg */
    letter-spacing: 0.15em;
    border: 1px solid var(--text-color);
    padding: 10px 20px;
    /* Smaller padding */
    width: fit-content;
    /* Don't stretch full width */
    margin: 0;
    /* Align left or center? Header has padding 20px. */
    font-variant-numeric: lining-nums;
    line-height: 1;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 200;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    margin-bottom: 6px;
    transition: all var(--transition-speed);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .mobile-header {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -100%;
        transition: left var(--transition-speed) ease;
        justify-content: flex-start;
        padding-top: 80px;
        padding-left: 150px;
        box-shadow: none;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar .site-title {
        display: none;
        /* Hide duplicate title in sidebar on mobile usually, or keep it */
    }

    .content {
        margin-left: 0;
        padding-top: 80px;
        /* 60px header + 20px space */
    }

    .menu-toggle {
        display: block;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}