@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #050505;
    --bg-card: rgba(30, 30, 30, 0.6);
    --primary: #ff3e3e; /* 警告色レッド */
    --primary-glow: rgba(255, 62, 62, 0.5);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* スクロールアニメーション用 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ヘッダー：すりガラス効果 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.logo span { color: var(--primary); }

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.95rem;
}
nav a:hover { color: #fff; }

.btn {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 0 15px var(--primary-glow);
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn:hover {
    background: #ff1f1f;
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a0505 0%, var(--bg-dark) 70%);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.stat-item h3 { font-size: 2rem; margin: 0; color: #fff; }
.stat-item p { margin: 0; font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; }

/* 機能カード (グリッドレイアウト) */
.features { padding: 100px 0; }
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.card h3 { font-size: 1.5rem; margin-top: 0; }
.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 10px;
    background: rgba(255, 62, 62, 0.1);
    border-radius: 8px;
    color: var(--primary);
}

/* コードブロック (Docs用) */
pre {
    background: #0d0d0d;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
}
code { color: #ff7b72; }

/* テーブル (Docs用) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
th {
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 600;
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    nav { display: none; } 
}