:root {
  color-scheme: light;
  --petrol: #082d38;
  --chalk: #e8f2f7;
  --ink: #173746;
  --cobalt: #275ca0;
  --clay: #ac4b32;
  --muted: #476271;
  --gutter: 24px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--chalk);
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.82;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

body:lang(ja) {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  font-size: 18px;
  line-height: 1.9;
  line-break: strict;
  word-break: normal;
}

flecto-site-header {
  display: block;
  font-family: var(--sans);
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 10;
  padding: 8px 16px;
  transform: translateY(-200%);
  background: var(--chalk);
  font-family: var(--sans);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  color: #f1f7fa;
  background-color: var(--petrol);
  background-image: linear-gradient(90deg, rgba(3, 30, 40, 0.94) 0%, rgba(3, 30, 40, 0.9) 30%, rgba(3, 30, 40, 0.7) 54%, rgba(3, 30, 40, 0.12) 100%), url("assets/bg_hero.png");
  background-position: center, right center;
  background-size: cover;
  border-bottom: 2px solid var(--clay);
}

.hero-inner {
  width: min(1100px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 26px 76px;
}

.article-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 64px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(222, 238, 246, 0.35);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
}

.paper-label {
  letter-spacing: 0.12em;
}

.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.language-switch a {
  color: inherit;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #e58a6b;
  text-underline-offset: 0.5em;
}

.language-switch a:hover {
  text-decoration: underline;
}

.hero-copy {
  width: 71%;
  max-width: 760px;
}

h1,
h2 {
  font-family: var(--sans);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1:lang(ja) {
  font-size: clamp(34px, 4.2vw, 59px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.lead {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid #d48468;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.72;
  text-wrap: pretty;
}

.lead:lang(ja) {
  font-size: 18px;
  line-height: 1.9;
}

.paper-body {
  width: min(1100px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 46px 96px;
}

.paper-body > p,
.paper-body > h2 {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

p {
  text-wrap: pretty;
}

.paper-body > p {
  margin-block: 0 1.5em;
}

.paper-body > .bibliography {
  padding-bottom: 30px;
  margin-bottom: 0;
  border-bottom: 1px solid #a1b7c8;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
}

.paper-body > h2 {
  margin-block: 64px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--cobalt);
  font-size: 35px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  scroll-margin-top: 28px;
}

.paper-body > h2:lang(ja) {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.paper-body > h2:first-of-type {
  margin-top: 42px;
}

.paper-figure {
  width: 100%;
  margin: 38px 0 40px;
  padding-top: 18px;
  border-top: 1px solid var(--clay);
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

figcaption {
  width: 100%;
  max-width: 760px;
  margin: 18px auto 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

figcaption:lang(ja) {
  line-height: 1.9;
}

.original-caption {
  margin: 0;
}

.figure-tools {
  margin-top: 10px;
  font-size: 13px;
}

.paper-body > p:last-child {
  margin-bottom: 0;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--clay);
}

@media (max-width: 900px) {
  .hero-inner {
    padding-bottom: 54px;
  }

  .hero-copy {
    width: 84%;
    max-width: 700px;
  }

  .article-nav {
    margin-bottom: 44px;
  }

  .hero {
    background-image: linear-gradient(90deg, rgba(3, 30, 40, 0.95) 0%, rgba(3, 30, 40, 0.9) 50%, rgba(3, 30, 40, 0.5) 100%), url("assets/bg_hero.png");
  }

  .paper-body > h2 {
    font-size: 31px;
  }

  .paper-body > h2:lang(ja) {
    font-size: 29px;
  }
}

@media (max-width: 540px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 18px;
    line-height: 1.8;
  }

  body:lang(ja) {
    font-size: 17px;
    line-height: 1.9;
  }

  .hero-inner {
    padding-block: 20px 42px;
  }

  .article-nav {
    gap: 12px;
    margin-bottom: 36px;
    padding-bottom: 16px;
    font-size: 11px;
  }

  .paper-label {
    letter-spacing: 0.07em;
  }

  .language-switch {
    gap: 14px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero {
    background-position: center, 65% center;
    background-image: linear-gradient(90deg, rgba(3, 30, 40, 0.97) 0%, rgba(3, 30, 40, 0.87) 65%, rgba(3, 30, 40, 0.75) 100%), url("assets/bg_hero.png");
  }

  h1 {
    font-size: 38px;
    line-height: 1.16;
  }

  h1:lang(ja) {
    font-size: 34px;
    line-height: 1.35;
  }

  .lead,
  .lead:lang(ja) {
    margin-top: 26px;
    padding-top: 20px;
    font-size: 17px;
  }

  .paper-body {
    padding-block: 30px 64px;
  }

  .paper-body > .bibliography {
    font-size: 14px;
    padding-bottom: 26px;
  }

  .paper-body > h2 {
    font-size: 28px;
    margin-block: 46px 20px;
    padding-top: 20px;
  }

  .paper-body > h2:lang(ja) {
    font-size: 27px;
  }

  .paper-figure {
    margin-block: 28px 32px;
    padding-top: 12px;
  }

  figcaption {
    margin-top: 14px;
    font-size: 13px;
  }
}
.flecto-paper-cta .flecto-paper-cta__services:focus-visible{outline:3px solid #fff;outline-offset:3px;}
