:root {
  color-scheme: dark;
  --background: #0b0b0b;
  --surface: #141414;
  --text: #f5f5f5;
  --secondary: #bdbdbd;
  --line: #6b6b6b;
  --focus: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 100%;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; line-height: 1.75; overflow-wrap: anywhere; }
a { color: var(--text); text-underline-offset: .2em; text-decoration-thickness: .065em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 1px; }
main:focus { outline: none; }
.skip-link { position: absolute; top: .75rem; left: 1rem; padding: .6rem 1rem; color: var(--background); background: var(--text); z-index: 5; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header, main, .site-footer { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; min-height: 7rem; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.wordmark { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: .75rem; font-size: 1.15rem; font-weight: 650; text-decoration: none; letter-spacing: .12em; min-height: 44px; }
.mark { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 2rem; font-weight: 400; letter-spacing: 0; }
.language { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .1rem; }
.page-title { padding-block: 3.8rem 3.4rem; }
.product-note { color: var(--secondary); margin: 0 0 1rem; font-size: 1rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: "Iowan Old Style", "Palatino Linotype", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif; font-size: clamp(2.25rem, 5.5vw, 4.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
:lang(ja) h1 { font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.5; letter-spacing: .015em; }
.reading-layout { display: grid; grid-template-columns: minmax(12rem, 17rem) minmax(0, 42rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contents { font-size: .95rem; }
.contents details { padding: 1rem 0; border-block: 1px solid var(--line); }
.contents summary { cursor: pointer; min-height: 44px; padding-block: .5rem; font-weight: 600; }
.contents ol { list-style: none; margin: .5rem 0 0; padding: 0; }
.contents a { display: block; padding: .65rem .1rem; color: var(--secondary); line-height: 1.6; }
.prose { min-width: 0; font-size: 1.125rem; }
.prose h2 { margin: 3rem 0 1.1rem; font-size: 1.55rem; line-height: 1.4; font-weight: 600; }
.prose h3 { margin: 2rem 0 1rem; font-size: 1.25rem; line-height: 1.5; }
.prose > h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.3rem; }
.prose ul, .prose ol { padding-inline-start: 1.6rem; margin-block: 1rem 1.6rem; }
.prose li { padding-inline-start: .3rem; margin-block: .8rem; }
.prose strong { font-weight: 650; }
.prose code { font-family: ui-monospace, monospace; font-size: .9em; }
:lang(ja) .prose { line-height: 1.95; line-break: strict; word-break: normal; }
.back-top { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.back-top a { display: inline-block; min-height: 44px; padding-block: .5rem; }
.site-footer { margin-top: 4rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--secondary); font-size: .95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 1.2rem; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer [aria-current="page"] { text-decoration-thickness: .15em; }
.site-footer p { margin: 0; }
.landing { padding-top: 5rem; }
.landing-title { display: flex; align-items: center; gap: 3rem; margin-bottom: 5rem; }
.hero-mark { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(7rem, 17vw, 12rem); font-weight: 400; line-height: 1.2; }
.landing-title h1 { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; letter-spacing: .15em; }
.landing-title p { margin: 1.2rem 0 0; font-size: 1.2rem; color: var(--secondary); }
.language-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.language-sections section { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.language-sections h2 { font-size: 1.4rem; font-weight: 500; }
.language-sections p { color: var(--secondary); }
.language-sections nav { display: flex; flex-direction: column; align-items: flex-start; }
.language-sections a { display: inline-flex; align-items: center; min-height: 48px; padding-block: .4rem; }
.not-found { max-width: 48rem; padding-block: 5rem; }
.not-found h1 { margin-bottom: 2rem; }
.not-found section { margin-top: 3rem; }
@media (max-width: 59.999rem) {
  .reading-layout { display: block; }
  .contents { position: static; margin-bottom: 2.5rem; }
  .contents details { padding-block: .5rem; }
  .prose { max-width: 44rem; margin-inline: auto; }
}
@media (max-width: 36rem) {
  .site-header, main, .site-footer { width: calc(100% - 2.5rem); }
  .site-header { min-height: 5.5rem; gap: 1rem; }
  .page-title { padding-block: 2.5rem 2rem; }
  .prose { font-size: 1.0625rem; }
  .prose h2 { font-size: 1.35rem; }
  .landing { padding-top: 3rem; }
  .landing-title { flex-wrap: wrap; gap: 1.25rem; margin-bottom: 3rem; }
  .hero-mark { font-size: 6rem; }
  .landing-title h1 { font-size: clamp(1.5rem, 10vw, 2rem); white-space: nowrap; }
  .landing-title p { font-size: 1rem; }
  .language-sections { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { margin-top: 2.5rem; }
}
@media (prefers-contrast: more) {
  :root { --background: #000000; --surface: #000000; --secondary: #ffffff; --line: #ffffff; }
  a { text-decoration-thickness: .13em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  a:focus-visible, summary:focus-visible { outline: 3px solid Highlight; }
  .skip-link { color: CanvasText; background: Canvas; }
}
@media print {
  :root { color-scheme: light; --background: #ffffff; --text: #000000; --secondary: #222222; --line: #555555; }
  .site-header, .contents, .site-footer, .back-top, .skip-link { display: none; }
  main { width: 100%; }
  .page-title { padding-block: 0 2rem; }
  .reading-layout { display: block; }
  .prose { max-width: none; font-size: 11pt; }
  .prose h2 { break-after: avoid; }
  a { color: #000000; }
}
