/* =========================================================
   I4（アイフォー） — Corporate site
   Intelligence · Integration · Innovation · Impact
   ========================================================= */

/* ---------- Theme tokens (animated between dark / light) ---------- */
@property --bg     { syntax: '<color>'; inherits: true; initial-value: #060d1d; }
@property --fg     { syntax: '<color>'; inherits: true; initial-value: #eef3ff; }
@property --muted  { syntax: '<color>'; inherits: true; initial-value: rgba(214, 226, 255, .64); }
@property --line   { syntax: '<color>'; inherits: true; initial-value: rgba(150, 185, 255, .16); }
@property --panel  { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, .025); }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #5aa8ff; }

:root {
  --navy-950: #040914;
  --navy-900: #060d1d;
  --navy-800: #0a1630;
  --navy-700: #10224a;
  --blue-600: #1f5fe0;
  --blue-500: #2f80ff;
  --blue-400: #5aa8ff;
  --cyan-300: #8fd3ff;
  --paper: #f4f7fc;
  --ink: #0a1630;

  --f-serif-jp: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --f-serif-en: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-sans: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1360px;
  --nav-h: 76px;
  --grad-blue: linear-gradient(120deg, #a6e0ff 0%, #4d9dff 45%, #1f5fe0 100%);
}

body[data-theme='dark'] {
  --bg: #060d1d; --fg: #eef3ff; --muted: rgba(214, 226, 255, .64);
  --line: rgba(150, 185, 255, .16); --panel: rgba(255, 255, 255, .025); --accent: #5aa8ff;
}
body[data-theme='light'] {
  --bg: #f4f7fc; --fg: #0a1630; --muted: rgba(10, 22, 48, .62);
  --line: rgba(10, 22, 48, .12); --panel: #ffffff; --accent: #1f5fe0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: --bg .9s ease, --fg .9s ease, --muted .9s ease, --line .9s ease, --panel .9s ease, --accent .9s ease;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--blue-500); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 4px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.6; }
.en { font-family: var(--f-serif-en); font-weight: 600; letter-spacing: .01em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pc { display: inline; }
.ib { display: inline-block; }
@media (max-width: 760px) { .pc { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(80% 80% at 50% 50%, #0a1a3d 0%, var(--navy-950) 70%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io), visibility 0s linear 1.1s;
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__inner { width: min(320px, 70vw); display: grid; gap: 22px; }
.loader__logo { width: 132px; margin: 0 auto 8px; overflow: visible; }
.loader__logo path {
  fill: #eef3ff; fill-opacity: 0;
  stroke: #8fd3ff; stroke-width: .7;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.3s var(--ease-out) forwards, fillIn .9s ease .9s forwards;
}
.loader__logo path.is-4 { fill: url(#g-4); animation-delay: .25s, 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; stroke-opacity: 0; } }
.loader__meta { display: flex; justify-content: space-between; color: rgba(214, 226, 255, .6); }
.loader__count { color: #fff; }
.loader__bar { height: 1px; background: rgba(150, 185, 255, .16); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--grad-blue); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.cursor.is-visible { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, .6);
  display: grid; place-items: center;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background .3s, border-color .3s;
}
.cursor__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .08); }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; border-color: #fff; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring { width: 4px; height: 28px; margin: -14px 0 0 -2px; border-radius: 2px; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }

/* ---------- Progress & indicator ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad-blue); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(90, 168, 255, .8); }
.indicator {
  position: fixed; right: var(--gutter); bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
  opacity: 0; transition: opacity .6s;
}
body.is-scrolled .indicator { opacity: .8; }
body.at-end .indicator { opacity: 0; }
.indicator i { width: 28px; height: 1px; background: currentColor; }
@media (max-width: 760px) { .indicator { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .08em; white-space: nowrap;
  overflow: hidden;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
.btn > span { position: relative; z-index: 1; }
.btn__arrow { position: relative; z-index: 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #3b8bff 0%, #1d56d8 100%);
  box-shadow: 0 14px 40px -14px rgba(47, 128, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(140px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .42), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 18px 50px -12px rgba(47, 128, 255, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(8px); }
.btn--ghost::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: var(--fg); transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn--ghost:hover::before { transform: none; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 13px; }
.btn--lg { height: 62px; padding: 0 34px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  color: var(--fg);
  transition: transform .6s var(--ease-out), background-color .5s, border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo { width: 54px; height: auto; overflow: visible; --logo-i: var(--fg); }
.nav__kana { font-family: var(--f-serif-jp); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.nav__links { display: flex; gap: 30px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 6px 0; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
body.menu-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 80% 10%, #10224a 0%, var(--navy-950) 70%);
  color: #eef3ff;
  clip-path: circle(0 at calc(100% - 44px) 38px);
  transition: clip-path .9s var(--ease-io);
  visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
body.menu-open .nav { color: #eef3ff; background: transparent; border-color: transparent; backdrop-filter: none; }
body.menu-open .nav .logo { --logo-i: #eef3ff; }
.menu__links { display: grid; gap: 6px; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-serif-en); font-size: clamp(34px, 9vw, 56px); line-height: 1.2; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease-out); }
.menu__links a small { color: var(--blue-400); }
body.menu-open .menu__links a { opacity: 1; transform: none; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: .04s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: .08s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: .12s; }
body.menu-open .menu__links a:nth-child(5) { transition-delay: .16s; }
body.menu-open .menu__links a:nth-child(6) { transition-delay: .2s; }
body.menu-open .menu__links a:nth-child(7) { transition-delay: .24s; }
body.menu-open .menu__links a:nth-child(8) { transition-delay: .28s; }
.menu__foot { color: rgba(214, 226, 255, .5); }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}
@media (max-width: 480px) {
  .nav__cta { display: none; }
}

/* ---------- Reveal helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.char { display: inline-block; white-space: pre; }
.js [data-split] .char, .js [data-hero-split] .char {
  opacity: 0; transform: translateY(.7em) rotate(4deg); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--i) * 34ms + var(--d, 0s));
}
.js [data-split].is-in .char, body.is-ready [data-hero-split] .char { opacity: 1; transform: none; filter: none; }

.section-label { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 28px; }
.section-label span { color: var(--accent); }
.section-label::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .5; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out) .2s; }
.section-label.is-in::after { transform: scaleX(1); }
.h2 { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(32px, 4.6vw, 66px); line-height: 1.32; letter-spacing: .02em; }
.lead { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 2.1; max-width: 34em; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: rgba(214, 226, 255, .75); }
.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 10px var(--blue-400); }
.pulse-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--blue-400); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  color: #eef3ff;
  background:
    radial-gradient(70% 90% at 78% 45%, rgba(23, 70, 170, .55) 0%, rgba(8, 22, 56, 0) 60%),
    radial-gradient(120% 120% at 20% 0%, #0b1834 0%, #050b18 60%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; opacity: 0; transition: opacity 1.6s ease .2s; }
.hero__canvas.is-ready { opacity: 1; }
html.no-webgl .hero__canvas { display: none; }
html.no-webgl .hero { background: url('../assets/card-front.svg') right center / auto 110% no-repeat, radial-gradient(120% 120% at 20% 0%, #0b1834 0%, #050b18 60%); }
.hero__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 11, 24, .82) 0%, rgba(5, 11, 24, .35) 42%, rgba(5, 11, 24, 0) 65%), linear-gradient(0deg, rgba(5, 11, 24, .9) 0%, rgba(5, 11, 24, 0) 26%); }
.hero__content { position: relative; z-index: 2; pointer-events: none; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 120px; will-change: transform, opacity; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__eyebrow { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out) .2s, transform 1s var(--ease-out) .2s; }
.hero__title {
  font-family: var(--f-serif-jp); font-weight: 700;
  font-size: clamp(50px, 8.4vw, 138px);
  line-height: 1.12; letter-spacing: .01em;
  margin: 26px 0 30px;
}
.hero__title .line { display: block; overflow: hidden; padding: .02em 0 .1em; }
.hero__title .en { font-size: 1.08em; font-weight: 600; }
.hero__title .grad { font-style: normal; filter: drop-shadow(0 0 30px rgba(47, 128, 255, .45)); }
.hero__title .grad .char { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .line:nth-child(2) .char { --d: .25s; }
.hero__lead { max-width: 33em; font-size: clamp(15px, 1.25vw, 18px); line-height: 2.05; color: rgba(222, 232, 255, .78); opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease-out) .9s, transform 1.1s var(--ease-out) .9s; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease-out) 1.05s, transform 1.1s var(--ease-out) 1.05s; }
.hero .btn--ghost { color: #eef3ff; border-color: rgba(150, 185, 255, .3); background: rgba(6, 13, 29, .35); }
.hero .btn--ghost::before { background: #eef3ff; }
.hero .btn--ghost:hover { color: #060d1d; }
body.is-ready .hero__eyebrow, body.is-ready .hero__lead, body.is-ready .hero__ctas { opacity: 1; transform: none; }

.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 var(--gutter);
  color: rgba(214, 226, 255, .55); pointer-events: none;
}
.hero__clock b { color: #fff; font-weight: 500; }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll i { position: relative; width: 1px; height: 54px; background: rgba(150, 185, 255, .2); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #8fd3ff; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
.hero__hint { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 20px); z-index: 2; color: rgba(214, 226, 255, .5); pointer-events: none; display: flex; gap: 8px; align-items: center; }
.hero__hint span { color: var(--blue-400); display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.globe-label {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  display: grid; gap: 2px; padding: 10px 14px 9px;
  border: 1px solid rgba(143, 211, 255, .35); border-radius: 10px;
  background: rgba(6, 16, 40, .72); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(214, 226, 255, .7);
  opacity: 0; transition: opacity .25s;
  white-space: nowrap;
}
.globe-label b { color: #fff; font-weight: 500; font-size: 12px; }
.globe-label.is-visible { opacity: 1; }

@media (max-width: 760px) {
  .hero { align-items: flex-start; }
  .hero__content { padding-top: calc(var(--nav-h) + 28px); }
  .hero__vignette { background: linear-gradient(180deg, rgba(5, 11, 24, .85) 0%, rgba(5, 11, 24, .4) 55%, rgba(5, 11, 24, 0) 75%), linear-gradient(0deg, rgba(5, 11, 24, .85) 0%, rgba(5, 11, 24, 0) 24%); }
  .hero__coord, .hero__hint { display: none; }
  .hero__bar { bottom: 18px; }
}

/* ---------- Big word marquee ---------- */
.bigmarquee { overflow: hidden; padding: clamp(24px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); user-select: none; }
.bigmarquee__inner { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 48px); white-space: nowrap; will-change: transform; font-family: var(--f-serif-en); font-weight: 500; font-style: italic; font-size: clamp(56px, 10vw, 168px); line-height: 1; letter-spacing: -.01em; }
.bigmarquee__inner .o { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 55%, transparent); }
.bigmarquee__inner i { font-style: normal; font-size: .4em; color: var(--blue-400); }

/* ---------- About ---------- */
.about { padding: clamp(110px, 16vh, 200px) 0 clamp(90px, 12vh, 160px); }
.statement { font-family: var(--f-serif-jp); font-weight: 600; font-size: clamp(24px, 3.4vw, 50px); line-height: 1.8; letter-spacing: .03em; max-width: 24em; }
.statement .sc { opacity: .14; transition: opacity .35s ease, color .35s ease; }
.statement .sc.on { opacity: 1; }
.statement .hl .sc.on { color: transparent; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.pillar { padding: 36px 32px 8px 0; position: relative; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar__en { font-family: var(--f-serif-en); font-style: italic; font-size: 22px; color: var(--accent); }
.pillar__ja { font-family: var(--f-serif-jp); font-size: clamp(30px, 3vw, 42px); font-weight: 700; margin: 6px 0 14px; }
.pillar p:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Four I (horizontal scroll) ---------- */
.four { position: relative; height: 420vh; }
.four__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.four__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: calc(var(--nav-h) + 18px); flex: none; }
.four__head > div:first-child { min-width: 0; }
.four__head .h2 { font-size: clamp(26px, 2.7vw, 42px); }
.four__nav { flex: none; }
.four__head .section-label { margin-bottom: 14px; }
.four__nav { position: relative; display: flex; gap: 6px; padding-bottom: 14px; }
.four__nav button { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s, background-color .3s; }
.four__nav button b { font-family: var(--f-serif-en); font-size: 18px; font-weight: 600; color: var(--accent); }
.four__nav button.is-active { color: var(--fg); background: rgba(90, 168, 255, .1); }
.four__bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--line); }
.four__bar i { display: block; height: 100%; background: var(--grad-blue); transform-origin: left; transform: scaleX(0); }
.four__track { flex: 1; display: flex; will-change: transform; min-height: 0; }
.four__panel {
  flex: 0 0 100vw; width: 100vw;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: 2vh max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 5vh;
}
.four__text { transform: translateX(calc(var(--off, 0) * -90px)); opacity: var(--vis, 1); transition: opacity .2s linear; }
.four__num { color: var(--accent); }
.four__word {
  font-family: var(--f-serif-en); font-weight: 500;
  font-size: clamp(56px, 7.6vw, 128px); line-height: 1.05; letter-spacing: -.015em;
  /* background-clip:text only paints inside the box, so leave room for descenders (g, p) */
  margin: 14px 0 0; padding-bottom: .16em;
  background: linear-gradient(180deg, #ffffff 0%, #b7cdf3 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.four__ja { font-family: var(--f-serif-jp); font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; margin-bottom: 20px; }
.four__desc { color: var(--muted); max-width: 30em; font-size: 15.5px; }
.four__points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.four__points li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: color-mix(in srgb, var(--fg) 85%, transparent); }
.four__visual {
  position: relative; height: min(60vh, 580px); min-height: 300px;
  border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(150, 185, 255, .14);
  background: radial-gradient(90% 90% at 50% 40%, rgba(25, 70, 170, .28) 0%, rgba(6, 13, 29, 0) 70%), rgba(255, 255, 255, .015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.four__visual::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(150, 185, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 185, 255, .05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 100%); }
.four__visual canvas { position: relative; width: 100%; height: 100%; touch-action: pan-y; }
.four__hud, .four__tip { position: absolute; left: 20px; pointer-events: none; color: rgba(214, 226, 255, .5); font-size: 10px; }
.four__hud { top: 16px; }
.four__tip { bottom: 16px; color: rgba(143, 211, 255, .7); }
.four__tip::before { content: '↳ '; }

@media (max-width: 900px) {
  .four { height: auto; }
  .four__sticky { position: relative; height: auto; overflow: visible; }
  .four__head { flex-direction: column; align-items: flex-start; padding-top: 100px; }
  .four__nav { display: none; }
  .four__track { flex-direction: column; transform: none !important; }
  .four__panel { width: auto; flex: none; grid-template-columns: 1fr; padding: 56px var(--gutter) 24px; }
  .four__text { transform: none; opacity: 1; }
  .four__visual { height: 340px; }
}

/* ---------- Services ---------- */
.services { padding: clamp(120px, 16vh, 200px) 0 0; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 380px; padding: clamp(28px, 3vw, 44px);
  border-radius: 28px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(10, 22, 48, .04), 0 30px 60px -40px rgba(10, 22, 48, .25);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out), box-shadow .5s, opacity 1.1s var(--ease-out);
  overflow: hidden;
}
.svc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 128, 255, .10), transparent 55%); opacity: 0; transition: opacity .4s; }
.svc::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 128, 255, .95), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
}
.svc:hover::before, .svc:hover::after { opacity: 1; }
.svc:hover { box-shadow: 0 1px 2px rgba(10, 22, 48, .04), 0 40px 80px -40px rgba(31, 95, 224, .45); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 40px; }
.svc__num { color: var(--accent); }
.svc__icon { width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.svc__icon .f { fill: var(--accent); }
.svc__icon .dim { opacity: .3; }
.svc__icon .d { stroke-dasharray: 4 5; }
.svc:hover .svc__icon .d { animation: dash 1s linear infinite; }
.svc:hover .svc__icon .p { animation: pop 1.2s var(--ease-out) infinite; transform-origin: 32px 32px; transform-box: view-box; }
.svc--hovered .svc__icon--int circle:first-child { transform: translateX(3px); }
.svc__icon--int circle:not(.p) { transition: transform .6s var(--ease-out); }
.svc:hover .svc__icon--int circle:first-of-type { transform: translateX(4px); }
.svc:hover .svc__icon--int circle:nth-of-type(2) { transform: translateX(-4px); }
@keyframes dash { to { stroke-dashoffset: -18; } }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.svc__title { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.4; }
.svc__en { font-family: var(--f-serif-en); font-style: italic; font-size: 19px; color: var(--accent); margin: 2px 0 16px; }
.svc__desc { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--accent); font-size: 12.5px; font-weight: 500; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

.techmarquee { margin-top: clamp(80px, 10vw, 140px); padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; }
.techmarquee__inner { display: inline-flex; white-space: nowrap; will-change: transform; }
.techmarquee__inner span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--f-serif-jp); font-weight: 600; font-size: clamp(20px, 2.4vw, 34px); }
.techmarquee__inner span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-blue); }

/* ---------- Simulator ---------- */
.sim { padding: clamp(120px, 16vh, 200px) 0; }
.sim__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; }
.sim__panel { border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 44px); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); }
.sim__controls { display: grid; gap: 34px; align-content: start; }
.sim__label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; padding: 0; }
.sim__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sim__row .sim__label { margin-bottom: 8px; }
.sim__val { font-size: 14px; color: var(--muted); white-space: nowrap; }
.sim__val b { font-family: var(--f-serif-en); font-size: 30px; font-weight: 600; color: var(--fg); letter-spacing: 0; }
.sim__note { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.sim__note b { color: var(--fg); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--fg); transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-out); }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed='true'] { background: var(--blue-500); border-color: var(--blue-500); color: #fff; box-shadow: 0 8px 24px -10px rgba(47, 128, 255, .9); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #8fd3ff 0%, #2f80ff var(--p), var(--line) var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #8fd3ff 0%, #2f80ff var(--p), var(--line) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--blue-500); box-shadow: 0 0 0 6px rgba(47, 128, 255, .18), 0 4px 14px rgba(0, 0, 0, .3); transition: box-shadow .3s; }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--blue-500); box-shadow: 0 0 0 6px rgba(47, 128, 255, .18); }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(47, 128, 255, .22), 0 4px 14px rgba(0, 0, 0, .3); }

.sim__result { display: grid; gap: 30px; align-content: start; position: relative; overflow: hidden; }
.sim__result::before { content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(47, 128, 255, .35), transparent 65%); pointer-events: none; }
.sim__top { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); position: relative; }
.gauge { position: relative; width: clamp(120px, 12vw, 160px); flex: none; }
.gauge svg { width: 100%; height: auto; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 7; }
.gauge__track { stroke: var(--line); }
.gauge__fill { stroke: url(#g-gauge); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; filter: drop-shadow(0 0 8px rgba(90, 168, 255, .7)); }
.gauge__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__center b { font-family: var(--f-serif-en); font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; line-height: 1; }
.gauge__center small { font-size: .5em; margin-left: 2px; }
.gauge__center .mono { font-size: 9px; color: var(--muted); margin-top: 6px; }
.sim__headline .mono { color: var(--muted); }
.sim__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.sim__big b { font-family: var(--f-serif-en); font-weight: 600; font-size: clamp(52px, 6vw, 92px); line-height: 1.05; letter-spacing: -.01em; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.sim__big span { color: var(--muted); font-size: 15px; }
.sim__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); position: relative; }
.sim__stats > div { padding: 22px 16px 0 0; }
.sim__stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.sim__stats dt { font-size: 12.5px; color: var(--muted); }
.sim__stats dd { margin: 4px 0 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sim__stats dd b { font-family: var(--f-serif-en); font-size: clamp(30px, 2.8vw, 42px); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sim__stats dd span { font-size: 13px; color: var(--muted); }
.workday { display: grid; gap: 12px; position: relative; }
.workday__title { color: var(--muted); }
.workday__row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; }
.workday__tag { color: var(--muted); font-size: 10px; }
.workday__bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--line); }
.seg { display: block; height: 100%; width: 0; transition: width .9s var(--ease-out); }
.seg--routine { background: repeating-linear-gradient(135deg, #7d8fb5 0 5px, #5b6d93 5px 10px); }
.seg--created { background: linear-gradient(90deg, #8fd3ff, #2f80ff); box-shadow: 0 0 18px rgba(90, 168, 255, .8); position: relative; }
.seg--other { background: rgba(150, 185, 255, .1); }
.workday__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.workday__legend li { display: flex; align-items: center; gap: 8px; }
.workday__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 980px) { .sim__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .sim__top { flex-direction: column; align-items: flex-start; }
  .sim__stats { grid-template-columns: 1fr; }
  .sim__stats > div, .sim__stats > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Process ---------- */
.process { padding: clamp(120px, 16vh, 200px) 0; }
.steps { position: relative; }
.steps__line { position: absolute; left: 39px; top: 40px; bottom: 40px; width: 1px; background: var(--line); }
.steps__line i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, #2f80ff, #8fd3ff); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 10px rgba(47, 128, 255, .7); }
.step { position: relative; display: grid; grid-template-columns: 80px minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(24px, 4vw, 64px); align-items: center; padding: 36px 0; }
.step__dot { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 13px; position: relative; z-index: 1; transition: border-color .5s, color .5s, box-shadow .5s, background-color .5s; }
.step.is-active .step__dot { border-color: var(--blue-500); color: #fff; background: var(--blue-500); box-shadow: 0 0 0 8px color-mix(in srgb, var(--blue-500) 14%, transparent), 0 10px 30px -8px rgba(47, 128, 255, .8); }
.step__en { font-family: var(--f-serif-en); font-style: italic; font-size: 20px; color: var(--accent); }
.step__title { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.4; }
.step__desc { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .steps__line { left: 27px; }
  .step { grid-template-columns: 56px 1fr; padding: 28px 0; }
  .step__dot { width: 56px; height: 56px; font-size: 11px; }
  .step__desc { grid-column: 2; }
}

/* ---------- Digital card ---------- */
.meishi { padding: clamp(120px, 16vh, 200px) 0; overflow: hidden; }
.meishi__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
.meishi__text .lead { margin-top: 28px; }
.meishi__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.meishi__stage { position: relative; padding: 40px 0 20px; }
.meishi__hint { text-align: center; color: var(--muted); margin-top: 34px; }
/* perspective must sit on the parent of the rotating .card3d__inner, otherwise the flip renders flat */
.card3d { position: relative; width: min(600px, 100%); aspect-ratio: 91 / 55; margin: 0 auto; container-type: inline-size; outline-offset: 10px; border-radius: 14px; perspective: 1400px; }
.card3d__inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.card3d__face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 90px -40px rgba(0, 0, 0, .85);
}
.card3d__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card3d__front { background: linear-gradient(135deg, #0d1c3f 0%, #081230 55%, #050b1d 100%); color: #eef3ff; }
.card3d__front::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); opacity: .5; }
.card3d__front-body { position: absolute; left: 8cqw; top: 13cqw; right: 30cqw; }
.card3d__brand { display: flex; align-items: flex-end; gap: 1.6cqw; }
.card3d__brand svg { width: 17cqw; height: auto; filter: drop-shadow(0 0 2.4cqw rgba(47, 128, 255, .55)); --logo-i: url(#g-i); }
.card3d__brand span { font-family: var(--f-serif-jp); font-size: 3.1cqw; letter-spacing: .1em; padding-bottom: .6cqw; }
.card3d__four { font-family: var(--f-serif-en); font-size: 2.55cqw; letter-spacing: .06em; margin-top: 2.6cqw; color: rgba(225, 234, 255, .85); white-space: nowrap; }
.card3d__copy { font-family: var(--f-serif-jp); font-weight: 700; font-size: 5.6cqw; line-height: 1.3; margin-top: 1.4cqw; white-space: nowrap; }
.card3d__sub { font-family: var(--f-serif-jp); font-size: 2.3cqw; margin-top: 1.2cqw; color: rgba(225, 234, 255, .85); white-space: nowrap; }
.card3d__url { display: flex; align-items: center; gap: 2cqw; font-family: var(--f-serif-en); font-size: 2.4cqw; letter-spacing: .08em; margin-top: 5cqw; color: rgba(225, 234, 255, .85); }
.card3d__url i { width: 9cqw; height: 1px; background: #4d9dff; }
.card3d__back { transform: rotateY(180deg); background: linear-gradient(160deg, #ffffff 0%, #f3f6fb 100%); color: #0a1630; }
.card3d__back-logo { position: absolute; right: 7cqw; top: 7cqw; display: grid; justify-items: center; }
.card3d__back-logo svg { width: 15cqw; height: auto; }
.card3d__back-logo span { font-family: var(--f-serif-jp); font-size: 2.3cqw; letter-spacing: .1em; color: #0a1630; }
.card3d__back-body { position: absolute; left: 7.5cqw; top: 7.5cqw; right: 6cqw; font-family: var(--f-serif-jp); line-height: 1.5; letter-spacing: .02em; }
.card3d__front-body { line-height: 1.6; letter-spacing: .02em; }
.card3d__name { font-size: 6.4cqw; font-weight: 700; letter-spacing: .14em; line-height: 1.25; }
.card3d__name rt { font-size: 1.9cqw; font-weight: 500; letter-spacing: .12em; color: #4a5a7a; }
.card3d__roman { font-family: var(--f-serif-en); font-size: 2.9cqw; letter-spacing: .06em; font-weight: 600; }
.card3d__role { font-size: 2.6cqw; margin-top: 1.6cqw; }
.card3d__rule { display: block; width: 8cqw; height: 1px; background: #2f6fe6; margin: 2.2cqw 0; }
.card3d__company { font-size: 3.6cqw; font-weight: 700; line-height: 1.3; }
.card3d__domain { font-family: var(--f-serif-en); font-size: 2.15cqw; color: #1f5fe0; margin-bottom: 2cqw; white-space: nowrap; }
.card3d__info { display: grid; gap: .5cqw; font-family: var(--f-serif-en); font-size: 2.35cqw; font-weight: 600; }
.card3d__info li { display: grid; grid-template-columns: 3.2cqw 9cqw 1fr; align-items: center; gap: 1cqw; white-space: nowrap; }
.card3d__info li:last-child { grid-template-columns: 3.2cqw 1fr; font-family: var(--f-serif-jp); font-weight: 500; }
.card3d__info svg { width: 2.6cqw; height: 2.6cqw; fill: none; stroke: #1f5fe0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card3d__info span { color: #1f5fe0; font-weight: 500; }
/* No mix-blend-mode inside the card: Firefox flattens the 3D flip when a face contains a blend layer. */
.card3d__glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .13), transparent 42%),
    linear-gradient(115deg, transparent 30%, rgba(143, 211, 255, .07) 45%, rgba(255, 255, 255, .1) 50%, rgba(170, 150, 255, .06) 55%, transparent 70%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--gx, 50%) var(--gy, 50%);
}
.card3d__back .card3d__glare { opacity: .7; }
.card3d__shadow { width: 70%; height: 40px; margin: 30px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(10px); transform: translateX(var(--sx, 0px)) scaleX(var(--ss, 1)); }
@media (max-width: 900px) { .meishi__grid { grid-template-columns: 1fr; } }

/* ---------- Company ---------- */
.company { padding: clamp(120px, 16vh, 200px) 0; }
.company__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
.mv { padding: 26px 0; border-top: 1px solid var(--line); }
.mv__label { color: var(--accent); margin-bottom: 8px; }
.mv__text { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.5; }
.mv__values { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--f-serif-en); font-size: clamp(24px, 2.4vw, 34px); font-style: italic; }
.mv__values span:nth-child(even) { color: var(--accent); }
.profile { margin: 0; border-top: 1px solid var(--fg); }
.profile > div { display: grid; grid-template-columns: 8em 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.profile dt { color: var(--muted); font-size: 14px; }
.profile dd { margin: 0; font-size: 15.5px; line-height: 1.9; }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
@media (max-width: 900px) { .company__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .profile > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(120px, 16vh, 200px) 0 clamp(80px, 10vh, 140px); position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; width: 900px; height: 900px; left: -300px; bottom: -500px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 95, 224, .28), transparent 65%); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(48px, 6vw, 110px); align-items: start; }
.contact__title { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(40px, 5.8vw, 88px); line-height: 1.25; margin-bottom: 30px; }
.contact__mail { display: inline-flex; align-items: center; gap: 16px; margin-top: 48px; font-family: var(--f-serif-en); font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 8px; transition: border-color .3s, color .3s; }
.contact__mail .mono { font-size: 10px; color: var(--accent); }
.contact__mail svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease-out); }
.contact__mail:hover { border-color: var(--accent); }
.contact__mail:hover svg { transform: translate(4px, -4px); }
.form { display: grid; gap: 26px; padding: clamp(24px, 3vw, 44px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); backdrop-filter: blur(6px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; padding-top: 18px; }
.field input, .field textarea { width: 100%; padding: 12px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--fg); font: inherit; font-size: 16px; outline: none; resize: vertical; }
.field label { position: absolute; left: 0; top: 30px; color: var(--muted); font-size: 15px; pointer-events: none; transition: top .35s var(--ease-out), font-size .35s var(--ease-out), color .3s; }
.field label em { font-style: normal; color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: 12px; color: var(--accent); }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad-blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field textarea { min-height: 120px; }
.field.is-invalid input { border-bottom-color: #ff6b81; }
.form__topics legend { font-size: 13px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.form__topics .chip { height: 36px; font-size: 13px; padding: 0 16px; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: 13px; color: var(--accent); min-height: 1.5em; flex: 1 1 200px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding: clamp(60px, 8vw, 100px) 0 28px; color: var(--fg); border-top: 1px solid var(--line); overflow: hidden; }
.footer__mark { position: relative; width: min(100%, 980px); margin: 0 auto clamp(48px, 6vw, 80px); aspect-ratio: 132 / 100; --mx: 50%; --my: 50%; }
.footer__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.footer__outline path { fill: none; stroke: color-mix(in srgb, var(--fg) 22%, transparent); stroke-width: .25; }
.footer__fill { --logo-i: url(#g-i); -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, #000 12%, transparent 30%); mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, #000 12%, transparent 30%); filter: drop-shadow(0 0 30px rgba(47, 128, 255, .5)); }
.footer__mark.is-auto { animation: none; }
.footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__tag { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); }
.footer__four { color: var(--muted); margin-top: 10px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer__nav a { color: var(--muted); transition: color .3s; }
.footer__nav a:hover { color: var(--fg); }
.footer__contact { color: var(--muted); font-size: 14px; line-height: 2; }
.footer__contact p:first-child { color: var(--fg); font-family: var(--f-serif-jp); font-weight: 700; font-size: 16px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; color: var(--muted); }
.footer__top:hover { color: var(--fg); }
@media (max-width: 860px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html:not(.force-motion) [data-reveal], html:not(.force-motion) [data-split] .char, html:not(.force-motion) [data-hero-split] .char { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
