@font-face {
  font-family: Sora;
  src: url("sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --aqua: #6bd1d4;
  --yellow: #f6ac00;
  --glass: rgb(255 255 255 / .2);
  --line: rgb(255 255 255 / .3);
  --white: #fff;
  --purple: #940085;
  --ink: #291f29;
  --gray: #f3e7ea;
  font-family: Sora, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.75; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 3px; }
::selection { background: #940085; color: #fff; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 3; background: var(--purple); color: var(--white); padding: .6em 1em; transform: translateY(-170%); }
.skip:focus { transform: none; }

.page-width { width: min(70rem, calc(100% - 6rem)); margin-inline: auto; }
.mast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gray);
}
.header { position: relative; isolation: isolate; color: var(--white); }
.header::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100vw;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135.3deg, var(--aqua) 0% 43%, var(--yellow) 100%);
}
.utility a {
  text-shadow: 0 1px 2px rgb(148 0 133 / .38), 0 0 14px rgb(148 0 133 / .18);
}
.header, .footer-inner, .utility { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.header { min-height: 7.75rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; border-radius: 2px; }
.brand img { width: 3.4rem; height: auto; display: block; }
.utility { flex-wrap: wrap; justify-content: flex-end; }
.utility [data-language] { white-space: nowrap; }
.utility [data-language][aria-current] { text-decoration: underline; }
.utility a { min-height: 46px; display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; }
.pill {
  border-radius: 50px;
  border: 1.5px solid var(--line);
  padding-inline: 1.25rem;
  background: rgb(255 255 255 / .3);
  text-decoration: none;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.pill:active { transform: scale(.96); }
.hero { padding-block: clamp(2rem, 4vw, 4rem) clamp(2.2rem, 4vw, 4rem); }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
h1, h2, h3, strong, dt { font-weight: 600; }
h1 { color: var(--purple); font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.08; letter-spacing: -.055em; max-width: 15em; text-wrap: balance; }
:lang(ja) h1 { font-size: clamp(2.15rem, 5vw, 4.1rem); letter-spacing: -.035em; line-height: 1.35; }
.intro { max-width: 48rem; margin-top: 1.1rem; font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.65; }
#translation-notice {
  max-width: 48rem;
  margin-block: 1rem;
  padding: .75rem 1rem;
  border-inline-start: 3px solid var(--purple);
  border-radius: .5rem;
  background: var(--white);
  line-height: 1.5;
}
#translation-notice a { color: var(--purple); font-weight: 600; }
.publication {
  width: fit-content;
  max-width: 100%;
  margin-top: 1.6rem;
  padding: .9rem 1.25rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  border-inline-start: 3px solid var(--purple);
}
.publication h2 { font-size: .94rem; margin: 0 0 .3rem; line-height: 1.5; }
.publication p { font-size: .82rem; line-height: 1.7; }
.layout { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 3.3fr); gap: clamp(2rem, 5vw, 5rem); }
.layout-wrap {
  background: var(--white);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.contents { align-self: start; position: sticky; top: 2rem; }
.contents h2 { margin: 0; font-size: .88rem; }
.contents ul { margin-top: .55rem; padding: 0; list-style: none; }
.contents li + li { margin-top: .2rem; }
.contents a { display: inline-block; font-size: .82rem; line-height: 1.6; padding: .35em 0; }
article h2, article h3, article a, .publication h2, .contents h2, .contents a { color: var(--purple); }
article { max-width: 49rem; overflow-wrap: break-word; }
article section { scroll-margin-top: 1.5rem; border-top: 1px solid var(--gray); padding-block: 1.9rem 2.1rem; }
article section:first-child { border: 0; padding-top: 0; }
article section:last-child { padding-bottom: 0; }
article h2 { margin: 0 0 .7rem; font-size: clamp(1.35rem, 2.3vw, 1.8rem); letter-spacing: -.035em; line-height: 1.35; text-wrap: balance; }
article h3 { font-size: 1rem; margin: 1.25rem 0 .25rem; }
article p + p, article ul, article dl, article ol { margin-top: .85rem; }
article ul, article ol { padding-left: 1.4rem; }
article li + li { margin-top: .7rem; }
article li::marker { font-weight: 600; }
article dt { margin: 1.1rem 0 .1rem; }
article dd { margin: 0; }
.pending { font-weight: 600; }
code { font-family: inherit; font-size: .95em; overflow-wrap: anywhere; }
footer { background: var(--purple); color: var(--white); }
.footer-inner { padding-block: 2rem; gap: 2rem; }
.maker { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; }
.maker span { font-weight: 600; font-size: 9px; letter-spacing: .1em; line-height: 1.4; }
.maker img { width: 8.6rem; height: auto; }
.footer-inner nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-inner nav a { font-size: .85rem; }

@media (max-width: 800px) {
  .page-width { width: calc(100% - 3rem); }
  .layout { grid-template-columns: 1fr; gap: 2rem; }
  .contents { position: static; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
  .contents ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
  .contents li + li { margin-top: 0; }
  .footer-inner { align-items: flex-start; }
}
@media (max-width: 520px) {
  .page-width { width: calc(100% - 2.5rem); }
  .header { min-height: 5.6rem; gap: .6rem; }
  .brand img { width: 2.5rem; }
  .utility { display: grid; grid-template-columns: repeat(3, auto); gap: .15rem .5rem; padding-block: .45rem; }
  .utility > a:first-child { grid-column: 1 / -1; justify-self: end; }
  .utility a { font-size: .8rem; }
  .pill { justify-content: center; padding-inline: clamp(.45rem, 3vw, .85rem); }
  .footer-inner { align-items: flex-start; flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .pill { transition: opacity 150ms; }
  .pill:active { transform: none; opacity: .85; }
}
