:root {
  --bg: #0c1013;
  --surface: #12181d;
  --surface-2: #182127;
  --line: #2b363d;
  --text: #f2eee5;
  --muted: #a7b0b2;
  --accent: #ddbf78;
  --accent-2: #f0d79d;
  --pass: #88c9a0;
  --fail: #e69a7a;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% 8%, rgba(221, 191, 120, .08), transparent 24rem),
    linear-gradient(180deg, #0d1215 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
}
button, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(12, 16, 19, .9);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border: 1px solid var(--accent); color: var(--accent); font: 700 .72rem/1 Georgia, serif; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .9rem; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: .7rem; }
.access-label { color: var(--muted); font-size: .75rem; letter-spacing: .05em; }
.access-label span { color: var(--pass); font-size: .55rem; margin-right: .35rem; }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 8vw, 8rem); align-items: end; padding: clamp(4rem, 10vw, 9rem) 0 clamp(3rem, 7vw, 6rem); }
.eyebrow, .section-kicker { margin: 0 0 .8rem; color: var(--accent); font: 700 .72rem/1.3 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 2rem; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; font-size: clamp(3.2rem, 8vw, 7.7rem); line-height: .98; letter-spacing: -.05em; }
h1 span { color: var(--accent-2); font-size: .46em; letter-spacing: .02em; }
.lead { max-width: 46rem; margin: 0; color: #c6cccb; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.review-guide { padding: 1.5rem 0 0 1.75rem; border-left: 1px solid var(--line); }
.guide-number { margin: 0; color: var(--accent); font: 400 5rem/.9 Georgia, serif; }
.guide-label { margin: .5rem 0 1.5rem; color: var(--muted); font-size: .75rem; letter-spacing: .14em; }
.review-guide ol { margin: 0; padding-left: 1.3rem; color: #d2d5d2; font-size: .9rem; }

.notice { display: grid; grid-template-columns: 2.7rem 1fr; gap: 1.25rem; padding: 1.4rem; background: #161c20; border: 1px solid var(--line); border-left-color: var(--accent); }
.notice-icon { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: Georgia, serif; }
.notice h2 { margin-bottom: .25rem; font-size: 1rem; }
.notice p { margin: 0; color: var(--muted); font-size: .9rem; }
.notice strong { color: var(--fail); }

.gallery-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.section-head h2, .response-heading h2 { margin: 0; font: 500 clamp(2rem, 4vw, 3.5rem)/1.1 "Yu Mincho", serif; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { padding: .65rem .9rem; background: transparent; border: 1px solid var(--line); cursor: pointer; color: var(--muted); font-size: .8rem; }
.filter span { margin-left: .3rem; color: var(--accent); }
.filter:hover, .filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter.is-active span { color: #6d5321; }

.review-batches { display: grid; gap: clamp(4rem, 7vw, 6rem); }
.review-batch { scroll-margin-top: 5rem; }
.batch-head { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; padding: 1.5rem; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-top-color: var(--accent); }
.batch-number { color: var(--accent); font: 700 .72rem/1.4 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .08em; }
.batch-head .section-kicker { margin-bottom: .45rem; }
.batch-head h3 { margin: 0 0 .45rem; font: 500 clamp(1.45rem, 2.8vw, 2.3rem)/1.25 "Yu Mincho", serif; }
.batch-description { max-width: 55rem; margin: 0; color: var(--muted); font-size: .88rem; }
.batch-count { padding: .3rem .55rem; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; white-space: nowrap; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.style-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease; }
.style-card:hover { transform: translateY(-2px); border-color: #4a5960; }
.image-button { position: relative; display: block; width: 100%; padding: 0; background: #080b0d; border: 0; cursor: zoom-in; overflow: hidden; }
.image-button img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .45s ease, opacity .2s ease; }
.image-button:hover img { transform: scale(1.015); opacity: .9; }
.zoom-label { position: absolute; right: .8rem; bottom: .8rem; padding: .38rem .6rem; background: rgba(10,13,15,.82); border: 1px solid rgba(255,255,255,.2); font-size: .7rem; letter-spacing: .06em; }
.card-body { padding: 1.25rem; }
.card-heading { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .8rem; align-items: start; }
.card-number { color: var(--accent); font: 400 1.45rem/1 Georgia, serif; }
.card-heading h3 { margin: 0 0 .2rem; font-size: 1rem; line-height: 1.4; }
.card-heading p { margin: 0; color: var(--muted); font-size: .75rem; }
.status { padding: .24rem .45rem; border: 1px solid currentColor; font-size: .66rem; white-space: nowrap; letter-spacing: .06em; }
.status-pass { color: var(--pass); }
.status-warning { color: #efbd66; }
.status-pending, .status-fail { color: var(--fail); }
.character-card.headcount-warning { border-color: rgba(239,189,102,.55); }
.character-card.headcount-pending { border-color: rgba(230,154,122,.58); }
.headcount-evidence { white-space: pre-line; }
.review-state { display: flex; justify-content: space-between; gap: .8rem; margin-top: .8rem; padding: .7rem .8rem; background: #0c1215; border-left: 3px solid var(--pass); font-size: .75rem; }
.review-state strong { color: var(--text); }
.review-state span { color: var(--muted); text-align: right; }
details { margin: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { padding: .7rem 0; color: var(--muted); cursor: pointer; font-size: .78rem; }
details p { margin: 0; padding: 0 0 .8rem; color: #c3c9c8; font-size: .78rem; line-height: 1.65; }
.reference-block { margin: 1rem 0; padding: .85rem; background: #0c1215; border: 1px solid #38454b; border-left-color: var(--accent); }
.reference-copy span, .reference-copy strong, .reference-copy p { display: block; }
.reference-copy span { color: var(--accent); font: 700 .65rem/1.4 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .1em; }
.reference-copy strong { margin-top: .2rem; font-size: .9rem; }
.reference-copy p, .reference-note { margin: .2rem 0 .7rem; color: var(--muted); font-size: .72rem; }
.reference-image { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: #080b0d; border: 1px solid var(--line); cursor: zoom-in; }
.reference-image img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.reference-image > span { position: absolute; right: .5rem; bottom: .5rem; padding: .3rem .5rem; background: rgba(10,13,15,.85); border: 1px solid rgba(255,255,255,.2); font-size: .66rem; }
.reference-note { margin: .65rem 0 0; line-height: 1.6; }
.choice-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choice { padding: .7rem; background: transparent; border: 1px solid #3a454b; cursor: pointer; color: #c1c7c7; font-size: .8rem; }
.choice:hover { border-color: var(--accent); color: var(--accent-2); }
.choice.is-selected { background: var(--accent); border-color: var(--accent); color: #18130a; font-weight: 700; }

.response-section { margin-bottom: 5rem; padding: clamp(2rem, 5vw, 4rem); background: var(--surface-2); border: 1px solid var(--line); }
.response-heading { max-width: 48rem; margin-bottom: 2rem; }
.response-heading p:last-child { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.selection-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 1px; background: var(--line); }
.selection-summary div { padding: 1.3rem; background: #11171b; }
.selection-summary span, .selection-summary strong { display: block; }
.selection-summary span { margin-bottom: .35rem; color: var(--muted); font-size: .72rem; }
.selection-summary strong { color: var(--accent-2); font-size: 1rem; }
.comment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.comment-grid label { padding: 1.25rem; background: #11171b; color: #d3d7d5; font-size: .8rem; }
textarea { display: block; width: 100%; margin-top: .7rem; padding: .8rem; resize: vertical; background: #0b1013; border: 1px solid #344047; color: var(--text); line-height: 1.6; }
textarea::placeholder { color: #687276; }
.copy-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 1.25rem; padding: 1rem 1.2rem; background: var(--accent); border: 0; color: #18130a; cursor: pointer; font-weight: 700; }
.copy-button:hover { background: var(--accent-2); }
.copy-button small { font-weight: 500; opacity: .7; }
.copy-status { min-height: 1.7em; margin: .6rem 0 0; color: var(--pass); font-size: .8rem; }

footer { display: flex; justify-content: space-between; gap: 1rem; max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; border-top: 1px solid var(--line); color: #778186; font-size: .72rem; }
footer p { margin: 0; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; background: rgba(5, 8, 10, .96); border: 0; color: var(--text); }
.lightbox::backdrop { background: rgba(5,8,10,.96); }
.lightbox-shell { display: grid; grid-template-rows: auto 1fr auto; min-height: 100%; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.lightbox-bar div { display: flex; gap: 1rem; align-items: center; }
.lightbox-bar span { color: var(--accent); font: .75rem ui-monospace, monospace; }
.lightbox-bar strong { font-size: .9rem; }
.lightbox-bar button { padding: .45rem .8rem; background: transparent; border: 1px solid var(--line); cursor: pointer; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 1rem 4rem; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; }
.nav-button { position: absolute; top: 50%; width: 2.8rem; height: 3.8rem; transform: translateY(-50%); background: rgba(16,22,26,.8); border: 1px solid var(--line); cursor: pointer; }
.nav-button:hover { border-color: var(--accent); color: var(--accent); }
.nav-button.prev { left: .7rem; }
.nav-button.next { right: .7rem; }
.lightbox-note { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: .8rem 1.2rem; border-top: 1px solid var(--line); }
.lightbox-note span { padding: .2rem .45rem; border: 1px solid currentColor; font-size: .7rem; white-space: nowrap; }
.lightbox-note p { margin: 0; color: var(--muted); font-size: .78rem; }
.modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 2rem; }
  .review-guide { max-width: 28rem; }
  .gallery { grid-template-columns: 1fr; }
  .comment-grid { grid-template-columns: 1fr; }
  .batch-head { grid-template-columns: 1fr auto; }
  .batch-number { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .topbar { padding: .7rem 1rem; }
  .access-label { font-size: .65rem; }
  main { padding: 0 .85rem; }
  .intro { padding-top: 3.5rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .section-head { display: block; }
  .filters { margin-top: 1.2rem; }
  .filter { flex: 1; padding-inline: .5rem; }
  .card-heading { grid-template-columns: 1.8rem 1fr; }
  .batch-head { display: block; padding: 1.15rem; }
  .batch-head > div { margin: .8rem 0; }
  .batch-count { display: inline-block; }
  .card-heading .status { grid-column: 2; justify-self: start; }
  .response-section { padding: 1.2rem; }
  .selection-summary { grid-template-columns: 1fr; }
  footer { display: block; }
  footer p + p { margin-top: .35rem; }
  .lightbox-stage { padding: .5rem; }
  .nav-button { top: auto; bottom: .5rem; transform: none; }
  .lightbox-note { grid-template-columns: 1fr; }
  .lightbox-bar div { display: block; }
  .lightbox-bar span { display: block; margin-bottom: .15rem; }
}

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

/* 原作者裁定用プレビュー */
.topnav { display: flex; gap: .9rem; }
.topnav a { color: var(--muted); text-decoration: none; font-size: .72rem; letter-spacing: .08em; }
.topnav a:hover { color: var(--accent-2); }
.notice-warning { margin-bottom: 1.25rem; border-left-color: var(--fail); }
.notice-warning .notice-icon { border-color: var(--fail); color: var(--fail); }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.summary-strip div { padding: 1.15rem; background: #11171b; }
.summary-strip span, .summary-strip strong, .summary-strip small { display: block; }
.summary-strip span { color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.summary-strip strong { margin: .25rem 0; color: var(--accent-2); font: 500 2rem/1 Georgia, serif; }
.summary-strip small { color: #8f999b; font-size: .68rem; }

.review-section { padding: clamp(4rem, 8vw, 7rem) 0; scroll-margin-top: 4rem; }
.review-section + .review-section { border-top: 1px solid var(--line); }
.section-description { max-width: 68rem; margin: -1rem 0 2rem; color: var(--muted); font-size: .9rem; }
.search-label { display: grid; gap: .3rem; color: var(--muted); font-size: .72rem; }
.search-label input, select {
  min-width: 15rem;
  padding: .6rem .7rem;
  background: #0b1013;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
}

.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.media-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.media-card:hover { border-color: #4a5960; }
.background-grid .image-button img { aspect-ratio: 21/9; object-fit: cover; }
.character-grid .image-button img { aspect-ratio: 3/2; object-fit: contain; background: #d5d1c7; }
.needs-ruling { border-color: rgba(230,154,122,.65); box-shadow: inset 0 3px 0 rgba(230,154,122,.7); }
.ruling-link { margin: 1rem 0 0; text-align: right; }
.ruling-link a { color: var(--accent-2); font-size: .78rem; }
.secondary-button {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  padding: .9rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}
.secondary-button:hover { border-color: var(--accent); color: var(--accent-2); }
.secondary-button[hidden] { display: none; }

.logo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.logo-card { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); }
.logo-static-preview {
  display: grid;
  place-items: center;
  min-height: 24rem;
  margin: 1rem 0;
  padding: 3rem;
  background-color: #0a0a0a;
  background-position: center;
  background-size: cover;
  isolation: isolate;
  position: relative;
  overflow: hidden;
}
.logo-static-preview:not(.has-scene)[data-background="light"] { background-color: #f0eee8; }
.logo-static-preview:not(.has-scene)[data-background="gray"] { background-color: #5b6162; }
.logo-static-preview img { width: min(100%, 42rem); height: auto; }
.logo-static-preview[data-tone="light"] img { filter: invert(1); }
.logo-static-preview[data-tone="dark"] img { filter: none; }
.logo-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.logo-controls label { display: grid; gap: .3rem; color: var(--muted); font-size: .7rem; }
.logo-controls select { width: 100%; min-width: 0; }
.animation-card iframe { width: 100%; height: 31rem; margin: 1rem 0; border: 1px solid var(--line); background: #000; }
.timeline { margin: 0; padding-left: 1.4rem; color: var(--muted); font-size: .78rem; }
.timeline li + li { margin-top: .3rem; }
.timeline strong { color: var(--accent-2); }

.response-section { scroll-margin-top: 4rem; }
.comment-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 1px; }
.use-choice { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; margin: 1.25rem 0; padding: 1rem; border: 1px solid var(--line); }
.use-choice legend { padding: 0 .45rem; color: var(--accent-2); font-size: .8rem; }
.use-choice label, .ruling-options label { color: #d3d7d5; font-size: .78rem; }
.use-choice input, .ruling-options input { accent-color: var(--accent); }
.fail-response-list { margin: 2rem 0; }
.fail-response-list > h3 { margin-bottom: .3rem; font: 500 1.5rem "Yu Mincho", serif; }
.fail-response-list > p { color: var(--muted); font-size: .82rem; }
.fail-response-item { margin-top: .8rem; padding: 1rem; background: #11171b; border: 1px solid rgba(230,154,122,.45); }
.fail-response-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.fail-response-head h4 { margin: 0; font-size: .95rem; }
.fail-response-head span { color: var(--fail); font-size: .68rem; }
.fail-response-item > p { margin: .8rem 0; color: #c5cac8; font-size: .78rem; }
.ruling-options { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-bottom: .8rem; }
.decision-note, .overall-comment { display: block; color: #d3d7d5; font-size: .8rem; }
.overall-comment { margin-top: 1.25rem; }
.fatal-error { max-width: 50rem; margin: 8rem auto; padding: 2rem; border: 1px solid var(--fail); }
.fatal-error h1 { font-size: 2rem; }

@media (max-width: 1080px) {
  .topnav { display: none; }
  .logo-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .logo-controls { grid-template-columns: 1fr; }
  .comment-grid { grid-template-columns: 1fr; }
  .logo-static-preview { min-height: 17rem; padding: 1.5rem; }
  .animation-card iframe { height: 24rem; }
}

.change-badge { display:inline-block; background:#bc2436; color:#fff; border:1px solid #ee6574; padding:.16em .65em; border-radius:4px; font:700 .8rem/1.5 "Yu Gothic UI",sans-serif; vertical-align:middle; white-space:nowrap; }
.image-button { position:relative; }
.image-change-badge { position:absolute; top:.65rem; left:.65rem; box-shadow:0 2px 8px #0008; z-index:2; }
.change-guide { margin:1.5rem 0 3rem; padding:1.2rem 1.4rem; border:1px solid #6e313a; background:#24171c; border-radius:8px; }
.change-guide p { margin-bottom:.65rem; }
.change-guide label { display:inline-flex; align-items:center; gap:.5rem; cursor:pointer; }
.song-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.song-card { background:var(--surface); border:1px solid var(--line); padding:1.6rem; border-radius:8px; }
.song-link { display:inline-block; color:var(--accent-2); font-weight:700; padding:.6rem 0; }
@media(max-width:640px) { .song-grid { grid-template-columns:1fr; } }
