/* マンガズカン — 姉妹サイト共通の「小さな資料棚」デザイン */
:root {
  --bg: #faf7f0;
  --white: #ffffff;
  --surface: #f3eee4;
  --ink: #2b2320;
  --sub: #6b5f58;
  --primary: #f5a623;
  --primary-soft: #fdebc8;
  --accent: #3b82c4;
  --accent-soft: #dceaf6;
  --line: #d9cfc5;
  --content-width: 960px;
  --gutter: clamp(20px, 4vw, 28px);
  --radius-lg: 24px;
  --radius-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input, select { font: inherit; }
a {
  color: var(--ink);
  text-decoration: none;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--ink); text-decoration: underline; }
a:is(
  [class*="logo"],
  [class*="chip"],
  [class*="card"],
  [class*="button"],
  [class*="btn"],
  [class*="spine"],
  [role="button"]
):hover,
.global-nav a:hover,
.year-nav a:hover,
.decade-nav a:hover,
.magazine-grid a:hover,
.site-footer__nav a:hover {
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + 56px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.55em 1em;
  clip: auto;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--primary);
  color: var(--ink);
  font-weight: 900;
}

/* Header / wordmark */
/* 固定＋ブランド色（姉妹サイト アニメジカン=赤ピンク との識別用。マンガズカン=青） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 0;
  background: var(--accent-soft);
  border-bottom: 3px solid var(--accent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-branding {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  margin: 0;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.15s ease-out;
}
.site-logo:hover { color: var(--ink); opacity: 0.66; }
.site-logo__mark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}
.site-tagline {
  overflow: hidden;
  color: var(--sub);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.is-inner .site-tagline { display: none; }
.global-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}
.global-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 20%, transparent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}
.global-nav a:hover { background: var(--ink); color: var(--white); }

.header-search {
  position: relative;
  flex: 0 1 228px;
}
.header-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 43px 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.header-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}
.header-search svg,
.hero-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Main and headings */
.site-main { min-height: 52vh; padding-block: 28px 74px; }
.is-inner .site-main { padding-top: 34px; }
h1, h2, h3 { font-weight: 900; text-wrap: balance; }
h1 {
  margin: 18px 0 20px;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 0.025em;
  line-height: 1.35;
}
h2 {
  margin: 58px 0 18px;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: 0.035em;
  line-height: 1.4;
}
h3 { letter-spacing: 0.03em; }
.count {
  display: inline-block;
  margin-left: 8px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.section-note {
  margin: 10px 0;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700;
}

/* Home hero */
.is-home .site-main { padding-top: 24px; }
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  align-items: center;
  gap: clamp(25px, 5vw, 56px);
  overflow: hidden;
  padding: clamp(30px, 5vw, 52px);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--ink) 18%, transparent);
}
.home-hero::before {
  position: absolute;
  top: -17%;
  right: -9%;
  width: min(53%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primary-soft);
  content: "";
  opacity: 0.72;
}
.home-hero__copy, .home-hero__art { position: relative; z-index: 1; min-width: 0; }
.home-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.3vw, 45px);
  letter-spacing: 0.015em;
  line-height: 1.34;
}
.home-hero__copy > p {
  max-width: 37em;
  margin: 20px 0 0;
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}
.home-hero__art { display: flex; align-items: center; justify-content: center; }
.home-hero__art img { display: block; width: 100%; max-width: 455px; }
.hero-search { margin-top: 26px; }
.hero-search label {
  display: block;
  margin-bottom: 7px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero-search__field { position: relative; }
.hero-search input {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 13px 60px 13px 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.hero-search button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

/* Home sections */
.home-section { scroll-margin-top: 24px; margin-top: clamp(58px, 8vw, 84px); }
.home-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: 22px;
}
.home-section__header h2, .home-section__header p { margin: 0; }
.home-section__header h2 {
  font-size: clamp(28px, 4.2vw, 39px);
  line-height: 1.3;
}
.home-section__header p {
  max-width: 35em;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  text-align: right;
}
.explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 28px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--white);
}
.explore-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: var(--primary);
  content: "";
}
.explore-card.is-blue::before { background: var(--accent); }
.timeline-motif { position: relative; display: flex; align-items: center; justify-content: space-between; height: 20px; }
.timeline-motif::before {
  position: absolute;
  top: 50%;
  right: 4px;
  left: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  content: "";
  transform: translateY(-50%);
}
.timeline-motif span {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--primary-soft);
}
.is-blue .timeline-motif span { background: var(--accent-soft); }
.explore-card__eyebrow {
  margin: 20px 0 0;
  color: var(--sub);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.explore-card h3 { margin: 6px 0 0; font-size: clamp(23px, 3vw, 29px); line-height: 1.4; }
.explore-card h3 + p { margin: 10px 0 0; color: var(--sub); font-size: 13px; font-weight: 700; }

.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}
.chip:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.chip-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip-era { margin-left: 6px; color: var(--sub); font-size: 10px; }
.filter-nav { margin: 16px 0 24px; }

.year-form {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
}
.year-form select {
  min-height: 44px;
  padding: 8px 34px 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.year-form button {
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.work-shelf {
  padding: 30px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--ink) 15%, transparent);
}
.work-shelf > p { margin: 0 0 22px; color: var(--sub); font-size: 13px; font-weight: 700; }
.work-shelf__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
}
.work-shelf__slot {
  position: relative;
  display: flex;
  min-width: 0;
  padding-bottom: 12px;
  align-items: flex-end;
  isolation: isolate;
}
.work-shelf__slot::after {
  position: absolute;
  right: -4px;
  bottom: 0;
  left: -4px;
  z-index: 2;
  height: 12px;
  background: var(--ink);
  content: "";
}
.work-spine {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 124px;
  padding: 13px 9px 10px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: var(--primary);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
  writing-mode: vertical-rl;
  transform: translateY(6px);
  transition: transform 0.15s ease-out;
}
.work-shelf__slot:nth-child(2n) .work-spine { min-height: 142px; }
.work-shelf__slot:nth-child(4n) .work-spine { min-height: 112px; }
.work-spine.is-blue { background: var(--accent-soft); }
.work-spine.is-light { background: var(--white); }
.work-spine small { color: var(--sub); font-size: 9px; font-weight: 700; }
.work-spine:is(:hover, :focus-visible) { color: var(--ink); transform: translateY(0); }

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.magazine-grid li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 122px;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px 20px 17px 25px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--white);
}
.magazine-grid li::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--primary);
  content: "";
}
.magazine-grid li:nth-child(3n + 2)::before { background: var(--accent); }
.magazine-grid a { font-size: 16px; font-weight: 900; line-height: 1.45; text-decoration: none; }
.magazine-grid a::after { position: absolute; inset: 0; content: ""; }
.magazine-grid .meta { color: var(--sub); font-size: 11px; font-weight: 700; line-height: 1.55; }
.magazine-more { margin-top: 18px; }
.magazine-more summary {
  display: flex;
  width: fit-content;
  min-height: 42px;
  margin-inline: auto;
  padding: 8px 18px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.magazine-more summary::-webkit-details-marker { display: none; }
.magazine-more summary::after { margin-left: 8px; content: "+"; font-size: 18px; line-height: 1; }
.magazine-more[open] summary { margin-bottom: 18px; background: var(--ink); color: var(--white); }
.magazine-more[open] summary::after { content: "−"; }

/* Inner pages */
.breadcrumb { margin: 0 0 16px; color: var(--sub); font-size: 12px; font-weight: 700; }
.breadcrumb a {
  display: inline-block;
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 3px;
  color: var(--sub);
}
.year-nav, .decade-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 24px; }
.year-nav a, .decade-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.year-nav a:hover, .decade-nav a:hover { background: var(--ink); color: var(--white); }

.work-detail {
  padding: clamp(22px, 4vw, 32px);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--ink) 14%, transparent);
}
.work-detail h1 { margin-top: 0; margin-bottom: 20px; }
.work-detail.has-ebook { display: flex; align-items: flex-start; gap: 28px; }
.work-detail.has-ebook .work-main { flex: 1; min-width: 0; }
.work-concurrent__heading {
  width: 100%;
  max-width: none;
  text-wrap: wrap;
}
.spec { display: grid; grid-template-columns: 6.5em 1fr; gap: 7px 14px; margin: 0; font-size: 15px; }
.spec dt { color: var(--sub); font-weight: 700; }
.spec dd { margin: 0; font-weight: 700; }
.spec dd a {
  display: inline-block;
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 3px;
}
.spec .meta { color: var(--sub); font-size: 12px; font-weight: 500; }
.ebook-box {
  order: 2;
  flex: 0 0 190px;
  margin: 0;
  padding: 15px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--primary-soft);
  text-align: center;
}
.ebook-cover { border-radius: 5px; box-shadow: 0 3px 0 color-mix(in srgb, var(--ink) 20%, transparent); }
.ebook-btn {
  display: block;
  margin-top: 12px;
  padding: 9px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.ebook-btn:hover { color: var(--white); opacity: 0.8; }
.ebook-note { margin: 9px 0 0; color: var(--sub); font-size: 10px; line-height: 1.5; }

.empty {
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
}
.cutoff {
  padding-inline: 0.12em;
  background: linear-gradient(transparent 58%, var(--primary-soft) 58%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: help;
}

/* Tables */
.works-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); font-size: 13px; }
.works-table th, .works-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.works-table tr:last-child td { border-bottom: 0; }
.works-table thead th { background: var(--primary-soft); color: var(--ink); font-size: 11px; font-weight: 900; white-space: nowrap; }
.works-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 42%, var(--white)); }
.works-table td:first-child a {
  display: block;
  margin: -6px -8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-weight: 900;
}
.works-table td:first-child a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.22em;
}
.works-table .num { text-align: right; white-space: nowrap; }

/* Roster controls */
.roster-controls {
  margin: 20px 0 26px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--surface);
}
.roster-search { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.roster-search input {
  flex: 1;
  min-width: 220px;
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.roster-clear, .roster-btn {
  min-height: 34px;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.roster-clear:hover, .roster-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.roster-result, .roster-note { color: var(--sub); font-size: 10px; font-weight: 700; }
.roster-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.roster-btn:disabled { cursor: default; opacity: 0.4; }
.roster-note { margin-left: auto; }
.mz-roster__heading { display: flex; align-items: center; gap: 9px; }
.mz-roster__toggle {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}
.mz-roster__toggle:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.mz-roster__toggle:disabled { cursor: default; opacity: 0.4; }

/* Footer */
.site-footer { padding: 54px 0 32px; background: var(--ink); color: var(--surface); }
.site-footer__main { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 38px; }
.site-logo--footer { color: var(--surface); font-size: 27px; }
.site-logo--footer:hover { color: var(--surface); }
.site-logo--footer .site-logo__mark { width: 32px; height: 32px; }
.site-footer__tagline { margin: 12px 0 0; color: var(--line); font-size: 11px; font-weight: 700; }
.site-footer__nav { display: grid; grid-template-columns: repeat(4, auto); justify-content: end; gap: 12px 24px; }
.site-footer__nav a { color: var(--surface); font-size: 12px; font-weight: 700; text-decoration: none; }
.site-footer__nav a:hover { opacity: 0.65; }
.site-footer__bottom { padding-top: 25px; border-top: 1px solid color-mix(in srgb, var(--surface) 18%, transparent); }
.site-footer__bottom p { margin: 7px 0 0; color: var(--line); font-size: 10px; font-weight: 500; line-height: 1.7; }
.site-footer__bottom p:first-child { margin-top: 0; color: var(--surface); font-size: 11px; font-weight: 700; }

/* Focus and motion */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.header-search input:focus-visible, .hero-search input:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .work-spine, .work-spine:is(:hover, :focus-visible) { transform: none; }
}

@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-tagline { display: none; }
  .header-search { flex-basis: 100%; order: 3; }
  .home-hero { grid-template-columns: 1fr 0.8fr; gap: 22px; }
  .work-shelf__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .site-header { padding-top: 22px; }
  .site-header__inner { gap: 13px; }
  .site-branding { flex: 1; }
  .site-logo { gap: 9px; font-size: 25px; }
  .site-logo__mark { width: 31px; height: 31px; }
  .global-nav { width: 100%; order: 2; }
  .global-nav a { flex: 1; justify-content: center; min-height: 37px; padding-inline: 9px; font-size: 10px; }
  .header-search { order: 3; }
  .site-main, .is-inner .site-main { padding-top: 24px; padding-bottom: 56px; }

  .home-hero { grid-template-columns: 1fr; padding: 25px 22px 22px; border-radius: 19px; }
  .home-hero::before { top: auto; right: -20%; bottom: -11%; width: 82%; }
  .home-hero h1 { font-size: clamp(28px, 8vw, 33px); }
  .home-hero__copy > p { font-size: 13px; }
  .home-hero__art { max-width: 330px; margin: 0 auto; }
  .hero-search input { min-height: 51px; font-size: 13px; }
  .hero-search button { top: 5px; right: 5px; width: 41px; height: 41px; }

  .home-section__header { display: block; }
  .home-section__header p { margin-top: 10px; text-align: left; }
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card { padding: 23px; }
  .work-shelf { padding: 22px 15px; }
  .work-shelf__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-inline: 10px; }
  .work-spine { min-height: 112px; }
  .work-shelf__slot:nth-child(2n) .work-spine { min-height: 126px; }
  .magazine-grid { grid-template-columns: 1fr; gap: 9px; }
  .magazine-grid li { min-height: 102px; }

  h1 { font-size: clamp(28px, 9vw, 36px); }
  h2 { margin-top: 44px; font-size: 25px; }
  .work-detail.has-ebook { flex-direction: column; }
  .ebook-box { order: 0; flex: none; width: 100%; max-width: 240px; margin-inline: auto; }
  .spec { grid-template-columns: 5.5em 1fr; font-size: 13px; }
  .count { display: block; margin: 5px 0 0; }
  .mz-roster__heading .count { display: inline-block; margin: 0; }
  .works-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .works-table th, .works-table td { min-width: 110px; }
  .works-table th:first-child, .works-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 150px; background: var(--white); }
  .works-table thead th:first-child { background: var(--primary-soft); }
  .roster-note { width: 100%; margin-left: 0; }

  .site-footer__main { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__nav { grid-template-columns: 1fr; justify-content: start; }
}

@media (max-width: 390px) {
  .year-form { align-items: stretch; flex-direction: column; }
  .year-form select, .year-form button { width: 100%; }
  .chip { padding-inline: 10px; font-size: 11px; }
}

/* 連載中表示 */
.ongoing { color: var(--accent); font-weight: 900; font-size: 0.92em; }

/* 移籍注記 */
.transfer-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-md, 12px);
  background: var(--accent-soft, #dceaf6);
  font-size: 13px;
  font-weight: 700;
}
.transfer-note a { color: var(--accent, #3b82c4); }

/* あらすじ */
.work-description {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md, 12px);
  background: var(--surface, #f3eee4);
}
.work-description h3 { margin: 0 0 6px; font-size: 14px; }
.work-description p { margin: 0; font-size: 14px; line-height: 1.9; }

/* 姉妹サイト相互リンク */
.crosslink-box {
  margin-top: 18px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md, 12px);
  background: var(--accent-soft, #dceaf6);
}
.crosslink-box h3 { margin: 0 0 8px; font-size: 14px; }
.crosslink-box ul { margin: 0; padding: 0; list-style: none; }
.crosslink-box li { margin: 4px 0; font-size: 14px; }
.crosslink-box li a { font-weight: 900; }
.crosslink-box .meta { color: var(--sub); font-size: 12px; margin-left: 8px; }
.crosslink-note { margin: 8px 0 0; color: var(--sub); font-size: 11px; font-weight: 700; }

/* 相互リンクのボタン化 */
.crosslink-box li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin: 0 0 20px;  /* ボタン下に余白を取り、タイトル＋ボタンの1セット感を出す */
}
.crosslink-box li:last-child { margin-bottom: 4px; }
.crosslink-work { font-weight: 900; font-size: 14px; }
.crosslink-work .meta { font-weight: 700; }
.crosslink-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white, #fff);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 20%, transparent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.crosslink-btn:hover { background: var(--ink); color: var(--white, #fff); text-decoration: none; }
@media (max-width: 600px) {
  .crosslink-box li { flex-direction: column; align-items: flex-start; }
}
