:root {
  --white: #ffffff;
  --bg: #0a1628;
  --bg-soft: #12233f;
  --ink: #f4f7fc;
  --ink-2: #d5deeb;
  --muted: #8fa0b8;
  --blue: #3d8bff;
  --blue-deep: #0066ff;
  --blue-soft: #7eb6ff;
  --blue-glow: #7eb6ff;
  --navy: #06101c;
  --navy-2: #12233f;
  --line: #2c4566;
  --line-soft: #1a2d47;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --border-w: 1px;
  --header-h: 4.25rem;
  --content-pad: max(1.25rem, 5vw, calc((100vw - 1120px) / 2));
  --content-width: min(1120px, calc(100% - 2 * var(--content-pad)));
  --space-section: 0.875rem;
  --space-section-sm: 0.875rem;
  --space-head: 2.5rem;
  --space-card: 1.25rem;
  --space-card-sm: 1rem;
  --space-gap: 1rem;
  --type-h1: clamp(2rem, 4.2vw, 3rem);
  --type-h2: clamp(1.625rem, 3.2vw, 2.5rem);
  --type-h3: 1.125rem;
  --type-body: 1rem;
  --type-eyebrow: 0.8125rem;
  --type-btn: 0.9375rem;
  --type-small: 0.75rem;
  --btn-h: 3rem;
  --btn-px: 1.375rem;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}
a { color: inherit; }
.nowrap { white-space: nowrap; }
main {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}
main > * {
  min-width: 0;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-height: var(--header-h);
  padding: 0 var(--content-pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: var(--border-w) solid var(--line-soft);
  backdrop-filter: blur(1rem);
}
.brand {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  gap: 1.625rem;
  font-size: 0.875rem;
  font-weight: 700;
}
.nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }

.hero-grid {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 4rem;
  align-items: start;
  padding: var(--space-section) 0;
}
.eyebrow {
  margin: 0 0 var(--space-section);
  color: var(--blue);
  font-size: var(--type-eyebrow);
  font-weight: 700;
  letter-spacing: .04em;
}
h1 {
  margin: 0;
  color: var(--ink);
  font-size: var(--type-h1);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.4;
}
h1 .mark { color: var(--blue); white-space: nowrap; }
.hero-lead {
  margin: 1.375rem 0 0;
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: 500;
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--type-btn);
  font-weight: 700;
  color: var(--white);
  background: var(--blue-deep);
  transition: background .15s ease;
}
.button:hover { background: var(--blue); }

.hero-support .section-head h2 {
  max-width: none;
}
.flow {
  margin: 0;
  padding: 0.5rem 0 0.5rem 1.75rem;
  list-style: none;
  border-left: var(--border-w) solid var(--line);
}
.flow li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.875rem;
  align-items: start;
}
.flow li + li { margin-top: 1.375rem; }
.flow span {
  color: var(--blue);
  font-size: var(--type-eyebrow);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.6;
}
.flow strong {
  display: block;
  color: var(--ink);
  font-size: var(--type-h3);
  font-weight: 800;
}
.flow p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.section {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-section) 0;
}
.section-head {
  margin-bottom: var(--space-head);
}
.section-head h2,
.profile h2 {
  margin: 0;
  max-width: 100%;
  color: var(--ink);
  font-size: var(--type-h2);
  line-height: 1.4;
  font-weight: 900;
  text-wrap: pretty;
  overflow-wrap: normal;
}
.section-head > p:last-child {
  color: var(--muted);
  margin-top: 0.75rem;
}

.cards {
  display: grid;
  gap: var(--space-gap);
}
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  min-width: 0;
  padding: var(--space-card);
  border: var(--border-w) solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.card h3,
.work h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: var(--type-h3);
}
.card .icon + h3,
.work .work-tag + h3 {
  margin-top: 0.625rem;
}
.card p,
.work p {
  margin: 0;
  color: var(--muted);
  line-break: strict;
  overflow-wrap: anywhere;
}
.icon {
  color: var(--blue);
  font-size: var(--type-eyebrow);
  font-weight: 800;
}
.problem,
.strengths,
.examples,
.works,
.products,
.contact {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.problem .section-head,
.problem .cards,
.strengths .section-head,
.strengths .cards,
.examples .section-head,
.examples .chips,
.works .section-head,
.works .work-grid,
.products .section-head,
.products .cards,
.contact .contact-inner {
  width: var(--content-width);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.contact-inner {
  display: flex;
  flex-direction: column;
}
.contact .section-head { margin-bottom: 0; }
.contact .section-head h2 {
  max-width: none;
  overflow-wrap: normal;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.chips span {
  max-width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  color: var(--ink-2);
  background: var(--bg-soft);
  border: var(--border-w) solid var(--line-soft);
  font-size: 0.875rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.works .work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-gap);
}
.work {
  min-width: 0;
  padding: var(--space-card);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: var(--border-w) solid var(--line-soft);
}
.work-tag {
  color: var(--blue);
  font-size: var(--type-small);
  font-weight: 800;
  letter-spacing: .04em;
}
.product a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.product-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.product-top h3 { margin: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.625rem;
  padding: 0 0.625rem;
  border-radius: var(--radius);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue-deep) 18%, var(--bg-soft));
  font-size: var(--type-small);
  font-weight: 800;
}
.contact-row,
.profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-gap);
  align-items: end;
}
.contact-row p,
.profile-row p {
  margin: 0.75rem 0 0.5rem;
  min-width: 0;
  color: var(--muted);
  line-break: strict;
  overflow-wrap: anywhere;
}
.contact-row .button,
.profile-row .button {
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .nav {
    gap: 0.75rem;
    font-size: 0.8125rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .cards.three,
  .cards.two,
  .works .work-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 3.625rem; }
  .site-header {
    min-height: 3.625rem;
    flex-wrap: wrap;
  }
  .nav {
    gap: 0.625rem;
    font-size: 0.75rem;
  }
  h1 { font-size: 1.75rem; }
  .hero-lead { font-size: 0.9375rem; }
  .pc-only { display: none; }
  .section { padding: var(--space-section-sm) 0; }
  .card, .work { padding: var(--space-card-sm); }
  .contact-row,
  .profile-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-gap);
  }
  .contact-row .button,
  .profile-row .button {
    width: 100%;
    justify-self: stretch;
  }
}
