/**
 * 小説テーマCSS
 * 各テーマは .novel-theme-{name} クラスで制御
 */

/* ========================================
   デフォルトテーマ (default)
   ======================================== */
.novel-theme-default {
    /* 既存のスタイルを継承 */
}

.novel-theme-default .novel-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-family: 'メイリオ', Meiryo, 'Hiragino Sans', sans-serif;
}

/* ========================================
   シンプルテーマ (simple)
   ======================================== */
.novel-theme-simple {
    background-color: #fafafa;
}

.novel-theme-simple .novel-content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

.novel-theme-simple h2.h2-a {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    font-size: 1.6em;
}

/* ========================================
   ダークテーマ (dark)
   ======================================== */
.novel-theme-dark {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.novel-theme-dark .container {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
}

.novel-theme-dark .novel-content {
    font-size: 16px;
    line-height: 1.9;
    color: #e0e0e0;
}

.novel-theme-dark h2.h2-a {
    color: #f0f0f0;
    border-bottom: 2px solid #555;
}

.novel-theme-dark .atogaki {
    background-color: #333;
    padding: 15px;
    border-left: 3px solid #666;
}

.novel-theme-dark a {
    color: #88c0d0;
}

.novel-theme-dark a:hover {
    color: #a3d4e8;
}

/* ========================================
   エレガントテーマ (elegant)
   ======================================== */
.novel-theme-elegant {
    background-color: #f5f1e8;
}

.novel-theme-elegant .container {
    max-width: 800px;
}

.novel-theme-elegant .novel-content {
    font-size: 17px;
    line-height: 2.0;
    color: #2c2c2c;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    text-align: justify;
}

.novel-theme-elegant h2.h2-a {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
    text-align: center;
    border: none;
    margin-bottom: 30px;
    font-size: 1.8em;
    letter-spacing: 0.1em;
}

.novel-theme-elegant .atogaki {
    background-color: #ebe7dc;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #d0c9b8;
    border-bottom: 1px solid #d0c9b8;
}

/* ========================================
   大きめ文字テーマ (large)
   ======================================== */
.novel-theme-large .novel-content {
    font-size: 20px;
    line-height: 2.1;
    color: #333;
}

.novel-theme-large h2.h2-a {
    font-size: 2.2em;
}

/* ========================================
   共通スタイル
   ======================================== */
.novel-content {
    margin-bottom: 30px;
}

/* ナビゲーション（Prev/Next + 戻る） */
.novel-navigation {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* prevがない場合、nextを右に配置 */
.next-link {
    margin-left: auto;
}

/* prevがある場合は左に配置 */
.prev-link {
    margin-right: auto;
}

.back-nav {
    text-align: center;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    text-decoration: none;
}

.back-link {
    min-width: 120px;
}

/* ダークテーマのナビゲーション */
.novel-theme-dark .nav-link {
    background-color: #444;
    color: #e0e0e0;
    border-color: #555;
}

.novel-theme-dark .nav-link:hover {
    background-color: #555;
    border-color: #666;
}

/* エレガントテーマのナビゲーション */
.novel-theme-elegant .nav-link {
    background-color: #f5f1e8;
    color: #6b5d4f;
    border-color: #d0c9b8;
}

.novel-theme-elegant .nav-link:hover {
    background-color: #ebe7dc;
    border-color: #c0b9a8;
}
