/* index.htmlで読み込み*/
/* 検索コンテナ */
.search-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f9f9f9;
    padding: 10px 20px 0px;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 100%;
    max-width: 600px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
}

/* 投稿者・日時とタグを並べる行 */
.article-meta-row {
    display: flex;
    justify-content: space-between; /* 左右に振り分け */
    align-items: baseline;          /* テキストの底辺に合わせる */
    margin-top: 8px;
    flex-wrap: wrap;
}

/* 投稿者と日時 */
.article-meta {
    font-size: 0.85rem;
    color: #888;
}

/* タグコンテナ */
.tag-container {
    display: flex;
    gap: 6px;
}

/* タグのバッジ */
.tag-badge {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    background-color: #f0f0f0;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 1px 6px;
}

.tag-badge:hover {
    color: #f0f0f0;
    background-color: #666;
}


/* 記事カード */
#article-list div {
    background: #fff;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.1s ease;
    overflow: hidden;
}

#article-list a {
    text-decoration: none;
    color: #333;
    display: block; 
    padding: 20px;
}

#article-list div:active {
    transform: scale(0.97);
    background-color: #f9f9f9;
}

#article-list h2 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
}

#article-list p {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}