@import url('assets/css/style.css');

:root {
    /* シアターテーマの変数を再定義または補完 */
    --primary-color: #d4af37;
    --secondary-color: rgba(212, 175, 55, 0.2);
    --accent-color: #00f2ff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* ヘッダーの調整（シアターのスタイルに合わせる） */
header {
    padding: 6rem 1rem 2rem;
    background: none;
    box-shadow: none;
    text-align: center;
}

header h1 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff 20%, #ffc1e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 20px rgba(255, 193, 227, 0.3);
    line-height: 1.2;
    filter: drop-shadow(0 0 10px rgba(255, 193, 227, 0.2));
}

header h1 small {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    -webkit-text-fill-color: #ffb7d5;
    opacity: 0.9;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* タブナビゲーション（シアター風） */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 0.5rem;
    min-width: fit-content;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* コンテンツエリア */
.content-area {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    min-height: 400px;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.group-section {
    margin-bottom: 1.5rem;
}

.group-title {
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0.8rem;
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: background 0.3s;
}

.group-title:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.toggle-icon::before {
    content: '▼';
    font-size: 0.8rem;
    color: var(--primary-color);
}

.group-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.group-title .article-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-list {
    list-style: none;
    padding: 1rem 0;
    display: grid;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.group-section.collapsed .article-list {
    display: none;
}

.article-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    transition: background 0.3s;
}

.article-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
}

.article-item:hover::before {
    background: var(--primary-color);
}

.article-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s;
}

.article-link:hover {
    color: var(--primary-color);
}

.article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* スキルタグ */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.tab-btn .count {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.tab-btn.active .count {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    border-color: rgba(0, 0, 0, 0.2);
}

.skill-tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.05);
}

/* スキルフィルタリング表示 */
.filter-info {
    background: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--secondary-color);
}

.clear-filter-btn {
    background: linear-gradient(135deg, #ef5350, #d32f2f);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
}

.clear-filter-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

footer {
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .tab-btn {
        flex: 1 1 45%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .content-area {
        padding: 1.5rem;
    }
}