:root {
  --red: #ff193d;
  --white: #ffffff;
  --dark: #16050b;
  --display: "Arial Black", "Helvetica Neue", Futura, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--white);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding: 2rem 1rem 4.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-eyebrow {
  font-weight: 700;
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  letter-spacing: 0.04em;
  animation: rise 0.7s ease-out both;
}

.wordmark {
  width: min(88vw, 860px);
  animation: rise 0.7s 0.12s ease-out both;
}

.wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-meta { animation: rise 0.7s 0.24s ease-out both; }

.hero-date {
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: 0.01em;
}

.hero-venue {
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  margin-top: 0.4rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  translate: -50% 0;
  color: var(--white);
  animation: bob 1.8s ease-in-out infinite;
}

/* ---------- download strip ---------- */

.dl-strip {
  background: var(--white);
  color: var(--dark);
  border-bottom: 3px solid var(--red);
}

.dl-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.dl-copy h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.dl-copy h1 .jp {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.45em;
  letter-spacing: 0.12em;
  color: var(--dark);
  margin-top: 0.35rem;
}

.dl-copy p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #6b5a5e;
}

.btn-dl {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  padding: 1rem 2rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 25, 61, 0.35); }

.btn-main {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.btn-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* ---------- grid ---------- */

.grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(0.6rem, 1.5vw, 1.2rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
}

@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.ph {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #f4eceb;
}

.ph img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.ph:hover img, .ph:focus-visible img { transform: scale(1.035); }

/* ---------- footer ---------- */

.foot {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(0.6rem, 1.5vw, 1.2rem);
}

.foot-mark {
  display: block;
  width: min(64vw, 300px);
  height: auto;
}

.foot-line { font-weight: 600; font-size: 0.95rem; opacity: 0.95; }

.btn-dl-invert { background: var(--white); color: var(--red); margin-top: 0.6rem; }
.btn-dl-invert:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

.foot-credit {
  margin-top: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.foot-credit a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- lightbox ---------- */

#lb {
  border: none;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: var(--dark);
  color: var(--white);
  padding: 0;
}

#lb::backdrop { background: var(--dark); }

#lb .lb-img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100vw;
  max-height: calc(100dvh - 7rem);
  width: auto;
  height: auto;
}

.lb-counter {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1rem;
  z-index: 2;
}

.lb-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.lb-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 2;
  background: rgba(255, 25, 61, 0.85);
  color: var(--white);
  border: none;
  border-radius: 999px;
  width: 3rem;
  height: 3rem;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lb-nav:hover { background: var(--red); }
.lb-prev { left: 0.9rem; }
.lb-next { right: 0.9rem; }

.lb-dl {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
}

.lb-dl .jp { font-family: var(--body); font-weight: 600; font-size: 0.75em; margin-left: 0.5em; text-transform: none; }

/* Narrow screens: photos are landscape, so move prev/next off the image
   into a bottom control row (swipe still works on the image itself). */
@media (max-width: 700px) {
  #lb .lb-img { max-height: calc(100dvh - 9rem); }
  .lb-nav { top: auto; translate: none; bottom: 1.1rem; }
  .lb-prev { left: 1.1rem; }
  .lb-next { right: 1.1rem; }
  .lb-dl { bottom: 1.45rem; white-space: nowrap; }
  .lb-dl .jp { display: none; }
}

/* ---------- a11y & motion ---------- */

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

.dl-strip a:focus-visible, .grid a:focus-visible {
  outline-color: var(--red);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
