/* =========================================================
   OKTAVIA CGI GAMES - OLDWEB THEME
   ---------------------------------------------------------
   - 2000年代前後の古い個人サイト風
   - 半透明/発光を抑え、箱UI・灰色ボタン・青リンク寄り
   - base.css の上に重ねる想定
   ========================================================= */

body[data-theme="oldweb"] {
  --font-body: "MS UI Gothic", "MS PGothic", "MS Gothic", "Meiryo", sans-serif;
  --font-mono: "MS Gothic", "Courier New", monospace;
  --font-title: var(--font-body);

  --bg: #d7d7d7;
  --text: #111111;

  --panel-bg-top: #f3f3f3;
  --panel-bg-bottom: #e3e3e3;
  --panel-border: #8f8f8f;
  --panel-shadow-outer: rgba(0, 0, 0, 0.18);
  --panel-inner-line: rgba(255, 255, 255, 0.75);

  --panel-glow-1: rgba(255, 255, 255, 0.18);
  --panel-glow-2: rgba(255, 255, 255, 0.10);
  --panel-glow-3: rgba(0, 0, 0, 0.03);

  --title-color: #aa0000;

  --card-border: #9a9a9a;
  --card-bg: #efefef;
  --card-bg-hover: #f8f8f8;

  --accent: #0044cc;
  --accent-strong: #cc0000;
  --accent-soft: rgba(0, 68, 204, 0.10);

  --menu-label: #0033aa;
  --menu-desc: #333333;
  --menu-textshadow: transparent;

  --pill-border: #a0a0a0;
  --pill-bg: #dadada;
  --pill-text: #444444;

  --notice-border: #8aa6d8;
  --notice-bg: #edf4ff;
  --notice-title: #003399;
  --notice-body: #222222;

  --hero-border: #8f8f8f;
  --hero-bg: #ececec;
  --hero-inner: rgba(255, 255, 255, 0.65);

  --footer-small: #555555;

  background-color: var(--bg);
  color: var(--text);
  text-shadow: none;
}

/* =========================
   1) 全体背景
   ========================= */
body[data-theme="oldweb"] {
  background-image:
    linear-gradient(180deg, #e4e4e4 0%, #d7d7d7 100%);
  background-attachment: fixed;
}

body[data-theme="oldweb"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.55) 0px,
      rgba(255, 255, 255, 0.55) 1px,
      transparent 1px,
      transparent 3px),
    repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 4px);
}

/* scanline 系は無効 */
body[data-theme="oldweb"] .scanline,
body[data-theme="oldweb"] .scanline2 {
  display: none;
}

/* =========================
   2) 基本パネル
   ========================= */
body[data-theme="oldweb"] .panel {
  border-radius: 0;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, var(--panel-bg-top), var(--panel-bg-bottom));
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.80) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.10) inset,
    2px 2px 0 rgba(0, 0, 0, 0.08);
}

body[data-theme="oldweb"] .panel::before {
  opacity: 0.45;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.45),
      transparent 24%);
}

body[data-theme="oldweb"] .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.50);
  mix-blend-mode: normal;
}

/* =========================
   3) 見出し
   ========================= */
body[data-theme="oldweb"] .panel-title {
  margin: 0 0 12px;
  padding: 4px 8px;
  border: 1px solid #999999;
  border-left: 6px solid #bb0000;
  background: linear-gradient(180deg, #fdfdfd, #dfdfdf);
  color: #7a0000;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: none;
  text-shadow: none;
}

body[data-theme="oldweb"] .panel-title::before,
body[data-theme="oldweb"] .panel-title::after {
  content: none;
}

body[data-theme="oldweb"] .site-title {
  color: #222222;
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* =========================
   4) ヘッダー / ヒーロー
   ========================= */
body[data-theme="oldweb"] #header.panel {
  max-width: 1050px;
  padding: 8px;
}

body[data-theme="oldweb"] .hero-card {
  border-radius: 0;
  border: 1px solid #8f8f8f;
  background: #ebebeb;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.85) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.08) inset;
}

body[data-theme="oldweb"] .hero-card:hover {
  transform: none;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.85) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.08) inset;
}

body[data-theme="oldweb"] .hero-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dotted #b0b0b0;
  pointer-events: none;
}

body[data-theme="oldweb"] .hero-card img {
  border-radius: 0;
  filter: contrast(1.01) saturate(0.96);
  box-shadow: 0 0 0 1px #9a9a9a;
  animation: none;
}

/* =========================
   5) ナビボタン / テーマボタン
   ========================= */
body[data-theme="oldweb"] .hero-nav,
body[data-theme="oldweb"] .theme-btn {
  border-radius: 0;
  border: 1px solid #8f8f8f;
  background: linear-gradient(180deg, #fbfbfb, #d9d9d9);
  color: #222222;
  font-family: var(--font-body);
  text-shadow: none;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.90) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.10) inset;
}

body[data-theme="oldweb"] .hero-nav:hover,
body[data-theme="oldweb"] .theme-btn:hover {
  transform: none;
  border-color: #707070;
  background: linear-gradient(180deg, #ffffff, #e7e7e7);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.92) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.12) inset;
}

body[data-theme="oldweb"] .hero-nav:active,
body[data-theme="oldweb"] .theme-btn:active {
  box-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.70) inset,
    1px 1px 0 rgba(0, 0, 0, 0.12) inset;
}

/* =========================
   6) メニュー
   ========================= */
body[data-theme="oldweb"] .menu {
  gap: 8px;
}

body[data-theme="oldweb"] .menu-item {
  border-radius: 0;
  padding: 10px 10px 9px;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, #fafafa, #e9e9e9);
  color: #111111;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.85) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.05) inset;
}

body[data-theme="oldweb"] .menu-item:hover {
  transform: none;
  border-color: #7f7f7f;
  background: linear-gradient(180deg, #ffffff, #f0f0f0);
  box-shadow:
    0 0 0 1px rgba(0, 68, 204, 0.12),
    1px 1px 0 rgba(255, 255, 255, 0.88) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.06) inset;
}

body[data-theme="oldweb"] .menu-item.is-main {
  border-color: #7e9cd8;
  background:
    linear-gradient(180deg, #fdfefe, #e8f0ff);
}

body[data-theme="oldweb"] .menu-label {
  color: #0033aa;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: underline;
  text-shadow: none;
}

body[data-theme="oldweb"] .menu-desc {
  margin-top: 5px;
  color: #333333;
  font-size: 12px;
}

body[data-theme="oldweb"] .pill {
  border-radius: 0;
  padding: 2px 6px;
  background: #dddddd;
  border: 1px solid #aaaaaa;
  color: #444444;
  font-size: 10px;
  letter-spacing: 0.04em;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7) inset;
}

/* =========================
   7) お知らせ / NEWS
   ========================= */
body[data-theme="oldweb"] .news-block+.news-block {
  border-top: 1px dashed #a8a8a8;
}

body[data-theme="oldweb"] .news-subtitle {
  color: #003399;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-theme="oldweb"] .notice {
  margin-top: 10px;
  border-radius: 0;
  border: 1px solid var(--notice-border);
  background: var(--notice-bg);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.75) inset;
}

body[data-theme="oldweb"] .notice-title {
  color: var(--notice-title);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body[data-theme="oldweb"] .notice-body {
  color: var(--notice-body);
  font-size: 13px;
  line-height: 1.55;
}

/* 更新情報を一覧っぽく */
body[data-theme="oldweb"] .update-row {
  margin-top: 6px;
  padding: 5px 6px;
  border: 1px solid #c8c8c8;
  background: #f7f7f7;
}

body[data-theme="oldweb"] .update-label {
  color: #222222;
}

/* =========================
   8) 本文・リンク感
   ========================= */
body[data-theme="oldweb"] a {
  color: #0033cc;
}

body[data-theme="oldweb"] a:visited {
  color: #663399;
}

body[data-theme="oldweb"] strong {
  color: #8a0000;
}

/* =========================
   9) フッター
   ========================= */
body[data-theme="oldweb"] .footer .panel {
  background: linear-gradient(180deg, #ededed, #dadada);
}

body[data-theme="oldweb"] .footer-small {
  color: #555555;
  text-shadow: none;
}

/* =========================
   10) モーション抑制
   ========================= */
@media (prefers-reduced-motion: reduce) {

  body[data-theme="oldweb"] .menu-item,
  body[data-theme="oldweb"] .hero-card,
  body[data-theme="oldweb"] .theme-btn,
  body[data-theme="oldweb"] .hero-nav,
  body[data-theme="oldweb"] #hero-banner {
    transition: none;
    animation: none;
  }
}

/* =========================================================
   oldweb 強化差分
   - 追加した意味クラスを利用
   - 「古い個人サイト」「2000年代初頭」感を強める
   ========================================================= */

body[data-theme="oldweb"] {
  --oldweb-blue: #0033cc;
  --oldweb-blue-dark: #003399;
  --oldweb-red: #990000;
  --oldweb-green: #006600;
  --oldweb-gray-1: #f7f7f7;
  --oldweb-gray-2: #e4e4e4;
  --oldweb-gray-3: #c8c8c8;
  --oldweb-gray-4: #8f8f8f;
}

/* =========================
   パネルごとの差を少し強める
   ========================= */

body[data-theme="oldweb"] .panel-header {
  background:
    linear-gradient(180deg, #f5f5f5, #dddddd);
}

body[data-theme="oldweb"] .panel-nav {
  background:
    linear-gradient(180deg, #f8f8f8, #e6e6e6);
}

body[data-theme="oldweb"] .panel-info {
  background:
    linear-gradient(180deg, #f9f9f9, #ebebeb);
}

body[data-theme="oldweb"] .panel-news {
  background:
    linear-gradient(180deg, #f8f8f8, #e8e8e8);
}

body[data-theme="oldweb"] .panel-footer {
  background:
    linear-gradient(180deg, #ececec, #dadada);
}

/* =========================
   見出しの役割差
   ========================= */

body[data-theme="oldweb"] .panel-title-menu,
body[data-theme="oldweb"] .panel-title-info,
body[data-theme="oldweb"] .panel-title-news {
  position: relative;
  padding-left: 10px;
}

body[data-theme="oldweb"] .panel-title-menu::before,
body[data-theme="oldweb"] .panel-title-info::before,
body[data-theme="oldweb"] .panel-title-news::before {
  content: "■";
  margin-right: 6px;
  color: var(--oldweb-red);
}

body[data-theme="oldweb"] .panel-title-menu::after {
  content: "　LINK";
  color: #666666;
  font-size: 11px;
  font-weight: 400;
}

body[data-theme="oldweb"] .panel-title-info::after {
  content: "　サイト案内";
  color: #666666;
  font-size: 11px;
  font-weight: 400;
}

body[data-theme="oldweb"] .panel-title-news::after {
  content: "　更新履歴";
  color: #666666;
  font-size: 11px;
  font-weight: 400;
}

/* =========================
   ヒーロー
   ========================= */

body[data-theme="oldweb"] .hero-main .hero-card::after {
  content: "WELCOME";
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 11px;
  color: #555555;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border: 1px solid #b5b5b5;
}

/* =========================
   メニュー全体
   「カード」から「古いリンク集」寄りへ
   ========================= */

body[data-theme="oldweb"] .menu-primary {
  gap: 4px;
}

body[data-theme="oldweb"] .menu-item {
  position: relative;
  padding: 8px 10px 7px 22px;
  border-radius: 0;
  border: 1px solid #b7b7b7;
  background:
    linear-gradient(180deg, #fafafa, #ececec);
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.85) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.05) inset;
}

body[data-theme="oldweb"] .menu-item::before {
  content: "▶";
  position: absolute;
  left: 8px;
  top: 10px;
  color: var(--oldweb-red);
  font-size: 11px;
  line-height: 1;
}

body[data-theme="oldweb"] .menu-item:hover {
  transform: none;
  background:
    linear-gradient(180deg, #ffffff, #f3f3f3);
  border-color: #8f8f8f;
}

body[data-theme="oldweb"] .menu-item:active {
  box-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.65) inset,
    1px 1px 0 rgba(0, 0, 0, 0.10) inset;
}

body[data-theme="oldweb"] .menu-item-top {
  align-items: baseline;
}

body[data-theme="oldweb"] .menu-label {
  color: var(--oldweb-blue);
  text-decoration: underline;
}

body[data-theme="oldweb"] .menu-label-main {
  color: #990000;
}

body[data-theme="oldweb"] .menu-desc {
  margin-top: 4px;
  color: #333333;
  font-size: 12px;
  line-height: 1.45;
}

/* メイン項目だけ少し目立たせる */
body[data-theme="oldweb"] .menu-item-main {
  border-color: #9fb3df;
  background:
    linear-gradient(180deg, #fdfefe, #e9f1ff);
}

body[data-theme="oldweb"] .menu-item-main::before {
  content: "★";
  color: #cc0000;
}

/* classic 系は落ち着いた青 */
body[data-theme="oldweb"] .menu-item-classic .menu-label {
  color: #003399;
}

/* coop は緑 */
body[data-theme="oldweb"] .menu-item-coop .menu-label {
  color: #006600;
}

/* chaos は赤寄り */
body[data-theme="oldweb"] .menu-item-chaos .menu-label {
  color: #990000;
}

/* BR は紫寄り */
body[data-theme="oldweb"] .menu-item-br .menu-label {
  color: #663399;
}

/* tool は濃紺 */
body[data-theme="oldweb"] .menu-item-tool .menu-label {
  color: #003366;
}

/* home は地味め */
body[data-theme="oldweb"] .menu-item-home .menu-label {
  color: #444444;
}

/* community の見分け強化 */
body[data-theme="oldweb"] .menu-item-community-token {
  border-left: 5px solid #4a76d1;
}

body[data-theme="oldweb"] .menu-item-community-coin {
  border-left: 5px solid #b07a24;
}

body[data-theme="oldweb"] .menu-item-community-token .menu-desc::before {
  content: "[TOKEN] ";
  color: #2d58b5;
  font-weight: 700;
}

body[data-theme="oldweb"] .menu-item-community-coin .menu-desc::before {
  content: "[COIN] ";
  color: #8a5c12;
  font-weight: 700;
}

/* pill をさらに古めに */
body[data-theme="oldweb"] .pill {
  min-width: 0;
  padding: 1px 6px 2px;
  border-radius: 0;
  border: 1px solid #aaaaaa;
  background: #dddddd;
  color: #444444;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body[data-theme="oldweb"] .pill-main {
  color: #7a0000;
  border-color: #c29c9c;
  background: #f0dede;
}

/* =========================
   INFO
   ========================= */

body[data-theme="oldweb"] .panel-info .site-title {
  border-bottom: 1px dashed #b4b4b4;
  padding-bottom: 8px;
}

body[data-theme="oldweb"] .panel-info p {
  line-height: 1.75;
}

body[data-theme="oldweb"] .notice-info {
  position: relative;
  border-color: #b9c9ea;
  background: #eef4ff;
}

body[data-theme="oldweb"] .notice-info::before {
  content: "管理人メモ";
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 6px;
  font-size: 11px;
  color: #003399;
  border: 1px solid #aebfe8;
  background: #f8fbff;
}

/* =========================
   NEWS
   ========================= */

body[data-theme="oldweb"] .news-block-notice+.news-block-update {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #a6a6a6;
}

body[data-theme="oldweb"] .news-subtitle-notice,
body[data-theme="oldweb"] .news-subtitle-update {
  font-weight: 700;
  letter-spacing: 0.02em;
}

body[data-theme="oldweb"] .news-subtitle-notice::before {
  content: "■ ";
  color: var(--oldweb-blue-dark);
}

body[data-theme="oldweb"] .news-subtitle-update::before {
  content: "■ ";
  color: var(--oldweb-red);
}

body[data-theme="oldweb"] #notice_content .notice {
  margin-top: 8px;
  background: #f9fcff;
  border-color: #b7c8e8;
}

body[data-theme="oldweb"] #notice_content .notice-title {
  color: var(--oldweb-blue-dark);
}

body[data-theme="oldweb"] #update_content {
  margin-top: 6px;
}

/* 更新情報を「更新履歴」っぽく */
body[data-theme="oldweb"] .update-row {
  position: relative;
  margin-top: 6px;
  padding: 6px 8px 6px 22px;
  border: 1px solid #c6c6c6;
  background: #f7f7f7;
}

body[data-theme="oldweb"] .update-row::before {
  content: "●";
  position: absolute;
  left: 8px;
  top: 8px;
  color: var(--oldweb-red);
  font-size: 10px;
}

body[data-theme="oldweb"] .update-label {
  color: #222222;
  font-weight: 700;
}

/* =========================
   フッター
   ========================= */

body[data-theme="oldweb"] .panel-footer {
  position: relative;
}

body[data-theme="oldweb"] .panel-footer::after {
  content: "Since 2000s ?";
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #666666;
  font-size: 11px;
}

/* =========================
   リンク感をさらに昔風に
   ========================= */

body[data-theme="oldweb"] a {
  color: #0033cc;
}

body[data-theme="oldweb"] a:hover {
  color: #cc0000;
}

body[data-theme="oldweb"] a:visited {
  color: #663399;
}
