:root {
  color-scheme: light dark;
  --news-bg: #f7f5f0;
  --news-surface: #ffffff;
  --news-surface-2: #f1eee8;
  --news-text: #27231f;
  --news-subtle: #6f6962;
  --news-border: #ded9d1;
  --news-accent: #7b5c3e;
  --news-accent-soft: #eee3d7;
  --news-on-accent: #ffffff;
  --news-focus: #2563eb;
  --news-shadow: 0 8px 28px rgb(71 58 45 / 10%);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--news-bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--news-bg);
  color: var(--news-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
a { color: var(--news-accent); }
a:focus-visible { outline: 3px solid var(--news-focus); outline-offset: 3px; border-radius: 8px; }
.news-shell { width: min(100%, 760px); margin: 0 auto; padding: 32px 20px 112px; }
.news-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--news-accent-soft);
  color: var(--news-accent);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}
.news-header { margin: 18px 0 28px; }
.news-header h1 { margin: 0; font-size: clamp(28px, 7vw, 40px); line-height: 1.25; letter-spacing: -.02em; }
.news-header p { margin: 10px 0 0; color: var(--news-subtle); }
.news-header .news-storage-note { margin-top: 6px; font-size: 13px; }
.news-list { display: grid; gap: 14px; }
.news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 18px;
  border: 1px solid var(--news-border);
  border-radius: 18px;
  background: var(--news-surface);
  box-shadow: var(--news-shadow);
  color: inherit;
  text-decoration: none;
}
.news-card:hover { border-color: var(--news-accent); }
.news-card h2 { margin: 6px 0 0; font-size: 17px; line-height: 1.5; }
.news-card p { margin: 5px 0 0; color: var(--news-subtle); font-size: 14px; }
.news-arrow { color: var(--news-accent); font-size: 22px; font-weight: 800; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--news-subtle); font-size: 13px; }
.news-category { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--news-accent-soft); color: var(--news-accent); font-size: 12px; font-weight: 800; }
.news-unread { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--news-accent); color: var(--news-on-accent); font-size: 12px; font-weight: 800; }
.news-empty {
  padding: 52px 24px;
  border: 1px dashed var(--news-border);
  border-radius: 20px;
  background: var(--news-surface);
  text-align: center;
}
.news-empty-icon { display: block; margin-bottom: 12px; font-size: 40px; }
.news-empty h2 { margin: 0; font-size: 19px; }
.news-empty p { margin: 8px 0 0; color: var(--news-subtle); font-size: 14px; }
.news-back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 18px; font-weight: 750; text-decoration: none; }
.news-article {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--news-border);
  border-radius: 22px;
  background: var(--news-surface);
  box-shadow: var(--news-shadow);
}
.news-article h1 { margin: 12px 0 8px; font-size: clamp(25px, 6vw, 36px); line-height: 1.35; }
.news-summary { margin: 0 0 28px; color: var(--news-subtle); font-size: 16px; }
.news-section { padding-top: 24px; border-top: 1px solid var(--news-border); }
.news-section + .news-section { margin-top: 24px; }
.news-section h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.45; }
.news-section p { margin: 12px 0; }
.news-links { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.news-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
.news-not-found { padding: 36px 22px; border-radius: 18px; background: var(--news-surface); text-align: center; }
.news-bottom-back {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 32px), 520px);
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--news-accent), transparent 25%);
  border-radius: 16px;
  background: var(--news-accent);
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
  color: var(--news-on-accent);
  font-weight: 800;
  text-decoration: none;
}
.news-bottom-back:hover { filter: brightness(.95); }
@media (prefers-color-scheme: dark) {
  :root {
    --news-bg: #171512;
    --news-surface: #211e1a;
    --news-surface-2: #2a2621;
    --news-text: #f5f1eb;
    --news-subtle: #b5ada4;
    --news-border: #403a33;
    --news-accent: #dfb98e;
    --news-accent-soft: #3b2f24;
    --news-on-accent: #171512;
    --news-shadow: 0 10px 30px rgb(0 0 0 / 28%);
  }
}
@media (max-width: 480px) {
  .news-shell { padding: 22px 16px 104px; }
  .news-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
