:root {
  --paper: #faf9f2;
  --paper-deep: #f1efe4;
  --ink: #111111;
  --ink-sub: #555249;
  --rule: #111111;
  --rule-soft: #c9c5b6;
  --red: #c8352a;
  --up: #c8352a;
  --down: #1f55c4;
  --dot-ai: #7b5cff;
  --dot-dev: #2f6bff;
  --dot-security: #e5432f;
  --dot-industry: #1e9e6a;
  --dot-economy: #f2a100;
  --dot-world: #8a94a0;
  --font-en: "DM Sans", "Noto Sans JP", sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --gutter: 16px;
  --topbar-h: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "palt";
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.l-container {
  width: min(1240px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.l-section {
  margin-top: 72px;
}

.sample-note {
  padding: 6px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  text-align: center;
}

/* ---- masthead ---- */
.masthead__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 20px 16px;
  border-bottom: 1px dotted var(--rule);
}

.masthead__date {
  display: grid;
  justify-items: center;
  padding-right: 16px;
  border-right: 1px solid var(--rule-soft);
  font-family: var(--font-en);
  line-height: 1;
}

.masthead__month {
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.masthead__day {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.masthead__year {
  margin-top: 8px;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.masthead__brand {
  display: grid;
  gap: 4px;
}

.masthead__tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-sub);
}

.masthead__logo {
  font-family: var(--font-en);
  font-size: clamp(34px, 9vw, 104px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.masthead__edition {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.masthead__edition-label {
  font-weight: 900;
}

.masthead__edition-time {
  font-family: var(--font-en);
  color: var(--ink-sub);
}

/* ---- topbar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  min-height: var(--topbar-h);
}

.topbar__logo {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.topbar__editions ul {
  display: flex;
}

.topbar__edition {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.topbar__time {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-sub);
}

.topbar__edition.is-current {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.topbar__edition.is-disabled {
  color: var(--ink-sub);
  font-weight: 500;
}

a.topbar__edition:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.topbar__cats {
  display: none;
}

/* ---- labels ---- */
.cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.cat::before {
  content: "(";
  font-weight: 400;
}

.cat::after {
  content: ")";
  font-weight: 400;
}

.cat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-world);
}

.cat--ai .cat__dot { background: var(--dot-ai); }
.cat--dev .cat__dot { background: var(--dot-dev); }
.cat--security .cat__dot { background: var(--dot-security); }
.cat--industry .cat__dot { background: var(--dot-industry); }
.cat--economy .cat__dot { background: var(--dot-economy); }

.badge {
  display: inline-block;
  padding: 1px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  vertical-align: 0.15em;
}

.badge--urgent {
  background: var(--red);
  color: #fff;
}

/* ---- thumbnail ---- */
.thumb {
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

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

/* ---- alert ---- */
.alert {
  background: var(--red);
  color: #fff;
}

.alert__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 10px;
}

.alert__label {
  flex-shrink: 0;
  padding: 0 8px;
  border: 1px solid #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.8;
}

.alert__list {
  display: grid;
  gap: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.alert__list a {
  text-underline-offset: 4px;
}

.alert__list a:focus-visible {
  outline-color: #fff;
}

/* ---- section head ---- */
.section-head {
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.section-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.section-head__en {
  font-family: var(--font-en);
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-head__ja {
  font-size: 13px;
  font-weight: 700;
}

/* ---- front (briefing + side) ---- */
.front {
  display: grid;
  gap: 48px;
  margin-top: 40px;
}

.brief-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule-soft);
}

.brief-row--thumb {
  grid-template-columns: 36px minmax(0, 1fr) 84px;
}

.brief-row__thumb {
  aspect-ratio: 1;
}

.brief-row__num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brief-row__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.brief-row__title {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.55;
}

.brief-row__title a,
.story__title a,
.entry__title a,
.side-links a {
  text-decoration: none;
}

.brief-row__title a:hover,
.story__title a:hover,
.entry__title a:hover,
.side-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brief-row__why {
  margin-top: 6px;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.7;
}

.brief-row__time {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--ink-sub);
}

.front__side {
  display: grid;
  gap: 40px;
  align-content: start;
}

.side-block__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 700;
}

.side-block__title > span {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.market {
  display: grid;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.market:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid var(--rule-soft);
}

.market__name {
  font-size: 12px;
  color: var(--ink-sub);
}

.market__value {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.market__change {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.market__change--up { color: var(--up); }
.market__change--down { color: var(--down); }

.schedule li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.6;
}

.schedule__time {
  font-family: var(--font-en);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---- top stories ---- */
.stories {
  display: grid;
}

.story {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule-soft);
}

.story__thumb {
  aspect-ratio: 16 / 9;
  margin-bottom: 4px;
}

.story__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.story__title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
}

.story--lead .story__title {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.story__lead {
  font-size: 15px;
  line-height: 1.9;
}

.story--lead .story__lead {
  font-size: 16px;
}

.story__meta,
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--ink-sub);
}

/* ---- categories ---- */
.cat-blocks {
  display: grid;
}

.cat-block {
  padding-block: 28px;
  border-bottom: 1px dotted var(--rule);
  scroll-margin-top: calc(var(--topbar-h) + 8px);
}

.cat-block__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.cat-block__title .cat {
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
}

.cat-block__title .cat__dot {
  width: 9px;
  height: 9px;
}

.cat-block__count {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--ink-sub);
}

.entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule-soft);
}

.entry--thumb {
  grid-template-columns: 44px minmax(0, 1fr) 72px;
}

.entry__thumb {
  aspect-ratio: 1;
}

.entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry__date {
  display: grid;
  justify-items: center;
  align-content: start;
  font-family: var(--font-en);
  line-height: 1;
}

.entry__month {
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry__day {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
}

.entry__hm {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-sub);
}

.entry__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.entry__title .badge {
  margin-left: 8px;
}

.entry__lead {
  margin-top: 6px;
  color: var(--ink-sub);
  font-size: 14px;
  line-height: 1.75;
}

/* ---- article ---- */
.article-layout {
  display: grid;
  gap: 56px;
  margin-top: 40px;
}

.article {
  max-width: 720px;
}

.article__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.article__title {
  margin-top: 16px;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.article__meta {
  margin-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.article__figure {
  margin-top: 28px;
  background: none;
}

.article__figure img {
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
}

.article__figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-sub);
}

.article__summary {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}

.article__summary-label,
.article__note-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
}

.article__summary p:not(.article__summary-label) {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}

.article__block {
  margin-top: 40px;
}

.article__block h2,
.article__sources h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 900;
}

.article__block h2::after,
.article__sources h2::after {
  content: "";
  flex: 1;
  border-top: 1px dotted var(--rule);
}

.article__block p {
  line-height: 1.95;
}

.article__block p + p {
  margin-top: 16px;
}

.article__note {
  margin-top: 40px;
  padding: 16px 20px;
  border-left: 4px solid var(--ink);
  background: var(--paper-deep);
}

.article__note p:not(.article__note-label) {
  font-size: 15px;
  line-height: 1.85;
}

.article__sources {
  margin-top: 40px;
}

.article__sources li + li {
  border-top: 1px solid var(--rule-soft);
}

.article__sources a {
  display: block;
  padding-block: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-underline-offset: 4px;
}

.article__sources a::after {
  content: "↗";
  margin-left: 6px;
  font-family: var(--font-en);
}

.article__source-name {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-sub);
  font-size: 12px;
  font-weight: 500;
}

.back-link {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.back-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.article-side {
  display: grid;
  gap: 40px;
  align-content: start;
}

.side-links li {
  display: flex;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.side-rank {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--ink-sub);
}

.side-links a[aria-current="page"] {
  color: var(--ink-sub);
}

/* ---- footer ---- */
.site-footer {
  margin-top: 96px;
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  display: grid;
  gap: 12px;
  padding-block: 40px;
  font-size: 12px;
}

.site-footer__logo {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.site-footer a:focus-visible {
  outline-color: var(--paper);
}

/* ---- tablet ---- */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  .masthead__inner {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    padding-block: 28px 20px;
  }

  .masthead__date {
    padding-right: 24px;
  }

  .masthead__day {
    font-size: 52px;
  }

  .masthead__edition {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding-left: 24px;
    border-left: 1px solid var(--rule-soft);
    font-size: 14px;
  }

  .masthead__edition-label {
    font-size: 22px;
  }

  .brief-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
  }

  .brief-row--thumb {
    grid-template-columns: 56px minmax(0, 1fr) 168px;
  }

  .brief-row__thumb {
    aspect-ratio: 3 / 2;
  }

  .brief-row__num {
    font-size: 34px;
  }

  .brief-row__title {
    font-size: 20px;
  }

  .markets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .market:nth-child(n) {
    padding-left: 12px;
    border-left: 1px solid var(--rule-soft);
  }

  .market:first-child {
    padding-left: 0;
    border-left: 0;
  }

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

  .story--lead {
    grid-column: 1 / -1;
  }

  .story:not(.story--lead):nth-child(even) {
    padding-right: 24px;
  }

  .story:not(.story--lead):nth-child(odd) {
    padding-left: 24px;
    border-left: 1px solid var(--rule-soft);
  }

  .cat-blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .entry {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
  }

  .entry--thumb {
    grid-template-columns: 52px minmax(0, 1fr) 96px;
  }
}

/* ---- PC ---- */
@media (min-width: 1024px) {
  .topbar__cats {
    display: block;
    margin-left: auto;
  }

  .topbar__cats ul {
    display: flex;
    flex-wrap: wrap;
  }

  .topbar__cats a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
  }

  .topbar__cats a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
  }

  .front {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0;
  }

  .briefing {
    padding-right: 40px;
    border-right: 1px solid var(--rule);
  }

  .front__side {
    padding-left: 40px;
  }

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

  .market:nth-child(n) {
    padding-left: 0;
    border-left: 0;
  }

  .market:nth-child(even) {
    padding-left: 12px;
    border-left: 1px solid var(--rule-soft);
  }

  .stories {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .story--lead {
    grid-column: auto;
    grid-row: span 2;
    padding-right: 40px;
    border-bottom: 0;
  }

  .story--lead .story__title {
    font-size: 44px;
  }

  .story:not(.story--lead):nth-child(n) {
    padding-left: 40px;
    padding-right: 0;
    border-left: 1px solid var(--rule);
  }

  .article-layout {
    grid-template-columns: minmax(0, 776px) 320px;
    justify-content: center;
    gap: 0;
  }

  .article {
    padding-right: 56px;
    border-right: 1px solid var(--rule);
  }

  .article-side {
    position: sticky;
    top: calc(var(--topbar-h) + 24px);
    padding-left: 40px;
  }
}
