/* =========================================================
   OKTAVIA CGI GAMES - RETRO THEME (REFINED)
   ---------------------------------------------------------
   - retro専用差分
   - 上品レトロ / 暖色 / 落ち着いた木質感
   - base.css の上に重ねる
   ========================================================= */

body[data-theme="retro"] {
  --font-body: "MS PGothic", "MS Gothic", "Meiryo", "Hiragino Kaku Gothic ProN",
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: var(--font-mono);

  --bg: #241915;
  --text: #f4ecd8;

  --panel-bg-top: rgba(54, 38, 29, 0.94);
  --panel-bg-bottom: rgba(34, 24, 19, 0.95);
  --panel-border: rgba(255, 209, 117, 0.30);
  --panel-shadow-outer: rgba(0, 0, 0, 0.40);
  --panel-inner-line: rgba(255, 255, 255, 0.05);

  --panel-glow-1: rgba(255, 220, 140, 0.10);
  --panel-glow-2: rgba(255, 220, 140, 0.06);
  --panel-glow-3: rgba(255, 220, 140, 0.05);

  --title-color: rgba(255, 235, 200, 0.95);

  --card-border: rgba(255, 209, 117, 0.24);
  --card-bg: rgba(0, 0, 0, 0.14);
  --card-bg-hover: rgba(32, 20, 12, 0.28);

  --accent: rgba(255, 209, 117, 0.62);
  --accent-strong: rgba(255, 209, 117, 0.48);
  --accent-soft: rgba(255, 209, 117, 0.14);

  --menu-label: #ffe9bd;
  --menu-desc: rgba(244, 236, 216, 0.88);
  --menu-textshadow: rgba(255, 209, 117, 0.08);

  --pill-border: rgba(255, 209, 117, 0.26);
  --pill-bg: rgba(32, 18, 8, 0.22);
  --pill-text: rgba(255, 235, 200, 0.95);

  --notice-border: rgba(120, 210, 255, 0.18);
  --notice-bg: rgba(0, 40, 55, 0.12);
  --notice-title: rgba(200, 250, 255, 0.92);
  --notice-body: rgba(245, 255, 255, 0.88);

  --hero-border: rgba(255, 209, 117, 0.28);
  --hero-bg: rgba(18, 10, 6, 0.24);
  --hero-inner: rgba(255, 255, 255, 0.03);

  --footer-small: rgba(244, 236, 216, 0.72);
}

/* =========================
   1) 全体のレトロ背景
   ========================= */
/* 暖色の奥行きは残しつつ、主張は控えめに */
body[data-theme="retro"] {
  background-color: #1b120f;
  background-image:
    radial-gradient(900px 520px at 18% 10%, rgba(255, 210, 120, 0.05), transparent 60%),
    radial-gradient(700px 420px at 82% 18%, rgba(160, 90, 30, 0.05), transparent 62%),
    linear-gradient(180deg, #2a1d17 0%, #221712 52%, #1b120f 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 木目/紙感はかなり薄く */
body[data-theme="retro"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background:
    repeating-linear-gradient(0deg,
      rgba(255, 240, 220, 0.018) 0px,
      rgba(255, 240, 220, 0.018) 1px,
      transparent 2px,
      transparent 5px),
    repeating-linear-gradient(90deg,
      rgba(70, 38, 18, 0.025) 0px,
      rgba(70, 38, 18, 0.025) 1px,
      transparent 4px,
      transparent 9px);
}

/* =========================
   2) パネル
   ========================= */
/* 木箱っぽさを残しつつ、上質な箱物UI寄りに */
body[data-theme="retro"] .panel {
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 230, 180, 0.05) inset,
    inset 0 0 0 1px rgba(255, 240, 220, 0.03);
}

body[data-theme="retro"] .panel::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 220, 140, 0.10), transparent 35%),
    radial-gradient(circle at 82% 18%, rgba(255, 220, 140, 0.06), transparent 30%),
    radial-gradient(circle at 40% 85%, rgba(255, 220, 140, 0.05), transparent 35%);
}

body[data-theme="retro"] .panel:hover {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 215, 140, 0.03),
    inset 0 1px 0 rgba(255, 240, 220, 0.06);
}

/* =========================
   3) 見出し
   ========================= */
/* 記号装飾ではなく、細い飾り線で上品に */
body[data-theme="retro"] .panel-title {
  letter-spacing: 0.16em;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 0 8px rgba(255, 209, 117, 0.05);
}

body[data-theme="retro"] .panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(255, 209, 117, 0.72),
      rgba(255, 209, 117, 0.10));
}

body[data-theme="retro"] .panel-title::after {
  content: none;
}

/* =========================
   4) メニューカード
   ========================= */
/* 手作り感より“丁寧なカード”感を優先 */
body[data-theme="retro"] .menu-item {
  background:
    linear-gradient(180deg,
      rgba(255, 245, 220, 0.018),
      rgba(0, 0, 0, 0.08)),
    var(--card-bg);
  box-shadow:
    0 1px 0 rgba(255, 240, 220, 0.025) inset,
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

body[data-theme="retro"] .menu-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 117, 0.38);
  background:
    linear-gradient(180deg,
      rgba(255, 245, 220, 0.03),
      rgba(30, 18, 10, 0.14)),
    var(--card-bg-hover);
  box-shadow:
    0 0 10px rgba(255, 209, 117, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 240, 220, 0.05);
}

/* メイン導線だけ少しだけ特別扱い */
body[data-theme="retro"] .menu-item.is-main {
  background:
    linear-gradient(180deg,
      rgba(255, 230, 180, 0.045),
      rgba(0, 0, 0, 0.08)),
    var(--card-bg);
  box-shadow:
    0 0 0 1px rgba(255, 240, 220, 0.03) inset,
    0 0 10px rgba(255, 209, 117, 0.05);
}

/* =========================
   5) メニュー文字・pill
   ========================= */
/* 文字の圧は少し弱めて読みやすく */
body[data-theme="retro"] .menu-label {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.42),
    0 0 6px rgba(255, 209, 117, 0.06);
}

body[data-theme="retro"] .menu-desc {
  text-shadow: none;
}

/* 真鍮感は薄めに */
body[data-theme="retro"] .pill {
  background:
    linear-gradient(180deg,
      rgba(255, 235, 190, 0.05),
      rgba(60, 35, 18, 0.16));
  border-color: rgba(255, 209, 117, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 200, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.12);
}

/* =========================
   6) ヒーロー部分
   ========================= */
/* 額縁感はかなり控えめに */
body[data-theme="retro"] .hero-card {
  background:
    linear-gradient(180deg,
      rgba(255, 230, 180, 0.025),
      rgba(0, 0, 0, 0.08)),
    var(--hero-bg);
  box-shadow:
    inset 0 0 0 1px var(--hero-inner),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

body[data-theme="retro"] .hero-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 235, 190, 0.035),
    inset 0 0 14px rgba(80, 40, 20, 0.08);
}

body[data-theme="retro"] .hero-card:hover {
  box-shadow:
    0 0 10px rgba(255, 209, 117, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 240, 220, 0.03);
}

body[data-theme="retro"] .hero-card img {
  filter: contrast(1.02) saturate(1.02) sepia(0.02);
}

/* =========================
   7) 矢印ボタン
   ========================= */
/* “昔のサイトのボタン”っぽさは残しつつ落ち着かせる */
body[data-theme="retro"] .hero-nav {
  background:
    linear-gradient(180deg,
      rgba(255, 230, 180, 0.04),
      rgba(0, 0, 0, 0.16));
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

body[data-theme="retro"] .hero-nav:hover {
  border-color: rgba(255, 209, 117, 0.38);
  background:
    linear-gradient(180deg,
      rgba(255, 235, 190, 0.07),
      rgba(0, 0, 0, 0.20));
  box-shadow:
    0 0 8px rgba(255, 209, 117, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 240, 220, 0.08);
}

/* =========================
   8) テーマボタン
   ========================= */
body[data-theme="retro"] .theme-btn {
  background:
    linear-gradient(180deg,
      rgba(255, 235, 200, 0.03),
      rgba(0, 0, 0, 0.12));
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

body[data-theme="retro"] .theme-btn:hover {
  box-shadow:
    0 0 8px rgba(255, 209, 117, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 240, 220, 0.06);
}

/* =========================
   9) お知らせ枠
   ========================= */
/* 貼り紙感ではなく、静かな情報枠 */
body[data-theme="retro"] .notice {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 2px 6px rgba(0, 0, 0, 0.10);
}

body[data-theme="retro"] .notice::after {
  content: none;
}

/* =========================
   10) フッター
   ========================= */
body[data-theme="retro"] .footer .panel {
  background:
    linear-gradient(180deg,
      rgba(70, 46, 34, 0.90),
      rgba(38, 26, 20, 0.94));
}

body[data-theme="retro"] .footer-small {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.42);
}

/* =========================
   11) reduced motion
   ========================= */
@media (prefers-reduced-motion: reduce) {

  body[data-theme="retro"] .panel,
  body[data-theme="retro"] .menu-item,
  body[data-theme="retro"] .hero-card,
  body[data-theme="retro"] .theme-btn,
  body[data-theme="retro"] .hero-nav {
    transition: none;
  }
}
