@charset "UTF-8";

/* 
 * sites/vtubers/css/style.css
 * モダンで洗練されたデザインシステム
 */

:root {
    --primary-color: #6366f1;
    --live-color: #ef4444;
    --upcoming-color: #3b82f6;
    --finished-color: #6b7280;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --transition-speed: 0.3s;
}

body {
    background: var(--bg-gradient);
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* For long text readability (e.g., terms page) */
.legal-content p, 
.legal-content li {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #111;
    margin-bottom: 1.2rem;
}

.legal-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
}

.legal-content h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navbar adjustment */
.navbar {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Page Title */
.page-title {
    font-weight: 800;
    margin-top: 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--upcoming-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
}

/* Section Header */
.section-header {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-left: 6px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section-header.live {
    color: var(--live-color);
    border-left-color: var(--live-color);
}

.section-header.upcoming {
    color: var(--upcoming-color);
    border-left-color: var(--upcoming-color);
}

.section-header.finished {
    color: var(--finished-color);
    border-left-color: var(--finished-color);
}

/* Sub-header (Hourly) */
.time-label {
    color: var(--text-muted);
    font-weight: 600;
    display: inline-block;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Layout alignment for equal height cards */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row > .col {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.card-link-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none !important;
    color: inherit !important;
}

.card {
    display: flex;
    flex-direction: column;
    flex: 1;
    border: none;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card.no-hover:hover {
    transform: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-body {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.25rem 1.25rem 0.5rem 1.25rem !important; /* Reduced bottom padding */
    flex: 1 1 auto !important;
    max-height: none !important;
    min-height: 0 !important;
}

.card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    height: 4.5em !important; /* 1.5 (line-height) * 3 lines = 4.5em */
    max-height: none !important; /* Disable restriction from common.css */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 0.5rem !important; /* Slightly reduced */
    color: var(--text-main) !important;
}

.card-text {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    display: block !important;
    -webkit-line-clamp: none !important;
    overflow: visible !important;
    height: auto !important;
    margin-bottom: 0.25rem !important; /* Reduced margin */
}


.card-img-bottom {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    flex-shrink: 0;
}



/* Live Badge Glow Effect */
.section-header.live i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* About section */
.site-about .card {
    border-left: 4px solid var(--primary-color);
}

/* Footer adjustment */
footer {
    background: #1e293b !important;
    color: #cbd5e1;
}