/* diary/diary-style.css */

/* ヘッダーのスタイル */
.diary-header {
    padding: 20px;
    text-align: center;
    background-color: #1a1a1a;
}
.diary-header a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

/* メインコンテンツの幅とか余白 */
.diary-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 日記一覧リストのスタイル */
#post-list ul {
    list-style: none;
    padding: 0;
}

#post-list li a {
    display: flex;
    align-items: baseline;
    padding: 20px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05); 
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

#post-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#post-list .post-date {
    color: #aaa;
    font-size: 1em;
    width: 130px;
}

#post-list .post-title {
    color: white;
    font-size: 1.3em; /* ← スペルミスを修正！ */
    font-family: 'TamanegiFont', sans-serif; 
}

/* 記事の中の画像（.post-contentの中にあるimgタグ）に対する設定 */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;      /* おまけ：画像を中央揃えにしやすくするためのおまじない */
    margin: 2em auto;    /* おまけ：画像の上下に余白をあけて、左右中央揃えにする */
}