@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cs-red: #C8102E;
  --cs-ink: #7A0C14;
  --cs-paper: #FFF4C2;
  --cs-gold: #FFD23F;
  --cs-foil: #A9AEB5;
  --cs-foil-hi: #F4F6F8;
  --dp-bg: #E4DED3;
  --dp-paper: #F6F3EE;
  --dp-ink: #2B2A28;
  --dp-line: #3A362F;
  --dp-foil: #C9D3F2;
  --dp-foil-hi: #F8DCEB;
  --dn-bg: #0B1230;
  --dn-paper: #14204A;
  --dn-gold: #F1D27A;
  --dn-foil: #B8892E;
  --dn-foil-hi: #FCE9A6;
  --navy: #141A33;
  --navy-hi: #2A3366;

  --cjk-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'PingFang SC', 'Apple SD Gothic Neo', 'Yu Gothic', 'Microsoft YaHei', 'Malgun Gothic';
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, var(--cjk-sans), 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito', ui-rounded, 'Hiragino Maru Gothic ProN', var(--cjk-sans), -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'New York', ui-serif, Georgia, 'Times New Roman', var(--cjk-sans), serif;
  --font-deco: 'Futura', 'Avenir Next Condensed', 'Trebuchet MS', var(--cjk-sans), sans-serif;
  --max-width: 1160px;
  --gutter: 20px;
  color-scheme: light;
}

:lang(ja) {
  --cjk-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans JP';
}
:lang(ko) {
  --cjk-sans: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR';
}
:lang(zh-Hans) {
  --cjk-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC';
}
:lang(zh-Hant) {
  --cjk-sans: 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC';
}
:lang(ja) body, :lang(zh-Hans) body, :lang(zh-Hant) body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
:lang(ja) body {
  word-break: auto-phrase;
}
:lang(ja) body, :lang(ko) body, :lang(zh-Hans) body, :lang(zh-Hant) body {
  line-height: 1.8;
}
:lang(ko) body {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--cs-ink);
  background-color: var(--cs-red);
  background-image: url('/images/starbursts.svg');
  background-size: 288px 576px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  margin: 0;
}

p { margin: 0; }

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  padding: 10px 16px;
  background: var(--cs-paper);
  color: var(--cs-ink);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  z-index: 100;
}
.skip-link:focus { top: 0; }

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cs-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-nav {
  position: relative;
  z-index: 20;
  padding: 14px var(--gutter);
}
.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--cs-paper);
  color: var(--cs-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--cs-ink);
}
.site-logo-mark { width: 36px; height: 36px; display: block; }

.site-nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-links a,
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background: rgba(122, 12, 20, 0.55);
  white-space: nowrap;
}
.site-nav-links a:hover,
.lang-menu summary:hover { background: var(--cs-ink); }
.site-nav-links a[aria-current="page"] {
  background: var(--cs-paper);
  color: var(--cs-ink);
}

.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--cs-paper);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(40, 0, 6, 0.35);
}
.lang-menu-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--cs-ink);
  text-decoration: none;
  font-weight: 600;
}
.lang-menu-list a:hover { background: rgba(200, 16, 46, 0.1); }
.lang-menu-list a[aria-current="true"] {
  background: var(--cs-red);
  color: #fff;
}

@media (max-width: 560px) {
  .site-nav { padding: 12px 14px; }
  .site-logo { font-size: 17px; padding-right: 12px; gap: 8px; }
  .site-logo-mark { width: 32px; height: 32px; }
  .site-nav-links a, .lang-menu summary { padding: 0 10px; font-size: 14px; }
  .lang-menu-current { display: none; }
}
@media (max-width: 400px) {
  .site-logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .site-logo { padding-right: 6px; }
}

.site-footer {
  background: var(--navy);
  color: #E9E6F5;
  padding: 48px var(--gutter) 32px;
}
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.site-footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 420px;
}
.site-footer-brand img { width: 48px; height: 48px; flex: none; }
.site-footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--dn-gold);
}
.site-footer-brand p { font-size: 15px; color: #C9C6DA; }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-footer-links a,
.site-footer-languages a {
  color: #E9E6F5;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-footer a:hover { color: var(--dn-gold); text-decoration: underline; }
.site-footer-languages {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px dashed rgba(241, 210, 122, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.site-footer-languages a { font-weight: 500; color: #C9C6DA; }
.site-footer-languages a[aria-current="true"] { color: var(--dn-gold); font-weight: 700; }
.site-footer-copyright {
  max-width: var(--max-width);
  margin: 20px auto 0;
  font-size: 14px;
  color: #A9A6BF;
}
