/* njav.fyi。値は docs/measurements/20261106_njav-site_style-values.md の計測から書いた。クラスは nj- で始める */
@font-face { font-family: Inter; src: url(/fonts/inter-v3-latin-500.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Halant; src: url(/fonts/halant-v8-latin-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --nj-ink: #d8dee9; --nj-ink-strong: #eceff4; --nj-ink-soft: #e5e9f0; --nj-muted: #9ca3af; --nj-dim: #6b7280;
  --nj-pink: #fe628e; --nj-panel: #3b4252; --nj-blue: #81a1c1; --nj-green: #a3be8c; --nj-gold: #ebcb8b;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--nj-ink); font: 400 16px/24px Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, #080711 0, #10141f 900px) #10141f no-repeat;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.nj-wrap { width: 100%; max-width: 1536px; margin: 0 auto; padding: 0 16px; }

.nj-top { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.nj-logo { font: 500 36px/54px Halant, Georgia, serif; color: #fff; letter-spacing: .01em; }
.nj-logo b { font-weight: 500; color: var(--nj-pink); }
.nj-menu { display: flex; gap: 16px; align-items: center; }
.nj-menu a { font-weight: 500; color: var(--nj-ink-strong); }
.nj-menu a:hover, .nj-menu a[aria-current] { color: var(--nj-pink); }
.nj-toggle { display: none; width: 40px; height: 40px; padding: 8px; background: none; border: 0; color: #fff; cursor: pointer; }
.nj-toggle svg { width: 24px; height: 24px; }

.nj-hero { padding: 24px 0 72px; text-align: center; }
.nj-hero h1 { font-size: 36px; line-height: 40px; font-weight: 400; color: #fff; margin-bottom: 32px; }
.nj-hero h1 em { font-style: normal; font-family: Halant, Georgia, serif; color: var(--nj-pink); }
.nj-find { display: flex; max-width: 544px; margin: 0 auto; background: #fff; border-radius: 6px; overflow: hidden; }
.nj-find input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; outline: 0; font: inherit; color: #111827; }
.nj-find button { width: 90px; border: 0; border-left: 1px solid #d1d5db; background: #f9fafb; font: 500 14px/20px Inter, sans-serif; color: #374151; cursor: pointer; }

.nj-block { margin-bottom: 64px; }
.nj-block > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.nj-block h2 { font-size: 28px; line-height: 36px; font-weight: 600; color: #fff; }
.nj-block header a { color: var(--nj-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nj-heading { margin-bottom: 24px; text-align: center; font-size: 24px; line-height: 32px; font-weight: 400; color: var(--nj-ink); }
.nj-note { margin: -12px 0 24px; text-align: center; color: var(--nj-muted); font-size: 14px; line-height: 20px; }

.nj-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nj-card > a { display: block; }
.nj-shot { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.nj-shot img { width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .2s; font-size: 12px; line-height: 16px; color: var(--nj-dim); }
.nj-card > a:hover img { transform: scale(1.03); }
.nj-time, .nj-new { position: absolute; bottom: 4px; padding: 4px 8px; border-radius: 8px; font-size: 12px; line-height: 16px; color: var(--nj-ink-soft); }
.nj-time { right: 4px; background: rgba(31, 41, 55, .75); }
.nj-new { left: 4px; background: rgba(153, 27, 27, .75); }
.nj-name { margin-top: 8px; color: var(--nj-ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nj-card > a:hover .nj-name { color: var(--nj-pink); }

.nj-stars { background: var(--nj-panel); border-radius: 8px; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.nj-star a { display: block; text-align: center; }
.nj-face { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--nj-blue); color: var(--nj-ink); font-size: 36px; }
.nj-face img { width: 100%; height: 100%; object-fit: cover; font-size: 12px; line-height: 16px; color: var(--nj-ink); }
.nj-star strong { display: block; font-weight: 400; color: var(--nj-gold); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nj-star a:hover strong { color: var(--nj-pink); }
.nj-place { display: inline-block; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 500; color: #5e81ac; }
.nj-place[data-medal] { padding: 2px 10px; border-radius: 6px; color: #fff; }
.nj-place[data-medal="1"] { background: #ca8a04; }
.nj-place[data-medal="2"] { background: #64748b; }
.nj-place[data-medal="3"] { background: #92400e; }

.nj-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 32px; }
.nj-pages a, .nj-pages span { min-width: 38px; padding: 8px 14px; border-radius: 8px; text-align: center; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--nj-ink); }
.nj-pages a:hover { color: var(--nj-pink); }
.nj-pages [aria-current] { background: var(--nj-pink); color: var(--nj-ink-strong); }

.nj-watch { display: flex; align-items: flex-start; gap: 24px; }
.nj-primary { flex: 1; min-width: 0; }
.nj-aside { display: none; width: 300px; flex: none; }
.nj-watch { margin-top: -8px; }
.nj-player { background: #000; border-radius: 8px; overflow: hidden; }
.nj-stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.nj-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.nj-start { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.nj-start img { width: 100%; height: 100%; object-fit: contain; font-size: 14px; color: var(--nj-muted); }
.nj-bigplay { position: absolute; left: 50%; top: 50%; display: flex; padding: 15px; border-radius: 50%; background: var(--nj-pink); color: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .15); transform: translate(-50%, -50%); transition: transform .3s; }
.nj-start:hover .nj-bigplay, .nj-start:focus-visible .nj-bigplay { transform: translate(-50%, -50%) scale(1.05); }
.nj-bigplay svg { position: relative; left: 1px; width: 18px; height: 18px; }
.nj-ended { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(0, 0, 0, .78); color: #fff; }
.nj-ended[hidden] { display: none; }
.nj-buy { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 8px; background: var(--nj-pink); color: #fff; font-weight: 600; }
.nj-panel { padding: 12px 16px; }
.nj-seeks { display: flex; justify-content: space-between; gap: 26px; margin-bottom: 12px; }
.nj-group { display: flex; flex: 1; }
.nj-group button { flex: 1; min-height: 32px; margin-left: -1px; padding: 8px 2px; border: 1px solid #fff; background: none; color: #fff; font-size: 12px; line-height: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.nj-group button:first-child { margin-left: 0; border-radius: 6px 0 0 6px; }
.nj-group button:last-child { border-radius: 0 6px 6px 0; }
.nj-group button:hover { background: #1f2937; }
.nj-repeat { display: flex; align-items: center; gap: 4px; color: #fff; }
.nj-repeat input { width: 72px; min-width: 0; padding: 4px 0; border: 0; border-bottom: 1px solid #6b7280; outline: 0; background: none; color: #9ca3af; font: 400 12px/18px ui-monospace, Menlo, Consolas, monospace; text-align: center; }
.nj-clip { width: 18px; height: 24px; padding: 2px; border: 0; background: none; color: var(--nj-gold); cursor: pointer; }
.nj-clip svg { display: block; width: 100%; height: 100%; }
.nj-loop { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 10px; border: 1px solid #fff; border-radius: 4px; background: none; color: #fff; font-size: 12px; line-height: 16px; font-weight: 500; cursor: pointer; }
.nj-loop i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.nj-loop[aria-pressed="true"] { background: #fff; color: #111827; }
.nj-title { margin: 16px 0 0; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--nj-ink-strong); }
.nj-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 32px 0; }
.nj-action { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--nj-ink); font: 500 14px/16px Inter, sans-serif; white-space: nowrap; cursor: pointer; }
.nj-action:hover { color: var(--nj-ink-strong); }
.nj-action svg { width: 16px; height: 16px; }
.nj-action small { margin-left: -4px; color: var(--nj-muted); font-size: 12px; }
.nj-tabs { border-bottom: 1px solid #374151; margin-bottom: 16px; }
.nj-tab { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 16px; margin-bottom: -1px; color: #f87171; font-size: 14px; line-height: 20px; font-weight: 500; }
.nj-tab svg { width: 16px; height: 16px; }
.nj-spec { color: #b8babc; }
.nj-spec p { margin-bottom: 8px; line-height: 24px; }
.nj-spec a, .nj-spec b { color: var(--nj-gold); font-weight: 500; }
.nj-spec time { color: var(--nj-ink); }
.nj-spec a:hover { color: var(--nj-pink); }
.nj-note-work { margin-top: 16px; color: var(--nj-muted); font-size: 14px; line-height: 22px; }
.nj-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 24px 0; }
.nj-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.nj-mini { margin-bottom: 16px; }
.nj-mini a { display: flex; gap: 8px; }
.nj-mini .nj-shot { width: 150px; flex: none; }
.nj-mini span.nj-mini-name { font-size: 14px; line-height: 20px; color: var(--nj-ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nj-mini a:hover .nj-mini-name { color: var(--nj-pink); }

.nj-who { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; padding: 24px; background: var(--nj-panel); border-radius: 8px; }
.nj-who .nj-face { margin: 0; flex: none; }
.nj-who h1 { font-size: 24px; line-height: 32px; font-weight: 400; color: var(--nj-gold); }
.nj-who p { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--nj-ink); }
.nj-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.nj-index a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; color: var(--nj-green); }
.nj-index small { color: var(--nj-dim); font-size: 14px; }

.nj-seo { margin-top: 48px; color: var(--nj-ink); font-size: 15px; line-height: 26px; }
.nj-seo section { margin-bottom: 32px; }
.nj-seo h2 { margin-bottom: 12px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--nj-ink-strong); }
.nj-seo p + p { margin-top: 8px; }
.nj-seo a { color: var(--nj-blue); }
.nj-seo table { width: 100%; border-collapse: collapse; }
.nj-seo th, .nj-seo td { padding: 8px; border-bottom: 1px solid #374151; text-align: left; vertical-align: top; font-weight: 400; }
.nj-seo th { width: 30%; color: #b8babc; }
.nj-seo dt { margin-top: 12px; font-weight: 600; color: var(--nj-ink-strong); }
.nj-seo blockquote { margin: 8px 0; padding-left: 12px; border-left: 2px solid #374151; color: var(--nj-muted); }
.nj-seo .nj-seo-rank { margin: 8px 0 0 0; }
.nj-seo .nj-seo-rank li { padding: 4px 0; }
.nj-seo thead th { color: var(--nj-ink-strong); font-weight: 600; }
.nj-seo ul.nj-seo-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.nj-foot { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid #1f2937; color: var(--nj-dim); font-size: 14px; line-height: 22px; }
.nj-foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.nj-foot nav a { color: var(--nj-muted); }
.nj-foot nav a:hover { color: var(--nj-pink); }
.nj-foot p + p { margin-top: 8px; }

@media (min-width: 640px) {
  .nj-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nj-stars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; }
  .nj-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) { .nj-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .nj-aside { display: block; }
  .nj-stars { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .nj-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .nj-toggle { display: block; }
  .nj-menu { display: none; position: absolute; left: 0; right: 0; top: 88px; z-index: 20; flex-direction: column; align-items: flex-start; padding: 16px; background: #0b0c16; border-bottom: 1px solid #1f2937; }
  .nj-menu.is-open { display: flex; }
}
@media (min-width: 1024px) { .nj-seeks { display: none; } }
@media (max-width: 1023px) {
  body:has(.nj-watch) .nj-top { height: 56px; }
  body:has(.nj-watch) .nj-menu { top: 56px; }
  .nj-watch { margin-top: 0; }
  .nj-player { margin: 0 -16px; border-radius: 0; }
}
@media (max-width: 639px) {
  .nj-hero h1 { font-size: 28px; line-height: 36px; }
  .nj-block h2 { font-size: 22px; line-height: 30px; }
  .nj-stars { padding: 20px 12px; gap: 24px 12px; }
}
