:root {
  color-scheme: light;
  --navy: #17263d;
  --navy-2: #213957;
  --blue: #2f68e9;
  --blue-soft: #eaf1ff;
  --ink: #182435;
  --muted: #64748b;
  --line: #dce6f2;
  --paper: #ffffff;
  --shadow: 0 22px 60px rgba(21, 45, 77, .13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(90, 149, 255, .28), transparent 30rem),
    radial-gradient(circle at 96% 18%, rgba(88, 213, 199, .15), transparent 28rem),
    #eef5fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: #fff;
  background: rgba(23, 38, 61, .94);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.nav-shell, .page-shell, .footer-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.brand img { border-radius: 13px; box-shadow: 0 7px 18px rgba(0,0,0,.25); }
.main-menu { display: flex; align-items: center; gap: 6px; }
.main-menu a { padding: 10px 13px; color: #dbe7f6; text-decoration: none; font-weight: 650; font-size: .92rem; border-radius: 12px; }
.main-menu a:hover, .main-menu a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.main-menu .contact-link { margin-left: 6px; color: var(--navy); background: #fff; }
.language-select { display: inline-flex; margin-left: 5px; }
.language-select select { appearance: none; min-width: 54px; padding: 9px 24px 9px 10px; color: #fff; background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M1.4.9 6 5.5 10.6.9 12 2.3l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 8px center / 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.menu-button { display: none; padding: 9px; border: 0; background: transparent; }
.menu-button > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: #fff; border-radius: 4px; }

.page-shell { padding: 70px 0 88px; }
.hero { max-width: 820px; margin-bottom: 34px; }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-weight: 800; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -.055em; }
.hero p { margin: 18px 0 0; max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.visible-language-switcher {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 7px;
  color: var(--navy);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(31,56,90,.1);
}
.visible-language-switcher strong {
  padding: 0 7px 0 9px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.visible-language-switcher div { display: flex; gap: 4px; }
.visible-language-switcher a {
  min-width: 43px;
  padding: 8px 10px;
  color: #52617a;
  text-align: center;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 850;
  border-radius: 10px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.visible-language-switcher a:hover { color: var(--blue); background: var(--blue-soft); transform: translateY(-1px); }
.visible-language-switcher a[aria-current="true"] { color: #fff; background: var(--blue); box-shadow: 0 6px 15px rgba(47,104,233,.26); }

.manual-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.choice-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.choice-card:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(21,45,77,.18); }
.choice-icon { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, #2f68e9, #6b8fff); border-radius: 17px; font-size: 1.4rem; font-weight: 900; }
.choice-icon.trainer { background: linear-gradient(145deg, #1b9b91, #5ad0bf); }
.choice-card strong { display: block; color: var(--navy); font-size: 1.22rem; }
.choice-card small { display: block; margin-top: 6px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.arrow { color: var(--blue); font-size: 1.7rem; }

.document-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 28px; }
.contents-card { position: sticky; top: 104px; padding: 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 12px 35px rgba(31,56,90,.08); }
.contents-card > span { display: block; margin-bottom: 11px; color: var(--navy); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.contents-card nav { display: grid; gap: 3px; }
.contents-card a { padding: 7px 9px; color: var(--muted); text-decoration: none; font-size: .86rem; line-height: 1.35; border-radius: 9px; }
.contents-card a:hover { color: var(--blue); background: var(--blue-soft); }
.document-card { min-width: 0; padding: clamp(28px, 5vw, 64px); background: var(--paper); border: 1px solid rgba(255,255,255,.9); border-radius: 26px; box-shadow: var(--shadow); }
.document-card > :first-child { margin-top: 0; }
.document-card h2, .document-card h3 { scroll-margin-top: 105px; color: var(--navy); line-height: 1.25; letter-spacing: -.025em; }
.document-card h2 { margin: 2.5rem 0 1rem; font-size: 1.7rem; }
.document-card h3 { margin: 2.35rem 0 .9rem; font-size: 1.34rem; }
.document-card p { margin: 0 0 1.15rem; }
.document-card ul, .document-card ol { padding-left: 1.35rem; margin: .5rem 0 1.4rem; }
.document-card li { margin: .55rem 0; }
.document-card strong { color: #10213a; }
.document-card a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.document-card figure { margin: 28px auto 44px; text-align: center; }
.document-card img { display: block; width: auto; max-width: min(100%, 490px); max-height: 820px; margin: 22px auto; border-radius: 22px; box-shadow: 0 18px 45px rgba(17,41,73,.19); }
.document-card figcaption { color: var(--muted); font-size: .88rem; }
.error-card { padding: 30px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.notice-card { margin: 0 0 24px; padding: 17px 19px; color: #27415f; background: #edf5ff; border: 1px solid #cfdef2; border-radius: 15px; font-size: .92rem; }
.notice-card strong { display: block; margin-bottom: 3px; color: var(--navy); }
.notice-card.legal { background: #f6f8fb; }

footer { padding: 28px 0; color: #c8d6e7; background: var(--navy); }
.footer-shell { display: flex; justify-content: space-between; gap: 24px; font-size: .88rem; }
.footer-shell div { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-shell a { text-decoration: none; }
.footer-shell a:hover { color: #fff; }

@media (max-width: 820px) {
  .nav-shell, .page-shell, .footer-shell { width: min(100% - 28px, 680px); }
  .nav-shell { min-height: 68px; }
  .menu-button { display: block; }
  .main-menu { position: absolute; top: 68px; left: 14px; right: 14px; display: none; padding: 10px; background: #203550; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 20px 45px rgba(6,17,31,.32); }
  .main-menu.open { display: grid; }
  .main-menu a { padding: 12px 14px; }
  .language-select { margin: 4px 0; }
  .language-select select { width: 100%; padding: 12px 38px 12px 14px; background-position: right 14px center; }
  .main-menu .contact-link { margin: 4px 0 0; text-align: center; }
  .page-shell { padding: 48px 0 62px; }
  .hero { margin-bottom: 26px; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.25rem); }
  .visible-language-switcher { width: 100%; justify-content: space-between; overflow-x: auto; }
  .manual-choices { grid-template-columns: 1fr; }
  .choice-card { min-height: 0; padding: 24px 20px; gap: 16px; }
  .document-layout { display: block; }
  .contents-card { position: static; margin-bottom: 16px; }
  .contents-card nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-card { padding: 27px 20px; border-radius: 21px; }
  .document-card h2, .document-card h3 { scroll-margin-top: 82px; }
  .footer-shell { flex-direction: column; }
}

@media (max-width: 460px) {
  .visible-language-switcher { display: block; }
  .visible-language-switcher strong { display: block; padding: 4px 7px 7px; }
  .visible-language-switcher div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .visible-language-switcher a { min-width: 0; padding-inline: 6px; }
  .contents-card nav { grid-template-columns: 1fr; }
  .choice-icon { width: 48px; height: 48px; }
  .choice-card { grid-template-columns: auto 1fr; }
  .choice-card .arrow { display: none; }
}
