/* =========================================================
   Ishin-denshin game : business theme "midnight" (2026-10-14 rev b)
   play.php    -> body.business-theme (replaces .classroom-theme)
   display.php -> body.theme-business (overrides its inline <style>)
   Dark navy base + soft glow + faint grid + glass surfaces + blue->cyan accent
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---------- shared: font + background ---------- */
.business-theme, .business-theme *:not(.font-mono),
body.theme-business, body.theme-business *:not(.font-mono) {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', 'Segoe UI', sans-serif !important;
}
.business-theme .font-black, .business-theme .font-extrabold,
body.theme-business .font-black, body.theme-business .font-extrabold { font-weight: 700 !important; }

.business-theme,
body.theme-business {
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(900px 520px at 105% 110%, rgba(99, 102, 241, 0.14), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px) 0 0 / 44px 44px,
    #070d1a !important;
  background-attachment: fixed !important;
  color: #e6edf7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- play.php (participant / smartphone) ---------- */
/* style.css defines .game-logo without theme scope -> reset every decorative property */
.business-theme .game-logo {
  font-size: clamp(1.25em, 4.6vw, 1.8em);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-shadow: none;
  padding: 0;
  margin-bottom: 0.3em;
}
.business-theme .game-logo small::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin: 0 auto 0.9em;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.55);
}
.business-theme .game-logo small {
  display: block;
  width: fit-content;
  margin: 0.5em auto 0;
  font-size: 0.48em;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  letter-spacing: 0.08em;
  text-shadow: none;
}
/* glass cards */
.business-theme .bg-white {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e6edf7;
}
.business-theme h2.text-xl,
.business-theme h3 { color: #ffffff; }
.business-theme h2.text-xl {
  line-height: 1.5;
  padding-left: 0.65em;
  border-left: 3px solid #38bdf8;
}
.business-theme .text-slate-400 { color: #7c8aa3 !important; }
.business-theme .text-slate-500,
.business-theme .text-slate-600 { color: #94a3b8 !important; }
.business-theme .text-green-600,
.business-theme .text-green-700,
.business-theme .text-emerald-700 { color: #4ade80 !important; }
.business-theme .text-blue-700 { color: #7dd3fc !important; }
.business-theme .text-amber-700 { color: #fbbf24 !important; }
.business-theme .text-amber-800 { color: #fcd34d !important; }
.business-theme .text-red-500 { color: #f87171 !important; }
.business-theme .bg-slate-50,
.business-theme .bg-slate-100 { background: rgba(255, 255, 255, 0.05) !important; }
.business-theme .bg-green-50 { background: rgba(34, 197, 94, 0.12) !important; }
.business-theme .bg-green-100,
.business-theme .bg-emerald-100 { background: rgba(34, 197, 94, 0.16) !important; }
.business-theme .bg-amber-50 { background: rgba(245, 158, 11, 0.12) !important; }
.business-theme .bg-amber-100 { background: rgba(245, 158, 11, 0.16) !important; }
.business-theme .bg-blue-50 { background: rgba(56, 189, 248, 0.10) !important; }
.business-theme .border-amber-300 { border-color: rgba(245, 158, 11, 0.4) !important; }
.business-theme .border { border-color: rgba(255, 255, 255, 0.12); }
/* primary button */
.business-theme button.bg-blue-600 {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%) !important;
  border: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  letter-spacing: 0.06em;
}
.business-theme button.bg-blue-600:hover { filter: brightness(1.12); }
/* choice buttons */
.business-theme button.bg-blue-50 {
  color: #e6edf7;
  border-color: rgba(56, 189, 248, 0.35) !important;
}
.business-theme button.bg-blue-50:hover { border-color: #38bdf8 !important; background: rgba(56, 189, 248, 0.16) !important; }
.business-theme button.bg-blue-200 {
  background: rgba(56, 189, 248, 0.24) !important;
  border-color: #38bdf8 !important;
}
/* inputs */
.business-theme input[type="text"],
.business-theme select {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
}
.business-theme input::placeholder { color: #64748b !important; }
.business-theme input[type="text"]:focus,
.business-theme select:focus {
  outline: none;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}
.business-theme select option { background: #0f172a; color: #e6edf7; }

/* ---------- demo/index.php only ---------- */
.business-theme strong { color: #ffffff; }
.business-theme .text-slate-700 { color: #cbd5e1 !important; }
.business-theme .text-red-600 { color: #f87171 !important; }
.business-theme .bg-blue-100 { background: rgba(56, 189, 248, 0.16) !important; }
.business-theme .border-blue-400 { border-color: #38bdf8 !important; box-shadow: 0 0 14px rgba(56, 189, 248, 0.25); }
.business-theme .border-slate-200 { border-color: rgba(255, 255, 255, 0.10) !important; }
.business-theme .bg-slate-400 { background: #334155 !important; }
.business-theme .bg-emerald-600 {
  background: linear-gradient(135deg, #059669 0%, #0891b2 100%) !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}
.business-theme .bg-emerald-600:hover { filter: brightness(1.12); }
.business-theme ul.list-disc li::marker { color: #38bdf8; }

/* ---------- display.php (projector) ---------- */
body.theme-business { font-weight: 500 !important; }
body.theme-business .title-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: none;
}
body.theme-business .title-sub { color: #94a3b8; font-weight: 500; letter-spacing: 0.08em; }
body.theme-business .title-accent {
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
  width: 56px;
  height: 3px;
}
body.theme-business .dp-brand { font-weight: 700 !important; text-shadow: none !important; letter-spacing: 0.14em !important; }
body.theme-business .dp-brand-accent {
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
body.theme-business .question-card {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.theme-business .question-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #3b82f6, #22d3ee);
}
body.theme-business .qcell {
  background: #2563eb;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.theme-business .qcell-text { font-weight: 700; text-shadow: none; }
body.theme-business .qcell-label {
  background: transparent;
  color: #94a3b8;
  font-weight: 500;
  box-shadow: none;
  margin-top: 2px;
  padding-top: 4px;
  padding-bottom: 0;
  letter-spacing: 0.04em;
}
body.theme-business .qcell.match-overall {
  background: linear-gradient(135deg, #fde68a 0%, #f5c84c 100%);
  box-shadow: 0 0 0 2px #fff6d5, 0 0 28px rgba(245, 200, 76, 0.5);
}
body.theme-business .qcell.match-overall .qcell-text { color: #1e293b; }
body.theme-business .team-section-header {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  box-shadow: none;
}
body.theme-business .team-section-header .team-dot { box-shadow: 0 0 10px currentColor; }
body.theme-business .team-section-header .team-name { font-weight: 700; }
body.theme-business .team-section-header .team-count { color: #7c8aa3; }
body.theme-business .kpi-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.theme-business .kpi-badge .kpi-num { color: #7dd3fc; font-weight: 700; }
body.theme-business .text-black { color: #cbd5e1 !important; font-weight: 500 !important; }
body.theme-business .dp-progress-track {
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  height: 10px !important;
}
body.theme-business .dp-progress-fill {
  background: linear-gradient(90deg, #3b82f6, #22d3ee) !important;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
body.theme-business .scroll-y::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); }
body.theme-business .scroll-y::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }
