/* 1. タイトルのデザイン：下線を消して力強く */
.work-container h2 a {
    color: #333 !important;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1.4;
}
.work-container h2 a:hover {
    color: #ff0066 !important; /* ホバー時にブランド色へ */
}

/* 2. 著者・カテゴリなどのリンク：少し落ち着いた色に */
.work-container p a {
    color: #d400ff !important; /* 紫系をアクセントに */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}
.work-container p a:hover {
    border-bottom: 1px solid #d400ff;
}

/* 3. タグのデザイン：ここが一番「今風」に見えるポイント */
.tag-group {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px; /* タグ同士の隙間 */
}

.tag-group strong {
    font-size: 0.85rem;
    color: #666;
}

.tag-chip {
    display: inline-block;
    padding: 3px 10px;
    background-color: #ffffff; /* 白背景 */
    border: 1px solid #e0e0e0; /* 薄い枠線 */
    border-radius: 20px;       /* カプセル型 */
    color: #555 !important;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-chip:hover {
    background-color: #fce4ec; /* ほんのりピンク */
    border-color: #ff4081;
    color: #ff4081 !important;
    transform: translateY(-1px);
}

/* カテゴリ全体の行の調整 */
.category-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 0.9rem;
    color: #666;
}

/* カテゴリーチップのデザイン */
.category-chip {
    display: inline-block;
    padding: 2px 12px;
    background-color: #f0f0f0; /* タグより少しだけ濃いグレー */
    color: #444 !important;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px; /* タグが丸なら、カテゴリは少し角を残すと区別しやすい */
    transition: all 0.2s ease;
}

.category-chip:hover {
    background-color: #d400ff; /* ホバー時はブランドカラーに */
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* フィルタ情報全体のコンテナ */
#filterInfo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    padding: 0 10px;
}

/* バッジ本体（再調整） */
.filter-badge {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #d400ff;
    border-radius: 6px; /* 少し角を丸く */
    overflow: hidden;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(212, 0, 255, 0.1);
}

/* 解除ボタン（×）のスタイル */
.badge-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; /* タップしやすい幅 */
    align-self: stretch; /* 高さをバッジに合わせる */
    background-color: #f8f8f8;
    color: #d400ff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-left: 1px solid #eedbff;
    transition: all 0.2s;
}

.badge-clear:hover {
    background-color: #ff0066;
    color: #ffffff !important;
}

/* 「すべて解除」リンクのスタイル */
.filter-all-clear {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: #888 !important;
    text-decoration: underline;
    margin-left: 5px;
    padding: 5px;
    transition: color 0.2s;
}

.filter-all-clear:hover {
    color: #ff0066 !important;
}