:root {
  --bg: #f6f1e8;
  --bg-strong: #ece4d7;
  --paper: #fffaf2;
  --paper-alt: #f2eadf;
  --ink: #131416;
  --ink-soft: #4f5257;
  --ink-muted: #7b7d80;
  --line: #131416;
  --line-soft: rgba(19, 20, 22, 0.18);
  --line-faint: rgba(19, 20, 22, 0.08);
  --accent: #f1b62f;
  --accent-soft: rgba(241, 182, 47, 0.16);
  --accent-deep: #b57b00;
  --accent-strong: #ffd067;
  --max: 1280px;
  --content: 920px;
  --nav-height: 78px;
  --ease: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(241, 182, 47, 0.08) 0 16%, transparent 16% 100%),
    linear-gradient(180deg, var(--bg) 0%, #efe8db 100%);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(transparent 0, var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0, var(--line-faint) 1px, transparent 1px);
  background-size: 100% 52px, 52px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 94%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 18vw), rgba(241, 182, 47, 0.14) calc(100% - 18vw) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 42%);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.94);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-nav__inner,
.section,
.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-nav__inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand-lockup__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-lockup__meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-nav__cluster,
.site-nav__links,
.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__cluster {
  gap: 18px;
}

.nav-link,
.lang-switch__button,
.button,
.slab-link,
.inline-mail,
.detail-link {
  transition:
    transform var(--ease),
    background-color var(--ease),
    color var(--ease),
    border-color var(--ease);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.lang-switch {
  padding-left: 16px;
  border-left: 1px solid var(--line-soft);
}

.lang-switch__button {
  min-height: 38px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}

.lang-switch__button:hover,
.lang-switch__button[aria-pressed="true"] {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

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

.hero__inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: calc(100svh - var(--nav-height));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: stretch;
  position: relative;
}

.hero__copy,
.hero__board {
  padding: clamp(34px, 4vw, 64px) 0;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.hero__copy::before {
  position: absolute;
  left: -32px;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(241, 182, 47, 0) 82%);
  content: "";
}

.hero-index,
.section-index,
.page-index,
.spec-label,
.metric-label,
.block-index,
.info-rail__label {
  color: var(--ink-muted);
  font-family: "SFMono-Regular", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-index,
.page-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-index::after,
.page-index::after,
.section-index::after {
  width: 54px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.hero-title,
.page-title,
.section-title {
  margin: 0;
  font-size: clamp(3.8rem, 11vw, 7.8rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.page-title {
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.hero-lede {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.22rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.18;
}

.hero-detail,
.section-body,
.page-summary {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 rgba(19, 20, 22, 0.08);
  text-decoration: none;
}

.button:hover,
.slab-link:hover,
.detail-link:hover,
.inline-mail:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: 6px 6px 0 var(--accent-soft);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.7);
}

.button--ghost {
  background: transparent;
}

.inline-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 0 0 4px;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.hero__mail {
  margin-top: 6px;
}

.hero__board {
  display: flex;
  align-items: center;
}

.hero-panel {
  width: 100%;
  min-height: min(74vh, 760px);
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.38)),
    linear-gradient(135deg, rgba(240, 179, 49, 0.1), transparent 42%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  position: absolute;
  right: 0;
  top: 0;
  width: 18px;
  height: 100%;
  background: var(--accent);
  content: "";
}

.hero-panel::after {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 86px;
  height: 86px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  content: "";
}

.hero-panel__bar,
.hero-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 2px solid var(--line);
  font-family: "SFMono-Regular", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel__footer {
  border-top: 2px solid var(--line);
  border-bottom: 0;
}

.hero-panel__body {
  padding: 18px 30px 18px 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.hero-mark {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.hero-mark__name {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  max-width: 8ch;
}

.hero-mark__code {
  color: var(--accent-deep);
  font-family: "SFMono-Regular", "IBM Plex Mono", "Menlo", monospace;
  font-size: 1.1rem;
  font-weight: 700;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 0;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54));
}

.spec-item {
  min-height: 150px;
  padding: 16px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.spec-item:nth-child(1),
.spec-item:nth-child(4) {
  background: rgba(241, 182, 47, 0.08);
}

.spec-item:nth-child(2n) {
  border-right: 0;
}

.spec-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.spec-value {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.18;
}

.section,
.footer {
  padding: 0 0 80px;
}

.section-shell {
  border-top: 2px solid var(--line);
  padding-top: 24px;
  position: relative;
}

.section-shell::before {
  position: absolute;
  left: 0;
  top: -2px;
  width: 120px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.link-grid,
.info-rail,
.detail-list,
.policy-list {
  display: grid;
  gap: 0;
}

.link-grid {
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.slab-link {
  min-height: 300px;
  padding: 22px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.52);
  display: grid;
  align-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.slab-link:hover {
  background: rgba(255, 255, 255, 0.76);
}

.slab-link::after {
  position: absolute;
  right: 0;
  top: 0;
  width: 18px;
  height: 100%;
  background: linear-gradient(180deg, rgba(241, 182, 47, 0.18), rgba(241, 182, 47, 0.48));
  content: "";
}

.slab-link__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.slab-link__body {
  max-width: 28rem;
  margin: 0;
  color: var(--ink-soft);
}

.slab-link__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding-top: 10px;
  border-top: 2px solid var(--line);
  font-family: "SFMono-Regular", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-rail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.info-rail__item {
  min-height: 180px;
  padding: 18px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.info-rail__item:nth-child(2n) {
  background: rgba(241, 182, 47, 0.08);
}

.info-rail__value {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-hero {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 54px) 0 34px;
}

.page-hero__head {
  display: grid;
  gap: 18px;
  max-width: 44rem;
}

.page-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.page-meta__item {
  min-height: 132px;
  padding: 16px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.page-meta__item:nth-child(2) {
  background: rgba(241, 182, 47, 0.08);
}

.page-meta__value {
  font-weight: 700;
}

.content-flow {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding-bottom: 80px;
}

.detail-block,
.policy-block,
.support-block {
  display: grid;
  gap: 18px;
  padding: 26px 0;
  border-top: 2px solid var(--line);
}

.detail-block:first-child,
.policy-block:first-child,
.support-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.detail-grid,
.policy-grid {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.detail-row,
.policy-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

.detail-row__term,
.detail-row__body,
.policy-row__term,
.policy-row__body {
  min-height: 110px;
  padding: 16px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.detail-row__term,
.policy-row__term {
  color: var(--ink-muted);
  font-family: "SFMono-Regular", "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-row__body p,
.policy-row__body p,
.support-block p,
.detail-block p,
.policy-block p {
  margin: 0;
  color: var(--ink-soft);
}

.detail-row__body strong,
.policy-row__body strong {
  color: var(--ink);
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.footer {
  padding-top: 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.footer__meta,
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.footer__small {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.fade-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-rise 620ms cubic-bezier(0.18, 0.7, 0.22, 1) forwards;
}

.fade-rise--delay-1 {
  animation-delay: 90ms;
}

.fade-rise--delay-2 {
  animation-delay: 180ms;
}

.fade-rise--delay-3 {
  animation-delay: 260ms;
}

@keyframes fade-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero__inner,
  .page-meta {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
  }

  .link-grid,
  .info-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .spec-item {
    min-height: 126px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .spec-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  body::after {
    background:
      linear-gradient(180deg, rgba(241, 182, 47, 0.14) 0 18%, transparent 18% 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 42%);
  }

  .site-nav__inner {
    min-height: auto;
    padding: 14px 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-nav__cluster {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
  }

  .site-nav__links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-link {
    min-height: 42px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.48);
  }

  .lang-switch {
    padding-left: 0;
    border-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav__inner,
  .section,
  .footer,
  .page-hero,
  .content-flow,
  .hero__inner {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero-title,
  .page-title {
    max-width: 10ch;
    font-size: clamp(2.9rem, 18vw, 4.4rem);
  }

  .hero__copy,
  .hero__board {
    padding: 22px 0 0;
  }

  .hero__copy::before {
    left: 0;
    top: -14px;
    right: 0;
    bottom: auto;
    width: 84px;
    height: 10px;
  }

  .hero-detail,
  .section-body,
  .page-summary {
    font-size: 0.96rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    justify-content: space-between;
    padding-inline: 14px;
    box-shadow: 4px 4px 0 rgba(19, 20, 22, 0.07);
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-panel::after {
    width: 58px;
    height: 58px;
    right: 18px;
  }

  .hero-panel__bar,
  .hero-panel__footer {
    min-height: 50px;
    padding: 0 14px;
    font-size: 0.68rem;
  }

  .hero-panel__body {
    padding: 14px 18px 14px 14px;
  }

  .hero-mark {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-mark__name {
    max-width: none;
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .hero-mark__code {
    font-size: 0.92rem;
  }

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

  .spec-item {
    min-height: 118px;
    padding: 14px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .spec-item:nth-child(2n) {
    border-right: 0;
  }

  .spec-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section,
  .footer {
    padding-bottom: 56px;
  }

  .section-shell {
    padding-top: 18px;
  }

  .link-grid,
  .info-rail,
  .page-meta {
    grid-template-columns: 1fr;
  }

  .slab-link {
    min-height: 220px;
    padding: 18px;
    gap: 22px;
  }

  .slab-link__title {
    font-size: clamp(1.6rem, 10vw, 2.1rem);
  }

  .info-rail__item,
  .page-meta__item {
    min-height: 138px;
    padding: 16px 14px;
  }

  .content-flow {
    padding-bottom: 56px;
  }

  .detail-block,
  .policy-block,
  .support-block {
    padding: 22px 0;
  }

  .detail-row,
  .policy-row {
    grid-template-columns: 1fr;
  }

  .detail-row__term,
  .policy-row__term {
    min-height: auto;
    border-bottom: 0;
    padding: 14px 14px 6px;
  }

  .detail-row__body,
  .policy-row__body {
    border-top: 1px solid var(--line-soft);
    padding: 0 14px 14px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__meta,
  .footer__links {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-nav__cluster {
    grid-template-columns: 1fr;
  }

  .lang-switch {
    width: 100%;
  }

  .hero-title,
  .page-title {
    max-width: none;
  }

  .hero-panel__footer {
    flex-wrap: wrap;
  }

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

  .spec-item {
    min-height: 104px;
    border-right: 0;
  }

  .spec-item:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-rise,
  .nav-link,
  .lang-switch__button,
  .button,
  .slab-link,
  .inline-mail,
  .detail-link {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
