:root {
  --ink: #111111;
  --paper: #ffffff;
  --mist: #f2f2ef;
  --line: #d9d9d4;
  --muted: #686868;
  --signal: #e63b2e;
  --shell: 1180px;
  --reading: 760px;
  --space-1: .5rem;
  --space-2: .875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: clamp(3rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--signal); }
button, input, textarea { font: inherit; }
.shell { width: min(100% - 2rem, var(--shell)); margin-inline: auto; }
.reading-width { width: min(100% - 2rem, var(--reading)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: .5rem; left: .5rem; padding: .75rem 1rem; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.98); }
.site-header__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .3rem; color: var(--ink); font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; text-decoration: none; }
.wordmark__trigger { color: var(--signal); }
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav .menu { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: .75rem; font-weight: 800; letter-spacing: .055em; text-decoration: none; }
.search-link { display: flex; align-items: center; gap: .3rem; }
.search-link span:first-child { font-size: 1.3rem; line-height: 1; }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; border: 0; background: transparent; font-weight: 800; }
.nav-toggle__label { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }

.eyebrow { display: inline-block; color: var(--signal); font-size: .72rem; font-weight: 850; letter-spacing: .1em; line-height: 1.3; text-decoration: none; text-transform: uppercase; }
.story-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .74rem; }
.story-meta span + span::before, .story-meta time + span::before { margin-right: 1rem; content: "•"; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; border-top: 4px solid var(--ink); padding-top: .75rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.8vw, 2rem); letter-spacing: -.035em; line-height: 1; }
.section-heading a { font-size: .78rem; font-weight: 750; }
.home-section { padding-block: var(--space-5); }
.home-section + .home-section { border-top: 1px solid var(--line); }

.hero { padding-block: clamp(2rem, 6vw, 5rem); }
.hero__label { margin: 0 0 1rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__title { margin: .65rem 0 1rem; font-size: clamp(2.1rem, 4.8vw, 4.35rem); letter-spacing: -.06em; line-height: 1.04; text-wrap: balance; }
.hero__title a { text-decoration: none; }
.hero__deck { margin: 0 0 1.5rem; color: #353535; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.read-more { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 2px solid var(--ink); font-size: .82rem; font-weight: 800; text-decoration: none; }

.media-fallback { position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; background: #e8e8e3; }
.media-fallback::before, .media-fallback::after { position: absolute; width: 70%; height: 200%; background: var(--ink); content: ""; opacity: .06; transform: rotate(35deg); }
.media-fallback::after { right: -28%; background: var(--signal); opacity: .8; }
.media-fallback span { position: relative; z-index: 1; font-size: clamp(1.6rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.08em; }

.trending-strip { padding-block: 2rem; background: var(--ink); color: #fff; }
.trending-strip .section-heading { border-color: #fff; }
.trending-strip .section-heading a, .trending-strip .story-meta { color: #bfbfba; }
.trending-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: trending; }
.trending-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1rem clamp(1rem, 3vw, 2rem); border-left: 1px solid #444; counter-increment: trending; }
.trending-item:first-child { border-left: 0; padding-left: 0; }
.trending-item::before { color: var(--signal); content: counter(trending, decimal-leading-zero); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.trending-item h3 { margin: 0 0 .75rem; font-size: 1rem; line-height: 1.35; }
.trending-item a { text-decoration: none; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.story-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.story-card:hover .story-card__media img { transform: scale(1.015); }
.story-card__body { padding-top: 1rem; }
.story-card__title { margin: .45rem 0 .65rem; font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.025em; line-height: 1.35; }
.story-card__title a { text-decoration: none; }
.story-card__excerpt { margin: 0 0 .85rem; color: #4c4c4c; font-size: .9rem; }
.story-card--compact { display: grid; grid-template-columns: 136px 1fr; gap: 1rem; }
.story-card--compact .story-card__body { padding: 0; }
.story-card--compact .story-card__title { margin-top: .25rem; font-size: 1rem; }

.latest-list { display: grid; gap: 0; }
.latest-list .story-card { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(1rem, 4vw, 2.5rem); padding-block: 1.5rem; border-top: 1px solid var(--line); }
.latest-list .story-card:first-child { border-top: 0; padding-top: 0; }
.latest-list .story-card__body { padding: 0; align-self: center; }

.archive-header, .search-header { padding-block: clamp(2.5rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.archive-header h1, .search-header h1 { margin: .4rem 0 1rem; max-width: 850px; font-size: clamp(2.4rem, 7vw, 5.5rem); letter-spacing: -.065em; line-height: 1; }
.archive-header p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.archive-grid { padding-block: var(--space-5); }
.archive-grid .story-grid { grid-template-columns: repeat(3, 1fr); }
.no-results { padding-block: 5rem; text-align: center; }

.search-form { display: flex; width: min(100%, 640px); margin-top: 1.5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 52px; border: 1px solid var(--ink); padding: .75rem 1rem; border-radius: 0; }
.search-submit { min-height: 52px; border: 1px solid var(--ink); padding: .75rem 1.25rem; background: var(--ink); color: #fff; font-weight: 800; }

.breadcrumbs { margin-bottom: 1.5rem; color: var(--muted); font-size: .76rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: .4rem; content: "/"; }
.article-header { padding: clamp(2.5rem, 7vw, 6rem) 0 2rem; }
.article-header h1 { margin: .7rem 0 1rem; max-width: 970px; font-size: clamp(2.25rem, 6vw, 5rem); letter-spacing: -.06em; line-height: 1.08; text-wrap: balance; }
.article-deck { max-width: 800px; margin: 0 0 1.5rem; color: #3f3f3f; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.6; }
.article-hero { width: min(100% - 2rem, 1280px); margin: 0 auto; }
.article-hero__image { overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.article-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.article-hero figcaption { margin-top: .6rem; color: var(--muted); font-size: .75rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) minmax(200px, 280px); justify-content: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
.article-content { min-width: 0; font-size: 1.075rem; }
.article-content > * { max-width: 100%; }
.article-content > * + * { margin-top: 1.4em; }
.article-content h2 { margin-top: 2.5em; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; line-height: 1.3; }
.article-content h3 { margin-top: 2em; font-size: 1.3rem; }
.article-content a { color: #a82820; }
.article-content blockquote { margin-inline: 0; border-left: 4px solid var(--signal); padding: .5rem 0 .5rem 1.5rem; color: #3f3f3f; }
.article-content figure { margin-inline: 0; }
.key-takeaways { margin-bottom: 2.5rem; border-block: 4px solid var(--ink); padding: 1.5rem 0; }
.key-takeaways h2 { margin: 0 0 .75rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.key-takeaways ul { margin: 0; padding-left: 1.25rem; }
.article-sidebar { align-self: start; position: sticky; top: 2rem; }
.sidebar-box { border-top: 4px solid var(--ink); padding-top: 1rem; }
.sidebar-box h2 { margin: 0 0 .75rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-box p { color: var(--muted); font-size: .85rem; }
.article-sources { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.article-sources h2 { margin-top: 0; font-size: 1.45rem; }
.article-sources li { margin-bottom: .75rem; word-break: break-word; }
.correction-note { margin-top: 2rem; border-left: 3px solid var(--signal); padding: .75rem 1rem; background: var(--mist); font-size: .88rem; }
.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center; margin-top: 3rem; border-block: 1px solid var(--line); padding-block: 1.5rem; }
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0; font-size: 1rem; }
.author-box p { margin: .25rem 0 0; color: var(--muted); font-size: .84rem; }
.share-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.share-links a { min-height: 42px; display: inline-flex; align-items: center; border: 1px solid var(--line); padding: .55rem .8rem; font-size: .78rem; font-weight: 700; text-decoration: none; }
.related-stories { padding-block: var(--space-5); border-top: 1px solid var(--line); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-navigation a { display: block; border-top: 1px solid var(--ink); padding-top: .75rem; font-size: .88rem; font-weight: 750; text-decoration: none; }
.post-navigation .nav-next { text-align: right; }
.ad-slot { display: none; min-height: 250px; place-items: center; background: var(--mist); color: var(--muted); font-size: .68rem; letter-spacing: .1em; }
body.kt-ads-enabled .ad-slot { display: grid; }

.page-header { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; }
.page-header h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4.8rem); letter-spacing: -.055em; line-height: 1.05; }
.page-content { padding-bottom: var(--space-5); font-size: 1.05rem; }
.page-content h2 { margin-top: 2.5em; }
.contact-form { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--ink); border-radius: 0; padding: .8rem; }
.contact-form button { justify-self: start; min-height: 48px; border: 0; padding: .75rem 1.3rem; background: var(--ink); color: #fff; font-weight: 800; }
.form-notice { border-left: 4px solid var(--signal); padding: 1rem; background: var(--mist); }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { margin-top: var(--space-5); padding: 3rem 0 1.5rem; background: var(--ink); color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2rem; }
.wordmark--footer { color: #fff; }
.site-footer__tagline { max-width: 340px; color: #bfbfba; font-size: .85rem; }
.footer-nav .menu { columns: 2; margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a, .footer-social a { color: #fff; font-size: .78rem; text-decoration: none; }
.footer-social { display: grid; align-content: start; gap: .5rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid #444; padding-top: 1rem; color: #9d9d98; font-size: .7rem; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 5px; left: 5px; display: block; width: auto; height: auto; padding: 15px 23px 14px; clip: auto; background: #fff; color: #111; font-size: 14px; font-weight: 700; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; align-items: stretch; border-bottom: 1px solid var(--ink); padding: 1rem; background: #fff; }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { display: grid; gap: 0; }
  .primary-nav .menu a, .search-link { display: flex; min-height: 46px; align-items: center; border-bottom: 1px solid var(--line); }
  .hero__grid, .article-layout { grid-template-columns: 1fr; }
  .hero__copy { max-width: 760px; }
  .article-sidebar { position: static; }
  .trending-list { grid-template-columns: 1fr; }
  .trending-item, .trending-item:first-child { border-top: 1px solid #444; border-left: 0; padding: 1rem 0; }
  .trending-item:first-child { border-top: 0; }
  .story-grid, .archive-grid .story-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .shell, .reading-width, .article-hero { width: min(100% - 1.25rem, var(--shell)); }
  .site-header__inner { min-height: 60px; }
  .primary-nav { top: 60px; }
  .hero { padding-top: 1.25rem; }
  .hero__grid { gap: 1.25rem; }
  .hero__title { font-size: clamp(2rem, 11vw, 3.2rem); }
  .story-grid, .archive-grid .story-grid { grid-template-columns: 1fr; }
  .latest-list .story-card { grid-template-columns: 120px 1fr; gap: .9rem; }
  .latest-list .story-card__excerpt { display: none; }
  .latest-list .story-card__title { font-size: 1rem; }
  .story-card--compact { grid-template-columns: 110px 1fr; }
  .article-header h1 { font-size: clamp(2rem, 10vw, 3.25rem); }
  .article-content { font-size: 1rem; }
  .post-navigation, .site-footer__grid { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .site-footer__bottom { display: block; }
}

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.article-content { overflow-wrap: anywhere; }
.article-content img { height: auto; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; }
.article-content pre { max-width: 100%; overflow-x: auto; }
.article-content iframe, .article-content video, .article-content embed { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
