@charset "UTF-8";

/* Top Page Specific Styles */

/* Hero Section */
.top-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.bg-top {
    width: 100%;
    min-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/bg-4by3.webp');
    /* Adjust path as needed */
    background-size: cover;
    background-position: top center;
    position: relative;
}

.logo {
    text-align: center;
    z-index: 2;
    padding: 0 20px;

}

.logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}



/* Hero Banners (Global) */
.hero-banners {
    width: 100%;
}

.banner-link {
    display: block;
    width: 100%;
    height: auto;
    /* Slightly smaller for mobile base, can override for PC */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}


.banner-link:hover {
    transform: translateY(-2px);
}

.banner-placeholder {
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* About Section on Top */
/* About Section on Top */
.about-section {
    width: 100%;
    /* Full screen width */
    margin: 0;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    font-family: var(--font-handwriting);
    /* Applied Klee One */
    /* Background Image setup */
}

/* Pseudo-element for 50% opacity background */
.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/natsuzora_image_bg_rgb.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    /* Requested 50% opacity */
    z-index: -1;
    /* Behind content */
}

.content-panel {
    background: transparent;
    /* Removed white bg */
    border-radius: 0;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    z-index: 10;
    box-shadow: none;
    /* Removed shadow */
}

.about-hero {

    font-size: 2.4rem;
    /* Increased size */
    font-weight: regular;
    color: #1e1b4b;
    /* Deep Indigo */
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.6);
    /* Stronger Glow */
}

.about-hero span {
    display: block;
}

.about-body {
    color: #1e1b4b;
    /* Deep Indigo */
    font-size: 1.2rem;
    font-weight: 500;
    /* Medium (Kiwi Maru Max) */
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.6);
    /* Stronger Glow */
}

.about-read-more {
    font-family: var(--font-main);
    /* Match menu font */
    text-decoration: underline;
    color: var(--c-accent-blue);
    font-weight: medium;
    display: inline-block;
    transition: transform 0.2s;
}

.about-read-more:hover {
    transform: scale(1.05);
}

.about-read-more-wrapper {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1023px) {
    .content-panel {
        padding: 20px;
        margin-top: 20px;
    }

    .about-hero {
        font-size: 1.4rem;
    }

    .about-body {
        font-size: 1rem;
    }
}

/* Video Section */
.video-section {
    padding: 40px 20px;
    text-align: center;
}

.video-wrapper {
    max-width: 600px;
    /* Reduced from 800px */
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    display: block;
}

/* News Section */
.news-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
}

.news-heading {
    border-bottom: 2px solid var(--c-accent-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--c-accent-dark);
}

.news-list {
    list-style: none;
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-date {
    font-weight: bold;
    color: var(--c-accent-blue);
    min-width: 100px;
}

.news-text {
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* PC Layout Adjustments */
@media screen and (min-width: 1024px) {

    /* Limit Side Menu height to Hero Section on Top Page */
    /* Fixed Sidebar is handled in layout.css now */

    /* Hide Logo in Side Menu on Top Page initially */
    .home-body .side-menu .side-logo {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    /* Show Logo when scrolled */
    .home-body .side-menu.scrolled .side-logo {
        opacity: 1;
        pointer-events: auto;
    }

    /* Push down navigation to avoid overlapping with the big logo, but raise it slightly */
    .home-body .side-nav-list {
        margin-top: 180px;
        /* Reduced from 280px */
        transition: margin-top 0.3s ease;
    }

    /* Reset navigation position when scrolled */
    .home-body .side-menu.scrolled .side-nav-list {
        margin-top: 0;
    }

    /* Adjust based on logo height */

    /* main-content needs higher z-index so its child (.logo) is above side-menu */
    .main-content {
        position: relative;
        z-index: 150;
    }

    /* Position Main Logo to overlap Side Menu */
    .logo {
        position: absolute;
        top: 10px;
        left: -270px;
        /* Offset to overlap sidebar (relative to bg-top which is offset by 280px) */
        z-index: 200;
        /* Above side menu (z-index: 100) */
        text-align: left;
        width: 60vw;
        max-width: 720px;
        /* Width allowing overlap (280px menu + overlap) */
        padding: 0;

    }

    .logo img {
        width: 100%;
        max-width: none;
        filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.5));
    }

    /* News Section Positioned Bottom-Right in Hero */
    /* Hero Right Area (Banners + News) */
    .hero-right-area {
        position: absolute;
        bottom: 30px;
        right: 30px;
        width: 380px;
        /* max-width removed to keep size */
        z-index: 100;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Removed global banner styles from here */

    /* News Section Compact Style */
    .news-section {
        position: static;
        /* Relative to hero-right-area */
        width: 100%;
        margin: 0;
        padding: 15px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .news-heading {
        font-size: 1.1rem;
        /* Smaller heading */
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 2px solid var(--c-accent-blue);
    }

    .news-item {
        font-size: 0.9rem;
        /* Smaller text */
        padding: 6px 0;
    }

    .news-date {
        min-width: 80px;
        font-size: 0.85rem;
    }

    /* About Section Adjustment for Sidebar */
    .about-section {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

/* Inline Menu for Banner */
.banner-inline-menu {
    display: block;
    /* Managed by opacity/visibility for transition */
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    /* Start slightly lower */
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 320px;
    z-index: 1000;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
}

.banner-inline-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.banner-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.banner-menu-list li {
    margin: 8px 0;
}

.banner-menu-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    color: var(--c-accent-dark);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--font-handwriting);
    font-size: 1.1rem;
}

.banner-menu-list a:hover {
    background: var(--c-accent-blue);
    color: white;
    transform: scale(1.02);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    font-weight: normal;
    white-space: nowrap;
}

.badge-book {
    background-color: #e67e22;
    /* Book color */
}

.badge-ebook {
    background-color: #3498db;
    /* E-book color */
}

/* Mobile Overrides (Placed last to ensure precedence) */
@media (max-width: 1023px) {
    .bg-top {
        min-height: 100vh;
        /* Full height on mobile too */
        background-image: url('../img/bg-mobile.webp');
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 50px;
        gap: 20px;
    }

    .logo img {
        max-width: 90%;
    }

    .hero-right-area {
        width: 90%;
        max-width: 380px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .news-section {
        margin: 0;
        /* Reset global margin */
        padding: 15px;
        font-size: 0.9rem;
    }

    .news-heading {
        font-size: 1.2rem;
        /* Reduced from global 1.5rem */
    }

    .news-item {
        padding: 5px 0;
        /* Reduced gap */
        gap: 5px;
    }

    .banner-inline-menu {
        width: 85%;
    }
}