@charset "utf-8";
:root {
  --ar-ink: #091a35;
  --ar-ink-2: #050f21;
  --ar-gold: #e9d07a;
  --ar-gold-2: #c9ab45;
  --ar-on-gold: #24304a;
  --ar-text: #f1e9d2;
  --ar-muted: #cfd8e6;
  --ar-glass: rgba(9, 26, 53, .62);
  --ar-line: rgba(233, 208, 122, .45);
}
html { -webkit-text-size-adjust: 100%; height: 100%; }
body.ar {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--ar-text);
  background: var(--ar-ink-2);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}
.ar-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(233, 208, 122, .10), transparent 60%),
    linear-gradient(180deg, #13284a 0%, #0a1b36 100%);
}
.ar-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 0;
  transition: opacity .3s ease;
}
.ar-video.is-on { opacity: 1; }
.ar-video.is-mirror { transform: scaleX(-1); }
.ar-stage.is-sample {
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(255, 248, 230, .16), transparent 70%),
    linear-gradient(180deg, #e9e3d6 0%, #d8d0c0 62%, #b9ae99 62.2%, #a99d87 100%);
}
.ar-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ar-tvlayer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ar-tvframe {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  border: 0;
  border-radius: 6px;
  background: #000;
  transform-origin: 0 0;
  pointer-events: none;
}
.ar-tvframe.is-tap {
  pointer-events: auto;
  animation: arTvTap 1.1s ease-in-out infinite alternate;
}
@keyframes arTvTap {
  from { box-shadow: 0 0 0 3px rgba(233, 208, 122, .95), 0 0 16px 6px rgba(233, 208, 122, .5); }
  to { box-shadow: 0 0 0 3px rgba(255, 240, 190, 1), 0 0 34px 14px rgba(233, 208, 122, .85); }
}
.ar-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.ar-top {
  position: fixed;
  z-index: 11;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
  background: linear-gradient(180deg, rgba(5, 15, 33, .66), rgba(5, 15, 33, 0));
  pointer-events: none;
}
.ar-top > * { pointer-events: auto; }
.ar-top, .ar-top *, .ar-bottom, .ar-bottom * { touch-action: none; }
.ar-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--ar-glass);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ar-back img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; }
.ar-back, .ar-share { flex-shrink: 0; white-space: nowrap; }
.ar-back { display: block; max-width: 34vw; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 42px; }
@media (max-width: 479px) { html:not([lang="ja"]) .ar-back { max-width: 44px; padding-inline: 6px; } html:not([lang="ja"]) .ar-back img { margin-inline-end: 0; } }
.ar-back img { display: inline-block; vertical-align: middle; margin-inline-end: 7px; }
.ar-title { flex: 1 1 auto; }
.ar-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 auto 0 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--ar-gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  white-space: nowrap;
}
.ar-share {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--ar-glass);
  border: 1px solid rgba(233, 208, 122, .55);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ar-share svg { width: 20px; height: 20px; color: var(--ar-gold); }
.ar-share:active { transform: scale(.96); }
.ar-share__tip {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(9, 26, 53, .92);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.ar-share__tip.is-on { opacity: 1; transform: none; }
@media (max-width: 340px) {
  .ar-top { gap: 6px; padding-inline-start: 10px; padding-inline-end: 10px; }
  .ar-share { padding: 0 11px 0 9px; }
}
.ar-hint {
  position: fixed;
  z-index: 5;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 66px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(92vw, 440px);
  box-sizing: border-box;
  margin: 0;
  padding: 9px 16px;
  border-radius: 14px;
  background: var(--ar-glass);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .35s ease;
  pointer-events: none;
}
.ar-hint:empty { opacity: 0; }
.ar-hint__sub { display: inline-block; }
.ar-bottom {
  position: fixed;
  z-index: 5;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 16px calc(env(safe-area-inset-right, 0px) + 12px) calc(env(safe-area-inset-bottom, 0px) + 18px) calc(env(safe-area-inset-left, 0px) + 12px);
  background: linear-gradient(0deg, rgba(5, 15, 33, .72), rgba(5, 15, 33, 0));
  pointer-events: none;
}
.ar-bottom > * { pointer-events: auto; }
.ar-side {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 64px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  touch-action: manipulation;
}
.ar-side__ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ar-glass);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ar-side__ic svg { width: 24px; height: 24px; }
.ar-side:active .ar-side__ic { transform: scale(.94); }
.ar-side[disabled] { opacity: .4; cursor: default; }
.ar-side__tx { text-shadow: 0 1px 4px rgba(0, 0, 0, .6); white-space: nowrap; }
.ar-place {
  justify-self: start;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ar-place .ar-side { gap: 3px; min-width: 76px; }
.ar-place .ar-side__ic { position: relative; width: 46px; height: 46px; }
.ar-place .ar-side__ic svg { width: 26px; height: 26px; }
.ar-place .ar-side__tx { font-size: 13.5px; line-height: 1.22; text-align: center; }
.ar-place .ar-side.is-on .ar-side__ic {
  background: var(--ar-gold);
  border-color: var(--ar-gold);
  color: var(--ar-on-gold);
  box-shadow: 0 0 0 3px rgba(233, 208, 122, .3), 0 4px 12px rgba(0, 0, 0, .4);
}
.ar-place .ar-side.is-on .ar-side__tx { color: var(--ar-gold); }
@media (max-height: 560px) {
  .ar-place { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 6px; justify-items: center; }
  .ar-place .ar-side { min-width: 0; }
  .ar-place .ar-side__ic { width: 40px; height: 40px; }
  .ar-place .ar-side__ic svg { width: 23px; height: 23px; }
  .ar-place .ar-side__tx br { display: none; }
  .ar-place .ar-side__tx { font-size: 13.5px; }
}
.ar-shutter {
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 50%;
  border: 4px solid var(--ar-gold);
  background: radial-gradient(circle, #fff 0 58%, rgba(255, 255, 255, .0) 59%);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
  cursor: pointer;
  touch-action: manipulation;
}
.ar-shutter:active { transform: scale(.93); }
.ar-shutter[disabled] { opacity: .45; cursor: default; }
.ar-flash {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.ar-flash.is-on { animation: arFlash .45s ease-out; }
@keyframes arFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
.ar-intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow-y: auto;
  background: rgba(5, 15, 33, .78);
}
.ar-intro[hidden] { display: none; }
.ar-card {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #13284a 0%, #0b1c38 100%);
  border: 1px solid var(--ar-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.ar-card__kicker {
  margin: 0;
  color: var(--ar-gold);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: .24em;
}
.ar-card__title {
  margin: 6px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
}
.ar-card__lead {
  margin: 12px 0 0;
  color: var(--ar-muted);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.85;
}
.ar-card__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.ar-card__list li {
  position: relative;
  padding-inline-start: 18px;
  color: var(--ar-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.7;
}
.ar-card__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ar-gold);
}
.ar-card__note {
  margin: 12px 0 0;
  color: #b9c6db;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.75;
}
.ar-card__note:empty { display: none; }
.ar-card__note a { color: var(--ar-gold); }
.ar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  padding: 12px 18px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #f2dc8e 0%, #d9b64f 100%);
  color: var(--ar-on-gold);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  cursor: pointer;
  touch-action: manipulation;
}
.ar-btn[hidden] { display: none; }
.ar-btn:active { transform: scale(.98); }
.ar-btn[disabled] { opacity: .6; cursor: default; }
.ar-btn--quiet {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  box-shadow: none;
}
.ar-shot {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 66px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  box-sizing: border-box;
  background: rgba(5, 15, 33, .94);
}
.ar-shot[hidden] { display: none; }
.ar-shot__img {
  flex: 1;
  min-height: 0;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
}
.ar-shot__row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}
.ar-shot__row .ar-btn { margin-top: 0; }
.ar-shot__note {
  margin: 0;
  max-width: 420px;
  color: #b9c6db;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}
body.ar[data-ar="kids"] {
  --ar-ink: #13294a;
  --ar-ink-2: #0e2240;
  --ar-gold: #f7e600;
  --ar-gold-2: #e0c400;
  --ar-on-gold: #13294a;
  --ar-glass: rgba(19, 41, 74, .66);
  --ar-line: rgba(247, 230, 0, .6);
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}
body.ar[data-ar="kids"] ruby { ruby-align: center; }
body.ar[data-ar="kids"] ruby rt { font-size: .5em; font-weight: 700; }
body.ar[data-ar="kids"] rt[data-rt]::before { content: attr(data-rt); }
body.ar[data-ar="kids"] .ar-card { background: linear-gradient(180deg, #1b5d87 0%, #13294a 100%); border: 3px solid var(--ar-gold); }
body.ar[data-ar="kids"] .ar-card__title { line-height: 1.7; }
body.ar[data-ar="kids"] .ar-card__lead,
body.ar[data-ar="kids"] .ar-card__list li { line-height: 1.95; }
@media (max-height: 640px) {
  body.ar[data-ar="kids"] .ar-card { padding: 16px 18px 18px; }
  body.ar[data-ar="kids"] .ar-card__title { font-size: 21px; line-height: 1.55; }
  body.ar[data-ar="kids"] .ar-card__lead { margin-top: 6px; }
  body.ar[data-ar="kids"] .ar-card__list { margin-top: 8px; gap: 2px; }
  body.ar[data-ar="kids"] .ar-card__lead,
  body.ar[data-ar="kids"] .ar-card__list li { line-height: 1.8; }
}
body.ar[data-ar="kids"] .ar-hint { line-height: 1.95; }
body.ar[data-ar="kids"] .ar-side__tx { line-height: 1.5; }
body.ar[data-ar="kids"] .ar-side,
body.ar[data-ar="kids"] .ar-place .ar-side__tx { font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) {
  .ar-flash.is-on { animation: none; }
  .ar-tvframe.is-tap { animation: none; box-shadow: 0 0 0 3px rgba(233, 208, 122, .95), 0 0 24px 10px rgba(233, 208, 122, .7); }
  .ar-video { transition: none; }
}
html:lang(zh-CN) body.ar { font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
html:lang(ko) body.ar { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; word-break: keep-all; }
