/* ベース変数 */
:root {
    --color-bg: #0a0a0c;
    --color-bg-alt: #131418;
    --color-surface: #1e1e24;
    --color-primary: #ccff00; /* ネオンイエロー */
    --color-secondary: #00ff66; /* ネオングリーン */
    --color-text: #ffffff;
    --color-text-muted: #a0a0a5;
    --color-border: #333338;
    
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* リセット＆基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* タイポグラフィ */
h1, h2, h3, h4 {
    line-height: 1.2;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--color-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: none;
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo a {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-text);
    letter-spacing: -1px;
}

.logo a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,12,0.3) 0%, rgba(10,10,12,0.9) 100%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glitch 1s infinite alternate;
}

.hero-title .highlight {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.6);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 4px;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--color-text);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--color-text);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* セクション共通 */
.section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--color-bg-alt);
}

/* グリッドレイアウト */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* カード (動画サムネイル) */
.card {
    background-color: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #000;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background-color: rgba(204, 255, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--color-bg);
    margin-left: 5px;
}

.card-content {
    padding: 1.5rem;
}

.tag {
    display: inline-block;
    color: var(--color-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover .card-title {
    color: var(--color-primary);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

/* フッター */
.footer {
    background-color: #050505;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.footer-desc {
    color: var(--color-text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h3, .footer-social h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-surface);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* アニメーション */
@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

/* レスポンシブ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}
