:root {
  --bg: #0b0907;
  --bg-2: #14100c;
  --ink: #f3ece0;
  --ink-dim: #b9ae9c;
  --ink-mute: #7d7364;
  --gold: #f2b230;
  --gold-hi: #ffd36b;
  --red: #e0262b;
  --line: rgba(243, 236, 224, .14);
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--gothic);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp { display: none; }
@media (max-width: 600px) { .sp { display: inline; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- brand ---------- */
.brand, .footer-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand-sub { font-family: var(--display); letter-spacing: .32em; font-size: 11px; color: var(--ink); padding-left: .32em; }
.brand-logo { font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; font-weight: 900; font-size: 30px; letter-spacing: -.02em; color: #fff; }
.brand-logo em {
  font-style: normal; display: inline-block; color: #fff; background: var(--red);
  border-radius: 50%; width: .78em; height: .78em; line-height: .74em; text-align: center;
  font-size: .9em; margin: 0 .02em; transform: translateY(-.02em);
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-slides, .hero-slide, .hero-shade, .hero-grain { position: absolute; inset: 0; }
.hero-slides { z-index: -3; }
.hero-slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12);
  transition: opacity 2.4s ease;
  filter: saturate(1.05) contrast(1.05);
}
.hero-slide.is-on { opacity: 1; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero-shade {
  z-index: -2;
  background:
    radial-gradient(120% 80% at 70% 30%, transparent 0%, rgba(11, 9, 7, .35) 55%, rgba(11, 9, 7, .85) 100%),
    linear-gradient(180deg, rgba(11, 9, 7, .55) 0%, rgba(11, 9, 7, .05) 30%, rgba(11, 9, 7, .55) 65%, var(--bg) 100%);
}
.hero-grain {
  z-index: -1; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .brand { position: absolute; top: calc(env(safe-area-inset-top) + 22px); left: var(--gutter); }
.hero-vertical {
  position: absolute; top: 18vh; right: var(--gutter); margin: 0;
  writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 700;
  font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .5em; color: rgba(243, 236, 224, .85);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.hero-body { width: 100%; padding: 0 var(--gutter) clamp(84px, 14vh, 140px); }
.hero-kicker {
  margin: 0 0 6px; font-family: var(--display); font-size: clamp(14px, 1.5vw, 18px); letter-spacing: .3em; color: var(--gold);
}
.hero-title { margin: 0; display: flex; align-items: flex-end; gap: clamp(8px, 1.5vw, 20px); line-height: .8; font-weight: 400; }
.hero-num {
  font-family: var(--display); font-size: clamp(150px, 30vw, 380px); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 2px var(--gold);
  background: linear-gradient(180deg, rgba(255, 211, 107, .95) 0%, rgba(242, 178, 48, .55) 55%, rgba(242, 178, 48, 0) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 8px 40px rgba(242, 178, 48, .25));
}
.hero-words { display: flex; flex-direction: column; padding-bottom: clamp(8px, 2.2vw, 30px); }
.hero-ord { font-family: var(--display); font-size: clamp(32px, 5vw, 64px); color: var(--gold); line-height: 1; }
.hero-name { font-family: var(--display); font-size: clamp(44px, 8.4vw, 120px); line-height: .9; letter-spacing: .01em; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero-name b { font-weight: 400; color: var(--gold-hi); }
.hero-lead { margin: 22px 0 0; font-family: var(--mincho); font-weight: 700; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .14em; }
.hero-cta {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 18px; text-decoration: none;
  padding: 14px 22px 14px 26px; border: 1px solid rgba(242, 178, 48, .6); border-radius: 999px;
  background: rgba(11, 9, 7, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--display); letter-spacing: .2em; font-size: 17px; transition: background .3s, color .3s;
}
.hero-cta:hover { background: var(--gold); color: #1a1206; }
.hero-count { font-size: 14px; letter-spacing: .12em; opacity: .75; }
.hero-count span { font-size: 17px; }
.reveal:nth-child(2) { transition-delay: .15s; }
.reveal:nth-child(3) { transition-delay: .35s; }
.reveal:nth-child(4) { transition-delay: .55s; }

.scroll-cue { position: absolute; right: var(--gutter); bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--display); font-size: 11px; letter-spacing: .3em; color: var(--ink-dim); }
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 600px) {
  .hero-vertical { top: 96px; letter-spacing: .38em; }
  .hero-title { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-words { flex-direction: row; align-items: baseline; gap: 10px; padding: 0; }
  .scroll-cue { display: none; }
}

/* ---------- message ---------- */
.message { position: relative; padding: clamp(80px, 14vw, 160px) var(--gutter); text-align: center; }
.message::before {
  content: "21"; position: absolute; inset: 0; display: grid; place-items: center; z-index: -1;
  font-family: var(--display); font-size: clamp(260px, 50vw, 620px); line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(242, 178, 48, .09); pointer-events: none;
}
.message-inner { max-width: 760px; margin: 0 auto; }
.message-en, .sec-en { margin: 0; font-family: var(--display); letter-spacing: .3em; color: var(--gold); font-size: 15px; }
.message-title { margin: 14px 0 34px; font-family: var(--mincho); font-weight: 800; font-size: clamp(24px, 3.6vw, 40px); line-height: 1.6; letter-spacing: .08em; }
.message-text { margin: 0; font-family: var(--mincho); font-weight: 500; font-size: clamp(14.5px, 1.5vw, 17px); line-height: 2.3; color: var(--ink-dim); letter-spacing: .06em; }
.message-sign { margin: 34px 0 0; font-family: var(--display); letter-spacing: .3em; color: var(--ink-mute); }
@media (max-width: 600px) { .message-text br { display: none; } .message-text { text-align: left; } }

/* ---------- gallery ---------- */
.gallery-wrap { padding: 0 var(--gutter) 120px; max-width: 1680px; margin: 0 auto; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.sec-title { margin: 6px 0 0; font-family: var(--mincho); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .1em; line-height: 1.3; }
.gallery-howto { margin: 14px 0 28px; color: var(--ink-mute); font-size: 13.5px; }
.gallery-howto svg { vertical-align: -2px; color: var(--gold); }

.grid { display: flex; gap: 12px; align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; }
@media (max-width: 600px) { .grid { gap: 8px; } }

.card {
  position: relative; break-inside: avoid; margin: 0 0 12px; border-radius: 4px; overflow: hidden;
  background: var(--bg-2); cursor: zoom-in;
  opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 600px) { .card { margin-bottom: 8px; } }
.card.is-in { opacity: 1; transform: none; }
.card img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s; filter: saturate(.92); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card-no { position: absolute; left: 12px; bottom: 9px; z-index: 1; font-family: var(--display); font-size: 15px; letter-spacing: .14em; color: #fff; opacity: 0; transform: translateY(6px); transition: .4s; pointer-events: none; }
.card-dl {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11, 9, 7, .62); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; text-decoration: none; font-size: 19px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .25s, color .25s, transform .25s;
}
.card-dl:hover { background: var(--gold); color: #1a1206; transform: scale(1.06); }
@media (hover: hover) {
  .card:hover img { transform: scale(1.04); filter: saturate(1.08); }
  .card:hover::after { opacity: 1; }
  .card:hover .card-no { opacity: 1; transform: none; }
}
.card-check {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .3); display: none; place-items: center;
  color: #1a1206; font-size: 18px;
}
.card-check svg { stroke-width: 3; opacity: 0; }
body.is-selecting .card { cursor: pointer; }
body.is-selecting .card-check { display: grid; }
body.is-selecting .card-dl { display: none; }
.card.is-selected img { transform: scale(.92); border-radius: 4px; }
.card.is-selected { outline: 2px solid var(--gold); outline-offset: -2px; }
.card.is-selected .card-check { background: var(--gold); border-color: var(--gold); }
.card.is-selected .card-check svg { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none;
  font-weight: 700; font-size: 14.5px; letter-spacing: .06em; transition: background .25s, color .25s, border-color .25s, opacity .25s;
  white-space: nowrap;
}
.btn svg { font-size: 18px; }
.btn-gold { background: var(--gold); color: #1a1206; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold[disabled] { opacity: .35; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: rgba(242, 178, 48, .55); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
body.is-selecting #selectToggle { background: var(--gold); color: #1a1206; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- select bar ---------- */
.selbar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  width: min(680px, calc(100% - 24px)); transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
  background: rgba(20, 16, 12, .92); border: 1px solid rgba(242, 178, 48, .35); border-radius: 18px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); overflow: hidden;
}
body.is-selecting .selbar { transform: translate(-50%, 0); }
.selbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; flex-wrap: wrap; }
.selbar-count { margin: 0; font-size: 14px; color: var(--ink-dim); }
.selbar-count b { font-family: var(--display); font-size: 26px; color: var(--gold); font-weight: 400; margin-right: 2px; vertical-align: -3px; }
.selbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.selbar-progress { height: 3px; background: transparent; }
.selbar-progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
@media (max-width: 480px) {
  .selbar-inner { gap: 6px; padding: 8px 10px 10px; }
  .selbar-count { width: 100%; text-align: center; font-size: 12.5px; line-height: 1.4; }
  .selbar-count b { font-size: 20px; }
  .selbar-actions { width: 100%; flex-wrap: nowrap; gap: 6px; }
  .selbar-actions .btn { flex: 1; padding: 9px 6px; font-size: 12.5px; }
  .selbar-actions .btn-gold { flex: 2.2; }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(6, 5, 4, .97); display: grid; grid-template-rows: auto 1fr auto auto; opacity: 0; transition: opacity .3s; }
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 6px; }
.lb-index { margin: 0; font-family: var(--display); letter-spacing: .16em; color: var(--ink-dim); font-size: 16px; }
.lb-index b { color: var(--gold); font-weight: 400; font-size: 22px; }
.lb-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; font-size: 20px; cursor: pointer; }
.lb-close:hover { border-color: var(--gold); color: var(--gold); }
.lb-stage { position: relative; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0 clamp(8px, 7vw, 100px); touch-action: pan-y; }
.lb-stage img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: calc(100% - 2 * clamp(8px, 7vw, 100px)); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transition: opacity .35s; user-select: none; -webkit-user-drag: none; }
.lb-stage img.is-loading { opacity: .25; }
.lb-spin { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(242, 178, 48, .2); border-top-color: var(--gold); animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; pointer-events: none; }
.lb-spin.is-on { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11, 9, 7, .5); display: grid; place-items: center; font-size: 22px; cursor: pointer; transition: border-color .2s, color .2s; }
.lb-nav:hover { border-color: var(--gold); color: var(--gold); }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 700px) { .lb-nav { display: none; } }
.lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter) 8px; flex-wrap: wrap; }
.lb-meta { margin: 0; color: var(--ink-mute); font-size: 13px; letter-spacing: .04em; }
.lb-ios { display: none; margin: 0; padding: 0 var(--gutter) calc(14px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--ink-mute); }
.is-ios .lb-ios { display: block; }
@media (max-width: 600px) { .lb-bottom { flex-direction: column-reverse; gap: 8px; } .lb-bottom .btn { width: 100%; padding: 15px; font-size: 15.5px; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #000); }
.footer-inner { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) calc(110px + env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.footer-logo .brand-logo { font-size: 40px; }
.footer-info { font-style: normal; color: var(--ink-dim); font-size: 13.5px; line-height: 2; }
.footer-info a { color: var(--gold); text-decoration: none; }
.footer-note { margin: 10px 0 0; color: var(--ink-mute); font-size: 12px; line-height: 2; }
.copy { margin: 0; font-family: var(--display); letter-spacing: .18em; color: var(--ink-mute); font-size: 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(18px + env(safe-area-inset-top)); z-index: 200; transform: translate(-50%, -150%);
  background: var(--gold); color: #1a1206; font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .4s cubic-bezier(.2, .7, .2, 1); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-on { animation: none; transform: none; }
  .reveal, .card { transition: none; opacity: 1; transform: none; }
}

/* ---------- logo / instagram ---------- */
.brand img { width: clamp(110px, 11vw, 150px); height: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .55)); }
.footer-logo img { width: 230px; height: auto; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.message-ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink-dim); text-decoration: none; font-family: var(--display); letter-spacing: .14em; font-size: 16px; transition: color .25s; }
.message-ig svg { font-size: 20px; color: var(--gold); }
.message-ig:hover { color: var(--gold-hi); }
