:root {
  color-scheme: light;
  --ink: #20262d;
  --ink-soft: #4e5964;
  --muted: #727c86;
  --line: #e3e7ea;
  --line-strong: #d4d9dd;
  --surface: #ffffff;
  --surface-soft: #f5f6f7;
  --surface-deep: #262d34;
  --accent: #c9212f;
  --accent-dark: #a91825;
  --accent-soft: #fbeaec;
  --radius: 18px;
  --shadow: 0 20px 60px rgb(32 38 45 / 8%);
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-deep);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgb(227 231 234 / 88%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.company-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.company-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.company-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.hero {
  padding: clamp(84px, 10vw, 132px) 0 clamp(76px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(50px, 8vw, 112px);
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 6.3vw, 76px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.hero-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  border-color: var(--surface-deep);
  background: var(--surface-deep);
  color: #ffffff;
}

.button-primary:hover {
  border-color: #151a1f;
  background: #151a1f;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.scope-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.scope-item {
  display: grid;
  min-height: 126px;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr;
}

.scope-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.scope-item h2 {
  margin: 0 0 3px;
  font-size: 17px;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.scope-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-note {
  margin: 0;
  padding: 18px 24px 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: clamp(78px, 9vw, 112px) 0;
}

.section-soft {
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
}

.section-heading {
  display: grid;
  align-items: end;
  gap: 50px;
  margin-bottom: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
}

.section-heading h2,
.about-grid h2,
.jpass-copy h2,
.contact-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 56px rgb(32 38 45 / 7%);
}

.service-index {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-card h3 {
  max-width: 430px;
  margin: 0 0 20px;
  font-size: clamp(23px, 2.8vw, 31px);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.service-tag {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.jpass-grid {
  display: grid;
  align-items: center;
  gap: clamp(48px, 9vw, 120px);
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.jpass-brand {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.jpass-logo {
  width: min(100%, 330px);
  height: auto;
  margin: 32px 0 25px;
}

.jpass-role {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.jpass-copy h2 {
  max-width: 650px;
}

.jpass-copy > p {
  max-width: 670px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.about-grid {
  display: grid;
  gap: clamp(50px, 10vw, 130px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.about-copy {
  padding-top: 4px;
}

.about-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 2;
}

.about-copy p + p {
  margin-top: 18px;
}

.contact-section {
  padding-top: 0;
}

.contact-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-deep);
  color: #ffffff;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.contact-heading {
  padding: clamp(36px, 5vw, 58px);
  border-right: 1px solid rgb(255 255 255 / 12%);
}

.contact-heading .eyebrow {
  color: #ff6874;
}

.contact-heading p:last-child {
  margin: 18px 0 0;
  color: #bfc5ca;
}

.contact-list {
  margin: 0;
  padding: clamp(24px, 4vw, 42px) clamp(30px, 5vw, 58px);
}

.contact-list > div {
  display: grid;
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  grid-template-columns: 100px 1fr;
}

.contact-list > div:last-child {
  border-bottom: 0;
}

.contact-list dt {
  color: #aeb5bb;
  font-size: 13px;
}

.contact-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.contact-list a {
  color: #ffffff;
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.footer-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

a:focus-visible {
  outline: 3px solid rgb(201 33 47 / 38%);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-grid,
  .section-heading,
  .jpass-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 58px;
  }

  .scope-panel {
    max-width: 620px;
  }

  .section-heading {
    gap: 18px;
  }

  .about-grid {
    gap: 36px;
  }

  .contact-heading {
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0 0;
  }

  .company-lockup {
    width: 100%;
    padding-bottom: 10px;
  }

  .company-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .company-name {
    font-size: 14px;
  }

  .site-nav {
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding-inline: 10px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero {
    padding: 68px 0 72px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 56px);
    letter-spacing: -0.055em;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    margin-top: 30px;
  }

  .button {
    width: 100%;
  }

  .scope-item {
    min-height: 110px;
    padding: 22px 19px;
  }

  .panel-label,
  .panel-note {
    padding-inline: 19px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .about-grid h2,
  .jpass-copy h2,
  .contact-heading h2 {
    font-size: 34px;
  }

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

  .service-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .service-card h3 {
    font-size: 25px;
  }

  .jpass-brand {
    padding: 28px 24px;
  }

  .jpass-logo {
    margin-top: 26px;
  }

  .about-copy p {
    font-size: 17px;
  }

  .contact-section {
    padding-top: 0;
  }

  .contact-list {
    padding: 18px 24px 26px;
  }

  .contact-list > div {
    gap: 6px;
    padding: 18px 0;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: 94px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
  }
}

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