/* ============================================================
   excel-anim.css — Excelアニメーション教材 共通スタイル
   ナレーション・3Dシーン枠・コントロール類は全作品で使い回す
   ============================================================ */
:root { --excel-green: #217346; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Yu Gothic UI", "Meiryo", sans-serif;
  background: #eef1ee; color: #333;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; padding: 20px 16px 28px;
}
h1 { font-size: 19px; color: var(--excel-green); margin-bottom: 4px; text-align: center; }

/* ---- セル座ロビーへの戻り動線 ---- */
.back-lobby {
  align-self: flex-start;
  font-size: 13px; color: #777; text-decoration: none;
  padding: 4px 12px; border: 1px solid #c9d4c9; border-radius: 14px;
  margin-bottom: 10px; background: #fff;
}
.back-lobby:hover { color: var(--excel-green); border-color: var(--excel-green); }
.subtitle { font-size: 13px; color: #777; margin-bottom: 14px; text-align: center; }

/* ---- ナレーション ---- */
#narration {
  background: #fff; border-left: 6px solid var(--excel-green); border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  padding: 12px 18px; font-size: 15px; line-height: 1.6;
  max-width: 720px; width: 100%; min-height: 64px; margin-bottom: 12px;
}
.step-tag { font-size: 11px; color: #999; display: block; margin-bottom: 2px; }

/* ---- 3Dシーン枠 ---- */
#scene-wrap {
  width: 100%; max-width: 860px; height: 440px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.14);
  background: #d7e3ec;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
#scene-wrap canvas { display: block; }
#webgl-fallback {
  display: none; padding: 30px; text-align: center; color: #a33; font-size: 14px; line-height: 1.8;
}

/* ---- コントロール ---- */
#controls { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
#controls button {
  font-family: inherit; font-size: 14px; padding: 8px 18px;
  border: 1px solid var(--excel-green); background: #fff; color: var(--excel-green);
  border-radius: 6px; cursor: pointer;
}
#controls button:hover { background: #e8f3ec; }
#controls button.primary { background: var(--excel-green); color: #fff; }
#controls button:disabled { opacity: .4; cursor: default; }
#dots { display: flex; gap: 6px; margin-left: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd8cf; transition: background .3s; }
.dot.on { background: var(--excel-green); }
