body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
    margin: 0;
    background: #f8f9fa;
    color: #333;
}

header {
    background: #004085;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

.date {
    font-size: 0.9rem;
    color: #777;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #e9ecef;
    margin-top: 2rem;
}


/* post設定 */
.post-list {
    max-width: 900px;
    margin: auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.post-list article {
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-list img {
    max-width: 100%;
    border-radius: 4px;
}

.post-content {
    max-width: 800px;
    margin: auto;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 1rem; /* 画像とテキストの間隔 */
}

.post-header img {
    max-width: 150px; /* 画像幅 */
    border-radius: 6px;
    flex-shrink: 0; /* 画像サイズ固定 */
}

.post-text {
    flex: 1; /* 残りスペースを全部使う */
}

/* 画像の下詰まり対策（任意だが推奨） */
.post-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}