/* ヘッダー */
header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 a {
    color: white;
    text-decoration: none;
}

/* 記事リスト */
.post-list {
    margin-top: 20px;
}

article {
    margin-bottom: 20px;
}

article h2 a {
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
}

article h2 a:hover {
    color: #0073e6;
}

.post-excerpt {
    font-size: 1.1rem;
    color: #666;
}

/* フッター */
footer {
    background-color: #222;
    color: white;
    padding: 10px 0;
    text-align: center;
}

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

footer a:hover {
    text-decoration: underline;
}

footer .footer-content p,
footer .footer-content h3 {
    margin: 5px 0;
}

footer .footer-content form {
    margin-top: 20px;
    background-color: #444;
    padding: 15px;
    border-radius: 8px;
}

footer .footer-content form input,
footer .footer-content form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

footer .footer-content form button {
    background-color: #5cb85c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer .footer-content form button:hover {
    background-color: #4cae4c;
}

/* 記事カード */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.post-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    margin-bottom: 16px; /* 記事カード間に空間 */
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.post-card h2 {
    font-size: 1.2rem;
    margin: 8px 0;
}

.post-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 8px;
}

.post-tags {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 12px;
}

.post-card p {
    font-size: 0.9rem;
    color: #555;
}

/* サムネイル */
.post-thumbnail img {
    width: 100%;
    height: auto;      /* 高さは自動 */
    object-fit: contain; /* 枠内に収める */
    border-radius: 8px;
    margin-bottom: 12px;
}

/* カテゴリー/タグリスト */
.tag-list ul {
    list-style: none;
    padding-left: 0;
}

.tag-list li {
    display: inline-block;
    margin-right: 8px;
}

.tag {
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}
