/* =========================================================
   地元のLLM コミュニティ  style.css  (最終更新: 1997/07/04)
   ブラウザ: Internet Explorer 3.0 推奨 / Netscape 2.0 でも見れます(たぶん)

   --- 軽量化メモ (2026/09/25 管理人) ---
   ・点滅/スクロールは「transform」「opacity」だけを動かす
     (色や background-position を毎フレーム変えると描き直しが多くて重い)
   ・虹色は「静止したグラデ文字」に変更(見た目は維持、再描画ゼロ)
   ・タブが非表示の間は html.anim-paused で全アニメ停止(裏で回り続けない)
   ・使っていない keyframes (jerk / spin / grad) は削除
   ========================================================= */

/* ===== 基本 ===== */
body {
  background-color: #008080;
  background-image: repeating-linear-gradient(45deg, #00a0a0 0 10px, #008080 10px 20px);
  color: #000000;
  font-family: "MS PGothic", "ＭＳ Ｐゴシック", "Comic Sans MS", sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 8px;
  cursor: crosshair;
}

/* ---- アニメの一時停止 (タブ非表示 / 動きを減らす設定) ---- */
.anim-paused,
.anim-paused *,
.anim-paused *::before,
.anim-paused *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* ===== キラキラ☆ ===== */
@keyframes blink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.blink { animation: blink 0.8s step-start infinite; }

/* 虹色: 静止グラデ文字(再描画ゼロ)。font-weight で にじみ防止 */
.rainbow {
  font-weight: bold;
  background-image: linear-gradient(90deg,#ff0000,#ff9900,#ffff00,#00ff00,#00ffff,#ff00ff,#ff0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@keyframes zoom {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50%      { transform: scale(1.15) rotate(3deg); }
}
.zoom {
  display: inline-block;
  animation: zoom 1.2s ease-in-out infinite;
  will-change: transform;
}

/* ===== レイアウト(table が HTML4 の基本) ===== */
table.layout {
  border-collapse: separate;
  border-spacing: 4px;
  margin: 0 auto;
  background-color: #c0c0c0;
  border: 3px outset #ffffff;
  box-shadow: 6px 6px 0 #000000;
}
td {
  border: 3px inset #dfdfdf;
  padding: 10px;
  vertical-align: top;
  background-color: #c0c0c0;
}

/* ===== 見出し ===== */
h1 {
  font-size: 34px;
  text-align: center;
  margin: 4px 0;
  letter-spacing: 2px;
  text-shadow: 3px 3px 0 #808080, 6px 6px 0 #ffff00;
}
h2 {
  font-size: 20px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffff00;
  margin: 0 -10px 8px -10px;
  padding: 4px 8px;
  border-bottom: 3px ridge #ffffff;
}

.site-sub { text-align: center; margin: 2px; font-weight: bold; color: #000080; }
.site-sub2 { text-align: center; margin: 2px; }

/* ===== トップ画像 (ヒーロー) ===== */
.hero {
  max-width: 780px;
  margin: 10px auto;
  padding: 0;
  text-align: center;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px ridge #ffcc00;
  background-color: #000000;
  box-shadow: 6px 6px 0 #000000;
}
.hero figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: #ffff00;
  text-shadow: 1px 1px 0 #000000;
}

/* ===== リンク ===== */
a:link    { color: #0000ee; text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover   { color: #ff0000; background-color: #ffff00; }
a:active  { color: #ff0000; }

/* ===== マーキー風 (transform だけ動かす) ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background-color: #000000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  border: 3px inset #808080;
  padding: 4px;
  contain: content;
}
.marquee > span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 12s linear infinite;
  will-change: transform;
}
@keyframes scroll-left {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ===== カウンター (7セグっぽく) ===== */
.counter {
  font-family: "Courier New", monospace;
  font-weight: bold;
  background-color: #000000;
  color: #00ff00;
  border: 3px inset #808080;
  padding: 4px 10px;
  letter-spacing: 4px;
  font-size: 22px;
  display: inline-block;
}

/* ===== 工事中 ===== */
.under-construction {
  background: repeating-linear-gradient(45deg,#ffff00 0 14px,#000000 14px 28px);
  color: #ff0000;
  font-weight: bold;
  text-align: center;
  padding: 6px;
  border: 4px double #ff0000;
  font-size: 18px;
  text-shadow: 1px 1px 0 #ffff00;
}

/* ===== ボタン (94年風) ===== */
.retro-btn {
  font-family: "MS PGothic", sans-serif;
  font-size: 14px;
  background-color: #c0c0c0;
  border: 3px outset #ffffff;
  padding: 6px 10px;
  cursor: pointer;
}
.retro-btn:active { border-style: inset; }
.support-btn { font-size: 16px; }

/* ===== 表 / プロフィール ===== */
.profile td { background-color: #ffffcc; }
.menu { list-style-type: square; padding-left: 20px; margin: 4px; }

/* ===== キラキラ箱 (静止グラデ + 疑似要素の光を transform で流す) ===== */
.sparkle-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#ff00ff,#00ffff,#ffff00,#00ff00);
  color: #000080;
  font-weight: bold;
  padding: 8px;
  border: 3px dashed #ff0000;
  contain: content;
}
.sparkle-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  transform: translate3d(-150%, 0, 0);
  animation: sheen 3s linear infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%   { transform: translate3d(-150%, 0, 0); }
  100% { transform: translate3d(350%, 0, 0); }
}

/* ===== 限定コンテンツの箱 ===== */
.special-box {
  background: #000080;
  color: #ffff00;
  padding: 10px;
  border: 4px double #ff0000;
  text-align: center;
}
.special-title { font-size: 18px; margin: 4px; }
.reread-btn {
  font-size: 15px;
  background: #ffff00;
  color: #0000ee;
  padding: 8px;
  border: 3px outset #ffffff;
  text-decoration: none;
}

/* ===== 足あと ===== */
.footer {
  text-align: center;
  color: #ffffff;
  font-size: 12px;
  margin: 12px 0;
  text-shadow: 1px 1px 0 #000000;
}

/* ===== ねこ (jerk アニメは 廃止。静止でも十分 変) ===== */
.weird-cat {
  border: 4px groove #ff00ff;
  background-color: #000000;
  padding: 4px;
}
.mini-cat { border: 2px ridge #ff00ff; }

/* ===== けいじばん ===== */
.guestbook {
  background: #ffffff;
  border: 2px inset #808080;
  padding: 6px;
  font-size: 12px;
}

/* ===== 小物 ===== */
.center      { text-align: center; }
.tiny        { font-size: 12px; }
.tiny-navy   { font-size: 12px; color: #000080; }
.tiny-cyan   { font-size: 11px; color: #00ffff; }
.navy        { color: #000080; }
.hot         { color: #ff0000; font-weight: bold; }
.hot-sm      { color: #ff0000; font-size: 12px; }
.small-note  { font-size: 11px; color: #000080; }