/* ヘッダースタイル */
header {
    background-image: url('https://imagedelivery.net/NAaL_-q_p_bxlVdCND_Iag/3c60fbbf-7549-4555-b75b-20eff0312d00/public');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 77, 43, 0.6),
        rgba(13, 51, 32, 0.6)
    );
    backdrop-filter: blur(3px);
    pointer-events: none;
    z-index: 1;
}

header * {
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: white;
    margin: 2rem 0;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

header h2 {
    font-size: 2rem;
    color: #FFD700 !important;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    text-shadow: 1px 1px 12px rgba(0, 0, 0, 0.7),
                 0 0 30px rgba(255, 215, 0, 0.3);
    font-weight: 600;
    transform: translateZ(0);
    margin-bottom: 1.2rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    opacity: 0.92;
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* コンテンツセクション */
.content {
    background: rgba(255, 255, 255, 0.99);
    border-radius: 35px;
    padding: 4.5rem;
    margin-bottom: 6rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18),
                0 0 120px rgba(30, 77, 43, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    color: #222;
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 35px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    pointer-events: none;
}

.content:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25),
                0 0 150px rgba(30, 77, 43, 0.18);
}

/* ナビゲーションボタン */
.nav-button {
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.08em;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.nav-button i {
    font-size: 1.2em;
    margin-right: 0.5em;
    opacity: 0.9;
}

/* アニメーション */
@keyframes titleGlow {
    0% {
        text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5),
                     0 0 40px rgba(255, 255, 255, 0.25);
    }
    50% {
        text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6),
                     0 0 60px rgba(255, 255, 255, 0.35);
    }
    100% {
        text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5),
                     0 0 40px rgba(255, 255, 255, 0.25);
    }
}

/* フッター */
footer {
    background: linear-gradient(135deg, 
        rgba(30, 77, 43, 1),
        rgba(13, 51, 32, 1)
    );
    color: rgba(255, 255, 255, 0.97);
    text-align: center;
    padding: 3rem;
    margin-top: 5rem;
    position: relative;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

footer p {
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.15em;
    font-size: 1.15rem;
    position: relative;
    display: inline-block;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.page-nav {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 360px;
        padding-top: 6rem;
    }

    header h1 {
        font-size: 3.4rem;
    }

    header h2 {
        font-size: 1.7rem;
        letter-spacing: 0.25em;
    }

    .content {
        padding: 3rem;
        margin-bottom: 4rem;
    }

    .nav-button {
        font-size: 0.95em;
    }
}

/* 精霊の光の演出 */
@keyframes spirit {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    25% {
        transform: translate(50px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(100px, -20px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(150px, -40px) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translate(200px, -100px) scale(0.9);
        opacity: 0;
    }
}

.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 
        0 0 20px 5px rgba(255, 255, 255, 0.5),
        0 0 40px 8px rgba(173, 216, 230, 0.3),
        0 0 60px 10px rgba(135, 206, 235, 0.2);
    animation: spirit 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(0.5px);
}

/* 複数の精霊を配置 */
.firefly:nth-child(1) { left: 5%; top: 60%; animation-delay: 0s; }
.firefly:nth-child(2) { left: 15%; top: 40%; animation-delay: 1s; }
.firefly:nth-child(3) { left: 25%; top: 70%; animation-delay: 2s; }
.firefly:nth-child(4) { left: 35%; top: 30%; animation-delay: 3s; }
.firefly:nth-child(5) { left: 45%; top: 50%; animation-delay: 4s; }
.firefly:nth-child(6) { left: 55%; top: 20%; animation-delay: 5s; }
.firefly:nth-child(7) { left: 65%; top: 40%; animation-delay: 6s; }
.firefly:nth-child(8) { left: 75%; top: 60%; animation-delay: 7s; }

/* 精霊の軌跡 */
.firefly::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(1px);
    animation: spirit-trail 3s infinite;
}

@keyframes spirit-trail {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
} 