/* ── あらすじ画面 ─────────────────────────── */
#dialogue-skip-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 8px 24px;
  background: rgba(255,255,255,0.08);
  color: #aaa;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}

#dialogue-skip-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

#dialogue-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}

#dialogue-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

#dialogue-box {
  position: relative;
  z-index: 1;
  width: 1100px;
  min-height: 180px;
  background: rgba(10, 10, 30, 0.92);
  border: 3px solid #ffd700;
  border-radius: 8px;
  padding: 32px 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.15), inset 0 0 30px rgba(0,0,0,0.5);
}

#dialogue-text {
  width: 100%;
  font-size: 26px;
  line-height: 1.8;
  color: #f0f0e0;
  min-height: 60px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  letter-spacing: 1px;
}

#dialogue-next-btn {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 4px;
  padding: 10px 36px;
  background: transparent;
  color: #ffd700;
  border: 2px solid #ffd700;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  animation: dialogueBtnBounce 1s ease-in-out infinite;
}

#dialogue-next-btn:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.15);
}

#dialogue-next-btn:disabled,
#dialogue-next-btn.typing {
  opacity: 0.4;
  cursor: default;
  animation: none;
}

/* 操作方法パネル */
#dialogue-controls {
  position: absolute;
  top: 24px;
  left: 32px;
  z-index: 10;
  background: rgba(10, 10, 30, 0.82);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 14px 20px;
  color: #ccc;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
  pointer-events: none;
}

.ctrl-title {
  color: #ffd700;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-align: center;
}

.ctrl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.ctrl-row:last-child {
  margin-bottom: 0;
}

.ctrl-key {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid #666;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  color: #fff;
  min-width: 52px;
  text-align: center;
  white-space: nowrap;
}

.ctrl-desc {
  color: #bbb;
  font-size: 13px;
}

/* Unity版の「0.5秒で+10px、0.5秒で戻る」ボタンバウンス */
@keyframes dialogueBtnBounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
