:root {
  --ink: #0a0a0a;
  --ink-soft: #3e3e3e;
  --muted: #777;
  --line: #dedede;
  --line-soft: #eeeeee;
  --paper: #ffffff;
  --paper-soft: #f7f7f5;
  --accent: #ff4b12;
  --accent-dark: #d63a08;
  --shadow: 0 22px 60px rgba(0, 0, 0, .08);
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  font-feature-settings: "palt";
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 32px), 1240px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .06);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: height .25s var(--ease), box-shadow .25s var(--ease), top .25s var(--ease);
}

.site-header.is-scrolled {
  top: 10px;
  height: 62px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.02em;
}

.brand img {
  width: 44px;
  height: auto;
  object-fit: contain;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.global-nav a {
  position: relative;
  padding: 8px 0;
}

.global-nav a::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}

.global-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav a:last-child {
  padding: 15px 20px;
  color: #fff;
  background: var(--ink);
}

.global-nav a:last-child::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .25s var(--ease);
}

.hero {
  position: relative;
  min-height: 790px;
  padding: 190px 24px 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 10, 10, .035) 1px, transparent 1px),
    linear-gradient(rgba(10, 10, 10, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 84px 84px;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.2) 15%, rgba(255,255,255,0) 40%),
    radial-gradient(circle at 82% 28%, rgba(255, 75, 18, .08), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0) 62%, #fff 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(52px, 7.5vw, 112px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.keep-line {
  white-space: nowrap;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

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

.button-primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(255, 75, 18, .22);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255,255,255,.78);
}

.scroll-hint {
  position: absolute;
  right: 32px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}

.scroll-hint::before {
  width: 1px;
  height: 66px;
  content: "";
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 1.9s infinite var(--ease);
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  46% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.section {
  padding: 112px 24px;
}

.section-narrow {
  width: min(calc(100% - 48px), var(--max));
  margin-right: auto;
  margin-left: auto;
}

.metrics {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -72px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.metric-card + .metric-card {
  border-left: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.04em;
}

.metric-card strong span {
  margin-left: 6px;
  font-size: 18px;
  letter-spacing: 0;
}

.metric-card .metric-text {
  font-size: clamp(32px, 4vw, 44px);
  line-height: .92;
}

.metric-card p {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
}

.metric-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.intro {
  padding-top: 112px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 70px;
  align-items: start;
}

.split h2,
.section-title,
.case-head h2,
.contact-copy h2,
.quality h2 {
  margin-bottom: 22px;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.lead-stack p,
.section-copy,
.case-head p,
.quality-copy p,
.contact-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
}

.lead-stack p + p {
  margin-top: 22px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item {
  min-height: 310px;
  padding: 34px 24px 28px;
  border-right: 1px solid var(--line);
}

.service-item:first-child {
  border-left: 1px solid var(--line);
}

.service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 900;
}

.service-item p {
  min-height: 78px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
}

.service-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.service-item a::after {
  content: "→";
  color: var(--accent);
  font-size: 14px;
}

.approach {
  background: linear-gradient(180deg, #fff, var(--paper-soft));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.approach-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-copy {
  max-width: 650px;
  margin-bottom: 50px;
}

.system-diagram {
  position: relative;
  width: min(100%, 760px);
  min-height: 330px;
}

.system-diagram svg {
  width: min(100%, 520px);
  margin: 0 auto;
}

.diagram-grid {
  fill: none;
  stroke: #d8d8d8;
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.diagram-ring,
.diagram-ring-2,
.diagram-axis {
  fill: none;
  stroke: url(#ring);
  stroke-width: 1.5;
}

.diagram-ring {
  stroke-dasharray: 420;
  animation: drawRing 5.5s infinite var(--ease);
}

.diagram-axis {
  stroke: #a7a7a7;
  stroke-dasharray: 7 8;
}

.diagram-node {
  fill: var(--ink);
}

@keyframes drawRing {
  0% { stroke-dashoffset: 420; opacity: .4; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -420; opacity: .4; }
}

.diagram-label {
  position: absolute;
  top: 50%;
  display: grid;
  gap: 6px;
  transform: translateY(-50%);
  text-align: left;
}

.label-left {
  left: 0;
}

.label-right {
  right: 0;
}

.diagram-label strong {
  font-size: 22px;
  font-weight: 900;
}

.diagram-label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.case-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.case-head h2 {
  margin-bottom: 0;
}

.case-head p {
  max-width: 420px;
  margin-bottom: 8px;
}

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

.case-card {
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
}

.case-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}

.case-card h3 {
  margin-bottom: 28px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.45;
}

.case-number {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.case-number span {
  margin-left: 6px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

.case-card p:last-child {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
}

.process {
  padding-top: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 260px;
  padding: 28px 22px;
}

.process-list li + li {
  border-left: 1px solid var(--line);
}

.process-list span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.process-list strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.process-list p {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
}

.quality {
  background: var(--ink);
  color: #fff;
}

.quality-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}

.quality .section-kicker,
.quality-copy p {
  color: #bdbdbd;
}

.quality-copy ul {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.quality-copy li {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-weight: 800;
}

.company-table {
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.company-table div {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.company-table dt,
.company-table dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 22px 0;
}

.company-table dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.company-table dd {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.contact {
  padding-bottom: 130px;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, .035) 1px, transparent 1px),
    linear-gradient(rgba(10, 10, 10, .035) 1px, transparent 1px),
    var(--paper-soft);
  background-size: 72px 72px;
}

.contact-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  font-size: clamp(32px, 4vw, 50px);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.site-footer {
  padding: 42px 24px;
  color: #fff;
  background: var(--ink);
}

.footer-inner {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  margin: 0 auto;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-brand img {
  width: 36px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
  color: #a5a5a5;
  font-size: 12px;
  font-weight: 700;
}

.legal-page {
  padding: 150px 24px 100px;
  background: var(--paper);
}

.legal-content {
  max-width: 860px;
}

.legal-content h1 {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.18;
}

.legal-content h2 {
  margin: 46px 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.legal-content ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.legal-company {
  margin-top: 46px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.legal-company p {
  margin-bottom: 0;
}

.legal-company a {
  color: var(--accent);
  font-weight: 900;
}

.legal-date {
  margin-top: 28px;
  text-align: right;
}

.response-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, .035) 1px, transparent 1px),
    linear-gradient(rgba(10, 10, 10, .035) 1px, transparent 1px),
    var(--paper-soft);
  background-size: 72px 72px;
}

.response-card {
  width: min(100%, 680px);
  padding: 42px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.response-card .brand {
  margin-bottom: 42px;
}

.response-card h1 {
  margin-bottom: 20px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.22;
}

.response-card p,
.response-card li {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
}

.response-card ul {
  margin: 0 0 26px;
  padding-left: 1.2em;
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    height: 64px;
  }

  .brand {
    font-size: 22px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    inset: 0 -16px auto auto;
    width: min(360px, calc(100vw - 32px));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 22px 22px;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px rgba(0,0,0,.08);
    transform: translateX(105%);
    transition: transform .32s var(--ease);
  }

  .nav-open .global-nav {
    transform: translateX(0);
  }

  .global-nav a {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .global-nav a:last-child {
    margin-top: 18px;
    padding: 18px 20px;
    text-align: center;
  }

  .privacy-nav {
    position: static;
    width: auto;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-left: 0;
    box-shadow: none;
    transform: none;
  }

  .privacy-nav a {
    display: none;
  }

  .privacy-nav a:last-child {
    display: block;
    margin-top: 0;
    padding: 14px 16px;
    border-bottom: 0;
    font-size: 12px;
  }

  .hero {
    min-height: 730px;
    padding-top: 160px;
  }

  .metrics,
  .split,
  .case-grid,
  .quality-inner,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .service-item:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-list li {
    min-height: auto;
  }

  .case-head {
    display: block;
  }

  .diagram-label {
    position: static;
    transform: none;
    text-align: center;
  }

  .system-diagram {
    display: grid;
    gap: 10px;
  }

  .label-left {
    order: 1;
  }

  .label-right {
    order: 3;
  }

  .system-diagram svg {
    order: 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section,
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section-narrow {
    width: min(calc(100% - 36px), var(--max));
  }

  h1 {
    font-size: clamp(31px, 9.8vw, 58px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr;
    margin-top: -42px;
  }

  .metric-card {
    min-height: 138px;
  }

  .metric-card + .metric-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .service-item,
  .service-item:first-child,
  .service-item:nth-child(odd) {
    min-height: auto;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .service-item + .service-item {
    border-top: 1px solid var(--line);
  }

  .company-table div {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .company-table dt,
  .company-table dd {
    padding: 4px 0;
  }

  .contact-panel {
    padding: 26px;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 12px;
  }

  .legal-page {
    padding-top: 118px;
  }

  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
