* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(45deg, #000428, #004e92);
    min-height: 300vh;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin: 0;
    overflow: hidden;  /* ページ全体のスクロールを無効化 */
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff69b4, #4169e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

#container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scroll-content {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 20vh;  /* 最後のセクションの余白 */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    z-index: 1;  /* コンテンツを前面に */
}

.scroll-content::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* スクロールのスナップポイントを設定 */
.bg-white\/80 {
    scroll-snap-align: start;
}

.content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 0;  /* z-indexを低い値に設定 */
    color: #ffffff;
}

.title {
    font-size: 8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4f46e5, #7c3aed, #2563eb, #06b6d4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px rgba(56, 189, 248, 0.3);
    letter-spacing: 0.1em;
    animation: gradient 8s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.subtitle {
    font-size: 2rem;
    margin-top: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,198,255,0.7);
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0,198,255,0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(0,198,255,0.8),
                     0 0 40px rgba(0,198,255,0.3);
    }
}

.info-card, .about-content, .favorite-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.info-card {
    margin: 100vh 5% 20vh auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    color: white;
    width: 300px;
}

.info-card h2 {
    margin-bottom: 1rem;
    color: #4169e1;
}

.info-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.about-content {
    margin: 20vh 0 20vh 5%;
    color: white;
    max-width: 400px;
}

.about-content h2 {
    color: #4169e1;
    margin-bottom: 1rem;
}

.favorite-card {
    margin: 20vh 5% 20vh auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    color: white;
    width: 300px;
}

.category {
    margin: 1rem 0;
}

.category h3 {
    color: #4169e1;
    border-bottom: 2px solid #4169e1;
    margin-bottom: 0.5rem;
}

.bg-white {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.favorite-category {
    opacity: 1;
}
