:root {
  --color-page: #FBF7EE;
  --color-panel: #FFFFFF;
  --color-panel-muted: #ECEAE3;
  --color-panel-soft: #F5F1E8;
  --color-border: #D5D1C7;
  --color-border-strong: #B9B5AC;
  --color-accent: #008EAD;
  --color-accent-dark: #00677D;
  --color-accent-soft: #DDF3F6;
  --color-text: #17191B;
  --color-text-muted: #62666A;
  --color-success: #2C8B72;
  --color-success-soft: #E3F2EC;
  --color-warn: #F05A36;
  --color-warn-dark: #C84728;
  --color-warn-soft: #FCE6DF;
  --color-error: #C83D3D;
  --color-error-soft: #F8E5E5;
  --color-white: #FFFFFF;
  --color-black-soft: #24282B;
  --color-backdrop: rgba(23, 25, 27, 0.38);
  --color-shadow-soft: rgba(23, 25, 27, 0.08);
  --color-shadow-medium: rgba(23, 25, 27, 0.16);
  --color-button-shadow: rgba(111, 38, 20, 0.18);
  --color-flag-red: #D83945;
  --color-flag-red-dark: #B82031;
  --color-flag-blue: #234A91;
  --color-flag-blue-soft: #2C5AA0;
  --color-flag-white: #FFFFFF;
  --color-flag-black: #17191B;
  --color-flag-yellow: #F4C542;

  --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-nav: 0 1px 0 var(--color-shadow-soft);
  --shadow-button: 0 5px 0 var(--color-button-shadow);
  --shadow-card: 0 18px 40px var(--color-shadow-soft);
  --shadow-float: 0 12px 28px var(--color-shadow-medium);

  --container: 1360px;
  --reading-width: 768px;
  --header-height: 72px;
  --hero-height: 760px;
  --gutter: 24px;
  --section-space: 104px;
  --toc-top: 82px;
  --toc-height: 56px;

  --transition-fast: 160ms ease;
  --transition-medium: 260ms ease;
  --transition-slow: 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
}

html.nav-open {
  overflow: hidden;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

svg {
  flex-shrink: 0;
}

table {
  border-collapse: collapse;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
}

:not(pre) > code {
  padding: 0.14em 0.38em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-panel-soft);
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  margin: 24px 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-black-soft);
  color: var(--color-white);
  -webkit-overflow-scrolling: touch;
}

pre code {
  white-space: pre;
  overflow-wrap: normal;
}

::selection {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading-wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-space {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-space-compact {
  padding-top: 72px;
  padding-bottom: 72px;
}

.overflow-guard {
  overflow-x: clip;
}

.no-break {
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
}

.text-muted {
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow-dot,
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-success);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1,
.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 5vw, 68px);
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 760;
  line-height: 1.25;
}

h4 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.lead {
  max-width: 760px;
  color: var(--color-text-muted);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.65;
}

.lead strong,
.prose strong {
  color: var(--color-text);
}

.prose {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.82;
}

.prose h2 {
  margin-top: 64px;
}

.prose h3 {
  margin-top: 38px;
}

.prose ul,
.prose ol {
  margin: 18px 0 28px;
  padding-left: 1.4em;
}

.prose li {
  margin: 9px 0;
}

.prose a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.button,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 780;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.button:hover,
.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
}

.button-primary,
.primary-cta {
  border-color: var(--color-warn);
  background: var(--color-warn);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}

.button-primary:hover,
.primary-cta:hover {
  background: var(--color-warn-dark);
  box-shadow: none;
}

.button-secondary,
.secondary-cta {
  border-color: var(--color-border-strong);
  background: var(--color-panel);
  color: var(--color-text);
}

.button-secondary:hover,
.secondary-cta:hover {
  background: var(--color-panel-soft);
}

.button-accent,
.prose a.button-accent {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.button-accent:hover,
.prose a.button-accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--color-text-muted);
}

.button-ghost:hover {
  background: var(--color-panel-soft);
  color: var(--color-text);
}

.button:disabled {
  transform: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.panel,
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.panel {
  padding: clamp(22px, 3.5vw, 46px);
}

.card {
  padding: 24px;
}

.paper-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel-soft);
}

.badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.badge-accent {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.badge-warn {
  border-color: var(--color-warn);
  background: var(--color-warn-soft);
  color: var(--color-warn-dark);
}

.badge-success {
  border-color: var(--color-success);
  background: var(--color-success-soft);
  color: var(--color-success);
}

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.site-header {
  position: relative;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-page);
  box-shadow: var(--shadow-nav);
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 48px), var(--container));
  height: 100%;
  margin-inline: auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-words {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.brand-en {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.brand-local {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 560;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 2px;
}

.nav-link,
.more-summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.nav-link:hover,
.more-summary:hover {
  background: var(--color-panel-soft);
  color: var(--color-accent-dark);
}

.nav-link[aria-current="page"],
.more-menu.is-current > .more-summary {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.more-menu {
  position: relative;
}

.more-menu summary {
  list-style: none;
  cursor: pointer;
}

.more-menu summary::-webkit-details-marker {
  display: none;
}

.more-summary {
  gap: 7px;
}

.more-summary svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.more-menu[open] .more-summary svg {
  transform: rotate(180deg);
}

.more-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  width: max-content;
  grid-template-columns: repeat(4, max-content);
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.more-panel a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 650;
}

.more-panel a:hover,
.more-panel a[aria-current="page"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.language-menu {
  position: relative;
}

.language-button,
.menu-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.language-button:hover,
.menu-toggle:hover {
  background: var(--color-panel-soft);
  color: var(--color-text);
}

.language-button svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.language-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: 172px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.language-menu.is-open .language-panel {
  display: grid;
}

.language-panel a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 650;
}

.language-panel a:hover,
.language-panel a[aria-current="true"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.login-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.login-button:hover {
  transform: translateY(-1px);
  background: var(--color-text);
  color: var(--color-white);
}

.menu-toggle {
  display: none;
}

.mobile-drawer {
  display: none;
}

.nav-veil {
  display: none;
}

.hero {
  position: relative;
  min-height: var(--hero-height);
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 42px;
  right: -90px;
  width: 380px;
  height: 380px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-pill);
}

.hero::after {
  right: 25%;
  bottom: -180px;
  width: 440px;
  height: 280px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

.hero-shell {
  position: relative;
  display: grid;
  width: min(calc(100% - 48px), var(--container));
  min-height: var(--hero-height);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.04fr) minmax(500px, 0.96fr);
  gap: 36px;
  padding-top: 42px;
  padding-bottom: 38px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: 690px;
}

.h1-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-subtitle strong {
  color: var(--color-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 22px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 650;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust span::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

.access-rows {
  display: grid;
  max-width: 680px;
  gap: 10px;
  margin-top: 22px;
}

.access-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}

.access-label {
  width: 52px;
  flex: 0 0 auto;
  padding-top: 9px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.platform-list,
.flag-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.platform-chip,
.flag-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
}

.platform-chip svg {
  width: 14px;
  height: 14px;
  color: var(--color-text);
}

.flag-icon {
  width: 24px;
  height: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-white);
}

.hero-visual {
  position: relative;
  min-height: 680px;
}

.visual-note {
  position: absolute;
  top: 18px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.visual-note::before {
  width: 26px;
  border-top: 2px solid var(--color-warn);
  content: "";
}

.hero-fact {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  transition: transform var(--transition-medium);
}

.hero-fact:hover {
  transform: translateY(-4px);
}

.hero-fact-cover {
  top: 52px;
  right: 0;
  width: 202px;
  min-height: 116px;
}

.hero-fact-refund {
  right: 8px;
  bottom: 48px;
  width: 220px;
  min-height: 116px;
  background: var(--color-panel-soft);
}

.hero-fact small {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.hero-fact strong {
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.hero-fact-refund strong {
  color: var(--color-text);
}

.hero-fact-rule {
  width: 44px;
  border-top: 2px solid var(--color-warn);
}

.stack-stage {
  position: absolute;
  top: 174px;
  left: 18px;
  width: 530px;
  height: 420px;
}

.route-card {
  position: absolute;
  width: 410px;
  height: 196px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.route-card::after {
  position: absolute;
  right: -46px;
  bottom: -68px;
  width: 180px;
  height: 180px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.16;
}

.route-card-back {
  color: var(--color-text-muted);
}

.route-card-back-a {
  top: 150px;
  left: 0;
  z-index: 1;
  transform: rotate(-5deg);
  background: var(--color-panel-muted);
}

.route-card-back-b {
  top: 106px;
  left: 30px;
  z-index: 2;
  transform: rotate(-2deg);
  background: var(--color-panel-soft);
}

.route-card-back-c {
  top: 62px;
  left: 58px;
  z-index: 3;
  transform: rotate(2deg);
  background: var(--color-panel);
}

.route-card-direct {
  top: 0;
  left: 84px;
  z-index: 8;
  border-color: var(--color-warn);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
  transform: rotate(-1deg);
}

.route-card-topline,
.route-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 680;
}

.route-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.route-card-direct .status-dot {
  background: var(--color-white);
}

.route-card-title {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.route-card-name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.route-card-subtitle {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 650;
  opacity: 0.78;
}

.route-check {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-white);
  border-radius: var(--radius-pill);
  background: var(--color-accent-dark);
}

.route-check svg {
  width: 24px;
  height: 24px;
}

.route-card-bottom {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  opacity: 0.76;
}

.site-footer {
  padding-top: 70px;
  border-top: 1px solid var(--color-border);
  background: var(--color-panel-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr 0.8fr;
  gap: 42px;
  padding-bottom: 50px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 18px;
  font-size: 14px;
}

.footer-title {
  margin: 0 0 16px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 780;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  width: fit-content;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer-links a:hover {
  color: var(--color-accent-dark);
}

.footer-hot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-hot a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-size: 11px;
}

.footer-bottom {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a:hover {
  color: var(--color-accent-dark);
}

.reveal {
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.pending {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal.pending {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .language-menu {
    display: none;
  }

  .nav-veil {
    position: fixed;
    z-index: 90;
    inset: var(--header-height) 0 0;
    background: var(--color-backdrop);
  }

  .site-header.menu-open .nav-veil {
    display: block;
  }

  .mobile-drawer {
    position: fixed;
    z-index: 110;
    top: var(--header-height);
    right: 0;
    display: none;
    width: min(420px, 100%);
    max-height: calc(100dvh - var(--header-height));
    padding: 14px var(--gutter) 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-panel);
    box-shadow: var(--shadow-card);
  }

  .site-header.menu-open .mobile-drawer {
    display: block;
  }

  .mobile-nav-list,
  .mobile-language-list {
    display: grid;
    gap: 3px;
  }

  .mobile-drawer a {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 680;
  }

  .mobile-drawer a:hover,
  .mobile-drawer a[aria-current="page"],
  .mobile-drawer a[aria-current="true"] {
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
  }

  .mobile-language-list {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.85fr);
  }

  .stack-stage {
    left: 0;
    transform: scale(0.88);
    transform-origin: left top;
  }

  .hero-fact-refund {
    right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --hero-height: auto;
    --section-space: 80px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .hero-copy {
    justify-content: flex-start;
  }

  .hero-visual {
    min-height: 650px;
  }

  .stack-stage {
    left: 50%;
    transform: translateX(-50%) scale(0.96);
    transform-origin: top center;
  }

  .hero-fact-cover {
    right: 4%;
  }

  .hero-fact-refund {
    right: 5%;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 18px;
    --header-height: 66px;
    --toc-top: 72px;
  }

  h1,
  .display-title,
  .hero h1 {
    font-size: clamp(32px, 9.6vw, 40px);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .nav-shell {
    width: 100%;
    padding-inline: var(--gutter);
  }

  .brand-local {
    display: none;
  }

  .login-button {
    min-height: 40px;
    padding-inline: 15px;
  }

  .visual-note {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    top: 460px;
    right: -180px;
  }

  .hero::after {
    display: none;
  }

  .hero-shell {
    width: 100%;
    padding: 48px var(--gutter) 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 590px;
  }

  .hero-fact-cover {
    top: 4px;
  }

  .hero-fact-refund {
    bottom: 8px;
  }

  .stack-stage {
    top: 136px;
  }

  .footer-grid {
    gap: 34px 22px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section-space: 68px;
  }

  body {
    overflow-x: clip;
  }

  .tilt,
  [class*="tilt"],
  .route-card {
    transform: none;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-en {
    font-size: 18px;
  }

  .header-tools {
    margin-left: auto;
    gap: 4px;
  }

  .login-button {
    padding-inline: 13px;
    font-size: 13px;
  }

  .menu-toggle {
    padding: 0;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .primary-cta,
  .hero-actions .secondary-cta {
    flex: 1 1 140px;
  }

  .access-row {
    display: grid;
    gap: 6px;
  }

  .access-label {
    width: auto;
    padding-top: 0;
  }

  .hero-visual {
    min-height: 530px;
  }

  .stack-stage {
    top: 126px;
    width: 100%;
    height: 330px;
    transform: none;
  }

  .route-card {
    width: calc(100% - 24px);
    height: 170px;
    padding: 18px;
  }

  .route-card-back-a {
    top: 132px;
    left: 0;
  }

  .route-card-back-b {
    top: 94px;
    left: 8px;
  }

  .route-card-back-c {
    top: 56px;
    left: 16px;
  }

  .route-card-direct {
    top: 0;
    left: 24px;
  }

  .route-card-title {
    margin-top: 29px;
  }

  .route-card-name {
    font-size: 23px;
  }

  .route-card-bottom {
    right: 18px;
    bottom: 14px;
    left: 18px;
  }

  .hero-fact {
    min-height: 94px;
    padding: 14px;
  }

  .hero-fact-cover {
    right: 0;
    width: 176px;
  }

  .hero-fact-refund {
    right: 0;
    bottom: 0;
    width: 184px;
  }

  .hero-fact strong {
    font-size: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 390px) {
  .brand-words {
    gap: 0;
  }

  .route-check {
    width: 42px;
    height: 42px;
  }

  .hero-fact-cover {
    width: 164px;
  }

  .hero-fact-refund {
    width: 174px;
  }
}