/* -------------------------------------- */
/* 基本設定 */
/* -------------------------------------- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0; 
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header, nav, main, footer {
    padding: 1rem;
    box-sizing: border-box; /* 崩れ防止 */
}

/* -------------------------------------- */
/* ヘッダー */
/* -------------------------------------- */
header {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('header-image.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* ヘッダーの黒いフィルター（文字を見やすくする） */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* -------------------------------------- */
/* メインコンテンツ */
/* -------------------------------------- */
main {
    max-width: 800px; /* 読みやすい幅に制限 */
    margin: 0 auto;   /* 中央寄せ */
}

article {
    background-color: #fff;
    padding: 2rem; /* 余白を少し広めに */
    margin-bottom: 1rem;
    border-radius: 5px;
    /* 修正: 文法エラーを直しました */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1); 
}

article h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #333; /* 見出しの下線 */
    padding-bottom: 5px;
    font-size: 1.5rem;
}

/* 本文用のスタイル（読みやすく調整） */
.novel-text {
    font-size: 1rem;
    line-height: 1.8; /* 行間を広めに */
    margin-bottom: 1.5rem;
}

/* -------------------------------------- */
/* フッター */
/* -------------------------------------- */
footer {
    background-color: #666;
    color: #fff;
    margin-top: 1rem;
    text-align: center;
    padding: 20px;
}

/* -------------------------------------- */
/* スマホ対応 (レスポンシブ) */
/* -------------------------------------- */
@media screen and (max-width: 600px) {
    header {
        height: 200px; /* スマホでは高さを抑える */
    }

    header h1 {
        font-size: 1.8rem; /* 文字サイズを小さく */
    }

    article {
        padding: 1rem; /* スマホでは余白を狭く */
    }
}