@charset "UTF-8";
/* =============================================================
   株式会社グリー・エイト コーポレートサイト
   Global Stylesheet (style.css)
   - Design tokens / reset / layout / components / pages
   - Mobile-first responsive (SP 〜767 / Tablet 768-1024 / PC 1025+)
   ============================================================= */

/* -------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------- */
:root {
  /* Surfaces (light / business-formal base) */
  --bg:           #ffffff;   /* white base */
  --bg-soft:      #f5f6f9;   /* soft grey section */
  --bg-elevated:  #ffffff;   /* card surface (with shadow) */
  --surface-2:    #eceef2;   /* subtle chip fill */
  --bg-line:      rgba(17, 20, 26, 0.10);
  --bg-line-2:    rgba(17, 20, 26, 0.16);

  /* Brand accent */
  --accent:       #f5a300;   /* brand amber (fills / lines / borders) */
  --accent-2:     #f97316;   /* brand orange */
  --accent-grad:  linear-gradient(135deg, #fbbf24 0%, #f59e0b 42%, #f97316 100%);
  --accent-soft:  rgba(245, 163, 0, 0.12);
  --accent-ink:   #c2410c;   /* deep orange — for accent TEXT/icons on light (AA contrast) */

  /* Ink text on light */
  --text:         #15181e;   /* primary ink */
  --text-soft:    #4b515b;   /* secondary */
  --text-muted:   #79808b;   /* muted / captions */
  --text-ink:     #1a1206;   /* text on accent fills */

  /* Typography */
  --font-jp:  "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en:  "Oswald", var(--font-jp);

  /* Layout */
  --container: 1280px;
  --gutter:    clamp(20px, 5vw, 40px);
  --header-h:  72px;

  /* Radius / shadow (soft, light-theme) */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px -4px rgba(20, 30, 55, 0.12);
  --shadow:    0 14px 40px -18px rgba(20, 30, 55, 0.20);
  --shadow-lg: 0 30px 70px -28px rgba(20, 30, 55, 0.28);

  /* Rich depth & ornament tokens (INFINITE GROUND direction) */
  --grid-minor: rgba(17,20,26,.025);
  --grid-major: rgba(17,20,26,.05);
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --aurora-1: rgba(245,163,0,.10);
  --aurora-2: rgba(249,115,22,.07);
  --font-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", monospace;
  --ornament-line: rgba(245,163,0,.55);
  --dur-slow: 1.1s;
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       .55s;

  /* z-index scale */
  --z-base: 1;
  --z-sticky: 20;
  --z-header: 50;
  --z-drawer: 60;
  --z-overlay: 70;
}

/* Dark "ink" surfaces on a light site — re-map tokens locally so child
   components (which read the same vars) render correctly on dark. */
.on-ink {
  --bg-line:   rgba(255, 255, 255, 0.12);
  --bg-line-2: rgba(255, 255, 255, 0.22);
  --accent-ink: var(--accent);            /* amber reads well on dark */
  --text:      #f3f4f6;
  --text-soft: #c4c8cf;
  --text-muted:#8c929c;
  color: var(--text-soft);
}

/* -------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.02em;
  overflow-x: hidden;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* 段落・リード文の CJK 折り返しを安全に */
p, li, dd, .hero__sub, .section-lead { overflow-wrap: anywhere; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; }

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

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

/* -------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 10vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }
.bg-soft {
  position: relative;
  background:
    linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(120% 90% at 90% 0%, rgba(245,163,0,.05), transparent 55%),
    #f1f3f7;
}
.bg-soft::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain-url); background-size: 160px; opacity: .035; mix-blend-mode: multiply;
}
.bg-soft > * { position: relative; z-index: 1; }
.text-center { text-align: center; }
.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;
}

/* -------------------------------------------------------------
   4. Typography utilities
   ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(.72rem, 1.4vw, .82rem);
  color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; width: var(--gline, 28px); height: 2px; flex: 0 0 auto;
  background: var(--accent-grad);
}
.eyebrow--center { justify-content: center; }

.section-title {
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-size: clamp(1.7rem, 4.4vw, 2.85rem);
  margin-top: 18px;
}
.section-title .hl { color: var(--accent-ink); }

.section-lead {
  margin-top: 22px;
  color: var(--text-soft);
  font-size: clamp(.95rem, 2vw, 1.05rem);
  max-width: 64ch;
}
.text-center .section-lead { margin-inline: auto; }

.en-deco {
  font-family: var(--font-en);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------- */
.btn {
  --pad-y: 15px; --pad-x: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: var(--pad-y) var(--pad-x);
  min-height: 48px;
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn--primary {
  background: var(--accent-grad);
  color: var(--text-ink);
  box-shadow: 0 12px 26px -12px rgba(249, 115, 22, 0.5);
}
.btn--ghost {
  border: 1.5px solid var(--bg-line-2);
  color: var(--text);
  background: transparent;
}
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(249, 115, 22, 0.6); }
  .btn--primary:hover svg { transform: translateX(4px); }
  .btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--accent-soft); }
  .btn--ghost:hover svg { transform: translateX(4px); }
}
.btn:active { transform: translateY(-1px) scale(.99); }

/* -------------------------------------------------------------
   6. Header / Navigation
   ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--bg-line);
  box-shadow: 0 8px 30px -16px rgba(20, 30, 55, 0.25);
}
/* Over a dark hero (homepage first view): light text + white logo until scrolled */
.site-header--over-dark:not(.is-scrolled) .brand__name { color: #fff; }
.site-header--over-dark:not(.is-scrolled) .brand__en { color: rgba(255,255,255,.7); }
.site-header--over-dark:not(.is-scrolled) .gnav__link { color: rgba(255,255,255,.85); }
.site-header--over-dark:not(.is-scrolled) .gnav__link.is-current { color: #fff; }
.site-header--over-dark:not(.is-scrolled) .nav-toggle__bars span { background: #fff; }
.site-header--over-dark:not(.is-scrolled) .brand__logo--default { display: none; }
.site-header--over-dark:not(.is-scrolled) .brand__logo--white { display: block; }
.site-header__inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { height: 46px; width: auto; display: block; }
.brand__logo--white { display: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 900; font-size: 1.04rem; letter-spacing: .04em; }
.brand__en { font-family: var(--font-en); font-weight: 500; font-size: .62rem; letter-spacing: .28em; color: var(--text-muted); text-transform: uppercase; }

.gnav { display: none; }
.gnav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.gnav__link {
  position: relative; font-weight: 500; font-size: .94rem;
  padding-block: 8px; color: var(--text-soft);
}
.gnav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
@media (hover: hover) { .gnav__link:hover { color: var(--text); } .gnav__link:hover::after { transform: scaleX(1); } }
.gnav__link.is-current { color: var(--text); }
.gnav__link.is-current::after { transform: scaleX(1); }

.header__cta { display: none; }

/* Hamburger */
.nav-toggle {
  position: relative; z-index: calc(var(--z-drawer) + 1);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 10px;
}
.nav-toggle__bars { position: relative; width: 24px; height: 16px; }
.nav-toggle__bars span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease), background .25s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }
body.nav-open .nav-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); background: var(--accent); }
body.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); background: var(--accent); }

/* Drawer (mobile / tablet) */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: linear-gradient(165deg, #ffffff 0%, #f5f6f9 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: max(var(--header-h), 90px) var(--gutter) 48px;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
body.nav-open .drawer { transform: translateX(0); visibility: visible; }
.drawer__list { display: flex; flex-direction: column; gap: 4px; }
.drawer__link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 8px; font-size: 1.5rem; font-weight: 700;
  border-bottom: 1px solid var(--bg-line);
  opacity: 0; transform: translateY(20px);
}
body.nav-open .drawer__link { animation: drawerIn .5s var(--ease) forwards; }
.drawer__link .num { font-family: var(--font-en); font-size: .85rem; color: var(--accent-ink); font-weight: 600; }
.drawer__link .en { display: block; font-family: var(--font-en); font-size: .68rem; letter-spacing: .2em; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
@media (hover: hover) { .drawer__link:hover { color: var(--accent); } }
.drawer__cta { margin-top: 36px; }
.drawer__contact { margin-top: 28px; color: var(--text-muted); font-size: .9rem; }
.drawer__contact a { color: var(--text); font-family: var(--font-en); font-size: 1.3rem; font-weight: 600; }

@keyframes drawerIn { to { opacity: 1; transform: translateY(0); } }
.scroll-lock { overflow: hidden; }

/* Drawer close button (hamburger hides while open to avoid a double icon) */
.drawer__close {
  position: absolute; top: clamp(16px, 3vw, 26px); right: clamp(16px, 5vw, 40px); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: var(--bg-soft); border: 1px solid var(--bg-line-2);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease);
}
.drawer__close svg { width: 22px; height: 22px; }
@media (hover: hover) { .drawer__close:hover { color: var(--accent-ink); border-color: var(--accent-ink); transform: rotate(90deg); } }
body.nav-open .nav-toggle { opacity: 0; visibility: hidden; pointer-events: none; }

/* -------------------------------------------------------------
   7. Hero (top page)
   ------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; z-index: -2; }
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(255, 138, 0, 0.16), transparent 55%),
    radial-gradient(90% 80% at 10% 90%, rgba(255, 177, 0, 0.10), transparent 55%),
    var(--bg);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 35%, transparent 100%);
          mask-image: radial-gradient(70% 70% at 50% 40%, #000 35%, transparent 100%);
}
.hero__infinity {
  position: absolute; z-index: -1;
  right: -6%; top: 50%; transform: translateY(-50%);
  width: min(60vw, 720px); opacity: .9;
  filter: drop-shadow(0 0 60px rgba(255, 138, 0, .25));
  pointer-events: none;
}
.hero__content { position: relative; width: 100%; min-width: 0; max-width: 880px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border: 1px solid var(--bg-line-2);
  border-radius: 999px; font-size: .82rem; color: var(--text-soft);
  background: rgba(255,255,255,.03); backdrop-filter: blur(6px);
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__title {
  margin-top: 26px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; }
.hero__title .hl { color: transparent; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; }
.hero__sub {
  margin-top: 28px; max-width: 56ch;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--text-soft); line-height: 1.95;
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: .66rem; letter-spacing: .25em;
  color: var(--text-muted); text-transform: uppercase;
}
.hero__scroll .bar { width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); overflow: hidden; position: relative; }
.hero__scroll .bar::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--accent); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* Hero stats strip */
.hero__stats {
  margin-top: 56px; display: grid; gap: 22px 40px;
  grid-template-columns: repeat(2, 1fr); max-width: 560px;
}
.hstat__num { font-family: var(--font-en); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; color: var(--text); }
.hstat__num .unit { font-size: .5em; color: var(--accent); margin-left: 4px; }
.hstat__label { margin-top: 8px; font-size: .82rem; color: var(--text-muted); letter-spacing: .04em; }

/* -------------------------------------------------------------
   7b. Scrollytelling hero (frame sequence / canvas)
   ------------------------------------------------------------- */
.scrolly {
  position: relative; height: 460vh; background: var(--bg);
  /* imagery with light text — remap tokens so children render on dark */
  --text: #ffffff; --text-soft: rgba(255,255,255,.84); --text-muted: rgba(255,255,255,.62);
  --bg-line: rgba(255,255,255,.18); --bg-line-2: rgba(255,255,255,.30);
  color: var(--text);
}
.scrolly__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
.scrolly__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; background: #0d0e10; }
.scrolly__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,12,16,.82) 0%, rgba(10,12,16,.5) 38%, rgba(10,12,16,.16) 70%, rgba(10,12,16,.32) 100%),
    linear-gradient(180deg, rgba(10,12,16,.42) 0%, rgba(10,12,16,0) 24%, rgba(10,12,16,0) 60%, rgba(255,255,255,0) 86%, #ffffff 100%);
}
.scrolly__grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 80% at 30% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(80% 80% at 30% 40%, #000 30%, transparent 100%);
}

.scrolly__captions { position: absolute; inset: 0; z-index: 3; }
.scap { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; will-change: opacity; }
.scap__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); will-change: transform; }
.scap__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border: 1px solid var(--bg-line-2); border-radius: 999px;
  font-size: .82rem; color: var(--text-soft);
  background: rgba(13,14,16,.4); backdrop-filter: blur(6px);
}
.scap__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.scap__phase { font-family: var(--font-en); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: clamp(.7rem,1.5vw,.82rem); color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.scap__phase::before { content: ""; width: 30px; height: 2px; background: var(--accent-grad); }
.scap__title {
  margin-top: 22px; font-weight: 900; line-height: 1.16; letter-spacing: .01em;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  text-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.scap__title .hl { color: #ffab2e; -webkit-text-fill-color: #ffab2e; background: none; }
.scap__sub { margin-top: 26px; max-width: 52ch; font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--text-soft); line-height: 1.9; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.scap__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }

/* progress rail */
.scrolly__rail { position: absolute; right: clamp(16px,3vw,34px); top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scrolly__rail .track { width: 2px; height: 120px; background: rgba(255,255,255,.16); border-radius: 2px; overflow: hidden; position: relative; }
.scrolly__rail .track i { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--accent-grad); }
.scrolly__rail .pct { font-family: var(--font-en); font-size: .7rem; letter-spacing: .1em; color: var(--text-muted); }

/* =============================================================
   Opening / preloader — "FROM TWO, INFINITE" cinematic cold-open
   ∞ self-draws → blooms into the logo lockup → EN type resolves;
   vertical progress instrument lower-right; curtain-lift exit.
   ============================================================= */
.scrolly__loader {
  position: absolute; inset: 0; z-index: 6; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 42%, #15171c 0%, #08090b 72%);
  transition: transform 1s cubic-bezier(.76,0,.24,1) .35s, visibility 1s;
}
.scrolly__loader.is-done { transform: translateY(-100%); visibility: hidden; }

.opening__bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 42% at 50% 42%, rgba(245,163,0,.16), transparent 70%);
  animation: openGlow 1.6s var(--ease) .8s both; }
.opening__bg::after { content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(56% 56% at 50% 42%, #000, transparent 75%); mask-image: radial-gradient(56% 56% at 50% 42%, #000, transparent 75%); }

.opening__inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding-inline: 24px; }
.scrolly__loader.is-done .opening__inner { opacity: 0; transform: translateY(-16px); transition: opacity .45s var(--ease), transform .45s var(--ease); }

.opening__logo { position: relative; width: clamp(150px, 30vw, 230px); aspect-ratio: 600 / 320; }
.opening__draw { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 7px rgba(245,163,0,.55)); }
.opening__draw .o-path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawInf .9s var(--ease-draw) .12s forwards, drawFade .35s var(--ease) 1.0s forwards; }
.opening__mark { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  animation: markResolve .6s var(--ease) 1.02s forwards; }

.opening__kicker { font-family: var(--font-en); text-transform: uppercase; font-weight: 600; letter-spacing: .3em; font-size: clamp(.58rem, 1.6vw, .72rem); color: var(--accent); opacity: 0; animation: openFadeUp .7s var(--ease) 1.2s both; }
.opening__tagline { font-family: var(--font-en); text-transform: uppercase; font-weight: 500; letter-spacing: .32em; font-size: clamp(.82rem, 2.2vw, 1.05rem); color: rgba(255,255,255,.9); opacity: 0; margin-top: -10px; animation: openFadeUp .7s var(--ease) 1.35s both; }

.opening__progress { position: absolute; right: clamp(20px, 4vw, 46px); bottom: clamp(28px, 8vh, 64px);
  display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; animation: openFadeUp .8s var(--ease) .6s both; }
.opening__pct { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(1.05rem, 3vw, 1.5rem); letter-spacing: .04em; color: #fff; }
.opening__bar { position: relative; width: 2px; height: clamp(96px, 16vh, 140px); background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.opening__bar i { position: absolute; inset: auto 0 0 0; width: 100%; height: 0%; background: var(--accent-grad); transition: height .3s var(--ease); }
.opening__load { writing-mode: vertical-rl; font-family: var(--font-en); text-transform: uppercase; font-size: .56rem; letter-spacing: .3em; color: rgba(255,255,255,.4); }

@keyframes drawInf { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drawFade { to { opacity: 0; } }
@keyframes markResolve { from { opacity: 0; transform: scale(.97); filter: blur(6px); } to { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 12px 40px rgba(249,115,22,.25)); } }
@keyframes openGlow { 0% { opacity: .55; } 55% { opacity: 1; } 100% { opacity: .82; } }
@keyframes openFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* SP: ロゴ退場フェード時に filter(drop-shadow/blur) が白い矩形としてフラッシュする
   iOS Safari の合成バグ対策。スマホではロゴ周りのフィルターを無効化する。 */
@media (max-width: 767px) {
  .opening__mark { filter: none !important; }
  .opening__draw { filter: none !important; }
  .opening__mark { animation-name: markResolveSP; }
}
@keyframes markResolveSP { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

.scrolly__hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-en); font-size: .66rem; letter-spacing: .25em; color: var(--text-soft); text-transform: uppercase; transition: opacity .4s var(--ease); }
.scrolly__hint .bar { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); overflow: hidden; position: relative; }
.scrolly__hint .bar::after { content: ""; position: absolute; inset: 0 0 auto; height: 40%; background: var(--accent); animation: scrollDot 1.8s var(--ease) infinite; }

/* reduced-motion / no-JS fallback: static cinematic hero */
.scrolly.is-static { height: 100svh; }
.scrolly.is-static .scrolly__rail, .scrolly.is-static .scrolly__hint { display: none; }

/* -------------------------------------------------------------
   8. Page hero (sub pages)
   ------------------------------------------------------------- */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(60px, 12vw, 120px));
  padding-bottom: clamp(50px, 9vw, 96px);
  overflow: hidden; isolation: isolate;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(100% 120% at 88% -10%, rgba(245, 163, 0, 0.10), transparent 52%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.page-hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(17,20,26,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,20,26,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
          mask-image: linear-gradient(to bottom, #000, transparent);
}
.page-hero__en {
  position: absolute; right: var(--gutter); bottom: -.18em; z-index: -1;
  font-family: var(--font-en); font-weight: 700; text-transform: uppercase;
  font-size: clamp(4rem, 18vw, 13rem); line-height: .8;
  color: rgba(17,20,26,.045); letter-spacing: .02em; pointer-events: none;
}
.page-hero__title { font-weight: 900; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.25; margin-top: 16px; }
.page-hero__lead { margin-top: 20px; max-width: 60ch; color: var(--text-soft); }

/* Light split page hero — text on white, construction photo feathered on the right
   (ties subpages to the top page imagery while keeping a white, formal base) */
.page-hero--photo { padding-top: calc(var(--header-h) + clamp(70px, 13vw, 138px)); padding-bottom: clamp(60px, 10vw, 104px); }
.page-hero--photo .page-hero__bg {
  background:
    radial-gradient(90% 120% at 8% -10%, rgba(245,163,0,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.page-hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -1;
  width: 50%; background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}
.page-hero--photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bg-line), transparent); z-index: 1;
}
.page-hero--photo .page-hero__title,
.page-hero--photo .page-hero__lead,
.page-hero--photo .breadcrumb,
.page-hero--photo .eyebrow { position: relative; max-width: 60ch; }
.page-hero--photo .container { position: relative; }
@media (max-width: 767px) {
  .page-hero__photo { width: 100%; opacity: .12; -webkit-mask-image: none; mask-image: none; }
}

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--text-soft); }

/* -------------------------------------------------------------
   9. Cards / feature grids
   ------------------------------------------------------------- */
.grid { display: grid; gap: clamp(18px, 3vw, 30px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--bg-elevated);
  border: 1px solid var(--bg-line); border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 100% at 0% 0%, rgba(245,163,0,.07), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); border-color: rgba(245,163,0,.4); box-shadow: var(--shadow); }
  .card:hover::before { opacity: 1; }
}
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid rgba(245,163,0,.28);
}
.card__icon svg { width: 28px; height: 28px; }
.card__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; color: rgba(17,20,26,.10); }
.card__title { font-size: 1.18rem; font-weight: 700; line-height: 1.5; }
.card__title .en { display: block; font-family: var(--font-en); font-size: .64rem; letter-spacing: .2em; color: var(--accent-ink); margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }
.card__text { margin-top: 14px; color: var(--text-soft); font-size: .94rem; line-height: 1.85; }
.card__list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.card__list li { display: flex; gap: 10px; font-size: .88rem; color: var(--text-soft); }
.card__list li::before { content: ""; flex-shrink: 0; margin-top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-ink); transform: rotate(45deg); }
.card__link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
@media (hover: hover) { .card__link:hover svg { transform: translateX(5px); } }

/* About / split section */
.split { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split__media { position: relative; }
.split__body .section-title { margin-top: 14px; }

/* Figure / media placeholder (drop-in for real photography) */
.media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media iframe { display: block; width: 100%; height: 100%; border: 0; }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 9; }
.media__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; gap: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(245,163,0,.05) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #eef0f4, #e3e6ec);
  color: var(--text-muted);
}
.media__ph svg { width: 46px; height: 46px; color: rgba(194,65,12,.45); }
.media__ph span { font-size: .78rem; letter-spacing: .08em; }
.media__tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  padding: 6px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px); color: var(--accent-ink);
  border: 1px solid var(--bg-line); box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------
   10. Stats band
   ------------------------------------------------------------- */
.stats-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--bg-line); border: 1px solid var(--bg-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.stats-band__item { background: var(--bg-elevated); padding: clamp(28px, 4vw, 44px) 24px; text-align: center; }
.stats-band__num { font-family: var(--font-en); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band__num .unit { -webkit-text-fill-color: var(--accent); font-size: .42em; margin-left: 6px; }
.stats-band__label { margin-top: 14px; font-size: .86rem; color: var(--text-soft); }

/* -------------------------------------------------------------
   11. Service detail rows
   ------------------------------------------------------------- */
.srow { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--bg-line); }
.srow:last-child { border-bottom: none; }
.srow__index { font-family: var(--font-en); font-weight: 700; font-size: clamp(3rem, 9vw, 5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(245,163,0,.55); }
.srow__title { font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 900; margin-top: 8px; }
.srow__title .en { display: block; font-family: var(--font-en); font-size: .8rem; letter-spacing: .18em; color: var(--accent-ink); margin-top: 8px; font-weight: 500; }
.srow__text { margin-top: 20px; color: var(--text-soft); line-height: 1.95; }
.srow__points { margin-top: 24px; display: grid; gap: 12px; }
.srow__points li { display: flex; gap: 12px; align-items: flex-start; }
.srow__points svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }

/* -------------------------------------------------------------
   12. Portfolio gallery
   ------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  border: 1px solid var(--bg-line-2); color: var(--text-soft);
  transition: all .25s var(--ease);
}
.filter-btn.is-active { background: var(--accent-grad); color: var(--text-ink); border-color: transparent; }
@media (hover: hover) { .filter-btn:not(.is-active):hover { color: var(--accent-ink); border-color: var(--accent-ink); } }

.gallery { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2.5vw, 24px); }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--bg-line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.work__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.work__media .media__ph, .work__media img { transition: transform .6s var(--ease); }
.work__cat { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 13px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--accent-ink); border: 1px solid var(--bg-line); box-shadow: var(--shadow-sm); }
.work__body { padding: 22px 24px 26px; }
.work__title { font-size: 1.1rem; font-weight: 700; }
.work__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; color: var(--text-muted); }
.work__meta span { display: inline-flex; align-items: center; gap: 6px; }
.work__meta svg { width: 14px; height: 14px; color: var(--accent-ink); }
@media (hover: hover) {
  .work:hover { transform: translateY(-5px); border-color: rgba(245,163,0,.4); box-shadow: var(--shadow); }
  .work:hover .work__media .media__ph, .work:hover .work__media img { transform: scale(1.06); }
}
.work.is-hidden { display: none; }

/* -------------------------------------------------------------
   13. Timeline / philosophy
   ------------------------------------------------------------- */
.creed { display: grid; gap: 20px; }
.creed__item { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--bg-line); border-left: 3px solid var(--accent); box-shadow: var(--shadow-sm); }
.creed__label { font-family: var(--font-en); font-size: .7rem; letter-spacing: .2em; color: var(--accent-ink); font-weight: 600; }
.creed__title { font-size: 1.3rem; font-weight: 800; margin-top: 10px; }
.creed__text { margin-top: 12px; color: var(--text-soft); }

/* Definition table (company info) */
.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--bg-line); }
.spec th, .spec td { text-align: left; padding: 20px 4px; border-bottom: 1px solid var(--bg-line); vertical-align: top; font-size: .95rem; }
.spec th { width: 32%; font-weight: 700; color: var(--text); }
.spec td { color: var(--text-soft); }

/* -------------------------------------------------------------
   14. Contact / forms / pricing
   ------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2.5vw, 24px); }
.price {
  position: relative; padding: clamp(28px, 3.4vw, 38px);
  border-radius: var(--radius); background: var(--bg-elevated);
  border: 1px solid var(--bg-line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
@media (hover: hover) { .price:hover { transform: translateY(-5px); box-shadow: var(--shadow); } }
.price.is-featured { border-color: rgba(245,163,0,.5); background: linear-gradient(180deg, rgba(245,163,0,.08), var(--bg-elevated)); box-shadow: var(--shadow); }
.price__badge { position: absolute; top: -12px; left: 28px; padding: 5px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--accent-grad); color: var(--text-ink); }
.price__name { font-size: 1.16rem; font-weight: 700; }
.price__time { margin-top: 6px; font-size: .84rem; color: var(--text-muted); }
.price__cost { margin-top: 20px; font-family: var(--font-en); font-weight: 700; line-height: 1; }
.price__cost .yen { font-size: 1.1rem; vertical-align: .55em; margin-right: 2px; }
.price__cost .amount { font-size: clamp(2.2rem, 6vw, 2.9rem); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price__cost .tax { font-size: .8rem; color: var(--text-muted); font-family: var(--font-jp); margin-left: 6px; }
.price__desc { margin-top: 16px; color: var(--text-soft); font-size: .9rem; flex-grow: 1; }
.price__cta { margin-top: 24px; }

.form { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.field__req { font-size: .68rem; padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.field__opt { font-size: .68rem; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--text-muted); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--bg-line-2);
  border-radius: var(--radius-sm); transition: border-color .25s var(--ease), background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg-elevated); box-shadow: 0 0 0 4px var(--accent-soft); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23c2410c' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 22px; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-soft); }
.form__consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent-2); }
.form__consent a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.form__note { font-size: .82rem; color: var(--text-muted); }
.form-status { padding: 16px; border-radius: var(--radius-sm); font-size: .92rem; display: none; }
.form-status.is-ok { display: block; background: rgba(22, 163, 74, .10); border: 1px solid rgba(22,163,74,.35); color: #15803d; }
.form-status.is-err { display: block; background: rgba(220, 38, 38, .08); border: 1px solid rgba(220,38,38,.35); color: #b91c1c; }

.contact-info { display: grid; gap: 18px; }
.contact-info__item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--bg-line); box-shadow: var(--shadow-sm); }
.contact-info__icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { font-size: .76rem; color: var(--text-muted); letter-spacing: .08em; }
.contact-info__value { font-weight: 700; margin-top: 4px; }
.contact-info__value a { font-family: var(--font-en); font-size: 1.3rem; }
.contact-info__sub { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* -------------------------------------------------------------
   15. CTA band
   ------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, #1b1e24 0%, #0e1014 100%);
  border-radius: calc(var(--radius) + 6px); padding: clamp(44px, 6vw, 86px) clamp(28px, 5vw, 70px);
  text-align: center; box-shadow: var(--shadow-lg);
  /* dark island: remap tokens for children */
  --text: #ffffff; --text-soft: rgba(255,255,255,.82); --bg-line-2: rgba(255,255,255,.28);
  color: var(--text);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 50% 0%, rgba(249,115,22,.22), transparent 62%); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent 75%); }
.cta-band__title { font-size: clamp(1.6rem, 4.4vw, 2.6rem); font-weight: 900; line-height: 1.35; }
.cta-band__title .hl { color: var(--accent); }
.cta-band__text { margin: 18px auto 0; max-width: 54ch; color: var(--text-soft); }
.cta-band__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* -------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #14171d 0%, #0b0d11 100%);
  padding-top: clamp(56px, 8vw, 90px);
  /* dark island: remap tokens for children */
  --text: #f3f4f6; --text-soft: #c4c8cf; --text-muted: #8c929c; --bg-line: rgba(255,255,255,.10);
  color: var(--text-soft);
}
.site-footer .brand__logo--default { display: none; }
.site-footer .brand__logo--white { display: block; }
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 50px; border-bottom: 1px solid var(--bg-line); }
.footer__brand { max-width: 360px; }
.footer__desc { margin-top: 20px; color: var(--text-muted); font-size: .9rem; line-height: 1.9; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__col h3 { font-family: var(--font-en); font-size: .72rem; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: var(--text-soft); font-size: .9rem; }
@media (hover: hover) { .footer__col a:hover { color: var(--accent); padding-left: 4px; } }
.footer__col a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__contact { font-style: normal; color: var(--text-soft); font-size: .9rem; line-height: 2; }
.footer__contact a { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 28px; }
.footer__copy { font-family: var(--font-en); font-size: .76rem; letter-spacing: .04em; color: var(--text-muted); }
.footer__legal { display: flex; gap: 22px; font-size: .82rem; }
.footer__legal a { color: var(--text-muted); }
@media (hover: hover) { .footer__legal a:hover { color: var(--accent); } }

/* タッチターゲット：モバイルでは指で押しやすい44px以上のヒット領域を確保（WCAG 2.5.5） */
@media (max-width: 767px) {
  .footer__col ul { gap: 2px; }
  .footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__legal { gap: 6px 22px; flex-wrap: wrap; }
  .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .card__link { min-height: 44px; }
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: var(--z-sticky);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad); color: var(--text-ink);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }
@media (hover: hover) { .to-top:hover { transform: translateY(-4px); } }

/* -------------------------------------------------------------
   17. Scroll reveal animation
   ------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* Prose (privacy policy) */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; margin-top: 48px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .num { color: var(--accent-ink); font-family: var(--font-en); margin-right: 12px; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin-top: 28px; }
.prose p { margin-top: 16px; color: var(--text-soft); }
.prose ul { margin-top: 16px; display: grid; gap: 10px; padding-left: 4px; }
.prose ul li { display: flex; gap: 12px; color: var(--text-soft); }
.prose ul li::before { content: ""; flex-shrink: 0; margin-top: .65em; width: 7px; height: 7px; background: var(--accent-ink); transform: rotate(45deg); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose__updated { color: var(--text-muted); font-size: .85rem; margin-top: 40px; }

/* =============================================================
   RESPONSIVE — Tablet (768px and up)
   ============================================================= */
@media (min-width: 768px) {
  :root { --header-h: 92px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(4, 1fr); }
  .footer__top { gap: 48px; }
  .footer__brand { max-width: none; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .srow { grid-template-columns: 0.9fr 1.1fr; }
  .srow--rev .srow__media { order: 2; }
  .split { grid-template-columns: 1fr 1fr; }
  .contact-info { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   RESPONSIVE — PC (1025px and up)
   ============================================================= */
@media (min-width: 1025px) {
  :root { --header-h: 100px; }
  .gnav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .drawer { display: none; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: minmax(280px, 340px) auto; gap: clamp(40px, 5vw, 80px); align-items: start; justify-content: space-between; }
  .footer__brand { max-width: none; }
  .footer__cols { grid-template-columns: repeat(3, minmax(140px, max-content)); justify-content: end; gap: clamp(36px, 3.5vw, 60px); }
  .hero__stats { grid-template-columns: repeat(4, 1fr); max-width: none; }
  .contact-layout { grid-template-columns: 1.2fr 0.8fr; }
  .contact-info { grid-template-columns: 1fr; }
}

/* Contact layout (mobile-first single column; 2-col enabled in PC media query above) */
.contact-layout { display: grid; gap: clamp(36px, 5vw, 60px); }

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__scroll .bar::after { display: none; }
  .ornament--infinity .o-path { stroke-dashoffset: 0 !important; }
  .bg-aurora { display: none; }
  .about-video video { display: none; }
  .about-video .about-video__poster { display: block; }
  /* Opening: show the resolved lockup instantly, no draw/cross-fade */
  .opening__draw { display: none; }
  .opening__mark, .opening__kicker, .opening__tagline, .opening__progress { opacity: 1 !important; transform: none !important; }
  .opening__bar i { transition-duration: .1s !important; }
}

/* =============================================================
   18. RICH DEPTH SYSTEM — "INFINITE GROUND"
   Global layered light (aurora + grain + blueprint grid),
   ornaments, micro-interactions, background video.
   All decorative; gated for reduced-motion / touch.
   ============================================================= */

/* Global fixed depth layers (injected once via components.js) */
.bg-aurora { position: fixed; inset: -12%; z-index: -11; pointer-events: none; overflow: hidden; contain: layout paint; }
.bg-aurora::before, .bg-aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.bg-aurora::before { width: 58vw; height: 58vw; left: -6vw; top: -8vh; background: radial-gradient(circle at center, var(--aurora-1), transparent 62%); animation: auroraA 32s ease-in-out infinite; }
.bg-aurora::after  { width: 52vw; height: 52vw; right: -8vw; bottom: -12vh; background: radial-gradient(circle at center, var(--aurora-2), transparent 62%); animation: auroraB 40s ease-in-out infinite; }
@keyframes auroraA { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(5%,4%,0) scale(1.08); } }
@keyframes auroraB { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(-5%,-4%,0) scale(1); } }

.tech-grid { position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px, 130px 130px, 130px 130px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 50%, transparent 100%);
          mask-image: radial-gradient(130% 95% at 50% 0%, #000 50%, transparent 100%);
}
.bg-grain { position: fixed; inset: 0; z-index: -9; pointer-events: none;
  background-image: var(--grain-url); background-size: 170px; opacity: .04; mix-blend-mode: multiply; }

/* Top scroll-progress hairline (all pages) */
.scroll-progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: calc(var(--z-header) + 1);
  background: var(--accent-grad); pointer-events: none; box-shadow: 0 0 12px rgba(249,115,22,.5); }

/* Section seam — thin accent fade between bands */
.section + .section::before, .section + .section--tight::before, .section--tight + .section::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft) 50%, transparent);
}

/* ---- Ornament: self-drawing ∞ ---- */
.ornament--infinity { position: absolute; pointer-events: none; z-index: 0; color: var(--accent); }
.ornament--infinity .o-path { fill: none; stroke: url(#oGrad); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--dur-slow) var(--ease-draw); }
.is-in .ornament--infinity .o-path, .ornament--infinity.is-in .o-path { stroke-dashoffset: 0; }

/* ---- Ornament: oversized ghost numerals / EN words ---- */
.ghost-deco { position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-en); font-weight: 700; text-transform: uppercase; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(17,20,26,.06); letter-spacing: .02em; }

/* ---- Ornament: corner registration marks (blueprint cue) ---- */
.reg { position: relative; }
.reg::before, .reg::after { content: ""; position: absolute; width: 14px; height: 14px; z-index: 2; pointer-events: none; }
.reg::before { top: 12px; left: 12px; border-top: 1.5px solid var(--ornament-line); border-left: 1.5px solid var(--ornament-line); }
.reg::after  { bottom: 12px; right: 12px; border-bottom: 1.5px solid var(--ornament-line); border-right: 1.5px solid var(--ornament-line); }

/* ---- Ornament: surveyor tick-rule divider ---- */
.tick-rule { height: 8px; width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--bg-line-2) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* ---- Mono engineering annotation ---- */
.anno { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 8px; }
.anno::before { content: ""; width: 18px; height: 1px; background: var(--ornament-line); }

/* ---- Kinetic title (line-clip mask reveal) ---- */
.kinetic { }
.kinetic .ln { display: block; overflow: hidden; }
.kinetic .ln > span { display: block; transform: translateY(110%); transition: transform var(--dur-slow) var(--ease-draw); }
.kinetic.is-in .ln > span { transform: translateY(0); }
.kinetic .ln:nth-child(2) > span { transition-delay: .10s; }
.kinetic .ln:nth-child(3) > span { transition-delay: .20s; }

/* ---- Card spotlight + tilt (PC pointer only; vars set by JS) ---- */
.card, .work { --mx: 50%; --my: 50%; transform-style: preserve-3d; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(245,163,0,.10), transparent 60%); transition: opacity .4s var(--ease); }
.card > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .card.tilt:hover::after { opacity: 1; }
}

/* ---- Magnetic primary button + sheen ---- */
.btn--primary { overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%; z-index: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); }
.btn--primary > * , .btn--primary svg { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::after { animation: sheen .8s var(--ease); }
}
@keyframes sheen { from { left: -130%; } to { left: 130%; } }

/* ---- Image clip-path reveal (cinematic "building up") ---- */
[data-clip] { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s var(--ease-draw); }
[data-clip].is-in { clip-path: inset(0 0 0 0); }
[data-clip] img, [data-clip] .media__ph { transform: scale(1.08); transition: transform 1.2s var(--ease-draw); }
[data-clip].is-in img, [data-clip].is-in .media__ph { transform: scale(1); }

/* ---- Contained About background video ---- */
.about-video { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--bg-line); aspect-ratio: 3 / 4; }
.about-video video, .about-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-video__poster { display: none; }
.about-video__grade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,16,20,.05) 0%, transparent 35%, rgba(13,16,20,.45) 100%); }
.about-video .media__tag { z-index: 3; }
@media (max-width: 767px) { .about-video video { display: none; } .about-video .about-video__poster { display: block; } }

/* ---- CTA ambient video (behind dark island overlays) ---- */
.cta-band { isolation: isolate; }
.cta-band__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: blur(2px) saturate(120%); }
.cta-band::before { z-index: -1; }
.cta-band::after { z-index: -1; }
@media (max-width: 767px) { .cta-band__video { display: none; } }

/* ---- Dark-island grain tooth ---- */
.scrolly__sticky::after, .cta-band > .cta-grain, .site-footer > .cta-grain { }
.cta-band .cta-grain, .site-footer .cta-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain-url); background-size: 170px; opacity: .05; mix-blend-mode: overlay; }

/* Reg marks adapt on dark islands */
.cta-band.reg::before, .cta-band.reg::after { border-color: rgba(255,255,255,.35); }

/* Vertical edge label (editorial signature) */
.vlabel { position: absolute; right: clamp(10px,2vw,20px); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--font-en); letter-spacing: .35em; text-transform: uppercase;
  font-size: .64rem; color: var(--text-muted); z-index: 4; pointer-events: none; }

/* ---- Facts & Figures panel (richer stats band) ---- */
.statband { position: relative; margin-top: 56px; padding: clamp(28px, 4vw, 54px);
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: linear-gradient(180deg, #ffffff, var(--bg-soft));
  border: 1px solid var(--bg-line); box-shadow: var(--shadow); isolation: isolate; }
.statband::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image: linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 75%); mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 75%); }
.statband__ghost { position: absolute; right: clamp(20px, 3vw, 48px); bottom: clamp(16px, 2.4vw, 30px); z-index: -1; pointer-events: none; user-select: none; text-align: right;
  font-family: var(--font-en); font-weight: 600; text-transform: uppercase; line-height: 1.18; letter-spacing: .14em;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem); color: rgba(17,20,26,.05); }
@media (max-width: 600px) { .statband__ghost { display: none; } }
.statband__head { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; justify-content: space-between; margin-bottom: clamp(26px, 3.4vw, 42px); }
.statband__lead { color: var(--text-soft); font-size: .92rem; }
.statband__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 3vw, 40px) clamp(20px, 3vw, 48px); }
.statband__item { position: relative; }
.statband__cap { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; color: var(--accent-ink); }
.statband__num { font-family: var(--font-en); font-weight: 700; font-size: clamp(2.5rem, 6vw, 3.7rem); line-height: 1; color: var(--text); margin-top: 8px; }
.statband__num .unit { font-size: .4em; color: var(--accent-ink); margin-left: 6px; }
.statband__num--inf { color: var(--accent-ink); }
.statband__bar { display: block; height: 3px; width: 46px; margin-top: 16px; border-radius: 3px; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-draw) .25s; }
.is-in .statband__bar { transform: scaleX(1); }
.statband__label { margin-top: 12px; color: var(--text-soft); font-size: .9rem; }
@media (min-width: 768px) { .statband__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- CTA band ornaments (less plain) ---- */
.cta-band { --accent-ink: var(--accent); }
.ornament--static .o-path { stroke-dashoffset: 0 !important; }
/* CTA corner motif: concentric arcs (modern, geometric) */
.cta-deco { position: absolute; right: 0; bottom: 0; width: min(46%, 380px); height: auto; aspect-ratio: 1; z-index: -1; opacity: .55; pointer-events: none; }

/* ---- Process flow (grouped stepper) ---- */
.flow { margin-top: clamp(40px, 5vw, 60px); padding: clamp(28px, 4vw, 56px);
  background: var(--bg-elevated); border: 1px solid var(--bg-line);
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.flow__list { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
.flow__step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 6px; align-items: start; }
.flow__node { grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 700; font-size: 1.2rem; color: var(--text-ink);
  background: var(--accent-grad); box-shadow: 0 8px 20px -10px rgba(249,115,22,.6); position: relative; z-index: 1; }
.flow__title { font-weight: 700; font-size: 1.12rem; align-self: center; }
.flow__text { color: var(--text-soft); font-size: .92rem; line-height: 1.8; }
/* connector line (mobile: vertical) */
.flow__step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: calc(-1 * clamp(28px, 4vw, 40px) - 4px); width: 2px;
  background: repeating-linear-gradient(var(--accent) 0 5px, transparent 5px 11px); opacity: .5; }
@media (min-width: 768px) {
  .flow__list { grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
  .flow__step { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 16px; }
  .flow__node { grid-row: auto; margin-inline: auto; }
  .flow__title { align-self: auto; }
  /* connector line (desktop: horizontal between nodes) */
  .flow__step:not(:last-child)::before { left: calc(50% + 36px); right: calc(-50% + 36px); top: 27px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); }
}

/* ---- Dark contrast feature band (VISION) ---- */
.feature { position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(76px, 12vw, 156px);
  background: linear-gradient(160deg, #181b21 0%, #0c0e12 100%);
  --accent-ink: var(--accent); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 30px 30px; -webkit-mask-image: radial-gradient(110% 90% at 80% 0%, #000, transparent 70%); mask-image: radial-gradient(110% 90% at 80% 0%, #000, transparent 70%); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: var(--grain-url); background-size: 170px; opacity: .05; mix-blend-mode: overlay; }
.feature__glow { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(70% 90% at 86% 8%, rgba(249,115,22,.20), transparent 60%); }
.feature__ghost { top: clamp(8px, 3vw, 30px); right: clamp(16px, 4vw, 56px); z-index: -1;
  font-size: clamp(3.4rem, 14vw, 11rem); -webkit-text-stroke: 1px rgba(255,255,255,.07); color: transparent; }
.feature__arcs { left: 0; right: auto; bottom: 0; top: auto; opacity: .5; }
.feature__inner { position: relative; z-index: 1; display: grid; gap: clamp(28px, 5vw, 56px); align-items: end; }
.feature .section-title { color: var(--text); margin-top: 16px; }
.feature__body p { color: var(--text-soft); font-size: clamp(.98rem, 2vw, 1.08rem); line-height: 1.95; }
.feature__body .btn { margin-top: 30px; }
@media (min-width: 900px) { .feature__inner { grid-template-columns: 1.35fr 1fr; } }
.cta-band__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-en); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; color: var(--accent); }
.cta-band__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent-grad); }

/* ---- Hero edge labels: separate vlabel (left) from rail (right); hide on small ---- */
.vlabel { left: clamp(10px, 2vw, 22px); right: auto; }
@media (max-width: 1024px) { .vlabel, .scrolly__rail { display: none; } }

/* Image-led feature cards (image instead of icon) */
.card--img { padding: 0; overflow: hidden; }
.card--img .card__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card--img .card__media img, .card--img .card__media .media__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--img .card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(13,16,20,.28)); }
.card--img .card__num { top: 14px; right: 16px; z-index: 2; color: rgba(255,255,255,.92); text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.card--img .card__body { padding: clamp(20px, 2.6vw, 30px); }
@media (hover: hover) and (pointer: fine) {
  .card--img .card__media img, .card--img .card__media .media__ph { transition: transform .6s var(--ease); }
  .card--img.tilt:hover .card__media img, .card--img.tilt:hover .card__media .media__ph { transform: scale(1.05); }
}

/* Photo cards — composed service visuals (title+text baked into the image) */
.card--photo { padding: 0; overflow: hidden; display: block; }
.card--photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .card--photo.tilt:hover img { transform: scale(1.04); } }

/* Works gallery images */
.work__media img { width: 100%; height: 100%; object-fit: cover; }

/* Lenis smooth scroll (only when active) */
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; }

/* =============================================================
   19. PROJECT REEL — タイポグラフィ×縦→横スクロール・リール
   縦スクロール量に合わせて GSAP（pin + scrub）がパネル帯を横へ流す。
   JS無し / reduced-motion 時は is-live が付かず、ネイティブの
   横スクロール・リールとしてそのまま成立する。
   ============================================================= */
.hreel {
  position: relative; overflow: clip;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(245, 163, 0, .09), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(249, 115, 22, .06), transparent 60%),
    #0d0e10;
}
.hreel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain-url); opacity: .05; mix-blend-mode: overlay;
}
.hreel__pin {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 28px) 0 30px;
}
/* 奥行き用の巨大アウトライン・タイポ（JSが遅速パララックスで流す） */
.hreel__ghost {
  position: absolute; top: 50%; left: 2vw; transform: translateY(-50%); z-index: 0;
  font-family: var(--font-en); font-weight: 700; line-height: 1; white-space: nowrap;
  font-size: clamp(7rem, 24vw, 20rem); letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  user-select: none; pointer-events: none;
}
.hreel__top {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.hreel__top .eyebrow { margin-bottom: 0; }
.hreel__count {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-en); font-weight: 600; line-height: 1;
}
.hreel__now {
  font-size: clamp(2rem, 4vw, 3.2rem); color: var(--accent);
  font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right;
}
.hreel__of { font-size: .9rem; letter-spacing: .22em; color: var(--text-muted); }

.hreel__viewport {
  position: relative; z-index: 1; margin-top: clamp(20px, 4svh, 44px);
  overflow-x: auto; overflow-y: hidden;             /* JS無し時=ネイティブ横スクロール */
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hreel__viewport::-webkit-scrollbar { display: none; }
.hreel.is-live .hreel__viewport {
  overflow: visible;                                /* GSAP駆動時=transformで流す */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hreel__track {
  position: relative; display: flex; align-items: stretch; width: max-content;
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
  will-change: transform;
}

/* ---- タイポグラフィ・パネル ---- */
.hcard {
  position: relative; flex: 0 0 auto;
  width: clamp(290px, 38vw, 500px);
  min-height: clamp(380px, 56svh, 560px);
  padding: clamp(22px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: flex-end;
  border-top: 1px solid var(--bg-line-2);
  border-left: 1px solid var(--bg-line);
}
.hcard::before {
  content: "+"; position: absolute; top: 0; left: 0; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 15px; line-height: 1; color: var(--ornament-line);
}
.hcard:last-child { border-right: 1px solid var(--bg-line); }
.hcard__idx {
  position: absolute; top: clamp(14px, 2.4svh, 26px); right: clamp(14px, 1.8vw, 28px);
  font-family: var(--font-en); font-weight: 700; line-height: .85; letter-spacing: .01em;
  font-size: clamp(4.2rem, 8vw, 7.5rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(245, 163, 0, .55);
}
.hcard__tate {
  position: absolute; top: clamp(18px, 3svh, 30px); left: clamp(22px, 2.4vw, 40px);
  writing-mode: vertical-rl; max-height: 52%;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; color: var(--text-soft);
  padding-left: 12px; border-left: 1px solid var(--bg-line-2);
}
.hcard__cat {
  display: inline-flex; align-items: center;
  padding: 5px 13px; margin-bottom: 24px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; line-height: 1.6;
  color: var(--accent); border: 1px solid rgba(245, 163, 0, .4); border-radius: 999px;
}
.hcard__en {
  display: block; margin-bottom: 8px;
  font-family: var(--font-en); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: .05em; line-height: 1.05;
  color: var(--text-muted);
}
.hcard__title {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 900; line-height: 1.4;
  letter-spacing: .04em; color: var(--text);
}

/* ---- 先頭（見出し）／末尾（CTA）パネル ---- */
.hcard--lead { width: min(620px, 84vw); justify-content: center; border: 0; padding-left: 0; }
.hcard--lead::before { content: none; }
.hcard__leadtext { margin-top: 18px; color: var(--text-soft); max-width: 44ch; }
.hcard__dir {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px;
  font-family: var(--font-en); font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  font-size: .8rem; color: var(--accent);
}
.hcard__dir i {
  position: relative; width: 46px; height: 1px; background: var(--accent-grad);
  animation: hreelNudge 1.6s var(--ease) infinite;
}
.hcard__dir i::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
  border-top: 1px solid var(--accent); border-right: 1px solid var(--accent);
  transform: translateY(-58%) rotate(45deg);
}
@keyframes hreelNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.hcard--tail { width: min(560px, 82vw); justify-content: center; align-items: flex-start; }
.hcard--tail::before { content: none; }
.hcard__tail-en {
  font-family: var(--font-en); font-weight: 700; text-transform: uppercase; line-height: 1;
  font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
}
.hcard__tailtext { margin: 18px 0 26px; color: var(--text-soft); }

/* ---- 進捗（バー＋カウンターはJS駆動。非起動時は非表示） ---- */
.hreel__foot {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 18px;
  margin-top: clamp(20px, 4svh, 44px);
}
.hreel__progress { flex: 1; height: 2px; border-radius: 999px; background: var(--bg-line); overflow: hidden; }
.hreel__progress i {
  display: block; height: 100%; background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left center;
}
.hreel__hint {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}
.hreel:not(.is-live) .hreel__foot,
.hreel:not(.is-live) .hreel__count { visibility: hidden; }

@media (max-width: 560px) {
  .hcard { min-height: clamp(300px, 46svh, 420px); }
  .hcard__tate { display: none; }
}

/* =============================================================
   20. 英字ラベルのタイプライター（.eyebrow）＆ 数字スロット（odometer）
   ============================================================= */
.eyebrow .tw { display: inline-block; }
.eyebrow .tw.caret::after {
  content: ""; display: inline-block; width: .08em; height: 1em; margin-left: .12em;
  background: var(--accent); vertical-align: -.08em; animation: twBlink 1s steps(1) 6;
}
@keyframes twBlink { 50% { opacity: 0; } }

.odometer { display: inline-flex; }
.odo { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: bottom; }
.odo__reel {
  display: flex; flex-direction: column;
  transform: translateY(0);
  transition: transform 1.15s cubic-bezier(.16, 1, .3, 1);
}
.odo__reel > span { display: block; height: 1em; line-height: 1; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .hcard__dir i { animation: none; }
  .odo__reel { transition: none; }
  .eyebrow .tw.caret::after { animation: none; display: none; }
}

/* お問い合わせ：ハニーポット（画面外に隠す。display:none は bot に読まれるため使わない） */
.hp {
  position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
