/* ===== 小説ページ専用スタイル (修正版) ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

/* --- 全体のレイアウトと背景 --- */
.novel-main {
    background-color: #fdfaf4; /* 少しクリーム色がかった背景 */
    padding: 60px 20px;
}

.novel-container {
    max-width: 800px; /* 読みやすい横幅に制限 */
    margin: 0 auto;
    background-color: #ffffff;
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- フォントとタイポグラフィ --- */
.novel-container {
    font-family: 'Noto Serif JP', serif; /* 明朝体フォントを適用 */
    color: #333; /* 真っ黒ではない、少し柔らかい文字色 */
}

/* --- 作品タイトル (h1) --- */
.novel-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* --- 章タイトル (h2) --- */
.chapter-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #8d6e63; /* アクセントカラー */
    color: #5d4037;
}

/* --- 地の文 (本文) --- */
.novel-text {
    font-size: 1.1rem;
    line-height: 2.2; /* 行間を広めに */
    letter-spacing: 0.08em; /* 字間を少し広げる */
    text-indent: 1em; /* 段落の先頭を1文字下げる */
    margin-bottom: 1.5em;
}

/* --- 会話文 (修正箇所) --- */
.dialogue {
    font-size: 1.1rem;
    line-height: 2.2;
    letter-spacing: 0.08em;
    margin: 1.5em 0 1.5em 1em; /* 会話文全体をインデント */
    text-indent: 0; /* 会話文自体の字下げは不要 */
}

/* --- 「小説一覧に戻る」リンク --- */
.back-link {
    display: block;
    text-align: center;
    margin-top: 80px;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-family: sans-serif; /* この部分だけゴシック体に戻す */
    transition: background-color 0.3s;
}
.back-link:hover {
    background-color: #e0e0e0;
}

/* --- モバイル対応 --- */
@media (max-width: 768px) {
    .novel-container {
        padding: 30px 20px;
    }
    .novel-title {
        font-size: 1.8rem;
    }
    .chapter-title {
        font-size: 1.5rem;
    }
    .novel-text, .dialogue {
        font-size: 1rem;
        line-height: 2.0;
    }
}