/* 共通レイアウト */
body { font-family: system-ui, sans-serif; padding: 24px; max-width: 900px; margin: auto; }
table { border-collapse: collapse; width: 100%; margin-top: 12px; }
th, td { border: 1px solid #ddd; padding: 8px; }
th { background: #f7f7f7; text-align: left; }

.form { margin-top: 24px; padding: 16px; border: 1px solid #ddd; border-radius: 8px; }
.form label { display:block; margin: 8px 0 4px; }
.form input { width: 100%; padding: 8px; }
.form button { margin-top: 12px; padding: 8px 12px; cursor: pointer; }

.topbar { display:flex; justify-content: space-between; align-items:center; }

/* --- user_posts: 成績グリッド（共通CSS） --- */
.char-cell { position: relative; }
.char-cell::after {
  content: attr(data-tip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(8px, -50%);
  background: #333;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s;
  z-index: 10;
}
.char-cell:hover::after { opacity: 1; }


/* ===============================
   固定ヘッダ
================================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;

  background: white;
  border-bottom: 1px solid #e5e5e5;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 0 20px;
  z-index: 1000;
}

/* bodyの上に固定ヘッダ分の余白 */
.content {
  padding-top: 90px;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ページタイトル */
.page-title {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 600;
}

.page-title {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 600;
}

.content {
  padding-top: 90px;  /* 固定ヘッダ分 */
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.nav-links { display:flex; gap: 12px; align-items:center; }
.nav-item { color:#fff; }
.nav-item a { color:#fff; }

/* 固定ヘッダ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;
  z-index: 1000;

  background: #6f8df5;  /* 現在の青 */
  color: white;
}

/* 左側 */
.header-left {
  font-size: 0.95rem;
}

/* 右側 */
.header-right {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

/* リンク色 */
.topbar a {
  color: white;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

/* Logged in as の文字だけ小さく */
.login-as {
  font-size: 0.85rem;  /* 1段小さめ */
  opacity: 0.9;
}

.nav-group {
  display: flex;
  gap: 28px;   /* ← ここを大きくする */
}

.nav-group a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.scenario-select {
  margin-left: 40px;   /* ← 好みで 32〜48px */
}

.frozen-label {
  color: #cc6600;
  font-weight: 600;
}


/* ===============================
   シナリオ別背景色
================================= */

body.scenario-202511_onsen {
  background-color: #fffdfb;   /* 温泉っぽい淡い暖色 */
}

body.scenario-202602_beyond_dream {
  background-color: #fcfdff;   /* 未来系の淡い青 */
}

body.scenario-202511_onsen .topbar {
  background-color: #b3995b;
}

body.scenario-202602_beyond_dream .topbar {
  background-color: #6f8df5;
  color: white;
}

