/* 画像で作る操作ツアー(全サイト共通)。色は、変数を上書きして、サイトの色に合わせる。 */
.tour { --tour-acc: #15803d; --tour-ink: #14231b; --tour-line: #dfe6e1; --tour-tint: #f2faf5; --tour-mark: #ffcf33;
  max-width: 1000px; margin: 0 auto; padding: 0 16px; color: var(--tour-ink); line-height: 1.7; outline: none; box-sizing: border-box; }
.tour *, .tour *::before, .tour *::after { box-sizing: border-box; }
.tour h2 { margin: 0; font-size: 21px; line-height: 1.45; text-align: center; }
.tour-note { margin: 0 0 14px; font-size: 13px; text-align: center; }
.tour-note b { display: inline-block; margin-right: 4px; padding: 1px 10px; border: 1px solid var(--tour-ink); border-radius: 999px; font-size: 12px; }
.tour-head { text-align: center; margin-bottom: 12px; }
.tour-count { margin: 0; font-size: 12px; font-weight: 700; color: var(--tour-acc); }
.tour-text { margin: 6px 0 0; font-size: 14px; white-space: pre-line; }
.tour-stage { position: relative; display: block; width: 100%; max-width: calc(min(72vh, 640px) * var(--ar, 1.6)); margin: 0 auto; padding: 0; border: 1px solid var(--tour-line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.tour-stage picture, .tour-stage img { display: block; width: 100%; height: auto; }
.tour-stage:focus-visible, .tour-btn:focus-visible, .tour-cta:focus-visible, .tour-dots button:focus-visible { outline: 3px solid var(--tour-mark); outline-offset: 2px; }
.tour-spot { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 207, 51, .55); border: 3px solid var(--tour-mark); box-shadow: 0 0 0 0 rgba(255, 207, 51, .7); animation: tour-pulse 1.6s infinite; pointer-events: none; }
@keyframes tour-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 207, 51, .7); } 100% { box-shadow: 0 0 0 18px rgba(255, 207, 51, 0); } }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.tour-btn { min-height: 44px; min-width: 88px; padding: 0 18px; border: 1px solid var(--tour-line); border-radius: 999px; background: #fff; color: var(--tour-ink); font: inherit; font-weight: 700; cursor: pointer; }
.tour-btn.pri { background: var(--tour-acc); border-color: var(--tour-acc); color: #fff; }
.tour-btn:disabled { opacity: .35; cursor: default; }
.tour-dots { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tour-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tour-dots button::before { content: ""; display: block; width: 10px; height: 10px; margin: 0 auto; border-radius: 50%; background: var(--tour-line); }
.tour-dots button.on::before { background: var(--tour-acc); }
.tour-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.tour-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--tour-acc); color: var(--tour-acc); font-weight: 700; text-decoration: none; background: #fff; }
.tour-cta.big { min-height: 52px; padding: 0 40px; font-size: 17px; background: var(--tour-acc); color: #fff; }
.tour-sub { color: var(--tour-ink); font-size: 14px; }
.tour-end { padding: 44px 20px; border: 1px solid var(--tour-line); border-radius: 14px; background: var(--tour-tint); text-align: center; }
.tour-end p { margin: 10px 0 0; font-size: 14px; white-space: pre-line; }
.tour-end .tour-btn { margin-top: 18px; }
@media (max-width: 640px) {
  .tour { padding: 0 12px; }
  .tour h2 { font-size: 18px; }
  .tour-stage { max-width: 420px; margin: 0 auto; }
  .tour-spot { left: var(--sx); top: var(--sy); }
  .tour-btn { min-width: 76px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .tour-spot { animation: none; } }
/* 狭いスマホ(400px 以下): 丸の目印は下の段へ。ボタンは折り返さない・はみ出さない */
.tour-btn { white-space: nowrap; }
@media (max-width: 400px) { .tour-nav { flex-wrap: wrap; } .tour-dots { order: 3; width: 100%; justify-content: center; } }
