/* タグページ専用スタイル */

/* タグページのメインコンテンツ */
.tag-page {
    padding: 20px 0;
}

/* タグタイトル */
.tag-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* タグページの記事一覧 */
.tag-articles {
    margin-top: 30px;
}

/* タグページの記事カード */
.tag-article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

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

/* タグページの記事サムネイル */
.tag-article-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.tag-article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tag-article-card:hover .tag-article-thumbnail img {
    transform: scale(1.05);
}

/* タグページの記事コンテンツ */
.tag-article-content {
    padding: 15px;
}

.tag-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* タグページの記事メタ情報 */
.tag-article-meta {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}

.tag-article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-article-date i {
    color: #999;
}

/* タグページのグリッドレイアウト */
.tag-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* タグページのレスポンシブ対応 */
@media (max-width: 768px) {
    .tag-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .tag-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .tag-article-content {
        padding: 12px;
    }
    
    .tag-article-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tag-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .tag-article-content {
        padding: 10px;
    }
    
    .tag-article-title {
        font-size: 0.85rem;
    }
}

/* タグページのエラー表示 */
.tag-error-page {
    text-align: center;
    padding: 60px 20px;
}

.tag-error-icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.tag-error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.tag-error-message {
    color: #666;
    margin-bottom: 30px;
}

.tag-error-actions {
    margin-top: 30px;
}

/* タグページのパンくずナビ */
.tag-breadcrumb {
    margin-bottom: 30px;
}

.tag-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-breadcrumb-item {
    font-size: 0.9rem;
}

.tag-breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #999;
}

.tag-breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.tag-breadcrumb-item a:hover {
    text-decoration: underline;
}

.tag-breadcrumb-item.active span {
    color: #666;
}

/* タグページの記事数表示 */
.tag-article-count {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* タグ一覧ページ用スタイル */
.tag-simple-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.tag-simple-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f3f5;
    position: relative;
}

.tag-simple-item:last-child {
    border-bottom: none;
}

.tag-simple-item:hover {
    background: #f8f9fa;
    color: inherit;
    text-decoration: none;
}

.tag-simple-item:hover .tag-name {
    color: #667eea;
}

.tag-name {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
}

.tag-count {
    font-size: 1em;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 16px;
    min-width: 40px;
    text-align: center;
}

/* タグ一覧ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .tag-simple-item {
        padding: 14px 16px;
    }
    
    .tag-name {
        font-size: 1em;
    }
    
    .tag-count {
        font-size: 0.9em;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .tag-simple-item {
        padding: 12px;
    }
    
    .tag-name {
        font-size: 0.95em;
    }
    
    .tag-count {
        font-size: 0.85em;
        padding: 2px 8px;
    }
} 