/* 未来速報 — 2026-07 design.
   First view is one comic page cut by shared gutters; everything below it is an
   ordinary news site. Headlines are set in HTML, never burned into thumbnails. */

@font-face {
  font-family: "Reggae One UI";
  src: url("/static/fonts/ReggaeOne-UI.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  /* Exact colors lifted from assets/logo-candidates/30-quad-reggae.svg. */
  --logo-red: #e10a05;
  --logo-paper: #efe8dc;
  --logo-cyan: #32e6ff;
  --logo-yellow: #ffe038;
  --logo-keyline: #101010;
  --paper: var(--logo-paper);
  --paper-hi: #fffaf1;
  --ink: var(--logo-keyline);
  --red: var(--logo-red);
  --cyan: var(--logo-cyan);
  --yellow: var(--logo-yellow);
  --muted: #6f685e;
  --line: rgba(16, 16, 16, .18);
  /* Self-hosted IBM Plex Sans JP provides 400/500/700; body typography must not request heavier faces. */
  --font-ja: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-ui: "Reggae One UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --ease: cubic-bezier(.18, .88, .22, 1);
}

* { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% -8%, color-mix(in srgb, var(--red) 8%, transparent), transparent 33rem),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(16, 16, 16, .015) 4px 5px),
    var(--paper);
  font-family: var(--font-ja);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red) 74%, white);
  outline-offset: 3px;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-away .14s ease-in both; }
::view-transition-new(root) { animation: page-arrive .24s var(--ease) both; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - 24px, 1120px);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.brand-logo {
  width: auto;
  height: 38px;
  aspect-ratio: 1551 / 425;
}
.brand:active .brand-logo { transform: translate(1px, 1px); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
}
.header-nav a { padding-block: 8px; -webkit-tap-highlight-color: transparent; }
.header-nav a:focus-visible { color: var(--red); }
.header-nav a:active { color: var(--red); transform: translateY(1px); }
.header-nav .issue {
  border: 2px solid var(--ink);
  background: var(--red);
  color: #fff;
  padding: 4px 8px;
  box-shadow: 2px 2px 0 var(--ink);
}

.site-main {
  width: min(100% - 20px, 1120px);
  margin: 0 auto;
  padding: 12px 0 54px;
}

.edition {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.edition::after {
  content: "";
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--ink) 0 58%, var(--red) 58% 72%, var(--cyan) 72% 86%, var(--yellow) 86%);
  opacity: .72;
}

/* ---------- first view: one comic page ---------- */

.comic-page {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper-hi);
  border: 2px solid var(--ink);
  box-shadow: 0 12px 30px rgba(16, 16, 16, .1);
}

.panel {
  position: absolute;
  z-index: 1;
  display: block;
  overflow: hidden;
  color: #fff;
  background: #171717;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .14) 58%, rgba(0, 0, 0, .84) 100%);
  pointer-events: none;
}

.panel > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.86) contrast(1.05) saturate(1.04);
  transform: scale(1.015);
  transition: transform .35s var(--ease), filter .35s ease;
}

.panel:focus-visible > img:first-child {
  transform: scale(1.055);
  filter: brightness(.92) contrast(1.06) saturate(1.06);
}

.panel:active > img:first-child {
  transform: scale(1.035);
  filter: brightness(.82) contrast(1.08) saturate(1.02);
}

.panel:active::after { background-color: rgba(16, 16, 16, .1); }

.panel:focus-visible { outline: none; }

.caption {
  position: absolute;
  z-index: 3;
  left: 11px;
  right: 11px;
  bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .92);
}

.caption .eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(16, 16, 16, .78);
  padding: 3px 7px;
  font-size: clamp(9px, 1.7cqw, 13px);
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: none;
}

.thread-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 6px 2px 5px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}
.thread-badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.caption .thread-badge {
  margin: 0 6px 6px 0;
  color: rgba(255, 255, 255, .94);
  background: rgba(16, 16, 16, .7);
  text-shadow: none;
}

/* Headlines scale with the comic page, not the viewport. */
.caption h1 { font-size: clamp(20px, 7cqw, 46px); font-weight: 700; letter-spacing: -.05em; line-height: 1.14; }
.caption h2 { font-size: clamp(15px, 7cqw, 38px); font-weight: 700; letter-spacing: -.04em; line-height: 1.18; }
.caption h3 { font-size: clamp(12px, 4.6cqw, 26px); font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }

.caption h1,
.caption h2,
.caption h3 {
  text-wrap: balance;
  word-break: auto-phrase;
  /* A long legacy headline must not run past the cut. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.caption h1 em,
.caption h2 em,
.caption h3 em { color: var(--yellow); font-style: normal; }

.caption p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 22em;
  margin-top: 7px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(9px, 2.1cqw, 14px);
  font-weight: 700;
  line-height: 1.45;
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--yellow);
  font-size: clamp(9px, 1.7cqw, 13px);
  font-weight: 700;
  letter-spacing: .08em;
}
.panel-chip::before { content: "/"; color: var(--red); font-weight: 700; }

.panel-lines {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.panel-lines .edge,
.panel-lines .gutter {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.panel-lines .edge { stroke: var(--ink); stroke-width: 7px; }
.panel-lines .gutter { stroke: var(--paper-hi); stroke-width: 2px; }

/* One surface, cut by three shared lines. */
.p1-hero {
  left: 0; top: 0; width: 100%; height: 44%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 78.8%);
}
.p1-hero > img:first-child { object-position: center 30%; }
.p1-hero .caption { left: 4%; right: 6%; top: 9%; bottom: auto; }
.p1-hero::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .22) 42%, transparent 66%, rgba(0, 0, 0, .5) 100%);
}

.p1-main {
  left: 0; top: 34.67%; width: 62%; height: 65.33%;
  clip-path: polygon(0 0, 100% 8.9%, 76.6% 100%, 0 100%);
}
.p1-main > img:first-child { object-position: 57% center; }
.p1-main .caption { left: 5%; right: 15%; bottom: 6%; }

.p1-s1 {
  left: 54%; top: 40%; width: 46%; height: 30%;
  clip-path: polygon(17.3% 1.5%, 100% 13.3%, 100% 100%, 3.9% 86.7%);
}
.p1-s1 .caption { left: 12%; right: 6%; bottom: 12%; }
.p1-s1::after {
  background: radial-gradient(96% 120% at 18% 68%, rgba(0, 0, 0, .88), rgba(0, 0, 0, .48) 44%, transparent 78%);
}

.p1-s2 {
  left: 45%; top: 65%; width: 55%; height: 35%;
  clip-path: polygon(19.6% 2.9%, 100% 14.3%, 100% 100%, 4.5% 100%);
}
.p1-s2 > img:first-child { object-position: 32% center; }
.p1-s2 .caption { left: 16%; right: 6%; }

/* Fewer than four stories: no cuts, one full page. */
.comic-page.solo .p1-hero {
  left: 0; top: 0; width: 100%; height: 100%;
  clip-path: none;
  transform: none;
}
.comic-page.solo .p1-hero .caption { top: 8%; }
.comic-page.solo .p1-hero::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .2) 46%, rgba(0, 0, 0, .18) 70%, rgba(0, 0, 0, .55) 100%);
}

/* ---------- below the fold: an ordinary news site ---------- */

.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 26px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 9px 12px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--cyan) 60%, var(--paper));
  overflow: hidden;
}
.ticker b {
  flex: 0 0 auto;
  background: var(--red);
  padding: 4px 8px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
}
.ticker span {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker i { flex: 0 0 auto; color: rgba(255, 255, 255, .55); font-size: 10px; font-style: normal; font-weight: 700; }

.columns { display: grid; gap: 34px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--ink) 0 62%, var(--red) 62% 74%, var(--cyan) 74% 87%, var(--yellow) 87%) 1;
}
.section-head h1,
.section-head h2 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -.02em;
}
.section-head h1::before,
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 17px;
  margin-right: 8px;
  background: var(--red);
  box-shadow: 3px 0 0 var(--cyan);
  transform: translateY(2px) skewX(-12deg);
}
.section-head span {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
}

.news-list { display: grid; gap: 0; }

.news-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 13px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  margin-inline: -6px;
  border-radius: 5px;
  padding-inline: 8px;
  transition: background-color .2s ease, transform .18s var(--ease), box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.news-item:first-child { padding-top: 4px; }

.news-item .shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd6c8;
  border: 1px solid rgba(16, 16, 16, .35);
}
.news-item .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.news-item:focus-visible .shot img { transform: scale(1.05); }

.news-item h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.42;
  word-break: auto-phrase;
}
.news-item:focus-visible {
  background: color-mix(in srgb, var(--paper-hi) 74%, transparent);
  box-shadow: inset 3px 0 var(--red);
}
.news-item:focus-visible h3 { color: var(--red); }
.news-item:active {
  background: color-mix(in srgb, var(--yellow) 34%, var(--paper));
  transform: scale(.985);
}
.news-item:is(:focus-visible, :active) .thread-badge svg,
.panel:is(:focus-visible, :active) .thread-badge svg {
  animation: thread-nudge .38s var(--ease) both;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.meta .draft-badge { color: var(--muted); background: var(--yellow); border-color: var(--ink); }
.meta .cat {
  color: var(--red);
  border: 1px solid currentColor;
  background: color-mix(in srgb, var(--yellow) 20%, var(--paper-hi));
  padding: 2px 5px;
  letter-spacing: .09em;
}
.meta .thread-badge {
  color: var(--ink);
  background: color-mix(in srgb, var(--cyan) 14%, var(--paper-hi));
  border-color: color-mix(in srgb, var(--cyan) 52%, var(--ink));
}

.more {
  display: block;
  margin-top: 16px;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  padding: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.more { transition: background-color .18s ease, transform .16s var(--ease), box-shadow .16s ease; -webkit-tap-highlight-color: transparent; }
.more:focus-visible { background: var(--yellow); }
.more:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.rank { counter-reset: rank; }
.rank a {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.44;
  word-break: auto-phrase;
}
.rank a::before {
  content: counter(rank);
  color: var(--red);
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
}
.rank a { transition: color .18s ease, background-color .18s ease, transform .16s var(--ease); -webkit-tap-highlight-color: transparent; }
.rank a:focus-visible { color: var(--red); background: rgba(255, 250, 241, .46); }
.rank a:active { transform: translateX(3px); }

.cats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.cats a {
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.cats a { transition: background-color .18s ease, transform .16s var(--ease), box-shadow .16s ease; -webkit-tap-highlight-color: transparent; }
.cats a:focus-visible { background: var(--yellow); }
.cats a:active { transform: translate(1px, 1px); }

.feed-empty { color: var(--muted); font-size: 13px; font-weight: 700; padding: 22px 2px; }

/* ---------- article page ---------- */

.post-page { width: min(100%, 760px); margin: 0 auto; }

.page-back { margin: 0 0 6px; }
.page-back a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: color .18s ease, transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.page-back a span { color: var(--red); font-size: 22px; font-weight: 700; line-height: .8; }
.page-back a:focus-visible { color: var(--ink); transform: translateX(-2px); }
.page-back a:active { transform: translateX(-5px); }

.post-header { padding: 0 0 8px; }
.post-header h1 {
  font-size: clamp(23px, 5.5vw, 36px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.18;
  text-wrap: balance;
  word-break: auto-phrase;
}

.post-hero-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 0 10px 24px rgba(16, 16, 16, .12);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a {
  border: 1px solid var(--line);
  background: var(--paper-hi);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.tag-list a:focus-visible { color: var(--red); border-color: currentColor; }

.article-body {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.95;
  font-weight: 500;
}
.article-body > * + * { margin-top: 1.5em; }
.article-body h2 {
  margin-top: 2.2em;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.4;
  word-break: auto-phrase;
}
.article-body h3 { margin-top: 1.9em; font-size: 17px; font-weight: 700; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul,
.article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .5em; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  background: var(--paper-hi);
  padding: 14px 16px;
  color: #3f3b35;
  font-size: 15px;
}
.article-body img { width: 100%; height: auto; border: 1px solid var(--line); }
.article-body .youtube-embed {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  padding: 5px;
  box-shadow: 4px 4px 0 rgba(16, 16, 16, .16);
}
.article-body .youtube-embed-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink);
  background: #101010;
}
.article-body .youtube-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-body .youtube-embed figcaption {
  margin: 0;
  border-top: 1px solid var(--ink);
  padding: 8px 7px 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-body th,
.article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--paper-hi); font-weight: 700; }

/* ---------- response stream: dense overseas-reaction / matome articles ---------- */

.article-body .glm-paper-stage { margin-bottom: 28px; }
.article-body .glm-topic-card {
  border: 3px double var(--ink);
  background: var(--paper-hi);
  padding: clamp(16px, 4vw, 26px);
  box-shadow: 5px 5px 0 rgba(16, 16, 16, .18);
}
.article-body .glm-topic-card h2 {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 4px solid var(--ink);
  font-size: clamp(24px, 6vw, 36px);
  line-height: 1.18;
}
.article-body .post-topic-visual {
  position: relative;
  margin: 0 0 14px;
  border: 1px solid var(--ink);
  background: #d8d0c3;
  padding: 4px;
  box-shadow: 2px 3px 0 rgba(16, 16, 16, .18);
}
.article-body .post-topic-visual::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, .28);
  content: "";
  pointer-events: none;
}
.article-body .post-topic-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
  filter: saturate(.86) contrast(1.04);
}
.article-body .glm-topic-card p { font-weight: 700; }
.article-body .glm-topic-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
  border-block: 2px solid var(--ink);
}
.article-body .glm-topic-data span { padding: 8px; font-size: 12px; }
.article-body .glm-topic-data b { display: block; color: var(--red); font-size: 16px; }
.article-body .glm-topic-deck { border-left: 5px solid var(--red); padding-left: 11px; }
.article-body .ai-voice {
  position: relative;
  border-left: 3px solid color-mix(in srgb, var(--cyan) 62%, var(--ink));
  padding-left: 11px;
}
.article-body .ai-voice::before {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 17px;
  margin: 0 7px 2px 0;
  border: 1px solid color-mix(in srgb, var(--cyan) 62%, var(--ink));
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 14%, var(--paper-hi));
  padding: 1px 6px;
  color: var(--ink);
  content: "AI";
  font: 900 9px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  vertical-align: .14em;
}
.article-body .glm-topic-card .glm-topic-deck + .ai-voice { margin-top: 10px; }
.article-body .glm-topic-card .original-note { color: var(--muted); font-size: 10px; line-height: 1.6; }
.article-body .glm-article-copy {
  margin-top: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 4px;
}
.article-body .glm-article-copy p { margin-top: 1.15em; font-weight: 500; line-height: 1.95; }
.article-body .glm-paper-tape,
.article-body .glm-paper-crease,
.article-body .glm-topic-lines { display: none; }

.article-body .res-thread-divider {
  margin: 40px 0 18px;
  border: 2px solid var(--ink);
  border-left: 8px solid var(--red);
  background: var(--paper-hi);
  padding: 10px 14px;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(16, 16, 16, .14);
  font-size: clamp(18px, 5vw, 24px);
  letter-spacing: 0;
  text-align: center;
}

.article-body .res-thread-guide {
  margin: 26px 0 16px;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  box-shadow: 3px 3px 0 rgba(16, 16, 16, .22);
}

.article-body .res-thread-guide > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.article-body .res-thread-guide > summary::-webkit-details-marker { display: none; }
.article-body .res-thread-guide > summary::marker { content: ""; }

.article-body .res-thread-guide > summary .guide-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-body .res-thread-guide > summary::after {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  opacity: .55;
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}

.article-body .res-thread-guide[open] > summary { border-bottom: 2px solid var(--ink); }
.article-body .res-thread-guide[open] > summary::after { transform: rotate(-135deg); }

/* 中身は黒ヒーローを紙面ノートへ中和 */
.article-body .res-thread-guide .res-lead {
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 4px 14px 14px;
  box-shadow: none;
}
.article-body .res-thread-guide .res-lead::before { display: none; }
.article-body .res-thread-guide .res-lead h2 {
  margin: 6px 0 2px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.article-body .res-thread-guide .res-lead p {
  margin-top: 9px;
  color: #55504a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.85;
}
.article-body .res-thread-guide .res-lead .res-lead-punch {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.article-body .res-lead {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: clamp(18px, 5vw, 32px);
  box-shadow: 6px 6px 0 var(--red);
}

.article-body .res-lead::before {
  content: "LIVE THREAD";
  display: inline-block;
  margin-bottom: 13px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: var(--red);
  padding: 3px 8px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
}

.article-body .res-lead h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: clamp(24px, 7vw, 42px);
  line-height: 1.18;
  letter-spacing: -.055em;
}

.article-body .res-lead p {
  margin-top: 13px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.article-body .res-lead .res-lead-punch {
  color: var(--yellow);
  font-size: clamp(17px, 4.8vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}

.article-body .res-stream {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.article-body .res-entry {
  --res-shift-x: 0px;
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  padding: 13px 13px 15px;
  box-shadow: 3px 3px 0 rgba(16, 16, 16, .16);
  transform: translateX(var(--res-shift-x));
  transition: opacity .28s ease-out, transform .34s var(--ease), box-shadow .2s ease;
}

.article-body .res-entry:nth-of-type(4n + 2) {
  --res-shift-x: 3px;
  background: #f5f0e7;
}

.article-body .res-entry:nth-of-type(4n) {
  --res-shift-x: -2px;
}

.res-motion-ready .article-body .res-entry.is-entry-pending {
  opacity: 0;
  transform: translate(var(--res-shift-x), 7px);
}

.res-motion-ready .article-body .res-entry.is-entry-pending.is-entry-visible {
  opacity: 1;
  transform: translateX(var(--res-shift-x));
  transition-delay: calc(var(--res-stagger, 0) * 42ms);
}

.article-body .res-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.article-body .res-num {
  color: var(--red);
  font: italic 950 18px/1 system-ui, sans-serif;
}

.article-body .res-tag {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-body .res-tag-translation,
.article-body .res-tag-ai {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: .06em;
}

.article-body .res-tag-translation {
  border-color: var(--ink);
  border-radius: 3px;
  background: color-mix(in srgb, var(--yellow) 42%, var(--paper-hi));
  color: var(--ink);
  box-shadow: inset 3px 0 var(--red);
}

.article-body .res-tag-ai {
  border-color: color-mix(in srgb, var(--cyan) 62%, var(--ink));
  background: color-mix(in srgb, var(--cyan) 14%, var(--paper-hi));
  color: var(--ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 22%, transparent);
}

.article-body .res-verbatim-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.article-body .res-en {
  color: #756f67;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.article-body .res-ja {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(16px, 4.5vw, 19px);
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: -.015em;
}

.article-body .res-ja.res-killer {
  color: var(--red);
  font-size: clamp(21px, 6vw, 27px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.035em;
}

.article-body .res-entry.is-ai-stream-pending .res-ja {
  color: transparent;
}

.article-body .res-entry.is-ai-streaming .res-ja {
  color: var(--ink);
}

.article-body .res-entry.is-ai-streaming .res-ja.res-killer { color: var(--red); }

.article-body .ai-thinking {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: color-mix(in srgb, var(--cyan) 58%, var(--ink));
  font: 800 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .01em;
}

.article-body .ai-thinking-dots { display: inline-flex; gap: 2px; }
.article-body .ai-thinking-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .24;
  animation: ai-thinking-dot .9s ease-in-out infinite;
}
.article-body .ai-thinking-dots i:nth-child(2) { animation-delay: .14s; }
.article-body .ai-thinking-dots i:nth-child(3) { animation-delay: .28s; }

@keyframes ai-thinking-dot {
  0%, 62%, 100% { opacity: .22; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.article-body .res-ja.is-streaming {
  position: relative;
}

.article-body .res-ja.is-streaming::after {
  display: inline-block;
  width: .5em;
  height: 1em;
  margin-left: .12em;
  border-right: .14em solid color-mix(in srgb, var(--cyan) 62%, var(--ink));
  content: "";
  vertical-align: -.12em;
  animation: res-stream-cursor .65s steps(1, end) infinite;
}

.article-body .res-ja.is-stream-lines::after {
  position: absolute;
  right: 0;
  bottom: .08em;
}

.article-body .res-ja.is-stream-lines .res-stream-line {
  display: block;
  opacity: 0;
  transform: translateY(.42em);
  transition: opacity .36s ease-out, transform .36s ease-out;
}

.article-body .res-ja.is-stream-lines .res-stream-line.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes res-stream-cursor {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
}

.article-share-divider { justify-content: flex-end; margin: 9px 0 24px; }
.article-share-end {
  margin-top: 12px;
}

.article-share-label {
  margin-right: 2px;
  font: 900 9px/1 system-ui, sans-serif;
  letter-spacing: .14em;
}

.share-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  appearance: none;
  border: 1px solid rgba(16, 16, 16, .28);
  border-radius: 999px;
  background: rgba(255, 254, 249, .82);
  padding: 0 11px;
  color: var(--ink);
  cursor: pointer;
  font: 700 11px/1 var(--font-ja);
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.share-action svg { width: 13px; height: 13px; fill: currentColor; }
.share-action.is-copied { border-color: #28632e; background: #d9efdc; color: #1f5b28; }
.share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.article-body .res-interject {
  margin: 8px 0 7px;
  border-block: 2px solid var(--ink);
  background: var(--yellow);
  padding: 10px 13px;
  color: var(--ink);
  font-size: clamp(16px, 4.7vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-.45deg);
}

.article-body .res-ending {
  border-left: 7px solid var(--red);
  padding-left: 14px;
  font-size: clamp(18px, 5vw, 23px);
  font-weight: 700;
  line-height: 1.55;
}

.article-body .res-disclosure {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, .72);
  padding: 15px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.75;
}

.article-body .res-disclosure h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
}

.article-body .res-disclosure p + p { margin-top: 7px; }
.article-body .res-disclosure a { word-break: break-all; }

.article-support {
  margin-top: 34px;
  border: 2px solid var(--ink);
  background: var(--paper-hi);
  padding: 16px;
}
.article-support h2 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.article-support p,
.article-support li { font-size: 13px; font-weight: 700; line-height: 1.8; color: #3f3b35; }
.article-support ul { padding-left: 1.2em; }

.article-info {
  margin-top: 34px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px 2px 16px;
}
.article-info-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.article-info h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.article-info-category {
  border: 1px solid var(--red);
  padding: 2px 7px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.article-info-description { margin-top: 10px; color: #3f3b35; font-size: 12px; font-weight: 700; line-height: 1.75; }
.article-info-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.article-info-meta div { display: flex; gap: 6px; min-width: 0; }
.article-info-meta dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.article-info-meta dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 700; }
.article-info-tags { margin-top: 11px; }

.reading-memo {
  margin-top: 28px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 250, 241, .56);
  padding: 11px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.72;
}
.reading-memo b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 10px; letter-spacing: .08em; }
.reading-memo a { color: var(--red); font-weight: 700; }

.source-list { display: grid; gap: 12px; margin-top: 12px; }
.source-item { border-top: 1px solid var(--line); padding-top: 12px; }
.source-item:first-child { border-top: 0; padding-top: 0; }
.source-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.source-item h3 { font-size: 13px; font-weight: 700; }
.source-item-head > span { margin-top: 0; white-space: nowrap; }
.source-item dl { display: grid; gap: 6px; margin-top: 8px; }
.source-item dl > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 7px; }
.source-item dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.source-item dd { min-width: 0; margin: 0; color: #3f3b35; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.source-item a { color: var(--red); word-break: break-all; font-size: 12px; }
.source-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }

.related-posts ul { list-style: none; padding: 0; }
.related-posts li + li { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.related-posts a { font-size: 14px; font-weight: 700; }
.related-posts a:hover { color: var(--red); }

.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(22px, 5vw, 32px); font-weight: 700; letter-spacing: -.04em; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---------- about: recurring AI thread residents ---------- */

.simple-page { width: min(100%, 760px); margin: 0 auto; }
.simple-page > h1 {
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.2;
  text-wrap: balance;
}
.simple-page > h2 {
  margin-top: 2.15em;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 7px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.simple-page > p { margin-top: 1.1em; font-size: 15px; font-weight: 600; line-height: 1.9; }
.simple-page > ul { margin-top: 1em; padding-left: 1.25em; }
.simple-page > ul li { font-size: 14px; font-weight: 700; line-height: 1.75; }
.simple-page > ul li + li { margin-top: .35em; }
.simple-page a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.error-page { display: grid; justify-items: start; padding-top: clamp(26px, 10vh, 90px); }
.error-page > img { width: 52px; height: 52px; margin-bottom: 14px; border-radius: 11px; box-shadow: 2px 2px 0 var(--ink); }
.error-page .error-code { margin: 0 0 5px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.error-page > h1 { max-width: 14em; }
.error-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.error-actions .more { margin: 0; min-width: 150px; color: var(--ink); text-decoration: none; }
.error-actions > a:not(.more) { font-size: 12px; font-weight: 700; }
.thread-residents {
  margin: 32px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 20px;
}
.thread-residents > h2 { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.thread-residents > p { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.7; }
.thread-resident-grid { display: grid; gap: 0 18px; margin-top: 12px; }
.thread-resident {
  border-top: 1px solid var(--line);
  padding: 11px 1px 10px;
}
.thread-resident h3 { font-size: 12px; font-weight: 700; line-height: 1.45; }
.thread-resident h3 span { color: var(--red); font-size: 10px; letter-spacing: .02em; }
.thread-resident p { margin-top: 3px; color: #4f4a42; font-size: 11px; font-weight: 700; line-height: 1.65; }

/* ---------- footer ---------- */

.site-footer {
  width: min(100% - 20px, 1120px);
  margin: 30px auto 0;
  padding: 16px 3px 30px;
  border-top: 2px solid rgba(16, 16, 16, .3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.footer-nav a:hover { color: var(--red); }
.footer-disclaimer,
.footer-production { margin-top: 8px; line-height: 1.7; font-weight: 700; }
.site-footer a { color: var(--red); }

/* ---------- motion: panels arrive, shared gutters lock the page ---------- */

.site-header,
.edition,
.ticker,
.columns,
.site-footer { opacity: 0; }

.panel { opacity: 0; will-change: transform, opacity; }
.p1-hero { transform: translateY(-14px); }
.p1-main { transform: translateX(-18px); }
.p1-s1, .p1-s2 { transform: translateX(18px); }

.panel-lines path { stroke-dasharray: 1300; stroke-dashoffset: 1300; }

body.is-ready .site-header { animation: settle .28s var(--ease) both; }
body.is-ready .edition { animation: settle .3s var(--ease) .05s both; }
body.is-ready .panel { animation: assemble .38s var(--ease) both; }
body.is-ready .p1-hero { animation-delay: .03s; }
body.is-ready .p1-main { animation-delay: .08s; }
body.is-ready .p1-s1 { animation-delay: .11s; }
body.is-ready .p1-s2 { animation-delay: .14s; }
body.is-ready .panel-lines path { animation: draw-cut .3s ease-out .2s both; }
body.is-ready .caption { animation: caption-in .3s var(--ease) .21s both; }
body.is-ready .ticker { animation: settle .34s var(--ease) .26s both; }
body.is-ready .columns { animation: settle .38s var(--ease) .3s both; }
body.is-ready .site-footer { animation: settle .38s var(--ease) .38s both; }

@keyframes assemble { to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw-cut { to { stroke-dashoffset: 0; } }
@keyframes caption-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes thread-nudge {
  0% { transform: translateX(0) rotate(0); }
  48% { transform: translateX(1.5px) rotate(-4deg); }
  100% { transform: translateX(0) rotate(0); }
}
@keyframes page-away { to { opacity: 0; transform: translateY(2px); } }
@keyframes page-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* Pages without the comic hero must not sit invisible. */
body.no-hero .site-header,
body.no-hero .edition,
body.no-hero .ticker,
body.no-hero .columns,
body.no-hero .site-footer { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover { color: var(--red); }
  .panel:hover > img:first-child {
    transform: scale(1.055);
    filter: brightness(.92) contrast(1.06) saturate(1.06);
  }
  .panel:hover .thread-badge svg,
  .news-item:hover .thread-badge svg { animation: thread-nudge .38s var(--ease) both; }
  .news-item:hover .shot img { transform: scale(1.05); }
  .news-item:hover {
    background: color-mix(in srgb, var(--paper-hi) 74%, transparent);
    box-shadow: inset 3px 0 var(--red);
  }
  .news-item:hover h3 { color: var(--red); }
  .more:hover, .cats a:hover { background: var(--yellow); }
  .share-action:hover { border-color: var(--ink); background: var(--paper-hi); transform: translateY(-1px); }
  .rank a:hover { color: var(--red); background: rgba(255, 250, 241, .46); }
  .page-back a:hover { color: var(--ink); transform: translateX(-2px); }
  .tag-list a:hover { color: var(--red); border-color: currentColor; }
}

@media (min-width: 700px) {
  .comic-page { aspect-ratio: 16 / 9; }
  .p1-hero .caption { right: 38%; }
  .news-item { grid-template-columns: 168px 1fr; gap: 16px; }
  .news-item h3 { font-size: 17px; }
  .article-body { font-size: 17px; }
  .article-body .res-thread-guide > summary { white-space: nowrap; }
  .thread-resident-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .site-main { padding-top: 18px; }
  .columns { grid-template-columns: minmax(0, 1fr) 316px; gap: 40px; align-items: start; }
}

@media (max-width: 420px) {
  .site-main { width: min(100% - 16px, 1120px); }
  .header-inner { width: calc(100% - 18px); min-height: 62px; }
  .brand-logo { height: clamp(38px, 10.5vw, 42px); }
  .header-nav { gap: 10px; font-size: 10px; }
  .header-nav .issue { display: none; }
  .caption { left: 8px; right: 8px; bottom: 8px; }
  .caption p { display: none; }
  .news-item { grid-template-columns: 104px 1fr; gap: 11px; }
  .news-item h3 { font-size: 14px; }
  .article-body { font-size: 15.5px; }
  .article-body .res-stream { gap: 13px; margin-inline: -2px; }
  .article-body .res-entry { padding: 11px 10px 13px; box-shadow: 2px 2px 0 rgba(16, 16, 16, .16); }
  .article-body .res-head { margin-bottom: 7px; }
  .article-body .res-en { font-size: 10px; line-height: 1.5; }
  .article-body .res-ja { line-height: 1.55; }
  .article-body .res-interject { margin-inline: -4px; }
  .article-share-divider { justify-content: flex-start; }
  .article-share-label { width: 100%; }
  .source-item dl > div { grid-template-columns: 4.6em minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition: none !important; }
  .site-header, .edition, .ticker, .columns, .site-footer,
  .panel, .caption { opacity: 1 !important; transform: none !important; }
  .panel-lines path { stroke-dashoffset: 0 !important; }
  .article-body .res-entry.is-ai-stream-pending .res-ja { color: inherit; }
  .article-body .ai-thinking { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
