* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #050508;
    color: #f0f3f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* 3D背景用Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* ヘッダー・ボタン */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(5,5,8,0.8) 0%, rgba(5,5,8,0) 100%);
    backdrop-filter: blur(10px);
}

.btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 全体コンテナ */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
}

/* 一覧画面スタイル */
.list-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px 20px;
}

.list-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #a0c4ff;
}

.article-card {
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 20px;
    text-decoration: none;
    color: #fff;
    display: block;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(160, 196, 255, 0.4);
}

.article-card h2 {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.article-card p {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* ノベルモードスタイル */
.novel-view {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100vh;
    padding-bottom: 80px;
    cursor: pointer;
}

.novel-box {
    width: 85%;
    max-width: 800px;
    min-height: 180px;
    background: rgba(15, 20, 30, 0.65);
    border: 1px solid rgba(160, 196, 255, 0.2);
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.novel-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #e2e8f0;
}

.novel-hint {
    text-align: right;
    font-size: 0.85rem;
    color: #a0c4ff;
    margin-top: 15px;
}

/* 全文モードスタイル */
.article-view {
    display: none;
    max-width: 750px;
    margin: 0 auto;
    padding: 140px 30px 100px 30px;
}

.article-card-full {
    background: rgba(15, 20, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(15px);
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 2.0;
    margin-bottom: 24px;
    color: #cbd5e1;
}