/* World Quest AR help v1 — 右上の「?」ボタンと、使い方・よくある質問のポップアップ。 */
.wq-ar-guide { position:fixed; inset:0; z-index:10000; isolation:isolate; touch-action:pan-y; pointer-events:auto; }
.wq-ar-guide[hidden] { display:none !important; }
.wq-ar-guide__ring { position:absolute; pointer-events:none; border:2px solid #f4d58b; box-sizing:border-box; box-shadow:0 0 0 200vmax rgba(7,19,33,.58); }
.wq-ar-guide--no-spotlight { background:rgba(7,19,33,.58); }
.wq-ar-guide--no-spotlight .wq-ar-guide__ring { display:none; }
.wq-ar-guide__card { position:absolute; box-sizing:border-box; display:flex; flex-direction:column; background:#f5ecd9 url('/v/20261121-0647-c059aee3-test/assets/ui/background-travel-postmarks-v01.png') center / cover no-repeat; background-blend-mode:multiply; color:#1c2b43; padding:14px 16px; border-radius:16px; font-family:system-ui,sans-serif; font-size:13px; font-weight:400; line-height:1.5; letter-spacing:normal; box-shadow:0 8px 28px #0003; }
.wq-ar-guide__card:focus { outline:none; }
.wq-ar-guide__card::before { content:''; position:absolute; left:var(--guide-arrow,50%); top:-7px; width:14px; height:14px; background:#f5ecd9; transform:translateX(-50%) rotate(45deg); }
.wq-ar-guide__card--above::before { top:auto; bottom:-7px; }
.wq-ar-guide__card--no-arrow::before { display:none; }
.wq-ar-guide__meta,.wq-ar-guide__actions { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:none; }
.wq-ar-guide__meta { font-size:11px; color:#74613e; }
.wq-ar-guide__card button { font:inherit; cursor:pointer; touch-action:manipulation; border:0; background:transparent; color:inherit; min-height:44px; padding:8px; }
.wq-ar-guide__card button:focus-visible { outline:2px solid #192b43; outline-offset:3px; }
.wq-ar-guide__copy { overflow:auto; min-height:0; overscroll-behavior:contain; touch-action:pan-y; }
.wq-ar-guide__card h2 { margin:0 0 7px; font-size:18px; line-height:1.5; color:#1c2b43; }
.wq-ar-guide__card p { margin:0; font-size:13px; line-height:1.8; }
.wq-ar-guide__photo { margin-top:12px; padding-top:12px; border-top:1px solid #d7c8a6; }
.wq-ar-guide__photo strong { display:block; font-size:14px; margin-bottom:4px; }
.wq-ar-guide__example { display:flex; align-items:center; gap:12px; margin-top:10px; }
.wq-ar-guide__example figure { flex:none; width:90px; margin:0; }
.wq-ar-guide__example img { display:block; width:90px; height:160px; object-fit:contain; border-radius:4px; }
.wq-ar-guide__example figcaption { margin-top:3px; text-align:center; font-size:10px; color:#60543d; }
.wq-ar-guide__actions { margin-top:10px; font-size:12px; }
.wq-ar-guide__actions [data-guide-action=next] { border-radius:999px; background:var(--wq-button-fill,#FACF01); color:#12203a; padding:10px 20px; font-size:13px; font-weight:700; }
.wq-ar-help__guide-start { width:100%; min-height:44px; margin:0 0 16px; border:1px solid #a68b46; border-radius:10px; padding:12px; background:#192b43; color:#fff5df; font:inherit; cursor:pointer; }
.wq-ar-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(242, 230, 207, .3);
  border-radius: 999px;
  color: var(--wq-cream, #f2e6cf);
  background: rgba(12, 21, 38, .78);
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.wq-ar-help-button svg { display: block; }
.wq-ar-help-button:focus-visible { outline: 3px solid #ffd84f; outline-offset: 3px; }
/* ar-ui-improvements の右上アクション枠が無いページでは、自分で第3列の右端に立つ。 */
.wq-ar-help-button--standalone { grid-column: 3; justify-self: end; }

/* アプリ本体のホーム画面（紺のヘッダー）では、隣の「ピース n/6」と同じ金色の枠に合わせる。 */
.wq-ar-help-button--app {
  width: 38px;
  height: 38px;
  border-color: rgba(201, 162, 39, .55);
  color: var(--wq-gold-soft, #e8cd85);
  background: rgba(201, 162, 39, .15);
}

.wq-ar-help-button--app lc-icon { display: inline-flex; line-height: 0; }

@media (max-width: 375px) {
  .wq-ar-help-button { width: 40px; height: 40px; }
  .wq-ar-help-button--app { width: 36px; height: 36px; }
}

html.wq-ar-help-open,
body.wq-ar-help-open { overflow: hidden !important; }

.wq-ar-help {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #22304a;
  font-family: 'Noto Sans JP', 'Yu Gothic', Meiryo, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wq-ar-help[hidden] { display: none !important; }

.wq-ar-help,
.wq-ar-help * { box-sizing: border-box; }

.wq-ar-help__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(12, 21, 38, .18), rgba(12, 21, 38, .78));
  cursor: default;
}

.wq-ar-help__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .34);
  text-align: left;
  animation: wq-ar-help-rise .3s ease-out;
}

.wq-ar-help__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 16px 14px 12px 22px;
  border-bottom: 1px solid rgba(22, 39, 63, .1);
}

.wq-ar-help__header h2 {
  flex: 1;
  margin: 0;
  color: #16273f;
  font: 800 17.5px/1.4 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'BIZ UDPGothic', 'Yu Gothic', system-ui, sans-serif;
}

.wq-ar-help__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #35445c;
  background: rgba(22, 39, 63, .08);
  cursor: pointer;
  touch-action: manipulation;
}

.wq-ar-help__close:focus-visible,
.wq-ar-help summary:focus-visible { outline: 3px solid #16273f; outline-offset: 2px; }

.wq-ar-help__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px 22px calc(env(safe-area-inset-bottom, 0px) + 24px);
}

.wq-ar-help__body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 9px;
  color: #16273f;
  font: 800 14.5px/1.4 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'BIZ UDPGothic', 'Yu Gothic', system-ui, sans-serif;
}

.wq-ar-help__body h3::before {
  content: '';
  flex: none;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #c9a227;
}

.wq-ar-help__body p,
.wq-ar-help__body li {
  color: #4d5a70;
  font-size: 13px;
  line-height: 1.75;
}

.wq-ar-help__body p { margin: 0 0 8px; }
.wq-ar-help__body ul,
.wq-ar-help__body ol { margin: 0 0 8px; padding-left: 1.35em; }
.wq-ar-help__body li { margin: 3px 0; }
.wq-ar-help__body li::marker { color: #8a6d17; font-weight: 700; }
.wq-ar-help__body strong { color: #22304a; font-weight: 800; }

.wq-ar-help__env {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f1e9;
}

.wq-ar-help__env dt,
.wq-ar-help__env dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.wq-ar-help__env dt {
  color: #16273f;
  font-weight: 800;
  white-space: nowrap;
}

.wq-ar-help__env dd { color: #22304a; }

.wq-ar-help__note {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #596579;
  background: #f5f1e9;
  font-size: 11.5px;
  line-height: 1.65;
}

.wq-ar-help__faq {
  margin: 8px 0 0;
  border: 1px solid rgba(22, 39, 63, .12);
  border-radius: 12px;
  background: #fffaf0;
}

.wq-ar-help__faq summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  color: #1c2b45;
  font: 800 13.5px/1.5 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'BIZ UDPGothic', 'Yu Gothic', system-ui, sans-serif;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.wq-ar-help__faq summary::-webkit-details-marker { display: none; }

.wq-ar-help__faq summary > span:first-child {
  flex: none;
  min-width: 34px;
  margin-top: 1px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #8a6d17;
  background: rgba(201, 162, 39, .18);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.wq-ar-help__faq summary > span:nth-child(2) { flex: 1; }

.wq-ar-help__faq summary > svg {
  flex: none;
  margin-top: 2px;
  color: #8a6d17;
  transition: transform .2s ease;
}

.wq-ar-help__faq[open] summary > svg { transform: rotate(180deg); }

.wq-ar-help__faq > div {
  padding: 0 14px 14px 14px;
  border-top: 1px dashed rgba(22, 39, 63, .12);
}

.wq-ar-help__faq > div > :first-child { margin-top: 10px; }

.wq-ar-help__steps {
  margin: 4px 0 8px;
  padding: 10px 12px 10px 30px;
  border-radius: 10px;
  background: #f5f1e9;
}

.wq-ar-help__steps li { margin: 2px 0; }

.wq-ar-help__label {
  display: block;
  margin: 8px 0 2px;
  color: #16273f;
  font-size: 12.5px;
  font-weight: 800;
}

.wq-ar-help__tags {
  display: inline-block;
  margin: 2px 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #12203a;
  background: rgba(250, 207, 1, .28);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@keyframes wq-ar-help-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 600px) {
  .wq-ar-help { align-items: center; padding: 22px; }
  .wq-ar-help__sheet { width: min(460px, 100%); border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .wq-ar-help__sheet { animation: none; }
  .wq-ar-help__faq summary > svg { transition: none; }
}
