/* ==========================================================================
   SEPV CORPORATION — Design System
   Brand colour is sampled from the official logo (#922027 crimson).
   ========================================================================== */

:root {
  /* Color — brand */
  --blue: #922027;          /* primary brand crimson (logo background) */
  --blue-light: #b0353e;
  --cyan: #e9a3a7;          /* pale rose accent used on dark surfaces */

  /* Color — neutrals (warm, to sit with the crimson) */
  --ink: #12100f;
  --ink-2: #1a1615;
  --ink-3: #241e1d;
  --paper: #f8f5f3;
  --paper-2: #f0eae5;
  --line: #e4dad5;
  --text: #211b19;
  --muted: #6b5f5a;
  --white: #ffffff;

  /* Type */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Manrope", "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --radius: 18px;
  --radius-lg: 26px;
  --header-h: 78px;
  --logo-w: 168px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--blue-light); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, table { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #ece5e2; }

.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;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 10px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section--dark .eyebrow { color: var(--cyan); }

.section-title {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 16px;
}

.lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 2.1;
  max-width: 62ch;
}
.section--dark .lead { color: #bdb0ac; }

.section-head { max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(146, 32, 39, 0.3);
}
.btn--primary:hover { background: #a82c35; color: #fff; transform: translateY(-2px); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }

.btn--outline {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(18, 16, 15, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- Brand logo ---------- */
/* The supplied logo file is a square canvas with whitespace above and below
   the crimson band (top 36.25% → 63.47%). The band is cropped with
   overflow:hidden + a percentage translate so the artwork stays untouched. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 1.2;
}

.brand-logo {
  position: relative;
  display: block;
  width: var(--logo-w);
  aspect-ratio: 720 / 197;
  overflow: hidden;
  flex: none;
  border-radius: 3px;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-36.25%);
}

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-desktop a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-desktop a[aria-current="page"] { color: #fff; }
.nav-desktop a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--cyan));
}
.header-cta { margin-left: 10px; padding: 11px 22px; font-size: 12px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: transparent;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px; background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -7px); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, 5px); }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(18, 16, 15, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: calc(var(--header-h) + 40px) var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile ul { display: grid; gap: 2px; }
.nav-mobile a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-mobile a span {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  font-weight: 700;
}
.nav-mobile .btn { width: 100%; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: radial-gradient(120% 100% at 78% 8%, #43141a 0%, #1c1414 44%, var(--ink) 80%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(230, 160, 160, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 160, 160, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(100% 80% at 60% 20%, #000 10%, transparent 78%);
  mask-image: radial-gradient(100% 80% at 60% 20%, #000 10%, transparent 78%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  right: -180px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 60, 70, 0.34), transparent 62%);
  filter: blur(30px);
  z-index: -1;
  animation: float 14s ease-in-out infinite alternate;
}

.hero-orb {
  position: absolute;
  left: -160px; bottom: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 32, 39, 0.5), transparent 65%);
  filter: blur(50px);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #e2d3d0;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #45e0b0;
  box-shadow: 0 0 0 4px rgba(69, 224, 176, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(32px, 5.1vw, 66px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.005em;
}
.hero-title .grad {
  background: linear-gradient(100deg, #f2b9ba 0%, #dd6b72 46%, #f0cbae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .jp-line { display: block; }

.hero-lead {
  margin-top: 28px;
  font-size: clamp(14px, 1.2vw, 16.5px);
  line-height: 2.15;
  color: #c6b7b3;
  max-width: 46ch;
}

.hero-actions { margin-top: 38px; }

.hero-facts {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 26px;
}
.hero-fact .num {
  font-family: var(--font-en);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(120deg, #fff, #e8b9ba);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-fact .num small { font-size: 12px; margin-left: 3px; }
.hero-fact .label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #a4918e;
  line-height: 1.6;
}

/* Hero visual: layered code window */
.hero-visual {
  position: relative;
  perspective: 1200px;
}
.hero-panel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(52, 38, 38, 0.94), rgba(22, 17, 17, 0.94));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.hero-panel:hover { transform: rotateY(-3deg) rotateX(2deg) translateY(-6px); }
.panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.panel-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.panel-bar span {
  margin-left: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #93807d;
}
.panel-body { padding: 22px 22px 26px; font-family: var(--font-en); font-size: 12.5px; line-height: 2.05; }
.code-row { display: flex; gap: 12px; color: #c1b0ac; white-space: nowrap; overflow: hidden; }
.code-row .ln { color: #57443f; width: 14px; flex: none; text-align: right; }
.tk-key { color: #ef9aa0; }
.tk-str { color: #dcc08a; }
.tk-fn { color: #a6d3b8; }
.tk-cm { color: #7b6660; }

.flow-chips {
  position: absolute;
  right: -14px; bottom: -22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 260px;
}
.chip {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(26, 22, 21, 0.92);
  color: #d5c5c1;
  backdrop-filter: blur(8px);
}
.chip--accent { border-color: rgba(233, 163, 167, 0.5); color: var(--cyan); }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.45);
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink);
  overflow: hidden;
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 46px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #7d6b66;
  text-transform: uppercase;
}
.marquee-track span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 32, 39, 0.1), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(146, 32, 39, 0.35);
  box-shadow: 0 24px 50px rgba(58, 24, 20, 0.1);
}
.card:hover::after { opacity: 1; }

.card-num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--blue);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(146, 32, 39, 0.11), rgba(233, 163, 167, 0.12));
  color: var(--blue);
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.card .en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #a2938e;
  text-transform: uppercase;
}
.card p {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}
.card .tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.card .tags li {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  color: #6a5d58;
}

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.split--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }

.stat-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  background:
    radial-gradient(120% 110% at 88% 0%, rgba(233, 163, 167, 0.26), transparent 55%),
    linear-gradient(150deg, #2c1f1e, #12100f 78%);
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.stat-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 72%);
  mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 72%);
}
.stat-card > * { position: relative; }
.stat-card .eyebrow { color: var(--cyan); }
.stat-card .eyebrow::before { display: none; }
.stat-card h3 {
  margin-top: 14px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.55;
  font-weight: 700;
}
.stat-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.stat-item { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 16px; }
.stat-item .v {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.stat-item .v small { font-size: 11px; font-weight: 600; margin-left: 4px; color: #c0aca8; }
.stat-item .k { margin-top: 4px; font-size: 11.5px; color: #b0a09c; letter-spacing: 0.06em; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 0; margin-top: 44px; }
.feature-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.feature-item:last-child { border-bottom: 1px solid var(--line); }
.feature-item .idx {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-top: 4px;
}
.feature-item h3 { font-size: 18px; font-weight: 700; }
.feature-item p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 2; }

.section--dark .feature-item { border-color: rgba(255, 255, 255, 0.12); }
.section--dark .feature-item .idx { color: var(--cyan); }
.section--dark .feature-item p { color: #b4a5a1; }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 56px; }
.process-step {
  position: relative;
  padding: 34px 20px 0 0;
  border-top: 2px solid rgba(255, 255, 255, 0.16);
}
.process-step::before {
  content: "";
  position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(233, 163, 167, 0.14);
}
.process-step .en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.process-step h3 { margin-top: 10px; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.6; }
.process-step p { margin-top: 8px; font-size: 12.5px; line-height: 1.9; color: #ad9e9a; padding-right: 12px; }

/* ---------- Company table ---------- */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.profile-table tr { border-bottom: 1px solid var(--line); }
.profile-table tr:first-child { border-top: 1px solid var(--line); }
.profile-table th,
.profile-table td {
  text-align: left;
  padding: 20px 18px;
  vertical-align: top;
  line-height: 1.9;
}
.profile-table th {
  width: 190px;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.profile-table td { color: var(--text); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 72px;
  background: radial-gradient(110% 130% at 82% 0%, #43141a 0%, #1c1414 48%, var(--ink) 84%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(230, 160, 160, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 160, 160, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(90% 100% at 70% 0%, #000, transparent 75%);
  mask-image: radial-gradient(90% 100% at 70% 0%, #000, transparent 75%);
  z-index: -1;
}
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.32;
  font-weight: 900;
}
.page-hero .lead { color: #bfb0ac; margin-top: 20px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #a59490;
}
.breadcrumb a { color: #a59490; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #6a5751; }

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-block:last-of-type { border-bottom: 1px solid var(--line); }
.service-block .visual {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 240px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(100% 100% at 80% 10%, rgba(233, 163, 167, 0.22), transparent 60%),
    linear-gradient(150deg, #2c1f1e, #12100f);
  border: 1px solid rgba(30, 20, 18, 0.1);
  overflow: hidden;
}
.service-block .visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent 78%);
  mask-image: radial-gradient(80% 80% at 30% 20%, #000, transparent 78%);
}
.service-block .visual svg { position: relative; width: 74px; height: 74px; color: var(--cyan); }
.service-block h2 {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.5;
  font-weight: 700;
}
.service-block .en-label {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
}
.service-block p { margin-top: 18px; font-size: 14px; line-height: 2.05; color: var(--muted); }
.check-list { margin-top: 22px; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.9;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ---------- Tech stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.stack-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.03);
}
.stack-group h3 {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
}
.stack-group ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.stack-group li {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #e0d4d1;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; font-size: 14px; line-height: 2; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: radial-gradient(100% 130% at 20% 0%, #4d1a20 0%, #1c1414 58%, var(--ink) 100%);
  padding: clamp(56px, 8vw, 104px) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 163, 167, 0.28), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-inner h2 {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.45;
  font-weight: 800;
}
.cta-inner p { margin-top: 14px; color: #bfb0ac; font-size: 14px; max-width: 52ch; line-height: 2; }

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.contact-aside { display: grid; gap: 14px; }
.contact-aside .card { padding: 26px 24px; }
.contact-aside h3 { font-size: 15px; }
.contact-aside p { font-size: 13px; margin-top: 10px; }
.contact-aside a { font-family: var(--font-en); font-weight: 700; font-size: 14px; word-break: break-all; }
.aside-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--blue);
  text-transform: uppercase;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 24px 60px rgba(58, 24, 20, 0.07);
}
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
  letter-spacing: 0.04em;
}
.req {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.06em;
}
.opt {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--paper-2);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.06em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fbfaf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  line-height: 1.6;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: none; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(146, 32, 39, 0.11);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d33f38; background: #fff8f8; }
.field .error-msg {
  display: none;
  margin-top: 7px;
  font-size: 12px;
  color: #d33f38;
  font-weight: 600;
}
.field.has-error .error-msg { display: block; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.8;
}
.consent input { width: 18px; height: 18px; margin-top: 5px; flex: none; accent-color: var(--blue); }
.consent a { text-decoration: underline; }

.form-actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-actions .btn { padding: 16px 44px; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.8; }

.form-status {
  display: none;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.9;
  border: 1px solid transparent;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #eefaf4; border-color: #b9e8d3; color: #14724b; }
.form-status.is-error { background: #fdf0ef; border-color: #f3c9c6; color: #b2362f; }

/* ---------- Honeypot (自動投稿対策・画面には出さない) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #a59490;
  padding: clamp(48px, 6vw, 76px) 0 30px;
  font-size: 13px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand .brand-logo { --logo-w: 196px; }
.footer-brand p { line-height: 2; max-width: 44ch; color: #a0908c; font-size: 12.5px; }
.footer-col h4 {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: #a59490; font-size: 12.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 11.5px;
  color: #8a7873;
}
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #8a7873; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 40px, 0) scale(1.08); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(69, 224, 176, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(69, 224, 176, 0.05); }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --logo-w: 150px; }
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 520px; }
  .hero-panel { transform: none; }
  .hero-panel:hover { transform: translateY(-4px); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .process-step:nth-child(odd) { padding-right: 24px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; --logo-w: 136px; }
  .split,
  .split--wide,
  .service-block,
  .contact-layout,
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; padding: calc(var(--header-h) + 48px) 0 64px; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
  .hero-fact .num { font-size: 20px; }
  .hero-fact .label { font-size: 10px; }
  .scroll-hint { display: none; }
  .flow-chips { position: static; margin-top: 14px; justify-content: flex-start; max-width: none; }
  .card { padding: 28px 22px; }
  .feature-item { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .profile-table th { width: 122px; padding: 16px 12px; font-size: 12.5px; }
  .profile-table td { padding: 16px 12px; font-size: 13px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-brand .brand-logo { --logo-w: 172px; }
}

@media (max-width: 520px) {
  :root { --logo-w: 124px; }
  body { font-size: 15px; }
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .stack-grid { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .process-step { padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .process-step p { padding-right: 0; padding-bottom: 22px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stat-card { padding: 32px 24px; }
  .form-actions .btn { width: 100%; }
}

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