:root {
  color-scheme: light;
  --ink: #171a1f;
  --ink-soft: #28313d;
  --muted: #667085;
  --line: #d9dee8;
  --line-soft: #e9edf3;
  --paper: #f5f7fa;
  --white: #ffffff;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --blue: #2563eb;
  --red: #be123c;
  --amber: #b45309;
  --surface: #fcfcfd;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0, var(--paper) 320px),
    var(--paper);
  color: var(--ink);
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body,
button,
input,
a {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
li,
span,
strong {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  min-height: 44px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.85);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.lead-inner,
.editorial-inner,
.toolbar-inner,
.content-shell,
.proof-inner,
.category-inner,
.trust-inner,
.about-inner,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 218px;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--ink), #0f766e 115%);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.nav-button {
  min-width: 74px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #344054;
  cursor: pointer;
  padding: 8px 14px;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.nav-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #344054;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.nav-button.active,
.nav-button:hover,
.nav-link:hover {
  border-color: var(--accent);
  background: #e6f4f1;
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.lead-band {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 249, 0.88)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08) 48%, rgba(180, 83, 9, 0.06)),
    #f4f8f8;
  border-bottom: 1px solid var(--line);
}

.lead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 42px;
  min-height: 360px;
  align-items: center;
  padding: 54px 0 42px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead-text {
  max-width: 620px;
  margin-bottom: 0;
  color: #44505f;
  font-size: 17px;
}

.lead-visual {
  min-height: 250px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.32), transparent 42%),
    linear-gradient(135deg, #101820, #243447 54%, #354253);
  box-shadow: var(--shadow);
  padding: 22px;
}

.signal-grid {
  display: grid;
  height: 100%;
  min-height: 206px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.signal {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
  min-height: 96px;
}

.signal-ai {
  background: rgba(15, 118, 110, 0.72);
}

.signal-tech {
  background: rgba(37, 99, 235, 0.72);
}

.signal-biz {
  background: rgba(190, 18, 60, 0.68);
}

.signal-gadget {
  background: rgba(180, 83, 9, 0.7);
}

.toolbar {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.proof-band {
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  padding: 18px 0;
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.proof-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.proof-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.3;
}

.proof-item p {
  margin-bottom: 0;
  color: #475467;
  font-size: 13px;
}

.editorial-board {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 34px 0 38px;
}

.editorial-heading {
  margin-bottom: 18px;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

.lead-story,
.latest-rail,
.spotlight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.lead-story {
  overflow: hidden;
}

.lead-story-link {
  display: grid;
  min-width: 0;
  min-height: 360px;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
}

.lead-story-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  background:
    linear-gradient(140deg, rgba(23, 26, 31, 0.08), rgba(23, 26, 31, 0.62)),
    var(--panel-color);
  color: var(--white);
  padding: 24px;
}

.lead-story-image img,
.visual-panel-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story-image::after,
.visual-panel-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.68));
}

.lead-story-visual span {
  position: relative;
  z-index: 1;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.lead-story-visual small {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.88;
}

.lead-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px;
}

.lead-story-copy h3 {
  margin-bottom: 12px;
  font-size: 31px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.lead-story-copy p {
  margin-bottom: 0;
  color: #475467;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.lead-context {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4e7ec;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.latest-rail {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rail-heading h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.rail-heading a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.rail-heading a:hover {
  text-decoration: underline;
}

.latest-list {
  display: grid;
  gap: 10px;
}

.latest-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  border-top: 1px solid var(--line-soft);
  color: inherit;
  padding-top: 12px;
  text-decoration: none;
}

.latest-item span {
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.latest-item strong {
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.latest-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-spotlight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.spotlight-card {
  display: grid;
  gap: 8px;
  color: inherit;
  padding: 16px;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.spotlight-card:hover,
.lead-story-link:hover,
.latest-item:hover {
  border-color: rgba(15, 118, 110, 0.42);
}

.spotlight-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.spotlight-card span {
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-color), white 84%);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 9px;
}

.spotlight-card strong {
  font-size: 15px;
  line-height: 1.42;
}

.spotlight-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.search-box {
  display: flex;
  width: min(520px, 100%);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.search-icon {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
}

.toolbar-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 38px 0;
}

.main-column,
.side-column,
.article-detail,
.article-card > div,
.featured-body {
  min-width: 0;
}

.detail-hero-inner,
.related-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.detail-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 247, 250, 1)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(37, 99, 235, 0.06)),
    #f5f7fa;
  padding: 36px 0 46px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.featured-article,
.article-card,
.side-section,
.ad-slot,
.article-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.article-detail-page {
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 22px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border-color: rgba(15, 23, 42, 0.12);
}

.featured-body {
  padding: 28px;
}

.visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background:
    linear-gradient(140deg, rgba(23, 26, 31, 0.1), rgba(23, 26, 31, 0.55)),
    var(--panel-color);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  text-decoration: none;
}

.visual-panel span {
  position: relative;
  z-index: 1;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.visual-panel small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.byline-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.byline-row {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin: 0 0 18px;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.tag-link:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.badge,
.source-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  background: #e6f4f1;
  color: var(--accent-strong);
  padding: 4px 10px;
}

.source-chip {
  border: 1px solid var(--line);
  color: #475467;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.72);
}

.badge--new {
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
}

/* ── 読了進捗バー ─────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 300;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── ページトップへ戻るボタン ─────────────────── */
#back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.2s;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  transform: translateY(-3px);
}

/* ── 前後記事ナビ ─────────────────────────────── */
.article-nav {
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0 1rem;
}
.article-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.875rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
  min-width: 0;
}
.article-nav-link:hover {
  background: var(--paper);
  border-color: var(--accent);
}
.article-nav-link--next {
  text-align: right;
}
.article-nav-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── URLコピーボタン ──────────────────────────── */
.copy-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, background-color 0.15s;
  white-space: nowrap;
}
.copy-url-btn:hover {
  background: var(--paper);
  border-color: var(--accent);
  color: var(--accent);
}
.copy-url-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.lead-context {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-article h2 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.24;
}

.summary-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #344054;
}

.read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
  transition:
    background 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.read-button:hover {
  background: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-button,
.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.source-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 9px 14px;
}

.source-button:hover,
.text-link:hover,
.source-link:hover {
  text-decoration: underline;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h2,
.side-section h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.article-list {
  display: grid;
  gap: 16px;
}

.article-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.article-card:hover {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.article-card:focus-within,
.featured-article:focus-within,
.lead-story:focus-within,
.latest-rail:focus-within,
.spotlight-card:focus-visible,
.latest-item:focus-visible,
.category-link-card:focus-visible,
.discovery-links a:focus-visible {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow: var(--shadow-soft);
}

.thumb {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-color);
  color: var(--white);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.article-thumb {
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--white);
  font-size: 11px;
  padding: 3px 7px;
}

.article-card h2,
.article-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.35;
}

.article-card p {
  margin-bottom: 12px;
  color: #475467;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

/* ⑤ SNSシェアボタン */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.share-btn:hover {
  background: #e7f3ff;
  border-color: #1d9bf0;
  color: #1d9bf0;
}

.side-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-section {
  padding: 18px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

/* ⑥ ニュースレターフォーム */
.newsletter-section {
  background: linear-gradient(135deg, #f0fdf9, #eff6ff);
  border: 1px solid #d1fae5;
  border-radius: 10px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}

.newsletter-input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.25);
  border-color: var(--accent);
}

.newsletter-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.16s ease;
}

.newsletter-btn:hover {
  background: var(--accent-strong);
}

.newsletter-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent-strong);
}

/* ⑦ ハンバーガーメニューボタン */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
  display: none;
  align-self: flex-end;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

.topic-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.topic-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.topic-button:hover {
  border-color: var(--accent);
  background: #f0faf8;
}

.ad-unit {
  position: relative;
}

.ad-unit-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.ad-unit--sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.ad-unit--sidebar .ad-unit-body {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  padding: 16px;
  text-align: center;
}

.ad-unit--horizontal {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 12px 0;
  text-align: center;
}

.ad-unit--horizontal .ad-unit-body {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 90px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

.ad-unit--in-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.ad-unit--in-article .ad-unit-body {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  padding: 16px;
  text-align: center;
}

.ad-unit--in-feed {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.ad-unit--in-feed .ad-unit-body {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.policy-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #475467;
}

.side-note {
  margin: 14px 0 12px;
  color: #475467;
  font-size: 14px;
}

.detail-band {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 34px 0 46px;
}

.article-detail {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px;
}

.article-detail > h2,
.article-title {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: 39px;
  line-height: 1.18;
}

.article-deck {
  max-width: 760px;
  margin-bottom: 22px;
  color: #344054;
  font-size: 18px;
  line-height: 1.85;
}

.article-hero-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  margin: 0 0 22px;
}

.article-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.article-hero-image figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}

.article-hero-image a {
  color: inherit;
}

.article-meta-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  margin-bottom: 18px;
}

.article-meta-panel div {
  display: grid;
  gap: 3px;
  background: #f8fafc;
  padding: 12px 14px;
}

.article-meta-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-meta-panel strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.detail-grid {
  display: grid;
  gap: 26px;
}

.note-box {
  border-left: 4px solid var(--accent);
  background:
    linear-gradient(90deg, #f0faf8, #f8fafc);
  padding: 22px 24px;
}

.summary-box h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.summary-box .summary-list {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.detail-section h2,
.detail-section h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.detail-section p {
  color: #344054;
  font-size: 17px;
  line-height: 1.9;
}

.insight-section {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 6px 0 10px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.insight-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px 20px;
}

.insight-panel-wide {
  grid-column: 1 / -1;
}

.insight-panel h3 {
  color: var(--accent-strong);
  font-size: 16px;
}

.insight-panel p,
.insight-list {
  margin-bottom: 0;
}

.insight-list {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 16px;
  line-height: 1.75;
}

.overview-section {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

.editor-callout {
  border: 1px solid #cfe8e4;
  border-radius: 8px;
  background: #f0faf8;
  padding: 22px 24px;
}

.editor-callout h2 {
  color: var(--accent-strong);
}

.editor-callout p {
  margin-bottom: 0;
}

.source-note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 22px 24px;
}

.source-note-box p:last-child {
  margin-bottom: 0;
}

.source-link {
  color: var(--blue);
  font-weight: 800;
  word-break: break-word;
}

.image-credit {
  color: var(--muted);
  font-size: 0.9rem;
}

.image-credit a {
  color: inherit;
  font-weight: 800;
}

.trust-band {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 38px 0;
}

.about-band {
  background: var(--paper);
  padding: 34px 0 42px;
}

.about-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-page {
  display: grid;
  gap: 20px;
}

.about-lead {
  margin-bottom: 0;
  color: #475467;
  font-size: 17px;
}

.about-profile {
  display: grid;
  gap: 12px;
}

.trust-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.trust-mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.trust-mini-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.trust-mini-card p {
  margin-bottom: 0;
  color: #475467;
  font-size: 13px;
}

.profile-card,
.about-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.profile-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.profile-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.profile-card h2,
.about-section h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.profile-card p,
.about-section p {
  margin-bottom: 0;
  color: #475467;
}

.profile-role {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.about-section {
  padding: 20px;
}

.policy-page {
  display: grid;
  gap: 18px;
}

.policy-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 22px 24px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  margin-bottom: 0;
}

.policy-list li + li {
  margin-top: 8px;
}

.contact-panel {
  background: #f0faf8;
}

.category-band {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 34px 0 38px;
}

.category-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-link-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.category-link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.category-link-card strong {
  color: var(--ink);
  font-size: 18px;
}

.category-link-card span {
  color: #475467;
  font-size: 13px;
}

.related-band {
  background: var(--paper);
  padding: 34px 0 42px;
}

.reading-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.reading-path-block {
  min-width: 0;
}

.reading-path-block h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.continue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}

.discovery-strip {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 28px 0;
}

.discovery-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.discovery-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.discovery-block h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.discovery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discovery-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 11px;
  text-decoration: none;
}

.discovery-links a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 0 6px;
}

.topic-trail {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  margin: 18px 0 0;
  padding: 14px;
}

.topic-trail strong {
  color: var(--ink);
  font-size: 14px;
}

.discovery-links a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.compact-list .article-card {
  grid-template-columns: 78px minmax(0, 1fr);
}

.compact-list .thumb {
  width: 78px;
  height: 78px;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.trust-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.trust-section h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.trust-section p:last-child {
  margin-bottom: 0;
}

.contact-link {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: #475467;
}

.site-footer p {
  margin-bottom: 14px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-trust span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer nav strong {
  color: var(--ink);
  font-size: 13px;
}

.site-footer nav a {
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  h1 {
    font-size: 46px;
  }

  .editorial-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .content-shell {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .article-meta-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    display: block;
    padding-top: 14px;
  }

  .lead-inner,
  .editorial-layout,
  .lead-story-link,
  .content-shell,
  .featured-article {
    grid-template-columns: 1fr;
  }

  .category-spotlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-inner {
    gap: 24px;
    min-height: auto;
    padding: 42px 0 30px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .proof-inner,
  .about-inner,
  .trust-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-inner,
  .discovery-inner {
    grid-template-columns: 1fr;
  }

  .article-meta-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-unit--sidebar .ad-unit-body {
    min-height: 120px;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .lead-inner,
  .editorial-inner,
  .toolbar-inner,
  .content-shell,
  .detail-hero-inner,
  .related-inner,
  .proof-inner,
  .category-inner,
  .trust-inner,
  .about-inner,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .toolbar-inner,
  .site-footer {
    align-items: stretch;
  }

  .site-footer,
  .footer-nav-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: auto;
    padding-bottom: 4px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 17px;
  }

  .lead-inner {
    padding: 34px 0 24px;
  }

  .lead-copy,
  .lead-visual,
  .lead-story,
  .latest-rail {
    width: min(calc(100% - 66px), 324px);
    margin-right: auto;
    margin-left: auto;
  }

  .lead-copy {
    max-width: 320px;
  }

  .lead-visual {
    max-width: 280px;
  }

  .trust-inner {
    grid-template-columns: 1fr;
  }

  .editorial-board {
    padding: 24px 0 28px;
  }

  .editorial-heading {
    width: calc(100% - 44px);
    display: block;
    flex-wrap: wrap;
    margin-right: auto;
    margin-left: auto;
  }

  .editorial-heading span {
    display: block;
    margin-top: 4px;
  }

  .lead-story-link {
    min-height: 0;
  }

  .lead-story-visual {
    min-height: 176px;
    padding: 18px;
  }

  .lead-story-visual span {
    font-size: 31px;
  }

  .lead-story-copy {
    padding: 20px;
  }

  .lead-story-copy h3 {
    font-size: 22px;
    line-height: 1.3;
    word-break: break-all;
  }

  .latest-rail {
    padding: 16px;
  }

  .category-spotlight {
    width: min(calc(100% - 66px), 324px);
    grid-template-columns: 1fr;
    margin-right: auto;
    margin-left: auto;
  }

  .proof-inner,
  .reading-path-grid,
  .discovery-inner,
  .trust-card-grid,
  .about-inner {
    grid-template-columns: 1fr;
  }

  .category-link-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-meta {
    flex-wrap: wrap;
    justify-content: space-between;
    white-space: normal;
  }

  h1 {
    font-size: 29px;
    line-height: 1.18;
  }

  .lead-text {
    font-size: 15px;
  }

  .lead-visual {
    min-height: 188px;
    padding: 14px;
  }

  .signal-grid {
    min-height: 154px;
    gap: 10px;
  }

  .signal {
    min-height: 72px;
    font-size: 20px;
  }

  .featured-body,
  .article-detail {
    width: min(calc(100% - 66px), 324px);
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 18px;
  }

  .featured-article {
    margin-bottom: 22px;
  }

  .article-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .thumb {
    width: 64px;
    height: 64px;
    font-size: 12px;
  }

  .article-detail > h2,
  .article-title {
    max-width: 100%;
    font-size: 23px;
    line-height: 1.32;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .article-deck {
    font-size: 15px;
    line-height: 1.78;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .article-meta-panel {
    grid-template-columns: 1fr;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .note-box,
  .editor-callout,
  .insight-panel,
  .source-note-box {
    padding: 18px;
  }

  .breadcrumb,
  .summary-list li,
  .detail-section p,
  .insight-list,
  .article-meta-panel strong,
  .source-link {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .detail-hero {
    padding: 24px 0 30px;
  }

  .breadcrumb {
    font-size: 11px;
  }

  .breadcrumb span:last-child {
    display: none;
  }

  .badge-row,
  .byline-row,
  .tag-row,
  .article-meta {
    gap: 7px;
  }

  .article-detail .badge-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-chip,
  .badge,
  .tag-link {
    font-size: 10px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .article-detail .source-chip,
  .article-detail .badge {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  /* ハンバーガーメニュー表示 */
  .nav-toggle {
    display: flex;
  }

  .category-nav {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    z-index: 200;
    padding: 72px 28px 28px;
    gap: 6px;
    overflow-y: auto;
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .category-nav {
    display: flex;
  }

  .nav-close {
    display: flex;
    position: absolute;
    top: 18px;
    right: 20px;
  }

  .category-nav .nav-button,
  .category-nav .nav-link {
    width: 100%;
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    justify-content: flex-start;
  }

  .detail-hero-inner,
  .related-inner {
    width: min(100% - 44px, 520px);
  }

  .visual-panel {
    min-height: 180px;
  }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e2e8f0;
    --ink-soft: #cbd5e1;
    --muted: #94a3b8;
    --line: #334155;
    --line-soft: #1e293b;
    --paper: #0f172a;
    --white: #1e293b;
    --surface: #111827;
    --accent: #2dd4bf;
    --accent-strong: #14b8a6;
    --blue: #60a5fa;
    --red: #fb7185;
    --amber: #fbbf24;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.3);
  }
  :root:not([data-theme="light"]) body {
    background: var(--paper);
  }
  :root:not([data-theme="light"]) .site-header {
    background: rgba(15, 23, 42, 0.92);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e2e8f0;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: #334155;
  --line-soft: #1e293b;
  --paper: #0f172a;
  --white: #1e293b;
  --surface: #111827;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --blue: #60a5fa;
  --red: #fb7185;
  --amber: #fbbf24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body {
  background: var(--paper);
}

[data-theme="dark"] .tag-link {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .source-chip {
  background: rgba(30, 41, 59, 0.72);
  color: #94a3b8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-link {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
  }
  :root:not([data-theme="light"]) .source-chip {
    background: rgba(30, 41, 59, 0.72);
    color: #94a3b8;
  }
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.92);
}

.theme-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--line-soft);
}

.theme-dark-icon { display: inline; }
.theme-light-icon { display: none; }

[data-theme="dark"] .theme-dark-icon { display: none; }
[data-theme="dark"] .theme-light-icon { display: inline; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-icon { display: none; }
  :root:not([data-theme="light"]) .theme-light-icon { display: inline; }
}

.ai-disclosure {
  margin: 8px 0 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  background: var(--paper);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--muted);
}
