/* hannya フォルダ専用スタイル（Win95クラシック × メイリオフォント エディション） */

body {
  /* メイリオ最優先のフォント指定設定 */
  font-family: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", "游ゴシック", sans-serif;
  line-height: 1.8;
  color: #ffffff;            /* 全体文字色：完全な白 */
  background-color: #008080; /* 外側背景：Win95クラシックの青緑（Teal） */
  margin: 0;
  padding: 40px 20px;
}

/* 見出し */
h1 {
  font-size: 1.5rem;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 30px;
  color: #ffffff;
}

h2 {
  font-size: 1.25rem;
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 6px;
  margin-top: 30px;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 15px;
}

p {
  color: #ffffff;
  margin-bottom: 1.5em;
}

/* 目次用リスト */
.toc-list {
  list-style-type: none;
  padding-left: 0;
}
.toc-list li {
  padding: 10px 0;
  border-bottom: 1px solid #ffffff;
}
.toc-list a {
  color: #00ffff;            /* 水色アクセント */
  text-decoration: none;
  font-weight: bold;
}
.toc-list a:hover {
  text-decoration: underline;
}

/* チャットブロック共通装飾 */
.chat-block {
  padding: 20px;
  margin: 25px 0;
  border-radius: 6px;        /* 角丸デザイン */
  background-color: #0d0d0d;
  color: #ffffff;            /* チャット部分の文字色：白 */
}
.chat-block p, 
.chat-block li {
  color: #ffffff !important;  /* チャット内テキストを白に固定 */
}

/* 1. Pico 発言ブロック */
.chat-pico {
  border-left: 5px solid #00e5ff;
  border-top: 1px solid #00e5ff;
  border-right: 1px solid #00e5ff;
  border-bottom: 1px solid #00e5ff;
  background-color: #0d2b3a;
}

/* 2. Grok / Spark 発言ブロック */
.chat-grok {
  border-left: 5px solid #ffab00;
  border-top: 1px solid #ffab00;
  border-right: 1px solid #ffab00;
  border-bottom: 1px solid #ffab00;
  background-color: #332205;
}

/* 3. ラリー Gemini 発言ブロック */
.chat-rally {
  border-left: 5px solid #00e676;
  border-top: 1px solid #00e676;
  border-right: 1px solid #00e676;
  border-bottom: 1px solid #00e676;
  background-color: #083318;
}

/* 話者名表示（すべて白に統一） */
.speaker-name {
  font-weight: bold;
  font-size: 1.05rem;
  color: #ffffff !important; /* Pico, Grokともに文字色は白 */
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 個別クラスが残してあっても白を維持 */
.speaker-pico-title,
.speaker-grok-title,
.speaker-rally-title {
  color: #ffffff !important;
}
.speaker-date {
  font-size: 0.85rem;
  color: #aaaaaa;
  font-weight: normal;
}

/* テーブル　の基本スタイル（通常・チャット外用：白枠 ＋ 黒背景） */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
  color: #ffffff;
  border: 1px solid #ffffff; /* 表の外枠を白1px */
}
th, td {
  border: 1px solid #ffffff;  /* マス目の全枠線を白1px */
  padding: 12px;
  text-align: left;
}
th {
  background-color: #1f1f1f;
  color: #ffffff;
  font-weight: bold;
}
td {
  background-color: #000000;
  color: #ffffff;
}

/* Pico内のテーブル（背景色と同調 ＋ 水色枠線） */
.chat-pico table,
.chat-pico th,
.chat-pico td {
  border-color: #00e5ff !important;
}
.chat-pico th {
  background-color: #081d28 !important;
}
.chat-pico td {
  background-color: #0d2b3a !important;
}

/* Grok内のテーブル（背景色と同調 ＋ ゴールド枠線） */
.chat-grok table,
.chat-grok th,
.chat-grok td {
  border-color: #ffab00 !important;
}
.chat-grok th {
  background-color: #221603 !important;
}
.chat-grok td {
  background-color: #332205 !important;
}

/* ラリー内のテーブル（背景色と同調 ＋ グリーン枠線） */
.chat-rally table,
.chat-rally th,
.chat-rally td {
  border-color: #00e676 !important;
}
.chat-rally th {
  background-color: #052210 !important;
}
.chat-rally td {
  background-color: #083318 !important;
}

/* PDFプレビュー専用エリア（白背景・黒文字スタイル） */
.pdf-preview-box {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #cccccc;
  border-radius: 6px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pdf-preview-box p {
  color: #000000 !important;
}
.pdf-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #000000 !important;
}

/* PDF枠内のテーブル設定 */
.pdf-preview-box table {
  border: 1px solid #333333 !important;
  color: #000000 !important;
  background-color: #ffffff !important;
}
.pdf-preview-box th,
.pdf-preview-box td {
  border: 1px solid #333333 !important;
  color: #000000 !important;
  background-color: #ffffff !important;
}
.pdf-preview-box th {
  background-color: #f0f0f0 !important;
  font-weight: bold;
}

/* PDF内注意書き（文字サイズを小さく設定） */
.pdf-explanation {
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
  color: #333333 !important;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #cccccc;
}

/* 画像・ギャラリー（横3列）用スタイル */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.image-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
@media (max-width: 600px) {
  .image-gallery {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
}

/* コードブロック装飾 */
.code-block {
  background-color: #000000;
  color: #ffffff;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #444444;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 20px 0;
}
.code-keyword { color: #ffff00; font-weight: bold; }
.code-string { color: #00ffff; }
.code-comment { color: #ff79c6; }
.code-tag { color: #00ffff; }
.code-attr { color: #ffff00; }
.code-css { color: #ffffff; }

/* 本体のコンテナ（コードエディタ画面） */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: #000000;       /* 本体背景：純黒 */
  padding: 40px;
  border: 2px solid #ffffff;  /* コンテナ枠線も白 */
  border-radius: 6px;        /* 角丸デザイン */
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* 汎用 リンク */
a {
  color: #00ffff;
}
a:visited {
  color: #ff79c6;
}
/* 疑似リンク表示用（見た目専用の青文字・アンダーライン） */
.pseudo-link {
  color: #55aaff;
  text-decoration: underline;
}

/* 引用ブロック */
blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  background-color: #111111;
  border-left: 4px solid #ffffff;
  border-top: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 4px;
}

/* ページ下部ナビゲーション */
.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #ffffff;
}
.nav-links a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
}
.nav-links a:hover {
  text-decoration: underline;
}