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

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --soft: #f4f4f2;
  --line: #d8d8d5;
  --muted: #666664;
  --accent: #0047ff;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.en { font-family: 'Space Grotesk', sans-serif; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: var(--paper);
  backdrop-filter: blur(14px);
}

.site-logo {
  color: var(--paper);
  text-decoration: none;
  font: 700 18px/1 'Space Grotesk', sans-serif;
  letter-spacing: 3px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] { opacity: 0.6; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.topic-hero {
  position: relative;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header-height) + 96px) 40px 72px;
  background-color: var(--ink);
  background-image: var(--hero-image);
  background-position: var(--hero-position, center);
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--paper);
}

.topic-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.68);
  font-size: 12px;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb span + span::before { content: '/'; margin-right: 8px; }

.hero-kicker,
.eyebrow {
  font: 600 12px/1.4 'Space Grotesk', sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero-kicker { margin-bottom: 20px; color: rgba(255,255,255,0.72); }

.topic-hero h1 {
  max-width: 1000px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-summary {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(255,255,255,0.78);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.9;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.button-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-light:hover { background: transparent; color: var(--paper); }
.button-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-dark:hover { background: transparent; color: var(--ink); }
.button-outline { color: var(--paper); }
.button-outline:hover { background: var(--paper); color: var(--ink); }

.section { padding: 104px 40px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--paper); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}

.eyebrow { color: var(--muted); margin-bottom: 18px; }
.section-dark .eyebrow { color: rgba(255,255,255,0.54); }

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: 0;
}

.section-heading > p,
.prose > p,
.prose > ul,
.prose > ol {
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.section-dark .section-heading > p,
.section-dark .prose > p { color: rgba(255,255,255,0.68); }

.prose > * + * { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 10px; }

.lead-grid,
.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 72px;
  align-items: start;
}

.key-points {
  border-top: 1px solid var(--line);
}

.key-point {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.key-point .number {
  color: var(--muted);
  font: 600 13px/1.5 'Space Grotesk', sans-serif;
}

.key-point strong { display: block; margin-bottom: 8px; font-size: 17px; }
.key-point p { color: var(--muted); line-height: 1.8; }

.fact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  min-width: 0;
  min-height: 152px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 26px; line-height: 1.35; overflow-wrap: anywhere; }
.fact span { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.link-list {
  border-top: 1px solid var(--line);
}

.link-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr) 32px;
  gap: 32px;
  align-items: center;
  min-height: 132px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.2s ease;
}

.link-row:hover { padding-left: 12px; }
.link-row h3 { font-size: clamp(20px, 2.3vw, 28px); }
.link-row p { color: var(--muted); line-height: 1.8; }
.link-row .arrow { text-align: right; font-size: 24px; }

.data-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.75;
}

.data-table th {
  width: 20%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.data-table td { font-size: 14px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step .number { color: var(--muted); font: 600 13px/1 'Space Grotesk', sans-serif; }
.step h3 { margin-top: 40px; font-size: 22px; }
.step p { margin-top: 16px; color: var(--muted); line-height: 1.85; }

.media-wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
  border: 1px solid var(--line);
}

.portrait-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 52%;
  background: var(--ink);
}

.caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.qa-list { border-top: 1px solid var(--line); }

.qa-list details { border-bottom: 1px solid var(--line); }

.qa-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 28px 56px 28px 0;
  font-size: 17px;
  font-weight: 700;
}

.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after { content: '+'; position: absolute; right: 4px; top: 25px; font-size: 24px; font-weight: 400; }
.qa-list details[open] summary::after { content: '−'; }
.qa-list details p { max-width: 880px; padding: 0 56px 28px 0; color: var(--muted); line-height: 1.9; }

.note {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.section-dark .note { border-left-color: var(--paper); color: rgba(255,255,255,0.62); }

.cta-band {
  padding: 88px 40px;
  background: var(--ink);
  color: var(--paper);
}

.cta-band .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.cta-band h2 { max-width: 760px; }
.cta-band p { max-width: 650px; margin-top: 18px; color: rgba(255,255,255,0.68); line-height: 1.85; }
.cta-actions { margin-top: 0; justify-content: flex-end; }

.article-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.article-footer-nav a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.article-footer-nav small { color: var(--muted); }
.article-footer-nav strong { font-size: 20px; line-height: 1.5; }

.site-footer {
  padding: 64px 40px 28px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.footer-top {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  padding-bottom: 52px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 13px;
}

.footer-company {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  line-height: 1.9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .section-heading,
  .lead-grid,
  .media-grid,
  .footer-top,
  .footer-company {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band .section-inner { grid-template-columns: 1fr; align-items: start; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 768px) {
  :root { --header-height: 68px; }

  .site-header { padding: 0 18px; }
  .site-logo { font-size: 16px; letter-spacing: 2.4px; }
  .menu-toggle { display: flex; }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 18px 16px;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header.is-menu-open nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-header nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
  }

  .topic-hero {
    min-height: 68svh;
    padding: calc(var(--header-height) + 64px) 24px 48px;
    background-position: var(--hero-mobile-position, var(--hero-position, center));
  }

  .breadcrumb { margin-bottom: 28px; }
  .topic-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.2;
  }
  .hero-summary { font-size: 15px; }
  .section, .cta-band { padding: 76px 24px; }
  .section-heading { margin-bottom: 40px; }
  .link-row { grid-template-columns: 1fr 24px; gap: 16px; min-height: 0; padding: 24px 0; }
  .link-row h3 { grid-column: 1; }
  .link-row p { grid-column: 1; }
  .link-row .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .fact:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .article-footer-nav { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { padding: 52px 24px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .button { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
}
