:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --ink: #252a2c;
  --muted: #62645f;
  --copper: #9a694e;
  --rule: #c9b29d;
  --navy: #07121e;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
flecto-site-header { display: block; }
a {
  color: #78503a;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.hero {
  color: #faf8f1;
  background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(4, 13, 23, 0.94) 0%, rgba(4, 13, 23, 0.87) 40%, rgba(4, 13, 23, 0.12) 100%), url("assets/bg_hero.png");
  background-size: cover;
  background-position: center;
  padding: 32px 0 76px;
}
.hero-inner { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin: 0 0 70px;
  font-family: Arial, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.language-switch a { color: inherit; }
.language-switch [aria-current="page"] { text-decoration: none; border-bottom: 1px solid #c59c79; }
h1, h2 { font-weight: 400; text-wrap: balance; }
h1 {
  max-width: 700px;
  margin: 0 0 32px;
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.hero-intro { max-width: 640px; margin: 0; font-size: 20px; line-height: 1.65; }
.article-body { padding: 64px 0 104px; }
.bibliography, .section-body { width: min(760px, calc(100% - 80px)); margin-inline: auto; }
.bibliography {
  margin-block: 0 60px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.paper-section { margin: 0 auto 64px; }
.paper-section:last-child { margin-bottom: 0; }
.section-heading {
  width: min(760px, calc(100% - 80px));
  margin: 0 auto 30px;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
h2 { margin: 0; font-size: 36px; line-height: 1.24; letter-spacing: -0.025em; }
p { margin: 0 0 24px; text-wrap: pretty; overflow-wrap: break-word; }
.section-body > p:last-child { margin-bottom: 0; }
math { font-size: 1em; }
figure {
  width: min(1100px, calc(100% - 80px));
  margin: 36px auto 32px;
}
figure img { display: block; width: 100%; height: auto; }
figcaption {
  width: min(760px, 100%);
  margin: 20px auto 0;
  font-family: Arial, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
figcaption p { margin-bottom: 10px; }
.original-link { display: inline-block; color: #78503a; }
@media (max-width: 800px) {
  .hero-inner, .bibliography, .section-body, .section-heading, figure { width: calc(100% - 48px); }
  .hero { padding-bottom: 56px; background-position: 62% center; }
  .language-switch { margin-bottom: 52px; }
  h1 { max-width: 620px; font-size: 46px; }
  h2 { font-size: 32px; }
  .article-body { padding-top: 46px; }
}
@media (max-width: 480px) {
  body { font-size: 18px; line-height: 1.8; }
  .hero-inner, .bibliography, .section-body, .section-heading, figure { width: calc(100% - 40px); }
  .hero {
    padding-top: 24px;
    padding-bottom: 48px;
    background-image: linear-gradient(90deg, rgba(4, 13, 23, 0.94), rgba(4, 13, 23, 0.87)), url("assets/bg_hero.png");
  }
  .language-switch { margin-bottom: 42px; }
  h1 { margin-bottom: 26px; font-size: 38px; line-height: 1.16; }
  .hero-intro { font-size: 18px; line-height: 1.75; }
  .bibliography { font-size: 15px; margin-bottom: 44px; }
  .paper-section { margin-bottom: 46px; }
  .section-heading { margin-bottom: 24px; padding-top: 22px; }
  h2 { font-size: 28px; line-height: 1.3; }
  figure { margin-block: 28px; }
  figcaption { font-size: 13px; margin-top: 16px; }
  .article-body { padding-bottom: 64px; }
}
.flecto-paper-cta .flecto-paper-cta__services:focus-visible{outline:3px solid #fff;outline-offset:3px;}
