/* ============================================================
   夏休み 館内グルメ食べ歩きラリー — 本番デザイン
   - スマホ前提（中央 480px 列）
   - PC(≥1100px) ではスマホ列の左右にポスター/バナー装飾を表示
   ============================================================ */
:root {
  --pink: #ff9ec0;
  --pink-strong: #f4589a;
  --pink-pale: #ffe9f2;
  --aqua: #56c8df;
  --aqua-deep: #1d9dbf;
  --aqua-pale: #e2f6fb;
  --red: #ef3f56;
  --red-deep: #d92742;
  --yellow: #ffd21e;
  --cream: #fff9ef;
  --ink: #4a3a3f;
  --muted: #a08b91;
  --line: #f6dde6;
  --ok: #17a05f;
  --shadow: 0 8px 22px rgba(244, 88, 154, 0.16);
  --radius: 18px;
  --font-pop: "Mochiy Pop One", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  /* PCで見えるページ背景（ピンクの布地風） */
  background:
    radial-gradient(rgba(255,255,255,.55) 1.6px, transparent 2px),
    linear-gradient(160deg, #ffd7e6 0%, #ffc3da 45%, #ffd9e2 100%);
  background-size: 22px 22px, auto;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

/* ---------- スマホ枠 ---------- */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  padding-bottom: 88px; /* bottom navの分 */
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 18px 60px rgba(214, 84, 137, 0.35);
}
.app.no-tabbar { padding-bottom: 0; }

/* ============================================================
   PC 専用サイド装飾（SPでは非表示）
   ============================================================ */
.pc-side { display: none; }

@media (min-width: 1100px) {
  .pc-side {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px;
    pointer-events: none; /* 装飾なのでクリックを奪わない */
  }
  .pc-side * { pointer-events: none; }

  /* 左：縦長ポスター */
  .pc-left { left: 0; width: calc(50vw - 240px); }
  .pc-left .poster {
    max-height: 92vh;
    max-width: min(560px, 100%);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(160, 40, 90, 0.35);
    border: 6px solid #fff;
  }

  /* 右：バナースタック */
  .pc-right { right: 0; width: calc(50vw - 240px); }
  .pc-right .stack { width: min(360px, 90%); display: flex; flex-direction: column; gap: 16px; }
  .bnr {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(160, 40, 90, 0.25);
    border: 4px solid #fff;
    position: relative;
    background: #fff;
  }
  .bnr img { width: 100%; height: 96px; object-fit: cover; }
  .bnr.tall img { height: 130px; }
  .bnr .cap {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-family: var(--font-pop);
    color: #fff;
    text-shadow: 0 2px 0 rgba(0,0,0,.25);
    font-size: 20px;
    letter-spacing: .06em;
    background: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.22));
    padding: 8px;
  }
  .bnr.red-band {
    background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--red-deep) 18px 36px);
    height: 84px;
    display: flex; align-items: center; justify-content: center;
  }
  .bnr.red-band .txt {
    font-family: var(--font-pop);
    color: #fff; font-size: 24px; letter-spacing: .08em;
    text-shadow: 0 3px 0 rgba(0,0,0,.25);
    transform: rotate(-2deg);
  }
  .bnr.soon img { filter: grayscale(.35) brightness(.72); }
  .bnr.soon .cap { font-size: 22px; letter-spacing: .18em; }
  .bnr-row { display: flex; gap: 12px; }
  .bnr-row .mini {
    flex: 1; border-radius: 12px; border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(160,40,90,.22);
    font-family: var(--font-pop); text-align: center; font-size: 13px;
    padding: 12px 8px; line-height: 1.5;
  }
  .mini.yellow { background: #fff8d9; color: #8a6d00; }
  .mini.orange { background: linear-gradient(150deg, #ffb35c, #ff8a3d); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.18); }
}

/* ---------- ヘッダー（rally） ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, var(--pink-strong) 0%, var(--red) 100%);
  color: #fff;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(214, 60, 110, .35);
}
.appbar .logo {
  font-family: var(--font-pop);
  font-size: 15px;
  letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px;
}
.appbar .logo img { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #fff; object-fit: cover; }
.appbar .spacer { flex: 1; }
.appbar .sub { font-size: 11px; opacity: .95; font-weight: 700; }

/* ---------- 汎用 ---------- */
.section { padding: 16px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid #ffe1ec;
  padding: 16px;
}
.card + .card { margin-top: 14px; }
h2.title {
  font-size: 17px;
  margin: 4px 0 12px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-pop);
  font-weight: 400;
}
.pill {
  display: inline-block;
  background: var(--yellow);
  color: #7a5c00;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
}
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

/* セクション見出し（スタンプラリー風のセンターリボン） */
.sec-head {
  text-align: center;
  margin: 30px 4px 14px;
}
.sec-head span {
  position: relative;
  display: inline-block;
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: 19px;
  color: var(--aqua-deep);
  background: #fff;
  border: 3px solid var(--aqua);
  border-radius: 999px;
  padding: 7px 26px;
  box-shadow: 0 4px 0 rgba(29, 157, 191, .25);
  transform: rotate(-1.5deg);
}
.sec-head span::before,
.sec-head span::after {
  position: absolute; top: -12px;
  font-size: 15px;
  color: var(--pink-strong);
}
.sec-head span::before { content: "✦"; left: -16px; }
.sec-head span::after { content: "✦"; right: -16px; }
.sec-head.pink span { color: var(--pink-strong); border-color: var(--pink); box-shadow: 0 4px 0 rgba(244, 88, 154, .22); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, filter .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink-strong), var(--red));
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(217, 39, 66, .45), var(--shadow);
}
.btn-red {
  background: linear-gradient(135deg, #ff6b4a, var(--red));
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(217, 39, 66, .45), var(--shadow);
}
.btn-teal { background: var(--aqua); color: #fff; border: 3px solid #fff; box-shadow: 0 5px 0 rgba(29,157,191,.4); }
.btn-ghost { background: #fff; color: var(--pink-strong); border: 2.5px solid var(--pink-strong); }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--line); font-weight: 700; }
.btn:disabled { filter: grayscale(.7) opacity(.55); cursor: not-allowed; box-shadow: none; }
.btn-sm { width: auto; padding: 9px 14px; font-size: 13px; }

/* ============================================================
   LP（Aページ）
   ============================================================ */

/* ヒーロー：水色サンバースト＋KV画像 */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 26px 18px 0;
  overflow: hidden;
  background:
    repeating-conic-gradient(from 8deg at 50% 30%, rgba(255,255,255,.28) 0 7deg, rgba(255,255,255,0) 7deg 16deg),
    linear-gradient(170deg, #8edcee 0%, var(--aqua) 55%, #2fb3d2 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.5) 1.8px, transparent 2.2px);
  background-size: 20px 20px;
  opacity: .35;
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .season {
  display: inline-block;
  font-family: var(--font-pop);
  font-size: 13px;
  letter-spacing: .22em;
  background: #fff;
  color: var(--aqua-deep);
  border-radius: 999px;
  padding: 4px 18px;
  transform: rotate(-2deg);
  box-shadow: 0 3px 0 rgba(0,0,0,.1);
}
.hero .kicker {
  margin: 12px auto 2px;
  font-family: var(--font-pop);
  font-size: 15px;
  letter-spacing: .14em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(29,157,191,.6);
}
.hero h1 {
  font-family: var(--font-pop);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.28;
  margin: 2px 0 4px;
  letter-spacing: .02em;
  color: #fff;
  text-shadow:
    2px 2px 0 var(--pink-strong), -2px 2px 0 var(--pink-strong),
    2px -2px 0 var(--pink-strong), -2px -2px 0 var(--pink-strong),
    0 6px 0 rgba(0,0,0,.12);
}
.hero .period {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--yellow);
  color: #7a5c00;
  padding: 5px 16px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,.12);
}
.hero .kv {
  margin: 16px auto -4px;
  width: min(92%, 400px);
  border-radius: 18px 18px 0 0;
  border: 5px solid #fff;
  border-bottom: none;
  box-shadow: 0 -8px 30px rgba(0,0,0,.12);
}
.hero .lead-cta {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%) rotate(-1deg);
  background: linear-gradient(135deg, var(--pink-strong), var(--red));
  color: #fff;
  font-family: var(--font-pop);
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 3px solid #fff;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(217,39,66,.5), 0 10px 24px rgba(0,0,0,.25);
  white-space: nowrap;
  animation: pyoko 2.2s ease-in-out infinite;
}
@keyframes pyoko {
  0%, 20%, 100% { transform: translateX(-50%) rotate(-1deg) translateY(0); }
  10% { transform: translateX(-50%) rotate(-1deg) translateY(-6px); }
}

/* ヒーロー下のスカラップ（波） */
.scallop {
  height: 18px;
  background: radial-gradient(circle at 9px -3px, transparent 12px, var(--cream) 12.5px);
  background-size: 26px 18px;
  background-repeat: repeat-x;
  margin-top: -1px;
  position: relative;
  z-index: 2;
}
.scallop.to-pink { background: radial-gradient(circle at 9px -3px, transparent 12px, var(--pink-pale) 12.5px) repeat-x; background-size: 26px 18px; }

/* キャッチコピーカード */
.catch-card {
  text-align: center;
  border: 3px dashed var(--pink);
  background: #fff;
}
.catch-card .big {
  font-family: var(--font-pop);
  font-size: 19px;
  color: var(--pink-strong);
  margin: 10px 0 4px;
  line-height: 1.5;
}

/* 参加の流れ（STEPカード） */
.flow { display: flex; flex-direction: column; gap: 12px; }
.flow .step {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 14px;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(160,40,90,.1);
}
.flow .step:nth-child(odd) { background: var(--aqua-pale); }
.flow .step:nth-child(even) { background: var(--pink-pale); }
.flow .no {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-pop);
  line-height: 1.1;
  box-shadow: 0 3px 0 rgba(0,0,0,.08);
}
.flow .step:nth-child(odd) .no { color: var(--aqua-deep); }
.flow .step:nth-child(even) .no { color: var(--pink-strong); }
.flow .no .s { font-size: 9px; letter-spacing: .12em; }
.flow .no .n { font-size: 24px; }
.flow .tx { font-size: 13.5px; line-height: 1.6; }
.flow .tx b { color: var(--red); }
.flow .ic { width: 54px; flex-shrink: 0; }
.flow .ic img { border-radius: 12px; }

/* 特典カード */
.reward-cards { display: flex; gap: 12px; }
.reward-card {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 2.5px solid var(--pink);
  border-radius: 16px;
  padding: 12px 10px 14px;
  position: relative;
  box-shadow: 0 5px 0 rgba(244,88,154,.18);
}
.reward-card .badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--red);
  color: #fff;
  font-family: var(--font-pop);
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 14px;
  border: 2px solid #fff;
  white-space: nowrap;
}
.reward-card img {
  width: 86%;
  margin: 10px auto 6px;
  border-radius: 12px;
}
.reward-card .nm { font-family: var(--font-pop); font-size: 14px; color: var(--pink-strong); }
.reward-card .nt { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ワイド帯イラスト */
.deco-band { margin: 22px 0 0; }
.deco-band img { width: 100%; border-radius: 14px; border: 3px solid #fff; box-shadow: var(--shadow); }

/* ミニ手順 */
.mini-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: ms; }
.mini-steps li { position: relative; padding: 8px 0 8px 32px; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.mini-steps li:last-child { border-bottom: none; }
.mini-steps li::before {
  counter-increment: ms; content: counter(ms);
  position: absolute; left: 0; top: 8px;
  width: 23px; height: 23px;
  background: var(--aqua); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* 対象店舗（写真グリッド） */
.shopgrid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.shopgrid li {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(160,40,90,.08);
}
.shopgrid .ph { position: relative; aspect-ratio: 4/3; background: var(--pink-pale); }
.shopgrid .ph img { width: 100%; height: 100%; object-fit: cover; }
.shopgrid .fl {
  position: absolute; top: 7px; left: 7px;
  font-size: 11px; font-weight: 800;
  color: #fff; background: var(--aqua-deep);
  border-radius: 8px; padding: 2px 8px;
  border: 1.5px solid #fff;
}
.shopgrid .tx { padding: 8px 10px 10px; }
.shopgrid .nm { font-weight: 800; font-size: 12.5px; line-height: 1.4; }
.shopgrid .ge { font-size: 11px; color: var(--muted); }

/* Q&A アコーディオン */
.qa details { border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.qa summary { cursor: pointer; padding: 13px 40px 13px 14px; font-weight: 700; font-size: 14px; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; color: var(--pink-strong); font-family: var(--font-pop); margin-right: 8px; }
.qa summary::after { content: "＋"; position: absolute; right: 14px; top: 12px; color: var(--pink); font-weight: 800; }
.qa details[open] summary::after { content: "−"; }
.qa .ans { padding: 0 14px 14px; font-size: 13.5px; }
.qa .ans::before { content: "A "; color: var(--aqua-deep); font-family: var(--font-pop); }

/* 動作環境 */
.env { display: flex; gap: 10px; margin: 6px 0 12px; }
.env .e { flex: 1; border: 2px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; font-size: 12px; background: #fffcf5; }
.env .e b { display: block; font-size: 15px; color: var(--aqua-deep); margin-bottom: 2px; }

/* 注意事項リスト */
.notes { margin: 0; padding-left: 1.1em; font-size: 13px; }
.notes li { margin-bottom: 7px; }

/* フッター */
.lpfoot {
  text-align: center;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-strong), var(--red));
  padding: 26px 16px 34px;
  margin-top: 30px;
}
.lpfoot img { width: 74px; margin: 0 auto 8px; border-radius: 50%; border: 3px solid #fff; background: #fff; }
.lpfoot .t { font-family: var(--font-pop); font-size: 13px; margin-bottom: 4px; }

/* formrun 埋め込み枠 */
.form-embed {
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.form-embed iframe { width: 100%; border: 0; display: block; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-embed label { font-weight: 700; color: var(--ink); font-size: 13px; }
.form-embed select {
  width: 100%; padding: 11px; margin: 6px 0 14px;
  border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 14px; background: #fffcf5;
}

/* ============================================================
   Bページ（ラリー本体）
   ============================================================ */
.progress-hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  border: none;
  color: #fff;
  background:
    repeating-conic-gradient(from 8deg at 50% 20%, rgba(255,255,255,.22) 0 7deg, rgba(255,255,255,0) 7deg 16deg),
    linear-gradient(170deg, #8edcee 0%, var(--aqua) 60%, #2fb3d2 100%);
}
.progress-hero > * { position: relative; }
.progress-hero .head-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.progress-hero .head-row img {
  width: 58px; height: 58px; object-fit: cover;
  border-radius: 50%; border: 3px solid #fff; background: #fff;
}
.progress-hero .muted { color: #eafcff; font-weight: 700; }
.count-big {
  font-family: var(--font-pop);
  font-size: 58px;
  color: #fff;
  line-height: 1.05;
  text-shadow: 2px 2px 0 var(--pink-strong), -2px 2px 0 var(--pink-strong), 2px -2px 0 var(--pink-strong), -2px -2px 0 var(--pink-strong);
}
.count-big small { font-size: 18px; }

.track { margin: 14px 16px 4px; }
.track-bar { position: relative; height: 14px; background: rgba(255,255,255,.55); border-radius: 999px; border: 2px solid #fff; }
.track-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), #ff8fb5, var(--pink-strong));
  transition: width .4s ease;
}
.track-marks { position: relative; height: 30px; margin-top: 8px; }
.mark { position: absolute; transform: translateX(-50%); text-align: center; font-size: 11px; font-weight: 800; color: #eafcff; white-space: nowrap; }
.mark .dot {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; margin: -22px auto 3px; border: 3px solid var(--aqua-pale);
}
.mark.reached .dot { background: var(--yellow); border-color: #fff; }
.mark.reached { color: #fff; }

/* 特典チップ */
.reward-strip { display: flex; gap: 10px; margin-top: 6px; }
.reward-chip {
  flex: 1; text-align: center;
  border: 2px dashed rgba(255,255,255,.9);
  border-radius: 14px;
  padding: 8px 6px 10px;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: 12.5px; font-weight: 700;
}
.reward-chip img { width: 44px; height: 44px; object-fit: cover; margin: 0 auto 2px; border-radius: 10px; background: #fff; }
.reward-chip .n { font-family: var(--font-pop); font-size: 13px; }
.reward-chip .status { font-size: 11px; opacity: .95; }
.reward-chip.on { background: #fff; color: var(--ink); border-style: solid; border-color: #fff; }
.reward-chip.on .n { color: var(--pink-strong); }
.reward-chip.clickable { cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.reward-chip.clickable .status { color: var(--ok); font-weight: 800; }
.reward-chip.clickable:active { transform: translateY(1px); }

/* 来店するカード */
.visit-card { text-align: center; }
.visit-card .mascot-row { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 12px; }
.visit-card .mascot-row img { width: 76px; flex-shrink: 0; border-radius: 14px; }
.visit-card .mascot-row .say {
  position: relative;
  background: var(--pink-pale);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}
.visit-card .mascot-row .say::before {
  content: "";
  position: absolute; left: -8px; top: 50%;
  border: 6px solid transparent; border-right-color: var(--pink-pale);
  transform: translateY(-50%);
}

/* 小さいテキストリンク風ボタン */
.linkbtn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 12px; text-decoration: underline;
  font-family: var(--font-body);
  padding: 6px 4px;
}
.linkbtn:active { color: var(--pink-strong); }

/* ---------- 来店ログ ---------- */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1.5px dashed var(--line); }
.log li:last-child { border-bottom: none; }
.log .th {
  width: 52px; height: 52px; border-radius: 14px;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--line); background: var(--pink-pale);
}
.log .body { flex: 1; min-width: 0; }
.log .nm { font-weight: 800; font-size: 14px; }
.log .meta { font-size: 12px; color: var(--muted); }
.log .date {
  font-size: 12px; color: var(--pink-strong); font-weight: 800; white-space: nowrap;
  background: var(--pink-pale); border-radius: 999px; padding: 3px 10px;
}
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.empty img { width: 90px; margin: 0 auto 10px; opacity: .95; }

/* 特典タブのカード */
.reward-item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reward-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 14px; border: 2px solid var(--line); background: #fff; }

/* ---------- ボトムナビ ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px;
  background: #fff;
  border-top: 2px solid var(--line);
  border-radius: 18px 18px 0 0;
  display: flex; z-index: 30;
  padding: 6px 8px 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(214, 84, 137, .18);
}
.tabbar button {
  flex: 1; background: none; border: none; padding: 7px 4px; cursor: pointer;
  color: var(--muted); font-size: 11px; font-weight: 700;
  font-family: var(--font-body);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-radius: 14px;
  position: relative;
}
.tabbar button .ti { font-size: 20px; }
.tabbar button.active { color: var(--pink-strong); background: var(--pink-pale); }
.tabbar button .badge2 {
  position: absolute; top: 2px; right: calc(50% - 26px);
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 999px; padding: 0 4px; line-height: 16px;
  border: 1.5px solid #fff;
}

/* ---------- タブ表示切替 ---------- */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- モーダル ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(90, 20, 50, .55); z-index: 50;
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; width: 100%; max-width: 420px; overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head {
  padding: 13px 16px;
  font-family: var(--font-pop);
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-strong), var(--red));
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head .x { background: none; border: none; font-size: 22px; color: #fff; cursor: pointer; line-height: 1; }
.modal-body { padding: 14px 16px 18px; }
.modal-body input[type="text"], .modal-body input:not([type]) , #codeInput {
  font-family: var(--font-body);
}

/* スキャナ */
#scanWrap { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; }
#scanVideo { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,.95); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.25); }
.scan-hint { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* 来店成功 */
.result-icon { font-size: 58px; text-align: center; margin: 2px 0; }
.result-title { text-align: center; font-family: var(--font-pop); font-size: 21px; color: var(--pink-strong); }
.result-store { text-align: center; font-size: 15px; font-weight: 800; margin-top: 2px; }
.result-count {
  text-align: center; margin: 12px auto 0;
  background: var(--aqua-pale); border-radius: 14px; padding: 10px;
}
.result-count .big { font-family: var(--font-pop); font-size: 36px; color: var(--aqua-deep); }

/* 引き換え画面 */
.redeem-ticket {
  background:
    radial-gradient(circle at 0 50%, transparent 10px, var(--pink-strong) 10.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 10px, var(--red) 10.5px) right / 50% 100% no-repeat;
  color: #fff; border-radius: 16px; padding: 20px 18px; text-align: center;
}
.redeem-ticket .rw { font-family: var(--font-pop); font-size: 22px; }
.redeem-ticket .timer { font-size: 32px; font-family: var(--font-pop); letter-spacing: .05em; margin: 8px 0; font-variant-numeric: tabular-nums; }
.redeem-ticket .place { font-size: 13px; opacity: .95; font-weight: 700; }
.warn { background: #fff7e6; border: 2px solid #ffe1a8; border-radius: 12px; padding: 12px; font-size: 12px; color: #7a5b00; }

/* 重要注意オーバーレイ */
.modal.notice { max-width: 440px; }
.notice-head {
  background: linear-gradient(135deg, #ff6b4a, var(--red));
  color: #fff; font-family: var(--font-pop); font-size: 17px; padding: 16px; text-align: center;
}
.notice-lead { font-size: 14px; margin: 4px 0 12px; }
.notice-list { list-style: none; margin: 0 0 14px; padding: 0; }
.notice-list li {
  position: relative; padding: 10px 10px 10px 34px; font-size: 13.5px; line-height: 1.55;
  border: 2px solid var(--line); border-radius: 12px; background: #fffcf5; margin-bottom: 8px;
}
.notice-list li::before {
  content: "！"; position: absolute; left: 9px; top: 10px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.notice-list b { color: var(--red); }
.notice-check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  background: #fff7e6; border: 2px solid #ffe1a8; border-radius: 12px; padding: 12px; margin-bottom: 14px;
  font-size: 13.5px; font-weight: 700;
}
.notice-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--pink-strong); }

/* トースト */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* デモ用バー */
.demo-bar {
  background: #3c2a44; color: #e8d6f2; font-size: 11px; padding: 7px 12px; text-align: center;
  position: relative; z-index: 21;
}
.demo-bar a { color: var(--yellow); font-weight: 700; }
.demo-bar button { background: none; border: 1px solid #7a5f8a; color: #e8d6f2; font-size: 11px; border-radius: 6px; padding: 2px 8px; cursor: pointer; margin-left: 6px; }

/* デモQRページ */
.qr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qr-item { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; box-shadow: var(--shadow); }
.qr-item .qc { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.qr-item .qc img, .qr-item .qc canvas { width: 90%; height: auto; image-rendering: pixelated; }
.qr-item .nm { font-weight: 700; font-size: 13px; margin-top: 6px; }
.qr-item .cd { font-size: 12px; color: var(--muted); }

/* 引き換え 確認ステップ */
.confirm-reward { text-align: center; margin: 4px 0 14px; }
.confirm-reward .cr-name { font-family: var(--font-pop); font-size: 22px; color: var(--pink-strong); margin-bottom: 2px; }
.warn.warn-strong { background: #fff2f3; border-color: #ffc9cf; color: #b3283a; }

/* スライドして引き換え確認（スタッフ操作） */
.slide-confirm {
  position: relative;
  height: 60px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--aqua-pale);
  border: 2px solid #bfe8f2;
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.slide-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  border-radius: 999px;
  pointer-events: none;
}
.slide-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-left: 46px; /* つまみ幅ぶん右に寄せて中央に見せる */
  font-family: var(--font-pop); font-size: 15px; letter-spacing: .02em;
  color: var(--aqua-deep);
  pointer-events: none;
  white-space: nowrap;
}
.slide-thumb {
  position: absolute; top: 4px; left: 4px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(29,157,191,.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--aqua-deep);
  font-size: 30px; font-weight: 900; line-height: 1;
  cursor: grab; touch-action: none; z-index: 2;
}
.slide-thumb:active { cursor: grabbing; }
.slide-arrow { transform: translateY(-2px); }
.slide-confirm:not(.dragging):not(.done) .slide-thumb { animation: slideNudge 1.5s ease-in-out infinite; }
@keyframes slideNudge {
  0%, 70%, 100% { box-shadow: 0 3px 10px rgba(29,157,191,.35); }
  85% { box-shadow: 0 3px 10px rgba(29,157,191,.35), 6px 0 0 -2px rgba(29,157,191,.25); }
}
.slide-confirm.done { border-color: var(--aqua-deep); }
.slide-confirm.done .slide-thumb { color: var(--ok); }

/* 引き換え完了 */
.redeem-done {
  text-align: center; padding: 8px 0 4px;
  animation: pop .2s ease;
}
.redeem-done .rd-check {
  width: 64px; height: 64px; margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  color: #fff; font-size: 36px; font-weight: 900; line-height: 64px;
  box-shadow: 0 6px 18px rgba(29,157,191,.4);
}
.redeem-done .rd-title { font-family: var(--font-pop); font-size: 22px; color: var(--aqua-deep); }
.redeem-done .rd-name { font-weight: 800; margin-top: 2px; color: var(--ink); }

/* ============================================================
   オブジェ発見ラリー（ARデモ / objet-rally.html）
   ============================================================ */

/* ヒーローのリード文（白文字） */
.objet-hero-lead {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.7;
  margin: 10px auto 22px;
  text-shadow: 0 2px 0 rgba(29, 157, 191, .5);
}
.objet-hero-lead b { color: var(--yellow); }
.objet-start .objet-note { font-size: 11.5px; line-height: 1.6; }

/* スタンプ帳グリッド */
.objet-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.objet-cell {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(160, 40, 90, .08);
}
.objet-cell .ph {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--aqua-pale);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.objet-cell .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.objet-cell .tx { padding: 8px 10px 10px; }
.objet-cell .nm { font-weight: 800; font-size: 12.5px; line-height: 1.4; }
.objet-cell .ge { font-size: 11px; }

/* 取得済み */
.objet-cell.done { border-color: var(--aqua); }
.objet-cell.done .chk {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ok); color: #fff; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.objet-cell.done .save { color: var(--aqua-deep); font-weight: 800; }

/* 未取得（有効／さがす対象） */
.objet-cell.active { border-color: var(--pink); border-style: dashed; }
.objet-cell.active .ph.ghost img { filter: grayscale(.15) brightness(.9); opacity: .8; }
.objet-cell.active .find {
  position: absolute; inset: auto 0 8px 0; margin: 0 auto;
  width: max-content;
  font-family: var(--font-pop); font-size: 12px;
  color: #fff; background: var(--pink-strong);
  padding: 4px 12px; border-radius: 999px; border: 2px solid #fff;
  box-shadow: 0 3px 0 rgba(217, 39, 66, .4);
}

/* 準備中（ロック） */
.objet-cell.locked { border-style: dashed; opacity: .85; }
.objet-cell.locked .ph {
  background: repeating-linear-gradient(-45deg, #f3eef1 0 10px, #eae2e7 10px 20px);
}
.objet-cell.locked .lock {
  font-family: var(--font-pop); font-size: 13px; color: var(--muted);
  background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px;
}

/* コンプリート */
.objet-clear { text-align: center; border-color: var(--aqua); margin-top: 14px; }
.objet-clear-emoji { font-size: 46px; }
.objet-clear-title { font-family: var(--font-pop); font-size: 22px; color: var(--aqua-deep); margin: 2px 0 4px; }

/* ============================================================
   AR 全画面ビュー
   ============================================================ */
body.ar-open { overflow: hidden; background: #000; }
/* AR起動中はイントロ列（.app）を隠して、カメラを全画面に見せる */
body.ar-open .app { display: none !important; }

.objet-arview { display: none; }
.objet-arview.open { display: block; position: fixed; inset: 0; z-index: 1; }

/* MindAR が挿入する video / a-scene の canvas を全画面に
   （video は body 直下に挿入されることがあるため body.ar-open からも拾う） */
.objet-arview .a-canvas,
.objet-arview a-scene,
body.ar-open video {
  position: fixed !important;
  top: 0; left: 0;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
}
body.ar-open video { z-index: 0 !important; }      /* カメラ映像は最背面 */
.objet-arview .a-canvas { z-index: 2 !important; }  /* 3Dキャンバス（透過）はその上 */

/* A-Frame 既定のUI（VR/AR/回転許可ボタン等）は隠す */
.a-enter-vr, .a-enter-ar, .a-orientation-modal { display: none !important; }

/* 重ねるUI（最前面・fixed）。ARビューが display:none のときは一緒に隠れる */
.ar-ui {
  position: fixed; inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  display: flex; flex-direction: column;
  color: #fff;
  padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  font-family: var(--font-body);
}
.ar-ui > * { pointer-events: none; }
.ar-ui button { pointer-events: auto; }

.ar-top { display: flex; align-items: center; gap: 10px; }
.ar-title {
  flex: 1; text-align: center;
  font-family: var(--font-pop); font-size: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.ar-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; border: 2px solid rgba(255,255,255,.85);
  font-size: 18px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.ar-center {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
}
.ar-reticle {
  position: relative;
  width: min(64vw, 300px);
  aspect-ratio: 1 / 1;
}
/* コーナー枠 */
.ar-reticle::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 22px;
  background:
    linear-gradient(#fff,#fff) left top / 26px 4px no-repeat,
    linear-gradient(#fff,#fff) left top / 4px 26px no-repeat,
    linear-gradient(#fff,#fff) right top / 26px 4px no-repeat,
    linear-gradient(#fff,#fff) right top / 4px 26px no-repeat,
    linear-gradient(#fff,#fff) left bottom / 26px 4px no-repeat,
    linear-gradient(#fff,#fff) left bottom / 4px 26px no-repeat,
    linear-gradient(#fff,#fff) right bottom / 26px 4px no-repeat,
    linear-gradient(#fff,#fff) right bottom / 4px 26px no-repeat;
  opacity: .9;
}
.ar-reticle-ico {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; opacity: .5;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.ar-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ar-ring-bg { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 5; }
.ar-ring-fg {
  fill: none; stroke: var(--yellow); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 276.46; stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 0ms linear;
}
.ar-hint {
  max-width: 320px; text-align: center;
  font-size: 13.5px; font-weight: 700; line-height: 1.6;
  background: rgba(0,0,0,.5); border-radius: 14px; padding: 10px 14px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.ar-bottom { text-align: center; }
.ar-progress {
  display: inline-block;
  font-family: var(--font-pop); font-size: 15px;
  background: rgba(0,0,0,.5); border-radius: 999px; padding: 8px 20px;
  border: 2px solid rgba(255,255,255,.5);
}

/* 状態ごとの見せ方 */
.objet-arview[data-state="recognizing"] .ar-reticle-ico { opacity: .9; }
.objet-arview[data-state="recognizing"] .ar-hint { background: rgba(29,157,191,.75); }
.objet-arview[data-state="captured"] .ar-ring-fg { stroke: var(--ok); stroke-dashoffset: 0; }
.objet-arview[data-state="captured"] .ar-reticle-ico { opacity: 0; }
.objet-arview[data-state="captured"] .ar-hint { background: rgba(23,160,95,.85); }

/* シャッターフラッシュ */
.ar-flash {
  position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none;
}
.ar-flash.go { animation: arflash .5s ease; }
@keyframes arflash {
  0% { opacity: 0; }
  12% { opacity: .95; }
  100% { opacity: 0; }
}

/* ============================================================
   ヘルプ（お手本画角）
   ============================================================ */
.help-figure { margin: 0 0 14px; text-align: center; }
.help-phone {
  position: relative;
  width: min(72%, 240px);
  margin: 0 auto 8px;
  border: 5px solid #2b2b2e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.2);
  background: #000;
}
.help-phone img { width: 100%; display: block; }
.help-ok {
  position: absolute; top: 8px; right: 8px;
  background: var(--ok); color: #fff; font-weight: 800; font-size: 12px;
  padding: 3px 10px; border-radius: 999px; border: 2px solid #fff;
}
.help-figure figcaption { font-size: 12.5px; color: var(--muted); }
.help-figure figcaption b { color: var(--ink); }

.help-tips { margin: 0 0 12px; padding-left: 1.15em; font-size: 13.5px; line-height: 1.5; }
.help-tips li { margin-bottom: 7px; }
.help-tips b { color: var(--red); }

.help-bad { display: flex; gap: 8px; }
.help-bad-item {
  flex: 1; text-align: center; font-size: 11px; color: var(--muted);
  background: #fff2f3; border: 2px solid #ffc9cf; border-radius: 12px; padding: 10px 4px;
  line-height: 1.4;
}
.help-bad-item span { display: block; font-size: 22px; margin-bottom: 2px; filter: grayscale(.2); }

/* ============================================================
   キャラフォトラリー（QR→AR撮影デモ / photo-rally.html）
   ============================================================ */
/* スタンプ帳: キャラのゴースト表示は cover だと見切れるので contain */
.objet-cell .ph.photo-ghost { background: #fff6e6; }
.objet-cell .ph.photo-ghost img { object-fit: contain; padding: 8px; }
/* 取得済みセルのサムネイルはタップで写真ビューアを開ける */
.objet-cell.done .ph.view { cursor: pointer; }
.objet-cell.done .ph.view:active img { opacity: .8; }

/* ---- スプラッシュ（QRを読んだ直後の「発見」画面） ---- */
body.splash-open { overflow: hidden; }
.photo-splash {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(rgba(255,255,255,.35) 1.6px, transparent 2px),
    linear-gradient(165deg, #8edcee 0%, var(--aqua) 55%, #2fb3d2 100%);
  background-size: 22px 22px, auto;
  overflow-y: auto;
}
.photo-splash.open { display: flex; align-items: center; justify-content: center; }
.photo-splash-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 40px 24px;
  max-width: 420px;
}
.photo-splash-badge {
  font-family: var(--font-pop); font-size: 15px; color: #fff;
  background: var(--spot-color, var(--red));
  border: 3px solid #fff; border-radius: 999px; padding: 6px 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  animation: splash-pop .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
.photo-splash-chara {
  width: min(58vw, 260px);
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.22));
  animation: chara-bob 2.6s ease-in-out infinite;
}
.photo-splash-name {
  font-family: var(--font-pop); font-size: 24px; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
  line-height: 1.4;
}
.photo-splash-msg {
  font-size: 14px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.22); border-radius: 12px; padding: 8px 16px;
}
.photo-splash-place { font-size: 13px; font-weight: 700; color: #eafbff; margin-bottom: 8px; }
.photo-splash .btn { min-width: 260px; }
.photo-splash .linkbtn { color: #eafbff; }
@keyframes splash-pop {
  0% { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes chara-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* ---- カメラビュー（全画面） ---- */
body.cam-open { overflow: hidden; background: #000; }
body.cam-open .app { display: none !important; }

.photo-camview { display: none; }
.photo-camview.open { display: block; position: fixed; inset: 0; z-index: 5; background: #000; }

.photo-stage { --u: min(100vw, 100vh); position: absolute; inset: 0; overflow: hidden; }
.photo-stage video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 撮影に写り込む白フレーム（canvas 合成の drawFrame と同じ比率） */
.photo-stage::after {
  content: "";
  position: absolute; inset: calc(var(--u) * 0.025);
  border: calc(var(--u) * 0.018) solid rgba(255,255,255,.95);
  border-radius: calc(var(--u) * 0.045);
  pointer-events: none;
}
.photo-frame-label {
  position: absolute;
  left: calc(var(--u) * 0.06); top: calc(var(--u) * 0.055);
  font-weight: 800; font-size: calc(var(--u) * 0.034);
  color: var(--red);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: calc(var(--u) * 0.012) calc(var(--u) * 0.028);
  line-height: 1.4;
}
.photo-chara {
  position: absolute;
  right: 2%; bottom: 12%;
  width: 60%; /* 生成PNGは透明余白が大きいため広めに（js/photo-stamp.js の LAYOUT と対応） */
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
  animation: chara-bob 2.6s ease-in-out infinite;
}
/* キャラ名はピルの下（下部はシャッターUIと重なるため上に集約。canvas 合成も同配置） */
.photo-spot-label {
  position: absolute;
  left: calc(var(--u) * 0.06); top: calc(var(--u) * 0.145);
  font-family: var(--font-pop); font-size: calc(var(--u) * 0.05);
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55);
  line-height: 1.3;
}

/* 操作UI（撮影には写らない・最前面） */
.photo-ui {
  position: fixed; inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  display: flex; flex-direction: column;
  color: #fff;
  padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  font-family: var(--font-body);
}
.photo-ui > * { pointer-events: none; }
.photo-ui button { pointer-events: auto; }
.photo-ui-spacer { flex: 1; }
.photo-hint {
  align-self: center;
  max-width: 320px; text-align: center;
  font-size: 13.5px; font-weight: 700; line-height: 1.6;
  background: rgba(0,0,0,.5); border-radius: 14px; padding: 8px 14px;
  margin-bottom: 14px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.photo-shutter-row { text-align: center; padding-bottom: 8px; }
.photo-shutter {
  width: 76px; height: 76px; border-radius: 50%;
  background: #fff; border: 4px solid #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.4), 0 6px 18px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .08s ease;
}
.photo-shutter:active { transform: scale(.9); }

/* ---- プレビュー（撮影直後の確認・シェア） ---- */
.photo-preview {
  display: none;
  position: fixed; inset: 0; z-index: 2147483200;
  background: rgba(20, 8, 14, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  overflow-y: auto;
}
.photo-preview.open { display: flex; align-items: center; justify-content: center; }
.photo-preview-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 20px;
}
.photo-preview-badge {
  font-family: var(--font-pop); font-size: 20px; color: var(--yellow);
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  animation: splash-pop .45s cubic-bezier(.2, 1.6, .4, 1) both;
}
.photo-preview img {
  max-width: min(86vw, 420px); max-height: 58vh;
  border-radius: 14px; border: 4px solid #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  object-fit: contain;
}
.photo-preview-btns {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 4px;
}
.photo-preview-btns .btn { min-width: 240px; }
.photo-preview .linkbtn { color: #ffd9e6; }

/* ============================================================
   キャラパネル見本（demo-panel.html）
   ============================================================ */
.panel-card {
  position: relative;
  background: #fff;
  border: 3px solid var(--spot-color, var(--pink-strong));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 16px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.panel-bubble {
  display: inline-block;
  font-family: var(--font-pop); font-size: 15px; color: #fff;
  background: var(--spot-color, var(--pink-strong));
  border-radius: 16px; padding: 8px 20px;
  line-height: 1.5;
  position: relative;
}
.panel-bubble::after {
  content: "";
  position: absolute; left: 50%; bottom: -9px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: var(--spot-color, var(--pink-strong));
  border-bottom: none;
}
.panel-chara { width: min(56%, 230px); margin: 14px auto 4px; }
.panel-name { font-family: var(--font-pop); font-size: 19px; color: var(--ink); }
.panel-place { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.panel-qr {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border-top: 2px dashed var(--line);
  padding-top: 14px;
}
.panel-qr img { width: 180px; height: 180px; image-rendering: pixelated; }
.panel-qr-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
