/* ============================================================
   JAGA — design system
   Signature: kuji ticket (perforation, notches) + prize-tier chips
   Palette: Kuji Red / Ink / Mist / Gold
   ============================================================ */

@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --red: #E8112D;
  --red-dark: #B70D22;
  --ink: #17171B;
  --ink-soft: #4A4A52;
  --mist: #F4F4F2;
  --line: #E3E3DE;
  --gold: #C9A227;
  --white: #FFFFFF;
  --display: "Archivo Black", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Malgun Gothic", sans-serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Noto Sans CJK SC", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1160px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body { font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.tape { height: 6px; background: repeating-linear-gradient(90deg, var(--red) 0 42px, var(--ink) 42px 48px); }
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 26px; min-height: 66px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; }
.logo b { font-family: var(--display); font-size: 26px; letter-spacing: .5px; color: var(--red); font-weight: 400; }
.logo span { font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--ink); }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.langs { display: flex; gap: 2px; align-items: center; font-family: var(--mono); font-size: 12.5px; }
.langs a { text-decoration: none; padding: 4px 7px; border-radius: 6px; color: var(--ink-soft); }
.langs a:hover { background: var(--mist); color: var(--ink); }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 999px; background: var(--red); color: #fff; border: 2px solid var(--red); transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--red); border-color: #fff; }
.btn.light:hover { background: var(--mist); border-color: var(--mist); }
.btn.sm { padding: 9px 18px; font-size: 14px; }
.menu-btn { display: none; }

/* ---------- hero ticket ---------- */
.hero { background: var(--mist); position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero::after {
  content: "賞"; position: absolute; right: -60px; bottom: -120px;
  font-family: var(--display); font-size: 460px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(232,17,45,.12); pointer-events: none;
}
.ticket {
  position: relative; z-index: 1; background: var(--white);
  border: 2px solid var(--ink); border-radius: var(--radius);
  display: grid; grid-template-columns: 118px 1fr;
  box-shadow: 8px 8px 0 rgba(23,23,27,.12);
  animation: rise .5s ease both;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.stub {
  border-right: 2px dashed var(--ink); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 20px 10px;
}
.stub .chip { transform: rotate(-8deg); }
.stub .serial { writing-mode: vertical-rl; font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; color: var(--ink-soft); }
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 104px; width: 28px; height: 28px;
  background: var(--mist); border: 2px solid var(--ink); border-radius: 50%; z-index: 2;
}
.ticket::before { top: -16px; }
.ticket::after { bottom: -16px; }
.ticket-body { padding: 46px 52px 50px; }
.tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: .22em; color: var(--red); font-weight: 600; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12; margin: 14px 0 18px; letter-spacing: .2px; }
.hero .sub { font-size: 17.5px; color: var(--ink-soft); max-width: 760px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* prize-tier chip */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--red); color: #fff;
  font-family: var(--display); font-size: 20px; border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(23,23,27,.18);
}
.chip.gold { background: var(--gold); }

/* ---------- stats band ---------- */
.stats { background: var(--ink); color: #fff; }
.stats .row { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-left: 1px dashed rgba(255,255,255,.28); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--mono); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); color: var(--red); letter-spacing: .02em; }
.stats .stat b { color: #FF5A6E; }
.stat span { font-size: 13px; color: rgba(255,255,255,.75); letter-spacing: .04em; }

/* ---------- sections ---------- */
section.block { padding: 78px 0; }
section.block.alt { background: var(--mist); }
.eyebrow { font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: .24em; color: var(--red); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.16; margin: 10px 0 12px; }
.lede { color: var(--ink-soft); max-width: 720px; font-size: 17px; }
.head { margin-bottom: 38px; }

/* tier cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 28px 28px 30px; position: relative;
  box-shadow: 5px 5px 0 rgba(23,23,27,.10);
}
.alt .card { box-shadow: 5px 5px 0 rgba(23,23,27,.08); }
.card .chip { position: absolute; top: -16px; left: 22px; transform: rotate(-7deg); }
.card h3 { font-size: 19px; font-weight: 700; margin: 10px 0 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* brand wall */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.slot {
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  aspect-ratio: 2/1; display: flex; align-items: center; justify-content: center; padding: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.slot img { max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .82; transition: filter .15s ease, opacity .15s ease; }
.slot:hover { border-color: var(--ink); transform: translateY(-2px); }
.slot:hover img { filter: none; opacity: 1; }

/* IP grids */
.ips { columns: 4 210px; column-gap: 16px; }
.ip { display: block; break-inside: avoid; margin-bottom: 16px; text-decoration: none; }
.ip figure { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 4px 4px 0 rgba(23,23,27,.10); transition: transform .15s ease; }
.ip:hover figure { transform: translateY(-3px); }
.ip img { width: 100%; height: auto; display: block; }
.ip figcaption { padding: 9px 10px 11px; border-top: 2px solid var(--ink); }
.ip .n { display: block; font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.ip .c { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

/* featured brand cards (brands page) */
.brands-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bcard { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 5px 5px 0 rgba(23,23,27,.10); }
.bcard .num { font-family: var(--mono); font-weight: 600; color: var(--red); font-size: 13px; letter-spacing: .14em; }
.bcard h3 { font-size: 20px; margin: 6px 0 4px; }
.bcard .cjk { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.bcard p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lines i { font-style: normal; font-family: var(--mono); font-size: 12px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 11px; background: var(--mist); }
.lines-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; margin-top: 16px; text-transform: uppercase; }

/* categories band */
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cats span { font-weight: 700; font-size: 14.5px; border: 2px solid var(--ink); border-radius: 999px; padding: 9px 18px; background: #fff; box-shadow: 3px 3px 0 rgba(23,23,27,.10); }

/* bishoujo strip */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tri img { border: 2px solid var(--ink); border-radius: 10px; aspect-ratio: 3/2; object-fit: cover; box-shadow: 4px 4px 0 rgba(23,23,27,.10); }

/* who cards / steps */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who .card .chip { position: static; transform: rotate(-7deg); margin-bottom: 6px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.step { position: relative; padding-top: 18px; }
.step::before { content: ""; position: absolute; top: 26px; left: 54px; right: -14px; border-top: 2px dashed var(--ink); opacity: .35; }
.step:last-child::before { display: none; }
.step b.n { counter-increment: s; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-family: var(--mono); font-weight: 600; font-size: 18px; box-shadow: 3px 3px 0 rgba(23,23,27,.12); position: relative; z-index: 1; }
.step b.n::after { content: counter(s, decimal-leading-zero); }
.step h3 { font-size: 17px; margin: 14px 0 6px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* terms */
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin-top: 26px; }
.terms li { list-style: none; padding-left: 30px; position: relative; color: var(--ink-soft); font-size: 15.5px; }
.terms li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700; }

/* FAQ */
.faq details { border: 2px solid var(--ink); border-radius: 12px; background: #fff; margin-bottom: 14px; box-shadow: 4px 4px 0 rgba(23,23,27,.08); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 16.5px; padding: 18px 54px 18px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 20px; color: var(--ink-soft); font-size: 15.5px; }

/* about */
.prose p { max-width: 780px; color: var(--ink-soft); font-size: 17px; margin-bottom: 18px; }
.prose p:first-of-type { color: var(--ink); font-size: 19px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: start; }
.ccard { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: 5px 5px 0 rgba(23,23,27,.10); }
.ccard .label { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--red); font-weight: 600; }
.ccard .big { font-size: 21px; font-weight: 700; margin: 4px 0 18px; word-break: break-all; }
.ccard .big a { text-decoration: none; }
.ccard .big a:hover { color: var(--red); }
.tz { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.note { font-size: 13.5px; color: var(--ink-soft); margin-top: 16px; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 26px, rgba(255,255,255,.05) 26px 52px); }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 17px; }

/* preview strip on home */
.preview { columns: 6 150px; column-gap: 14px; }
.preview img { width: 100%; height: auto; margin-bottom: 14px; break-inside: avoid; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 rgba(23,23,27,.10); background: #fff; }
.more { margin-top: 26px; }

/* footer */
footer.site { background: var(--ink); color: rgba(255,255,255,.82); padding: 56px 0 34px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer.site h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
footer.site a { color: rgba(255,255,255,.82); text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; font-size: 14.5px; }
footer.site .brandline { font-family: var(--display); color: #fff; font-size: 22px; }
footer.site .blurb { font-size: 14px; margin-top: 10px; max-width: 340px; }
.fineprint { border-top: 1px dashed rgba(255,255,255,.25); margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .stats .row { grid-template-columns: repeat(3, 1fr); }
  .stat { border-left: 0; border-top: 1px dashed rgba(255,255,255,.2); }
  .stat:nth-child(-n+3) { border-top: 0; }
  .who, .brands-featured { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  nav.main, .bar > .langs, .bar > .btn.sm { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 14px; font-weight: 700; font-family: var(--body); font-size: 14px; cursor: pointer; }
  .drawer { display: none; border-top: 1px solid var(--line); padding: 18px 0 22px; }
  header.site.open .drawer { display: block; }
  .drawer nav { display: flex; flex-direction: column; gap: 4px; }
  .drawer nav a { text-decoration: none; font-weight: 700; font-size: 17px; padding: 10px 0; color: var(--ink); }
  .drawer nav a[aria-current="page"] { color: var(--red); }
  .drawer .langs { margin-top: 14px; flex-wrap: wrap; }
  .drawer .btn { margin-top: 16px; }
  .hero { padding: 44px 0 56px; }
  .hero::after { font-size: 300px; right: -80px; }
  .ticket { grid-template-columns: 1fr; }
  .stub { flex-direction: row; border-right: 0; border-bottom: 2px dashed var(--ink); padding: 12px 16px; }
  .stub .serial { writing-mode: horizontal-tb; }
  .ticket::before, .ticket::after { left: auto; top: 52px; }
  .ticket::before { left: -16px; }
  .ticket::after { right: -16px; bottom: auto; }
  .ticket-body { padding: 30px 24px 34px; }
  .cards, .terms { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tri { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  footer.site .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats .row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(-n+3) { border-top: 1px dashed rgba(255,255,255,.2); }
  .stat:nth-child(-n+2) { border-top: 0; }
}
