:root {
    --primary-color: #ffb7c5;
    /* Sakura Pink */
    --secondary-color: #fff0f5;
    /* Lavender Blush */
    --accent-color: #87ceeb;
    /* Sky Blue */
    --text-color: #4a4a4a;
    /* Dark Gray */
    --font-heading: 'M PLUS Rounded 1c', sans-serif;
    --font-body: 'Zen Maru Gothic', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: #ff69b4;
    text-shadow: 2px 2px 0px #fff;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
    /* Logo left, Hamburger right */
    align-items: center;
    background: transparent;
    transition: background 0.3s;
}



.logo {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 40px;
    z-index: 2005;
    animation: float 3s ease-in-out infinite;
}

.logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
    transition: height 0.4s ease;
}

header.scrolled {
    background: transparent;
}

header.scrolled .logo img {
    height: 100px;
}

/* News Page Specifics */
body.news-specific .hamburger {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.news-specific .header-nav {
    display: none !important;
}

.logo a {
    display: flex;
    align-items: center;
}


/* Loading Screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffe4e1;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--primary-color);
}

.loading-title {
    font-size: 3rem;
    font-weight: bold;
    font-family: var(--font-heading);
    animation: fadeIn 1s ease-out;
}

.loading-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-body);
    margin-top: 10px;
    letter-spacing: 0.2rem;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

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

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



/* Navigation Menu (Always Drawer/Hamburger) */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen */
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 10000;
    /* Highest Priority */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    /* Reset opacity transition from previous step */
}

.nav-menu.active {
    right: 0;
    /* Slide in */
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #ff69b4;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: 0.3s;
}

.close-menu:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.nav-menu a {
    font-size: 1.5rem;
    margin: 20px 0;
    color: var(--text-color) !important;
    /* Force color in drawer */
    font-weight: bold;
    text-shadow: none;
}

.nav-menu a:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Desktop Nav Links */
.header-nav {
    display: none;
}

.header-nav a {
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.header-nav a:hover {
    color: var(--primary-color);
}

.nav-contact-btn {
    background: #fff;
    color: var(--primary-color) !important;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-shadow: none !important;
}

.nav-contact-btn:hover {
    background: var(--primary-color);
    color: #fff !important;
}

/* Hamburger */
.hamburger {
    display: block;
    cursor: pointer;
    z-index: 10001;
    width: 30px;
    height: 20px;
    position: fixed;
    top: 35px;
    right: 40px;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s;
}

.hamburger.visible {
    opacity: 1;
    pointer-events: auto;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ff69b4;
    position: absolute;
    border-radius: 5px;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    /* visibility on hero */
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #ffe4e1;
    /* Background color to fill if contain leaves space */
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show WHOLE image as requested */
    object-position: center;
    z-index: 0;
    opacity: 1;
}

/* Video Frame on Hero */
.video-frame {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 560px;
    height: 315px;
    border: 5px solid #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5);
    overflow: hidden;
    z-index: 10;
    background: #000;
    transition: transform 0.3s;
}

.video-frame:hover {
    transform: translateY(-55%) scale(1.05);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
}

/* Banners at Bottom */
.banner-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
    width: 90%;
    justify-content: center;
    flex-wrap: wrap;
    /* Wrap on small screens */
}

.banner {
    width: 240px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 2px solid #fff;
}

.banner:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
/* Sections */
section {
    padding: 80px 20px;
    /* Revert padding */
    max-width: 100%;
    /* Full width for backgrounds */
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Backgrounds */


#schedule {
    background-color: #fff;
    background-image: radial-gradient(#ffb7c5 2px, transparent 2px);
    background-size: 30px 30px;
    /* Polka dot */
}


/* Section Title Centering Fix */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: block;
    /* changed from inline-block to block for easier centering */
    /* Remove left/transform centering hack */
    left: auto;
    transform: none;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 5px;
}

/* Intro (Profile) - Card Style Removed */
.intro-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--glass-bg);
    /* Restore Glass */
    padding: 0;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.intro-img {
    flex: 0 0 35%;
    /* Reduce width to 35% */
    position: relative;
    /* Remove shadow/radius constraints for full fill */
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    aspect-ratio: auto;
    /* Let flex handle width */
}

.intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure no stretch */
}

.intro-img:hover {
    transform: scale(1.02);
}

.intro-text {
    flex: 1;
    color: var(--text-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff69b4;
    border-bottom: 2px dashed #ffb7c5;
    display: inline-block;
    padding-bottom: 5px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 2;
}

/* Schedule */
.schedule-container {
    text-align: center;
}

.schedule-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.schedule-img:hover {
    transform: scale(1.02);
}

.schedule-img:hover {
    transform: scale(1.02);
}

/* Recommend */
#recommend {
    background: linear-gradient(135deg, #fff 0%, #ffe4e1 100%);
    position: relative;
    overflow: hidden;
}

/* Optional decorative background circle */
#recommend::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 183, 197, 0.2);
    border-radius: 50%;
    filter: blur(40px);
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 0 20px;
}

.video-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5);
    aspect-ratio: 16 / 9;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #000;
    border: 5px solid #fff;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 105, 180, 0.3);
}

/* News */
.news-page {
    padding-top: 10px;
}

.news-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: #fff;
    margin-bottom: 12px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
}

.news-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(255, 105, 180, 0.18);
}

.news-item.open {
    box-shadow: 0 6px 24px rgba(255, 105, 180, 0.22);
}

/* Main page: news item as a plain link (no accordion) */
.news-item > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Header strip: gradient band showing date + category */
.news-header-strip {
    background: linear-gradient(90deg, #ff69b4 0%, #ffb7c5 60%, #ffd6e0 100%);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.news-item.open .news-header-strip {
    background: linear-gradient(90deg, #e0559a 0%, #ff69b4 50%, #ffb7c5 100%);
}

.news-header-strip .news-date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.news-header-strip .news-cat {
    background: rgba(255, 255, 255, 0.28);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

/* Body row: title + arrow icon, this is the click target */
.news-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.news-title {
    font-weight: 700;
    font-size: 0.88rem;
    flex: 1;
    color: var(--text-color);
    line-height: 1.4;
}

/* Circular arrow button */
.arrow-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.arrow-icon svg {
    width: 11px;
    height: 11px;
    color: #ff69b4;
    transition: color 0.3s;
    display: block;
}

.news-item.open .arrow-icon {
    transform: rotate(90deg);
    background: #ff69b4;
}

.news-item.open .arrow-icon svg {
    color: white;
}

/* Smooth slide open/close */
.news-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item.open .news-detail {
    max-height: 500px;
}

/* Inner content box with light pink background */
.news-detail-inner {
    margin: 0 14px 14px;
    padding: 14px 16px;
    font-size: 0.82rem;
    line-height: 1.9;
    color: #666;
    background: var(--secondary-color);
    border-radius: 10px;
    border: 1px solid rgba(255, 183, 197, 0.3);
}

.btn-container {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 183, 197, 0.4);
    transition: 0.3s;
}

.btn:hover {
    background: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

.btn:hover {
    background: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

/* Contact */
.contact {
    text-align: center;
    background-color: #ffe4e1;
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0.3) 10px,
            transparent 10px,
            transparent 20px);
    background-size: auto;
}

.contact-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 90%;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    word-break: break-all;
}

.contact-email a {
    color: var(--primary-color);
}

.contact-email a:hover {
    color: #ff69b4;
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

/* Footer */
footer {
    background: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 0;
    border-top: 5px solid var(--primary-color);
}

.footer-warning {
    color: #ff4757;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Initially hidden */
        width: 100%;
        /* Full width */
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        /* Vertical links in mobile menu */
        justify-content: center;
        transition: 0.4s ease;
        z-index: 2050;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 2rem;
        color: var(--text-color);
        margin: 15px 0;
    }

    .hamburger {
        display: block;
        right: 20px;
        top: 25px;
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #ff69b4;
        position: absolute;
        border-radius: 5px;
        transition: 0.3s;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger span:nth-child(3) {
        bottom: 0;
    }

    .hamburger.active span:nth-child(1) {
        top: 50%;
        transform: rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        top: 50%;
        transform: rotate(-45deg);
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 400px;
        /* Increased to fit stacked banners */
    }

    /* Added padding for banners */

    .hero-bg {
        object-fit: cover;
        object-position: 25%;
    }

    .video-frame {
        position: absolute;
        /* Changed to absolute to place at bottom */
        top: auto;
        bottom: 260px;
        /* Position above banners */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        /* Center horizontally */
        margin: 0;
        width: 80%;
        height: 180px;
    }

    .video-frame:hover {
        transform: scale(1.02);
    }

    .banner-container {
        flex-direction: row;
        flex-wrap: wrap;
        /* Allow wrapping */
        width: 85%;
        /* Adjust width */
        bottom: 20px;
        gap: 10px;
        justify-content: center;
    }

    .banner {
        width: calc(50% - 10px);
        /* 2 items per row */
        height: auto;
        aspect-ratio: 3/1;
        /* Maintain aspect ratio */
    }

    .intro-content {
        flex-direction: column;
    }

    .logo {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .logo img {
        height: 60px;
    }

    header.scrolled .logo img {
        height: 60px;
    }
}

/* Scroll to Top Character */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 10px;
    width: 120px;
    /* Adjust based on image size */
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    z-index: 9999;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top img {
    width: 100%;
    transition: transform 0.3s;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.scroll-top:hover img {
    transform: translateY(-10px) rotate(5deg);
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .schedule-container {
        padding: 0 10px;
    }
    .scroll-top {
        width: 60px;
        right: 15px;
        bottom: 15px;
    }
}