

:root {
  
  color-scheme: only light;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666666;
  --border: #d0d0d0;
  --accent: #d81b60;
  --hl: #fff7d6;
  --table-stripe: #f7f7f8;
  --container-w: 960px;
  
  --font-num: "JetBrains Mono", "Consolas", "Menlo", "Roboto Mono", monospace;
  
  --font-mono: "JetBrains Mono", "Consolas", "Menlo", "Roboto Mono", monospace;

  
  --font-base: "Hiragino Sans", "Noto Sans JP", "Noto Sans SC", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
  
  --font-brand: "Kiwi Maru", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
  
  --font-accent-deco: "Kaisei Decol", "Hiragino Mincho ProN", serif;
  
  --font-accent-dot: "DotGothic16", "Courier New", monospace;

  
  --accent-pink:   #d81b60;
  --accent-blue:   #3370aa;
  --accent-yellow: #d4a017;
  --accent-green:  #4ca36b;
  --accent-purple: #7e57c2;
  
  --accent-teal:   #2ea7ad;

  
  --th-bg: #f3f3f5;
}

html, body {
  margin: 0;
  padding: 0;
  
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
}

* { box-sizing: border-box; }


a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 16px;
}


.site-header {
  
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(4px);
  -webkit-backdrop-filter: saturate(140%) blur(4px);
  padding: 12px 0;
  margin-bottom: 24px;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f6b3cf, #f1e092, #a4dcc4, #aacdf2, #c9b8ec);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.site-title {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--fg);
  
  font-family: var(--font-brand);
  
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  white-space: nowrap;
}

.site-title-ja {
  font-size: 0.72em;
  font-weight: 400;
  color: var(--muted);
}

.site-title-en {
  font-weight: 700;
  color: var(--fg);
}
.site-nav a {
  margin-left: 16px;
  color: var(--muted);
  
  transition: color 0.12s ease;
}

.site-nav a:first-child {
  margin-left: 0;
}
.site-nav a:hover {
  color: var(--accent-pink);
  text-decoration: none;
}

.site-nav a.nav-sep-before {
  margin-left: 32px;
  position: relative;
}
.site-nav a.nav-sep-before::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 0.2em;
  bottom: 0.2em;
  border-left: 1px solid var(--border);
}

.site-nav a.is-active {
  color: var(--accent-pink);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-pink);
  padding-bottom: 2px;
}

.mobile-nav-overlay-list li.nav-sep-before {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.mobile-nav-overlay-list a.is-active {
  color: var(--accent-pink);
  font-weight: 600;
}


#pageFooter {
  margin-top: 64px;
  border-top: 1px solid #fce7f3;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 100%);
  font-size: 0.9em;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 28px 16px 30px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px 40px;
}
.footer-site-name {
  margin: 0 0 8px;
  font-size: 1.1em;
  font-weight: 700;
  
  font-family: var(--font-brand);
}
.footer-site-name a {
  color: var(--fg);
  text-decoration: none;
}
.footer-site-name a:hover { color: var(--accent-pink); }
.footer-contact {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  
  font-family: var(--font-brand);
}
.footer-contact a { color: var(--fg); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: #be185d;
  text-decoration: none;
  width: fit-content;
}
.footer-nav a:hover { text-decoration: underline; }


.subtitle-embargo-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 2px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.subtitle-embargo-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.subtitle-embargo-switch-track {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 38px;
  height: 22px;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.subtitle-embargo-switch-track:has(.subtitle-embargo-switch-input:checked) {
  background: var(--accent-pink);
}
.subtitle-embargo-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.subtitle-embargo-switch-input:checked ~ .subtitle-embargo-switch-thumb {
  transform: translateX(16px);
}
.subtitle-embargo-switch-input:focus-visible ~ .subtitle-embargo-switch-thumb {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
}


.footer-sister {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-sister-link {
  display: inline-block;
  width: fit-content;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f4c6dd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.footer-sister-link:hover,
.footer-sister-link:focus-visible {
  border-color: var(--accent-pink);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.16);
  transform: translateY(-1px);
}
.footer-sister-banner {
  display: block;
  width: 200px;
  height: auto;
}

.footer-sister-link.sister-site-text-card {
  width: 200px;
  box-sizing: border-box;
  padding: 0 8px;
  font-size: 13px;
  gap: 0;
  text-decoration: none;
}
.footer-sister-link.sister-site-text-card .sister-site-text-card-ja { font-size: 0.85em; }
.footer-sister-link.sister-site-text-card .sister-site-text-card-en { font-size: 1.3em; }
.footer-sister-link.sister-site-text-card-news {
  border-color: #c2d6ff;
}
.footer-sister-link.sister-site-text-card-news:hover,
.footer-sister-link.sister-site-text-card-news:focus-visible {
  border-color: #3366cc;
  box-shadow: 0 2px 8px rgba(51, 102, 204, 0.16);
}
.footer-legal {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed #f4c6dd;
}
.footer-legal p {
  margin: 4px 0;
  font-size: 0.86em;
  line-height: 1.7;
}
.footer-copyright {
  margin: 16px 0 0;
  font-weight: 600;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.footer-ga-off {
  display: none;
  margin: 6px 0 0;
  font-size: 0.8em;
  color: var(--muted);
}
html[data-ga-off] .footer-ga-off {
  display: block;
}


.breadcrumbs ol {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 0.9em;
  color: var(--muted);
}
.breadcrumbs li { display: inline; }
.breadcrumbs li + li::before {
  content: " › ";
  color: var(--border);
  margin: 0 4px;
}



h1 {
  font-size: 1.65em;
  margin-top: 0;
  
  border-bottom: 3px solid var(--accent-pink);
  padding-bottom: 6px;
}

h1:has(+ .page-coverage),
h1:has(+ .page-subline) { margin-bottom: 4px; }
h2 {
  font-size: 1.25em;
  margin-top: 32px;
  border-bottom: 1px solid var(--border);
  padding: 0 0 4px 10px;
  
  border-left: 4px solid var(--accent-purple);
}
h3 {
  font-size: 1.05em;
  margin-top: 24px;
  padding-left: 12px;
  position: relative;
}
h3::before {
  
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}


.lead { font-size: 1.05em; color: var(--muted); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
}
th, td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--table-stripe); font-weight: 600; }
table.numeric td.num,
table.numeric th.num {
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
table tr:nth-child(even) td { background: #fcfcfc; }




.series-card-list {
  list-style: none;
  margin: 12px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  
  counter-reset: series-card-no;
}

.series-card-list > li {
  display: block;
  list-style: none;
}
.series-card {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--bg, #fff);
  transition: border-color 150ms ease, background-color 150ms ease;
  min-width: 0;
  overflow: hidden;
}
.series-card:hover,
.series-card:focus-within {
  border-color: var(--accent-pink, #ec4899);
  background-color: var(--surface-2, #fff7fb);
}


.series-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.series-card-title {
  
  margin: 0;
  padding-left: 0;
  font-size: 1.06em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-pink, var(--fg));
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  
  position: static;
}
.series-card-title::before {
  
  content: none;
}

.series-card-no {
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  margin-right: 0.4em;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--accent-pink, #ec4899);
  color: #fff;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.7em;
  line-height: 1;
}
.series-card-no::before {
  counter-increment: series-card-no;
  content: counter(series-card-no, decimal-leading-zero);
}


.series-card-meta {
  display: flex;
  flex-wrap: wrap;
  
  align-items: baseline;
  gap: 4px 12px;
  font-size: 0.88em;
}

.series-card-period {
  
  min-width: 17em;
}

.series-index-root .series-kind-toggles {
  display: none;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 6px 0 14px;
  font-size: 0.9em;
  
  --rtl-tv: #3b82c4;
}
.series-index-root[data-active-tab="year"] .series-kind-toggles {
  display: flex;
}

.precure-badge-line {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px 6px;
}

.precure-badge-line .precure-badge {
  font-size: 0.72em;
  padding: 0 6px;
}
@media (max-width: 640px) {
  .precure-badge-line {
    flex-wrap: wrap;
  }
}

.series-card-children-sub {
  flex: 1 0 100%;
  padding-left: 1em;
  font-size: 1em;
  margin-top: 2px;
}

.series-index-root[data-hide-tv] [data-kind-group="tv"],
.series-index-root[data-hide-movie] [data-kind-group="movie"],
.series-index-root[data-hide-spring] [data-kind-group="spring"],
.series-index-root[data-hide-spinoff] [data-kind-group="spinoff"] {
  display: none;
}

.series-year-list .series-card-no {
  display: none;
}

.series-year-list [data-kind-group="movie"] .series-card-period,
.series-year-list [data-kind-group="spring"] .series-card-period {
  min-width: 8.5em;
}

.series-card-list-movie .series-card-period {
  min-width: 8.5em;
}
.series-card-count {
  
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.series-card-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.series-card-period-main,
.series-card-count-main {
  white-space: nowrap;
}

.series-card-count-sub {
  font-size: 0.85em;
  white-space: nowrap;
}

.series-card-period .estimate-note,
.series-card-count .estimate-note {
  position: static;
  margin-left: 0;
  font-size: 0.85em;
  line-height: 1.2;
}


@media (max-width: 640px) {
  .series-card-period {
    min-width: 0;
  }
  .series-card-count {
    margin-left: auto;
  }
}


.series-card-sub {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88em;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.series-card-sub .precure-badge,
.series-card-sub a.staff-name,
.series-card-sub a.role-badge {
  pointer-events: auto;
}

.series-card-sub .staff-badges-row {
  font-size: 0.8em;
}

@media (min-width: 900px) {
  .series-card-sub:has(> .precure-badges-row) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 16px;
    align-items: start;
  }
}

.series-card-sub .precure-badges-row {
  padding: 6px 8px;
  background: #fdeef4;
  border: 1px solid #f6c6d8;
  border-radius: 8px;
}


.series-card-children {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.88em;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.series-card-children > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  
}

.series-card-children > li .movie-badge {
  flex: 0 0 auto;
  align-self: baseline;
}

.series-card-children-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.14em;
  font-weight: 600;
}
a.series-card-children-title {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
}
a.series-card-children-title:hover {
  text-decoration: underline;
}
.series-card-children-meta {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


.episode-list { font-variant-numeric: tabular-nums; }



.subtitle-display {
  font-size: 1.5em;
  line-height: 1.5;
  padding: 24px 16px;
  margin: 16px 0 24px;
  background: #fafafa;
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.subtitle-display ruby rt {
  font-size: 0.5em;
  color: var(--muted);
}

.subtitle-telop {
  text-align: center;
  line-height: 0;
}
.subtitle-telop img {
  display: inline-block;
  width: min(100%, var(--telop-w));
  height: auto;
}
@media (max-width: 640px) {
  
  .subtitle-telop img {
    width: min(100%, calc(var(--telop-w) * 8 / 15));
  }
}



.magazine-subtitle-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}
.magazine-subtitle-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95em;
  font-weight: 600;
}
.magazine-subtitle-badge-published     { background: #e2f4e2; color: #1e6b2e; border-color: #b7dfb9; }
.magazine-subtitle-badge-not-disclosed { background: #fdeaea; color: #a12727; border-color: #f2bcbc; }
.magazine-subtitle-badge-undecided     { background: #eef1f5; color: #4b5563; border-color: #d3dae3; }

.magazine-subtitle-badge-not-listed {
  background: transparent;
  color: var(--muted);
  border-color: #d3dae3;
  font-weight: 500;
}
.magazine-subtitle-issue {
  color: var(--muted);
  font-size: 0.9em;
}


.youtube-trailer {
  margin: 16px 0 24px;
}
.youtube-trailer iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}



.youtube-embed {
  margin: 12px 0 16px;
}
.youtube-embed iframe {
  display: block;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.theme-songs-list .ts-youtube {
  margin: 8px 0 10px;
}

.yt-facade {
  position: relative;
  width: 560px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.yt-facade-play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.yt-facade-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-facade-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  transition: background-color 0.15s;
}
.yt-facade-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -14px 0 0 -8px;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff;
}
.yt-facade-play:hover::before,
.yt-facade-play:focus-visible::before {
  background: var(--accent);
}
.yt-facade-play:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
}



.format-table thead th { text-align: center; vertical-align: middle; }

.format-table thead .th-note { font-size: 60%; }
.format-table .partname { font-weight: 500; }

.format-table th,
.format-table td { white-space: nowrap; }
.format-table .timecode {
  
  font-variant-numeric: tabular-nums;
  padding-left: 6px;
  padding-right: 6px;
  font-size: 0.95em;
}
.format-table .duration {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  padding-left: 6px;
  padding-right: 6px;
}

.format-table.numeric td.num {
  font-family: var(--font-accent-dot);
}
.format-table .empty { color: var(--border); }
.format-table .notes {
  
  white-space: normal;
  width: 100%;
  font-size: 0.85em;
  color: var(--muted);
}


.fmt-bars { margin: 12px 0 4px; }
.fmt-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.fmt-bar-medium {
  flex: 0 0 3.2em;
  font-size: 0.85em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.fmt-bar-track {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fmt-bar {
  display: flex;
  gap: 1px;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
}
.fmt-seg {
  flex-basis: 0;
  flex-shrink: 1;
  min-width: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fmt-seg-label {
  font-size: 0.72em;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.65);
}
.fmt-bar-total {
  flex: 0 0 auto;
  
  font-family: var(--font-accent-dot);
  font-variant-numeric: tabular-nums;
  font-size: 0.85em;
  color: var(--muted);
  white-space: nowrap;
}

.fmt-p-avant   { background: #c9b8ec; }
.fmt-p-op      { background: #f6b3cf; }
.fmt-p-a       { background: #aacdf2; }
.fmt-p-b       { background: #a4dcc4; }
.fmt-p-c       { background: #cfe6a3; }
.fmt-p-ed      { background: #f8cb96; }
.fmt-p-trailer { background: #f1e092; }
.fmt-p-sponsor { background: #e2e2e8; }
.fmt-p-misc    { background: #d7d7de; }
.fmt-p-cm      { background: repeating-linear-gradient(135deg, #ececf0 0 6px, #f8f8fa 6px 12px); }
.fmt-p-intro   { background: repeating-linear-gradient(135deg, #dfdfe6 0 6px, #efeff4 6px 12px); }
.fmt-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 4px 0 0;
  padding: 0 0 0 calc(3.2em + 8px);
  font-size: 0.8em;
  color: var(--muted);
}
.fmt-chip {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
}
.fmt-details {
  margin-top: 12px;
}

.fmt-table-scroll {
  overflow-x: auto;
}
.fmt-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9em;
  user-select: none;
  width: fit-content;
}
.fmt-details summary:hover { color: var(--fg); }
.fmt-details-note {
  
  text-align: right;
  margin: 6px 0 4px;
}
.fmt-details-note .help-tip { margin-left: 0; }
.fmt-details-note .help-tip-text {
  
  left: auto;
  right: 0;
}
@media (max-width: 560px) {
  
  .fmt-seg-s .fmt-seg-label { display: none; }
  .fmt-legend { padding-left: 0; }
}



.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--table-stripe);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
  user-select: none;
}
.help-tip:hover,
.help-tip:focus {
  color: var(--fg);
  border-color: var(--muted);
}
.help-tip:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 1px;
}
.help-tip-text {
  position: absolute;
  top: calc(100% + 6px);
  left: -6px;
  z-index: 30;
  width: max-content;
  max-width: min(440px, 78vw);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--fg);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  
  display: none;
}
.help-tip:hover .help-tip-text,
.help-tip:focus .help-tip-text,
.help-tip:focus-within .help-tip-text {
  display: block;
}


.section-refpoint {
  margin: 8px 0 0;
  text-align: right;
  font-size: 0.78em;
  color: var(--muted);
}



.charinfo-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.charinfo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 4.2em;
  padding: 8px 8px 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg, #fff);
}
.charinfo-item.is-revival {
  order: 1;
  flex: 1 1 300px;
  max-width: 440px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
}
.charinfo-glyph {
  flex: 0 0 auto;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1;
  background: var(--table-stripe);
  border-radius: 6px;
}
.charinfo-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}
.charinfo-item.is-revival .charinfo-info {
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.charinfo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
.charinfo-count {
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.charinfo-info .badge {
  display: inline-block;
  font-size: 0.72em;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
}
.charinfo-info .badge-first   { background: var(--hl); color: #8a6d00; border-color: #e5d375; }
.charinfo-info .badge-uniq    { background: #ffe6f1; color: #a31a5b; border-color: #f4b8d6; }
.charinfo-info .badge-revival { background: #e5f0fa; color: #1d5e96; border-color: #b9d7ef; }
.charinfo-detail {
  font-size: 0.78em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.charinfo-detail-link { color: inherit; text-decoration: none; }
.charinfo-detail-link:hover { color: var(--accent, #a31a5b); text-decoration: underline; }
@media (max-width: 560px) {
  .charinfo-item.is-revival { max-width: none; }
}



.partstat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.partstat-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
}
.partstat-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.partstat-head .fmt-chip {
  flex: 0 0 auto;
  align-self: center;
}
.partstat-partname { font-weight: 600; }
.partstat-duration {
  margin-left: auto;
  
  font-family: var(--font-accent-dot);
  font-variant-numeric: tabular-nums;
  font-size: 1.3em;
}
.partstat-scope {
  padding: 8px 0 2px;
  border-top: 1px dashed var(--border);
}
.partstat-scope-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.partstat-scope-label {
  font-size: 0.8em;
  color: var(--muted);
}
.partstat-rank {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
}

.upcoming-date { white-space: nowrap; }

.charinfo-list + .partstat-cards { margin-top: 16px; }
.partstat-detail {
  font-size: 0.75em;
  color: var(--muted);
}
.partstat-tie {
  margin-left: 6px;
  font-size: 0.85em;
  color: var(--muted);
}

.submetric-len    { background: #f6b3cf; }
.submetric-kanji  { background: #f8cb96; }
.submetric-symbol { background: #cfe6a3; }

.hensachi-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 9px;
}
.hensachi-label {
  flex: 0 0 auto;
  font-size: 0.75em;
  color: var(--muted);
}
.hensachi-gauge {
  display: block;
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  
  border-bottom: 1px solid var(--border);
}
.hensachi-hist {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 1px;
}
.hensachi-hist > span {
  flex: 1 1 0;
  
  opacity: 0.35;
  border-radius: 1px 1px 0 0;
}
.hensachi-mid {
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.hensachi-marker {
  position: absolute;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  
  transform: translate(-50%, 50%);
}
.hensachi-value {
  flex: 0 0 3.4em;
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
}



.fact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.fact {
  flex: 1 1 auto;
  min-width: 9em;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
}
.fact-label {
  display: block;
  font-size: 0.75em;
  color: var(--muted);
  margin-bottom: 2px;
  white-space: nowrap;
}
.fact-value {
  font-size: 1.05em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fact-value.is-wrap {
  white-space: normal;
}


.button-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--accent-pink);
  border-radius: 999px;
  color: var(--accent-pink);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.button-link:hover {
  background: var(--accent-pink);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(233, 30, 99, 0.3);
}

.fact-has-help {
  position: relative;
  cursor: help;
}
.fact-has-help .fact-label {
  width: fit-content;
  border-bottom: 1px dotted var(--muted);
  padding-bottom: 1px;
}
.fact-has-help .help-tip-text {
  top: calc(100% + 4px);
  left: -1px;
}
.fact-has-help:hover .help-tip-text,
.fact-has-help:focus .help-tip-text,
.fact-has-help:focus-within .help-tip-text {
  display: block;
}
.fact-has-help:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 1px;
}


.theme-songs-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.theme-songs-list .ts-card {
  margin: 0;
  padding: 10px 14px 12px;
  background: #fafafa;
  border-left: 3px solid var(--accent-pink);
  border-radius: 0 6px 6px 0;
  line-height: 1.6;
}


.theme-songs-list .ts-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.theme-songs-list .ts-headline.ts-headline-multi {
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}
.theme-songs-list .ts-kinds {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 0 0 auto;
}
.theme-songs-list .ts-kind-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.theme-songs-list .ts-headline-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.theme-songs-list .ts-sizes.ts-sizes-inline {
  margin: 0 0 0 auto;
  align-self: center;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .theme-songs-list .ts-headline.ts-headline-multi {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .theme-songs-list .ts-headline-multi > .ts-kinds { order: 1; }
  .theme-songs-list .ts-headline-multi > .ts-sizes-inline { order: 2; }
  .theme-songs-list .ts-headline-multi > .ts-headline-main {
    order: 3;
    flex: 1 1 100%;
  }
}

.theme-songs-list .ts-card:has(> .ts-sizes-side) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
}
.theme-songs-list .ts-card:has(> .ts-sizes-side) > * {
  grid-column: 1;
}
.theme-songs-list .ts-card > .ts-sizes-side {
  grid-column: 2;
  grid-row: 1 / span 2;
}
@media (max-width: 600px) {
  .theme-songs-list .ts-card:has(> .ts-sizes-side) {
    display: block;
  }
}

.theme-songs-list .ts-sizes {
  list-style: none;
  margin: 2px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, max-content) max-content max-content;
  align-items: center;
  justify-items: start;
  
  column-gap: 0;
  row-gap: 4px;
}
.theme-songs-list .ts-size-row {
  display: contents;
}
.theme-songs-list .ts-size-row > .ts-size-range {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  font-size: 0.82em;
  margin-right: 8px;
}
.theme-songs-list .ts-size-row > .recording-tracks-kind-size {
  grid-column: 2;
}
.theme-songs-list .ts-size-row > .ts-play {
  grid-column: 3;
  margin-left: 8px;
}

.theme-songs-list .recording-tracks-kind-badge.recording-tracks-kind-size.ts-size-unaired {
  background: transparent;
  color: var(--muted);
  border: 1px dashed currentColor;
  cursor: help;
}
.theme-songs-list .ts-sizes.ts-sizes-side {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  justify-items: end;
  row-gap: 8px;
}
@media (min-width: 601px) {
  .theme-songs-list .ts-card > .ts-sizes-side {
    margin: 0;
  }
}
.theme-songs-list .ts-kind {
  display: inline-block;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent-pink);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.theme-songs-list .ts-title {
  font-weight: 600;
  font-size: 1.06em;
}
.theme-songs-list .ts-title a {
  color: inherit;
}
.theme-songs-list .ts-title a:hover {
  color: var(--accent-pink);
}
.theme-songs-list .ts-bcast {
  font-size: 0.88em;
}

.theme-songs-list .ts-range {
  font-size: 0.88em;
}


.theme-songs-list .ts-credits {
  margin: 2px 0 0 8px;
  font-size: 0.94em;
}

.theme-songs-list .ts-credit-vocals .ts-credit-names {
  font-size: 1.064em;
  font-weight: 500;
}


.ep-pagination {
  margin: 8px 0 16px;
}
.ep-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  align-items: center;
  justify-content: center;
}
.ep-pagination li {
  display: block;
}
.ep-pagination a,
.ep-pagination span.current,
.ep-pagination span {
  
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6em;
  height: 2em;
  padding: 0 8px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  color: var(--fg);
  font-size: 0.9em;
  line-height: 1;
}
.ep-pagination a:hover {
  border-color: var(--accent);
  background: #fafafa;
  text-decoration: none;
}
.ep-pagination span.current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  
  cursor: default;
}

.ep-pagination li.page-prev { margin-right: 8px; }
.ep-pagination li.page-next { margin-left: 8px; }
.ep-pagination li.page-prev.disabled span,
.ep-pagination li.page-next.disabled span {
  color: var(--border);
  background: #fafafa;
  cursor: not-allowed;
}

.ep-pagination li.ellipsis span {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  cursor: default;
  
}

.ep-pagination-top {
  margin-bottom: 24px;
}
.ep-pagination-bottom {
  margin-top: 24px;
}


.credit-section {
  
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.6;
  color: #222;
}
.credit-section h3.credit-kind-heading {
  
  font-size: 1.05em;
  font-weight: bold;
  margin: 24px 0 12px 0;
  padding: 0 0 4px 0;
  border: none;
  border-bottom: 1px solid #ccc;
}

.credit-section h3.credit-kind-heading::before {
  display: none;
}

.credit-section .card  { margin-top: 40px; }
.credit-section .card:first-child { margin-top: 0; }
.credit-section .tier  { margin-top: 24px; }
.credit-section .tier:first-child { margin-top: 0; }
.credit-section .group { margin-top: 14px; }
.credit-section .group:first-child { margin-top: 0; }
.credit-section .role  { margin-top: 6px; }
.credit-section .role:first-child { margin-top: 0; }


.credit-section .card-versions {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.credit-section .card-versions:first-child { margin-top: 0; }
.credit-section .card-version { padding: 10px 14px 14px; }
.credit-section .card-version-upper { background: #fdf1f6; }
.credit-section .card-version-lower { background: #eef4fb; border-top: 1px solid var(--border); }
.credit-section .card-version-label {
  margin: 0 0 8px;
  font-size: 0.8em;
  font-weight: bold;
  color: var(--muted);
}
.credit-section .card-version .card:first-of-type { margin-top: 0; }


.credit-section table.fallback-table tr.block-break > td,
.credit-section table.fallback-vc-table tr.block-break > td {
  padding-top: 6px;
}

.credit-section table.fallback-vc-table tr.cooperation-row > td {
  padding-top: 6px;
}

.credit-section .film-title-card {
  display: inline-flex;
  flex-direction: column;
}
.credit-section .film-title-marks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4em;
}
.credit-section .film-title-marks.marks-split {
  justify-content: space-between;
}

.credit-section .film-end-card {
  display: inline-flex;
  flex-direction: column;
}
.credit-section .film-end-marks {
  display: flex;
  justify-content: flex-end;
}

.credit-section .film-end-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  margin-bottom: 0.8em;
}
.credit-section .film-end-title > span:nth-child(1) { font-size: var(--film-end-title-l1, 1em); }
.credit-section .film-end-title > span:nth-child(2) { font-size: var(--film-end-title-l2, 1em); }
.credit-section .film-end-title > span:nth-child(3) { font-size: var(--film-end-title-l3, 1em); }
.credit-section .film-end-title > span:nth-child(4) { font-size: var(--film-end-title-l4, 1em); }
.credit-section .film-end-title > span:nth-child(5) { font-size: var(--film-end-title-l5, 1em); }
.credit-section .film-end-title > span:nth-child(6) { font-size: var(--film-end-title-l6, 1em); }

.credit-section .film-end-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
}
.credit-section .film-end-row .film-end-text {
  text-align: center;
}

.credit-section .film-end-row .film-end-title,
.credit-section .film-end-row .film-rating {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .credit-section .film-end-row .film-end-title,
  .credit-section .film-end-row .film-rating {
    white-space: normal;
  }
}

.credit-section .cj-mark {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.75em;
  line-height: 1.4;
  vertical-align: middle;
  opacity: 0.8;
}

.credit-section .role-content-header {
  margin: 0 0 8px calc(var(--credit-role-name-w, 8em) + 16px);
}


@media (max-width: 640px) {
  table.cv-align,
  table.cv-align > tbody,
  table.cv-align > tbody > tr {
    display: block !important;
  }
  table.cv-align > tbody > tr > td {
    display: inline-block !important;
  }
}


.credit-section table.fallback-table {
  border-collapse: collapse;
  margin: 0;
  width: auto;
}
.credit-section table.fallback-table td {
  border: none;
  background: transparent;
  padding: 0 16px 0 0;
  vertical-align: top;
}
.credit-section table.fallback-table tr:nth-child(even) td {
  background: transparent;
}
.credit-section table.fallback-table td.role-name {
  
  font-weight: bold;
  min-width: 8em;
  width: var(--credit-role-name-w, auto);
  text-align: right;
  padding-right: 16px;
  white-space: nowrap;
}
.credit-section table.fallback-table td.entry-cell {
  padding-right: 24px;
}

.credit-section .credit-honorific {
  font-size: 80%;
}

.credit-section table.fallback-table td.affil-prefix {
  font-size: 80%;
  color: var(--muted, #777);
  padding-right: 14px;
  min-width: 8em;
  vertical-align: top;
  white-space: nowrap;
}


.credit-section table.fallback-vc-table {
  border-collapse: collapse;
  margin: 0;
  width: auto;
}
.credit-section table.fallback-vc-table td {
  border: none;
  background: transparent;
  padding: 0 16px 0 0;
  vertical-align: top;
}
.credit-section table.fallback-vc-table tr:nth-child(even) td {
  background: transparent;
}
.credit-section table.fallback-vc-table td.role-name {
  
  font-weight: bold;
  min-width: 8em;
  width: var(--credit-role-name-w, auto);
  text-align: right;
  padding-right: 16px;
  white-space: nowrap;
}
.credit-section table.fallback-vc-table td.character-cell {
  
  min-width: 6em;
  width: var(--credit-character-cell-w, auto);
  padding-right: 16px;
}
.credit-section table.fallback-vc-table td.actor-cell {
  
  min-width: 12em;
  padding-right: 24px;
}

.credit-section table.fallback-vc-table td.actor-cell[rowspan] {
  vertical-align: middle;
}

.credit-section table.fallback-vc-table td.character-cell[rowspan] {
  vertical-align: middle;
}
.credit-section table.fallback-vc-table td.character-cell.dim {
  color: #ccc;
}

.credit-section table.fallback-table td.block-heading,
.credit-section table.fallback-vc-table td.block-heading {
  font-size: 0.9em;
  color: #666;
}

.credit-section table.fallback-table td.block-heading-mark,
.credit-section table.fallback-vc-table td.block-heading-mark {
  text-align: center;
}

.credit-section .block-heading-italic {
  font-style: italic;
}

.credit-section table.fallback-vc-table tr.cooperation-row > td.role-name {
  text-align: right;
  font-weight: bold;
  padding-right: 16px;
  white-space: nowrap;
}


.muted { color: var(--muted); }
.empty-row { color: var(--muted); font-style: italic; }


.series-year {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
  margin-left: 0.25em;
}


.products-tabs {
  margin: 8px 0 16px;
}
.products-tabs .tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.products-tabs .tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 8px 18px;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95em;
  color: var(--muted);
  border-radius: 6px 6px 0 0;
  line-height: 1.4;
}
.products-tabs .tab-btn:hover:not(.is-active) {
  background: var(--table-stripe);
  color: var(--fg);
}
.products-tabs .tab-btn.is-active {
  background: #fff;
  color: var(--fg);
  border-color: var(--border);
  border-bottom: 2px solid #fff;
  font-weight: 500;
}
.products-tabs .tab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.products-tabs a.tab-btn,
.products-tabs a.tab-btn:hover {
  
  display: block;
  align-content: center;
  box-sizing: border-box;
  text-decoration: none;
}

.products-tabs .tab-panel { display: none; }
.products-tabs .tab-panel.is-active { display: block; }
.products-tabs .tab-panel[hidden] { display: none; }

.product-links-note {
  margin: 6px 0 0;
  font-size: 0.82em;
}
@keyframes track-target-flash {
  0%   { background-color: var(--hl, #fff7d6); }
  100% { background-color: transparent; }
}


.recording-tracks-kind-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.recording-tracks-kind-badge.recording-tracks-kind-size {
  background: rgba(92, 174, 92, 0.14);
  color: #3c823c;
  border-color: rgba(92, 174, 92, 0.40);
}
@keyframes cue-card-target-flash {
  0%   { background-color: var(--hl, #fff7d6); }
  100% { background-color: transparent; }
}



.ep-bgm-common-staff {
  margin: 4px 0 2px;
  font-size: 0.9em;
}
.ep-bgm-common-staff a,
.ep-bgm-staff a {
  color: inherit;
  text-decoration: none;
}
.ep-bgm-common-staff a:hover,
.ep-bgm-common-staff a:focus-visible,
.ep-bgm-staff a:hover,
.ep-bgm-staff a:focus-visible {
  text-decoration: underline;
}
h3.ep-bgm-part {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 5px;
  padding: 0;
  border: 0;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
h3.ep-bgm-part::before {
  content: none;
}
h3.ep-bgm-part::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}
.ep-bgm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ep-bgm-card {
  display: grid;
  grid-template-columns: 1.9em 4.2em minmax(0, 1fr) minmax(0, 1.25fr) 2.8em 1.9em;
  align-items: center;
  column-gap: 10px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg, #fff);
  
  position: relative;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.ep-bgm-card[data-art-track-row].is-playing {
  background: var(--hl);
  box-shadow: inset 3px 0 0 var(--accent-pink);
}

.ep-bgm-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.8em;
  line-height: 1;
  white-space: nowrap;
}
.ep-bgm-no[data-kind="BGM"] { background: #22c55e; }
.ep-bgm-no[data-kind="SONG"] { background: var(--accent-pink, #ec4899); }
.ep-bgm-mno {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-bgm-menu {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.ep-bgm-title {
  color: var(--fg);
}

a.ep-bgm-card-link,
a.ep-bgm-card-link:hover,
a.ep-bgm-card-link:focus-visible {
  color: var(--fg);
  text-decoration: none;
}
a.ep-bgm-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 6px;
}
.ep-bgm-card:has(a.ep-bgm-card-link:hover),
.ep-bgm-card:has(a.ep-bgm-card-link:focus-visible) {
  border-color: var(--accent-pink);
  background: var(--surface-2, #fff7fb);
}
.ep-bgm-disc,
.ep-bgm-play,
.ep-bgm-staff a {
  position: relative;
  z-index: 2;
}
.ep-bgm-staff {
  display: inline-flex;
  margin-left: 0.6em;
  font-size: 0.85em;
  line-height: 1.5;
  vertical-align: baseline;
}
.ep-bgm-disc {
  grid-column: 4;
  min-width: 0;
  font-size: 0.85em;
  line-height: 1.4;
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ep-bgm-disc:hover .ep-bgm-track-title,
.ep-bgm-disc:focus-visible .ep-bgm-track-title {
  text-decoration: underline;
}
.ep-bgm-disc-track {
  margin-right: 0.4em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ep-bgm-length {
  grid-column: 5;
  text-align: right;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.ep-bgm-play {
  grid-column: 6;
  font-size: 0.85em;
}

.ep-bgm:not([data-art-track-list]) .ep-bgm-card {
  grid-template-columns: 1.9em 4.2em minmax(0, 1fr) minmax(0, 1.25fr) 2.8em;
}

@media (max-width: 720px) {
  .ep-bgm-card {
    grid-template-columns: 1.9em 3.6em minmax(0, 1fr) 2.8em 1.9em;
    column-gap: 8px;
    row-gap: 1px;
  }
  .ep-bgm-no,
  .ep-bgm-mno,
  .ep-bgm-length,
  .ep-bgm-play {
    grid-row: 1 / span 2;
  }
  .ep-bgm-menu { grid-column: 3; grid-row: 1; }
  .ep-bgm-disc { grid-column: 3; grid-row: 2; }
  .ep-bgm-length { grid-column: 4; }
  .ep-bgm-play { grid-column: 5; }
  .ep-bgm:not([data-art-track-list]) .ep-bgm-card {
    grid-template-columns: 1.9em 3.6em minmax(0, 1fr) 2.8em;
  }
}



.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header-bottom {
  
  margin-top: 6px;
}
.site-search {
  position: relative;
  flex-shrink: 0;
  width: 16em;
}
#site-search-input {
  width: 100%;
  
  padding: 6px 30px 6px 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92em;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
#site-search-input:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}

.site-search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--table-stripe);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  pointer-events: none;
}
.site-search:focus-within .site-search-kbd {
  display: none;
}
@media (max-width: 768px) {
  .site-search-kbd { display: none; }
  
  #site-search-input { font-size: 16px; }
}


.site-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 28em;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}
.site-search-results.open {
  display: block;
}

.site-search-result-item {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 4px 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  align-items: baseline;
}
.site-search-result-item:last-child {
  border-bottom: none;
}
.site-search-result-item:hover,
.site-search-result-item.selected {
  background: #fdf2f8;
}

.site-search-result-kind {
  font-size: 0.78em;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 3px;
  padding: 1px 6px;
  text-align: center;
  white-space: nowrap;
  align-self: center;
}

.site-search-result-kind-series    { background: #fef3c7; color: #92400e; }
.site-search-result-kind-episode   { background: #fef9c3; color: #854d0e; }
.site-search-result-kind-precure   { background: #fce7f3; color: #9d174d; }
.site-search-result-kind-character { background: #fae8ff; color: #86198f; }
.site-search-result-kind-person    { background: #dbeafe; color: #1e40af; }
.site-search-result-kind-company   { background: #d1fae5; color: #065f46; }
.site-search-result-kind-song      { background: #e0e7ff; color: #3730a3; }
.site-search-result-kind-product   { background: #ffedd5; color: #9a3412; }
.site-search-result-kind-role      { background: #ccfbf1; color: #115e59; }
.site-search-result-kind-font      { background: #e5e7eb; color: #1f2937; }

.site-search-result-title {
  font-size: 0.95em;
  word-break: break-word;
}
.site-search-result-sub {
  grid-column: 2;
  font-size: 0.82em;
  color: #6b7280;
}

.site-search-no-results {
  padding: 12px;
  font-size: 0.9em;
  color: #6b7280;
  text-align: center;
}


@media (max-width: 768px) {
  .mobile-nav-overlay-search .site-search {
    display: block;
    width: 100%;
  }
  .mobile-nav-overlay-search .site-search-results {
    width: 100%;
    max-width: 100%;
    right: auto;
    left: 0;
  }
  .site-search-results {
    width: 100%;
  }
}


.ep-subtitle-guard {
  filter: blur(6px);
  user-select: none;
  transition: filter 0.15s ease;
}

.ep-subtitle-guard rt {
  filter: blur(4px);
  transition: filter 0.15s ease;
}
.ep-subtitle-guard.is-revealed,
.ep-subtitle-guard.is-revealed rt {
  filter: none;
  user-select: auto;
}

.subtitle-char-info-guard:not(.is-revealed) {
  display: none;
}


.subtitle-embargo-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.subtitle-embargo-dialog[hidden] {
  display: none;
}
.subtitle-embargo-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.subtitle-embargo-dialog-panel {
  position: relative;
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  padding: 24px;
}
.subtitle-embargo-dialog-title {
  margin: 0 0 10px;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.5;
}
.subtitle-embargo-dialog-body {
  margin: 0 0 20px;
  font-size: 0.9em;
  color: var(--muted);
  line-height: 1.7;
}
.subtitle-embargo-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.subtitle-embargo-dialog-btn {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  padding: 8px 18px;
  font-size: 0.92em;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.subtitle-embargo-dialog-btn:hover {
  border-color: var(--accent-pink);
}
.subtitle-embargo-dialog-btn-primary {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #fff;
}
.subtitle-embargo-dialog-btn-primary:hover {
  background: #d81a58;
  border-color: #d81a58;
}

body.subtitle-embargo-dialog-open {
  overflow: hidden;
}
.key-staff-name { font-size: 0.98em; }
.key-staff-name {
  
  color: var(--fg);
}
.key-staff-range {
  
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.85em;
}

.bgms-card-link {
  
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  text-decoration: none;
  
  color: transparent;
}
.bgms-card-link:focus-visible {
  
  outline: 2px solid var(--accent-pink);
  outline-offset: -2px;
}
a.staff-name:hover,
a.staff-name:focus-visible {
  text-decoration: underline;
}

.credit-small-suffix {
  font-size: 0.8em;
}


.role-badge[data-role-code="LYRICS"] {
  
  background: rgba(232, 74, 95, 0.13);
  color: #c0354c;
  border-color: rgba(232, 74, 95, 0.42);
}
.role-badge[data-role-code="COMPOSITION"] {
  
  background: rgba(217, 167, 58, 0.16);
  color: #a17821;
  border-color: rgba(217, 167, 58, 0.45);
}
.role-badge[data-role-code="ARRANGEMENT"],
.role-badge[data-role-code="MEDLEY_ARRANGEMENT"] {
  
  background: rgba(92, 174, 92, 0.16);
  color: #3c823c;
  border-color: rgba(92, 174, 92, 0.45);
}
.role-badge[data-role-code="MUSIC"] {
  
  background: rgba(230, 120, 50, 0.14);
  color: #a8521a;
  border-color: rgba(230, 120, 50, 0.45);
}
.role-badge[data-role-code="VOCALS"],
.role-badge[data-role-code="BACKING_VOCALS"],
.role-badge[data-role-code="DIALOGUE"] {
  
  background: rgba(84, 112, 214, 0.14);
  color: #3b56b8;
  border-color: rgba(84, 112, 214, 0.45);
}
.role-badge[data-role-code="SERIES"] {
  
  background: rgba(107, 114, 128, 0.13);
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.42);
}
[class*="kg-"] { background: var(--kg); }




.movie-badge {
  display: inline-block;
  padding: 1px 8px;
  
  font-size: 0.78em;
  font-weight: 600;
  border-radius: 3px;
  vertical-align: 1px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}




.movie-badge-fall {
  background: rgba(135, 206, 235, 0.42);
  color: #1f5b80;
  border: 1px solid rgba(70, 130, 180, 0.55);
}


.movie-badge-cofeature {
  background: rgba(186, 160, 230, 0.35);
  color: #5b3f8c;
  border: 1px solid rgba(140, 110, 200, 0.5);
}


.movie-badge-spring {
  background: rgba(255, 192, 203, 0.55);
  color: #8b3a62;
  border: 1px solid rgba(219, 112, 147, 0.5);
}



.ep-prev-next-cards {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
}
.ep-prev-next-cards-top {
  margin-top: 8px;
  margin-bottom: 12px;
}
.ep-prev-next-cards-bottom {
  margin-top: 20px;
  margin-bottom: 4px;
}


.ep-prev-next-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  max-width: 50%;
}
.ep-prev-next-card:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 2px 6px rgba(233, 30, 99, 0.12);
  text-decoration: none;
  transform: translateY(-1px);
}
.ep-prev-next-card.disabled {
  background: #fafafa;
  border-color: #ececec;
  color: var(--border);
  cursor: not-allowed;
}
.ep-prev-next-card.disabled:hover {
  border-color: #ececec;
  box-shadow: none;
  transform: none;
}


.ep-prev-next-direction {
  font-size: 0.82em;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ep-prev-next-card-next .ep-prev-next-direction {
  text-align: right;
}


.ep-prev-next-series {
  font-size: 0.82em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-prev-next-card-next .ep-prev-next-series {
  text-align: right;
}


.ep-prev-next-label {
  font-size: 0.95em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: auto;
}
.ep-prev-next-card-next .ep-prev-next-label {
  text-align: right;
}


@media (max-width: 560px) {
  .ep-prev-next-cards {
    flex-direction: column;
    gap: 8px;
  }
  .ep-prev-next-card {
    max-width: none;
  }
  .ep-prev-next-card-next .ep-prev-next-direction,
  .ep-prev-next-card-next .ep-prev-next-label {
    text-align: left;
  }
}



.episodes-index-section {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

#episode-list .episodes-index-section {
  border: none;
  border-radius: 0;
  background: none;
  overflow: visible;
  margin: 0;
}

#episode-list .episodes-index-list {
  padding-left: 0;
  padding-right: 0;
}

.episodes-index-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  background: rgba(233, 30, 99, 0.05);
  border-bottom: 1px solid var(--border);
  font-size: 1.05em;
  font-weight: 600;
}
.episodes-index-series-link {
  font-weight: 600;
  font-size: 1.02em;
  color: var(--fg);
}
.episodes-index-series-link:hover {
  text-decoration: underline;
}
.episodes-index-period {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
  font-weight: 400;
  white-space: nowrap;
}
.episodes-index-count {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
  font-weight: 400;
  white-space: nowrap;
  margin-left: auto;
}


.episodes-index-list {
  list-style: none;
  margin: 0;
  padding: 8px 14px 12px;
}
.episodes-index-list li {
  display: grid;
  grid-template-columns: 4.2em 1fr 13em;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dotted #e5e7eb;
}
.episodes-index-list li:last-child {
  border-bottom: none;
}


@media (max-width: 640px) {
  .episodes-index-list li {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 6px 0;
  }
  .episodes-index-count {
    margin-left: 0;
  }
}




#tv-series,
#movies,
#otona,
#short-anime,
#event,
#spinoff {
  scroll-margin-top: 110px;
}
@media (max-width: 560px) {
  #tv-series,
  #movies,
  #otona,
  #short-anime,
  #event,
  #spinoff {
    scroll-margin-top: 60px;
  }
}






.external-links-section {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px dotted var(--border);
}
.external-links-section h2 {
  font-size: 1.05em;
}
.external-links-section ul {
  margin: 4px 0 0;
}
.external-links-section a {
  
  color: var(--accent-blue);
}


#external-links {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px dotted var(--border);
}
#external-links h2 {
  font-size: 1.05em;
}
.external-links {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.external-links > li { margin: 0; padding: 0; }
.external-link {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.92em;
  text-decoration: none;
  border: 1px solid #d1d5db;
  color: var(--fg);
  background: #f9fafb;
  white-space: nowrap;
}
.external-link:hover {
  background: #f0f1f3;
}
.external-link-youtube   { border-color: #ff0000; }


.credit-section table.fallback-vc-table tr.cooperation-row > td.role-name {
  
  text-align: inherit;
  font-weight: inherit;
  padding-right: inherit;
  white-space: inherit;
}
.credit-section table.fallback-vc-table tr.cooperation-row > td.character-cell {
  text-align: right;
  font-weight: bold;
  padding-right: 16px;
  white-space: nowrap;
}



.credit-section .leading-not-on-screen,
.credit-section .leading-not-on-screen a,
.credit-section .role-label-not-on-screen,
.credit-section .role-label-not-on-screen a,
.credit-section .role.not-on-screen,
.credit-section .role.not-on-screen a,
.credit-section tr.cooperation-row.not-on-screen > td,
.credit-section tr.cooperation-row.not-on-screen > td a {
  color: var(--muted);
}
.credit-section .role.not-on-screen table tr:first-child > td.role-name::before,
.credit-section .role.not-on-screen .role-rendered::before,
.credit-section tr.cooperation-row.not-on-screen > td.character-cell::before {
  content: "（";
}
.credit-section .role.not-on-screen table tr:last-child > td:last-child::after,
.credit-section .role.not-on-screen .role-rendered::after,
.credit-section tr.cooperation-row.not-on-screen > td.actor-cell::after {
  content: "）";
}

@media (max-width: 768px) {
  .credit-section {
    --credit-role-col-m: 8.5em;
    --credit-char-col-m: 8em;
  }
  .credit-section table.fallback-table,
  .credit-section table.fallback-table > tbody,
  .credit-section table.fallback-vc-table,
  .credit-section table.fallback-vc-table > tbody {
    display: block;
    max-width: none;
  }
  .credit-section table.fallback-table tr {
    display: grid;
    grid-template-columns: var(--credit-role-col-m) minmax(0, 1fr);
    column-gap: 10px;
  }
  .credit-section table.fallback-vc-table tr {
    display: grid;
    grid-template-columns: var(--credit-role-col-m) var(--credit-char-col-m) minmax(0, 1fr);
    column-gap: 10px;
  }
  
  .credit-section table.fallback-table td,
  .credit-section table.fallback-vc-table td,
  .credit-section table.fallback-table td.role-name,
  .credit-section table.fallback-table td.entry-cell,
  .credit-section table.fallback-table td.affil-prefix,
  .credit-section table.fallback-vc-table td.role-name,
  .credit-section table.fallback-vc-table td.character-cell,
  .credit-section table.fallback-vc-table td.actor-cell,
  .credit-section table.fallback-vc-table tr.cooperation-row > td.role-name,
  .credit-section table.fallback-vc-table tr.cooperation-row > td.character-cell {
    display: block;
    min-width: 0;
    width: auto;
    padding: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .credit-section table.fallback-table td.role-name,
  .credit-section table.fallback-vc-table td.role-name {
    grid-column: 1;
    white-space: normal;
  }
  .credit-section table.fallback-table td:not(.role-name) {
    grid-column: 2;
  }
  .credit-section table.fallback-table td.affil-prefix {
    white-space: normal;
  }
  .credit-section table.fallback-vc-table td.character-cell {
    grid-column: 2;
    white-space: normal;
  }
  .credit-section table.fallback-vc-table td.actor-cell {
    grid-column: 3;
  }
  
  .credit-section table.fallback-vc-table td.character-cell.block-heading {
    grid-column: 2 / span 2;
  }
  
  .credit-section table.fallback-vc-table tr.cooperation-row > td.role-name {
    display: none;
  }
  .credit-section table.fallback-vc-table tr.cooperation-row > td.character-cell {
    grid-column: 1;
    white-space: normal;
  }
  .credit-section table.fallback-vc-table tr.cooperation-row > td.actor-cell {
    grid-column: 2 / span 2;
  }
  
  .credit-section table.fallback-table tr.block-break > td,
  .credit-section table.fallback-vc-table tr.block-break > td,
  .credit-section table.fallback-vc-table tr.cooperation-row > td {
    padding-top: 6px;
  }
}




.page-section-nav {
  display: none;
  position: fixed;
  top: 88px; 
  
  left: max(16px, calc((100vw - 960px) / 2 - 360px));
  width: 340px;
  
  max-width: calc((100vw - 960px) / 2 - 28px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 40;
  padding: 4px 0;
  
}

.page-section-nav-inner {
  
  position: relative;
}


.page-section-nav-heading {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 20px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent-pink);
  line-height: 1.4;
}


.page-section-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  
  --progress: 0%;
}
.page-section-nav-list::before {
  content: "";
  position: absolute;
  left: 9px; 
  
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-pink) 0%,
    var(--accent-pink) var(--progress),
    #e5e7eb var(--progress),
    #e5e7eb 100%
  );
  border-radius: 1px;
  
  transition: background 0.15s linear;
}

.page-section-nav-item {
  position: relative;
  margin: 0;
  padding: 0;
}


.page-section-nav-item > a {
  display: grid;
  
  grid-template-columns: 0 16px 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 4px 8px 4px 0;
  color: var(--muted);
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.4;
  transition: transform 0.15s ease, color 0.12s ease, background 0.12s ease;
  
  min-width: 0;
  max-width: 100%;
}
.page-section-nav.has-year .page-section-nav-item > a {
  grid-template-columns: 2.6em 16px 1fr;
}
.page-section-nav-item > a:hover {
  color: var(--fg);
  background: rgba(233, 30, 99, 0.04);
  text-decoration: none;
  
}
.page-section-nav-item > a:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 1px;
}


.page-section-nav-year {
  grid-column: 1;
  justify-self: end;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.78em;
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
  
}
.page-section-nav-year.is-empty {
  visibility: hidden;
}


.page-section-nav-count {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1;
  min-width: 1.8em;
  padding: 2px 5px;
  border-radius: 999px;
  text-align: center;
  
  background:
    rgba(233, 30, 99, 0.12),
    #fff;
  
  background-color: #fff;
  background-image: linear-gradient(rgba(233, 30, 99, 0.12), rgba(233, 30, 99, 0.12));
  color: #831843;
  white-space: nowrap;
  
  border: 2px solid #fff;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.page-section-nav-count.is-empty {
  
  display: none;
}

.page-section-nav-item.is-current > a > .page-section-nav-count {
  background: var(--accent-pink);
  color: #fff;
  box-shadow:
    0 0 0 3px rgba(233, 30, 99, 0.18),
    0 0 10px rgba(233, 30, 99, 0.35);
}


.page-section-nav-dot {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cbd5e1;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
              transform 0.18s ease;
}

.page-section-nav-item:has(> a > .page-section-nav-count:not(.is-empty)) > a > .page-section-nav-dot {
  display: none;
}


.page-section-nav-item.is-passed > a {
  color: var(--fg);
}
.page-section-nav-item.is-passed > a > .page-section-nav-dot {
  background: #fff;
  border-color: var(--accent-pink);
}


.page-section-nav-item.is-current > a {
  color: var(--accent-pink);
  font-weight: 600;
}
.page-section-nav-item.is-current > a > .page-section-nav-dot {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow:
    0 0 0 3px rgba(233, 30, 99, 0.18),
    0 0 12px rgba(233, 30, 99, 0.45);
  transform: scale(1.15);
}


.page-section-nav-label {
  grid-column: 3;
  justify-self: start;
  min-width: 0;
  
  max-width: 100%;
  font-size: 0.88em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.page-section-nav-sublist {
  list-style: none;
  margin: 0 0 4px 0;
  padding: 0;
}
.page-section-nav-item:not(.is-open) > .page-section-nav-sublist {
  display: none;
}
.page-section-nav-child > a {
  padding-top: 2px;
  padding-bottom: 2px;
}
.page-section-nav-child .page-section-nav-dot {
  width: 7px;
  height: 7px;
  border-width: 1.5px;
}
.page-section-nav-child .page-section-nav-label {
  font-size: 0.8em;
  padding-left: 0.6em;
}
.page-section-nav-child .page-section-nav-year {
  font-size: 0.72em;
}

.page-section-nav-label.has-prefix {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.page-section-nav-prefix,
.page-section-nav-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-section-nav-prefix {
  font-size: 0.7em;
  opacity: 0.85;
}


.page-section-nav-list::before {
  left: 16px; 
}
.page-section-nav.has-year .page-section-nav-list::before {
  left: calc(2.6em + 16px);
}

.page-section-nav.has-count:not(.has-year) .page-section-nav-list::before {
  left: 16px;
}
.page-section-nav.has-year.has-count .page-section-nav-list::before {
  left: calc(2.6em + 16px);
}




section[id],
[data-section-nav-child][id] {
  scroll-margin-top: 110px;
}


@media (min-width: 1180px) {
  .page-section-nav {
    display: block;
  }
}


@media (min-width: 960px) and (max-width: 1179px) {
  .page-section-nav {
    display: block;
    left: 12px;
    width: 200px;
  }
  .page-section-nav-label {
    font-size: 0.82em;
  }
}


@media (max-width: 959px) {
  .page-section-nav {
    display: none !important;
  }
}


@media (max-width: 560px) {
  section[id],
  [data-section-nav-child][id] {
    scroll-margin-top: 60px;
  }
}


.mobile-nav-overlay-section-nav {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mobile-nav-overlay-section-nav-heading {
  font-size: 0.78em;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
  padding-left: 14px;
}
.mobile-nav-overlay-section-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-overlay-section-nav-list li {
  margin: 0;
}
.mobile-nav-overlay-section-nav-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--fg);
  font-size: 0.95em;
  text-decoration: none;
}
.mobile-nav-overlay-section-nav-list a:hover,
.mobile-nav-overlay-section-nav-list a:focus-visible {
  background: rgba(233, 30, 99, 0.08);
  color: var(--accent-pink);
  outline: none;
}

.mobile-nav-overlay-section-nav-sublist {
  list-style: none;
  margin: 0 0 4px 0;
  padding: 0 0 0 14px;
}
.mobile-nav-overlay-section-nav-list li:not(.is-open) > .mobile-nav-overlay-section-nav-sublist {
  display: none;
}
.mobile-nav-overlay-section-nav-sublist a {
  padding: 6px 14px;
  font-size: 0.85em;
  color: var(--muted);
}
.mobile-nav-overlay-section-nav-prefix {
  display: block;
  font-size: 0.7em;
}




.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  z-index: 70;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(4px);
  -webkit-backdrop-filter: saturate(140%) blur(4px);
  cursor: pointer;
  padding: 0;
  
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
}
.mobile-nav-toggle .hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  
}
.mobile-nav-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.mobile-nav-overlay-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 320px);
  background: #fff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.18);
  padding: 64px 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: var(--fg);
}
.mobile-nav-overlay-close:hover {
  background: rgba(233, 30, 99, 0.06);
}
.mobile-nav-overlay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-overlay-list li {
  margin: 0;
}
.mobile-nav-overlay-list a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--fg);
  font-size: 1.02em;
  text-decoration: none;
}
.mobile-nav-overlay-list a:hover,
.mobile-nav-overlay-list a:focus-visible {
  background: rgba(233, 30, 99, 0.08);
  color: var(--accent-pink);
  outline: none;
}

body.mobile-nav-open {
  overflow: hidden;
}
.mobile-nav-overlay-search {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}


.mobile-nav-overlay-panel {
  padding: 12px 14px 20px;
  gap: 10px;
}
.mobile-nav-overlay-search {
  order: -1;
  margin: 0 46px 0 0;
  padding: 0;
  border-top: 0;
}
.mobile-nav-overlay-list {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2px 6px;
}
.mobile-nav-overlay-list a {
  padding: 8px 8px;
  font-size: 0.95em;
  white-space: nowrap;
}

.mobile-nav-overlay-close + .mobile-nav-overlay-list { padding-right: 46px; }
.mobile-nav-overlay-list li.nav-sep-before {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 4px;
}
.mobile-nav-overlay-section-nav {
  margin-top: 0;
  padding-top: 10px;
}
.mobile-nav-overlay-section-nav-heading {
  margin-bottom: 4px;
  padding-left: 10px;
}
.mobile-nav-overlay-section-nav-list a { padding: 8px 10px; }
.mobile-nav-overlay-section-nav-sublist a { padding: 6px 10px; }


@media (max-width: 768px) {
  
  .site-header {
    position: static;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .site-header .site-header-bottom {
    display: none;
  }
  .site-header .site-nav {
    display: none;
  }
  .site-header .site-search {
    display: none;
  }
}


@media (max-width: 560px) {
  .mobile-nav-toggle {
    top: 8px;
    right: 8px;
  }
  
  .site-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.25;
  }
}


@media (min-width: 769px) {
  .mobile-nav-toggle,
  .mobile-nav-overlay {
    display: none !important;
  }
  body.mobile-nav-open {
    overflow: auto;
  }
}



.role-badge {
  display: inline-block;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 0.84em;
  line-height: 1.7;
  font-weight: 500;
  
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: baseline;
}
a.role-badge { text-decoration: none; }
a.role-badge:hover { opacity: 0.85; text-decoration: none; }


.role-badge-sm {
  font-size: 0.76em;
  padding: 0 6px;
  border-radius: 9px;
  line-height: 1.6;
}



.role-badge[data-role-code="PRODUCER"],
.role-badge[data-role-code="PLANNING"] {
  background: rgba(126, 87, 194, 0.13);
  color: #7a54bc;
  border-color: rgba(126, 87, 194, 0.42);
}

.role-badge[data-role-code="SERIES_COMPOSITION"],
.role-badge[data-role-code="SCREENPLAY"] {
  background: rgba(59, 130, 196, 0.13);
  color: #316ca4;
  border-color: rgba(59, 130, 196, 0.42);
}

.role-badge[data-role-code="STORYBOARD"] {
  background: rgba(46, 167, 173, 0.14);
  color: #20767a;
  border-color: rgba(46, 167, 173, 0.45);
}

.role-badge[data-role-code="SERIES_DIRECTOR"],
.role-badge[data-role-code="EPISODE_DIRECTOR"],
.role-badge[data-role-code="DIRECTOR"] {
  background: rgba(233, 30, 99, 0.13);
  color: #c71958;
  border-color: rgba(233, 30, 99, 0.42);
}

.role-badge[data-role-code="CHARACTER_DESIGN"],
.role-badge[data-role-code="COSTUME_PROP_DESIGN"],
.role-badge[data-role-code="ANIMATION_DIRECTOR"] {
  background: rgba(76, 163, 107, 0.14);
  color: #38784f;
  border-color: rgba(76, 163, 107, 0.42);
}

.role-badge[data-role-code="ART_DESIGN"],
.role-badge[data-role-code="ART_DIRECTOR"],
.role-badge[data-role-code="ART_DIRECTOR_TV"] {
  background: rgba(212, 160, 23, 0.14);
  color: #8a680f;
  border-color: rgba(212, 160, 23, 0.42);
}


.staff-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  line-height: 1.7;
  color: var(--fg);
}
.staff-badge-group {
  
  display: inline;
}
.staff-badge-group .role-badge + .role-badge {
  
  margin-left: 2px;
}
.staff-badge-group .role-badge {
  margin-right: 4px;
}

.staff-badge-group:has(> .staff-names) {
  display: flex;
  align-items: baseline;
}
.staff-badge-group:has(> .staff-names) > .role-badge {
  flex: none;
}
.staff-names {
  flex: 1 1 auto;
  min-width: 0;
}
.staff-names > a {
  white-space: nowrap;
}
.staff-name {
  color: var(--fg);
}
.staff-name:hover {
  text-decoration: underline;
}
.staff-affiliation {
  font-size: 0.8em;
  color: var(--muted);
}

.staff-current-name {
  font-size: 0.9em;
  white-space: nowrap;
}

.staff-masked-actual {
  color: var(--muted);
}

.staff-member-group {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}

.staff-member-group > * {
  white-space: nowrap;
}


.ep-row {
  padding: 4px 0;
  border-bottom: 1px dotted #e5e7eb;
}
.ep-row:last-child { border-bottom: none; }
.ep-row-main {
  display: grid;
  grid-template-columns: 4em 1fr 7em;
  gap: 12px;
  align-items: baseline;
}
.ep-row-no {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.ep-row-title {
  font-size: 0.98em;
  color: var(--fg);
  
  font-weight: 600;
}
.ep-row-title:hover { text-decoration: underline; }

.estimate-note {
  display: inline;
  white-space: nowrap;
  font-size: 0.78em;
  
  color: var(--muted);
  
  margin-left: 1px;
  letter-spacing: 0;
}
.ep-row-date {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.88em;
  white-space: nowrap;
  text-align: right;
  color: var(--muted);
}

.ep-row .staff-badges-row {
  margin: 2px 0 4px 5em;
  font-size: 0.94em;
}


@media (max-width: 640px) {
  .ep-row-main {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .ep-row-no, .ep-row-date {
    text-align: left;
  }
  .ep-row .staff-badges-row {
    margin-left: 0;
  }
}


.precure-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.7;
}
.precure-badge {
  display: inline-block;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 0.82em;
  line-height: 1.7;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
  
  background: rgba(0, 0, 0, 0.05);
  color: var(--fg);
  border: 1px solid var(--border);
}
.precure-badge:hover { opacity: 0.85; text-decoration: none; }




.episodes-index-list .ep-row-main {
  grid-template-columns: 5em minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}


.episodes-index-list .ep-row-main > .ep-row-title,
.episodes-index-list .ep-row-main > .staff-badges-row {
  min-width: 0;
}


.episodes-index-list .ep-row-main > .ep-row-title {
  display: block;
}


.episodes-index-list li.ep-row {
  display: block;
  grid-template-columns: none;
}


.episodes-index-list .ep-row-no-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.4;
}
.episodes-index-list .ep-row-no-date .ep-row-no {
  
}
.episodes-index-list .ep-row-no-date .ep-row-date {
  
  text-align: right;
  margin-top: 1px;
}


.episodes-index-list .ep-row .staff-badges-row {
  margin: 0;
  font-size: 0.7em;
}


@media (max-width: 640px) {
  .episodes-index-list .ep-row-main {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .episodes-index-list .ep-row-no-date {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .episodes-index-list .ep-row-no-date .ep-row-date {
    margin-top: 0;
  }
  .episodes-index-list .ep-row .staff-badges-row {
    font-size: 0.78em;
  }
}

.sister-site-text-card {
  aspect-ratio: 3 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 12px;
  background: linear-gradient(180deg, #fff1f6 0%, #fde7ef 45%, #fff8f0 100%);
  font-family: var(--font-brand);
  text-align: center;
  line-height: 1.3;
}
.sister-site-text-card-ja {
  font-size: 0.8em;
  color: var(--muted);
}
.sister-site-text-card-en {
  font-size: 1.5em;
  font-weight: 700;
  color: #be185d;
}

.sister-site-text-card-news {
  --accent-pink: #3366cc;
  border-color: #c2d6ff;
  background: linear-gradient(180deg, #f0f5ff 0%, #e3ecff 45%, #f8fbff 100%);
}
.sister-site-text-card-news:hover,
.sister-site-text-card-news:focus-visible {
  box-shadow: 0 4px 14px rgba(51, 102, 204, 0.16);
}
.sister-site-text-card-news .sister-site-text-card-en {
  color: #2a56c6;
}


.share-buttons {
  margin: 2.4em 0 1.2em;
  padding: 1.1em 1.2em 1.2em;
  border: 1px solid #fce7f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 90%);
}
.share-buttons-heading {
  
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.95em;
  font-weight: 600;
  color: #9d174d;
  margin: 0 0 0.8em;
  padding: 0;
  border: 0;
  letter-spacing: 0.04em;
}
.share-buttons-heading svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}
.share-buttons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55em 0.6em;
}
.share-buttons-list li {
  margin: 0;
  padding: 0;
}


.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-width: 3.4em;
  padding: 0.6em 1.05em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: #1f2937;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: inherit;
}
.share-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  text-decoration: none;
}
.share-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.share-button:focus-visible {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}
.share-button svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}


.share-button-x { background: #111827; color: #fff; border-color: #111827; }
.share-button-x:hover { background: #000; color: #fff; }


.share-button-bluesky { background: #1185fe; color: #fff; border-color: #1185fe; }
.share-button-bluesky:hover { background: #0d6ee0; color: #fff; }


.share-button-misskey { background: #86b300; color: #fff; border-color: #86b300; }
.share-button-misskey:hover { background: #76a000; color: #fff; }


.share-button-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-button-facebook:hover { background: #166fe5; color: #fff; }


.share-button-hatena { background: #00a4de; color: #fff; border-color: #00a4de; }
.share-button-hatena:hover { background: #008cbf; color: #fff; }


.share-button-line { background: #06c755; color: #fff; border-color: #06c755; }
.share-button-line:hover { background: #05a847; color: #fff; }


.share-button-copy { background: #f3f4f6; color: #1f2937; border-color: #d1d5db; }
.share-button-copy:hover { background: #e5e7eb; color: #111827; }

.share-button-cite { background: #f3f4f6; color: #1f2937; border-color: #d1d5db; }
.share-button-cite:hover { background: #e5e7eb; color: #111827; }
.share-button-cite[aria-expanded="true"] { border-color: #6b7280; background: #e5e7eb; }


.share-toast {
  position: fixed;
  bottom: 1.5em;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6em 1.1em;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.share-toast.is-visible {
  opacity: 1;
}


@media (max-width: 768px) {
  .share-toast {
    bottom: 4.5em;
  }
}


.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  z-index: 10000;
  background: #ec4899;
  color: #fff;
  padding: 0.6em 1.1em;
  font-size: 0.95em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}


#main-content:focus,
#main-content:focus-visible {
  outline: none;
}


@media print {
  
  .skip-link,
  .mobile-nav-toggle,
  .mobile-nav-overlay,
  .site-header,
  .site-nav,
  .site-search,
  #pageSectionNav,
  .share-buttons,
  .share-toast,
  .footer-nav {
    display: none !important;
  }

  
  .breadcrumbs {
    margin: 0 0 0.6em;
    font-size: 0.85em;
  }
  .breadcrumbs a {
    color: inherit;
    text-decoration: none;
  }

  
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  main.container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  
  a[href^="http"]:not([href*="schema.org"])::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
    word-break: break-all;
  }

  
  table {
    page-break-inside: auto;
    border-collapse: collapse;
  }
  table th, table td {
    border: 1px solid #999;
    padding: 4px 6px;
  }

  
  h1, h2, h3 {
    page-break-after: avoid;
  }

  
  #pageFooter {
    margin-top: 1.4em;
    border-top: 1px solid #999;
    padding-top: 0.6em;
    font-size: 0.85em;
    background: none;
  }
}



#key-staff {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 8px;
  row-gap: 4px;
  align-items: baseline;
}

#key-staff > h2 {
  grid-column: 1 / -1;
}
.key-staff-line {
  
  display: contents;
}

#key-staff > .key-staff-counts {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.key-staff-line > .role-badge {
  
  justify-self: end;
  line-height: 1.8;
}
.key-staff-line > .key-staff-names {
  
  justify-self: start;
  min-width: 0;
  line-height: 1.8;
  color: var(--fg);
}
.key-staff-line .key-staff-name {
  color: var(--fg);
}
.key-staff-line .key-staff-name:hover {
  text-decoration: underline;
}
.key-staff-line .key-staff-range {
  font-size: 0.85em;
}


#petitcure-staff {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 8px;
  row-gap: 4px;
  
  align-items: start;
}
#petitcure-staff > h2 {
  grid-column: 1 / -1;
}

#petitcure-staff .staff-member-group {
  display: block;
}
#petitcure-staff .staff-member-group > .key-staff-range {
  white-space: normal;
}


.petitcure-ep-list {
  display: grid;
  grid-template-columns: max-content max-content max-content max-content minmax(0, 1fr);
  column-gap: 16px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.petitcure-ep-list > .petitcure-ep {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dotted #e5e7eb;
}
.petitcure-ep-no {
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.petitcure-ep-published,
.petitcure-ep-duration {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.85em;
  color: var(--muted);
}
.petitcure-ep-duration {
  text-align: right;
}
.petitcure-ep-video .external-link {
  margin: 0;
  padding: 0 8px;
  font-size: 0.78em;
}
.petitcure-ep-note {
  min-width: 0;
  font-size: 0.9em;
}
@media (max-width: 640px) {
  .petitcure-ep-list {
    column-gap: 10px;
  }
  
  .petitcure-ep-list {
    grid-template-columns: max-content max-content max-content max-content;
  }
  .petitcure-ep-note:empty {
    display: none;
  }
  .petitcure-ep-note {
    grid-column: 1 / -1;
  }
}


#staff.episode-staff {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
}

#staff.episode-staff > h2 {
  flex-basis: 100%;
  margin-bottom: 4px;
}

#staff.episode-staff .key-staff-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  #staff.episode-staff {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  #staff.episode-staff .key-staff-line {
    white-space: normal;
  }
  #staff.episode-staff .key-staff-line a {
    white-space: nowrap;
  }
}


.relation-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.4;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  margin-right: 4px;
  vertical-align: middle;
  white-space: nowrap;
}



.entity-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
}
.entity-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}
.entity-row:hover {
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
}

.entity-row-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  text-decoration: none;
  color: transparent;
}
.entity-row-link:focus-visible {
  outline: 2px solid var(--accent-pink, #ec4899);
  outline-offset: -2px;
}

.entity-row > :not(.entity-row-link) {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.entity-row a:not(.entity-row-link) {
  pointer-events: auto;
}
.entity-row-name {
  font-weight: 600;
}

.key-swatch {
  flex: none;
  align-self: center;
  width: 0.9em;
  height: 0.9em;
  margin-right: -2px;
  border: 1px solid rgba(128, 128, 128, 0.5);
  border-radius: 2px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .tab-sfx { display: none; }
}

.role-timeline {
  --rtl-tv: #3b82c4;
  --rtl-span: rgba(59, 130, 196, 0.38);
  --rtl-movie: #c8820f;
  --rtl-song: #7e57c2;
  --rtl-bgm: #4ca36b;
  --rtl-disc: #2563a8;
  --rtl-band-alt: #f4f5f8;
  --rtl-grid: #e6e7eb;
  --rtl-name-w: 11.5em;
  --rtl-gap: 12px;
  --rtl-track-x: calc(var(--rtl-name-w) + var(--rtl-gap));
  --rtl-group-bg: #f1f4fa;
  --rtl-group-line: #c3cad8;
  --rtl-aff: #8e9ab3;
  margin: 0 0 2em;
}
.rtl-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.rtl-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rtl-switch-ui {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 9px;
  background: #c4c6cc;
  transition: background 0.15s;
}
.rtl-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.rtl-switch input:checked + .rtl-switch-ui { background: var(--rtl-tv); }
.rtl-switch input:checked + .rtl-switch-ui::after { transform: translateX(13px); }
.rtl-switch input:focus-visible + .rtl-switch-ui { outline: 2px solid var(--rtl-tv); outline-offset: 2px; }

.rtl-switch:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.wk-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.88em;
  cursor: pointer;
  text-decoration: line-through;
  opacity: 0.7;
}
.wk-toggle.is-active {
  text-decoration: none;
  opacity: 1;
  color: var(--fg);
  border-color: var(--fg);
}
.wk-toggle:hover:not(.is-active) { background: var(--surface-2, rgba(0, 0, 0, 0.04)); }
.wk-toggle:focus-visible {
  outline: 2px solid var(--accent-pink, #ec4899);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .role-timeline { --rtl-name-w: 0px; --rtl-gap: 0px; }
}

.entity-row:hover a.entity-row-name {
  text-decoration: underline;
}
.entity-row-sub {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9em;
}
.entity-row-count {
  margin-left: auto;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.entity-filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.88em;
  cursor: pointer;
}
.entity-filter-btn:hover:not(.is-active) {
  background: var(--surface-2, rgba(0, 0, 0, 0.04));
}
.entity-filter-btn.is-active {
  color: var(--fg);
  border-color: var(--fg);
}
.entity-filter-btn:focus-visible {
  outline: 2px solid var(--accent-pink, #ec4899);
  outline-offset: 2px;
}


.article { max-width: 720px; }
.article > h1 { margin-bottom: 0.3em; line-height: 1.45; }
.article-more-list { list-style: none; margin: 0; padding: 0; }
.article-more-list li + li { border-top: 1px dotted var(--border); }
.article-more-link {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  padding: 0.55em 0;
  text-decoration: none; color: inherit;
}
.article-more-link:hover .article-more-title,
.article-more-link:focus-visible .article-more-title { color: var(--accent-pink); text-decoration: underline; }
.article-more-link:hover { text-decoration: none; }
.article-more-title { font-weight: 700; line-height: 1.5; }
.article-more-date { font-size: 0.8em; color: var(--muted); white-space: nowrap; }

.related-articles-meta { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.related-articles-site {
  font-size: 0.75em; color: var(--muted);
  padding: 0 6px; border: 1px solid var(--border); border-radius: 4px;
}




button.art-track-play {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-pink);
  color: #fff;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
button.art-track-play::before {
  content: "▶";
  
  margin-left: 0.1em;
}
button.art-track-play:hover,
button.art-track-play:focus-visible {
  transform: scale(1.12);
}
button.art-track-play.is-playing::before {
  content: "⏸";
  margin-left: 0;
}


.art-track-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}
.art-track-bar[hidden] {
  display: none;
}
.art-track-bar-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 12px 16px;
}

.art-track-frame {
  flex: 0 0 auto;
  width: 480px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #000;
}
.art-track-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.art-track-meta {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 4px;
}
.art-track-meta-title {
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.art-track-meta-sub {
  margin-top: 2px;
  font-size: 0.86em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.art-track-note {
  margin: 10px 0 0;
  font-size: 0.75em;
  line-height: 1.6;
}
.art-track-note-link {
  margin-top: 4px;
}
.art-track-close {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0 4px;
  color: var(--muted);
  font-size: 1.4em;
  line-height: 1;
  cursor: pointer;
}
.art-track-close:hover {
  color: var(--fg);
}

body.has-art-track-bar {
  padding-bottom: 300px;
}

@media (max-width: 720px) {
  .art-track-bar-inner {
    gap: 12px;
    padding: 10px 12px;
  }
  
  .art-track-frame {
    width: 356px;
  }
  
  .art-track-note:not(.art-track-note-link) {
    display: none;
  }
}
@media (max-width: 560px) {
  
  .art-track-bar-inner {
    flex-wrap: wrap;
  }
  .art-track-meta {
    flex: 1 1 100%;
    order: 3;
    padding-top: 0;
  }
}


.hide-premium-art-tracks .art-track-play.is-premium-only:not([data-art-track-alt-id]) {
  display: none;
}

#art-track-premium-dialog .subtitle-embargo-dialog-body:not(:last-of-type) {
  margin-bottom: 10px;
}
#art-track-premium-dialog-music {
  font-weight: 700;
}

.staff-primary-name {
  font-size: 0.9em;
}

.music-credit-affiliation {
  font-size: 0.9em;
}

.sort-toggle {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px;
}
.sort-toggle-btn {
  padding: 3px 12px;
  font-size: 0.88em;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.sort-toggle-btn.is-active {
  color: var(--fg);
  border-color: var(--fg);
}
[data-precure-only] .entity-row:not([data-precure-cast]),
[data-precure-only] .creators-series-section:not([data-precure-cast]),
[data-precure-only] .rtl-row:not([data-precure-cast]) {
  display: none;
}

.count-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.count-sort-btn[hidden] {
  display: none;
}
.count-sort-btn:focus-visible {
  outline: 2px solid var(--accent-pink, #ec4899);
  outline-offset: 2px;
  border-radius: 999px;
}


.cite-box {
  margin: 0 0 1.2em;
  padding: 1.1em 1.2em 1.2em;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}
.cite-box-lead {
  margin: 0 0 0.7em;
  font-size: 0.88em;
  color: var(--muted);
}
.cite-box-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em 0.8em;
}
.cite-box-text {
  flex: 1 1 20em;
  margin: 0;
  padding: 0.7em 0.9em;
  font-family: var(--font-base);
  font-size: 0.9em;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cite-box-copy {
  flex: none;
}
.cite-box-alt {
  margin-top: 0.8em;
  font-size: 0.9em;
}
.cite-box-alt summary {
  cursor: pointer;
  color: var(--muted);
}
.cite-box-alt .cite-box-item {
  margin-top: 0.5em;
}
.cite-box-note {
  margin: 0.8em 0 0;
  font-size: 0.85em;
  color: var(--muted);
}


.ep-record-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0.8em 0 0;
}
.ep-record-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2em 0.75em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84em;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.ep-record-badge::before {
  content: "🏆";
  font-size: 0.95em;
}
.ep-record-badge.is-global {
  color: #8a5a00;
  background: #fff6dc;
  border-color: #f1d38a;
}
.ep-record-badge.is-series {
  color: #7a3b5a;
  background: #fdf0f6;
  border-color: #f3c2d7;
}
.ep-record-badge:hover,
.ep-record-badge:focus-visible {
  text-decoration: underline;
}


#staff.episode-staff .staff-combos {
  flex-basis: 100%;
  
  align-self: stretch;
  margin: 0.4em 0 0;
  padding: 0.6em 0 0;
  border-top: 1px dashed var(--border);
  white-space: normal;
}
.staff-combos > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px 12px;
  padding: 2px;
  border-radius: 6px;
}
.staff-combos > summary::-webkit-details-marker {
  display: none;
}
.staff-combos > summary:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

.staff-combo-mini-rows {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.staff-combos[open] .staff-combo-mini-rows {
  display: none;
}

.staff-combo-minis {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 25px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}
.staff-combo-mini {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.9em;
}
.staff-combo-mini::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: var(--border);
}

@media (max-width: 640px) {
  .staff-combo-minis {
    flex-direction: column;
    gap: 2px;
  }
  
  .staff-combo-minis {
    overflow: visible;
  }
  .staff-combo-mini::before {
    display: none;
  }
}
.staff-combo-mini-roles {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.role-badge-xs {
  font-size: 0.66em;
  padding: 0 4px;
  line-height: 1.5;
  border-radius: 7px;
}
.staff-combo-mini-name {
  
  color: var(--fg);
}
.staff-combo-x {
  color: var(--muted);
  font-size: 0.7em;
  margin: 0 1px;
}
.staff-combo-count {
  font-size: 0.85em;
  color: var(--muted);
}

.staff-combo-count b {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  font-size: 1.15em;
}
.staff-combo-count.is-notable b {
  color: var(--accent-pink);
}
.staff-combo-first {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--accent-pink);
}
.staff-combo-mini-gap {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--fg);
}
.staff-combo-mini-gap.is-notable {
  color: var(--accent-pink);
}

.staff-combos .staff-combo-note {
  display: none;
  margin: 0;
  min-width: 0;
  text-align: left;
}
.staff-combos[open] .staff-combo-note {
  display: inline;
}
.staff-combos-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.8em;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.staff-combos-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.staff-combos[open] .staff-combos-toggle::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}
.staff-combos > summary:hover .staff-combos-toggle {
  color: var(--accent-pink);
}
.staff-combos .is-open-label,
.staff-combos[open] .is-closed-label {
  display: none;
}
.staff-combos[open] .is-open-label {
  display: inline;
}


.staff-combo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 12px;
  margin-top: 8px;
}
.staff-combo-card {
  min-width: 0;
  display: grid;
  
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.staff-combo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}
.staff-combo-roles {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.staff-combo-head .staff-combo-ordinal {
  margin-left: auto;
}
.staff-combo-roles .staff-combo-x {
  font-size: 0.8em;
}

.staff-combo-ordinal {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
  white-space: nowrap;
}
.staff-combo-total {
  font-size: 0.72em;
  color: var(--muted);
  margin-right: 3px;
}
.staff-combo-ordinal b {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.75em;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.staff-combo-ordinal.is-notable b {
  color: var(--accent-pink);
}
.staff-combo-unit {
  font-size: 0.78em;
  font-weight: 600;
}
.staff-combo-first-big {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--accent-pink);
}

.staff-combo-names {
  margin: -2px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
  font-weight: 600;
  font-size: 0.95em;
}
.staff-combo-people {
  min-width: 0;
  overflow-wrap: anywhere;
}
.staff-combo-names .staff-combo-x {
  font-size: 0.85em;
  font-weight: 400;
  margin: 0 4px;
}
.staff-combo-gap {
  margin-left: auto;
  font-size: 0.85em;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}
.staff-combo-gap.is-notable {
  color: var(--accent-pink);
}


.staff-combo-beads {
  --bead: #b6aecb;
  --bead-line: #e2deea;
  list-style: none;
  margin: 4px 0 0;
  padding: 16px 4px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.staff-combo-beads::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--bead-line);
  border-radius: 1px;
}
.staff-combo-beads li {
  position: relative;
  
  flex: 0 1 auto;
  min-width: 0;
  height: 16px;
  display: grid;
  place-items: center;
}

.staff-combo-beads li:only-child {
  margin: 0 auto;
}
.staff-combo-beads a {
  display: block;
  width: var(--d, 11px);
  height: var(--d, 11px);
  border-radius: 50%;
  background: var(--bead);
  border: 2px solid var(--bead);
  transition: transform 0.12s;
}
.staff-combo-beads a:hover {
  transform: scale(1.25);
}
.staff-combo-beads li.is-future a {
  background: var(--bg);
}
.staff-combo-beads li.is-current a {
  --d: 16px;
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 4px rgba(216, 27, 96, 0.18);
}
.staff-combo-beads li.is-current::before {
  content: "今回";
  position: absolute;
  bottom: calc(100% + 4px);
  font-size: 0.68em;
  font-weight: 700;
  color: var(--accent-pink);
  white-space: nowrap;
}
.staff-combo-beads li.is-gap {
  font-size: 0.7em;
  color: var(--muted);
  background: var(--bg);
  padding: 0 1px;
}
.staff-combo-year {
  position: absolute;
  top: calc(100% + 3px);
  font-family: var(--font-num);
  font-size: 0.66em;
  color: var(--muted);
  white-space: nowrap;
}
.staff-combo-beads.is-dense a {
  --d: 7px;
  border-width: 1px;
}
.staff-combo-beads.is-dense li.is-current a {
  --d: 13px;
}


.staff-combo-nav {
  display: flex;
  gap: 8px;
}
.staff-combo-nav-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 9px 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--fg);
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.staff-combo-nav-card:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 2px 6px rgba(233, 30, 99, 0.12);
  text-decoration: none;
  transform: translateY(-1px);
}
.staff-combo-nav-card.is-next {
  text-align: right;
}
.staff-combo-nav-card.disabled {
  background: #fafafa;
  border-color: #ececec;
  color: var(--border);
}
.staff-combo-nav-dir {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.staff-combo-nav-card.disabled .staff-combo-nav-dir {
  color: var(--border);
}
.staff-combo-nav-series {
  font-size: 0.68em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.staff-combo-nav-ep {
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  margin-top: auto;
}
@media (prefers-reduced-motion: reduce) {
  .staff-combo-beads a,
  .staff-combo-nav-card {
    transition: none;
  }
}


.shop-box {
  margin: 20px 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fffdf8;
}
.shop-box[hidden] {
  display: none;
}
.shop-box-heading {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: 1.02em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.shop-box-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shop-box-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  transition: box-shadow 0.15s ease;
}
.shop-box-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.shop-box-link {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}

.shop-box-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(135deg, #fef3f7 0%, #fff8ec 100%);
}
.shop-box-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.shop-box-body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "meta  foot"
    "title foot";
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}
.shop-box-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78em;
  line-height: 1.5;
}
.shop-box-media {
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
}
.shop-box-status {
  color: var(--accent);
  font-weight: 700;
  font-feature-settings: "palt";
}

.shop-box-title {
  grid-area: title;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.5;
  font-feature-settings: "palt";
}

.shop-box-foot {
  grid-area: foot;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
}
.shop-box-cta {
  padding: 5px 12px;
  border-radius: 4px;
  background: #ff9900;
  color: #111;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.shop-box-detail {
  position: relative;
  font-size: 0.8em;
  white-space: nowrap;
}
.shop-box-note {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .shop-box-item {
    align-items: flex-start;
  }
  .shop-box-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "meta"
      "title"
      "foot";
    row-gap: 4px;
  }
  .shop-box-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
  }
  .shop-box-foot {
    flex-direction: row;
    
    flex-wrap: wrap;
    row-gap: 4px;
  }
}


:lang(el), :lang(grc) { font-family: "Noto Sans", var(--font-base); }
