@charset "UTF-8";
/*
Theme Name: AIちゃんねるDA
Description: AIちゃんねるDA用のカスタムWordPressテーマ
Version: 1.0
Author: Your Name
*/

:root {
    --bg-deep: #080706;
    --card-bg: rgba(18, 16, 14, 0.85);
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #997a15;
    --border-gold: rgba(212, 175, 55, 0.3);
    --text-main: #e6dfcc;
    --text-muted: #9e9581;
    --accent-red: #ff3366;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(60, 45, 25, 0.4) 0%, rgba(8, 7, 6, 0.95) 70%),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(212, 175, 55, 0.015) 50px, rgba(212, 175, 55, 0.015) 51px);
    min-height: 100vh;
}

header {
    background: rgba(10, 9, 8, 0.95);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    padding: 1.2rem 2rem 0.8rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-area {
    text-align: center;
    margin-bottom: 0.4rem;
    cursor: pointer;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
    transition: transform 0.2s;
}

.site-logo:hover {
    transform: scale(1.02);
}

.logo-gear-icon {
    width: 32px;
    height: 32px;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
}

.logo-gear-icon::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-primary);
}

.sub-catchcopy {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 0.8rem;
}

.header-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 0.8rem;
}

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-size: 0.9rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    letter-spacing: 0.05em;
}

nav a:hover, nav a.active {
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.login-link {
    position: absolute;
    right: 0;
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.login-link:hover {
    color: var(--gold-light);
}

main.home-layout {
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    main.home-layout {
        grid-template-columns: 1fr;
    }
    .login-link {
        position: static;
        margin-top: 1rem;
    }
    .header-bottom {
        flex-direction: column;
    }
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

section h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-light);
    font-weight: normal;
    letter-spacing: 0.05em;
}

section h2 span {
    color: var(--gold-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 0.5rem;
}

.section-header a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
}

.section-header a:hover {
    color: var(--gold-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #181412 0%, #2a2018 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-gold);
}

.thumb-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.05);
}
.thumb-inner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-primary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(10, 9, 8, 0.85);
    border: 1px solid var(--gold-primary);
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    z-index: 2;
}
.badge.free {
    border-color: var(--gold-primary);
    color: var(--gold-light);
}
.badge.premium {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 2px;
}

.video-info {
    padding: 0.8rem;
}

.video-title {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.announcement-list {
    background-color: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.announcement-item {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: background 0.2s;
}

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

.announcement-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.announcement-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 1rem;
}

.announcement-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

aside {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    padding: 1.2rem;
}

.sidebar-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gold-light);
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 24px 80px 1fr;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.ranking-num {
    font-size: 1.1rem;
    color: var(--gold-primary);
    text-align: center;
    font-style: italic;
    font-weight: bold;
}

.ranking-thumb {
    width: 80px;
    aspect-ratio: 16/9;
    background: #1a1714;
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-info {
    overflow: hidden;
}

.ranking-title {
    font-size: 0.75rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
    line-height: 1.3;
}

.ranking-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.premium-banner {
    background: linear-gradient(135deg, rgba(20, 18, 15, 0.95) 0%, rgba(45, 35, 20, 0.95) 100%);
    border-color: var(--gold-primary);
    text-align: center;
}

.premium-banner p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.premium-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #111;
    padding: 0.7rem;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.premium-btn:hover {
    opacity: 0.9;
}

footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--border-gold);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4rem;
    background: rgba(8, 7, 6, 0.5);
}