:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --ink: #14243b;
  --muted: #526074;
  --line: #a7b1bd;
  --amber: #e8a33d;
  --serif: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.8; }
a { color: #284a6b; text-decoration-thickness: 1px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #876028; outline-offset: 5px; }
p, li { overflow-wrap: anywhere; text-wrap: pretty; }
.hero { background-color: #0f1b2d; background-image: linear-gradient(90deg, rgba(9, 20, 35, 0.97) 0%, rgba(9, 20, 35, 0.85) 36%, rgba(9, 20, 35, 0.26) 72%), url("assets/bg_hero.png"); background-size: cover; background-position: center right; color: #f7f4ed; }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 28px 40px 64px; }
.language-switch { display: flex; justify-content: flex-end; margin-bottom: 26px; font: 14px/1.5 var(--sans); }
.hero a { color: #e5d2ae; }
.hero-reading { max-width: 660px; }
h1 { margin: 0 0 30px; font-size: clamp(32px, 3.5vw, 49px); font-weight: 400; line-height: 1.16; letter-spacing: -0.024em; text-wrap: balance; overflow-wrap: anywhere; }
h1::before { content: ""; display: block; width: 64px; height: 1px; background: var(--amber); margin-bottom: 26px; }
.bibliography { font: 13px/1.75 var(--sans); color: #d5dee7; }
.bibliography ul { list-style: none; padding: 0; margin: 0; }
.bibliography li + li { margin-top: 10px; }
.hero-intro { margin-top: 24px; max-width: 620px; font-size: 16px; line-height: 1.8; }
.hero-intro p { margin: 0; }
.article-body { padding: 70px 24px 100px; }
.article-section { max-width: 1100px; margin: 0 auto; }
.article-section + .article-section { margin-top: 74px; }
.article-section > p, .article-section > ul, .article-section > ol, .article-section > h2, .article-section > h3, .interpretation-section { max-width: 760px; margin-left: auto; margin-right: auto; }
h2 { font-weight: 400; font-size: 31px; line-height: 1.3; letter-spacing: -0.015em; margin-top: 0; margin-bottom: 26px; text-wrap: balance; overflow-wrap: anywhere; }
h2::before { content: ""; display: block; width: 48px; height: 1px; background: var(--amber); margin-bottom: 22px; }
h3 { font-weight: 500; font-size: 23px; line-height: 1.45; margin-top: 44px; margin-bottom: 18px; text-wrap: balance; overflow-wrap: anywhere; }
p { margin-top: 0; margin-bottom: 24px; }
ul, ol { padding-left: 1.45em; margin-top: 20px; margin-bottom: 28px; }
li + li { margin-top: 12px; }
strong { font-weight: 600; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.88em; }
sub, sup { font-size: 0.75em; line-height: 0; }
figure { margin: 36px auto 30px; max-width: 1100px; }
figure img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; background: #fff; }
figcaption { max-width: 894px; margin: 14px auto 0; color: var(--muted); font-family: var(--sans); font-size: 13px; line-height: 1.8; text-align: center; }
.original-link { display: block; width: fit-content; margin: 7px auto 0; font-size: 12px; }
.table-frame { max-width: 1100px; overflow-x: auto; margin: 32px auto 36px; background: #fbfaf7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 730px; font-family: var(--sans); font-size: 14px; line-height: 1.75; text-align: left; }
th, td { padding: 15px 18px; vertical-align: top; border-bottom: 1px solid #cdd2d6; border-right: 1px solid #d7dadd; overflow-wrap: break-word; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead { background: #e8eced; }
thead th { color: #172a43; font-weight: 600; }
tbody th { font-weight: 500; width: 19%; }
.equation { max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr) 2.5rem; gap: 12px; align-items: center; margin: 28px auto; padding: 25px 22px; background: #e9edf0; }
.math-scroll { min-width: 0; overflow-x: auto; padding: 8px 2px; }
math { width: max-content; max-width: none; margin: 0 auto; font-size: 1.13em; }
.equation-number { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.interpretation, .interpretation-section { background: #eeeee7; padding: 24px 28px; }
.interpretation i:first-child { font-style: normal; font-weight: 600; }
.interpretation-section h3 { margin-top: 0; }
.interpretation-section ul { margin-bottom: 0; }
:lang(ja) body { line-height: 1.95; line-break: strict; }
:lang(ja) h1 { font-size: clamp(29px, 3.05vw, 43px); line-height: 1.48; letter-spacing: 0; }
:lang(ja) h2 { font-size: 28px; line-height: 1.55; letter-spacing: 0; }
:lang(ja) h3 { font-size: 22px; line-height: 1.65; }
:lang(ja) .hero-intro { line-height: 1.95; }
:lang(ja) table { line-height: 1.9; }
@media (max-width: 800px) {
  .hero-inner { padding: 24px 30px 48px; }
  .hero-reading { max-width: 620px; }
  .hero { background-image: linear-gradient(90deg, rgba(9, 20, 35, 0.97), rgba(9, 20, 35, 0.77)), url("assets/bg_hero.png"); }
  .article-body { padding-top: 48px; }
  .article-section + .article-section { margin-top: 58px; }
  h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero-inner { padding: 20px 20px 38px; }
  .language-switch { margin-bottom: 22px; }
  h1 { font-size: 33px; line-height: 1.2; letter-spacing: -0.018em; }
  .bibliography { font-size: 12px; line-height: 1.8; }
  .hero-intro { font-size: 15px; }
  .article-body { padding: 40px 20px 64px; }
  h2 { font-size: 26px; line-height: 1.4; }
  h3 { font-size: 21px; }
  :lang(ja) h1 { font-size: 29px; line-height: 1.5; }
  :lang(ja) h2 { font-size: 24px; line-height: 1.6; }
  :lang(ja) h3 { font-size: 20px; }
  .interpretation, .interpretation-section { padding: 20px; }
  .equation { padding: 16px 12px; gap: 6px; grid-template-columns: minmax(0, 1fr) 2rem; }
  math { font-size: 1em; }
  figure { margin-top: 28px; }
  figcaption { font-size: 12px; text-align: left; }
  .original-link { margin-left: 0; }
  th, td { padding: 12px 14px; }
}
