/* =========================
   Tokens
========================= */
:root {
  --ink: #06204e;          /* Nanwa navy */
  --ink-2: #0e2c63;
  --ink-deep: #051634;     /* deeper navy for backgrounds */
  --charcoal: #3a3a3a;     /* Partners charcoal */
  --paper: #fafaf7;
  --paper-2: #f1f0eb;
  --line: #e3e3df;
  --muted: #6b6f78;
  --muted-2: #c7c7c7;
  --white: #ffffff;
  --accent: #a89048;       /* logo gold */
  --accent-2: #c9a866;
  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: min(1240px, calc(100% - 48px));
  --header-h: 78px;
}

/* =========================
   Base
========================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", "YuGothic", "Yu Gothic Medium", "Yu Gothic", "游ゴシック Medium", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "palt" 1;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

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

button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

.container { width: var(--container); margin: 0 auto; }

/* English numerals & labels use Jost (matches acesinc.co.jp) */
.eyebrow,
.num,
.stat-num,
.srv-num,
.step,
.brand strong,
.brand-mark,
.loader-en,
.foot-brand,
.label span:last-child,
.hero-meta-en,
.hero-scroll span:first-child,
.contact-mail-en,
.marquee span:not(.dot-sep) {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
}

/* =========================
   Reveal animations
========================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--easing), transform 900ms var(--easing);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal-line] {
  display: block;
  overflow: hidden;
  position: relative;
}
[data-reveal-line]::before {
  content: attr(data-text);
}
[data-reveal-line] {
  transform: translateY(110%);
  transition: transform 1100ms var(--easing);
  will-change: transform;
}
[data-reveal-line].is-in { transform: none; }

/* Stagger via nth-child */
.about-stats li[data-reveal].is-in { transition-delay: 0ms; }
.about-stats li[data-reveal]:nth-child(2) { transition-delay: 90ms; }
.about-stats li[data-reveal]:nth-child(3) { transition-delay: 180ms; }

.sectors-list li[data-reveal]:nth-child(1) { transition-delay: 0ms; }
.sectors-list li[data-reveal]:nth-child(2) { transition-delay: 60ms; }
.sectors-list li[data-reveal]:nth-child(3) { transition-delay: 120ms; }
.sectors-list li[data-reveal]:nth-child(4) { transition-delay: 180ms; }
.sectors-list li[data-reveal]:nth-child(5) { transition-delay: 240ms; }
.sectors-list li[data-reveal]:nth-child(6) { transition-delay: 300ms; }

.service-list li[data-reveal]:nth-child(n+2) { transition-delay: calc((var(--i, 0)) * 60ms); }

/* =========================
   Loader
========================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity 500ms var(--easing), visibility 500ms var(--easing);
}
.loader.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.loader-logo {
  height: clamp(30px, 4vw, 44px);
  width: auto;
  display: block;
  opacity: 0;
  transform: translateY(-6px);
  animation: loaderLogoFade 720ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}
@keyframes loaderLogoFade {
  to { opacity: 1; transform: translateY(0); }
}
.loader-tag {
  margin: 0;
  font-size: clamp(20px, 3.6vw, 42px);
  font-weight: 900;
  letter-spacing: -0.005em;
  line-height: 1.18;
  color: var(--ink);
  text-align: center;
}
.loader-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.04em 0.18em;
}
.loader-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: loaderReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}
@keyframes loaderReveal {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
.loader.is-gone .loader-line > span,
.loader.is-gone .loader-logo {
  animation: none;
}
.loader-bar {
  display: block;
  width: 220px;
  height: 1px;
  background: rgba(6, 32, 78, 0.18);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  animation: loaderFill 1200ms cubic-bezier(0.65, 0, 0.35, 1) 200ms forwards;
}
@keyframes loaderFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* =========================
   Cursor follower
========================= */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: difference;
  transition: width 220ms var(--easing), height 220ms var(--easing), margin 220ms var(--easing), background 220ms var(--easing);
}
.cursor-dot.is-hover {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: var(--accent);
}

/* =========================
   Header
========================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--paper);
  transition: transform 500ms var(--easing), background 400ms ease, color 400ms ease, border-color 400ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  transition: opacity 400ms ease;
}
.brand-logo-dark { position: absolute; top: 0; left: 0; opacity: 0; }
.site-header.is-scrolled .brand-logo-light { opacity: 0; }
.site-header.is-scrolled .brand-logo-dark { opacity: 1; position: relative; }
.site-header.is-scrolled .brand-logo-light { position: absolute; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
  font-size: 13px;
  font-weight: 500;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  letter-spacing: 0.06em;
  transition: opacity 300ms ease;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 400ms var(--easing);
}
.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav .num {
  font-size: 10px;
  opacity: 0.55;
}
.nav-cta {
  border: 1px solid currentColor;
  padding: 10px 18px !important;
  border-radius: 999px;
  transition: background 300ms ease, color 300ms ease;
}
.nav-cta:hover {
  background: currentColor;
  color: var(--paper);
}
.site-header.is-scrolled .nav-cta:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: currentColor;
  transition: transform 300ms var(--easing), top 300ms var(--easing);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* =========================
   Mobile nav
========================= */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--header-h) + 32px) 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 400ms var(--easing), transform 500ms var(--easing), visibility 0s linear 400ms;
}
body.nav-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 400ms var(--easing), transform 500ms var(--easing), visibility 0s linear 0s;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.mobile-nav li a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 22px;
  font-weight: 700;
}
.mobile-nav li a span {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.55;
  letter-spacing: 0.18em;
}
.mobile-cta {
  margin-top: auto;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 18px;
  text-align: center;
  border-radius: 999px;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  min-height: clamp(620px, 82vh, 880px);
  color: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(110px, 12vh, 140px) clamp(20px, 5vw, 80px) clamp(72px, 8vh, 110px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: opacity 1.6s ease;
  will-change: transform;
  display: block;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.32) 40%, rgba(10, 10, 10, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.65) 0%, rgba(10, 10, 10, 0.1) 60%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.85);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.hero-title {
  margin: 0 0 28px;
  font-size: clamp(38px, 6.4vw, 88px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > * { display: block; }
.hero-title [data-reveal-line] {
  transition-delay: 200ms;
}
.hero-title [data-reveal-line]:nth-child(2) {
  transition-delay: 380ms;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 36px;
  font-size: clamp(14.5px, 1.3vw, 16px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.84);
  transition-delay: 700ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  transition-delay: 820ms;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 300ms ease, color 300ms ease, transform 300ms var(--easing), border-color 300ms ease;
  position: relative;
  overflow: hidden;
}
.btn em {
  font-style: normal;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  transition: transform 300ms var(--easing);
}
.btn:hover em { transform: translateX(4px); }
.btn.primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn.primary:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.btn.ghost {
  color: var(--paper);
  background: transparent;
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-meta {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(28px, 4vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
  color: rgba(255, 255, 255, 0.78);
}
.hero-meta-en {
  font-size: 11px;
  letter-spacing: 0.34em;
}
.hero-meta-jp {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.16em;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 5vw, 64px);
  bottom: clamp(28px, 4vh, 56px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.7);
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: top;
  animation: scrollLine 1.8s var(--easing) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================
   Marquee
========================= */
.marquee {
  background: var(--ink-deep);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  border-block: 1px solid var(--ink-deep);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  padding-left: 36px;
}
.marquee-track span {
  font-size: 18px;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.marquee-track .dot-sep {
  font-size: 8px;
  color: var(--accent);
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================
   Section heads
========================= */
.section-head {
  margin-bottom: clamp(40px, 6vw, 80px);
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.label .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  width: 32px; height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.label.light { color: var(--paper); }

.section-title {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 72px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.section-desc {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}
.section-desc.light { color: rgba(255, 255, 255, 0.72); }

/* =========================
   About
========================= */
.about {
  padding: clamp(96px, 12vw, 180px) 0 clamp(96px, 12vw, 180px);
}
.about .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
}
.about-body p {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2.05;
}
.about-stats {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.about-stats li {
  display: grid;
  gap: 6px;
}
.stat-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-en {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 500;
}
.stat-jp {
  font-size: 13px;
  color: var(--muted);
}

/* About tags (V4: short labels replacing big-stat block) */
.about-tags {
  list-style: none;
  margin: 44px 0 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.about-tags li {
  padding: 8px 16px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  line-height: 1;
  font-weight: 600;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.about-tags li:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* About background block (V4: short Background paragraph) */
.about-background {
  margin: 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  display: block;
}
.about-background .bg-label {
  margin: 0 0 14px;
}
.bg-label {
  margin: 4px 0 0;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}
.bg-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}
.bg-body p {
  margin: 0 0 12px;
}
.bg-body p:last-child {
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .about-tags {
    gap: 8px;
  }
}

/* =========================
   Why
========================= */
.why {
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-list li {
  position: relative;
  padding: 36px 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 400ms var(--easing), border-color 400ms ease, box-shadow 400ms ease;
}
.why-list li:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 48px rgba(6, 32, 78, 0.10);
}
.why-num {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.why-list h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.why-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
}

/* =========================
   Service
========================= */
.service {
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--paper-2);
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service-list li {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(240px, 30%) minmax(0, 1fr) 32px;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  transition: background 400ms var(--easing), padding 400ms var(--easing);
}

.srv-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.srv-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transform: scale(1.0);
  transform-origin: 50% 50%;
  transition: transform 700ms var(--easing), filter 700ms var(--easing);
}

.service-list li:hover .srv-media img {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--easing);
}
.service-list li:hover {
  background: var(--paper);
  padding-inline: 24px;
}
.service-list li:hover::before { transform: scaleX(1); }
.srv-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.srv-body h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.srv-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
  max-width: 680px;
}
.srv-cases {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: block;
  max-width: 640px;
}
.srv-cases li {
  display: block;
  width: 100%;
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.7;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.srv-cases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.srv-arrow {
  justify-self: end;
  align-self: center;
  font-size: 22px;
  color: var(--ink);
  opacity: 0.78;
  transition: transform 400ms var(--easing), opacity 400ms ease, color 400ms ease;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.service-list li:hover .srv-arrow {
  transform: translateX(4px);
  opacity: 1;
  color: var(--accent);
}

/* =========================
   Sectors
========================= */
.sectors {
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--ink-deep);
  color: var(--paper);
}
.sectors-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.sectors-list li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 500;
  transition: padding 360ms var(--easing), color 360ms ease;
}
.sectors-list li span {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted-2);
  font-weight: 500;
}
.sectors-list li:hover {
  color: var(--accent);
}

/* =========================
   Process
========================= */
.process {
  padding: clamp(96px, 12vw, 160px) 0;
}
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-list li {
  position: relative;
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 400ms var(--easing), border-color 400ms ease;
}
.process-list li:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}
.process-list .step {
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 500;
}
.process-list h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}
.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

/* =========================
   Profile
========================= */
.profile {
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--paper-2);
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.profile-lead {
  margin: 0;
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink-2);
}
.profile dl {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.profile dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.profile dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.profile dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
}

/* =========================
   Contact
========================= */
.contact {
  padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 14vw, 200px);
  background: var(--ink-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.contact::after {
  content: "CONTACT";
  position: absolute;
  bottom: -3vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(120px, 22vw, 320px);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  white-space: nowrap;
  line-height: 0.9;
}
.contact .container {
  position: relative;
  z-index: 1;
}
.contact-title {
  margin: 0 0 28px;
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.contact-title.contact-title-sm {
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.contact-lead {
  max-width: 640px;
  margin: 0 0 56px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 2;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 720px;
  transition: padding 400ms var(--easing);
}
.contact-mail:hover {
  padding-inline: 12px;
}
.contact-mail-en {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.6);
  min-width: 80px;
}
.contact-mail-addr {
  flex: 1;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contact-mail-arrow {
  font-size: 24px;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--accent);
  transition: transform 400ms var(--easing);
}
.contact-mail:hover .contact-mail-arrow {
  transform: translateX(8px);
}

/* =========================
   Footer
========================= */
.site-footer {
  padding: 56px 0 36px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.foot-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.foot-logo {
  display: block;
  height: 26px;
  width: auto;
}
.foot-jp {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.foot-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.6vw, 22px);
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  justify-self: center;
  white-space: nowrap;
}
.foot-nav a:hover { color: var(--accent); }
.foot-meta {
  margin: 0;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  justify-self: end;
  white-space: nowrap;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: inline-block; color: inherit; }
  .about .container,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .process-list,
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body { line-height: 1.85; }
  .hero {
    padding-bottom: 120px;
    padding-inline: 22px;
  }
  .hero-title { font-size: clamp(36px, 11vw, 64px); }
  .hero-lead { font-size: 14.5px; }
  .hero-meta { display: none; }
  .hero-scroll { left: 22px; }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .about-stats li {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }
  .about-stats li:last-child { border-bottom: none; }

  .service-list li {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px 16px;
    padding: 34px 0;
  }
  .service-list li:hover { padding-inline: 0; }
  .srv-num { order: 1; }
  .srv-body { order: 1; grid-column: 2; }
  .srv-media {
    order: 2;
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .srv-media img {
    aspect-ratio: 4 / 3;
    transform: scale(1.0);
  }
  .srv-cases {
    grid-template-columns: 1fr;
    max-width: none;
    margin-top: 16px;
  }
  .srv-arrow { display: none; }

  .sectors-list li {
    padding: 24px 8px;
    gap: 18px;
  }

  .process-list,
  .why-list {
    grid-template-columns: 1fr;
  }
  .srv-cases {
    grid-template-columns: 1fr;
  }

  .profile dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .foot-nav {
    flex-wrap: wrap;
    justify-self: start;
  }
  .foot-meta { justify-self: start; }

  .marquee-track span { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-line] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}
