/* =========================================================
   AInhouse — shared stylesheet (multi-page)
   Used by every page (index / about / services / works /
   company / contact). Add a new page by reusing the same
   nav / footer markup and linking this file.
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-bg: #1B1E23;
  --gray-mid: #2A2F36;
  --gray-line: rgba(255,255,255,0.15);
  --gray-text: rgba(255,255,255,0.7);
  --gray-sub: rgba(255,255,255,0.5);
  --pink: #E06666;
  --pink-dark: #c74e4e;
  --pink-light: #F6D4D4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Hard viewport guard: clip any horizontal overflow so a stray wide element
     — including the fixed-position nav/menu during the brief pre-layout load
     state — can never produce a horizontal scrollbar. `clip` (unlike `hidden`)
     does not create a scroll container, so position:sticky keeps working. */
  overflow-x: clip;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* CJK wrapping: `normal` lets Japanese runs break between characters
     (with `line-break: strict` keeping kinsoku rules intact) so long titles
     never overflow / get clipped on narrow viewports. `overflow-wrap: anywhere`
     also lets long Latin strings (emails, URLs) and grid/flex items shrink
     below their content width instead of forcing horizontal overflow. */
  word-break: normal;
  line-break: strict;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
button { font-family: inherit; }

/* ===== Keyboard focus (visible ring for keyboard users) ===== */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
/* Text inputs clear the outline on the mouse path, so restore a clear ring
   specifically for keyboard focus (higher specificity than the base rule). */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-bottom-color: var(--pink);
}

/* ===== Skip link (first tab stop on every page) ===== */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--pink);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transform: translateY(-150%);
  transition: transform 0.25s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ===== Typography ===== */
.t-xxl {
  font-size: clamp(3.5rem, 9.5vw, 10rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.t-xl {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.t-l {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-m {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.7;
}
.t-body { font-size: 1rem; font-weight: 500; line-height: 1.7; }
.t-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

em.accent { font-style: normal; color: var(--pink); }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 140px 0;
  position: relative;
}

.section-head { margin-bottom: 80px; }
.section-head__label {
  display: block;
  color: var(--pink);
  margin-bottom: 24px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.nav__left, .nav__right { display: flex; pointer-events: auto; }

/* Logo lives in a white box so the dark/pink logo art is legible
   over the dark hero. */
.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 22px;
  background: var(--white);
  transition: background 0.3s, opacity 0.3s;
}
.nav__logo img { height: 32px; width: auto; display: block; }
.nav__logo:hover { opacity: 0.78; }

/* Menu button is the pink accent next to the logo. */
.nav__menu-btn {
  height: 64px;
  width: 64px;
  background: var(--pink);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}
.nav__menu-btn:hover { background: var(--black); color: var(--white); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 28px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}
.nav__cta:hover { background: var(--pink); opacity: 1; }
.nav__cta svg { width: 16px; height: 16px; }

/* ===== Menu Panel ===== */
.menu-panel {
  position: fixed;
  inset: 0;
  background: var(--gray-bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* top: clear the fixed logo (top 24px + 64px height); bottom: leave half a
     viewport so the last item can be scrolled up to the vertical center. */
  padding: 140px 40px 50vh;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  overflow-y: auto;
}
.menu-panel.open { transform: translateY(0); }
.menu-panel ul { list-style: none; max-width: 1600px; margin: 0 auto; width: 100%; }
.menu-panel ul li { border-bottom: 1px solid var(--gray-line); }
.menu-panel ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: color 0.3s, padding-left 0.3s;
}
.menu-panel ul li a:hover { color: var(--pink); padding-left: 24px; opacity: 1; }
/* Current page indicator (accessible + visual) */
.menu-panel ul li a[aria-current="page"] { color: var(--pink); }
.menu-panel ul li a span { font-size: 0.85rem; font-weight: 500; opacity: 0.5; letter-spacing: 0.1em; }

/* ===== Hero (home) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 180px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  display: inline-block;
  padding: 10px 18px;
  background: var(--pink);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero__title { margin-bottom: 56px; max-width: 1400px; }
.hero__meta {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero__desc { color: rgba(255,255,255,0.85); max-width: 680px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* ===== Page hero (sub pages) ===== */
.page-hero {
  padding: 200px 0 84px;
  position: relative;
  border-bottom: 1px solid var(--gray-line);
  overflow: hidden;
}
.page-hero__label { color: var(--pink); display: block; margin-bottom: 24px; }
.page-hero__title { margin-bottom: 28px; }
.page-hero__lead { color: var(--gray-text); max-width: 740px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--pink { background: var(--pink); color: var(--black); }
.btn--pink:hover { background: var(--white); opacity: 1; }
.btn--outline { background: transparent; color: var(--white); border: 2px solid var(--white); padding: 18px 30px; }
.btn--outline:hover { background: var(--white); color: var(--black); opacity: 1; }

/* ===== Marquee ===== */
.marquee {
  padding: 32px 0;
  background: var(--pink);
  color: var(--black);
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}
/* Constant pace — linear + infinite, no scroll coupling. */
.marquee__inner { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-right: 56px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.marquee__item::after { content: '✦'; display: inline-block; font-size: 1em; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.about__label { color: var(--pink); }
.about__intro { position: sticky; top: 120px; }
.about__logo { display: block; width: clamp(130px, 14vw, 190px); height: auto; margin-top: 32px; }
.about__title { margin-bottom: 48px; }
.about__desc { color: var(--gray-text); max-width: 900px; }
.about__desc p { margin-bottom: 24px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.8; }

/* ===== Vision band (full-width visual — about page) ===== */
.vision-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 50vw, 660px);
  overflow: hidden;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.vision-band__media { position: absolute; inset: 0; z-index: 0; }
.vision-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the node network (centre-right of the art) in frame while the
     left stays dark for the overlaid statement */
  object-position: 70% 50%;
  opacity: 0.9;
}
.vision-band__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.5) 44%, rgba(0,0,0,0.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0.55) 100%);
}
.vision-band__inner { position: relative; z-index: 1; width: 100%; }
.vision-band__label { color: var(--pink); display: block; margin-bottom: 22px; }
.vision-band__title { max-width: 760px; }
@media (max-width: 640px) {
  .vision-band { min-height: 360px; }
  .vision-band__media::after {
    background:
      linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.55) 58%, rgba(0,0,0,0.3) 100%),
      linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
  }
}

/* ===== Services ===== */
.services { background: var(--gray-bg); }
.services__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.services__header > div:first-child { flex: 1; min-width: 280px; }
.services__list { list-style: none; }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 60px;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--gray-line);
  transition: padding 0.4s, background 0.4s;
  cursor: pointer;
}
.service-row:last-child { border-bottom: 1px solid var(--gray-line); }
.service-row:hover { padding-left: 24px; padding-right: 24px; background: rgba(224,102,102,0.04); }
.service-row__num { font-size: 0.95rem; font-weight: 700; color: var(--pink); letter-spacing: 0.1em; }
.service-row__main { display: flex; flex-direction: column; }
.service-row__product {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pink);
  margin-bottom: 10px;
}
.service-row__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.service-row:hover .service-row__title { color: var(--pink); }
.service-row__desc { color: var(--gray-text); font-size: 1rem; line-height: 1.6; }
.service-row__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
  font-size: 1.5rem;
}
.service-row:hover .service-row__arrow {
  background: var(--pink);
  color: var(--black);
  border-color: var(--pink);
  transform: rotate(-45deg);
}

/* ===== CTA band ===== */
.cta { text-align: center; position: relative; overflow: hidden; }
/* code-only ambient background (no image asset): faint grid + bottom pink glow.
   Layered in ::after because .section::before is already the global center glow. */
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(60% 55% at 50% 100%, rgba(224,102,102,0.18) 0%, rgba(224,102,102,0) 70%),
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 100%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 120% at 50% 100%, #000 0%, transparent 72%);
}
.cta__inner { max-width: 920px; margin: 0 auto; }
.cta__title { margin-bottom: 24px; }
.cta__desc { color: var(--gray-text); margin-bottom: 44px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Benefits ===== */
.benefits__list { display: flex; flex-direction: column; }
.benefit-item {
  display: grid;
  grid-template-columns: 140px 1fr 2fr;
  gap: 40px;
  padding: 56px 0;
  border-top: 1px solid var(--gray-line);
  align-items: start;
  transition: padding 0.4s, background 0.4s;
}
.benefit-item:last-child { border-bottom: 1px solid var(--gray-line); }
.benefit-item:hover { padding-left: 24px; padding-right: 24px; background: rgba(255,255,255,0.02); }
.benefit-item__num { font-size: 2.5rem; font-weight: 900; color: var(--pink); line-height: 1; letter-spacing: -0.02em; }
.benefit-item__title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.01em; }
.benefit-item__desc { color: var(--gray-text); font-size: 1.1rem; line-height: 1.7; }

/* ===== Flow ===== */
.flow { background: var(--gray-bg); }
.flow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.flow__step {
  padding: 40px 32px;
  background: var(--black);
  position: relative;
  transition: transform 0.3s, background 0.3s;
  border: 1px solid transparent;
}
.flow__step:hover { transform: translateY(-8px); border-color: var(--pink); }
.flow__step-num { font-size: 4.5rem; font-weight: 900; color: var(--pink); line-height: 1; margin-bottom: 32px; letter-spacing: -0.03em; }
.flow__step-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.flow__step-desc { color: var(--gray-text); font-size: 0.95rem; line-height: 1.7; }

/* ===== Works ===== */
.works__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 96px;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.stat { padding: 56px 24px; border-right: 1px solid rgba(255,255,255,0.2); transition: background 0.3s; }
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(224,102,102,0.05); }
.stat__num {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.stat__label { color: var(--gray-text); font-size: 0.95rem; line-height: 1.5; }

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
  display: block;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  opacity: 0.5;
}
.work-card:hover { opacity: 1; }
.work-card:hover img { transform: scale(1.08); opacity: 0.35; }
.work-card__overlay {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
}
.work-card__tag {
  display: inline-block;
  padding: 8px 14px;
  background: var(--pink);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
}
.work-card__title {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.capabilities { margin-top: 96px; padding-top: 64px; border-top: 1px solid var(--gray-line); }
.capabilities__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 32px;
}
.capabilities__list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.capability {
  padding: 12px 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.capability:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ===== Client logos ===== */
.clients {
  padding: 80px 0;
  border-top: 1px solid var(--gray-line);
  margin-top: 96px;
}
.clients__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  display: block;
  margin-bottom: 48px;
}
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-line);
  border-left: 1px solid var(--gray-line);
  list-style: none;
}
.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 32px;
  border-right: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  transition: background 0.35s;
}
/* Hover lightens the cell to a soft white so the logo's true colours
   (including dark/black artwork) become clearly legible. */
.client-item:hover { background: rgba(255,255,255,0.9); }
.client-item__logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  /* uniform light treatment on the dark grid at rest */
  filter: grayscale(100%) brightness(2);
  opacity: 0.7;
  transition: filter 0.35s, opacity 0.35s;
}
/* Dark artwork (black / charcoal logos) disappears on the dark grid, so flip
   it to light at rest. Hover still restores the true colours on the white cell. */
.client-item__logo--dark { filter: grayscale(100%) invert(1); opacity: 0.8; }
.client-item:hover .client-item__logo {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}
.client-item__name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-sub);
  text-align: center;
  line-height: 1.4;
  transition: color 0.35s;
}
.client-item:hover .client-item__name { color: #111; }

@media (max-width: 1024px) {
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .client-item { padding: 32px 20px; }
  .client-item__logo { height: 36px; max-width: 110px; }
}
@media (max-width: 640px) {
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .client-item { padding: 28px 16px; }
  .client-item__logo { height: 32px; max-width: 100px; }
}

/* ===== News / Seminar ===== */
.coming { background: var(--gray-bg); }
.coming__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.coming__card {
  padding: 80px 48px;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: border-color 0.3s, transform 0.3s;
}
.coming__card:hover { border-color: var(--pink); transform: translateY(-8px); }
.coming__card-label { color: var(--pink); margin-bottom: 16px; display: block; }
.coming__card-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.coming__card-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-sub);
}
.coming__card-status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

/* ===== Contact ===== */
.contact__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact__intro h2 { margin-top: 16px; margin-bottom: 32px; }
.contact__intro p { color: var(--gray-text); max-width: 480px; margin-bottom: 32px; }
.contact__email { font-size: 1.4rem; font-weight: 700; color: var(--pink); letter-spacing: -0.01em; }
.contact__form { display: flex; flex-direction: column; gap: 28px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.form-group label .optional { color: var(--gray-sub); margin-left: 8px; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.1rem;
  font-family: inherit;
  padding: 14px 0;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--pink); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-checkboxes { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 8px; }
.form-checkboxes label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
}
.form-checkboxes input[type="checkbox"] { accent-color: var(--pink); width: 18px; height: 18px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 40px;
  background: var(--pink);
  color: var(--black);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s;
  align-self: flex-start;
  margin-top: 16px;
}
.form-submit svg { width: 18px; height: 18px; transition: transform 0.3s; }
.form-submit:hover { background: var(--white); }
.form-submit:hover svg { transform: translate(2px, -2px); }
.form-privacy { font-size: 0.85rem; color: var(--gray-sub); margin-top: 8px; }
.form-privacy a { color: var(--pink); text-decoration: underline; }
/* Honeypot field — kept off-screen for humans, still reachable for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit:disabled { opacity: 0.5; cursor: default; }
.form-status { font-size: 0.95rem; line-height: 1.5; min-height: 1.5em; }
.form-status.is-success { color: #6BD58F; }
.form-status.is-error { color: var(--pink); }

/* ===== Company ===== */
.company { background: var(--gray-bg); }
.company__table { width: 100%; max-width: 900px; border-collapse: collapse; margin-top: 0; }
.company__table tr { border-top: 1px solid var(--gray-line); }
.company__table tr:last-child { border-bottom: 1px solid var(--gray-line); }
.company__table th, .company__table td { text-align: left; padding: 28px 0; vertical-align: top; }
.company__table th {
  width: 240px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
}
.company__table td { font-size: 1.15rem; font-weight: 500; }

/* ===== Legal (privacy policy / terms) ===== */
.legal { max-width: 880px; }
.legal__lead { color: var(--gray-text); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.9; margin-bottom: 16px; }
.legal__article { padding: 40px 0; border-top: 1px solid var(--gray-line); }
.legal__article:first-of-type { border-top: none; padding-top: 8px; }
.legal__article:last-child { border-bottom: 1px solid var(--gray-line); }
.legal__article-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.legal__article-title span { color: var(--pink); margin-right: 12px; }
.legal__article p { color: var(--gray-text); font-size: 1.05rem; line-height: 1.85; margin-bottom: 16px; }
.legal__article p:last-child { margin-bottom: 0; }
.legal__article ul { list-style: none; margin: 4px 0 16px; }
.legal__article ul li {
  position: relative;
  color: var(--gray-text);
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 8px 0 8px 28px;
}
.legal__article ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}
.legal__article a { color: var(--pink); border-bottom: 1px solid currentColor; }
.legal__contact-block {
  margin-top: 8px;
  padding: 24px 28px;
  border: 1px solid var(--gray-line);
  border-radius: 6px;
}
.legal__contact-block p { margin-bottom: 4px; }
.legal__contact-block .legal__contact-name { color: var(--white); font-weight: 700; }

/* ===== Footer ===== */
.footer { background: var(--black); padding: 100px 0 40px; border-top: 1px solid var(--gray-line); overflow-x: clip; }
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 100px;
  flex-wrap: wrap;
}
.footer__brand { flex: 1; min-width: 280px; max-width: 420px; }
.footer__brand-desc { color: var(--gray-text); line-height: 1.7; }
.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 48px;
}
.footer__col h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 24px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer__col a { color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500; transition: color 0.3s; }
.footer__col a:hover { color: var(--pink); opacity: 1; }
.footer__big {
  font-size: clamp(4rem, 13vw, 15rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 60px;
  overflow: hidden;
}
.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gray-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-sub);
}
.footer__bottom a { color: inherit; }
.footer__bottom a:hover { color: var(--pink); opacity: 1; }

/* ===== Inline icons (service rows / benefits / flow) ===== */
.service-row__num { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.svc-icon { width: 30px; height: 30px; color: rgba(255,255,255,0.5); transition: color 0.35s; }
.service-row:hover .svc-icon { color: var(--pink); }

.benefit-item__num { display: flex; flex-direction: column; gap: 18px; }
.benefit-icon { width: 38px; height: 38px; color: rgba(255,255,255,0.85); transition: color 0.35s; }
.benefit-item:hover .benefit-icon { color: var(--pink); }

.flow__step .flow-icon {
  position: absolute;
  top: 40px;
  right: 32px;
  width: 34px;
  height: 34px;
  color: var(--gray-line);
  transition: color 0.35s, transform 0.35s;
}
.flow__step:hover .flow-icon { color: var(--pink); transform: translateY(-2px); }
@media (max-width: 640px) {
  .flow__step .flow-icon { top: 36px; right: 24px; }
}

/* ===== Sub-page hero: code-only ambient background (no image asset) ===== */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 110% at 78% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 110% at 78% 0%, #000 0%, transparent 72%);
  opacity: 0.6;
}
.page-hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -32%;
  right: -8%;
  width: 52vw;
  max-width: 760px;
  height: 52vw;
  max-height: 760px;
  background: radial-gradient(circle, rgba(224,102,102,0.16) 0%, rgba(224,102,102,0) 66%);
}
.page-hero > .container { position: relative; z-index: 1; }

/* ===== Brand icons (Tools & Platforms) ===== */
.capability { display: inline-flex; align-items: center; gap: 9px; }
.capability__icon { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ===== Detail icons (News/Seminar, contact, stats) ===== */
.coming__card { position: relative; overflow: hidden; }
.coming-icon {
  position: absolute;
  top: 44px;
  right: 44px;
  width: 52px;
  height: 52px;
  color: var(--gray-line);
  transition: color 0.35s, transform 0.35s;
}
.coming__card:hover .coming-icon { color: var(--pink); transform: scale(1.06); }

.contact__email { display: flex; align-items: center; gap: 12px; }
.contact__email svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact__reply {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--gray-sub);
  font-size: 0.9rem;
}
.contact__reply svg { width: 16px; height: 16px; color: var(--pink); flex-shrink: 0; }

.stat-icon { width: 22px; height: 22px; color: var(--pink); margin-bottom: 14px; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Premium loader (home only) ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transition: clip-path 1.3s cubic-bezier(0.83, 0, 0.17, 1) 0.4s, opacity 0.4s ease 1.6s;
  clip-path: inset(0 0 0 0);
}
.loader.done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.loader__brand {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--white);
  overflow: hidden;          /* clips spans + image at translateY(110%) */
  display: flex;
  align-items: center;
}
/* Text chars: clipped by the parent row (translateY slides up into view) */
.loader__brand span {
  display: inline-block;
  transform: translateY(110%);
  animation: loaderCharIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.loader__brand span:nth-child(2) { animation-delay: 0.05s; }
.loader__brand span:nth-child(3) { animation-delay: 0.10s; }
.loader__brand span:nth-child(4) { animation-delay: 0.15s; }
.loader__brand span:nth-child(5) { animation-delay: 0.20s; }
.loader__brand span:nth-child(6) { animation-delay: 0.25s; color: var(--pink); }
.loader__brand span:nth-child(7) { animation-delay: 0.30s; color: var(--pink); }
.loader__brand span:nth-child(8) { animation-delay: 0.35s; color: var(--pink); }
.loader__brand span:nth-child(9) { animation-delay: 0.40s; color: var(--pink); }
/* Logo image: own overflow-clip wrapper via ::after trick not needed —
   we clip the img itself with overflow:hidden on a wrapping span inserted
   in HTML. CSS clips on replaced elements work the same way. */
.loader__logo-img {
  display: block;
  height: 0.65em;   /* matches visual cap-height of the wordmark */
  width: auto;
  margin-right: 0.4em;
  transform: translateY(110%);
  animation: loaderCharIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.52s forwards;
  /* the parent .loader__brand clips this at 110% too, same as the spans */
  will-change: transform;
  /* prevent empty alt text box flashing before the CDN image loads */
  vertical-align: middle;
}
@keyframes loaderCharIn { to { transform: translateY(0); } }
.loader__bar {
  width: min(360px, 60vw);
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  border-radius: 2px;
}
.loader__bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  background: var(--pink);
  transform: translateX(-100%);
  animation: loaderBarFill 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}
@keyframes loaderBarFill { to { transform: translateX(0); } }

/* ===== Custom Cursor ===== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.3s ease,
              opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor.is-active { opacity: 1; }
/* Non-navigation hover (buttons, inputs, cards): subtle dot — the ring leads. */
.cursor.is-hovering {
  width: 18px;
  height: 18px;
  background: var(--pink);
}
/* Links to ANOTHER page: the centre dot enlarges into the big white disc. */
.cursor.is-pagelink {
  width: 64px;
  height: 64px;
  background: var(--white);
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.3s ease, border-color 0.3s ease;
  opacity: 0;
}
.cursor-ring.is-active { opacity: 1; }
.cursor-ring.is-hovering {
  width: 80px;
  height: 80px;
  border-color: var(--pink);
}
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ===== Noise overlay ===== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 101;
}
.scroll-progress__bar {
  height: 100%;
  background: var(--pink);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* ===== Parallax helpers ===== */
[data-parallax] { will-change: transform; }
.parallax-wrap { overflow: hidden; position: relative; }

/* Load-in zoom lives on the wrapper; GSAP owns the <img> transform on scroll. */
.hero__bg {
  transform: scale(1.12);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero.loaded .hero__bg { transform: scale(1); }

/* ===== Text line-reveal ===== */
.line-clip { display: block; overflow: hidden; padding-bottom: 0.05em; }
.line-clip__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-clip.in .line-clip__inner { transform: translateY(0); }
.line-clip:nth-child(2) .line-clip__inner { transition-delay: 0.08s; }
.line-clip:nth-child(3) .line-clip__inner { transition-delay: 0.16s; }
.line-clip:nth-child(4) .line-clip__inner { transition-delay: 0.24s; }

/* ===== Slide-in directions (additional reveals) ===== */
.anim-slide-up   { opacity: 0; transform: translate3d(0, 80px, 0);  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.anim-slide-left { opacity: 0; transform: translate3d(-80px, 0, 0); transition: opacity 1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.anim-slide-right{ opacity: 0; transform: translate3d(80px, 0, 0);  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.anim-scale      { opacity: 0; transform: scale(0.92);              transition: opacity 1s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.anim-fade       { opacity: 0; transition: opacity 1.2s ease; }
.anim-slide-up.in,
.anim-slide-left.in,
.anim-slide-right.in { opacity: 1; transform: translate3d(0, 0, 0); }
.anim-scale.in   { opacity: 1; transform: scale(1); }
.anim-fade.in    { opacity: 1; }

/* ===== Clip image reveal ===== */
.clip-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.clip-reveal.in { clip-path: inset(0 0 0 0); }

/* ===== Magnetic button enhancement ===== */
.magnetic { display: inline-flex; will-change: transform; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* ===== Counter ===== */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* ===== Footer big text horizontal drift ===== */
.footer__big { will-change: transform; }

/* ===== Section transitions with subtle background glow ===== */
.section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40vw;
  height: 40vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(224,102,102,0.05) 0%, rgba(224,102,102,0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.section.in-view::before { opacity: 1; }
.section > .container, .section > * { position: relative; z-index: 1; }

/* prevent layout shift on initial load */
body.is-loading { overflow: hidden; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  .section { padding: 90px 0; }
  .page-hero { padding: 160px 0 64px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__intro { position: static; }
  .flow__grid { grid-template-columns: repeat(2, 1fr); }
  .works__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.2); }
  .works__grid { grid-template-columns: 1fr; }
  .coming__grid { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; gap: 48px; }
  .benefit-item { grid-template-columns: 80px 1fr; row-gap: 16px; }
  .benefit-item__desc { grid-column: 2; }
  .service-row { grid-template-columns: 50px 1fr 48px; gap: 24px; }
  .service-row__desc { display: none; }
  .footer__top { flex-direction: column; }
  .footer__columns { grid-template-columns: 1fr 1fr; }
  .hero__meta { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .nav { top: 16px; left: 16px; right: 16px; }
  .nav__logo, .nav__menu-btn, .nav__cta { height: 56px; }
  .nav__logo { padding: 0 14px; }
  .nav__logo img { height: 24px; }
  .nav__cta { padding: 0 18px; font-size: 0.85rem; gap: 6px; }
  .nav__cta-text { display: none; }
  /* Smaller display type on phones: the big clamp() minimums (3.5rem / 2.5rem)
     are sized for desktop and would force awkward 2-char lines on a 320–390px
     screen. Scale them with the viewport so headings stay bold but fit. */
  .t-xxl { font-size: clamp(2.5rem, 12.5vw, 10rem); }
  .t-xl  { font-size: clamp(2rem, 8.5vw, 5.5rem); }
  .t-l   { font-size: clamp(1.6rem, 6.5vw, 3rem); }
  .hero { padding: 130px 24px 60px; min-height: 90vh; }
  /* Shrink only the hero H1 a touch on phones so the longest authored line
     (「マーケティングを」= 8 full-width chars) fits within the 24px side padding
     and the last character no longer wraps onto its own line. Placed after the
     .t-xxl rule above so it wins on equal specificity; scoped to .hero__title so
     the 404 "404" heading and loader keep the larger .t-xxl size. */
  .hero__title { margin-bottom: 40px; font-size: clamp(2.1rem, 10.5vw, 4rem); }
  .page-hero { padding: 130px 0 48px; }
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 48px; }
  .footer__columns { grid-template-columns: 1fr; }
  /* Decorative wordmark: pure vw so it always tracks the viewport and never
     spills past the (overflow-clipped) footer on the narrowest screens. */
  .footer__big { font-size: 15vw; margin-bottom: 40px; }
  .company__table th { width: 130px; font-size: 0.65rem; padding-right: 16px; }
  .company__table td { font-size: 1rem; }
  .flow__grid { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat:last-child { border-bottom: none; }
  .works__stats { grid-template-columns: 1fr; border: none; }
  .flow__step, .coming__card { padding: 40px 24px; min-height: auto; }
  .coming__card { min-height: 280px; }
  .menu-panel ul li a span { display: none; }
  /* Tighten the wide desktop gaps so the content column keeps real width. */
  .benefit-item {
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    row-gap: 12px;
    padding: 36px 0;
  }
  .benefit-item:hover { padding-left: 0; padding-right: 0; }
  .benefit-item__num { font-size: 1.9rem; }
  .benefit-item__desc { font-size: 1rem; }
  .service-row { gap: 16px; }
  .service-row:hover { padding-left: 0; padding-right: 0; }
  .loader__brand { font-size: clamp(2.25rem, 11vw, 8rem); }
}

/* ============================================================
   PREMIUM SCROLL LAYER
   Ambient aurora background, depth, and the pinned horizontal
   showcase. Paired with effects.js (GSAP + ScrollTrigger + Lenis).
   ============================================================ */

/* ----- Lenis smooth scroll ----- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Keep all real content above the ambient background layer */
.hero, .page-hero, .section, .vision-band, .marquee, .hscroll, .footer { position: relative; z-index: 1; }

/* ----- Ambient drifting "aurora" background (injected by effects.js) ----- */
.bg-fx {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  background: radial-gradient(125% 125% at 50% 0%, #16131c 0%, #0a0a0d 46%, #000 100%);
}
.bg-fx__tint { position: absolute; inset: 0; background-color: rgba(224,102,102,0); }
.bg-fx__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(125% 85% at 50% 28%, #000 0%, transparent 78%);
  mask-image: radial-gradient(125% 85% at 50% 28%, #000 0%, transparent 78%);
  opacity: 0.6;
}
.bg-fx__blob {
  position: absolute; border-radius: 50%;
  filter: blur(52px); opacity: 0.5;
  will-change: transform;
}
/* Blobs are static at rest (blur layer is cached) and drift only on scroll
   via GSAP — premium motion without a per-frame re-blur cost. */
.bg-fx__blob--1 {
  width: 52vw; height: 52vw; left: -10vw; top: -8vw;
  background: radial-gradient(circle, rgba(224,102,102,0.9), rgba(224,102,102,0) 62%);
}
.bg-fx__blob--2 {
  width: 46vw; height: 46vw; right: -8vw; bottom: -10vw;
  background: radial-gradient(circle, rgba(126,86,196,0.75), rgba(126,86,196,0) 62%);
}
.bg-fx__blob--3 {
  width: 40vw; height: 40vw; left: 52%; top: 36%;
  background: radial-gradient(circle, rgba(199,78,78,0.65), rgba(199,78,78,0) 64%);
}

/* ----- Pinned horizontal showcase ----- */
.hscroll { background: #0c0b10; overflow: hidden; }
.hscroll__pin { min-height: 100vh; display: flex; align-items: center; }
.hscroll__track { display: flex; align-items: stretch; gap: 28px; padding: 0 7vw; will-change: transform; }
.hpanel {
  flex: 0 0 min(78vw, 560px);
  min-height: 60vh;
  display: flex; flex-direction: column;
  padding: 56px 48px;
  background: linear-gradient(155deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  position: relative; overflow: hidden;
}
.hpanel::after {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--pink), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.hpanel:hover::after { transform: scaleX(1); }
.hpanel__num { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.2em; color: var(--pink); }
.hpanel__icon {
  width: 52px;
  height: 52px;
  margin-top: 28px;
  color: rgba(255,255,255,0.85);
  transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.hpanel:hover .hpanel__icon { color: var(--pink); transform: translateY(-4px); }
.hpanel__title { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin-top: auto; }
.hpanel__title em { font-style: normal; color: var(--pink); }
.hpanel__desc { color: var(--gray-text); font-size: 1.05rem; line-height: 1.7; margin-top: 20px; }
.hpanel--intro { background: var(--pink); color: var(--black); border-color: var(--pink); justify-content: center; }
.hpanel--intro .t-label { color: rgba(0,0,0,0.55); display: block; margin-bottom: 24px; }
.hpanel--intro h2 { margin: 0 0 24px; }
.hpanel--intro p { font-weight: 700; letter-spacing: 0.02em; }
/* On the pink intro panel the pink accent would vanish — make it stand out. */
.hpanel--intro .accent { color: var(--white); }
.hscroll--native .hscroll__pin { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 1024px) {
  .hpanel { min-height: 52vh; padding: 44px 36px; }
}
@media (max-width: 767px) {
  .hscroll { overflow: visible; }
  .hscroll__pin { min-height: auto; display: block; padding: 80px 0; }
  .hscroll__track { flex-direction: column; gap: 16px; padding: 0 20px; transform: none !important; }
  .hpanel { flex: none; width: 100%; min-height: 300px; }
}

/* ----- Honour reduced motion: kill ambient + scroll motion, stack showcase ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-fx__blob { animation: none; }
  .marquee__inner { animation: none; }
  .hero__bg { transform: none; transition: none; }
  .hscroll { overflow: visible; }
  .hscroll__pin { min-height: auto; display: block; padding: 80px 0; }
  .hscroll__track { flex-direction: column; gap: 16px; padding: 0 24px; transform: none !important; }
  .hpanel { flex: none; width: 100%; min-height: 280px; }
  /* Reveal content immediately — no slide / clip / scale / count motion. */
  .line-clip__inner,
  .anim-slide-up, .anim-slide-left, .anim-slide-right, .anim-scale, .anim-fade,
  .clip-reveal, .reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .loader__brand span, .loader__logo-img { transform: none !important; animation: none !important; }
  .coming__card-status::before { animation: none !important; }
}

/* ============================================================
   PAGE-SPECIFIC FIXES (review section B)
   Semantics / accessibility / clickable service rows / form.
   ============================================================ */

/* Visually hidden, still read by assistive tech (sr headings, captions). */
.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;
}

/* Service rows are real links now: a transparent stretched link covers the
   whole row so the existing grid + hover choreography stay untouched. */
.service-row { position: relative; }
.service-row__link { position: absolute; inset: 0; z-index: 3; }

/* Service / flow section: utility classes replacing former inline styles. */
.services__eyebrow { color: var(--pink); display: block; margin-bottom: 24px; }
.services__lead { max-width: 460px; color: var(--gray-text); }
.services__more { margin-top: 48px; }
.flow__lead { color: var(--gray-text); margin-top: 24px; max-width: 600px; }
.about__cta { margin-top: 16px; }

/* Contact form: grouped checkboxes (fieldset/legend) + explicit consent. */
.form-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-fieldset legend {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-text);
  padding: 0;
  margin-bottom: 10px;
}
.form-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-consent input[type="checkbox"] {
  accent-color: var(--pink);
  width: 18px; height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Services PAGE (not the home teaser): keep the row description on mobile. */
@media (max-width: 1024px) {
  .page-services .service-row { row-gap: 8px; }
  .page-services .service-row__desc {
    display: block;
    grid-column: 2 / -1;
    font-size: 0.95rem;
    color: var(--gray-text);
  }
}

/* ===== Breadcrumb (visible; mirrors the BreadcrumbList JSON-LD) ===== */
.breadcrumb {
  padding: 160px 0 0;            /* clears the fixed nav, like .page-hero's top padding */
  position: relative;
  z-index: 1;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--gray-text);
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.4; }
.breadcrumb a { color: var(--gray-text); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--pink); opacity: 1; }
.breadcrumb [aria-current="page"] { color: var(--white); }
/* When a breadcrumb precedes the hero, it already clears the fixed nav —
   shrink the hero's top padding so there is no double gap. */
.breadcrumb + .page-hero { padding-top: 40px; }

@media (max-width: 1024px) {
  .breadcrumb { padding-top: 128px; }
  .breadcrumb + .page-hero { padding-top: 32px; }
}
@media (max-width: 640px) {
  .breadcrumb { padding-top: 104px; }
  .breadcrumb + .page-hero { padding-top: 24px; }
  .breadcrumb ol { font-size: 0.75rem; }
}

/* ===== FAQ (no-JS accordion via <details>) ===== */
.faq__list { max-width: 980px; }
.faq__item { border-bottom: 1px solid var(--gray-line); }
.faq__item:first-child { border-top: 1px solid var(--gray-line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: "Q";
  color: var(--pink);
  font-weight: 900;
  flex: none;
}
.faq__q::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-right: 2px solid var(--gray-sub);
  border-bottom: 2px solid var(--gray-sub);
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a {
  display: flex;
  gap: 18px;
  padding: 0 0 28px;
  color: var(--gray-text);
  line-height: 1.85;
}
.faq__a::before {
  content: "A";
  color: var(--gray-sub);
  font-weight: 900;
  flex: none;
}

/* ===== Related services (sibling interlinks on service pages) ===== */
.related__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related__list a {
  display: block;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--gray-line);
  transition: border-color 0.3s, background 0.3s;
}
.related__list a:hover { border-color: var(--pink); background: rgba(224,102,102,0.04); }
.related__name { display: block; font-weight: 700; font-size: 1.1rem; }
.related__name::after { content: " ↗"; color: var(--pink); }
.related__desc { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--gray-sub); }
@media (max-width: 860px) {
  .related__list { grid-template-columns: 1fr; }
}

/* ===== Case studies: list on the works page ===== */
.cases { margin-top: 96px; padding-top: 64px; border-top: 1px solid var(--gray-line); }
.cases__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.cases__note { color: var(--gray-sub); font-size: 0.95rem; line-height: 1.7; max-width: 720px; margin-bottom: 40px; }
.cases__list { list-style: none; }
.case {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1.5fr 1fr 52px;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--gray-line);
  transition: padding 0.4s, background 0.4s;
}
.case:last-child { border-bottom: 1px solid var(--gray-line); }
.case:hover { padding-left: 24px; padding-right: 24px; background: rgba(224,102,102,0.04); }
.case > * { min-width: 0; }
.case__link { position: absolute; inset: 0; z-index: 3; }
.case__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.case__no { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; color: var(--pink); text-transform: uppercase; }
.case__tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--gray-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.case__title {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.case:hover .case__title { color: var(--pink); }
.case__key { margin-top: 12px; color: var(--gray-text); font-size: 0.95rem; line-height: 1.6; }
.case__result { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.case__result div { display: grid; grid-template-columns: 3em 1fr; gap: 12px; }
.case__result dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gray-sub); padding-top: 0.3em; }
.case__result dd { color: var(--white); font-weight: 700; line-height: 1.6; }
.case__result div + div dd { color: var(--gray-text); font-weight: 500; }
.case__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}
.case:hover .case__arrow { background: var(--pink); color: var(--black); border-color: var(--pink); transform: rotate(-45deg); }
@media (max-width: 1024px) {
  .case { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .case:hover { padding-left: 0; padding-right: 0; }
  .case__meta { flex-direction: row; align-items: center; }
  .case__arrow { display: none; }
}

/* ===== Case studies: detail pages ===== */
.case-hero .page-hero__title { max-width: 1100px; line-height: 1.3; }
.case-hero .page-hero__lead { color: var(--white); font-weight: 700; }
.case-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  margin-bottom: 24px;
}
.case-facts div { padding: 28px 24px 28px 0; min-width: 0; }
.case-facts div + div { padding-left: 24px; border-left: 1px solid var(--gray-line); }
.case-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: var(--pink); margin-bottom: 10px; }
.case-facts dd { font-size: 1.1rem; font-weight: 500; line-height: 1.6; }
.case-story { max-width: 1100px; }
.case-story__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-line);
  align-items: start;
}
.case-story__row > * { min-width: 0; }
.case-story__label { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 900; letter-spacing: 0.02em; color: var(--pink); line-height: 1.4; }
.case-story__text { color: var(--gray-text); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.95; }
.case-story__row.is-result .case-story__text {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.case-figure { margin: 72px 0 0; }
.case-figure img { width: 100%; height: auto; background: var(--white); }
.case-figure figcaption { margin-top: 14px; color: var(--gray-sub); font-size: 0.85rem; letter-spacing: 0.06em; }
.case-note { margin-top: 40px; color: var(--gray-sub); font-size: 0.9rem; }
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 72px; }
.case-nav a { display: block; padding: 28px; border: 1px solid var(--gray-line); transition: border-color 0.3s, background 0.3s; min-width: 0; }
.case-nav a:hover { border-color: var(--pink); background: rgba(224,102,102,0.04); opacity: 1; }
.case-nav a.is-next { text-align: right; }
.case-nav__dir { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--pink); margin-bottom: 10px; }
.case-nav__name { display: block; font-weight: 700; line-height: 1.5; }
@media (max-width: 860px) {
  .case-facts { grid-template-columns: 1fr; }
  .case-facts div { padding: 20px 0; }
  .case-facts div + div { padding-left: 0; border-left: none; border-top: 1px solid var(--gray-line); }
  .case-story__row { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav a.is-next { text-align: left; }
}

/* ===== Proof: three lead cases on the home page ===== */
.proof__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proof-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 44px 36px 36px;
  background: var(--gray-bg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s, transform 0.3s;
}
.proof-card:hover { border-color: var(--pink); transform: translateY(-8px); }
.proof-card__link { position: absolute; inset: 0; z-index: 3; }
.proof-card__tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; color: var(--pink); }
.proof-card__insight { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 700; line-height: 1.75; }
.proof-card__result {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--gray-line);
  color: var(--pink);
  font-weight: 800;
  line-height: 1.7;
}
.proof-card__more { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gray-sub); transition: color 0.3s; }
.proof-card:hover .proof-card__more { color: var(--white); }
.proof__more { margin-top: 48px; }
@media (max-width: 1024px) {
  .proof__grid { grid-template-columns: 1fr; }
  .proof-card { padding: 36px 24px 28px; }
  .proof-card:hover { transform: none; }
}

/* ===== LPO pass ===== */
/* Strengths: a plain grid instead of the pinned horizontal scroll */
.strengths { background: #0c0b10; }
.strengths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strengths .hpanel { flex: none; min-height: 320px; padding: 44px 36px; }
.strengths .hpanel--intro h2 { margin: 0; }
@media (max-width: 1024px) { .strengths__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .strengths__grid { grid-template-columns: 1fr; }
  .strengths .hpanel { min-height: 240px; padding: 36px 24px; }
}

/* Reassurance under every CTA */
.cta__note { margin-top: 20px; color: var(--gray-sub); font-size: 0.9rem; position: relative; z-index: 1; }

/* Contact: what happens after sending */
.contact__next { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--gray-line); max-width: 480px; }
.contact__next-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: var(--pink); margin-bottom: 16px; }
.contact__steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact__steps li { display: grid; grid-template-columns: 2.6em 1fr; gap: 10px; color: var(--gray-text); line-height: 1.6; }
.contact__steps span { font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }

/* About: representative */
.founder__grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 72px; align-items: center; }
.founder__photo { margin: 0; }
.founder__photo img { width: 100%; height: auto; aspect-ratio: 538 / 808; object-fit: cover; }
.founder__title { margin-bottom: 36px; }
.founder__name { margin-top: 8px; font-size: 1.15rem; font-weight: 800; }
.founder__name span { margin-left: 14px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; color: var(--gray-sub); }
@media (max-width: 1024px) {
  .founder__grid { grid-template-columns: 1fr; gap: 40px; }
  .founder__photo { max-width: 320px; }
}

/* First view: keep the CTA above the fold on a 1280×800 laptop */
@media (min-width: 641px) {
  .hero { padding-top: 140px; padding-bottom: 64px; }
  .hero__title { font-size: clamp(3rem, 6.2vw, 6.4rem); margin-bottom: 40px; }
  .hero__eyebrow { margin-bottom: 28px; }
}
/* Strengths grid: titles sized for the card width so words don't orphan */
.strengths .hpanel__title { font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1.2; }
/* The hero is the first view: never hide its copy or buttons behind a scroll-reveal.
   (The buttons sit near the bottom edge and the reveal observer ignores the last 80px,
   so on a laptop they stayed invisible until the visitor scrolled.) */
.hero .anim-slide-up, .hero .anim-fade { opacity: 1; transform: none; }

/* Desktop header: key pages always visible (the Menu panel still lists everything).
   Below 1025px the links hide and the Menu button carries navigation, as before. */
.nav__right { align-items: stretch; }
.nav__links {
  display: flex;
  align-items: center;
  height: 64px;
  margin-right: 8px;
  padding: 0 8px;
  background: rgba(10, 10, 13, 0.72);
  border: 1px solid var(--gray-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}
.nav__link:hover { color: var(--pink); opacity: 1; }
.nav__link[aria-current="page"] { color: var(--pink); }
@media (max-width: 1024px) { .nav__links { display: none; } }
/* Phone header: the contact button keeps a word, not just an arrow */
.nav__cta-short { display: none; }
@media (max-width: 640px) { .nav__cta-short { display: inline; } }
@media (max-width: 640px) {
  .nav__cta { padding: 0 12px; white-space: nowrap; }
  .nav__logo { padding: 0 12px; }
  .nav__logo img { height: 21px; }
}

/* ===== Signature moment 1: hero word swap (最適化 → 再設計) ===== */
.hero-swap { position: relative; display: inline-block; }
.hero-swap__old { position: absolute; left: 0; top: 0; color: var(--white); opacity: 0; pointer-events: none; white-space: nowrap; }
.hero-swap__old::after {
  content: '';
  position: absolute;
  left: -3%;
  top: 54%;
  width: 106%;
  height: 0.08em;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-swap.is-armed .hero-swap__old { opacity: 1; }
.hero-swap.is-armed .hero-swap__new { opacity: 0; }
.hero-swap.is-play .hero-swap__old { animation: heroSwapOut 1.9s ease both; }
.hero-swap.is-play .hero-swap__old::after { animation: heroStrike 0.45s cubic-bezier(0.65, 0, 0.35, 1) 0.6s both; }
.hero-swap.is-play .hero-swap__new { animation: heroSwapIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.45s both; }
@keyframes heroStrike { to { transform: scaleX(1); } }
@keyframes heroSwapOut { 0%, 68% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-0.4em); } }
@keyframes heroSwapIn { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }

/* ===== Signature moment 2: proof cards ===== */
.proof-card { overflow: hidden; isolation: isolate; }
.proof-card > :not(.proof-card__bg):not(.proof-card__link) { position: relative; z-index: 1; }
.proof-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(224, 102, 102, 0.18), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.proof-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) invert(1);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.proof-card:hover::before { opacity: 1; }
.proof-card:hover .proof-card__bg { opacity: 0.12; transform: scale(1); }
.proof-card__metric {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.proof-card__metric .counter { color: var(--pink); }
.proof-card__metric-label { display: block; margin-bottom: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gray-sub); }
@media (prefers-reduced-motion: reduce) {
  .hero-swap__old { display: none; }
  .proof-card__bg, .proof-card::before { transition: none; }
}
/* keep the figure a texture, not a second text layer */
.proof-card__bg {
  background-size: 150% auto;
  background-position: 70% 0;
  filter: grayscale(1) invert(1) blur(1.5px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 35%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.5) 35%, transparent 70%);
}
.proof-card:hover .proof-card__bg { opacity: 0.07; }
/* Hero swap timing (from the moment the line has risen in):
   0–0.6s read "最適化" / 0.6–1.0s strike / 1.0–1.3s it lifts away / 1.1–1.55s "再設計" rises */
.hero-swap.is-play .hero-swap__old { animation: heroSwapOut 1.3s ease both; }
.hero-swap.is-play .hero-swap__old::after { animation: heroStrike 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.6s both; }
.hero-swap.is-play .hero-swap__new { animation: heroSwapIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both; }
@keyframes heroSwapOut { 0%, 77% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-0.4em); } }
/* transitionend arrives ~0.4s after the line looks settled (expo-out), so the
   remaining hold is short: strike 0.2–0.6s / lift 0.6–0.9s / rise 0.7–1.15s */
.hero-swap.is-play .hero-swap__old { animation: heroSwapOut 0.9s ease both; }
.hero-swap.is-play .hero-swap__old::after { animation: heroStrike 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both; }
.hero-swap.is-play .hero-swap__new { animation: heroSwapIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
@keyframes heroSwapOut { 0%, 67% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-0.4em); } }

/* ===== Hero swap v2: the struck word stays ===== */
/* Final state (also the no-JS / reduced-motion state): small grey "最適化" with a
   pink strike, then "再設計". Visitors who scroll away early still see the contrast. */
.hero-swap { position: static; display: inline; }
.hero-swap__old,
.hero-swap.is-armed .hero-swap__old,
.hero-swap.is-play .hero-swap__old { animation: none; }
.hero-swap__old::after,
.hero-swap.is-play .hero-swap__old::after { animation: none; }
.hero-swap.is-play .hero-swap__new { animation: none; }
.hero-swap__old {
  position: relative;
  display: inline-block;
  opacity: 1;
  font-size: 0.42em;
  color: var(--gray-sub);
  margin-right: 0.3em;
  vertical-align: 0.55em;
  text-decoration: none;
}
.hero-swap__old::after { transform: scaleX(1); }
.hero-swap__new { display: inline-block; opacity: 1; white-space: nowrap; }

/* Armed: looks like a plain "最適化する。" */
.hero-swap.is-armed .hero-swap__old { font-size: 1em; color: var(--white); margin-right: 0; vertical-align: 0; }
.hero-swap.is-armed .hero-swap__old::after { transform: scaleX(0); }
.hero-swap.is-armed .hero-swap__new { max-width: 0; opacity: 0; overflow: hidden; vertical-align: bottom; }

/* Play (from the moment the line has risen in):
   strike 0.2–0.6s / "最適化" shrinks aside 0.65–1.15s / "再設計" opens 0.65–1.2s */
.hero-swap.is-play .hero-swap__old::after { transform: scaleX(1); transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s; }
.hero-swap.is-play .hero-swap__old {
  font-size: 0.42em;
  color: var(--gray-sub);
  margin-right: 0.3em;
  vertical-align: 0.55em;
  transition: font-size 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.65s, color 0.5s ease 0.65s,
              margin-right 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.65s, vertical-align 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.65s;
}
.hero-swap.is-play .hero-swap__new {
  max-width: 3.2em;
  opacity: 1;
  transition: max-width 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.65s, opacity 0.4s ease 0.85s;
}
.hero-swap.is-done .hero-swap__new { overflow: visible; max-width: none; vertical-align: baseline; }
@media (prefers-reduced-motion: reduce) { .hero-swap__old { display: inline-block; } }

/* ===== Numbered clauses (term.html) ===== */
.legal__article ol { list-style: none; counter-reset: clause; margin: 4px 0 16px; padding: 0; }
.legal__article ol > li {
  counter-increment: clause; position: relative; padding-left: 2em;
  color: var(--gray-text); font-size: 1.05rem; line-height: 1.85; margin-bottom: 12px;
}
.legal__article ol > li::before { content: counter(clause) "."; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.legal__article ol > li > ul { margin: 8px 0 0; }

/* ===== Thanks page (contact_complete/) ===== */
.thanks__note { color: var(--gray-text); font-size: 1rem; line-height: 1.85; margin: 32px 0 0; }
.thanks__note a { color: var(--pink); border-bottom: 1px solid currentColor; }
.thanks__actions { margin-top: 40px; justify-content: flex-start; }
.section.thanks { padding-top: 0; }
.thanks .contact__next { margin-top: 0; padding-top: 40px; border-top: none; }

/* Contact page heading: keep 「お聞かせください。」 on one line */
.contact__intro .t-xl { font-size: clamp(2rem, 4.2vw, 3.6rem); }
