body {
    margin: 0;
    color: #e5e5e5;
    font-family:
        "Noto Sans JP",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        "Meiryo",
        system-ui,
        sans-serif;
    background: linear-gradient(120deg, #060606, #1f1f1f, #0b0b0b, #1a1a1a, #060606);
    background-size: 420% 420%;
    animation: slow-wave 70s linear infinite;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255,170,220,0.025) 45%,
        rgba(255,255,255,0.055) 50%,
        rgba(255,170,220,0.025) 55%,
        transparent 100%
    );
    background-size: 250% 100%;
    animation: subtle-wipe 18s ease-in-out infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.015) 0px,
        rgba(255,255,255,0.015) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: grain-shift 6s steps(10) infinite;
}

@keyframes slow-wave {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes subtle-wipe {
    0%   { background-position: -180% 0; }
    100% { background-position: 180% 0; }
}

@keyframes grain-shift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(6px); }
}

/* =========================
   Header / Title
   ========================= */
.page-title span {
    color: #ff6ac6;
    text-shadow:
        0 0 8px rgba(255,120,200,0.6),
        0 0 22px rgba(255,120,200,0.25);
}

.page-title,
.layout {
    position: relative;
    z-index: 2;
}

.page-title {
    position: relative;
    background: transparent;           /* IMPORTANT: let wave show */
    padding: 24px 10px 24px;
    text-align: center;
    font-size: 26px;
    letter-spacing: 0.25em;
    border-bottom: 1px solid #1f1f1f;
}

.subtitle {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: #9a9a9a;
}

/* REMOVE the dark overlay completely */
.page-title::before {
    content: none;
}

/* =========================
   Layout
   ========================= */

.layout {
    display: flex;
    min-height: calc(100vh - 107px);
}
/* =========================
   Sidebar
   ========================= */

.sidebar {
    width: 180px;
    background: transparent;
    border-right: 1px solid #1f1f1f;
    padding: 20px 0;
}

.sidebar a {
    display: block;
    padding: 10px 20px;
    background: transparent;
    color: #e5e5e5;
    text-decoration: none;
    cursor: pointer;
}

.sidebar a:hover {
    background-color: rgba(255,255,255,0.07);
    color: #ffffff;
}

.sidebar a.active {
    color: #ffffff;
    box-shadow:
        inset 3px 0 0 #8c1d18,
        inset 0 0 0 999px rgba(255,255,255,0.10);
}

.menu-title {
    color: #9a9a9a;
    padding: 0 20px 12px;
    margin-left: 2px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.header-logo {
    height: 100px;
    width: auto;
}


.sidebar-image-wrap {
    position: relative;
}

.sidebar-image-wrap::after {
    content: "♥";
    position: absolute;
    text-shadow: 0 0 8px rgba(255, 80, 180, 0.6);
    top: 10px;
    right: 12px;
    font-size: 22px;
    color: #ff4fb3;

    opacity: 0;
    transform: scale(0.7);

    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.sidebar-image-wrap:hover::after {
    opacity: 1;
    transform: scale(1);
}

.landing-card {
    margin: 120px auto;
    max-width: 480px;
    padding: 32px;
    text-align: center;

    background: rgba(255,255,255,0.55);
    border-radius: 24px;

    box-shadow: 0 12px 32px rgba(255,105,180,0.18);
}

.landing-card h1 {
    color: #ff2f92;
    margin-bottom: 12px;
}

.enter-gallery {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 18px;

    border-radius: 999px;
    text-decoration: none;
    color: white;

    background: linear-gradient(90deg,#ff4fb3,#ff89cf);
}

body:has(.enter-gallery:hover) .sidebar-image-wrap::after {
    opacity: 1;
    transform: scale(1);
}

.content {
    margin-left: 0px;
    margin-top: 110px;
    height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 24px;
    scroll-behavior: smooth;
    flex: 1;
}

@media (max-width: 768px) {
    .page-title {
        padding: 16px 10px 18px;
        font-size: 20px;
        letter-spacing: 0.12em;
    }

    .subtitle {
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding: 12px 0 16px;
    }

    .sidebar-image-wrap {
        max-width: 180px;
        margin: 0 auto 12px;
    }

    .menu-title {
        text-align: center;
        padding: 0 0 10px;
        margin-left: 0;
    }

    .sidebar a {
        text-align: center;
        padding: 12px 16px;
    }

    .kawaii-content,
    .content {
        padding: 16px;
    }

    .landing-card {
        margin: 24px auto;
        max-width: 100%;
        padding: 22px 18px;
    }

    .gallery-intro {
        padding: 16px 18px;
    }

    .gallery-intro h1 {
        font-size: 24px;
    }

    .thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .thumb-card {
        padding: 4px;
        border-radius: 18px;
    }

    .thumb-card img {
        height: 180px;
        border-radius: 12px;
    }

    .pagination {
        gap: 10px;
        flex-wrap: wrap;
    }

    .page-button {
        padding: 10px 14px;
    }
}

.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-button {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    background: #f6d6ea;
    color: #7a3b69;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-button:hover {
    background: #fff;
    color: #ff4fb3;
}

.view-button.active {
    background: linear-gradient(90deg, #ff4fb3, #ff89cf);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 79, 179, 0.4);
}

