/* ==================================================
   Vertical Aurora Theme (High Readability)
   ================================================== */

:root {
  --aurora-bg-dark: #070a13;         /* 極夜の漆黒 */
  --aurora-content-bg: #0d1322;      /* 可読性を保つしっかりとした暗い背景 */
  --aurora-text-main: #000000;       /* くっきり見える高コントラストの白文字 */
  --aurora-text-sub: #94a3b8;        /* 補助テキスト用のグレー */
  
  --aurora-green: #00ffaa;
  --aurora-cyan: #00d2ff;
  --aurora-purple: #9d4ebd;
}

/* --- 背景：縦方向のオーロラカーテン --- */
body {
  background-color: var(--aurora-bg-dark) !important;
  /* 縦（180deg）方向に複数の光の帯を重ねてカーテン効果を作る */
  background-image: 
    linear-gradient(180deg, rgba(0, 255, 170, 0.18) 0%, rgba(0, 210, 255, 0.08) 40%, transparent 80%),
    linear-gradient(175deg, transparent 10%, rgba(157, 78, 189, 0.2) 30%, rgba(0, 255, 170, 0.1) 60%, transparent 90%),
    linear-gradient(185deg, transparent 20%, rgba(0, 210, 255, 0.15) 50%, transparent 85%) !important;
  background-attachment: fixed !important;
  color: var(--aurora-text-main) !important;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.7;
}

/* --- コンテンツエリア：視認性・可読性の担保 --- */
#main, .main-content, #body {
  background: var(--aurora-content-bg) !important;
  /* 文字が背景の光に埋もれないよう、背景透過度を低め（約92%）に設定 */
  border: 1px solid rgba(0, 210, 255, 0.2) !important;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 28px;
}

/* --- 見出し：縦のグラデーションアクセント --- */
h1 {
  font-size: 1.85em;
  font-weight: bold;
  color: #ffffff !important;
  /* 縦のグラデーション線 */
  border-left: 5px solid var(--aurora-green);
  background: linear-gradient(90deg, rgba(0, 255, 170, 0.1), transparent);
  padding: 8px 12px;
  margin-top: 24px;
}

h2 {
  font-size: 1.4em;
  color: #ffffff !important;
  border-bottom: 2px solid var(--aurora-cyan);
  padding-bottom: 6px;
  margin-top: 20px;
}

h3 {
  font-size: 1.15em;
  color: var(--aurora-green) !important;
}

/* --- リンク：はっきり見える見やすさ重視 --- */
a {
  color: #38bdf8 !important; /* 明るく視認性の高いシアンブルー */
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--aurora-green) !important;
  text-shadow: 0 0 6px rgba(0, 255, 170, 0.5);
}

/* --- テーブル（表）：見分けやすい背景切り分け --- */
table, .style_table {
  border-collapse: collapse !important;
  width: 100%;
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px;
}

th, .style_th {
  background: rgba(0, 210, 255, 0.15) !important;
  color: #ffffff !important;
  border-bottom: 2px solid rgba(0, 255, 170, 0.3) !important;
  padding: 10px 14px;
  text-align: left;
}

td, .style_td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 10px 14px;
  color: var(--aurora-text-main);
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02); /* 偶数行をわずかに明るくして読みやすく */
}

/* --- 引用・コードブロック --- */
blockquote {
  background: rgba(15, 23, 42, 0.9) !important;
  border-left: 4px solid var(--aurora-purple) !important;
  padding: 12px 16px;
  color: var(--aurora-text-sub);
  margin: 16px 0;
}

pre, code {
  background: #090d16 !important;
  color: var(--aurora-green) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}