:root {
  --navy: #0e2440;
  --navy-deep: #081628;
  --ink: #152536;
  --muted: #5d6d80;
  --line: #d7e0ea;
  --paper: #f5f8fb;
  --white: #ffffff;
  --accent: #148f78;
  --accent-strong: #0f6f5d;
  --mint: #2ed3b0;
  --shadow: 0 18px 40px rgba(14, 36, 64, 0.08);
  --radius: 18px;
  --header-h: 72px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: rgba(245, 248, 251, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(14, 36, 64, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: absolute;
  left: 11px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  background: rgba(14, 36, 64, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 88% 12%, rgba(46, 211, 176, 0.22), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(20, 143, 120, 0.16), transparent 32%),
    linear-gradient(180deg, #edf4f8 0%, #f5f8fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--mint);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 28px;
  max-width: 42em;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: #163357;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.btn:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.back-top:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.hero-panel {
  min-height: 320px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--navy) 0%, #163357 58%, #0f6f5d 130%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-panel p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.stat-list {
  display: grid;
  gap: 14px;
}

.stat-list div {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-list strong {
  display: block;
  font-size: 15px;
}

.stat-list span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-copy,
.contact-card,
.note-card {
  padding: 28px;
}

.about-copy p + p {
  margin-top: 14px;
}

.note-card {
  background: var(--navy);
  color: #fff;
  border: 0;
}

.note-card h3,
.contact-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.note-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 24px;
}

.icon-box {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f7f3;
  color: var(--accent-strong);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.process {
  background: #fff;
  border-block: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.process-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-list h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reason-card {
  padding: 24px;
}

.reason-card h3 {
  margin: 0 0 8px;
}

.reason-card p {
  margin: 0;
  color: var(--muted);
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info-list span {
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  color: #9be7d6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
    z-index: 49;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    display: block;
    padding: 8px 16px 16px;
  }

  .site-nav a {
    padding: 14px 8px;
    border-radius: 10px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-panel,
  .about-copy,
  .contact-card,
  .note-card,
  .service-card,
  .reason-card {
    padding: 20px;
  }

  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .info-list li {
    flex-direction: column;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-name {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
