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

:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e0e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --blue: #1457d9;
  --cyan: #14b8c8;
  --green: #15a36d;
  --amber: #f2a51a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
  color: var(--cyan);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(22px, 6vw, 88px) 58px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  filter: saturate(0.95) contrast(1.04);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 19, 40, 0.88), rgba(8, 19, 40, 0.56) 48%, rgba(8, 19, 40, 0.22)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.hero-copy {
  width: min(680px, 100%);
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(20, 87, 217, 0.26);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(780px, 100%);
  margin-top: 72px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-panel div {
  padding: 22px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-panel strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(22px, 6vw, 88px);
}

.intro {
  background: var(--white);
}

.intro-grid,
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.intro p,
.section-head p {
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.service-card,
.case-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.07);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.card-number {
  margin-bottom: auto;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.service-card p,
.case-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 720px;
  background: #0f172a;
  color: var(--white);
}

.split-image {
  min-height: 420px;
}

.split-content {
  display: grid;
  align-content: center;
  padding: clamp(56px, 7vw, 96px);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.steps span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--amber);
  font-weight: 850;
}

.steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.steps p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  min-height: 250px;
}

.case-tag {
  display: inline-flex;
  margin-bottom: 34px;
  padding: 5px 10px;
  color: #075985;
  background: #e0f7fb;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 70px);
  padding: clamp(72px, 9vw, 128px) clamp(22px, 6vw, 88px);
  background:
    linear-gradient(135deg, rgba(20, 87, 217, 0.92), rgba(20, 184, 200, 0.86)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1600&q=85") center/cover;
  color: var(--white);
}

.cta .section-label {
  color: #c7fbff;
}

.cta p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(22px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.72);
  background: #0b1220;
}

.footer div {
  color: var(--white);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px;
  }

  .menu-button {
    display: block;
  }

  .intro-grid,
  .section-head,
  .split-section,
  .cta {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 70px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-panel,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .service-card,
  .case-card {
    min-height: auto;
  }

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