/* =====================================================================
   合同会社Wolves — "MIDNIGHT PACK" design system
   ===================================================================== */
:root {
  --bg: #06080d;
  --bg-2: #0a0e15;
  --bg-3: #0f141d;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #e9edf3;
  --muted: #9aa5b6;
  --dim: #6a7382;
  --accent: #6fd3ff;
  --accent-2: #3d8bff;
  --accent-ink: #06121c;
  --danger: #ff7b7b;
  --glow: 0 0 0 1px rgba(111, 211, 255, 0.28), 0 24px 70px -24px rgba(111, 211, 255, 0.45);
  --font-display: 'Bebas Neue', 'Noto Sans JP', Impact, sans-serif;
  --font-sans: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-feature-settings: 'palt';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(111, 211, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), 1400px); }
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 16px; letter-spacing: 0.32em; color: var(--accent); line-height: 1;
}
.eyebrow .num { color: var(--text); }
.eyebrow::after { content: ''; width: 48px; height: 1px; background: var(--line-2); }
.h2 { font-size: clamp(30px, 4.4vw, 58px); font-weight: 900; line-height: 1.22; letter-spacing: 0.02em; margin-top: 20px; }
.h2 .en { display: block; font-family: var(--font-display); font-weight: 400; font-size: 0.5em; letter-spacing: 0.16em; color: var(--dim); margin-top: 0.6em; line-height: 1; }
.lead { color: var(--muted); font-size: clamp(15px, 1.35vw, 17px); max-width: 680px; margin-top: 26px; }
.accent { color: var(--accent); }
.outline { color: transparent; -webkit-text-stroke: 1px rgba(233, 237, 243, 0.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; position: relative; isolation: isolate; overflow: hidden;
  transition: transform 0.6s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.6s var(--ease);
}
.btn__arrow { width: 18px; height: 18px; flex: none; transition: transform 0.6s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--primary { background: var(--text); color: #0a0e15; }
.btn--primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--accent), #fff 60%); opacity: 0; transition: opacity 0.4s; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -16px rgba(111, 211, 255, 0.55); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--sm { padding: 12px 22px; font-size: 13px; }
.btn--lg { padding: 20px 38px; font-size: 15px; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.5s, border-color 0.5s, height 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  height: 68px;
  background: rgba(6, 8, 13, 0.7);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.header__inner { width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 12px rgba(111, 211, 255, 0.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 27px; letter-spacing: 0.16em; padding-top: 2px; }
.brand__sub { font-size: 9.5px; letter-spacing: 0.24em; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 38px; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); padding: 6px 0; position: relative; transition: color 0.3s; }
.nav__ja { font-size: 13.5px; font-weight: 500; letter-spacing: 0.1em; }
.nav__en { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.3em; color: var(--dim); line-height: 1; transition: color 0.3s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav a:hover .nav__en, .nav a[aria-current='page'] .nav__en { color: var(--accent); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; align-items: center; gap: 18px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; position: relative; z-index: 120; }
.menu-btn span { position: absolute; left: 14px; width: 18px; height: 1.5px; background: var(--text); transition: transform 0.5s var(--ease), top 0.5s var(--ease), width 0.3s; }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; width: 12px; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { top: 22px; width: 18px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 95; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: rgba(6, 8, 13, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
  font-size: clamp(28px, 8vw, 44px); font-weight: 900; letter-spacing: 0.04em; line-height: 1.2;
  transform: translateY(24px); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s;
}
.mobile-nav__links a .en { font-family: var(--font-display); font-weight: 400; font-size: 14px; letter-spacing: 0.3em; color: var(--accent); }
.mobile-nav.is-open .mobile-nav__links a { transform: none; opacity: 1; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(2) { transition-delay: 0.14s; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav__links a:nth-child(4) { transition-delay: 0.26s; }
.mobile-nav__foot { margin-top: 32px; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; display: grid; gap: 6px; }
.mobile-nav__foot a { color: var(--text); text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: -10% 0 0 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; transform: scale(1.08); animation: heroZoom 10s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, 0.88) 0%, rgba(6, 8, 13, 0.55) 40%, rgba(6, 8, 13, 0.12) 75%, rgba(6, 8, 13, 0) 100%),
    linear-gradient(180deg, rgba(6, 8, 13, 0.5) 0%, rgba(6, 8, 13, 0) 28%, rgba(6, 8, 13, 0.25) 62%, var(--bg) 100%);
}
.hero__inner { width: min(100% - 2 * var(--gutter), 1400px); margin-inline: auto; padding: calc(var(--header-h) + 72px) 0 112px; display: grid; gap: 34px; }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.34em; color: var(--accent); line-height: 1; }
.hero__eyebrow::before { content: ''; width: 44px; height: 1px; background: var(--accent); }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 12vw, 190px); line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(112%); animation: rise 1.2s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.14s; }
.hero__title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px rgba(233, 237, 243, 0.9); }
@keyframes rise { to { transform: none; } }
.hero__copy { display: grid; gap: 18px; max-width: 640px; opacity: 0; animation: fadeUp 1.2s var(--ease) 0.5s forwards; }
.hero__sub { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: 0.08em; line-height: 1.5; }
.hero__lead { color: var(--muted); font-size: 15px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp 1.2s var(--ease) 0.7s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__meta { position: absolute; right: var(--gutter); bottom: 44px; display: grid; gap: 8px; justify-items: end; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.3em; color: var(--dim); line-height: 1; }
.hero__meta b { color: var(--muted); font-weight: 400; }
.scroll-cue { position: absolute; left: 50%; bottom: 0; width: 1px; height: 84px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.scroll-cue::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--accent)); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; background: var(--bg-2); position: relative; }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: 36px; padding-right: 36px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); letter-spacing: 0.14em; color: var(--muted); line-height: 1; }
.marquee__item::after { content: ''; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; }
.marquee__item i { font-style: normal; color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Philosophy ---------- */
.philosophy { background: radial-gradient(60% 55% at 85% 15%, rgba(61, 139, 255, 0.12), transparent 65%), var(--bg); overflow: hidden; }
.philosophy__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.statement { font-size: clamp(26px, 3.3vw, 44px); font-weight: 700; line-height: 1.5; letter-spacing: 0.03em; }
.philosophy__text { color: var(--muted); margin-top: 28px; max-width: 560px; font-size: 15.5px; }
.figure { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.figure:hover img { transform: scale(1.04); }
.figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 8, 13, 0.7)); pointer-events: none; }
.figure__cap { position: absolute; left: 22px; bottom: 20px; z-index: 1; font-family: var(--font-display); letter-spacing: 0.26em; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; line-height: 1; }
.figure__cap::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.figure--portrait { aspect-ratio: 4 / 5; }
.figure--portrait img { object-position: 22% 50%; }
.figure--frame { box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(64px, 8vw, 104px); }
.pillar {
  position: relative; padding: 38px 32px 34px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.7s var(--ease), border-color 0.4s, box-shadow 0.7s var(--ease);
}
.pillar::before { content: ''; position: absolute; inset: -1px; background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 0%), rgba(111, 211, 255, 0.16), transparent 70%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(111, 211, 255, 0.4); box-shadow: var(--glow); }
.pillar:hover::before { opacity: 1; }
.pillar__top { display: flex; justify-content: space-between; align-items: center; }
.pillar__num { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.32em; color: var(--dim); line-height: 1; }
.pillar__icon { width: 46px; height: 46px; color: var(--accent); }
.pillar__icon svg { width: 100%; height: 100%; }
.pillar__en { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.1em; line-height: 1; margin-top: 34px; }
.pillar__ja { font-size: 21px; font-weight: 700; margin-top: 8px; }
.pillar__desc { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- Services (home) ---------- */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc {
  position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start;
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; overflow: hidden;
  background: var(--bg-3); transition: transform 0.7s var(--ease), border-color 0.4s, box-shadow 0.7s var(--ease);
}
.svc::before { content: ''; position: absolute; inset: -1px; background: radial-gradient(260px 260px at var(--mx, 100%) var(--my, 0%), rgba(111, 211, 255, 0.12), transparent 70%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.svc:hover { transform: translateY(-5px); border-color: rgba(111, 211, 255, 0.4); box-shadow: var(--glow); }
.svc:hover::before { opacity: 1; }
.svc__img { width: 132px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.1); }
.svc__num { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.32em; color: var(--accent); line-height: 1; }
.svc__title { font-size: 22px; font-weight: 700; margin-top: 12px; line-height: 1.4; padding-right: 48px; }
.svc__en { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.2em; color: var(--dim); line-height: 1; margin-top: 8px; }
.svc__desc { color: var(--muted); font-size: 14px; margin-top: 14px; }
.svc__arrow { position: absolute; right: 26px; top: 26px; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background 0.4s, color 0.4s, transform 0.7s var(--ease), border-color 0.4s; }
.svc__arrow svg { width: 18px; height: 18px; }
.svc:hover .svc__arrow { background: var(--text); color: var(--bg); border-color: var(--text); transform: rotate(-45deg); }
.section-foot { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Why Wolves ---------- */
.why { overflow: hidden; }
.why__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.55; }
.why__bg img { width: 100%; height: 100%; object-fit: cover; }
.why__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 8, 13, 0.6) 30%, rgba(6, 8, 13, 0.6) 70%, var(--bg) 100%); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__media { position: sticky; top: 110px; }
.figure--landscape { aspect-ratio: 4 / 3; }
.reasons { border-top: 1px solid var(--line-2); }
.reason { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.reason__num { font-family: var(--font-display); font-size: 48px; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px rgba(233, 237, 243, 0.55); padding-top: 4px; }
.reason__title { font-size: 22px; font-weight: 700; line-height: 1.4; }
.reason__en { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.28em; color: var(--accent); line-height: 1; margin-top: 8px; }
.reason__desc { color: var(--muted); margin-top: 14px; font-size: 15px; }

/* ---------- Company snapshot ---------- */
.snapshot { background: var(--bg-2); border-block: 1px solid var(--line); }
.snapshot__grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.stat { padding: 44px 40px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: 0; }
.stat__label { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.32em; color: var(--dim); line-height: 1; }
.stat__value { font-size: clamp(28px, 3vw, 42px); font-weight: 700; margin-top: 16px; line-height: 1.15; letter-spacing: 0.02em; }
.stat__value small { font-size: 0.45em; color: var(--muted); margin-left: 6px; font-weight: 500; }
.stat__note { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.cta__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 8, 13, 0.92) 0%, rgba(6, 8, 13, 0.6) 45%, rgba(6, 8, 13, 0.15) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }
.cta__inner { padding-block: clamp(96px, 14vw, 180px); display: grid; gap: 28px; }
.cta__en { font-family: var(--font-display); font-size: clamp(44px, 8.6vw, 124px); line-height: 0.9; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1px rgba(233, 237, 243, 0.4); }
.cta__title { font-size: clamp(28px, 4.4vw, 56px); font-weight: 900; line-height: 1.3; }
.cta__lead { color: var(--muted); max-width: 560px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: clamp(64px, 8vw, 96px) 0 64px; }
.footer__brand .brand__mark { width: 48px; height: 48px; }
.footer__brand .brand__name { font-size: 32px; }
.footer__tag { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; margin-top: 20px; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.2em; }
.footer__desc { color: var(--dim); font-size: 13px; margin-top: 12px; max-width: 360px; }
.footer h4 { font-family: var(--font-display); letter-spacing: 0.3em; font-size: 14px; color: var(--dim); font-weight: 400; margin-bottom: 20px; line-height: 1; }
.footer ul { display: grid; gap: 12px; }
.footer li, .footer address { font-style: normal; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent); }
.footer address { line-height: 1.9; }
.footer__bottom { border-top: 1px solid var(--line); padding: 26px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--dim); letter-spacing: 0.1em; position: relative; z-index: 1; }
.footer__watermark {
  font-family: var(--font-display); font-size: clamp(120px, 26vw, 400px); line-height: 0.78; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  position: absolute; left: 50%; bottom: -0.02em; transform: translateX(-50%); pointer-events: none; user-select: none; white-space: nowrap;
}
.to-top { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.to-top:hover { background: var(--text); color: var(--bg); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Sub page hero ---------- */
.page-hero { position: relative; min-height: 66vh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 8s var(--ease) forwards; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 8, 13, 0.55) 0%, rgba(6, 8, 13, 0.15) 40%, rgba(6, 8, 13, 0.75) 80%, var(--bg) 100%), linear-gradient(90deg, rgba(6, 8, 13, 0.7), transparent 60%); }
.page-hero__inner { padding: calc(var(--header-h) + 80px) 0 72px; display: grid; gap: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.3em; color: var(--dim); line-height: 1; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: '/'; margin-right: 12px; color: var(--dim); }
.breadcrumb li { display: flex; align-items: center; }
.page-hero__en { font-family: var(--font-display); font-size: clamp(64px, 12vw, 168px); line-height: 0.88; letter-spacing: 0.02em; margin-top: 10px; }
.page-hero__en .line { display: block; overflow: hidden; }
.page-hero__en .line > span { display: inline-block; transform: translateY(112%); animation: rise 1.1s var(--ease) forwards; }
.page-hero__ja { font-size: clamp(17px, 2vw, 24px); font-weight: 700; letter-spacing: 0.14em; color: var(--muted); display: flex; align-items: center; gap: 16px; opacity: 0; animation: fadeUp 1s var(--ease) 0.4s forwards; }
.page-hero__ja::before { content: ''; width: 40px; height: 1px; background: var(--accent); }

/* ---------- Services page ---------- */
.svc-index { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.svc-index a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 500; letter-spacing: 0.06em; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.svc-index a i { font-style: normal; font-family: var(--font-display); letter-spacing: 0.2em; color: var(--accent); font-size: 13px; }
.svc-index a:hover { border-color: var(--accent); color: var(--text); background: rgba(111, 211, 255, 0.06); }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-detail:nth-of-type(even) .service-detail__media { order: 2; }
.figure--square { aspect-ratio: 1; }
.service-detail__num { font-family: var(--font-display); font-size: clamp(56px, 7vw, 100px); line-height: 0.85; color: transparent; -webkit-text-stroke: 1px rgba(233, 237, 243, 0.4); }
.service-detail__title { font-size: clamp(26px, 3vw, 38px); font-weight: 900; margin-top: 18px; line-height: 1.3; }
.service-detail__en { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.28em; color: var(--accent); line-height: 1; margin-top: 10px; }
.service-detail__desc { color: var(--muted); margin-top: 22px; font-size: 15.5px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.spec h4 { font-family: var(--font-display); letter-spacing: 0.28em; font-size: 14px; color: var(--accent); font-weight: 400; display: flex; align-items: center; gap: 10px; line-height: 1; margin-bottom: 16px; }
.spec h4::before { content: ''; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.spec ul { display: grid; gap: 10px; }
.spec li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--text); }
.spec li::before { content: ''; position: absolute; left: 0; top: 0.85em; width: 8px; height: 1px; background: var(--dim); }
.spec li b { font-weight: 700; color: var(--text); }
.spec li span { color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow__step { position: relative; padding: 30px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); }
.flow__num { font-family: var(--font-display); font-size: 44px; color: var(--accent); line-height: 0.9; }
.flow__title { font-size: 19px; font-weight: 700; margin-top: 18px; }
.flow__en { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.3em; color: var(--dim); line-height: 1; margin-top: 6px; }
.flow__desc { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.flow__step:not(:last-child)::after { content: ''; position: absolute; right: -13px; top: 50%; width: 9px; height: 9px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-grid .statement { position: sticky; top: 120px; }
.about-text { color: var(--muted); font-size: 15.5px; display: grid; gap: 20px; }
.about-text strong { color: var(--text); font-weight: 700; }
.company { background: var(--bg-2); border-block: 1px solid var(--line); }
.company__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.company-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-2); }
.company-table th, .company-table td { padding: 24px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 38%; font-weight: 400; }
.company-table th .ja { display: block; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: 0.08em; }
.company-table th .en { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.3em; color: var(--dim); line-height: 1; margin-top: 8px; }
.company-table td { font-size: 15px; }
.company-table td a { color: var(--accent); text-decoration: none; }
.company-table td a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-3); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.92) brightness(0.9); }
.map__link { position: absolute; left: 16px; bottom: 16px; z-index: 1; }
.mission { position: relative; overflow: hidden; isolation: isolate; }
.mission__media { position: absolute; inset: 0; z-index: -2; }
.mission__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mission__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 8, 13, 0.55) 30%, rgba(6, 8, 13, 0.55) 70%, var(--bg) 100%); }
.mission__inner { text-align: center; max-width: 880px; margin-inline: auto; display: grid; gap: 28px; justify-items: center; padding-block: clamp(40px, 6vw, 80px); }
.mission__en { font-family: var(--font-display); font-size: clamp(40px, 8vw, 112px); line-height: 0.9; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1px rgba(233, 237, 243, 0.4); }
.mission__statement { font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.6; }
.mission__text { color: var(--muted); font-size: 15.5px; max-width: 640px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info { position: sticky; top: 110px; display: grid; gap: 36px; }
.contact-info__text { color: var(--muted); margin-top: 20px; }
.contact-block { padding-top: 26px; border-top: 1px solid var(--line); }
.contact-block h3 { font-family: var(--font-display); letter-spacing: 0.3em; font-size: 14px; color: var(--dim); font-weight: 400; line-height: 1; margin-bottom: 14px; }
.contact-mail { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); letter-spacing: 0.04em; line-height: 1; text-decoration: none; display: inline-flex; align-items: center; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); transition: color 0.3s, border-color 0.3s; }
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-mail svg { width: 28px; height: 28px; }
.contact-block address { font-style: normal; color: var(--muted); font-size: 14.5px; }
.form { display: grid; gap: 24px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); position: relative; }
.form__fields { display: grid; gap: 24px; }
.field { display: grid; gap: 10px; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field label, .field .label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; display: flex; align-items: center; gap: 10px; }
.tag { font-size: 10px; letter-spacing: 0.14em; padding: 3px 7px; border-radius: 4px; font-weight: 700; line-height: 1; }
.tag--req { background: var(--accent); color: var(--accent-ink); }
.tag--opt { border: 1px solid var(--line-2); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 15px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: rgba(6, 8, 13, 0.65); color: var(--text); font: inherit; font-size: 15px; letter-spacing: 0.02em;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(111, 211, 255, 0.14); background: rgba(6, 8, 13, 0.9); }
.select { appearance: none; -webkit-appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa5b6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; cursor: pointer; }
.select option { background: #0f141d; color: var(--text); }
.textarea { min-height: 190px; resize: vertical; line-height: 1.8; }
.field__error { color: var(--danger); font-size: 12.5px; display: none; letter-spacing: 0.02em; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--text); text-underline-offset: 3px; }
.check a:hover { color: var(--accent); }
.form__status { display: none; padding: 16px 18px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.7; }
.form__status.is-error { display: block; background: rgba(255, 123, 123, 0.1); border: 1px solid rgba(255, 123, 123, 0.35); color: #ffb3b3; }
.form__submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.form__note { color: var(--dim); font-size: 12.5px; }
.form__success { display: none; text-align: center; padding: clamp(32px, 5vw, 56px) 16px; }
.form.is-sent .form__fields, .form.is-sent .form__submit, .form.is-sent .form__status { display: none; }
.form.is-sent .form__success { display: grid; gap: 18px; justify-items: center; }
.form__success-icon { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); box-shadow: var(--glow); }
.form__success-icon svg { width: 30px; height: 30px; }
.form__success h3 { font-size: 24px; font-weight: 900; }
.form__success p { color: var(--muted); font-size: 14.5px; max-width: 460px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.cf-turnstile { min-height: 65px; }

/* ---------- Text pages (privacy) ---------- */
.prose { max-width: 800px; margin-inline: auto; display: grid; gap: 44px; }
.prose > p { color: var(--muted); }
.prose h2 { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; padding-left: 18px; border-left: 2px solid var(--accent); line-height: 1.5; }
.prose h2 + p, .prose h2 + ul, .prose h2 + ol { margin-top: 18px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.prose ol { padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; color: var(--muted); }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .meta { color: var(--dim); font-size: 13px; letter-spacing: 0.06em; }
.prose address { font-style: normal; color: var(--muted); font-size: 15px; margin-top: 12px; line-height: 2; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; align-items: center; position: relative; isolation: isolate; overflow: hidden; }
.notfound__media { position: absolute; inset: 0; z-index: -2; }
.notfound__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.7; }
.notfound__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 8, 13, 0.92), rgba(6, 8, 13, 0.4)); }
.notfound__inner { display: grid; gap: 22px; padding-block: 160px 120px; }
.notfound__code { font-family: var(--font-display); font-size: clamp(120px, 22vw, 280px); line-height: 0.85; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(233, 237, 243, 0.7); }
.notfound__title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; }
.notfound__text { color: var(--muted); max-width: 520px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.1s; }
.reveal[data-delay='2'] { transition-delay: 0.2s; }
.reveal[data-delay='3'] { transition-delay: 0.3s; }
.reveal[data-delay='4'] { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .philosophy__grid, .why__grid, .about-grid, .company__grid, .contact-grid { grid-template-columns: 1fr; }
  .why__media, .about-grid .statement, .contact-info { position: static; }
  .figure--portrait { aspect-ratio: 16 / 10; }
  .figure--portrait img { object-position: 30% 50%; }
  .section-head--split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-of-type(even) .service-detail__media { order: 0; }
  .figure--square { aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav, .header__cta { display: none; }
  .menu-btn { display: grid; }
  .hero__inner { padding-bottom: 120px; }
  .hero__meta { display: none; }
  .hero__media img { object-position: 50% 50%; }
  .pillars, .services__grid, .snapshot__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 28px; }
  .stat:last-child { border-bottom: 0; }
  .spec { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 23px; }
  .brand__sub { display: none; }
  .hero__title { font-size: clamp(60px, 19vw, 96px); }
  .hero__sub { font-size: 20px; }
  .btn { padding: 15px 24px; }
  .svc { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .svc__img { width: 100%; aspect-ratio: 16 / 9; }
  .svc__title { padding-right: 0; }
  .svc__arrow { top: 24px; right: 24px; background: rgba(6, 8, 13, 0.7); }
  .reason { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .reason__num { font-size: 40px; }
  .field--2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow__step::after { display: none !important; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .company-table th { width: 34%; }
  .company-table th .en { display: none; }
  .form__submit .btn { width: 100%; justify-content: center; }
  .page-hero { min-height: 56vh; }
  .cta { min-height: 60vh; }
}
@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; }
  .hero__title .line > span, .page-hero__en .line > span { transform: none; }
  .hero__copy, .hero__actions, .page-hero__ja { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Additions ---------- */
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.svc__body { display: block; min-width: 0; }
.svc__body > * { display: block; }
br.pc { display: none; }
@media (min-width: 1081px) { br.pc { display: inline; } }
.page-hero--short { min-height: 48vh; }
.pillar__en, .svc__en, .reason__en, .service-detail__en, .flow__en, .cta__en, .mission__en, .page-hero__en, .footer__tag, .stat__label, .marquee__item, .eyebrow, .breadcrumb, .figure__cap, .brand__name, .contact-block h3, .spec h4, .footer h4, .nav__en, .mobile-nav__links a .en, .hero__eyebrow, .hero__meta, .svc-index a i { text-transform: uppercase; }
