/* === Variables === */
:root {
    --bg-base: #0a0514;
    --text-main: #e0e0e0;
    --primary-color: #6a1b9a;
    --secondary-color: #00bcd4;
    --glow-color: rgba(106, 27, 154, 0.7);
    --cyan-glow: rgba(0, 188, 212, 0.7);
    --glass-bg: rgba(20, 15, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Noto Sans JP', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* === Background === */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, #1b0c36 0%, #0a0514 100%);
}

.stars-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.2;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}

/* === Typography === */
.highlight {
    background: linear-gradient(90deg, #d32f2f, #6a1b9a, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* === Layout === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: block;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* === Components === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.premium-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
    padding: 4rem 2rem;
}

.premium-border::before {
    content: '';
    position: absolute;
    top: -1px; bottom: -1px; left: -1px; right: -1px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    z-index: -1;
    border-radius: inherit;
    opacity: 0.8;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, var(--primary-color), #8e24aa);
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #8e24aa, var(--secondary-color));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--glow-color);
}

.btn-icon {
    margin-left: 10px;
    transition: transform 0.3s;
}

.cta-button:hover .btn-icon {
    transform: translateX(5px);
}

.massive-btn {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    margin-top: 2rem;
    background: linear-gradient(45deg, #00acc1, #00897b);
}

.massive-btn::before {
    background: linear-gradient(45deg, #00897b, #00acc1);
}

.massive-btn:hover {
    box-shadow: 0 10px 30px var(--cyan-glow);
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 5, 20, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-cta {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* === Hero Section === */
.hero {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    padding-top: 5rem;
}

.hero-date {
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(106, 27, 154, 0.8);
}

.subtitle {
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: #bbb;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #ddd;
    line-height: 1.8;
}

/* === About === */
.about-grid {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    width: 80%;
}

/* === Systems === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.system-card {
    text-align: center;
    position: relative;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.system-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.system-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 0.2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* === Schedule === */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.time-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.time-row:last-child {
    margin-bottom: 0;
}

.time-row::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 40px;
    height: calc(100% + 10px);
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.time-row:last-child::before {
    display: none;
}

.time {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    color: var(--secondary-color);
    width: 80px;
    text-align: right;
}

.event {
    flex: 1;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.event h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event p {
    color: #bbb;
    font-size: 0.95rem;
}

/* === Access === */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.access-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.access-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.map-placeholder {
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px dashed rgba(255,255,255,0.2);
    color: #666;
}

/* === Reservation === */
.text-center {
    text-align: center;
}

.reservation-box p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.reservation-note {
    margin-top: 1.5rem;
    font-size: 0.9rem !important;
    color: #888;
}

/* === Footer === */
footer {
    background: #05020a;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--secondary-color);
    transition: 0.3s;
}

.social-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* === Fortune Section === */
.fortune-container {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem 2rem;
}

.fortune-crystal {
    font-size: 5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.5s ease;
}

.fortune-crystal.rolling {
    animation: crystal-spin 1s infinite linear;
    filter: drop-shadow(0 0 20px var(--cyan-glow));
}

@keyframes crystal-spin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(18deg); }
    100% { transform: scale(1) rotate(36deg); }
}

.fortune-message {
    font-size: 1.2rem;
    color: #bbb;
    margin-bottom: 1rem;
}

.fortune-result {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--cyan-glow);
    min-height: 3.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.fortune-result.reveal {
    animation: result-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes result-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.fortune-btn {
    margin-top: 1rem;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.quiz-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--secondary-color);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-btn:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: translateY(-2px);
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 900px) {
    .access-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    .time-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .time-row::before {
        display: none;
    }

    .time {
        text-align: left;
    }
}
