:root {
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #e11f26;
    --primary-hover: #b91c1c;
    --secondary: #475569;
    --secondary-hover: #334155;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.75;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }

.sp-only { display: none; }
.pc-only { display: inline; }
.keep-break { display: inline; }

/* Navbar */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 980px;
    margin: 0 auto;
}
.nav-logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.35;
}
.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.45rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
}
.nav-cta:hover {
    background: var(--primary-hover);
}

/* Hamburger Button & Overlay (PC: Hidden) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.4rem;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}
.nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero-image-section {
    padding: 1.5rem 0 2.5rem;
    background: var(--white);
}
.hero-img-wrapper {
    max-width: 980px;
    margin: 0 auto 1.5rem;
}
.header-banner-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    border: 1px solid var(--border-color);
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
}
.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-alt);
}

/* Common Section */
.section, [id] {
    scroll-margin-top: 70px;
}
.section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

/* About Section */
.about-section {
    background: var(--white);
}
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.85;
}

/* Event Details Section */
.details-section {
    background: var(--white);
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.details-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.details-table th, .details-table td {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
}
.details-table tr:last-child th, .details-table tr:last-child td {
    border-bottom: none;
}
.details-table th {
    background-color: var(--bg-alt);
    width: 220px;
    font-weight: 700;
    white-space: nowrap;
    border-right: 1px solid var(--border-color);
}
.target-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.text-muted-sm {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Fortnite Section */
.fortnite-section {
    background: var(--white);
}
.fortnite-content {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-left: 1.2rem;
    list-style-type: disc;
}
.feature-list li {
    font-size: 0.98rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Preparation Section */
.prep-section {
    background: var(--white);
}
.prep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.prep-card {
    background: var(--white);
    padding: 1.6rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.full-width {
    grid-column: 1 / -1;
}
.prep-card h3 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.4rem;
    display: inline-block;
}
.device-list {
    padding-left: 1.2rem;
    list-style-type: circle;
    margin-bottom: 1rem;
}
.device-list li {
    font-size: 0.93rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}
.prep-desc {
    font-size: 0.93rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.btn-outline {
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}
.btn-outline:hover {
    background: var(--bg-alt);
}
.note {
    font-size: 0.83rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid var(--border-color);
}

/* Flyer Section */
.flyer-section {
    background: var(--white);
}
.flyer-container {
    max-width: 480px;
    margin: 0 auto;
}
.flyer-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.flyer-action {
    margin-top: 1.5rem;
}

/* Guests Section */
.guests-section {
    background: var(--white);
}
.guests-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.guest-card {
    text-align: center;
    width: 200px;
    background: var(--white);
    padding: 1.6rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.guest-photo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 1px solid var(--border-color);
}
.guest-role {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.role-mc {
    background: #ffe4e6;
    color: #be123c;
}
.role-guest {
    background: #f1f5f9;
    color: #475569;
}
.guest-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.guest-desc {
    color: var(--text-muted);
    font-size: 0.83rem;
}

/* Apply Section */
.apply-section {
    background: var(--white);
    padding-bottom: 5rem;
    border-bottom: none;
}
.apply-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.apply-deadline {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1.8rem;
    font-weight: 700;
}
.apply-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}
.apply-btn {
    flex: 1;
    min-width: 220px;
    padding: 1rem 1.2rem;
    border-radius: 4px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    background: var(--white);
}
.enterprise-btn {
    border: 2px solid var(--secondary);
    color: var(--secondary);
}
.enterprise-btn:hover {
    background: var(--secondary);
    color: var(--white);
}
.student-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
}
.student-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Footer */
.footer {
    padding: 2.5rem 0 1.8rem;
    background: var(--white);
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
}
.footer-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.footer-office {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.footer-email {
    color: var(--primary);
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.footer-email:hover {
    text-decoration: underline;
}
.copyright {
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    /* Navbar & Hamburger */
    .nav-container { padding: 0.6rem 1rem; position: relative; }
    .nav-logo { font-size: 0.85rem; white-space: normal; line-height: 1.3; max-width: 80%; }
    .hamburger-btn { display: flex; }
    .nav-overlay { display: block; }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 240px;
        height: 100vh;
        background: var(--white);
        padding: 4.5rem 1.5rem 2rem;
        gap: 1.2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1000;
        align-items: flex-start;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1rem;
        font-weight: 700;
        width: 100%;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links a.nav-cta {
        margin-top: 0.5rem;
        text-align: center;
        border-bottom: none;
    }

    /* Global Section & Title */
    .sp-only { display: inline; }
    .pc-only { display: none; }
    .keep-break { display: inline-block; }
    .section, [id] { scroll-margin-top: 60px; }
    .section { padding: 1.8rem 0; }
    .section-title { font-size: 1.3rem; margin-bottom: 1.0rem; }

    /* Hero Section */
    .hero-image-section { padding: 0.5rem 0 1.2rem; }
    .hero-image-section .container { padding: 0 4px; }
    .header-banner-img { border-radius: 4px; margin-bottom: 0.8rem; }
    .hero-actions { flex-direction: row; justify-content: center; gap: 0.5rem; width: 100%; flex-wrap: wrap; }
    .hero-actions .btn { width: auto; min-width: auto; padding: 0.45rem 0.9rem; font-size: 0.85rem; border-radius: 4px; }

    /* About Section */
    .about-text p { font-size: 0.88rem; margin-bottom: 0.8rem; line-height: 1.6; }

    /* Event Details Section */
    .table-responsive { border-radius: 4px; }
    .details-table th, .details-table td {
        display: block;
        width: 100%;
        border-right: none;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    .details-table th {
        border-bottom: none;
        padding-bottom: 0.2rem;
        background-color: var(--bg-alt);
    }
    .details-table td {
        padding-top: 0;
        padding-bottom: 0.8rem;
    }

    /* Fortnite Section */
    .fortnite-section { padding: 1.8rem 0; }
    .fortnite-content { padding: 1.2rem 1.0rem; border-radius: 4px; }
    .feature-list { gap: 0.7rem; margin-top: 0.8rem; padding-left: 1rem; }
    .feature-list li {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    /* Preparation Section */
    .prep-grid { grid-template-columns: 1fr; gap: 1.0rem; }
    .prep-card { padding: 1.0rem; border-radius: 4px; }
    .prep-card h3 { font-size: 0.98rem; margin-bottom: 0.8rem; }
    .device-list { padding-left: 1rem; }
    .device-list li { font-size: 0.85rem; margin-bottom: 0.4rem; }
    .btn-outline { font-size: 0.82rem; padding: 0.4rem 0.9rem; border-radius: 4px; }

    /* Guests Section */
    .guests-grid { gap: 0.8rem; }
    .guest-card { width: calc(50% - 0.4rem); padding: 1rem 0.5rem; border-radius: 4px; }
    .guest-photo-img { width: 75px; height: 75px; margin-bottom: 0.8rem; }
    .guest-name { font-size: 0.92rem; }
    .guest-role { padding: 0.15rem 0.6rem; font-size: 0.7rem; margin-bottom: 0.4rem; }
    .guest-desc { font-size: 0.75rem; }

    /* Apply Section */
    .apply-section { padding-bottom: 3rem; }
    .apply-box { padding: 1.4rem 0.8rem; border-radius: 4px; }
    .apply-deadline { font-size: 0.88rem; margin-bottom: 1.2rem; }
    .apply-buttons { flex-direction: column; align-items: center; gap: 0.8rem; }
    .apply-btn { width: 100%; max-width: 280px; padding: 0.75rem 1rem; font-size: 0.9rem; min-width: auto; border-radius: 4px; }

    /* Footer */
    .footer { padding: 1.8rem 0 1.0rem; }
    .footer-email { font-size: 0.9rem; margin-bottom: 1.2rem; }
    .copyright { font-size: 0.8rem; padding-top: 1.0rem; }
}
