:root {
  --site-header-w: 260px;
  --mobile-header-h: 64px;
  --max-w: 1200px;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --color-red: #E63946;
  --color-navy: #1D3557;
  --color-night: #14213D;
  --color-blue: #457B9D;
  --color-green: #A8E10C;
  --color-fog: #F1FAEE;
  --color-text: #111827;
  --color-muted: #6B7280;
  --color-line: #E5E7EB;
  --color-trans-red: rgba(230, 57, 70, 0.15);
  --shadow-hard: 8px 8px 0 rgba(20, 33, 61, 0.18);
  --shadow-deep: 8px 0 24px rgba(20, 33, 61, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  margin-left: var(--site-header-w);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-fog);
}

h1, h2, h3, h4, p, address {
  margin-top: 0;
}

ul, ol {
  padding-left: 0;
}

a {
  color: inherit;
}

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

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

::selection {
  background: var(--color-green);
  color: var(--color-night);
}

#main-content {
  scroll-margin-top: calc(var(--mobile-header-h) + 1rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-container {
  width: min(100% - 3rem, var(--max-w));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
}

.section--alt {
  background: var(--color-night);
  color: var(--color-fog);
}

.section--slant::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 18%;
  background: var(--color-trans-red);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.section-kicker {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-red);
}

.section--alt .section-kicker {
  color: var(--color-green);
}

.section-title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section--alt .section-title {
  color: var(--color-fog);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 0;
  background: var(--color-red);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--color-night);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: #C1272D;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--color-night);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn--compact {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.btn--green {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-night);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.btn--green:hover {
  background: #BCE51D;
  color: var(--color-night);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(241, 250, 238, 0.08);
}

.data-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-red);
}

.image-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-navy), var(--color-night));
  border: 2px solid var(--color-line);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(230, 57, 70, 0.35) 49%, rgba(168, 225, 12, 0.3) 50%, transparent 58%);
  transform: skewX(-8deg);
}

.image-frame::after {
  content: "IMAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--color-fog);
  mix-blend-mode: overlay;
}

.notice-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--color-night);
  color: var(--color-fog);
  border-left: 6px solid var(--color-green);
  box-shadow: var(--shadow-hard);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--site-header-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--color-navy);
  border-right: 4px solid var(--color-red);
  box-shadow: var(--shadow-deep);
}

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 3;
  background: rgba(241, 250, 238, 0.12);
  pointer-events: none;
}

.site-header__progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--color-red), var(--color-green));
}

.site-header__bar {
  display: none;
}

.site-header__toggle {
  display: none;
}

.site-header__sidebar {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1rem 1.2rem;
  overflow-y: auto;
  background: transparent;
}

.site-header__sidebar .site-brand--sidebar {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(241, 250, 238, 0.16);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-fog);
  text-decoration: none;
}

.site-brand__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  background: var(--color-red);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%, 0 22%);
}

.site-brand__mark span {
  display: block;
  width: 66%;
  height: 66%;
  background: var(--color-green);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.site-brand__text {
  color: var(--color-fog);
}

.site-brand__text span {
  color: var(--color-green);
}

.site-brand--bar .site-brand__mark {
  width: 1.7rem;
  height: 1.7rem;
}

.site-brand--bar .site-brand__text {
  font-size: 1.2rem;
}

.site-brand--footer {
  color: var(--color-fog);
}

.site-header__slogan {
  margin: 1rem 0 0;
  padding-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  border-left: 3px solid var(--color-green);
}

.site-nav {
  margin-top: 2rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(241, 250, 238, 0.16);
}

.site-nav__item {
  margin: 0;
  border-bottom: 1px solid rgba(241, 250, 238, 0.12);
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.5rem;
  color: rgba(241, 250, 238, 0.82);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.site-nav__link::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--color-green);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav__link:hover {
  background: var(--color-trans-red);
  color: #FFFFFF;
  padding-left: 0.9rem;
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  opacity: 1;
  transform: translateX(0);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-green);
  border-left: 4px solid var(--color-green);
  padding-left: 0.9rem;
}

.site-header__action {
  margin-top: auto;
  padding-top: 1.6rem;
}

.site-header__action .btn {
  width: 100%;
}

.site-nav-toggle {
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  background: transparent;
  border: 2px solid var(--color-fog);
  border-radius: 0;
  color: var(--color-fog);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.site-nav-toggle__label {
  display: inline-block;
}

.toggle-bars {
  width: 1.2rem;
  height: 0.85rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.toggle-bars__line {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--color-green);
  color: var(--color-night);
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transform: translateY(-400%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-footer {
  background: var(--color-night);
  color: var(--color-fog);
  border-top: 6px solid var(--color-red);
}

.site-footer__inner {
  width: min(100% - 3rem, var(--max-w));
  margin-inline: auto;
  padding-block: 3rem 1.5rem;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(241, 250, 238, 0.14);
}

.site-footer__brand .site-brand {
  margin-bottom: 1rem;
}

.site-footer__motto {
  max-width: 24rem;
  margin-bottom: 0;
  padding-left: 0.85rem;
  color: rgba(241, 250, 238, 0.72);
  font-size: 0.95rem;
  border-left: 3px solid var(--color-red);
}

.site-footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-green);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__link {
  display: inline-block;
  padding: 0.35rem 0;
  color: rgba(241, 250, 238, 0.78);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer__link:hover {
  color: var(--color-green);
  transform: translateX(3px);
}

.site-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-block: 0.35rem;
  color: rgba(241, 250, 238, 0.82);
  line-height: 1.5;
}

.site-footer__contact-label {
  flex: 0 0 auto;
  min-width: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue);
  text-transform: uppercase;
}

.site-footer__contact-value {
  word-break: break-all;
}

.site-footer__addr {
  font-style: normal;
  color: rgba(241, 250, 238, 0.82);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(241, 250, 238, 0.6);
}

.site-footer__copy,
.site-footer__icp {
  display: inline-block;
}

@media (max-width: 900px) {
  body {
    margin-left: 0;
    padding-top: var(--mobile-header-h);
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--mobile-header-h);
    display: block;
    border-right: 0;
    border-bottom: 3px solid var(--color-red);
    box-shadow: none;
  }

  .site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--mobile-header-h);
    padding: 0 1rem;
    background: var(--color-navy);
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__sidebar {
    position: fixed;
    top: var(--mobile-header-h);
    left: 0;
    bottom: 0;
    width: min(20rem, 85vw);
    z-index: 80;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1rem 1.6rem;
    background: var(--color-navy);
    border-right: 3px solid var(--color-green);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.45);
    transform: translateX(-110%);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }

  .site-header[data-open] .site-header__sidebar {
    transform: translateX(0);
  }

  .site-header[data-open] .toggle-bars__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header[data-open] .toggle-bars__line:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-open] .toggle-bars__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .site-container {
    width: calc(100% - 2rem);
  }

  .site-nav-toggle__label {
    font-size: 0.82rem;
  }
}

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

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