/* ==========================================================================
   ページ全体の初期設定（背景は真っ黒に固定）
   ========================================================================== */
html, body {
  background-color: #000000;
  margin: 0;
  padding: 20px;
}

/* 画面全体の薄い走査線エフェクト（CRTモニター風の横線） */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 12px;
  z-index: 9999;
  pointer-events: none;
}

/* ==========================================================================
   VT100コンテナの共通ベース設定（どのサイズでも共通の基本デザイン）
   ========================================================================== */
.vt100-terminal {
  color: #00ff00;
/*  margin-bottom: 40px;
  padding: 20px;
/*  border: 1px dashed rgba(0, 255, 0, 0.3); /* 各エリアの境界線 */
  box-sizing: border-box;
}

.vt100-terminal p {
  margin: 0.6em 0;
}

/* リンクの白黒反転エフェクト */
.vt100-terminal a {
  color: #00ff00;
  text-decoration: underline;
}
.vt100-terminal a:hover {
  background-color: #00ff00;
  color: #000000;
  text-shadow: none;
}

/* 文字高さ（1em）に自動連動する点滅カーソル */
.vt100-terminal .cursor {
  display: inline-block;
  background-color: #00ff00;
  width: 0.55em;
  height: 1em;
  animation: vt100-blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes vt100-blink {
  from, to { background-color: transparent; }
  50% { background-color: #00ff00; }
}

/* ==========================================================================
   サイズ別個別定義（クラス名の指定だけで自動切り替え）
   ========================================================================== */

/* 【7pt】極小・美咲フォント最適化モード */
.vt100-size-7pt {
  font-family: 'MisakiMincho', monospace;
  font-size: 7pt;
  line-height: 1.2;
  text-shadow: none;          /* 極小文字の潰れを防ぐためグローを無効化 */
  image-rendering: pixelated; /* ピクセルのボヤケを防止 */
  font-smooth: never;
  -webkit-font-smoothing: none;
}
.vt100-size-7pt h1 { font-size: 7pt; border-bottom: 1px solid #00ff00; padding-bottom: 4px; margin-bottom: 12px; }

/* 【10pt】標準高密度モード */
.vt100-size-10pt {
  font-family: 'DotGothic16', "BIZ UDMincho", "MS Gothic", monospace;
  font-size: 10pt;
  line-height: 1.6;
  text-shadow: 0 0 1px rgba(0, 255, 0, 0.6);
}
.vt100-size-10pt h1 { font-size: 12pt; border-bottom: 1px solid #00ff00; padding-bottom: 3px; margin-bottom: 8px; }
.vt100-size-10pt p { line-height: 1.6; margin-top: 0; margin-bottom: 2pt; }
.vt100-size-10pt .cursor { box-shadow: 0 0 3px rgba(0, 255, 0, 0.6); }

/* 【12pt】大文字モード */
.vt100-size-12pt {
  font-family: 'DotGothic16', "BIZ UDMincho", "MS Gothic", monospace;
  font-size: 12pt;
  line-height: 1.6;
  text-shadow: 0 0 1.5px rgba(0, 255, 0, 0.6);
}
.vt100-size-12pt h1 { font-size: 14pt; border-bottom: 1px solid #00ff00; padding-bottom: 10px; margin-bottom: 20px; }
.vt100-size-12pt .cursor { box-shadow: 0 0 3px rgba(0, 255, 0, 0.6); }



/* public/style.css（既存のstyle.cssの末尾に以下を追加） */
.vt100-terminal pre {
  font-family: inherit;
  white-space: pre-wrap; /* 長い文章が画面右端で見切れないよう折り返し */
  margin: 0.6em 0;
}

.vt100-terminal img {
  max-width: 100%;
  height: auto;
  border: 1px solid #00ff00;
  margin: 8px 0;
}

