:root {
  --bg: #eef5fb;
  --text: #22303c;
  --accent: #6ba4d4;
  --accent-dark: #2f6fa8;
  --sub: #4b7a9c;
  --card: #ffffff;
  --line: #d6e2ed;
  --muted: #627386;
  --gold: #c49830;
  --ok: #3a8a5c;
  --soft: #e4eff8;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

/* ==== トップバー（サブページ用） ==== */
.topbar {
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.topbar a.home {
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
}
.topbar .page-title {
  font-size: 16px;
  font-weight: 800;
}

/* ==== 表紙（indexのみ） ==== */
.cover {
  position: relative;
  background:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg stroke='white' stroke-opacity='0.38' stroke-width='1.4' fill='none' stroke-dasharray='6,5'%3E%3Cpath d='M-10 50 Q120 -10 250 60'/%3E%3Cpath d='M-10 160 Q110 120 250 170'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='0.55'%3E%3Ccircle cx='-10' cy='50' r='3'/%3E%3Ccircle cx='250' cy='60' r='3'/%3E%3Ccircle cx='-10' cy='160' r='3'/%3E%3Ccircle cx='250' cy='170' r='3'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='0.5' transform='translate(110 25) rotate(20)'%3E%3Cpath d='M0 4 L14 0 L14 3 L5 5 L12 11 L9 12 L3 7 L0 8 Z'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='0.5' transform='translate(115 135) rotate(10)'%3E%3Cpath d='M0 4 L14 0 L14 3 L5 5 L12 11 L9 12 L3 7 L0 8 Z'/%3E%3C/g%3E%3C/svg%3E") repeat,
    linear-gradient(135deg, #6ba4d4 0%, #a8cce8 100%);
  color: white;
  padding: 28px 20px 24px;
  text-align: center;
  border-bottom: 6px solid var(--accent-dark);
}
.cover .pre { font-size: 13px; letter-spacing: 3px; opacity: 0.9; }
.cover h1 {
  margin: 6px 0 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}
.cover .date {
  font-size: 15px;
  background: rgba(255,255,255,0.18);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 6px;
}
.cover .hotel {
  margin-top: 10px;
  font-size: 14px;
}

/* ==== セクション共通 ==== */
section {
  padding: 20px 16px 10px;
  max-width: 720px;
  margin: 0 auto;
}
h2 {
  font-size: 20px;
  border-left: 5px solid var(--accent);
  padding-left: 10px;
  margin: 0 0 14px;
}
h3 {
  font-size: 16px;
  margin: 18px 0 8px;
  color: var(--accent-dark);
}

/* ==== カード ==== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.highlight {
  background: #fffbe8;
  border: 2px solid var(--gold);
}
.warn {
  background: #fff0f0;
  border: 2px solid #d85a3a;
}

/* ==== 予約ID ==== */
.reserve-id {
  display: inline-block;
  font-family: "SF Mono", "Consolas", monospace;
  background: var(--gold);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ==== メンバーチップ ==== */
.members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.member {
  background: var(--soft);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ==== メンバー写真 ==== */
.member-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mp {
  margin: 0;
  text-align: center;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mp img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--soft);
  display: block;
  transition: transform 0.15s;
}
.mp:active img {
  transform: scale(0.94);
}
.mp figcaption {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}
.phrase-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  background: #fff;
  border: 4px solid var(--accent);
  padding: 18px 26px;
  border-radius: 22px;
  font-size: 22px;
  font-weight: 900;
  color: var(--accent-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.6, 0.4, 1);
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  white-space: nowrap;
  max-width: 92vw;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phrase-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 隠しどくろトリガー（見た目は普通のテキスト） */
.stx {
  cursor: inherit;
}
.win-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3) rotate(-15deg);
  width: 240px;
  height: 240px;
  border: 14px solid #e5413a;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.4s cubic-bezier(0.3, 1.8, 0.4, 1);
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  user-select: none;
}
.win-popup .win-text {
  font-size: 46px;
  font-weight: 900;
  color: #e5413a;
  white-space: nowrap;
  text-shadow: 2px 2px 0 rgba(229,65,58,0.15);
}
.win-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-3deg);
}

/* TOPのヒント */
.hint-quiet {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--accent-dark);
  text-align: center;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* 夜食担当ルーレット */
.roulette-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47,111,168,0.35);
  margin: 8px 0;
}
.roulette-btn:active {
  transform: translateY(1px);
}
.roulette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.roulette-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.roulette-panel {
  background: white;
  border-radius: 20px;
  padding: 24px 18px;
  width: 88%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.roulette-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.roulette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.roulette-grid .mp2 {
  position: relative;
  text-align: center;
  opacity: 0.35;
  transition: opacity 0.15s, transform 0.15s;
}
.roulette-grid .mp2 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--line);
  display: block;
  background: var(--soft);
}
.roulette-grid .mp2 .nm {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.roulette-grid .mp2.active {
  opacity: 1;
  transform: scale(1.08);
}
.roulette-grid .mp2.active img {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(107,164,212,0.35);
}
.roulette-grid .mp2.winner {
  opacity: 1;
  transform: scale(1.1);
}
.roulette-grid .mp2.winner img {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(196,152,48,0.45);
}
.roulette-grid .mp2.winner .nm {
  color: var(--accent-dark);
  font-size: 13px;
}
.roulette-result {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-dark);
  min-height: 24px;
  margin-bottom: 10px;
}
.roulette-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.roulette-actions button {
  padding: 9px 18px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.roulette-actions .again {
  background: var(--accent);
  color: white;
}
.roulette-actions .close {
  background: var(--line);
  color: var(--text);
}

/* ==== ナビゲーショングリッド（indexのみ） ==== */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 540px) {
  .nav-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.nav-tile {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  transition: transform 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}
.nav-tile:active {
  transform: scale(0.97);
}
.nav-tile .label {
  font-size: 15px;
  margin-bottom: 4px;
}
.nav-tile .sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.nav-tile.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent-dark);
}
.nav-tile.primary .sub {
  color: rgba(255,255,255,0.85);
}

/* ==== タイムライン ==== */
.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 3px dashed #b7cee0;
}
.tl-item {
  position: relative;
  padding-bottom: 18px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--accent);
}
.tl-time {
  font-weight: 800;
  color: var(--accent);
  font-size: 15px;
}
.tl-title {
  font-weight: 700;
  font-size: 16px;
  margin: 2px 0 4px;
}
.tl-desc {
  font-size: 14px;
  color: var(--muted);
}

/* ==== ボタン ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin: 6px 6px 6px 0;
  border: none;
  cursor: pointer;
}
.btn-map { background: var(--sub); color: white; }
.btn-nav { background: #1a73e8; color: white; }
.btn-video { background: #ff3b30; color: white; }
.btn-reserve { background: var(--ok); color: white; }

/* ==== 地図埋め込み ==== */
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 10px;
  margin-top: 8px;
}

/* ==== ゲームカード ==== */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 540px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
}
.game-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.game-card.featured {
  border: 2px solid var(--gold);
  background: #fffbe8;
}
.game-no {
  display: inline-block;
  background: var(--accent);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-weight: 800;
  font-size: 13px;
  margin-right: 6px;
}
.game-name {
  font-weight: 800;
  font-size: 16px;
}
.game-rule {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 10px;
  line-height: 1.6;
}
.badge {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 700;
}
.badge-night { background: var(--sub); }

/* ==== テーブル ==== */
table.menu {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}
table.menu th, table.menu td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.menu th {
  background: var(--soft);
  width: 110px;
  color: var(--accent-dark);
}

/* ==== 注釈 ==== */
.note {
  background: #eef6fb;
  border-left: 4px solid var(--sub);
  padding: 10px 12px;
  font-size: 13px;
  color: #244f6c;
  border-radius: 4px;
  margin: 10px 0;
}
.tip {
  background: var(--soft);
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 4px;
  margin: 10px 0;
}
.warn-box {
  background: #fff0f0;
  border-left: 4px solid #d85a3a;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 4px;
  margin: 10px 0;
  color: #8a2b1a;
}

/* ==== フッター ==== */
footer {
  text-align: center;
  padding: 28px 16px 40px;
  color: var(--muted);
  font-size: 12px;
}
.bottom-home {
  display: block;
  text-align: center;
  margin: 20px auto;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 700;
  max-width: 240px;
  font-size: 14px;
}
