/* Hallmark · genre: playful (loud register) · macrostructure: Story Stack (vertical story cards; PC = card + side panels)
 * theme: custom · vibe: "crazy collage pop — ransom-note wordmark, flat vivid color blocks, cut-out highlight bands, die-cut stickers"
 * paper: oklch(98.4% 0.008 300) with confetti dots · accents: hot oklch(58% 0.25 358) / violet / lemon / cyan / tangerine / mint
 * display + body: M PLUS 1 (700/900) · outlier: Rubik Mono One (wordmark only)
 * nav: wordmark-left floating bar · footer: Ft1 mast-headed ink band · context: user-directed redesign (案2 クレイジー・コラージュ)
 */

:root {
  color-scheme: light;

  /* 紙と墨 */
  --paper: oklch(98.4% 0.008 300);
  --white: oklch(99.6% 0.003 300);
  --ink: oklch(19% 0.03 300);
  --ink-2: oklch(40% 0.03 300);
  --muted: oklch(48% 0.025 300);
  --rule: oklch(88% 0.012 300);
  --shade: oklch(93% 0.012 300);

  /* ビビッドな 6 色（診断・結果のカードの地の色） */
  --hot: oklch(58% 0.25 358); /* 白い文字を乗せても 4.5:1 以上 */
  --violet: oklch(52% 0.25 293);
  --lemon: oklch(92% 0.19 106);
  --cyan: oklch(80% 0.14 212);
  --tangerine: oklch(73% 0.19 48);
  --mint: oklch(84% 0.16 158);

  /* キャラの色（カードの地の上に乗せる、ひかえめな色） */
  --t-cream: oklch(95% 0.06 95);
  --t-pink: oklch(80% 0.13 355);
  --t-purple: oklch(70% 0.15 300);
  --t-blue: oklch(66% 0.13 245);
  --t-green: oklch(70% 0.14 160);
  --t-peach: oklch(86% 0.09 45);
  --t-orange: oklch(78% 0.14 65);

  --focus: oklch(50% 0.25 293);
  --error: oklch(52% 0.22 25);

  /* 文字 */
  --font: "M PLUS 1", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mark: "Rubik Mono One", "M PLUS 1", sans-serif; /* ロゴだけ */

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: clamp(1.9rem, 2.2vw + 1.2rem, 2.6rem);
  --text-display: clamp(2.2rem, 4.4vw + 1rem, 4.2rem);

  /* 余白（4pt） */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-pill: 999px;
  --offset: 8px; /* 色ちがいのカードを、うしろに少しずらして重ねる */

  /* 動き */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); /* 結果発表の瞬間だけ */
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  --z-raised: 10;
  --z-modal: 400;
  --z-toast: 500;
}

/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · contrast: pass (40–41) · nav: wordmark bar · footer: Ft1 · mobile: pass (34, 49, 50–57) */

/* ================================================================ 土台 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html.is-playing {
  overflow: hidden;
}

:root {
  /* 紙ふぶきのような水玉 */
  --confetti:
    radial-gradient(circle at 18% 22%, color-mix(in oklab, var(--hot) 60%, var(--paper)) 0 2.5px, transparent 3px),
    radial-gradient(circle at 62% 12%, color-mix(in oklab, var(--cyan) 70%, var(--paper)) 0 2.5px, transparent 3px),
    radial-gradient(circle at 82% 58%, color-mix(in oklab, var(--lemon) 85%, var(--ink)) 0 2.5px, transparent 3px),
    radial-gradient(circle at 36% 74%, color-mix(in oklab, var(--violet) 55%, var(--paper)) 0 2px, transparent 2.5px);
  /* 切り抜いて貼ったような白いふち */
  --cutout: drop-shadow(3px 0 0 var(--white)) drop-shadow(-3px 0 0 var(--white)) drop-shadow(0 3px 0 var(--white)) drop-shadow(0 -3px 0 var(--white))
    drop-shadow(4px 6px 0 color-mix(in oklab, var(--ink) 22%, transparent));
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--confetti), var(--paper);
  background-size: 92px 92px;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
li {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: -4rem;
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background: var(--ink);
  color: var(--lemon);
  font-weight: 900;
}

.skip:focus {
  top: var(--space-md);
}

.notice {
  padding-block: var(--space-md);
}

/* ================================================================ 色（カードの地の色・文字の色・うしろに重ねる色） */

.c-hot {
  --c: var(--hot);
  --fg: var(--white);
  --c2: var(--lemon);
}

.c-violet {
  --c: var(--violet);
  --fg: var(--white);
  --c2: var(--cyan);
}

.c-lemon {
  --c: var(--lemon);
  --fg: var(--ink);
  --c2: var(--hot);
}

.c-cyan {
  --c: var(--cyan);
  --fg: var(--ink);
  --c2: var(--hot);
}

.c-tangerine {
  --c: var(--tangerine);
  --fg: var(--ink);
  --c2: var(--cyan);
}

.c-mint {
  --c: var(--mint);
  --fg: var(--ink);
  --c2: var(--violet);
}

/* キャラの色 */
.t-cream { --el: var(--t-cream); }
.t-pink { --el: var(--t-pink); }
.t-purple { --el: var(--t-purple); }
.t-blue { --el: var(--t-blue); }
.t-green { --el: var(--t-green); }
.t-peach { --el: var(--t-peach); }
.t-orange { --el: var(--t-orange); }

/* ================================================================ キャラの絵 */

.chr {
  display: block;
}

.chr > svg,
.chr > img {
  display: block;
  width: 100%;
  height: auto;
}

.sil {
  overflow: visible;
}

.sil__top {
  stop-color: color-mix(in oklab, var(--el) 40%, var(--white));
}

.sil__bottom {
  stop-color: var(--el);
}

.sil__line {
  flood-color: var(--ink);
}

.sil__halo {
  fill: none;
  stroke: var(--lemon);
  stroke-width: 5;
}

.sil__mark {
  font-family: var(--font);
  font-weight: 900;
  font-size: 46px;
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
  paint-order: stroke;
}

/* ================================================================ ロゴ（1 文字ずつの切り抜き文字） */

.wm {
  display: inline-flex;
  gap: 0.45em;
  font-family: var(--font-mark);
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.wm__w {
  display: inline-flex;
}

.wm i {
  display: inline-block;
  margin-inline: 0.04em;
  padding: 0.2em 0.28em 0.26em;
  font-style: normal;
}

.wm i:nth-child(4n + 1) {
  background: var(--hot);
  color: var(--white);
  rotate: -6deg;
}

.wm i:nth-child(4n + 2) {
  background: var(--lemon);
  color: var(--ink);
  rotate: 4deg;
}

.wm i:nth-child(4n + 3) {
  background: var(--violet);
  color: var(--white);
  rotate: -3deg;
}

.wm i:nth-child(4n) {
  background: var(--cyan);
  color: var(--ink);
  rotate: 6deg;
}

.wm--lg {
  font-size: 1.15rem;
}

.wm--xl {
  font-size: clamp(2.8rem, 10vw, 5rem);
}

@media (min-width: 30rem) {
  .wm {
    font-size: 0.95rem;
  }

  .wm--lg {
    font-size: 1.35rem;
  }

  .wm--xl {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }
}

/* ================================================================ 上のバー */

.gnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-md) var(--space-xs);
}

.gnav__home {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  min-height: 2.75rem;
  text-decoration: none;
}

.gnav__nick {
  display: none;
  padding: 0.1em 0.5em;
  background: var(--ink);
  color: var(--lemon);
  font-size: var(--text-xs);
  font-weight: 900;
  white-space: nowrap;
  rotate: 3deg;
}

.gnav__links {
  display: flex;
  gap: var(--space-2xs);
}

.gnav__wide {
  display: none;
}

.gnav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-btn);
  font-weight: 900;
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}

.gnav__link[aria-current="page"] {
  background: var(--ink);
  color: var(--lemon);
}

.gnav__count {
  min-width: 1.5em;
  padding: 0 0.35em;
  border-radius: var(--radius-pill);
  background: var(--hot);
  color: var(--white);
  font-size: var(--text-xs);
  line-height: 1.5;
  text-align: center;
}

@media (hover: hover) {
  .gnav__link:not([aria-current]):hover {
    background: var(--shade);
  }
}

@media (min-width: 30rem) {
  .gnav__nick {
    display: inline-block;
  }
}

@media (min-width: 48rem) {
  .gnav {
    padding-block: var(--space-lg) var(--space-sm);
  }

  .gnav__wide {
    display: list-item;
  }

  .gnav__link {
    padding: 0 1rem;
    font-size: var(--text-base);
  }
}

/* ================================================================ ボタン・リンク・キー */

.btn {
  display: inline-grid;
  place-items: center;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--radius-btn);
  font-weight: 900;
  font-size: var(--text-base);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out);
}

.btn--go {
  background: var(--lemon);
  color: var(--ink);
}

.c-lemon .btn--go {
  background: var(--white);
}

.btn--sub {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.btn--lg {
  min-height: 3.75rem;
  padding: 0 1.8rem;
  font-size: var(--text-md);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.textbtn {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.textbtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.textlink {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 1.9rem;
  margin-right: 0.6em;
  padding: 0 0.5em;
  border-radius: 8px;
  background: var(--ink);
  color: var(--lemon);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 900;
}

.keys {
  display: grid;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 900;
}

.keys li {
  display: flex;
  align-items: center;
}

.keys--row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
}

.hint-key {
  font-size: var(--text-sm);
  font-weight: 900;
  white-space: nowrap;
}

/* キーボードの説明は、マウスとキーボードがある端末だけ */
@media (hover: none), (pointer: coarse) {
  .keys,
  .hint-key,
  .dxp__keys,
  .player__keyt {
    display: none;
  }
}

/* キーワードを色の帯で切り抜く */
.cut {
  display: inline-block;
  padding: 0 0.14em;
  line-height: 1.15;
  color: var(--ink);
}

.cut--1 {
  background: var(--lemon);
  rotate: -2deg;
}

.cut--2 {
  background: var(--cyan);
  rotate: 2deg;
}

.c-lemon .cut--1 {
  background: var(--hot);
  color: var(--white);
}

.c-cyan .cut--2 {
  background: var(--lemon);
}

/* NEW と 準備中のシール */
.burst {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  background: linear-gradient(120deg, var(--lemon), var(--mint), var(--cyan), var(--hot));
  clip-path: polygon(50% 0, 61% 30%, 95% 25%, 72% 50%, 95% 75%, 61% 70%, 50% 100%, 39% 70%, 5% 75%, 28% 50%, 5% 25%, 39% 30%);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 900;
  rotate: 10deg;
}

.stamp {
  display: inline-block;
  padding: 0.15em 0.6em;
  background: var(--ink);
  color: var(--lemon);
  font-size: var(--text-sm);
  font-weight: 900;
  white-space: nowrap;
  rotate: -6deg;
}

.stamp--big {
  align-self: flex-start;
  margin-block: var(--space-sm);
  font-size: var(--text-xl);
}

/* ================================================================ ストーリーカード（共通） */

.story {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--c);
  color: var(--fg);
  box-shadow: var(--offset) var(--offset) 0 var(--c2);
  text-decoration: none;
}

.story__tag,
.story__title {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15em 0.6em;
  background: var(--ink);
  color: var(--lemon);
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1.5;
}

.story__hook {
  display: block;
  font-weight: 900;
  font-size: clamp(1.75rem, 6.5vw, 2.1rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.story__duo {
  position: absolute;
  right: -0.4rem;
  bottom: 3.6rem;
  display: flex;
  align-items: flex-end;
}

.story__duo .chr {
  width: 8.5rem;
}

.story__duo .chr > * {
  filter: var(--cutout);
}

.story__duo .chr--1 {
  rotate: -8deg;
}

.story__duo .chr--2 {
  margin-left: -2.4rem;
  rotate: 6deg;
}

.story__go {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  display: inline-flex;
  gap: 0.4em;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-btn);
  background: var(--lemon);
  color: var(--ink);
  font-weight: 900;
}

.c-lemon .story__go {
  background: var(--white);
}

.story > .burst {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 1;
}

.story--hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 26rem;
  padding: var(--space-md) var(--space-lg);
  transition: transform var(--dur-short) var(--ease-out);
}

.story--hero .story__hook {
  position: relative;
  z-index: 1;
  margin-top: var(--space-xs);
  padding-right: 2.5rem;
}

@media (hover: hover) {
  a.story:hover {
    transform: translateY(-3px);
  }
}

/* ================================================================ トップ */

/* スマホだけ：診断の丸いアイコンを横に並べる */
.rings {
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: var(--space-xs) var(--space-sm);
}

.rings::-webkit-scrollbar {
  display: none;
}

.rings ul {
  display: flex;
  gap: var(--space-sm);
  width: max-content;
  padding: 0.4rem 0.25rem;
}

.ring {
  display: grid;
  justify-items: center;
  gap: var(--space-2xs);
  width: 4.5rem;
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.ring__in {
  display: grid;
  place-items: end center;
  width: 3.9rem;
  height: 3.9rem;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--c), var(--c)) padding-box,
    conic-gradient(var(--hot), var(--lemon), var(--mint), var(--cyan), var(--violet), var(--hot)) border-box;
  box-shadow: inset 0 0 0 2px var(--paper);
}

.ring__in .chr {
  width: 78%;
  translate: 0 14%;
}

.ring.is-soon .ring__in {
  background:
    linear-gradient(var(--c), var(--c)) padding-box,
    linear-gradient(var(--rule), var(--rule)) border-box;
}

.ring.is-soon .ring__label {
  color: var(--muted);
}

.hero {
  display: grid;
  gap: var(--space-md);
  padding-block: var(--space-xs) var(--space-lg);
}

.hero__title {
  font-weight: 900;
  font-size: var(--text-display);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero__title .cut--1 {
  background: var(--hot);
  color: var(--white);
}

.hero__lead,
.hero__go {
  display: none;
}

.hero__go {
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero__lead {
  max-width: 30em;
  margin-top: var(--space-md);
  font-size: var(--text-md);
  line-height: 1.8;
}

@media (min-width: 48rem) {
  .hero__lead {
    display: block;
  }

  .hero__go {
    display: flex;
  }
}

@media (min-width: 64rem) {
  .rings {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 22rem;
    align-items: center;
    gap: var(--space-2xl);
    padding-block: var(--space-xl) var(--space-xl);
  }
}

/* 見出し */
.rail {
  padding-block: var(--space-lg);
}

.rail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-md);
}

.rail__title {
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: 1.3;
}

.rail__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-btn);
  background: var(--white);
  box-shadow: inset 0 0 0 2.5px var(--ink);
  font-weight: 900;
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .rail__more:hover {
    background: var(--lemon);
  }
}

/* 縦長の診断カード */
.dx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space-md) + var(--offset));
  padding-right: var(--offset);
}

.dxc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  height: 15rem;
  padding: var(--space-sm);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--c);
  color: var(--fg);
  box-shadow: var(--offset) var(--offset) 0 var(--c2);
  text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out);
}

.dx-grid li:nth-child(odd) .dxc {
  rotate: -1.5deg;
}

.dx-grid li:nth-child(even) .dxc {
  rotate: 1.5deg;
}

.dxc__t {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.dxc__t small {
  display: block;
  font-size: var(--text-xs);
}

.dxc__lead {
  position: relative;
  z-index: 1;
  max-width: 9.5em;
  font-size: var(--text-xs);
  line-height: 1.6;
}

.dxc__chr {
  position: absolute;
  right: -0.4rem;
  bottom: -2.2rem;
  width: 6.4rem;
}

.dxc__chr > * {
  filter: var(--cutout);
}

.dxc > .burst,
.dxc > .stamp {
  position: absolute;
  z-index: 2;
}

.dxc > .burst {
  top: auto;
  bottom: var(--space-sm);
  left: var(--space-sm);
  width: 3rem;
  height: 3rem;
}

.dxc > .stamp {
  bottom: var(--space-sm);
  left: var(--space-sm);
}

@media (hover: hover) {
  .dxc:hover {
    transform: translateY(-3px);
  }
}

@media (min-width: 40rem) {
  .dx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .dx-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* お知らせ */
.news {
  display: grid;
  max-width: 46rem;
}

.news li {
  display: grid;
  gap: 0 var(--space-md);
  padding-block: var(--space-sm);
  border-top: 2px dashed var(--rule);
}

.news li:first-child {
  border-top: 0;
}

.news time {
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news a {
  font-weight: 900;
}

@media (min-width: 36rem) {
  .news li {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
  }
}

/* ================================================================ ページの見出し・パンくず */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.5em;
  padding-top: var(--space-xs);
  color: var(--muted);
  font-size: var(--text-xs);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 0.5em;
}

.crumbs a {
  display: inline-block;
  padding-block: 0.4em;
}

.page-head {
  display: grid;
  gap: var(--space-sm);
  padding-block: var(--space-md);
}

.page-head__kicker {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 900;
}

.page-head__title {
  font-weight: 900;
  font-size: var(--text-2xl);
  line-height: 1.25;
}

.page-head__lead {
  max-width: 40em;
  color: var(--ink-2);
}

.page-head .btn {
  justify-self: start;
  margin-top: var(--space-xs);
}

/* ================================================================ 診断ページ（表紙のカード＋説明） */

.dxp {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-md) var(--space-lg);
}

.story--intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-self: center;
  width: min(100%, 26rem);
  min-height: 34rem;
  padding: var(--space-lg) var(--space-lg) 12rem;
}

.story--intro .story__hook {
  font-size: clamp(1.9rem, 7vw, 2.3rem);
}

.story__facts {
  font-size: var(--text-sm);
  font-weight: 900;
}

.story__acts {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.story__last,
.story__note {
  position: relative;
  z-index: 2;
  font-size: var(--text-sm);
}

.story--intro .story__duo {
  bottom: -1.6rem;
}

.story--intro .story__duo .chr {
  width: 10rem;
}

.dxp__side {
  display: grid;
  gap: var(--space-md);
  align-content: start;
  max-width: 36rem;
}

.dxp__desc {
  font-size: var(--text-md);
  line-height: 1.85;
}

.dxp__note {
  color: var(--muted);
  font-size: var(--text-sm);
}

.dxp__side .btn {
  justify-self: start;
}

.player__keyt {
  font-size: var(--text-sm);
  font-weight: 900;
  color: var(--muted);
}

.dxp__keys {
  display: grid;
  gap: var(--space-xs);
}

@media (min-width: 60rem) {
  .dxp {
    grid-template-columns: 26rem minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2xl);
    padding-block: var(--space-lg);
  }
}

/* タイプの小さいカード */
.tt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
  gap: var(--space-sm);
}

.tt__in {
  display: grid;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--c);
  color: var(--fg);
  text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out);
}

.tt__chr {
  width: 66%;
  margin: var(--space-sm) auto 0;
  translate: 0 8%;
}

.tt__chr > * {
  filter: drop-shadow(2px 0 0 var(--white)) drop-shadow(-2px 0 0 var(--white)) drop-shadow(0 2px 0 var(--white)) drop-shadow(0 -2px 0 var(--white));
}

.tt__name {
  position: relative;
  padding: var(--space-xs);
  background: var(--white);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.tt__in[aria-current="page"] {
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--ink);
}

@media (hover: hover) {
  a.tt__in:hover {
    transform: translateY(-3px);
  }
}

/* 図鑑でまだ出ていないタイプ（JS が使えるときだけ） */
.js .tt[data-lock]:not(.is-open) .tt__in {
  background: var(--shade);
}

.js .tt[data-lock]:not(.is-open) .tt__chr > * {
  filter: brightness(0) opacity(0.35);
}

.js .tt[data-lock]:not(.is-open) .tt__name {
  font-size: 0;
}

.js .tt[data-lock]:not(.is-open) .tt__name::after {
  content: "？？？";
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
}

/* タイプの一覧ページ */
.tl-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: calc(var(--space-md) + var(--offset));
  padding-right: var(--offset);
}

.tl {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--c);
  color: var(--fg);
  box-shadow: var(--offset) var(--offset) 0 var(--c2);
  text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out);
}

.tl__chr > * {
  filter: var(--cutout);
}

.tl__name {
  display: block;
  font-weight: 900;
  font-size: var(--text-lg);
  line-height: 1.3;
}

.tl__catch {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
}

@media (hover: hover) {
  .tl:hover {
    transform: translateY(-3px);
  }
}

/* ================================================================ 質問の画面（スマホは全画面のカード） */

.player {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  background: var(--c);
  color: var(--fg);
}

.player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: max(var(--space-sm), env(safe-area-inset-top)) var(--space-md) 0;
}

.player__dx {
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__close {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--lemon);
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.player__stage {
  flex: 1;
  display: flex;
  min-height: 0;
}

.player__side,
.player__arrow {
  display: none;
}

.player__card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--space-sm) var(--space-md) max(var(--space-md), env(safe-area-inset-bottom));
}

/* カードのはしで、診断のキャラが見ている（背の低い画面では出さない） */
.player__chr {
  position: absolute;
  right: -0.8rem;
  bottom: 8.5rem;
  width: 6.5rem;
  rotate: 8deg;
  pointer-events: none;
}

.player__chr > * {
  filter: var(--cutout);
}

.player__card > :not(.player__chr) {
  position: relative;
  z-index: 1;
}

@media (max-height: 43rem) {
  .player__chr {
    display: none;
  }
}

.segs {
  display: flex;
  gap: 3px;
}

.segs i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--fg) 30%, transparent);
}

.segs i.is-done {
  background: var(--fg);
}

.segs i.is-now {
  background: color-mix(in oklab, var(--fg) 65%, transparent);
}

.player__qno {
  margin-top: var(--space-lg);
  font-size: var(--text-md);
  font-weight: 900;
}

.player__q {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.player__q.is-in {
  animation: q-in var(--dur-short) var(--ease-out);
}

.player__qtext {
  margin-top: var(--space-xs);
  font-weight: 900;
  font-size: clamp(1.75rem, 7.4vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.player__qtext:focus {
  outline: none;
}

.player__note {
  align-self: flex-start;
  margin-top: var(--space-md);
  padding: 0.1em 0.6em;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 900;
  rotate: -4deg;
}

.c-lemon .player__note {
  background: var(--white);
}

.scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-top: auto;
}

.scale__b {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 3.5px var(--fg);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.scale__b--1 {
  width: 3.1rem;
  height: 3.1rem;
}

.scale__b--2 {
  width: 3.9rem;
  height: 3.9rem;
}

@media (hover: hover) {
  .scale__b:hover {
    background: color-mix(in oklab, var(--fg) 22%, transparent);
  }
}

.scale__b[aria-pressed="true"] {
  background: var(--lemon);
  box-shadow: inset 0 0 0 3.5px var(--ink);
}

.c-lemon .scale__b[aria-pressed="true"] {
  background: var(--white);
}

.scale__ends {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 900;
}

.opts {
  display: grid;
  gap: var(--space-xs);
  margin-top: auto;
}

.opt {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 3.4rem;
  padding: var(--space-xs) var(--space-md);
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.opt__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lemon);
}

.opt[aria-pressed="true"] {
  background: var(--lemon);
}

.player__back {
  align-self: flex-start;
  margin-top: var(--space-sm);
}

/* PC：まん中のカード、左に進みぐあい、右にキーボードの説明 */
@media (min-width: 64rem) {
  .player {
    background: var(--confetti), var(--paper);
    background-size: 92px 92px;
    color: var(--ink);
  }

  .player__bar {
    padding: var(--space-md) var(--space-xl) 0;
  }

  .player__dx {
    font-size: var(--text-md);
  }

  .player__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 24rem auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-xl) var(--space-xl);
  }

  .player__card {
    height: min(100%, 42rem);
    padding: var(--space-lg);
    border-radius: var(--radius-card);
    background: var(--c);
    color: var(--fg);
    box-shadow: var(--offset) var(--offset) 0 var(--c2);
  }

  .player__back {
    display: none;
  }

  .player__side {
    display: grid;
    gap: var(--space-md);
  }

  .player__side--l {
    justify-self: end;
    justify-items: end;
    text-align: right;
  }

  .player__side--r {
    justify-self: start;
  }

  .player__count {
    font-size: var(--text-md);
    font-weight: 900;
  }

  .player__count b {
    font-size: 3rem;
    line-height: 1;
  }

  .player__dots {
    display: grid;
    grid-template-columns: repeat(5, 0.9rem);
    gap: var(--space-xs);
  }

  .player__dots li {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--ink);
  }

  .player__dots li.is-done {
    background: var(--hot);
    box-shadow: none;
  }

  .player__dots li.is-now {
    background: var(--lemon);
    box-shadow: 0 0 0 3px var(--ink);
  }

  .player__arrow {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0 0 0.2rem;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lemon);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }

  .player__arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
  }
}

/* ================================================================ 結果ページ */

.res {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-md) var(--space-lg);
}

.res__card {
  justify-self: center;
  width: min(100%, 24rem);
  aspect-ratio: 9 / 16;
}

.res__inset {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  width: 6.5rem;
  padding: var(--space-xs) var(--space-xs) 2.6rem;
  border-radius: 12px;
  background: var(--c);
  color: var(--fg);
  box-shadow: 0 0 0 4px var(--white);
  rotate: -3deg;
}

.res__inset .chr {
  width: 82%;
  margin-inline: auto;
}

.res__inset-lb {
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  bottom: 0.3rem;
  padding: 0.15rem 0.2rem;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.res__chr {
  position: absolute;
  top: 7%;
  right: -0.6rem;
  width: 66%;
}

.res__chr > * {
  filter: var(--cutout);
}

.res__meters {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: 13rem;
}

.res__name {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: 5rem;
}

.res__sub {
  display: inline-block;
  padding: 0.1em 0.5em;
  background: var(--ink);
  color: var(--lemon);
  font-size: var(--text-xs);
  font-weight: 900;
}

.res__big {
  margin-top: var(--space-2xs);
  font-weight: 900;
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.res__catch {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: 900;
}

.res__acts {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xs);
}

.res__card.is-pop {
  animation: pop 600ms var(--ease-pop);
}

/* 自分の割合のバー */
.meter {
  display: grid;
  gap: var(--space-2xs);
}

.meter__axis {
  font-size: var(--text-xs);
  font-weight: 900;
}

.meter__lb {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 900;
}

.meter__lb b {
  font-size: var(--text-md);
}

.meter__bar {
  height: 0.9rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--white);
}

.meter__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lemon);
}

.res__meters2 {
  display: grid;
  gap: var(--space-md);
  max-width: 34rem;
}

.res__meters2 .meter__bar {
  height: 1.2rem;
  box-shadow: none;
}

.res__meters2 .meter__bar i {
  background: var(--hot);
}

.res__detail {
  display: grid;
  gap: var(--space-lg);
  align-content: start;
}

.res__detail h2 {
  margin-bottom: var(--space-2xs);
  font-size: var(--text-md);
  font-weight: 900;
}

.res__dx {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 900;
}

.res__dx a {
  color: var(--ink);
}

.res__me {
  display: inline-block;
  margin-left: var(--space-xs);
  padding: 0 0.5em;
  background: var(--hot);
  color: var(--white);
}

.res__title {
  font-weight: 900;
  font-size: clamp(2.2rem, 3vw + 1.2rem, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.res__title .cut--1 {
  background: var(--hot);
  color: var(--white);
}

.res__cols {
  display: grid;
  gap: var(--space-lg);
}

.res__cols p {
  line-height: 1.9;
}

.res__list {
  display: grid;
  gap: var(--space-2xs);
}

.res__list li {
  position: relative;
  padding-left: 1.2em;
}

.res__list li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.65em;
  width: 0.5em;
  height: 0.5em;
  background: var(--hot);
  rotate: 45deg;
}

.res__aff {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.aff {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xs) var(--space-md) var(--space-2xs) var(--space-2xs);
  border-radius: var(--radius-btn);
  background: var(--white);
  box-shadow: inset 0 0 0 3px var(--ink);
  text-decoration: none;
}

.aff__chr {
  display: grid;
  place-items: end center;
  flex: none;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in oklab, var(--el) 35%, var(--white));
}

.aff__chr > * {
  width: 82%;
  translate: 0 16%;
}

.aff b,
.aff small {
  display: block;
}

.aff small {
  color: var(--muted);
  font-size: var(--text-xs);
}

@media (hover: hover) {
  .aff:hover {
    background: var(--lemon);
  }
}

.res__hint b {
  margin-right: var(--space-xs);
  padding: 0 0.4em;
  background: var(--lemon);
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.share__btn[data-share="x"] {
  background: var(--lemon);
}

.share__btn[data-state="copied"] {
  background: var(--mint);
}

.share__btn[data-state="error"] {
  background: var(--tangerine);
}

@media (hover: hover) {
  .share__btn:hover {
    transform: translateY(-2px);
  }
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.res__again {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (min-width: 48rem) {
  .res__cols {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

@media (min-width: 60rem) {
  .res {
    grid-template-columns: 24rem minmax(0, 1fr);
    align-items: start;
    gap: var(--space-2xl);
  }
}

/* ================================================================ 結果発表の演出 */

.reveal {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.reveal__bands {
  position: absolute;
  inset: -40% -30%;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  rotate: -12deg;
}

.reveal__bands i {
  display: block;
  transform: translateX(-110%);
  transition: transform 380ms var(--ease-out);
}

.reveal__bands i:nth-child(1) {
  background: var(--hot);
}

.reveal__bands i:nth-child(2) {
  background: var(--lemon);
  transition-delay: 70ms;
}

.reveal__bands i:nth-child(3) {
  background: var(--cyan);
  transition-delay: 140ms;
}

.reveal.is-in .reveal__bands i {
  transform: none;
}

.reveal.is-out .reveal__bands i {
  transform: translateX(110%);
  transition: transform 380ms var(--ease-in);
}

.reveal__word {
  position: relative;
  display: flex;
  gap: 0.08em;
  font-weight: 900;
  font-size: clamp(3.4rem, 16vw, 8rem);
  line-height: 1;
}

.reveal__word i {
  display: inline-block;
  padding: 0.06em 0.14em 0.1em;
  background: var(--ink);
  color: var(--white);
  font-style: normal;
  opacity: 0;
  --r: -5deg;
}

.reveal__word i:nth-child(even) {
  background: var(--white);
  color: var(--ink);
  --r: 4deg;
}

.reveal.is-in .reveal__word i {
  animation: stamp 320ms var(--ease-out) calc(300ms + var(--i) * 110ms) both;
}

.reveal.is-out .reveal__word {
  opacity: 0;
  transition: opacity 200ms var(--ease-in);
}

.reveal__skip {
  position: absolute;
  top: max(var(--space-md), env(safe-area-inset-top));
  right: var(--space-md);
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--lemon);
  font-weight: 900;
  cursor: pointer;
}

/* ================================================================ 図鑑 */

.zk {
  display: grid;
  gap: var(--space-md);
  padding-block: var(--space-lg);
}

.zk__head {
  display: grid;
  gap: var(--space-2xs);
  max-width: 40rem;
}

.zk__title {
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: 1.3;
}

.zk__title a {
  text-decoration: none;
}

.zk__count b {
  font-size: var(--text-xl);
}

.zk__bar {
  height: 0.8rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--shade);
}

.zk__bar i {
  display: block;
  width: calc(var(--p, 0) * 100%);
  height: 100%;
  background: var(--hot);
}

.zk-soon {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.zk-soon a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--radius-btn);
  background: var(--c);
  color: var(--fg);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

/* ================================================================ 文章のページ（クレポンって？） */

.prose {
  display: grid;
  gap: var(--space-md);
  max-width: 44rem;
  margin-block: var(--space-md) var(--space-xl);
}

.prose__title {
  font-weight: 900;
  font-size: var(--text-2xl);
  line-height: 1.25;
}

.prose h2 {
  justify-self: start;
  margin-top: var(--space-md);
  padding: 0 0.2em;
  background: var(--lemon);
  font-size: var(--text-lg);
  font-weight: 900;
  rotate: -1deg;
}

.prose p {
  line-height: 1.9;
}

.prose .lede {
  font-size: var(--text-md);
}

/* ================================================================ 404 */

.lost {
  padding-block: var(--space-lg) var(--space-xl);
}

.story--lost {
  display: grid;
  gap: var(--space-md);
  align-content: start;
  max-width: 40rem;
  min-height: 30rem;
  padding: var(--space-xl) var(--space-lg);
}

.lost__code,
.lost__title,
.lost__text,
.lost__acts {
  position: relative;
  z-index: 1;
}

.lost__title {
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: 1.35;
}

.lost__acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.lost__chr {
  position: absolute;
  right: -1rem;
  bottom: -2.5rem;
  width: 10rem;
}

.lost__chr > * {
  filter: var(--cutout);
}

/* ================================================================ 名前で診断 */

.namef {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-2xs);
  margin-top: var(--space-sm);
}

.namef__label {
  font-size: var(--text-sm);
  font-weight: 900;
}

.namef,
.namef__row {
  min-width: 0;
}

.namef__row {
  display: flex;
  gap: var(--space-xs);
}

.input {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0 var(--space-md);
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink);
  font: inherit;
  font-weight: 900;
  outline: 2px solid transparent;
}

.input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 3px var(--error);
}

.namef__help {
  min-height: 1lh;
  font-size: var(--text-sm);
}

.namef__help[data-error] {
  justify-self: start;
  padding: 0 0.4em;
  background: var(--white);
  color: var(--error);
}

.nres {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-lg);
}

.nres__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  justify-self: center;
  width: min(100%, 24rem);
  padding: var(--space-lg);
}

.nres__card.is-pop {
  animation: pop 600ms var(--ease-pop);
}

.nres__art {
  width: 64%;
  align-self: center;
}

.nres__art .chr > * {
  filter: var(--cutout);
}

.nres__sub {
  align-self: flex-start;
  padding: 0.1em 0.5em;
  background: var(--ink);
  color: var(--lemon);
  font-size: var(--text-xs);
  font-weight: 900;
}

.nres__heading {
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: 1.3;
}

.nres__body {
  display: grid;
  gap: var(--space-md);
  align-content: start;
}

.nres__lines {
  display: grid;
  gap: var(--space-xs);
}

.nres__lines p {
  line-height: 1.9;
}

.nres__lines strong {
  padding: 0 0.15em;
  background: var(--lemon);
}

.nres__body .btn {
  justify-self: start;
}

@media (min-width: 60rem) {
  .nres {
    grid-template-columns: 24rem minmax(0, 1fr);
    align-items: start;
  }
}

/* ================================================================ 下の帯 */

.gfoot {
  margin-top: var(--space-xl);
  background: var(--ink);
  color: var(--paper);
}

.gfoot__in {
  display: grid;
  gap: var(--space-md);
  padding-block: var(--space-xl) calc(var(--space-xl) + env(safe-area-inset-bottom));
}

.gfoot__home {
  justify-self: start;
  padding-block: var(--space-xs);
  text-decoration: none;
}

.gfoot__tag {
  font-size: var(--text-sm);
}

.gfoot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-lg);
}

.gfoot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 900;
}

.gfoot__small {
  color: color-mix(in oklab, var(--paper) 72%, var(--ink));
  font-size: var(--text-xs);
  line-height: 1.9;
}

.gfoot :focus-visible {
  outline-color: var(--lemon);
}

/* ================================================================ 紙ふぶき */

.confetti {
  position: fixed;
  z-index: var(--z-toast);
  width: 0.55rem;
  height: 0.8rem;
  border-radius: 2px;
  background: var(--c, var(--lemon));
  pointer-events: none;
  animation: confetti var(--t, 700ms) var(--ease-out) forwards;
}

/* ================================================================ 動き */

@keyframes q-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.82) rotate(-3deg);
  }
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(2.4) rotate(-14deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.92) rotate(var(--r));
  }
  100% {
    opacity: 1;
    transform: rotate(var(--r));
  }
}

@keyframes confetti {
  from {
    transform: translate(-50%, -50%) rotate(0);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .dxc:hover,
  a.story:hover,
  a.tt__in:hover,
  .tl:hover,
  .share__btn:hover {
    transform: none;
  }
}
