/* =========================================================
   株式会社バラエティーズ — Site Styles
   Light / Dark, warm-neutral, type-driven, Apple-ish minimal
   ========================================================= */

:root {
  --bg: #f3efe8;
  --bg-2: #ece7dd;
  --surface: #faf7f1;
  --ink: #0c0c0d;
  --ink-2: #2a2a2c;
  --ink-3: #5a5a5e;
  --ink-4: #8a8a8e;
  --line: rgba(12, 12, 13, 0.10);
  --line-2: rgba(12, 12, 13, 0.06);
  --hairline: rgba(12, 12, 13, 0.18);
  --accent: #0c0c0d;
  --on-accent: #faf7f1;
  --logo-r: #c8362c;
  --logo-g: #2f8a4e;
  --logo-b: #3b8fc4;
  --container: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --sans: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03);
  --shadow-md: 0 6px 24px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.05);
  --ease: cubic-bezier(.2, .65, .2, 1);
}

[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --surface: #16161a;
  --ink: #f1ede4;
  --ink-2: #d8d3c8;
  --ink-3: #a09c92;
  --ink-4: #6c6962;
  --line: rgba(241, 237, 228, 0.10);
  --line-2: rgba(241, 237, 228, 0.06);
  --hairline: rgba(241, 237, 228, 0.18);
  --accent: #f1ede4;
  --on-accent: #0b0b0c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #f3efe8; }
body {
  font-family: var(--sans-jp);
  font-feature-settings: "palt";
  background-color: #f3efe8;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
  line-height: 1.7;
  transition: background-color .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ----- Layout helpers ----- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.full      { padding-inline: var(--pad); }
.spacer-xl { height: clamp(80px, 12vw, 160px); }
.spacer-lg { height: clamp(60px, 8vw, 120px); }
.spacer-md { height: clamp(40px, 6vw, 80px); }
.spacer-sm { height: 24px; }

/* Eyebrow / section label */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink-3);
}

/* Display headline used on all section starts */
.display {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.display .accent-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.5em;
  color: var(--ink-3);
  margin-right: 14px;
  vertical-align: 0.25em;
  letter-spacing: 0;
}

.lede {
  margin-top: 22px;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.85;
  text-wrap: pretty;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .arr {
  width: 16px; height: 16px;
  display: inline-flex; align-items:center; justify-content:center;
  transition: transform .35s var(--ease);
}
.btn:hover .arr { transform: translateX(4px); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--ink-2); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--on-accent);
  border-color: var(--ink);
}
.btn--lg { height: 56px; padding: 0 28px; font-size: 15px; }

/* ----- Cards / Panels ----- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Subtle striped placeholder image */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0 8px,
      var(--surface) 8px 16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  overflow: hidden;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 50%, transparent 0%, rgba(0,0,0,.05) 100%);
  pointer-events: none;
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  background-color: #f3efe8;
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom-color: var(--line);
}
.nav__logo { display: inline-flex; align-items: center; gap: 6px; }
.nav__logo svg { display:block; }
.nav__logo-text {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--ink);
}
.nav__menu {
  display: flex; align-items: center; gap: 28px;
}
.nav__menu a {
  font-size: 13px;
  color: var(--ink-2);
  position: relative;
  padding: 8px 0;
  transition: color .25s var(--ease);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px;
  height: 1px; background: var(--ink);
  transition: right .35s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover::after,
.nav__menu a.is-active::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  align-items: center; justify-content: center;
}
.nav__burger span {
  display:block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
}
.nav__burger span::before, .nav__burger span::after {
  content:""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }

@media (max-width: 880px) {
  .nav__menu { display: none; }
  .nav__cta .btn:not(.nav__burger) { display: none; }
  .nav__burger { display: inline-flex; }
}

/* mobile sheet */
.mob {
  position: fixed; inset: 0;
  z-index: 70;
  background: var(--bg);
  padding: 80px var(--pad) 40px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mob.is-open { transform: translateY(0); }
.mob__close {
  position: absolute;
  top: 20px;
  right: var(--pad);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-1);
}
.mob a:not(.btn) {
  font-size: 28px;
  font-weight: 600;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--pad) clamp(80px, 9vw, 140px);
  overflow: hidden;
}
@media (max-width: 880px) {
  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 64px;
    justify-content: flex-start;
  }
  .hero__top { margin-bottom: 32px; }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 120px);
  mask-image: radial-gradient(80% 60% at 30% 50%, #000 30%, transparent 100%);
  pointer-events: none;
  opacity: .8;
}

/* ===== Hero AI/DX background art ===== */
.hero__art {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  mask-image: radial-gradient(85% 70% at 78% 35%, #000 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(85% 70% at 78% 35%, #000 0%, #000 35%, transparent 100%);
}
.hero__art svg {
  position: absolute;
  top: 50%; left: 65%;
  width: min(1400px, 130vw);
  height: min(1400px, 130vw);
  transform: translate(-50%, -50%);
  opacity: .55;
}
[data-theme="dark"] .hero__art svg { opacity: .75; }

@media (max-width: 880px) {
  .hero__art {
    mask-image: radial-gradient(110% 60% at 60% 75%, #000 0%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(110% 60% at 60% 75%, #000 0%, #000 30%, transparent 100%);
  }
  .hero__art svg {
    width: 180vw; height: 180vw;
    top: auto; bottom: -40vw; left: 60%;
    transform: translateX(-50%);
  }
}

/* Slow rotations */
.hero__art .ring-grp     { transform-origin: 50% 50%; animation: hero-spin-cw 120s linear infinite; }
.hero__art .ring-grp--cc { transform-origin: 50% 50%; animation: hero-spin-ccw 90s linear infinite; }
.hero__art .orbit        { transform-origin: 50% 50%; animation: hero-spin-cw 60s linear infinite; }
.hero__art .orbit--cc    { transform-origin: 50% 50%; animation: hero-spin-ccw 80s linear infinite; }
.hero__art .breathe      { transform-origin: 50% 50%; animation: hero-breathe 9s ease-in-out infinite; }
.hero__art .drift-a      { animation: hero-drift-a 14s ease-in-out infinite; }
.hero__art .drift-b      { animation: hero-drift-b 18s ease-in-out infinite; }
.hero__art .drift-c      { animation: hero-drift-c 22s ease-in-out infinite; }
.hero__art .pulse        { animation: hero-pulse 5s ease-in-out infinite; }
.hero__art .pulse-2      { animation: hero-pulse 7s ease-in-out infinite .8s; }
.hero__art .pulse-3      { animation: hero-pulse 6s ease-in-out infinite 1.6s; }
.hero__art .dash-flow    { stroke-dasharray: 4 9; animation: hero-dash 22s linear infinite; }

@keyframes hero-spin-cw  { to { transform: rotate(360deg); } }
@keyframes hero-spin-ccw { to { transform: rotate(-360deg); } }
@keyframes hero-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.04); opacity: .8; }
}
@keyframes hero-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(8px, -10px); }
}
@keyframes hero-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-12px, 8px); }
}
@keyframes hero-drift-c {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(6px, 12px); }
}
@keyframes hero-pulse {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}
@keyframes hero-dash {
  to { stroke-dashoffset: -260; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art .ring-grp,
  .hero__art .ring-grp--cc,
  .hero__art .orbit,
  .hero__art .orbit--cc,
  .hero__art .breathe,
  .hero__art .drift-a,
  .hero__art .drift-b,
  .hero__art .drift-c,
  .hero__art .pulse,
  .hero__art .pulse-2,
  .hero__art .pulse-3,
  .hero__art .dash-flow { animation: none; }
}


.hero__inner { position: relative; z-index: 2; max-width: var(--container); margin-inline: auto; width: 100%; }
.hero__top {
  display:flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero__meta {
  display:flex; flex-direction: column; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.hero__title {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: clamp(36px, 7.6vw, 110px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.hero__title .line { display: block; }
.hero__title .swap-wrap {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  height: 1.05em;
  overflow: hidden;
  min-width: 9ch;
}
.hero__title .swap-wrap::after {
  content: "_";
  display: inline-block;
  margin-left: 4px;
  font-weight: 200;
  color: var(--ink-3);
  animation: blink 1.2s steps(2,end) infinite;
}
.hero__title .swap {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  transition: transform .55s var(--ease), opacity .35s var(--ease);
  font-style: normal;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title .swap.enter { transform: translateY(100%); opacity: 0; }
.hero__title .swap.show  { transform: translateY(0%);   opacity: 1; }
.hero__title .swap.exit  { transform: translateY(-100%); opacity: 0; }

@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.hero__sub {
  margin-top: 36px;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.9;
}
.hero__cta {
  margin-top: 48px;
  display:flex; flex-wrap: wrap; gap: 12px;
}
.hero__bottom {
  margin-top: clamp(80px, 12vw, 140px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
@media (max-width: 880px){ .hero__bottom { grid-template-columns: repeat(2, 1fr); } }

.stat__num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat__num sup { font-size: .55em; font-weight: 400; vertical-align: super; margin-left: 4px; color: var(--ink-3); }
.stat__lbl {
  font-family: var(--sans-jp);
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}

/* marquee under hero */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.marquee__track {
  display: inline-flex; gap: 56px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  padding-left: 56px;
}
.marquee__track span { display:inline-flex; align-items:center; gap: 56px; }
.marquee__track i { font-style: normal; color: var(--ink-4); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ===== Section header ===== */
.section { padding-block: clamp(80px, 10vw, 160px); }
.section__head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 80px);
}
@media (max-width: 880px){ .section__head { grid-template-columns: 1fr; } }

/* ===== Services grid ===== */
.svc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (max-width: 980px){ .svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .svc { grid-template-columns: 1fr; } }

.svc__cell {
  background: var(--bg);
  padding: 36px 32px 28px;
  display:flex; flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background-color .35s var(--ease);
}
.svc__cell:hover { background: var(--surface); }
.svc__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.svc__name {
  margin-top: 28px;
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.svc__name small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-top: 6px;
  text-transform: uppercase;
}
.svc__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}
.svc__more {
  margin-top: auto; padding-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.svc__cell:hover .svc__more { color: var(--ink); gap: 12px; }

/* ===== Strengths ===== */
.streng {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 980px){ .streng { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .streng { grid-template-columns: 1fr; } }
.streng__item {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.streng__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.streng__title {
  margin-top: 16px;
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.streng__body {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ===== AI / DX feature section ===== */
.aidx {
  background: var(--ink);
  color: var(--on-accent);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .aidx {
  background: #18181b;
  border: 1px solid var(--line);
}
.aidx__bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(255,255,255,.04), transparent 60%);
  pointer-events: none;
}
.aidx__inner { position: relative; z-index: 2; }
.aidx .eyebrow { color: rgba(241,237,228,.6); }
.aidx .eyebrow::before { background: rgba(241,237,228,.6); }
.aidx__title {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  text-wrap: balance;
  max-width: 22ch;
}
.aidx__lede {
  margin-top: 24px;
  color: rgba(241,237,228,.78);
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.95;
}
.aidx__grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(241,237,228,.12);
}
@media (max-width: 880px){ .aidx__grid { grid-template-columns: 1fr; } }
.aidx__cell {
  padding: 32px 28px;
  border-right: 1px solid rgba(241,237,228,.12);
  border-bottom: 1px solid rgba(241,237,228,.12);
}
.aidx__cell:last-child { border-right: none; }
@media (max-width: 880px){ .aidx__cell { border-right:none; } }
.aidx__cell h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
}
.aidx__cell p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(241,237,228,.7);
}
.aidx__cell .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(241,237,228,.5);
  margin-bottom: 14px;
}

/* ===== Works / case studies ===== */
.work {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
}
.work:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.work__img {
  grid-column: span 6;
  aspect-ratio: 4 / 3;
}
.work__body {
  grid-column: span 6;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
}
.work:nth-child(even) .work__img { order: 2; }
@media (max-width: 880px){
  .work__img, .work__body { grid-column: span 12; }
  .work:nth-child(even) .work__img { order: 0; }
}

.work__meta {
  display:flex; gap: 18px; align-items: center;
  font-family: var(--mono);
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em;
}
.work__meta i {
  font-style:normal; padding: 4px 10px; border:1px solid var(--line);
  border-radius: 999px;
}
.work__title {
  margin: 18px 0 0;
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-wrap: balance;
}
.work__challenge {
  margin-top: 28px;
  display: grid; grid-template-columns: 80px 1fr; gap: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}
.work__challenge span:first-child {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  padding-top: 4px;
}
.work__challenge p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ink-2); }

.work__results {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}
.work__results .stat__num { font-size: clamp(22px, 2.6vw, 32px); }

/* ===== Process flow ===== */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px){ .flow { grid-template-columns: 1fr; } }
.flow__step {
  padding: 32px 24px 36px;
  border-right: 1px solid var(--line);
  position: relative;
}
.flow__step:last-child { border-right: none; }
@media (max-width: 880px){
  .flow__step { border-right: none; border-bottom: 1px solid var(--line); }
  .flow__step:last-child { border-bottom: none; }
}
.flow__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.flow__name {
  margin-top: 36px;
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.flow__name small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 6px;
}
.flow__desc {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: none; }
.faq__head {
  width: 100%;
  padding: 28px 8px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 20px;
  align-items: center;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--ink);
}
.faq__q-num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em; }
.faq__q-text {
  font-family: var(--sans-jp);
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 19px);
  letter-spacing: -0.005em;
}
.faq__icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  justify-self: end;
}
.faq__icon::before, .faq__icon::after {
  content:""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%,-50%);
  transition: transform .35s var(--ease);
}
.faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--ink); border-color: var(--ink); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: var(--on-accent); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%,-50%) rotate(0); }
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.faq__body > div { overflow: hidden; }
.faq__item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__body p {
  margin: 0;
  padding: 0 56px 28px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.9;
}

/* ===== CTA banner ===== */
.cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  padding: clamp(48px, 6vw, 96px) 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 880px){ .cta { grid-template-columns: 1fr; } }
.cta__title {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.cta__side { display:flex; flex-direction: column; gap: 18px; }
.cta__phone {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.02em;
}
.cta__phone small {
  display: block;
  font-family: var(--sans-jp);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

/* ===== Footer ===== */
.foot {
  background: var(--bg-2);
  padding: clamp(60px, 8vw, 100px) var(--pad) 32px;
  border-top: 1px solid var(--line);
}
.foot__grid {
  max-width: var(--container); margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 880px){ .foot__grid { grid-template-columns: 1fr 1fr; } }
.foot__brand .nav__logo-text { font-size: 13px; }
.foot__brand p { margin-top: 16px; font-size: 12px; color: var(--ink-3); line-height: 1.85; max-width: 36ch; }

.foot__col h5 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot__col li { font-size: 13px; }
.foot__col a { font-size: 13px; color: var(--ink); }
.foot__col a:hover { color: var(--ink-3); }

.foot__bot {
  max-width: var(--container); margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em;
}
@media (max-width: 640px){ .foot__bot { flex-direction: column; gap: 12px; } }

/* ===== Page hero (sub pages) ===== */
.phero {
  padding: 160px var(--pad) 60px;
  border-bottom: 1px solid var(--line);
}
.phero__inner { max-width: var(--container); margin-inline: auto; }
.phero__crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.phero__title {
  margin: 28px 0 0;
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.phero__title small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 14px;
}
.phero__sub {
  margin-top: 28px;
  max-width: 60ch;
  font-size: 16px; line-height: 1.9; color: var(--ink-2);
}

/* ===== Service detail blocks (Services page) ===== */
.svc-detail {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  padding: clamp(60px, 7vw, 110px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.svc-detail:first-of-type { border-top: none; }
@media (max-width: 880px){ .svc-detail { grid-template-columns: 1fr; gap: 36px; } }

.svc-detail__lead h3 {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 18px 0 0;
}
.svc-detail__lead h3 small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
}
.svc-detail__lead .price {
  margin-top: 36px;
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--sans);
}
.svc-detail__lead .price b { font-size: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.svc-detail__lead .price span { font-size: 12px; color: var(--ink-3); }

.svc-detail__body p {
  font-size: 15px; line-height: 1.9; color: var(--ink-2); margin: 0 0 24px;
}
.svc-detail__deliver {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.svc-detail__deliver h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.svc-detail__deliver ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
@media (max-width: 560px){ .svc-detail__deliver ul { grid-template-columns: 1fr; } }
.svc-detail__deliver li {
  font-size: 14px; color: var(--ink); display: flex; align-items: baseline; gap: 10px;
}
.svc-detail__deliver li::before {
  content: ""; width: 6px; height: 6px; background: var(--ink); border-radius: 1px;
  flex-shrink: 0; transform: translateY(-2px);
}

/* ===== Company info (table) ===== */
.info {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.info__row {
  display: grid; grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  gap: 32px;
}
.info__row:last-child { border-bottom: none; }
@media (max-width: 640px){ .info__row { grid-template-columns: 1fr; gap: 6px; } }
.info__row dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.info__row dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink);
}
.info__row dd ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* ===== Privacy policy ===== */
.policy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(48px, 7vw, 96px);
}
@media (max-width: 880px){ .policy-layout { grid-template-columns: 1fr; } }

.policy-meta {
  position: sticky;
  top: 120px;
  align-self: start;
}
@media (max-width: 880px){ .policy-meta { position: static; } }

.policy-meta h2 {
  font-family: var(--sans-jp);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 18px 0 28px;
}
.policy-meta p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}

.policy-body {
  border-top: 1px solid var(--ink);
}
.policy-section {
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.policy-section h3 {
  font-family: var(--sans-jp);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
}
.policy-section p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.policy-section p:last-child { margin-bottom: 0; }
.policy-contact .info { margin-top: 28px; }
.policy-contact .info__row { grid-template-columns: 160px 1fr; }
@media (max-width: 640px){ .policy-contact .info__row { grid-template-columns: 1fr; } }

/* ===== Contact form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
}
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-side {
  position: sticky; top: 120px; align-self: start;
}
@media (max-width: 880px) {
  .contact-side { position: static; }
}
.contact-side h4 {
  font-family: var(--sans-jp);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}
.contact-side p { font-size: 14px; line-height: 1.9; color: var(--ink-2); margin: 0; }
.contact-side .big-phone {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.contact-side .big-phone span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.contact-side .big-phone b {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.contact-side .big-phone i { font-style:normal; font-size: 12px; color: var(--ink-3); display:block; margin-top: 4px; }

.field { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-family: var(--sans-jp);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.field label .req {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--on-accent);
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.field label .opt {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
  color: var(--ink);
  outline: none;
  transition: border-color .25s var(--ease);
  resize: vertical;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--ink);
}
.field textarea { min-height: 140px; }
.field .err { font-size: 12px; color: #c8362c; }
[data-theme="dark"] .field .err { color: #ff6b5e; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 640px){ .form-row { grid-template-columns: 1fr; } }

.checkbox-row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
  margin: 12px 0 32px;
}
.checkbox-row input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); }

.success {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  background: var(--surface);
}
.success h3 {
  font-family: var(--sans-jp);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.success p { color: var(--ink-2); font-size: 15px; line-height: 1.85; max-width: 50ch; margin: 0 auto; }
.success .check {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--ink); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* logo color dots used in nav (logo SVG already has these) */
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
[data-theme="dark"] .logo-mark .word { fill: var(--ink); }

/* mini logo word for footer */
.brand-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-row .ja {
  font-family: var(--sans-jp);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.06em;
}
