:root {
  --paper: #fff;
  --ink: #18241f;
  --muted: #52605a;
  --accent: #145846;
  --tint: #edf5f0;
  --rule: #d9e1dc;
  --control-line: #819189;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans CJK JP", Meiryo, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --edge: clamp(16px, 4vw, 40px);
  --measure: 44rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.7 var(--font); }
h1, h2, h3, p, dl, dd { margin: 0; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.container { width: min(68rem, calc(100% - 2 * var(--edge))); margin-inline: auto; }

.skip-link { position: fixed; top: 8px; left: 12px; transform: translateY(-150%); z-index: 5; padding: 8px 16px; background: var(--paper); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 63px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { display: block; flex: none; border-radius: 6px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { display: inline-grid; min-width: 44px; min-height: 47px; place-items: center; padding-inline: 4px; color: var(--muted); font-size: .875rem; font-weight: 650; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); text-decoration: underline; }
.main-nav a[aria-current] { color: var(--accent); font-weight: 800; border-bottom-color: var(--accent); }

.home-content { max-width: 60rem; padding-block: clamp(32px, 7vw, 88px) 64px; }
.intro { margin-bottom: 32px; }
.intro h1, .stock-banner h1, .read-header h1 { font-size: clamp(1.625rem, 3.8vw, 2.625rem); font-weight: 800; line-height: 1.37; overflow-wrap: anywhere; }
.intro p, .stock-banner > p, .read-header > p { margin-top: 12px; max-width: 42rem; color: var(--muted); }
.home-intro { margin: 0 0 clamp(40px, 6vw, 72px); }
.home-intro h1 { font-size: clamp(1.85rem, 5.4vw, 3.25rem); }
.home-intro a { display: inline-flex; min-height: 44px; align-items: center; font-size: .875rem; font-weight: 700; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.5; }
.section-heading span { color: var(--muted); font-size: .875rem; }
.entry-list > :not([hidden]) { border-top: 1px solid var(--rule); }
.entry-row { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 24px; padding-block: 20px; }
.entry-content { min-width: 0; }
.entry-row h3 { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); line-height: 1.5; overflow-wrap: anywhere; }
.entry-link { display: block; color: var(--accent); text-decoration: none; }
.entry-link h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.entry-link:hover h3 { text-decoration-thickness: 2px; }
.entry-link::after { position: absolute; inset: 0; content: ""; }
.entry-link:focus-visible { outline: none; }
.entry-link:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }
.entry-row:has(.entry-link:is(:hover, :active, :focus-visible)) { background: var(--tint); }
.entry-row :is(.ticker, .save-button) { position: relative; z-index: 1; }
.entry-summary { display: block; margin-top: 6px; max-width: 46rem; color: var(--muted); overflow-wrap: anywhere; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; color: var(--muted); font-size: .875rem; }
.ticker { color: var(--accent); font: 750 .875rem/1.4 var(--mono); white-space: nowrap; }
.entry-meta a.ticker { text-decoration: underline; }
.stage { font-weight: 600; }

.bookmark-icon { display: block; width: 13px; height: 17px; flex: 0 0 auto; background: currentColor; clip-path: polygon(0 0,100% 0,100% 100%,50% 75%,0 100%,0 0,14% 12%,14% 76%,50% 58%,86% 76%,86% 12%,14% 12%); }
[aria-pressed="true"] .bookmark-icon { clip-path: polygon(0 0,100% 0,100% 100%,50% 74%,0 100%); }
.save-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-width: 44px; min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: var(--accent); cursor: pointer; }
.save-wide { padding-inline: 10px; font-size: .875rem; font-weight: 700; }
.save-button:hover, .save-button[aria-pressed="true"] { background: var(--tint); }

.filter-bar, .filters, .saved-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.filter-bar { justify-content: space-between; margin-bottom: 16px; }
.news-filters { margin-bottom: 8px; }
.filters button { min-height: 44px; min-width: 44px; padding: 4px 8px; border: 0; border-bottom: 2px solid transparent; background: var(--paper); color: var(--muted); font-size: .875rem; font-weight: 650; cursor: pointer; }
.filters button:hover { text-decoration: underline; text-underline-offset: .2em; }
.filters button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); font-weight: 800; }
#stock-search { min-height: 44px; width: min(100%, 16rem); padding: 8px 12px; border: 1px solid var(--control-line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.stock-section { margin-top: 48px; }
.stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.stock-tile { border-top: 1px solid var(--rule); }
.stock-tile a { display: block; height: 100%; padding-block: 12px; color: var(--ink); text-decoration: none; }
.stock-tile a:is(:hover, :focus-visible) { background: var(--tint); }
.stock-tile h3 { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }
.stock-tile h3 { margin-block: 2px; font-size: 1rem; overflow-wrap: anywhere; }
.stock-tile-summary, .stock-group { color: var(--muted); font-size: .875rem; }
.stock-tile-summary { display: block; }
.stock-group { margin-inline-start: 8px; }
.compare-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 32px; padding-block: 16px; border-block: 1px solid var(--rule); }
.compare-strip p { color: var(--muted); font-size: .875rem; }
.compare-strip h2 { font-size: 1rem; }
.compare-strip > a { display: inline-flex; min-height: 44px; align-items: center; font-size: .875rem; font-weight: 700; }

.detail-content { padding-block: 24px 64px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 28px; color: var(--muted); font-size: .875rem; }
.feed-grid { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 15rem); column-gap: clamp(28px, 5vw, 64px); align-items: start; }
.longread.narrow, .compare-article, .saved-content { max-width: var(--measure); }
.stock-banner { margin-bottom: 40px; }
.stock-banner .source-link { margin-top: 8px; }
.legacy-anchor:target { outline: 2px solid var(--control-line); outline-offset: 3px; }

.read-header { margin-bottom: 24px; }
.read-header h1 { margin-block: 8px 12px; text-wrap: balance; word-break: auto-phrase; }
.read-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .875rem; }
.read-body { font-size: 1.0625rem; line-height: 1.9; overflow-wrap: anywhere; }
.lead { color: var(--ink); font-size: clamp(1.0625rem, 2.2vw, 1.25rem); line-height: 1.75; }
.story-article { margin-inline: auto; }
.story-article .read-header { padding-block: 12px 18px; border-bottom: 1px solid var(--rule); }
.article-standfirst { margin-top: 18px; }
.summary-label { color: var(--accent); font-size: .875rem; font-weight: 750; margin-bottom: 6px; }
.article-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 16px; }
.read-action { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 4px; background: var(--accent); color: var(--paper); font-size: .875rem; font-weight: 750; text-decoration: none; }
.read-action:is(:hover,:focus-visible) { background: #103e33; text-decoration: underline; }
.article-outline > summary { min-height: 44px; padding: 10px 8px; color: var(--accent); font-size: .875rem; font-weight: 700; cursor: pointer; }
.article-outline > summary:hover { text-decoration: underline; }
.contents { position: absolute; z-index: 2; inset-block-start: 100%; inset-inline-start: 0; width: min(100%, 20rem); display: grid; background: var(--paper); border: 1px solid var(--control-line); border-radius: 4px; padding: 4px 12px; }
.contents a { display: flex; align-items: center; min-height: 44px; padding-block: 4px; font-size: .875rem; }
.contents a + a { border-top: 1px solid var(--rule); }
.story-article .read-body > section:first-child { margin-top: 0; }
.article-footer { margin-top: 40px; }
.article-footer .reading-rail { margin-top: 16px; }
.article-footer .reading-rail h2 { font-size: 1.125rem; }
.comments {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.comments h2 { font-size: clamp(1.25rem, 3vw, 1.625rem); }
.comment-form { display: grid; gap: 12px; margin-top: 12px; }
.comment-note, .comment-status { color: var(--muted); font-size: .875rem; }
.comment-field { display: grid; gap: 4px; }
.comment-field label { font-size: .9375rem; font-weight: 650; }
.comment-field :is(input, textarea, select) {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.comment-field input { max-width: 22rem; }
.comment-field select { max-width: 24rem; }
.comment-field textarea { resize: vertical; }
.inquiry-form { margin-top: 24px; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.comment-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--paper);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}
.comment-actions .comment-button { background: var(--accent); color: var(--paper); }
.comment-button:not(:disabled):hover { background: var(--tint); color: var(--accent); }
.comment-button:disabled { opacity: .65; cursor: wait; }
.comment-empty, .comment-more { margin-top: 16px; }
.comment-empty:empty, .comment-list:empty { display: none; }
.comment-list { display: grid; gap: 10px; list-style: none; margin: 20px 0 0; padding: 0; }
.comment-entry { padding: 12px 14px; border: 1px solid var(--rule); overflow-wrap: anywhere; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.comment-meta time { color: var(--muted); font-size: .875rem; }
.comment-text { margin-top: 4px; white-space: pre-wrap; }
.comment-admin { max-width: var(--measure); }
.comment-admin h1 { margin-block: 16px; }
.comment-admin form { margin-top: 8px; }
.read-body > section { margin-top: 48px; }
.read-body h2 { font-size: clamp(1.25rem, 3vw, 1.625rem); line-height: 1.5; margin-bottom: 12px; }
.read-body h3 { font-size: 1.125rem; line-height: 1.6; margin-block: 28px 8px; }
.story-article .read-body :is(section > p, dd) { max-width: 38rem; }
.read-body p + p { margin-top: 16px; }
.read-body dt { font-weight: 750; }
.read-body dd { margin-top: 6px; }
.impact-grid > div + div, .followup-list > div + div { margin-top: 24px; }
.checks-list { padding-inline-start: 1.25rem; list-style: disc; }
.checks-list li + li { margin-top: 8px; }
.article-sources { padding-top: 16px; border-top: 1px solid var(--rule); }
.source-link { display: block; width: fit-content; padding-block: 9px; font-size: .9375rem; line-height: 1.6; }
.reading-rail { padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); overflow-wrap: anywhere; }
.reading-rail h2 { color: var(--ink); font-size: 1rem; }
.reading-rail p { margin-top: 8px; font-size: .9375rem; }
.reading-rail a { display: block; padding-block: 8px; font-size: .9375rem; }
.reading-rail .siblings-heading { margin-top: 20px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; line-height: 1.55; }
table th, table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table th:first-child { padding-inline-start: 0; }
table th:last-child, table td:last-child { padding-inline-end: 0; }
thead { color: var(--muted); font-size: .875rem; }
thead th { border-bottom-color: var(--control-line); }
.metrics-table { margin-block: 16px 8px; }
.metrics-table th[scope="row"] { width: 38%; font-weight: 650; }
.metrics-table td strong { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.metrics-table td span { display: block; margin-top: 2px; color: var(--muted); font-size: .875rem; }
.compare-content table { table-layout: fixed; }
.compare-content th:first-child { width: 25%; }

.article-metrics { margin-top: 24px; border-top: 1px solid var(--rule); }
.article-metrics summary { color: var(--accent); padding-block: 10px; font-weight: 700; cursor: pointer; }
.article-metrics .metrics-table { margin-top: 0; }
.revenue-figure, .article-image { margin-block: 24px 28px; }
.article-image img { display: block; width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; background: var(--tint); }
.article-image figcaption { margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.6; text-align: end; }
.revenue-figure { padding: 14px 16px; background: var(--tint); font-size: .875rem; }
.revenue-figure figcaption { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.revenue-figure figcaption strong { font-size: 1rem; }
.revenue-figure :is(figcaption span, p) { color: var(--muted); }
.revenue-figure li { display: grid; grid-template-columns: minmax(5em, 7.5em) minmax(0, 1fr) 3.7em; column-gap: 8px; align-items: center; line-height: 1.5; }
.revenue-figure li + li { margin-top: 8px; }
.revenue-figure li strong { text-align: right; font-variant-numeric: tabular-nums; }
.revenue-track { height: 12px; }
.revenue-track span { display: block; height: 100%; background: #5a8376; }
.revenue-figure li:last-child .revenue-track span { background: var(--accent); }
.revenue-figure p { margin-top: 12px; }
.article-chart {
  margin-top: 32px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
}
.article-chart summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 7px;
  background: var(--tint);
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.article-chart summary::-webkit-details-marker { display: none; }
.article-chart summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  flex: none;
  transform: translateY(-2px) rotate(45deg);
}
.article-chart summary:hover { background: #e1eee6; }
.article-chart[open] summary { border-bottom: 1px solid var(--rule); border-radius: 7px 7px 0 0; }
.article-chart[open] summary::after { transform: translateY(2px) rotate(225deg); }
.article-chart:not([open]) .chart-close-label, .article-chart[open] .chart-open-label { display: none; }
.chart-content { padding: 12px; }
.chart-content p { color: var(--muted); font-size: .875rem; }
.chart-content > p:first-child { margin-bottom: 8px; }
.chart-content .chart-credit { margin-top: 8px; }
.article-chart iframe { display: block; width: 100%; height: clamp(290px, 45vw, 370px); border: 0; }

.saved-tools button, .saved-tools label { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border: 1px solid var(--control-line); border-radius: 4px; color: var(--accent); background: var(--paper); font-size: .875rem; font-weight: 700; cursor: pointer; }
.saved-tools button:disabled { color: var(--muted); cursor: default; }
.saved-tools :is(button:not(:disabled), label):hover { background: var(--tint); }
.saved-tools:has(input:focus-visible) label { outline: 2px solid var(--ink); outline-offset: 3px; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#backup-status { flex-basis: 100%; color: var(--muted); font-size: .875rem; }
#backup-status:empty { display: none; }
.empty-state { color: var(--muted); margin-block: 16px; }
.saved-content .text-link { display: inline-block; margin-top: 16px; }

.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-block: 16px; font-size: .875rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; }
.comment-admin .footer-links { margin-bottom: 16px; }
.footer-brand { color: var(--ink); font-weight: 800; text-decoration: none; }
.footer-brand:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .feed-grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .feed-grid { max-width: var(--measure); }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 66px; }
  body { padding-bottom: calc(49px + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 52px; }
  .brand { font-size: 1.0625rem; }
  .main-nav { position: fixed; bottom: 0; inset-inline: 0; gap: 0; z-index: 4; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--rule); background: var(--paper); }
  .main-nav a { flex: 1; min-height: 48px; border-top: 2px solid transparent; border-bottom: 0; }
  .main-nav a[aria-current] { border-top-color: var(--accent); }
  .home-content, .detail-content { padding-bottom: 40px; }
  .detail-content { padding-top: 16px; }
  .breadcrumbs { margin-bottom: 20px; }
  .entry-row { padding-block: 16px; }
  .entry-summary, .read-body { font-size: 1rem; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .read-header { margin-bottom: 16px; }
  .read-header h1 { margin-top: 4px; }
  .story-article .read-header { padding-top: 4px; }
  .read-body > section { margin-top: 40px; }
  table th, table td { padding-inline: 7px; }
}

#analytics-settings { scroll-margin-top: 96px; }
#analytics-settings summary { min-height: 44px; padding-block: 8px; cursor: pointer; }
