/* 案内（？の丸いボタン・スポットライト・吹き出し・はじめてのようこそ）2026-11-06 持ち主の依頼
   ★中身は static/js/tour.js。お客様の画面（client.html）だけで読む。
   ★部品名は tour- で始める（本番の CSS とかぶらないように）。
   ★重なり: オープニング演出(#opening)が 10000。案内はその下・アプリの画面（シート・トースト）より上。 */

/* ── ？の丸いボタン（灰色の薄いガラス・3Dの塊にしない）── */
.tour-fab {
  position: fixed; z-index: 9620; right: 12px; top: 58%;
  width: 46px; height: 46px; border-radius: 50%; padding: 0; margin: 0;
  display: grid; place-items: center;
  font: 700 21px/1 Inter, "Zen Kaku Gothic New", system-ui, sans-serif; color: rgba(54, 60, 72, .82);
  background: linear-gradient(160deg, rgba(250, 251, 253, .62), rgba(214, 219, 228, .42));
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(120, 128, 142, .16),
              0 4px 14px rgba(24, 32, 48, .14), 0 1px 3px rgba(24, 32, 48, .10);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tour-fab[hidden] { display: none; }
.tour-fab:hover { color: rgba(30, 36, 48, .92); }
.tour-fab:active { transform: scale(.94); }
.tour-fab.is-drag { cursor: grabbing; transition: none; transform: scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 10px 26px rgba(24, 32, 48, .22); }
.tour-fab:focus-visible { outline: 2px solid rgba(var(--brand-rgb, 27, 59, 111), .55); outline-offset: 3px; }
/* 案内の状態のとき（もう一度押すと消える）＝藍を薄く差す */
.tour-fab[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(160deg, rgba(var(--brand-rgb, 27, 59, 111), .78), rgba(var(--brand-rgb, 27, 59, 111), .62));
  border-color: rgba(255, 255, 255, .55);
}

/* ── 暗くする幕（光らせる部品だけ穴を開ける）──
   ★幕は押せない（pointer-events: none）＝案内の状態のままタブを押して切り替えられる */
.tour-dim {
  position: fixed; inset: 0; z-index: 9600; pointer-events: none;
  /* ★持ち主 11-06「指定のタブだけ光るようにして、他のところは全部グレーで薄ぼけるというか見えにくく」 */
  background: rgba(46, 52, 64, .62);
  -webkit-backdrop-filter: grayscale(1) blur(2.5px) brightness(.88); backdrop-filter: grayscale(1) blur(2.5px) brightness(.88);
}
.tour-dim[hidden], .tour-ring[hidden], .tour-pop[hidden] { display: none; }
.tour-ring {
  position: fixed; z-index: 9601; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 6px rgba(var(--brand-rgb, 27, 59, 111), .22);
  transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease;
}

/* ── 吹き出し ── */
.tour-pop {
  position: fixed; z-index: 9630; left: 12px; top: 12px;   /* ？より上（重なったときに文字を隠さない） */
  width: 340px; max-width: calc(100vw - 24px); box-sizing: border-box;
  background: #fff; color: var(--ink, #1d2128); border-radius: 16px; padding: 16px 18px 14px;
  border: 1px solid rgba(20, 28, 44, .08);
  box-shadow: 0 18px 44px rgba(16, 24, 40, .22), 0 2px 8px rgba(16, 24, 40, .10);
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  transition: left .22s ease, top .22s ease, opacity .18s ease;
}
.tour-pop.is-center { width: 380px; }
.tour-pop-x {
  position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted, #6b7280); font-size: 18px; line-height: 1; cursor: pointer;
}
.tour-pop-x:hover { background: rgba(0, 0, 0, .05); }
.tour-pop-t { margin: 0 34px 6px 0; font-size: 15.5px; font-weight: 700; line-height: 1.55; letter-spacing: .01em; }
.tour-pop-b { margin: 0; font-size: 14px; line-height: 1.85; }
.tour-pop-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted, #6b7280); }
.tour-pop-f { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-pop-n { font: 600 12.5px/1 Inter, system-ui, sans-serif; color: var(--muted, #6b7280); margin-right: auto; white-space: nowrap; }
.tour-btn {
  appearance: none; border-radius: 999px; padding: 9px 16px; min-height: 38px; font: 700 13.5px/1 "Zen Kaku Gothic New", system-ui, sans-serif;
  cursor: pointer; white-space: nowrap; border: 1px solid rgba(var(--brand-rgb, 27, 59, 111), .28); background: #fff; color: var(--brand, #1B3B6F);
}
.tour-btn.pri { background: var(--brand, #1B3B6F); color: #fff; border-color: transparent; }
.tour-btn:focus-visible { outline: 2px solid rgba(var(--brand-rgb, 27, 59, 111), .5); outline-offset: 2px; }
.tour-btn.link { border: 0; background: transparent; padding: 9px 6px; color: var(--muted, #6b7280); font-weight: 600; }

/* ようこその一覧（つなぐ物と今の様子） */
.tour-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.tour-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--brand-rgb, 27, 59, 111), .045);
  font-size: 13.5px; line-height: 1.5; }
.tour-list li b { font-weight: 700; margin-right: auto; }
.tour-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: rgba(0, 0, 0, .06); color: var(--muted, #6b7280); }
.tour-pill.ok { background: rgba(47, 125, 85, .14); color: #2f7d55; }

@media (max-width: 600px) {
  .tour-fab { width: 44px; height: 44px; font-size: 20px; }
  .tour-pop, .tour-pop.is-center { width: calc(100vw - 24px); padding: 15px 16px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-ring, .tour-pop, .tour-fab { transition: none !important; }
}
