:root {
  color-scheme: light;
  --navy: #081323;
  --navy-raised: #0c1b30;
  --ink: #101f37;
  --body: #425671;
  --muted: #526781;
  --line: #d7e2ed;
  --soft: #eef4fa;
  --paper: #f8fafd;
  --white: #fff;
  --blue: #174aa4;
  --ice: #9dccff;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "Aptos", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-family: var(--sans);
  font-kerning: normal;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #3188ff; outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 720; line-height: 1.22; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.65vw, 3.45rem); letter-spacing: -.047em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
code { font-family: var(--mono); font-size: 1em; }
.frame { width: min(100% - 7rem, 75rem); margin-inline: auto; }
.section { padding-block: clamp(4.3rem, 8.5vw, 8rem); }
.section-heading { max-width: 46rem; margin-bottom: 2.5rem; }
.section-heading p, .section-lead { color: var(--body); margin-top: 1.1rem; max-width: 43rem; }

.skip-link {
  position: absolute; left: 1rem; top: 1rem; z-index: 3;
  padding: .55rem 1rem; border-radius: .45rem; background: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.masthead { background: var(--navy); color: #f4f8ff; border-bottom: 1px solid #273950; }
.masthead-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem; min-height: 5rem;
}
.identity { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; text-decoration: none; }
.identity img { border-radius: .5rem; flex: none; }
.brand-title { font-size: 1.33rem; line-height: 1.02; font-weight: 800; letter-spacing: .115em; }
.brand-title small {
  display: block; margin-top: .28rem; color: #abbfd8; font: .75rem/1.1 var(--mono);
  letter-spacing: 0; white-space: nowrap;
}
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.1rem); }
.primary-nav a { font-size: .9rem; font-weight: 650; color: #d3e1f4; text-decoration: none; padding-block: .65rem; }
.primary-nav a:hover { color: var(--white); text-decoration: underline; }
.language {
  display: flex; align-items: center; justify-self: end; gap: .2rem;
  padding: .18rem; border: 1px solid #354760; border-radius: .55rem;
}
.language a {
  display: grid; place-items: center; min-height: 2.5rem; padding: .25rem .69rem; border-radius: .35rem;
  text-decoration: none; font-size: .858rem; color: #bdcee3; font-weight: 650; white-space: nowrap;
}
.language a:hover { background: #192a41; }
.language [aria-current="page"] { background: #253a57; color: #f5f9ff; }

.hero {
  color: #f6faff;
  background: radial-gradient(ellipse at 72% 43%, #112a53 0, transparent 56%), var(--navy);
  overflow: clip;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center;
  position: relative; isolation: isolate; padding-block: clamp(5rem, 10vw, 9rem) clamp(4.2rem, 8.6vw, 7.2rem);
}
.hero-copy { z-index: 1; }
.live {
  display: inline-flex; align-items: center; gap: .55rem; font: 600 .875rem/1.35 var(--mono);
  color: #b6d4f7; margin-bottom: 1.35rem;
}
.live span { inline-size: .55rem; block-size: .55rem; background: #78e5c5; border-radius: 50%; box-shadow: 0 0 14px #78e5c57a; }
.hero h1 {
  font-size: clamp(2.85rem, 5.05vw, 4.85rem);
  line-height: 1.15; letter-spacing: -.067em; text-wrap: unset;
}
.hero h1 span { color: #a2cfff; }
.hero-lead { max-width: 34rem; margin-top: 1.53rem; color: #bdcfe6; font-size: clamp(1rem, 1.45vw, 1.18rem); }
.hero-media { min-width: 0; z-index: -1; }
.hero-media img {
  width: 126%; max-width: none; margin-left: -7%; border-radius: 18%;
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 51%, transparent 80%);
}
.actions { display: flex; gap: .76rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  border-radius: .55rem; min-height: 3.1rem; display: inline-flex; align-items: center; justify-content: center;
  padding: .63rem 1rem; text-decoration: none; font-weight: 720; line-height: 1.35; border: 1px solid transparent;
}
.button-primary { background: #a3d1ff; color: #07162a; }
.button-primary:hover { background: #d1e8ff; }
.button-quiet { border-color: #48607e; color: #edf6ff; }
.button-quiet:hover { background: #1b3453; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #204771; }
.button-outline { border-color: #aabed6; color: var(--ink); }
.button-outline:hover { background: var(--soft); }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #344760; padding-bottom: 1.8rem;
}
.stats div { display: flex; flex-direction: column; padding: 1.25rem clamp(.55rem, 2.8vw, 2.3rem) .18rem; }
.stats div + div { border-left: 1px solid #344760; }
.stats dt { color: #bdcfe4; font-size: .9rem; line-height: 1.4; }
.stats dd { order: -1; font: 650 clamp(1.6rem, 2.9vw, 2.5rem)/1.15 var(--mono); color: #dceeff; margin-bottom: .35rem; }

.signature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.signature-card {
  min-width: 0; position: relative; overflow: hidden; padding: 1.9rem 2rem 2rem;
  border: 1px solid #d7e4f1; border-radius: 1rem; background: #fff;
}
.signature-card h3 { font-size: clamp(1.65rem, 2.6vw, 2.5rem); text-wrap: unset; margin: .42rem 0 .65rem; }
.signature-card p:last-child { max-width: 35rem; color: var(--body); }
.scheme-category { color: var(--blue); font-weight: 700; font-size: .9rem; }
.scheme-icon {
  display: block; width: 3rem; height: 3rem; margin-bottom: 1.45rem; border-radius: .65rem;
  border: 1px solid #c6dcef; background-color: #edf6ff;
}
.lattice {
  background-image: repeating-linear-gradient(45deg, transparent 0 6px, #669cd0 6px 7px),
    repeating-linear-gradient(-45deg, transparent 0 6px, #669cd0 6px 7px);
  background-size: 1.55rem 1.55rem; background-repeat: no-repeat; background-position: center;
}
.hash {
  background-image: radial-gradient(circle, #2472b4 1.6px, transparent 2px);
  background-size: .49rem .49rem; background-repeat: repeat;
  box-shadow: inset 0 0 0 .48rem #edf6ff;
}
.requirement {
  display: flex; align-items: center; gap: .7rem; margin: 1.15rem 0 2.6rem;
  font-weight: 650; color: #23476b;
}
.check-icon {
  position: relative; width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; border-radius: 50%;
  background: #dbeafb;
}
.check-icon::before {
  content: ""; position: absolute; top: .37rem; left: .45rem; width: .43rem; height: .65rem;
  border: solid #194f87; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.capacity {
  display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 3rem); padding: 1.45rem 2rem;
  border-radius: .95rem; background: #eaf2fc; border: 1px solid #d1e1f2;
}
.capacity-value { font: 650 clamp(2.4rem, 4.3vw, 4.1rem)/1 var(--mono); letter-spacing: -.065em; color: #225da2; }
.capacity h3 { text-wrap: unset; }
.capacity p { margin-top: .4rem; color: var(--body); }

.addresses { background: #e9f1fa; border-block: 1px solid #d9e5f1; }
.address-layout {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(2rem, 6vw, 5.2rem);
}
.address-layout h2 { text-wrap: unset; }
.address-list { margin-top: 1.6rem; border-top: 1px solid #becee2; }
.address-list > div {
  display: grid; grid-template-columns: minmax(6.85rem, .38fr) 1fr; align-items: center;
  gap: .7rem; padding: .95rem 0; border-bottom: 1px solid #becee2;
}
.address-list code {
  display: inline-block; padding: .16rem .58rem; border: 1px solid #a9c2de; border-radius: .38rem;
  color: #13395f; background: #f7fbff; font-weight: 750; font-size: 1.18rem;
}
.address-list dd { display: flex; gap: .08rem .55rem; flex-wrap: wrap; align-items: baseline; }
.address-list dd span { color: var(--body); }
.change-note { margin-top: 1.48rem; border-left: 3px solid #548dcc; padding-left: .85rem; }
.change-note h3 { font-size: 1.09rem; }
.change-note p { margin-top: .25rem; color: var(--body); }
.wallet-image > a {
  display: block; border: .46rem solid #172940; border-radius: .9rem; overflow: hidden;
  background: #172940; box-shadow: 0 18px 42px #18385432;
}
.wallet-image img { width: 100%; }
.wallet-image figcaption { font-size: .875rem; color: var(--body); margin-top: .9rem; }
.wallet-image figcaption a { display: inline-block; color: var(--blue); font-weight: 650; }

.flow { padding-bottom: clamp(4.3rem, 7vw, 6rem); }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.route {
  border: 1px solid var(--line); border-radius: .9rem; padding: 1.3rem; background: #fff;
}
.route p { color: var(--body); margin-top: .95rem; }
.route-path { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: 1.15rem; }
.route-path span { flex: 1; background: #eaf2fb; border-radius: .48rem; padding: .43rem .72rem; min-width: 0; }
.route-path small { display: block; color: #476485; font-size: .8125rem; }
.route-path code { color: #17497e; font-weight: 750; }
.route-path i { width: .85rem; height: 1px; background: #657e9c; flex: none; position: relative; }
.route-path i::after {
  content: ""; position: absolute; right: 0; top: -.18rem; width: .38rem; height: .38rem;
  border: solid #657e9c; border-width: 1px 1px 0 0; transform: rotate(45deg);
}

.context { background: var(--navy-raised); color: #f5f9ff; }
.context-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: clamp(2rem, 8vw, 7rem); }
.context-heading p { margin-top: 1.05rem; color: #b6cbe2; }
.timeline article { border-top: 1px solid #36506e; padding: 1.15rem 0 1.4rem; }
.timeline article:last-child { padding-bottom: 0; }
.timeline time { color: #a9d1ff; font: 650 .875rem/1.25 var(--mono); }
.timeline h3 { margin: .46rem 0 .4rem; color: #f4f9ff; text-wrap: unset; }
.timeline p { color: #c0cfe3; }
.source-links { margin-top: .55rem; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.source-links a { color: #bbd9ff; font-size: .93rem; text-decoration-thickness: .065em; }

.resources {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center;
}
.resources p { margin-top: .82rem; max-width: 32rem; color: var(--body); }
.resource-links { display: grid; gap: .65rem; grid-template-columns: 1fr 1fr; }

.footer { background: var(--navy); color: #d8e6f5; border-top: 1px solid #263b54; }
.footer-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem 2rem; min-height: 6.05rem;
}
.footer-inner p { color: #b2c5dd; font-size: .875rem; }
.top-link { justify-self: end; font-size: .875rem; }

@media (max-width: 1040px) {
  .frame { width: min(100% - 4rem, 75rem); }
  .hero h1 { font-size: clamp(2.65rem, 5.35vw, 4.5rem); }
  .route { padding: 1rem; }
  .resources { grid-template-columns: 1fr; }
  .resource-links { display: flex; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .frame { width: calc(100% - 2.5rem); }
  .masthead-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 4.45rem; padding-block: .48rem; gap: .35rem .65rem; }
  .primary-nav {
    grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .45rem;
    border-top: 1px solid #273950;
  }
  .primary-nav a { font-size: .865rem; padding-block: .43rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 3.4rem 1.1rem; }
  .hero h1 { font-size: clamp(2.2rem, 7.8vw, 3.8rem); }
  .hero-media img { max-width: 100%; width: min(100%, 33rem); margin: -.25rem auto -.5rem; }
  .stats { padding-bottom: 1.1rem; }
  .stats div { padding: .9rem .63rem 0; }
  .stats div:first-child { padding-left: 0; }
  .stats dt { font-size: .875rem; }
  .signature-card { padding: 1.35rem; }
  .address-layout, .context-grid { grid-template-columns: 1fr; }
  .address-layout { gap: 1.6rem; }
  .route-grid { grid-template-columns: 1fr; }
  .route { padding: 1.15rem; }
  .footer-inner { grid-template-columns: auto 1fr; padding-block: 1rem; }
  .footer-inner p { grid-row: 2; grid-column: 1 / -1; }
}

@media (max-width: 470px) {
  .section { padding-block: 3.4rem; }
  .section-heading { margin-bottom: 1.65rem; }
  .signature-grid { grid-template-columns: 1fr; }
  .capacity { align-items: flex-start; padding: 1rem; gap: .8rem; }
  .capacity-value { font-size: 2.2rem; }
  .resource-links .button { flex: 1 1 100%; }
  html[lang="ja"] .hero h1 { font-size: clamp(1.75rem, 8.9vw, 2.25rem); }
  .hero-copy .actions { gap: .55rem; }
  .hero-copy .button { padding-inline: .75rem; }
  .primary-nav { flex-wrap: wrap; justify-content: start; column-gap: .82rem; }
  .primary-nav a { min-height: 2.5rem; display: inline-flex; align-items: center; line-height: 1.25; }
  .language a { padding-inline: .49rem; }
  .brand-title small { font-size: .7rem; }
}

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