:root {
  color-scheme: dark;
  --bg: #090d11;
  --panel: #121a20;
  --panel-strong: #18242c;
  --line: #40505a;
  --text: #f7f4e9;
  --muted: #c4ccd1;
  --gold: #ffbd35;
  --gold-deep: #cf7d00;
  --r: #81c8ff;
  --sr: #dba9ff;
  --l: #ffcc4f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 189, 53, 0.2), transparent 38rem),
    linear-gradient(180deg, #111820 0, var(--bg) 22rem);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: #ffe09a;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hero {
  border-top: 8px solid var(--gold);
  border-bottom: 1px solid rgba(255, 189, 53, 0.55);
  background: rgba(4, 8, 11, 0.7);
}

.hero__inner,
main,
footer {
  width: calc(100% - 28px);
  max-width: 780px;
  min-width: 0;
  margin-inline: auto;
}

.hero__inner {
  position: relative;
  padding: 34px 0 30px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.2;
}

h2 {
  margin: 0 0 12px;
  color: #fff8dd;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  line-height: 1.35;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
}

.updated {
  margin: 8px 0 0;
  color: #9eabb2;
  font-size: 0.9rem;
}

.language {
  display: inline-block;
  margin-top: 18px;
  padding: 7px 16px;
  border: 1px solid #9eabb2;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

main {
  padding: 24px 0 10px;
}

.panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 18px;
  padding: clamp(18px, 5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(28, 40, 49, 0.98), rgba(13, 20, 25, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid #56646c;
  border-radius: 9px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.rates {
  min-width: 0;
  table-layout: fixed;
}

.rates th,
.rates td {
  white-space: normal;
}

th,
td {
  padding: 12px 11px;
  border-right: 1px solid #46545c;
  border-bottom: 1px solid #46545c;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tr:last-child th,
tr:last-child td,
tfoot th,
tfoot td {
  border-bottom: 0;
}

thead,
tfoot {
  background: #26343d;
}

thead th,
tfoot th,
tfoot td {
  color: #fff;
  font-weight: 750;
}

.rates tbody tr:nth-child(even),
.examples tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.035);
}

.badge {
  display: inline-grid;
  min-width: 2.5em;
  min-height: 2.1em;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 900;
}

.badge--r { color: var(--r); }
.badge--sr { color: var(--sr); }
.badge--l { color: var(--l); }

.primary-link {
  display: block;
  padding: 13px 18px;
  border: 1px solid #ffd879;
  border-radius: 8px;
  color: #171006;
  background: linear-gradient(#ffd76b, #f0a719);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.pickup-rule {
  padding: 14px 16px;
  border-left: 5px solid var(--gold);
  background: rgba(255, 189, 53, 0.1);
}

.current-pickup {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 189, 53, 0.72);
  border-radius: 9px;
  background: rgba(255, 189, 53, 0.075);
}

.current-pickup h3 {
  margin: 0 0 8px;
  color: #ffe09a;
  font-size: 1.08rem;
  line-height: 1.4;
}

.current-pickup .table-wrap {
  margin: 14px 0 10px;
}

.current-pickup table {
  table-layout: fixed;
}

.current-pickup th,
.current-pickup td {
  padding: 9px 7px;
  white-space: normal;
}

.current-pickup__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.formula {
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px dashed #8f9aa1;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.formula p {
  margin: 7px 0;
}

var {
  color: #ffda85;
  font-weight: 800;
}

details {
  margin-top: 18px;
}

summary {
  cursor: pointer;
  color: #ffe09a;
  font-weight: 750;
}

.scroll-hint {
  margin: 10px 0 -8px;
  color: #aeb8bd;
  font-size: 0.85rem;
}

.table-wrap--examples {
  margin-bottom: 0;
}

.examples {
  min-width: 610px;
  font-size: 0.92rem;
}

.notes ul {
  margin: 0;
  padding-left: 1.3em;
}

.notes li + li {
  margin-top: 7px;
}

footer {
  padding: 20px 0 calc(28px + env(safe-area-inset-bottom));
  color: #919ba0;
  font-size: 0.8rem;
  text-align: center;
}

@media (min-width: 680px) {
  .hero__inner {
    padding-right: 130px;
  }

  .language {
    position: absolute;
    top: 36px;
    right: 0;
    margin: 0;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .hero__inner,
  main,
  footer {
    width: calc(100% - 20px);
  }

  th,
  td {
    padding: 10px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
