:root {
  color-scheme: light;
  --page: #f4f7fc;
  --surface: #fff;
  --text: #182743;
  --muted: #4e5d75;
  --blue: #1547ad;
  --line: #dce4f0;
  --green: #0a6548;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid #3370eb;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sr-only:focus {
  z-index: 10;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  clip-path: none;
  border-radius: 6px;
  background: var(--surface);
}

.layout {
  width: min(100% - 64px, 1060px);
  margin-inline: auto;
  padding-block: 42px 52px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px clamp(24px, 4.5vw, 52px) 32px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 96% 0%, #3263c9 0%, transparent 57%),
    linear-gradient(128deg, #102449 0%, #173f96 70%, #2156bd 100%);
  color: #fff;
  box-shadow: 0 18px 36px #163d8222;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 47%;
  background-image:
    linear-gradient(#dce9ff20 1px, transparent 1px),
    linear-gradient(90deg, #dce9ff20 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 90% 4%, #000 0%, transparent 73%);
  content: "";
  pointer-events: none;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}

.language-switch a {
  padding: 5px 11px;
  border: 1px solid #ffffff38;
  border-radius: 8px;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.language-switch a:hover {
  background: #ffffff28;
}

.language-switch a:focus-visible {
  outline-color: #fff;
}

.language-switch a[aria-current="page"] {
  border-color: #fff;
  background: #fff;
  color: #173f96;
}

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

.market {
  margin: 0 0 8px;
  color: #c7dcff;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .06em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -.035em;
}

.hero-description {
  max-width: 610px;
  margin: 12px 0 0;
  color: #e1ebff;
  font-size: clamp(.94rem, 1.8vw, 1.03rem);
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0;
}

.overview > div {
  padding: 11px 14px;
  border: 1px solid #ffffff2f;
  border-radius: 10px;
  background: #091b422e;
}

.overview dt {
  color: #d3e2fb;
  font-size: .78rem;
  line-height: 1.3;
}

.overview dd {
  margin: 5px 0 0;
  font-size: clamp(.94rem, 2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.28;
  font-variant-numeric: tabular-nums;
}

.contents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 19px 0;
}

.contents a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.contents a:hover {
  border-color: #98afe0;
  background: #eff5ff;
}

.policy-section {
  scroll-margin-top: 18px;
  margin-bottom: 18px;
  padding: clamp(20px, 3.8vw, 38px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 6px 18px #233f7708;
}

.section-header h2 {
  display: flex;
  align-items: stretch;
  gap: 11px;
  font-size: clamp(1.2rem, 3vw, 1.58rem);
  font-weight: 750;
  letter-spacing: -.018em;
}

.section-header h2::before {
  flex: 0 0 4px;
  border-radius: 4px;
  background: #2c62cd;
  content: "";
}

.section-header p,
.calculation p {
  margin: 8px 0 0;
  color: var(--muted);
}

.price-table-wrap {
  max-width: 100%;
  margin-top: 19px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  padding: 12px clamp(7px, 1.6vw, 18px);
  text-align: right;
}

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

.price-table thead {
  background: #edf3ff;
  color: #173d8f;
}

.price-table thead th {
  font-weight: 700;
  vertical-align: bottom;
}

.price-table tbody tr {
  border-top: 1px solid var(--line);
}

.price-table tbody tr:nth-child(even) {
  background: #f8faff;
}

.price-table tbody th,
.price-table tbody td {
  white-space: nowrap;
}

.price-table tbody th {
  color: var(--blue);
  font-weight: 700;
}

.price-table tbody .margin,
.price-table tbody .profit {
  color: var(--green);
  font-weight: 700;
}

.calculation {
  margin-top: 17px;
  padding: 14px 16px;
  border-left: 3px solid #366ac9;
  border-radius: 0 9px 9px 0;
  background: #f1f5fc;
}

.calculation h3 {
  font-size: 1rem;
}

.calculation p:first-child {
  margin-top: 0;
}

.formula {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.calculation .formula {
  color: var(--text);
  font-weight: 650;
}

.calculation-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 640px) {
  .layout {
    width: calc(100% - 28px);
    padding-block: 16px 25px;
  }

  .hero {
    padding: 17px 19px 20px;
    border-radius: 17px;
  }

  .language-switch {
    margin-bottom: 19px;
  }

  .language-switch a {
    padding: 5px 9px;
  }

  .overview {
    gap: 5px;
    margin-top: 20px;
  }

  .overview > div {
    padding: 8px 7px;
  }

  .overview dt {
    font-size: .69rem;
  }

  .overview dd {
    font-size: .82rem;
  }

  .contents {
    padding: 14px 0;
  }

  .contents a {
    padding: 5px 9px;
    font-size: .79rem;
  }

  .policy-section {
    margin-bottom: 12px;
    padding: 16px 13px;
    border-radius: 13px;
  }

  .section-header p,
  .calculation p {
    font-size: .875rem;
  }

  .price-table-wrap {
    margin-top: 13px;
  }

  .price-table {
    font-size: .77rem;
  }

  .price-table th,
  .price-table td {
    padding: 9px 6px;
  }

  .calculation {
    padding: 12px;
  }
}

@media (max-width: 350px) {
  .overview {
    grid-template-columns: 1fr;
  }

  .overview > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .overview dd {
    margin-top: 0;
    text-align: right;
  }
}

@media print {
  body,
  .hero {
    background: #fff;
    color: #182743;
  }

  .layout {
    width: 100%;
    padding: 0;
  }

  .hero,
  .policy-section {
    padding: 12px;
    border: 1px solid #dce4f0;
    box-shadow: none;
  }

  .hero {
    margin-bottom: 12px;
  }

  .hero::before,
  .language-switch,
  .contents {
    display: none;
  }

  .market,
  .hero-description,
  .overview dt {
    color: var(--muted);
  }

  .overview > div {
    border-color: var(--line);
    background: none;
  }

  .price-table-wrap {
    overflow: visible;
  }

  .price-table tr,
  .section-header,
  .calculation {
    break-inside: avoid;
  }
}
