/* =========================================================================
   合同会社フッテージ — Design System
   Cinematic / Motion-first / Premium  |  Hybrid theme (light content + dark zones)
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Core palette — deep cinema black with film-grain warmth */
  --bg: #07080c;
  --bg-2: #0c0e15;
  --bg-3: #11141d;
  --surface: #151925;
  --surface-2: #1b2130;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --fg: #f4f6fb;
  --fg-soft: #c5cad6;
  --fg-mute: #8b93a7;
  --fg-faint: #5a6175;

  /* Brand — cinematic tungsten ember (film-warm, human, non-generic) */
  --accent: #ff6a3a;
  --accent-2: #ffab45;
  --accent-3: #ff466b;
  --accent-warm: #ffb547;
  --grad: linear-gradient(118deg, #ffb24a 0%, #ff6a3a 54%, #ff466b 100%);
  --grad-soft: linear-gradient(118deg, rgba(255,178,74,.16), rgba(255,106,58,.16) 54%, rgba(255,70,107,.14));
  --grad-text: linear-gradient(100deg, #ffcfa2 0%, #ff9257 52%, #ff6f57 100%);

  /* Typography — editorial mincho display over a clean gothic body */
  --font-sans: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Shippori Mincho", "Zen Kaku Gothic New", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-mono: "Space Mono", "Roboto Mono", ui-monospace, monospace;

  /* Spacing / layout */
  --container: 1240px;
  --container-wide: 1480px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .6s;

  /* Shadow / glow */
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --glow: 0 0 60px -10px rgba(255, 106, 58, .32);

  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-feature-settings: "palt" 1;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.8;
  letter-spacing: .01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 106, 58, .38); color: #fff; }

/* ---------- Film grain + ambient backdrop ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  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='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .55;
}
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ambient span {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .28;
  will-change: transform;
}
.ambient span:nth-child(1) { width: 50vw; height: 50vw; top: -15vw; left: -10vw; background: radial-gradient(circle, #1e3a8a, transparent 70%); }
.ambient span:nth-child(2) { width: 45vw; height: 45vw; bottom: -10vw; right: -8vw; background: radial-gradient(circle, #4c1d95, transparent 70%); }
.ambient span:nth-child(3) { width: 30vw; height: 30vw; top: 40vh; left: 50vw; background: radial-gradient(circle, #831843, transparent 70%); opacity: .18; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.container.wide { max-width: var(--container-wide); }
main { position: relative; z-index: 2; }
section { position: relative; padding-block: clamp(72px, 11vw, 160px); }
.section-tight { padding-block: clamp(48px, 7vw, 96px); }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: .01em;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.h-xl { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: .01em; line-height: 1.08; }
.h-lg { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: .005em; line-height: 1.18; }
.h-md { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
.h-sm { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--fg-soft); }
.muted { color: var(--fg-mute); }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.balance { text-wrap: balance; }

/* Section eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 100px;
  background: rgba(69, 224, 255, .05);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.6); } }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .kicker { margin-bottom: 22px; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn-primary { color: #06070b; background: var(--grad); background-size: 180% 180%; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 80px -8px rgba(124, 92, 255, .55); }
.btn-primary:hover svg { transform: translateX(5px); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line-2); }
.btn-ghost::after { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .4s var(--ease); z-index: -1; }
.btn-ghost:hover { color: #06070b; border-color: transparent; transform: translateY(-3px); }
.btn-ghost:hover::after { opacity: 1; }
.btn-lg { padding: 18px 38px; font-size: 1.02rem; }

/* Text link with animated underline */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); position: relative; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 8, 12, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; z-index: 2; }
.brand .logo-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; }
.brand-text small { font-size: .58rem; letter-spacing: .32em; color: var(--fg-mute); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: .92rem; font-weight: 500; color: var(--fg-soft); border-radius: 100px; transition: color .3s, background .3s; }
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--fg); background: rgba(255,255,255,.05); }
.nav-link .chev { width: 12px; height: 12px; opacity: .6; transition: transform .3s; }
.nav-item:hover .chev { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 300px; padding: 12px;
  background: rgba(17, 20, 29, .92); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; transition: background .25s; }
.dropdown a:hover { background: rgba(255,255,255,.05); }
.dropdown a .di { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--grad-soft); color: var(--accent); }
.dropdown a .di svg { width: 18px; height: 18px; }
.dropdown a b { display: block; font-size: .92rem; }
.dropdown a span { display: block; font-size: .76rem; color: var(--fg-mute); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; z-index: 2; }
.nav-toggle span { width: 24px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(7, 8, 12, .97); backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a { padding: 16px 4px; font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-sub { font-size: 1rem; color: var(--fg-mute); padding-left: 18px; font-weight: 500; }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg canvas { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, transparent 50%), linear-gradient(to right, var(--bg) 0%, transparent 55%); }
.hero-inner { position: relative; z-index: 3; max-width: 980px; }
.hero h1 { margin: 24px 0 28px; }
.hero .lead { max-width: 620px; font-size: clamp(1.05rem, 1.6vw, 1.32rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 60px); margin-top: 64px; }
.hero-meta .stat b { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); display: block; }
.hero-meta .stat span { font-size: .8rem; color: var(--fg-mute); letter-spacing: .04em; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .25em; color: var(--fg-mute); }
.scroll-hint .bar { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }

/* Word-reveal mask animation */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; --speed: 38s; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee var(--speed) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--fg-faint); display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

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

.card {
  position: relative; padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .5s var(--ease), border-color .5s var(--ease);
  will-change: transform;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.card:hover { transform: translateY(-6px); }
.card:hover::before { opacity: .9; }
.card .num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.card h3 { margin: 16px 0 12px; }
.card p { color: var(--fg-mute); font-size: .96rem; }
.card .card-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 22px; }
.card .card-icon svg { width: 26px; height: 26px; }

/* Service card big */
.svc-card { display: flex; flex-direction: column; min-height: 320px; }
.svc-card .svc-tags { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .74rem; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--fg-soft); font-family: var(--font-mono); }

/* Feature list */
.feat-list { display: grid; gap: 2px; }
.feat-list li { display: flex; gap: 16px; padding: 22px 4px; border-top: 1px solid var(--line); align-items: flex-start; }
.feat-list li .fi { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--grad-soft); color: var(--accent); margin-top: 2px; }
.feat-list li .fi svg { width: 15px; height: 15px; }
.feat-list li b { display: block; margin-bottom: 4px; }
.feat-list li p { color: var(--fg-mute); font-size: .92rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stats-band .stat { padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); background: var(--bg-2); }
.stats-band .stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); display: block; line-height: 1; }
.stats-band .stat .suffix { font-size: .5em; color: var(--accent); }
.stats-band .stat span { color: var(--fg-mute); font-size: .88rem; margin-top: 12px; display: block; }

/* ---------- Process / timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline .step { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); align-items: start; }
.timeline .step:last-child { border-bottom: 1px solid var(--line); }
.timeline .step .step-no { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.timeline .step h3 { margin-bottom: 12px; }
.timeline .step p { color: var(--fg-mute); }
.timeline .step .step-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Works / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 24px); }
.work { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--bg-3); cursor: pointer; }
.work.tall { aspect-ratio: 3/4; }
.work.span-7 { grid-column: span 7; } .work.span-5 { grid-column: span 5; }
.work.span-6 { grid-column: span 6; } .work.span-4 { grid-column: span 4; } .work.span-8 { grid-column: span 8; }
.work .work-visual { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.work:hover .work-visual { transform: scale(1.06); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,12,.92) 5%, transparent 60%); }
.work .work-meta { position: absolute; left: 0; bottom: 0; padding: clamp(20px, 2.5vw, 32px); z-index: 2; transform: translateY(8px); opacity: .9; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.work:hover .work-meta { transform: translateY(0); opacity: 1; }
.work .work-cat { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.work .work-title { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 700; margin-top: 8px; }
.work .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.7); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid var(--line-2); display: grid; place-items: center; opacity: 0; transition: all .5s var(--ease); z-index: 2; }
.work:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.work .play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }

/* ---------- Logo cloud (clients) ---------- */
.logo-cloud { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.logo-cloud .lc { background: var(--bg-2); padding: 30px; display: grid; place-items: center; color: var(--fg-faint); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .06em; transition: color .4s, background .4s; }
.logo-cloud .lc:hover { color: var(--fg); background: var(--bg-3); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 24px); align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); position: relative; }
.price-card.featured { border-color: transparent; background: linear-gradient(160deg, var(--surface), var(--bg-2)); }
.price-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.price-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 600; padding: 6px 16px; border-radius: 100px; background: var(--grad); color: #06070b; letter-spacing: .04em; }
.price-card .plan-name { font-size: 1.05rem; color: var(--fg-soft); }
.price-card .plan-price { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 14px 0 4px; }
.price-card .plan-price small { font-size: .9rem; color: var(--fg-mute); font-family: var(--font-sans); }
.price-card .plan-note { font-size: .86rem; color: var(--fg-mute); padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.price-card ul { display: grid; gap: 14px; margin-bottom: 28px; }
.price-card ul li { display: flex; gap: 12px; font-size: .92rem; color: var(--fg-soft); }
.price-card ul li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: var(--line-2); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px clamp(20px, 3vw, 30px); text-align: left; font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.12rem); }
.faq-q .pm { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px; background: var(--accent); transform: translate(-50%,-50%); transition: transform .35s var(--ease); }
.faq-q .pm::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item.open .pm::after { transform: translate(-50%,-50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 clamp(20px, 3vw, 30px) 26px; color: var(--fg-mute); }

/* ---------- Split / feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 4/3; background: linear-gradient(160deg, var(--surface), var(--bg-3)); }

/* ---------- Quote / testimonial ---------- */
.quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.4; letter-spacing: -.01em; }
.testi { padding: clamp(28px,3vw,40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
.testi p { font-size: 1.05rem; color: var(--fg-soft); }
.testi .who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.testi .who .av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); flex: none; }
.testi .who b { display: block; font-size: .92rem; } .testi .who span { font-size: .8rem; color: var(--fg-mute); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 100px) clamp(28px, 5vw, 80px); overflow: hidden; background: linear-gradient(135deg, #0f1830, #1a1030); border: 1px solid var(--line-2); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .12; }
.cta-band h2 { position: relative; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; color: var(--fg-soft); font-weight: 500; }
.field label .req { color: var(--accent-3); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--fg);
  font: inherit; font-size: .96rem; transition: border-color .3s, background .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- Tables (会社概要等) ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 22px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 200px; color: var(--fg-mute); font-weight: 500; font-size: .92rem; }
.info-table td { color: var(--fg-soft); }

/* ---------- Page hero (内ページ) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero .kicker { margin-bottom: 22px; }
.page-hero h1 { margin-bottom: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--fg-mute); margin-bottom: 26px; font-family: var(--font-mono); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--fg-faint); }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 56px 0 20px; }
.prose h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); margin: 40px 0 14px; }
.prose p { color: var(--fg-soft); margin-bottom: 18px; }
.prose ul { display: grid; gap: 12px; margin: 18px 0 26px; }
.prose ul li { display: flex; gap: 12px; color: var(--fg-soft); }
.prose ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 11px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- News list ---------- */
.news-list { display: grid; gap: 2px; }
.news-row { display: grid; grid-template-columns: 150px 130px 1fr auto; gap: 24px; align-items: center; padding: 26px 8px; border-top: 1px solid var(--line); transition: background .3s; }
.news-row:last-child { border-bottom: 1px solid var(--line); }
.news-row:hover { background: var(--bg-2); }
.news-row time { font-family: var(--font-mono); color: var(--fg-mute); font-size: .88rem; }
.news-row .cat { font-size: .72rem; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--accent); justify-self: start; }
.news-row .nt { font-weight: 500; }
.news-row .arr { color: var(--fg-mute); transition: transform .3s, color .3s; }
.news-row:hover .arr { transform: translateX(5px); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(60px, 8vw, 100px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 56px); padding-bottom: 60px; }
.footer-brand p { color: var(--fg-mute); margin-top: 20px; max-width: 320px; font-size: .92rem; }
.footer-col h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 20px; font-family: var(--font-mono); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--fg-soft); font-size: .92rem; transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--fg-mute); font-size: .82rem; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: all .3s; }
.footer-bottom .socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- Scroll reveal (JS-driven) ---------- */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
[data-reveal].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: .4s; }

/* Progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 200; box-shadow: 0 0 12px var(--accent); }

/* Cursor glow follower */
.cursor-glow { position: fixed; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.14), transparent 65%); pointer-events: none; z-index: 1; transform: translate(-50%, -50%); transition: opacity .4s; mix-blend-mode: screen; }

/* Counter wrapper */
.count[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Video embed (responsive 16:9) ---------- */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface), var(--bg-3)); }
.video-embed.placeholder .play { position: static; opacity: 1; transform: none; width: 78px; height: 78px; }

/* ---------- Article / blog ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--fg-mute); font-size: .86rem; font-family: var(--font-mono); }
.article-meta .cat { padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--accent); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card .thumb { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.post-card .thumb > div { width: 100%; height: 100%; transition: transform .7s var(--ease); }
.post-card:hover .thumb > div { transform: scale(1.06); }
.post-card time { font-family: var(--font-mono); font-size: .78rem; color: var(--fg-mute); }
.post-card h3 { font-size: 1.1rem; margin: 8px 0 10px; }
.post-card p { color: var(--fg-mute); font-size: .9rem; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; background: var(--bg-2); }
.toc h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 14px; font-family: var(--font-mono); }
.toc ol { display: grid; gap: 10px; counter-reset: t; }
.toc ol li { counter-increment: t; }
.toc ol li a { color: var(--fg-soft); font-size: .92rem; }
.toc ol li a::before { content: counter(t, decimal-leading-zero); color: var(--accent); font-family: var(--font-mono); margin-right: 10px; font-size: .82rem; }
.toc ol li a:hover { color: var(--accent); }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.error-hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.error-hero .code { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 16rem); line-height: .9; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Utility */
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-s { gap: 12px; } .gap-m { gap: 24px; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(40px,6vw,80px); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .work.span-7, .work.span-5, .work.span-6, .work.span-4, .work.span-8 { grid-column: span 12; }
}
@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .price-grid, .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .timeline .step { grid-template-columns: 1fr; gap: 10px; }
  .news-row { grid-template-columns: 1fr; gap: 8px; }
  .news-row .arr { display: none; }
  .info-table th { width: 130px; }
  .field-row { grid-template-columns: 1fr; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .stats-band { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Overflow safety: grid/flex children must be allowed to shrink,
   and long unbreakable strings (emails/URLs) must wrap on small screens ---- */
.grid > *, .work-grid > *, .footer-grid > *, .split > *, .grid-3 > *, .grid-4 > *, .grid-2 > * { min-width: 0; }
.prose a, .prose li, .prose p, .info-table td, .card p, .lead { overflow-wrap: anywhere; }
html { overflow-x: clip; }

/* =========================================================================
   HYBRID THEME — light content + dark zones (overrides base dark tokens)
   Base dark tokens above stay as the "dark zone" reference; here we flip
   the global page to a bright palette, then re-darken specific zones.
   No per-page HTML changes required — custom properties cascade.
   ========================================================================= */
:root {
  --bg: #eef1f7;
  --bg-2: #ffffff;
  --bg-3: #e6eaf2;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --line: rgba(13, 18, 33, 0.10);
  --line-2: rgba(13, 18, 33, 0.17);
  --fg: #0d1119;
  --fg-soft: #353c4b;
  --fg-mute: #616a7d;
  --fg-faint: #9aa2b3;
  --accent: #d1541f;
  --grad-text: linear-gradient(100deg, #d98a2e 0%, #d1541f 48%, #c9314f 100%);
  --shadow: 0 30px 70px -34px rgba(40, 24, 14, 0.26);
}

/* Brighter page base with subtle brand tint */
body { background: linear-gradient(180deg, #f4f6fb 0%, #eaeef6 100%); }

/* Ambient: bright brand tints on the light canvas (was dark smudges) */
.ambient span { opacity: .12; filter: blur(110px); }
.ambient span:nth-child(1) { background: radial-gradient(circle, #ffb24a, transparent 70%); }
.ambient span:nth-child(2) { background: radial-gradient(circle, #ff6a3a, transparent 70%); }
.ambient span:nth-child(3) { background: radial-gradient(circle, #ff466b, transparent 70%); opacity: .08; }

/* Soft depth for cards / surfaces on light bg */
.card { box-shadow: 0 1px 2px rgba(20,28,60,.04), 0 24px 50px -34px rgba(20,28,60,.22); }
.price-card, .testi, .faq-item, .toc { box-shadow: 0 1px 2px rgba(20,28,60,.04), 0 20px 44px -34px rgba(20,28,60,.18); }
.field input, .field select, .field textarea { background: #fff; }

/* Film grain a touch lighter on bright bg */
body::before { opacity: .35; }

/* ---- DARK ZONES: re-declare dark tokens so descendants render dark ---- */
.site-header,
.mobile-menu,
.hero,
.page-hero,
.error-hero,
.cta-band,
.site-footer {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --bg-3: #11141d;
  --surface: #151925;
  --surface-2: #1b2130;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f4f6fb;
  --fg-soft: #c5cad6;
  --fg-mute: #8b93a7;
  --fg-faint: #5a6175;
  --accent: #ff8a4c;
  --grad-text: linear-gradient(100deg, #ffd7a6 0%, #ff9a5f 50%, #ff6f6f 100%);
  color: var(--fg); /* re-apply so headings/plain text inherit light in dark zones */
}
/* Dark zones need an explicit dark background (sections are otherwise transparent) */
.hero { background: #07080c; }
.page-hero { background: radial-gradient(120% 140% at 15% -10%, #141a30 0%, #0a0c14 55%, #07080c 100%); }
.error-hero { background: radial-gradient(120% 120% at 50% 0%, #141a30, #07080c 60%); }
.site-footer { background: #0a0c12; }
/* Cards/dropdown inside dark header keep their own dark surface (no light shadow) */
.site-header .card, .cta-band .card { box-shadow: none; }

/* page-hero sits under the fixed header — keep nav legible at the very top */
.page-hero { isolation: isolate; }

/* =========================================================================
   MEDIA — real photo / video integration helpers
   ========================================================================= */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Hero: real background video + generative canvas, stacked */
.hero-bg > video, .hero-bg > canvas, .hero-bg > .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg > video { z-index: 0; opacity: .5; }
.hero-bg > .hero-photo { z-index: 0; background-size: cover; background-position: center; opacity: .42; transform: scale(1.04); }
.hero-bg > canvas { z-index: 1; mix-blend-mode: screen; opacity: .85; }

/* Card media (photo on top of a .card) */
.card .card-media { aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; margin-bottom: 22px; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.card:hover .card-media { transform: scale(1.03); }

/* Split media as photo */
.split-media.photo { background-size: cover; background-position: center; }
.split-media .img-cover { position: absolute; inset: 0; }

/* Section background photo band (with dark scrim) */
.photo-band { position: relative; overflow: hidden; }
.photo-band .photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.photo-band .photo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,12,.82), rgba(7,8,12,.9)); }
.photo-band > .container { position: relative; z-index: 2; }

/* Subtle zoom-on-scroll for work visuals already handled; ensure cover */
.work-visual { background-size: cover; background-position: center; }

/* Video poster frame for .video-embed placeholders */
.video-embed.has-photo { background-size: cover; background-position: center; }
.video-embed.has-photo .play { background: rgba(7,8,12,.45); backdrop-filter: blur(4px); }
.video-embed.has-photo::after { content: ""; position: absolute; inset: 0; background: rgba(7,8,12,.35); }
.video-embed.has-photo .play { position: relative; z-index: 2; }

/* =========================================================================
   PERFORMANCE — reduce per-frame paint/composite cost ("軽量化")
   ========================================================================= */
/* Film grain used mix-blend-mode over animated content = costly recompositing → drop it */
body::before { display: none; }

/* Cursor glow removed in JS; ensure no stray element renders */
.cursor-glow { display: none !important; }

/* Lighter header blur (backdrop-filter re-blurs each scroll frame) */
.site-header.scrolled { backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); }

/* Ambient: cheaper blur; drop the 3rd blob; hide on small/touch screens */
.ambient span { filter: blur(72px); }
.ambient span:nth-child(3) { display: none; }
@media (max-width: 860px) { .ambient { display: none; } }

/* Skip rendering work for long off-screen content (huge scroll perf win) */
.site-footer { content-visibility: auto; contain-intrinsic-size: 1px 600px; }

/* Hint the compositor only where it helps; avoid persistent layers elsewhere */
.work-visual, .card .card-media, .post-card .thumb > div { will-change: auto; }

/* =========================================================================
   PERFORMANCE v2 — kill scroll-time recompositing (fixed blur + backdrop-filter)
   These were the main cause of severe scroll lag.
   ========================================================================= */
/* Fixed, large blur layers force the GPU to re-rasterize on every scroll frame → remove */
.ambient { display: none !important; }

/* backdrop-filter re-blurs the page behind it each frame → use solid translucent fills */
.site-header.scrolled { background: rgba(7, 8, 12, 0.94); backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.dropdown { background: rgba(17, 20, 29, 0.98); backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.mobile-menu { background: rgba(7, 8, 12, 0.99); backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.work .play, .video-embed.has-photo .play { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Revert content-visibility (can cause layout churn while measuring scroll height) */
.site-footer { content-visibility: visible; contain-intrinsic-size: auto; }

/* Drop persistent compositing hints that pin GPU layers unnecessarily */
.btn, .ambient span { will-change: auto; }

/* =========================================================================
   FIX: dropdown hover-gap + responsive nav
   ========================================================================= */
/* The 12px gap between the nav link and the dropdown broke hover (menu vanished
   before the cursor reached it). Close the gap + add an invisible hover bridge. */
.dropdown { top: 100%; margin-top: 0; padding-top: 20px; }
.nav-item > .nav-link { position: relative; }
.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 22px; } /* bridge over the gap */
/* keep it open while hovering the link OR the menu itself */
.nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Nav links must never wrap (prevents 事業/内容 style breaks) */
.nav-link { white-space: nowrap; }
/* Hamburger earlier so the nav never crowds/overflows on laptops & tablets */
@media (max-width: 1200px) {
  .nav { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Responsive polish */
@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .h-xl { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero { min-height: 92svh; }
  .btn { padding: 13px 22px; }
  .btn-lg { padding: 15px 26px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .work .work-meta { transform: none; opacity: 1; }
  .info-table th, .info-table td { display: block; width: 100%; padding: 8px 0; }
  .info-table th { border: 0; color: var(--accent); padding-top: 16px; }
  .info-table td { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .price-card .plan-price { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
}

/* =========================================================================
   READABILITY — raise contrast of muted text on the light theme + fix dark cards
   ========================================================================= */
:root {
  --fg-mute: #4b5365;   /* was #616a7d — darker for clearer body/muted text */
  --fg-faint: #737c90;  /* was #9aa2b3 — clearer captions/labels */
  --grad-text: linear-gradient(100deg, #c07a1e 0%, #c94f22 48%, #b52f4c 100%); /* deeper warm on white */
}
/* Dark accent card placed inside a light section needs light text */
.card-dark { background: linear-gradient(160deg, #241206, #2a1512) !important; border-color: var(--line-2); }
.card-dark, .card-dark h3 { color: #fbf4ee; }
.card-dark .num { color: #ffb24a; }
.card-dark p { color: #e8dccf; }
.card-dark .tag { color: #f3ece3; border-color: rgba(255,255,255,.22); }
.card-dark .card-icon { color: #ffb24a; }

/* =========================================================================
   JAPANESE LINE-BREAKING — readable wrapping (kinsoku), avoid awkward breaks
   ========================================================================= */
h1, h2, h3, h4, p, li, .lead, .quote, .pc-name, .s-h1, .s-h2,
.card p, .prose p, .hero .lead, .page-hero p, .cta-band h2, .work-title {
  line-break: strict;              /* proper kinsoku: no 。、 at line start */
  overflow-wrap: break-word;       /* long latin tokens/URLs wrap instead of overflow */
  word-break: auto-phrase;         /* break at Japanese phrase boundaries (keeps 美しい together) */
}
p, .lead, .s-lead, .prose p { text-wrap: pretty; }   /* avoids orphans/short last lines */
/* text-wrap:balance intentionally omitted for large JP headings — it split words mid-phrase.
   auto-phrase above governs break points; manual <br> controls intended line breaks. */

/* =========================================================================
   HERO VIDEO + extra motion
   ========================================================================= */
.hero-video { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } } /* poster bg on .hero-bg shows */

/* Warm editorial accent text — static, intentional (no shimmer) */
.gradient-text { background-size: 100% auto; }

/* Reveal: add gentle scale/blur-in variants */
[data-reveal="pop"] { opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal="pop"].in { opacity: 1; transform: none; }

/* Card hover polish across HP */
.card, .work, .price-card { transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); }
.work:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }

/* Kicker dot: soft float */
.kicker::before { will-change: transform; }

/* Marquee: ensure smooth */
.marquee-track { will-change: transform; }

/* =========================================================================
   VIDEO LIGHTBOX (works portfolio)
   ========================================================================= */
.play { cursor: pointer; }
.vlb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; padding: 20px; }
.vlb.open { opacity: 1; visibility: visible; }
.vlb-ov { position: absolute; inset: 0; background: rgba(0,0,0,.86); }
.vlb-panel { position: relative; z-index: 2; width: min(1100px, 94vw); aspect-ratio: 16/9; transform: scale(.95); transition: transform .45s var(--ease); }
.vlb.open .vlb-panel { transform: none; }
.vlb-panel video { width: 100%; height: 100%; background: #000; border-radius: 6px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.vlb-close { position: absolute; top: -48px; right: 0; font-size: 2rem; color: #fff; line-height: 1; width: 46px; height: 46px; }
@media (max-width: 600px) { .vlb-close { top: -40px; } }

/* Works thumbnails as looping video (moving showreel) */
video.work-visual { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* =========================================================================
   READABILITY v2 — legible text over the (bright) hero video + scrims
   ========================================================================= */
.hero-video { opacity: .4; }
.hero .hero-bg::after {
  background:
    linear-gradient(to top, #07080c 6%, rgba(7,8,12,.25) 55%, transparent 78%),
    linear-gradient(to right, rgba(7,8,12,.9) 0%, rgba(7,8,12,.55) 38%, rgba(7,8,12,.15) 65%, transparent 82%);
}
.hero-inner { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lead { color: #eef1f8; }

/* Stronger scrim on portfolio video/photo tiles for title legibility */
.work::after { background: linear-gradient(to top, rgba(7,8,12,.95) 4%, rgba(7,8,12,.35) 42%, transparent 68%); }
.work .work-cat { color: #a6ecff; text-shadow: 0 1px 10px rgba(0,0,0,.7), 0 0 2px rgba(0,0,0,.6); }
.work .work-title { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.7); font-weight: 700; }

/* =========================================================================
   BRUSH-UP — small polish across HP & EC
   ========================================================================= */
/* In-page anchors clear the fixed header when jumped to */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
/* Smoother image placeholders while loading */
img { background-color: rgba(127,127,127,.06); }
/* Consistent focus ring on interactive shop elements */
.pc-wish:focus-visible, .pc-view:focus-visible, .cart-btn:focus-visible, .btn-lux:focus-visible, .play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Prevent layout shift: reserve card media ratio */
.pc-media, .work { contain: layout paint; }

/* =========================================================================
   SKIP LINK + COOKIE CONSENT
   ========================================================================= */
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 400; background: var(--accent); color: #06070b; padding: 10px 16px; border-radius: 6px; font-weight: 700; transition: top .3s; }
.skip-link:focus { top: 12px; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: rgba(10,12,18,.97); border-top: 1px solid var(--line-2); color: var(--fg-soft); display: flex; align-items: center; gap: 20px; justify-content: center; flex-wrap: wrap; padding: 16px 20px; transform: translateY(100%); transition: transform .5s var(--ease); }
.cookie-bar.show { transform: none; }
.cookie-bar p { font-size: .86rem; margin: 0; max-width: 640px; line-height: 1.6; }
.cookie-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-bar button { padding: 10px 22px; border-radius: 100px; font-size: .82rem; font-weight: 600; transition: transform .3s; }
.cookie-bar button:hover { transform: translateY(-2px); }
.ck-accept { background: var(--grad); color: #06070b; }
.ck-decline { border: 1px solid var(--line-2); color: var(--fg-soft); }

/* =========================================================================
   MICRO-INTERACTIONS — custom cursor, page transitions, editorial polish
   ========================================================================= */
/* Trailing cursor (decorative, sits alongside native cursor) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); transition: opacity .3s; }
.cursor-ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1.5px solid var(--accent); transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s; }
.cursor-hover .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* Page transitions */
body { animation: pagefade .5s var(--ease) both; }
@keyframes pagefade { from { opacity: 0; } to { opacity: 1; } }
html.page-leaving body { opacity: 0 !important; transition: opacity .32s var(--ease); }

/* Editorial typography & spacing refinements */
.lead { max-width: 64ch; }
.prose { max-width: 66ch; }
.section-head { max-width: 820px; }
.nav-link, .footer-col a, .s-breadcrumb a, .link-arrow { transition: color .25s var(--ease); }
.card p, .prose p, .pd-desc, .rv-item p { letter-spacing: .005em; }

/* ---------- pricing: fit chips + comparison table ---------- */
.plan-fit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 14px; }
.plan-fit-label { font-size: .7rem; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--surface, rgba(255,255,255,.02)); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); font-size: .92rem; }
.compare-table thead th { font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--muted); white-space: nowrap; }
.compare-table td.is-featured, .compare-table th.is-featured { background: color-mix(in srgb, var(--accent) 8%, transparent); font-weight: 700; }
.compare-table thead th.is-featured { color: var(--accent); }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }

/* ============ CINEMATIC LAYER (映像会社らしい高揚感) ============ */
/* hover-to-play showreel tiles */
.work .work-visual { z-index: 0; }
.work .work-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s var(--ease); z-index: 1; }
.work.playing .work-vid { opacity: 1; }
.work.playing .work-visual { transform: scale(1.06); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,6,10,.96) 3%, rgba(5,6,10,.62) 34%, rgba(5,6,10,.2) 58%, transparent 76%); z-index: 2; pointer-events: none; transition: opacity .5s var(--ease); }
.work .play { z-index: 3; }
.work .work-meta { z-index: 3; }
.work.playing .play { opacity: 0; }

/* hero showreel tag + reel button */
.hero-reel-tag { position: absolute; bottom: 30px; right: clamp(20px, 4vw, 56px); z-index: 3; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--fg-mute); text-transform: uppercase; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0483a; box-shadow: 0 0 0 0 rgba(224,72,58,.6); animation: recblink 1.6s infinite; }
@keyframes recblink { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(224,72,58,.55); } 50% { opacity: .35; box-shadow: 0 0 0 6px rgba(224,72,58,0); } }
.btn-reel { display: inline-flex; align-items: center; gap: 10px; }
.reel-play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); flex: none; }
.reel-play svg { width: 12px; height: 12px; color: #fff; margin-left: 2px; }
@media (max-width: 720px) { .hero-reel-tag { position: static; display: inline-flex; margin-top: 22px; } }

/* hero cinematic vignette */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(4,5,9,.55) 100%); }
.hero .container.hero-inner { position: relative; z-index: 2; }

/* film grain — confined to the hero background only (no body-text readability cost) */
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

/* ============ CINEMATIC TRANSITIONS v2 (media wipes — never on text) ============ */
/* Portfolio tiles: subtle rise-in reveal (clip-path caused IntersectionObserver
   to see a zero-area element and never fire — use opacity/transform instead) */
.work[data-reveal] { transition: opacity .6s var(--ease), transform .7s var(--ease); }
/* Card / figure media reveal as a soft vertical wipe */
.card[data-parallax] img, .split .card img, figure[data-reveal] img { will-change: clip-path; }
/* Editorial trailing rule on section eyebrows */
.section-head .kicker::after, .page-hero .kicker::after { content: ""; display: inline-block; width: clamp(22px, 4vw, 52px); height: 1px; background: currentColor; opacity: .45; margin-left: 6px; }
/* Refined heading accent: thin ember underline drawn on reveal for section heads */
.section-head h2[data-clip], .section-head .h-lg { position: relative; }
/* Kinetic marquee: warmer, filmstrip feel */
.marquee-track span::after { color: var(--accent); }
/* Buttons: crisper film-poster edge */
.btn-primary { box-shadow: 0 10px 30px -12px rgba(255,106,58,.5); }

/* ============ TYPOGRAPHIC RHYTHM (緩急) — hierarchy & pace ============ */
/* Lead: a clear, larger, calmer step below headings */
.lead { font-size: clamp(1.12rem, 1.7vw, 1.4rem); line-height: 1.85; font-weight: 500; color: var(--fg-soft); letter-spacing: .012em; }
.section-head .lead { max-width: 42em; }
/* Secondary/body: slightly quieter to create contrast with leads */
.muted { line-height: 1.9; }
.card p, .prose p { line-height: 1.9; }
/* Emphasis: make key phrases genuinely pop (weight + tone, marker option) */
strong, b { font-weight: 700; color: var(--fg); }
.hl { font-weight: 700; color: var(--fg); background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 34%, transparent) 0); padding: 0 .06em; border-radius: 1px; }
.em-accent { color: var(--accent); font-weight: 700; font-style: normal; }
/* Heading tiers: widen the size/weight gaps for stronger contrast */
.h-md { font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; }
.h-sm { font-weight: 700; letter-spacing: .01em; font-size: clamp(1.18rem, 1.9vw, 1.5rem); }
/* Kicker: quiet, wide-tracked label — max contrast against big mincho heads */
.kicker { opacity: .92; }
/* Prose opening line reads a touch larger (editorial lead-in) */
.prose > p:first-of-type { font-size: 1.1em; color: var(--fg); line-height: 1.85; }
/* Drop cap for the representative's message */
.dropcap::first-letter { font-family: var(--font-display); font-weight: 800; font-size: 3.2em; float: left; line-height: .82; margin: 4px 12px 0 0; color: var(--accent); }
/* Numerals & mono labels: tabular, precise */
.num, .mono, .kicker, .step-no, .plan-price { font-feature-settings: "tnum" 1; }

/* ============ SHOWREEL BAND — full-bleed cinematic video ============ */
.showreel { position: relative; min-height: min(78vh, 720px); display: grid; align-items: center; overflow: hidden; background: #05060a; isolation: isolate; }
.showreel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.showreel-scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(4,5,9,.92) 0%, rgba(4,5,9,.55) 42%, rgba(4,5,9,.2) 72%, rgba(4,5,9,.5) 100%),
  radial-gradient(120% 100% at 20% 50%, transparent 40%, rgba(4,5,9,.6) 100%); pointer-events: none; }
.showreel-bar { position: absolute; left: 0; right: 0; height: clamp(26px, 5vh, 54px); background: #04050a; z-index: 2; pointer-events: none; }
.showreel-bar-top { top: 0; } .showreel-bar-bottom { bottom: 0; }
.showreel-inner { position: relative; z-index: 3; padding-block: clamp(40px, 8vh, 90px); }
.reel-rec { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; color: #ffd7b0; text-transform: uppercase; }
.showreel-title { font-size: clamp(2.4rem, 6.5vw, 5.4rem); color: #fff; line-height: 1.08; margin-top: 18px; text-shadow: 0 4px 40px rgba(0,0,0,.5); }
.showreel-lead { color: #e7ddd2; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.9; margin-top: 20px; max-width: 34em; }
.btn-reel-lg { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding: 12px 26px 12px 12px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); color: #fff; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.btn-reel-lg:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.brl-play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); flex: none; box-shadow: 0 8px 26px -8px rgba(255,106,58,.7); }
.brl-play svg { width: 20px; height: 20px; color: #fff; margin-left: 3px; }
.brl-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; font-weight: 700; letter-spacing: .02em; }
.brl-text small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; color: #ffcfa2; font-weight: 400; }
.showreel-tc { position: absolute; right: clamp(16px, 4vw, 44px); bottom: clamp(14px, 3vh, 26px); z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: rgba(255,255,255,.62); }
.tc-dot, .tc-rec { width: 8px; height: 8px; border-radius: 50%; background: #e0483a; animation: recblink 1.6s infinite; }

/* ============ TIMECODE HUD — editing-room delight (home) ============ */
.timecode-hud { position: fixed; left: 18px; bottom: 18px; z-index: 120; display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 8px; background: rgba(8,9,14,.66); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: rgba(255,255,255,.82); pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.timecode-hud.show { opacity: 1; transform: none; }
.tc-rec { flex: none; }
.timecode-hud .tc-lab { color: rgba(255,255,255,.42); font-size: .64rem; }
@media (max-width: 720px) { .timecode-hud { display: none; } }
@media (prefers-reduced-motion: reduce) { .tc-dot, .tc-rec { animation: none; } }

/* ============ DETAIL POLISH — button shine + link underline draw ============ */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); transition: left .6s var(--ease); }
.btn-primary:hover::after { left: 130%; }
.link-arrow { position: relative; }
.link-arrow::before { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.link-arrow:hover::before { transform: scaleX(1); }

/* ============ ALIGNMENT & SPACING POLISH — 整列・間隔 ============ */
/* Mincho headings: extra air for comfortable multi-line JP */
.display { line-height: 1.14; }
.h-xl { line-height: 1.14; }
.h-lg { line-height: 1.26; }
.h-md { line-height: 1.4; }
/* Consistent paragraph rhythm (stacked text breathes evenly) */
.prose p + p { margin-top: 1.15em; }
.card p + p { margin-top: .9em; }
.muted + .muted { margin-top: 14px; }
/* Section head: steady vertical rhythm + readable measure */
.section-head .kicker { margin-bottom: 20px; }
.section-head p { margin-top: 20px; }
.section-head .lead { line-height: 1.9; max-width: 44em; }
.lead { max-width: 46em; }
/* Lists breathe and align */
.prose ul, .prose ol { margin: 16px 0; padding-left: 1.3em; }
.prose li { margin-bottom: 9px; line-height: 1.85; }
.feat-list { display: grid; gap: 16px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; }
/* Card internal rhythm */
.card h3 { margin: 14px 0 10px; line-height: 1.4; }
.svc-card p, .card p { line-height: 1.85; }
/* Info / spec tables: aligned, generous rows */
.info-table th, .info-table td { padding-block: 15px; vertical-align: top; line-height: 1.85; }
.info-table th { white-space: nowrap; }
/* Centered blocks keep their measure centered */
.center .lead, .cta-band .lead, .cta-band p { margin-inline: auto; }
/* Buttons row: consistent gap + wrap */
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Group company card ---------- */
.group-card { display: flex; gap: clamp(20px, 3vw, 36px); align-items: flex-start; padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow); transition: transform .4s var(--ease), border-color .4s var(--ease); }
.group-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.group-mark { flex: none; width: clamp(60px, 11vw, 88px); height: clamp(60px, 11vw, 88px); border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: .02em; }
.group-eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--fg-mute); text-transform: uppercase; }
.group-body h2 { margin-top: 6px; }
.group-tag { color: var(--accent); font-weight: 700; margin-top: 6px; }
.group-go { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; }
.group-go svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .group-card { flex-direction: column; } }

/* ---------- process timeline step photos ---------- */
.step-photo { margin-top: 22px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 6; border: 1px solid var(--line); background: var(--bg-3); max-width: 640px; }
.step-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .step-photo { aspect-ratio: 16 / 9; } }

/* ---------- hero group-company link ---------- */
.hero-group { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 10px 18px 10px 10px; border: 1px solid var(--line-2); border-radius: 100px; background: rgba(255,255,255,.04); color: var(--fg-soft); font-size: .9rem; line-height: 1.5; transition: border-color .3s var(--ease), background .3s, transform .3s var(--ease); max-width: 100%; }
.hero-group:hover { border-color: var(--accent); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.hg-badge { flex: none; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; font-weight: 700; color: #fff; background: var(--grad); padding: 5px 10px; border-radius: 100px; }
.hg-text { color: var(--fg-soft); }
.hg-text b { color: var(--fg); }
.hero-group svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
@media (max-width: 560px) { .hero-group { font-size: .82rem; padding: 10px 14px 10px 10px; } .hero-group svg { display: none; } }

/* ---------- hero group-company card (refined) ---------- */
.hero-group { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; padding: 14px 20px 14px 14px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(120deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 580px; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.hero-group:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 44px -24px rgba(255,106,58,.55); }
.hg-mark { flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; box-shadow: 0 8px 22px -10px rgba(255,106,58,.6); }
.hg-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hg-label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; color: var(--fg-mute); text-transform: uppercase; }
.hg-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,106,58,.5); animation: recblink 2s infinite; }
.hg-name { font-weight: 700; font-size: 1.05rem; color: var(--fg); letter-spacing: .01em; }
.hg-sub { font-size: .82rem; color: var(--fg-soft); line-height: 1.55; }
.hg-x { color: var(--accent); font-weight: 700; padding: 0 .1em; }
.hg-go { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.hg-go svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .hero-group { align-items: flex-start; gap: 12px; padding: 12px; } .hg-go { display: none; } .hg-mark { width: 46px; height: 46px; font-size: 1.2rem; } }

/* ---------- card-icon: apply even when not inside .card (fixes oversized SVG) ---------- */
.card-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 22px; flex: none; }
.card-icon svg { width: 26px; height: 26px; flex: none; }

/* ---------- footer contact (TEL / mail) ---------- */
.footer-contact { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; }
.footer-contact a { color: var(--fg-soft); transition: color .25s var(--ease); }
.footer-contact a:hover { color: var(--accent); }
.footer-contact a:first-child { font-family: var(--font-mono); font-weight: 700; letter-spacing: .02em; color: var(--fg); }
.fc-sep { color: var(--fg-faint); }
