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

/* カラー変数 - 論文風ライトテーマ */
:root {
    /* 背景 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    
    /* テキスト */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6c757d;
    
    /* アクセント - 控えめな色 */
    --accent-cyan: #1565c0;
    --accent-blue: #1976d2;
    --accent-light: #1565c0;
    --accent-green: #2e7d32;
    --accent-red: #c62828;
    --accent-yellow: #f57f17;
    
    /* ボーダー */
    --border-primary: #dee2e6;
    --border-secondary: #e9ecef;
    
    /* グラデーション - 使用しない */
    --gradient-accent: none;
}

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

/* フォント読み込み - 論文風 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&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;
}

/* 背景パターンなし（論文風） */

/* 見出し - 論文風 */
h1 {
    font-family: "Noto Serif JP", "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
}

h2 {
    font-family: "Noto Serif JP", "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

h3 {
    font-family: "Noto Serif JP", "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

h4 {
    font-family: "Noto Serif JP", "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    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;
}

a:hover {
    text-decoration: underline;
}

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

/* 選択時のハイライト */
::selection {
    background-color: rgba(25, 118, 210, 0.2);
    color: var(--text-primary);
}
