/* Hallmark · macrostructure: Portfolio Grid (Index-First frame + F6 product-card shelf) · tone: austere · anchor hue: 250 · nav: N9 · footer: Ft2 · enrichment: none */
/* tokens: /css/tokens.css（先に読み込む） */

html { overflow-x: clip; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-base);
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--color-rule-2); transition: text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 1px; }
a:active { opacity: 0.7; }

.page { max-width: 64rem; margin-inline: auto; padding-inline: var(--page-gutter); }

/* N9 — edge-aligned: wordmark left, one link right, nothing between */
.nav { display: flex; justify-content: space-between; align-items: baseline; padding-block: var(--space-lg) var(--space-2xl); gap: var(--space-md); }
.nav__mark { font-family: var(--font-display); font-weight: var(--weight-strong); letter-spacing: 0.08em; font-size: var(--text-sm); text-decoration: none; }
.nav__links { display: flex; align-items: baseline; gap: var(--space-xs); font-size: var(--text-sm); white-space: nowrap; }
.nav__sep { color: var(--color-rule-2); }

/* hero — 横長カルーセル。scroll-snap が本体、矢印とドットは JS で乗せる */
.hero { position: relative; margin-bottom: var(--space-2xl); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.hero__slide a { display: block; aspect-ratio: 16 / 9; }
@media (min-width: 40rem) { .hero__slide a { aspect-ratio: 21 / 9; } }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--rule-hair) solid var(--color-rule-2); background: color-mix(in oklch, var(--color-paper) 85%, transparent); color: var(--color-ink); font-family: var(--font-mono); font-size: var(--text-sm); cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.hero__arrow:hover { background: var(--color-paper); border-color: var(--color-ink); }
.hero__arrow--prev { left: var(--space-sm); }
.hero__arrow--next { right: var(--space-sm); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: var(--space-sm); display: flex; justify-content: center; gap: var(--space-xs); }
.hero__dots button { width: 8px; height: 8px; padding: 0; border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper); border-radius: 50%; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.hero__dots button[aria-selected="true"] { background: var(--color-ink); }
@media (hover: none) { .hero__arrow { display: none; } }

/* intro — Index-First: one short paragraph, no display heroics */
.intro { display: grid; gap: var(--space-md); padding-block: 0 var(--space-3xl); }
.intro__lead { max-width: var(--measure); overflow-wrap: anywhere; min-width: 0; }
.intro__sub { max-width: var(--measure); color: var(--color-muted); }

/* sections — stacked head; heading directly above content, no eyebrow */
.section { padding-block: var(--space-xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.section--tight { padding-block: var(--space-lg) var(--space-xl); }
.section__title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-lg); line-height: 1.25; margin-bottom: var(--space-lg); }

/* the shelf — F6 product-card grid, 3-up; uniform cards, rhythm comes from the art */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl) var(--space-lg); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.card__media { display: block; aspect-ratio: 1; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--pending { display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-neutral); letter-spacing: 0.04em; text-decoration: none; }
.card__name { font-family: var(--font-display); font-weight: var(--weight-strong); font-size: var(--text-md); line-height: 1.35; margin-top: var(--space-2xs); }
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; }

/* C1 outlined chips — platform labels, one line, small */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1; padding: var(--space-2xs) var(--space-xs); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-muted); white-space: nowrap; }
.chip--pending { border-style: dashed; color: var(--color-neutral); }

.card__facts { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); }
.card__facts > div { display: flex; gap: var(--space-xs); }
.card__facts dt { color: var(--color-neutral); flex: 0 0 auto; min-width: 4.5em; white-space: nowrap; }
.card__facts dt::after { content: "："; }
.card__facts dd { font-variant-numeric: tabular-nums; }

/* stacked full-width buttons — ink outline; primary store filled */
.card__actions { display: grid; gap: var(--space-xs); margin-top: var(--space-xs); }
.btn { display: block; text-align: center; padding: var(--space-sm) var(--space-md); min-height: 44px; line-height: 1.25; font-size: var(--text-sm); font-weight: var(--weight-strong); text-decoration: none; white-space: nowrap;
  border: var(--rule-hair) solid var(--color-ink); background: var(--color-ink); color: var(--color-paper);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform 100ms var(--ease-out); }
.btn:hover { background: var(--color-paper); color: var(--color-ink); }
.btn:active { transform: translateY(1px); opacity: 1; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule-2); }
.btn--quiet:hover { border-color: var(--color-ink); background: transparent; }
.btn.is-pending { background: var(--color-paper-2); color: var(--color-neutral); border-color: var(--color-rule); cursor: not-allowed; }

/* definition rows — business info, 特商法 */
.facts { display: grid; border-top: var(--rule-hair) solid var(--color-rule); }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs) var(--space-lg); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
@media (min-width: 40rem) { .facts > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.facts dt { color: var(--color-neutral); font-size: var(--text-sm); }
.facts dd { overflow-wrap: anywhere; }

/* link list (規約類) */
.links { display: grid; gap: var(--space-xs); }
.links li { display: flex; gap: var(--space-sm); align-items: baseline; }
.links__note { color: var(--color-neutral); font-size: var(--text-sm); }

/* prose — game detail, privacy, 特商法 */
.prose { max-width: var(--measure); display: grid; gap: var(--space-md); }
.prose h2 { font-family: var(--font-display); font-weight: var(--weight-strong); font-size: var(--text-md); line-height: 1.3; margin-top: var(--space-md); }
.prose .lede { font-size: var(--text-md); line-height: 1.6; }
.prose .pending { color: var(--color-neutral); }

.title { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-display); line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; min-width: 0; }
.title-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-neutral); margin-top: var(--space-sm); letter-spacing: 0.02em; }
.back { font-size: var(--text-sm); }
.header { padding-block: 0 var(--space-xl); display: grid; gap: var(--space-md); }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: var(--space-md); margin-block: var(--space-lg); }
.shots figure { border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-lg); font-size: var(--text-sm); }

/* Ft2 — one line above a hairline */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-lg) var(--space-2xl); font-size: var(--text-sm); color: var(--color-neutral); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
.foot a { color: inherit; white-space: nowrap; }

::selection { background: var(--color-ink); color: var(--color-paper); }

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