/* ================================================================
   {{サイト名}} — 1990s internet 風 スタイル
   素の CSS。依存なし。
   ================================================================ */

/* 一括で書き換えられる名前・テーマ色 */
:root {
  --site-name: "{{サイト名}}";
  --ink: #ffff00;        /* 本文文字（黄色） */
  --link: #00ffff;       /* 未訪問リンク（シアン） */
  --visited: #ff00ff;    /* 訪問済みリンク（マゼンタ） */
  --bg: #00008b;         /* 濃青背景 */
  --panel: #0000cd;      /* パネル背景 */
  --grid: #39ff14;       /* グリッド線（ネオン緑） */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0.5rem;
  font-family: "MS PGothic", "MS Gothic", "Courier New", monospace;
  color: var(--ink);
  /* 90年代定番のグラデ＋グリッド背景 */
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.05) 75%);
  background-size: 40px 40px, 40px 40px, 20px 20px;
  background-position: 0 0, 0 0, 0 0;
}

a {
  color: var(--link);
  text-decoration: underline;
}
a:visited { color: var(--visited); }
a:hover {
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
}

/* 90年代表レイアウト（スマホでも読める最小対応） */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  border: 6px outset #c0c0c0;   /* ベベル枠 */
  background: var(--panel);
  padding: 0;
}

.banner {
  background: #000;
  border-bottom: 4px inset #ff00ff;
  padding: 0.5rem;
  text-align: center;
}
.banner h1 {
  margin: 0.2rem 0;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 2px 2px 0 #ff00ff, -2px -2px 0 #00ffff;
  font-family: "Fixedsys", "MS Gothic", monospace;
}
.banner .sub { color: #00ff00; font-size: 0.8rem; }

/* marquee 風スクロール帯 */
.scrollbar {
  background: #ff00ff;
  color: #000;
  font-weight: bold;
  border-bottom: 3px outset #fff;
  white-space: nowrap;
  overflow: hidden;
}
.scrollbar .move {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-x 18s linear infinite;
}
@keyframes scroll-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ナビ（90年代ベベルボタン） */
nav {
  background: #808080;
  border-bottom: 3px outset #fff;
  padding: 0.4rem;
  text-align: center;
}
nav a {
  display: inline-block;
  margin: 0.15rem 0.3rem;
  padding: 0.25rem 0.7rem;
  border: 3px outset #d9d9d9;
  background: #c0c0c0;
  color: #00008b;
  text-decoration: none;
  font-weight: bold;
}
nav a:visited { color: #00008b; }
nav a:hover { background: #ffff00; color: #00008b; }
nav a:active { border-style: inset; }

.content { padding: 1rem; line-height: 1.7; }
.content h2 {
  color: #00ffff;
  border-bottom: 2px dashed var(--grid);
  padding-bottom: 0.2rem;
  font-size: 1.2rem;
}
.content h3 { color: #ffff00; }

/* パネル（枠付きブロック） */
.panel {
  border: 3px double #ff00ff;
  background: rgba(0,0,80,.45);
  padding: 0.7rem;
  margin: 1rem 0;
}

/* 90年代点滅（CSS で再現） */
.blink {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
  color: #ff0000;
  font-weight: bold;
}
@keyframes blink { 50% { opacity: 0; } }

/* 作品カード（表＋ボーダー） */
.work {
  border: 2px outset #fff;
  background: #101060;
  padding: 0.6rem;
  margin: 0.6rem 0;
}
.work .frame {
  border: 2px inset #39ff14;
  background: #000;
  color: #39ff14;
  padding: 0.4rem;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  white-space: pre;
  overflow-x: auto;
}

/* 箇条書き（90年代風記号） */
ul.dot { list-style-type: "► "; padding-left: 1.2rem; }

/* 訪問者カウンタ（7セグ風） */
.counter {
  display: inline-block;
  background: #000;
  color: #39ff14;
  font-family: "Courier New", monospace;
  letter-spacing: 0.3em;
  padding: 0.15rem 0.6rem;
  border: 2px inset #555;
  font-size: 1.1rem;
}

.footer {
  background: #000;
  color: #808080;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.5rem;
  border-top: 3px inset #ff00ff;
}

/* 90年代「新着」バッチ */
.new {
  background: #ff0000;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.05rem 0.4rem;
  border-radius: 2px;
  font-weight: bold;
  animation: blink 1.3s steps(1) infinite;
}

/* ナビ：現在のページを強調 */
nav a.nav-current {
  background: #ffff00;
  color: #00008b;
  border-style: inset;
  font-weight: bold;
}

/* フォーム（90年代ベベル風） */
form input[type="text"],
form textarea {
  width: 100%;
  margin: 0.3rem 0;
  padding: 0.3rem;
  border: 3px inset #999;
  background: #fff;
  color: #000;
  font-family: "Courier New", monospace;
}
form button,
.btn {
  border: 3px outset #fff;
  background: #c0c0c0;
  color: #00008b;
  padding: 0.3rem 0.8rem;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}
form button:hover,
.btn:hover {
  background: #ffff00;
}
form button:active {
  border-style: inset;
}

table.info {
  border: 3px outset #fff;
  border-collapse: collapse;
  width: 100%;
}
table.info th, table.info td {
  border: 1px solid var(--grid);
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
}
table.info th { background: #808080; color: #000; }
