/* 基本スタイル - リセット、フォント、色、基本要素 */
/* テーマ: 学術的 × AI モダン（ダークテーマ） */

/* カラー変数 */
:root {
    /* 背景 */
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #21262D;
    
    /* テキスト */
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --text-muted: #6E7681;
    
    /* アクセント */
    --accent-blue: #58A6FF;
    --accent-purple: #A371F7;
    --accent-green: #3FB950;
    --accent-red: #F85149;
    --accent-yellow: #D29922;
    
    /* ボーダー */
    --border-primary: #30363D;
    --border-secondary: #21262D;
    
    /* グラデーション */
    --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=JetBrains+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

/* フォントと基本スタイル */
body {
    font-family: "Noto Sans JP", "Inter", sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    padding: 20px;
    text-align: justify;
    text-justify: inter-ideograph;
    position: relative;
}

/* ニューラルネットワーク風背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(88, 166, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(163, 113, 247, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(63, 185, 80, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* グリッドパターン（微細） */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(88, 166, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* 見出し */
h1 {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-purple);
    padding-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h2 {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    color: var(--accent-blue);
    border-left: 4px solid var(--accent-purple);
    border-bottom: 1px solid var(--border-primary);
}

h3 {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent-blue);
}

h4 {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

/* 段落とリスト */
p {
    margin-bottom: 1.2rem;
    text-indent: 1em;
    color: var(--text-primary);
}

ul,
ol {
    margin-left: 0;
    margin-bottom: 1.2rem;
    padding-left: 0;
    list-style: none;
}

li {
    margin-bottom: 0.5rem;
    text-indent: 1em;
    color: var(--text-primary);
}

/* リンク */
a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

/* 強調 */
strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* 選択時のハイライト */
::selection {
    background-color: rgba(88, 166, 255, 0.3);
    color: var(--text-primary);
}
