:root {
  --paper: #f2ede3;
  --paper-2: #e8e1d3;
  --ink: #161412;
  --ink-soft: #5d574f;
  --hot: #ff4d2e;
  --gap: clamp(14px, 3vw, 28px);
  --side: max(var(--gap), env(safe-area-inset-left));
  --side-r: max(var(--gap), env(safe-area-inset-right));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }

/* ---------- 見出し ---------- */
.top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) var(--side-r) 6px var(--side);
}
.mark {
  margin: 0;
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-size: clamp(46px, 11vw, 112px);
  line-height: .88;
  letter-spacing: -.02em;
}
.mark span { display: block; font-size: .52em; letter-spacing: 0; margin-top: .12em; }
.lead { margin: 12px 0 0; font-weight: 700; font-size: clamp(14px, 1.6vw, 17px); color: var(--ink-soft); }
.tally { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.tally b { font-family: "Dela Gothic One", sans-serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); margin-right: 3px; font-variant-numeric: tabular-nums; }
.tally [hidden] { display: none; }
.xlink {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; align-self: start; margin-top: 6px;
  border-radius: 50%; background: var(--ink); transition: transform .12s ease;
}
.xlink svg { width: 24px; height: 24px; fill: var(--paper); }
.xlink:hover { transform: scale(1.08) rotate(-6deg); }
.xlink:active { transform: scale(.94); }
@media (max-width: 560px) {
  .top { grid-template-columns: 1fr auto; }
  .tally { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: flex-start; gap: 18px; align-items: baseline; }
  .xlink { grid-column: 2; grid-row: 1; }
}

/* ---------- 新作（いちばん上に大きく） ---------- */
.feature { max-width: 1280px; margin: 0 auto; padding: var(--gap) var(--side-r) 0 var(--side); }
.hero {
  --c: var(--hot);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
  background: var(--ink);
  border-radius: 22px 22px 22px 6px;
  box-shadow: 8px 8px 0 var(--c);
  overflow: hidden;
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1), box-shadow .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.hero .art { position: relative; aspect-ratio: 16 / 10; background: var(--c); overflow: hidden; }
.hero .art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hero .stamp {
  position: absolute; top: 16px; left: 16px; padding: 6px 14px 7px; border-radius: 999px;
  background: var(--c); color: var(--ink); font-family: "Dela Gothic One", sans-serif; font-size: 16px; letter-spacing: .04em;
  box-shadow: 3px 3px 0 var(--ink);
}
.hero .body { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 3vw, 34px); color: var(--paper); }
.hero .kicker { font-weight: 900; font-size: 14px; letter-spacing: .12em; color: var(--c); }
.hero .name { margin: 0; font-family: "Dela Gothic One", sans-serif; font-weight: 400; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.15; text-wrap: balance; }
.hero .desc { margin: 0; font-weight: 700; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; color: #ddd6c9; }
.hero .foot-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #b8b0a2; font-weight: 700; }
.hero .play {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px 15px; border-radius: 14px 14px 14px 4px;
  background: var(--c); color: var(--ink); font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; font-size: 20px;
  box-shadow: 4px 4px 0 var(--paper); transition: transform .12s ease, box-shadow .12s ease;
}
.hero .play::after { content: ""; width: 0; height: 0; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.hero:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--c); }
.hero:hover .art img { transform: scale(1.04); }
.hero:hover .play { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--paper); }
.hero:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--c); }
.hero:focus-visible { outline: 5px solid var(--ink); outline-offset: 6px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---------- 並べ方 ---------- */
.bar {
  max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: calc(var(--gap) + 14px) var(--side-r) 4px var(--side);
}
.sorts { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px 10px; border: 3px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer;
  font-weight: 900; font-size: 15px; transition: transform .1s ease;
}
.chip.on { background: var(--ink); color: var(--paper); }
.chip:active { transform: scale(.95); }
.views { display: flex; gap: 6px; }
.view { width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 12px 12px 12px 3px; background: transparent; cursor: pointer; }
.view svg { width: 20px; height: 20px; fill: var(--ink); }
.view.on { background: var(--ink); }
.view.on svg { fill: var(--paper); }

/* ---------- 一覧 ---------- */
.shelf { max-width: 1280px; margin: 0 auto; padding: var(--gap) var(--side-r) 40px var(--side); }
.shelf.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: calc(var(--gap) + 6px) var(--gap); }
@media (max-width: 560px) { .shelf.grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; } }

.tile {
  --c: var(--hot);
  position: relative; display: flex; flex-direction: column; min-width: 0;
  color: inherit; text-decoration: none; outline: none; transform-origin: 50% 60%;
  transition: transform .14s cubic-bezier(.3, 1.6, .5, 1);
  -webkit-tap-highlight-color: transparent;
}
.tile .thumb {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px 18px 18px 4px; background: var(--c);
  overflow: hidden; box-shadow: 6px 6px 0 var(--ink); transition: box-shadow .14s ease;
}
.tile .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .no {
  position: absolute; z-index: 2; left: 10px; bottom: 10px; padding: 3px 10px 4px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-family: "Dela Gothic One", sans-serif; font-size: 13px; letter-spacing: .04em;
}
.tile .meta { display: flex; flex-direction: column; gap: 6px; padding: 14px 4px 0; min-width: 0; }
.tile .name { font-weight: 900; font-size: clamp(17px, 2vw, 21px); line-height: 1.3; }
.tile .desc {
  color: var(--ink-soft); font-weight: 500; font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile .desc:empty { display: none; }
.tile .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.tile .players { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.tile .players[hidden] { display: none; }
.tile .players svg { width: 17px; height: 17px; fill: currentColor; }
.tile .players b { font-size: 17px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .tile .name { font-size: 15px; }
  .tile .desc { font-size: 12.5px; -webkit-line-clamp: 3; }
  .tile .row { font-size: 12px; }
  .tile .thumb { box-shadow: 4px 4px 0 var(--ink); }
}
.tile:hover, .tile:focus-visible { transform: scale(1.05) rotate(-1deg); z-index: 3; }
.tile:hover .thumb, .tile:focus-visible .thumb { box-shadow: 12px 12px 0 var(--c); }
.tile:focus-visible .thumb { outline: 5px solid var(--ink); outline-offset: 5px; }
.tile:active { transform: scale(.96); transition-duration: .05s; }
.tile:active .thumb { box-shadow: 2px 2px 0 var(--ink); }

/* 一覧（行で並べる） */
.shelf.list { display: flex; flex-direction: column; gap: 0; }
.shelf.list .tile { flex-direction: row; align-items: center; gap: 16px; padding: 14px 6px; border-bottom: 3px solid var(--ink); transform: none; }
.shelf.list .tile:first-child { border-top: 3px solid var(--ink); }
.shelf.list .thumb { flex: none; width: clamp(92px, 16vw, 150px); aspect-ratio: 4 / 3; box-shadow: 4px 4px 0 var(--ink); border-radius: 12px 12px 12px 3px; }
.shelf.list .no { font-size: 11px; left: 6px; bottom: 6px; padding: 2px 7px 3px; }
.shelf.list .meta { flex: 1; padding: 0; }
.shelf.list .desc { -webkit-line-clamp: 2; }
.shelf.list .tile:hover { background: var(--paper-2); transform: none; }
.shelf.list .tile:hover .thumb { box-shadow: 6px 6px 0 var(--c); }

/* ---------- 足もと ---------- */
.foot {
  max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 26px var(--side-r) max(40px, calc(env(safe-area-inset-bottom) + 24px)) var(--side);
  border-top: 3px solid var(--ink); font-weight: 700; color: var(--ink-soft);
}
.foot p { margin: 0; }
.foot a { color: var(--ink); font-weight: 900; }

.fade { position: fixed; inset: 0; z-index: 50; background: #000; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.fade.on { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .tile, .tile .thumb, .xlink, .fade, .hero, .hero .art img, .hero .play { transition: none; }
}
