/* =============================================================
   ViFight — 2026 リニューアル「白基調 × ホログラム」
   style.css の後に読み込み、配色とトーンを上書きする。
   ヒーローだけ夜空（オーロラ＋北海道ドット地図）、それ以外は白。
   ============================================================= */

:root {
  --bg: #ffffff;
  --bg-dark: #f4f6fb;
  --bg-accent: #e8ecf6;
  --text: #0e1328;
  --text-light: #4a5170;
  --text-muted: #5b6283;
  --line-muted: #9aa1bb;
  --accent: #0e1328;
  --accent-warm: #5b55e8;
  --accent-brown: #5b55e8;
  --accent-tan: #b8c2f0;
  --accent-blue: #3b8cff;
  --white: #ffffff;
  --border: rgba(24, 32, 78, 0.1);
  --border-strong: rgba(24, 32, 78, 0.18);

  /* aurora palette, deepened so it holds up on white */
  --aurora-green: #10c493;
  --aurora-teal: #1fa9e8;
  --aurora-ice: #4f6bff;
  --aurora-violet: #9a4dff;
  --aurora-magenta: #f0509f;

  --holo: linear-gradient(100deg, #10c493 0%, #1fa9e8 28%, #4f6bff 52%, #9a4dff 76%, #f0509f 100%);
  --holo-soft: linear-gradient(120deg, #dffbf1 0%, #dcefff 30%, #e4e3ff 58%, #f3e3ff 80%, #ffe3f1 100%);
  --night: #070b1d;
}

body { background: var(--bg); color: var(--text); }
::selection { background: #4f6bff; color: #fff; }

/* ---------- loader: night sky in the new palette ---------- */
#loader {
  background:
    radial-gradient(ellipse 100% 62% at 50% 8%, rgba(60, 230, 180, 0.16) 0%, transparent 56%),
    radial-gradient(ellipse 80% 55% at 74% 18%, rgba(150, 100, 255, 0.16) 0%, transparent 56%),
    radial-gradient(ellipse 70% 50% at 24% 22%, rgba(80, 170, 255, 0.12) 0%, transparent 56%),
    linear-gradient(180deg, #0b1130 0%, #080c22 62%, #060918 100%);
}

/* ---------- header ---------- */
#header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 30px rgba(20, 30, 80, 0.06);
}
#header.scrolled::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--holo);
  opacity: 0.55;
}
#header.scrolled.over-dark { background: rgba(8, 12, 32, 0.62); }
#header.scrolled.over-dark::after { opacity: 0.35; }
.nav-cta:hover, #header.scrolled .nav-cta:hover { background: var(--text); color: #fff; }
#header.scrolled .nav-cta { border-color: transparent; background: var(--text); color: #fff; }
#header.scrolled.over-dark .nav-cta { background: transparent; border-color: rgba(255, 255, 255, 0.45); }
.mobile-menu-bg { background: rgba(255, 255, 255, 0.97) !important; }

/* =============================================================
   HERO — night sky + rainbow aurora + Hokkaido dot map
   ============================================================= */
.hero-visual-base {
  background:
    radial-gradient(ellipse 64% 58% at 28% 52%, rgba(6, 9, 26, 0.55) 0%, rgba(6, 9, 26, 0.2) 55%, transparent 75%),
    radial-gradient(ellipse 90% 60% at 70% 110%, rgba(80, 90, 220, 0.22) 0%, transparent 60%),
    linear-gradient(180deg, #050817 0%, #0a1030 46%, #111a46 82%, #18235a 100%);
}
.hero-orb-1 { background: radial-gradient(circle, rgba(60, 230, 180, 0.22), transparent 70%) !important; }
.hero-orb-2 { background: radial-gradient(circle, rgba(80, 150, 255, 0.22), transparent 70%) !important; }
.hero-orb-3 { background: radial-gradient(circle, rgba(160, 100, 255, 0.2), transparent 70%) !important; }
.hero-orb-4 { background: radial-gradient(circle, rgba(255, 110, 190, 0.16), transparent 70%) !important; }

/* CSS fallback bands in the rainbow palette */
.aurora-band-1 { background: linear-gradient(100deg, transparent 10%, rgba(50, 232, 170, 0.5) 30%, rgba(70, 190, 255, 0.4) 50%, rgba(110, 120, 255, 0.3) 68%, transparent 88%); }
.aurora-band-2 { background: linear-gradient(95deg, transparent 6%, rgba(70, 180, 255, 0.34) 26%, rgba(150, 100, 255, 0.3) 52%, rgba(255, 110, 190, 0.26) 74%, transparent 90%); }
.aurora-band-3 { background: linear-gradient(105deg, transparent 14%, rgba(60, 230, 180, 0.3) 40%, rgba(90, 150, 255, 0.26) 66%, transparent 88%); }
.aurora-band-4 { background: linear-gradient(92deg, transparent 14%, rgba(255, 110, 190, 0.26) 40%, rgba(170, 110, 255, 0.2) 64%, transparent 88%); }
.aurora-curtain {
  background: repeating-linear-gradient(94deg, transparent 0px, rgba(110, 170, 255, 0) 12px, rgba(110, 200, 255, 0.24) 24px, rgba(170, 130, 255, 0.14) 33px, rgba(110, 170, 255, 0) 44px, transparent 60px);
}

/* Hokkaido dot map */
.hero-map {
  position: absolute;
  z-index: 2;
  right: -3vw;
  top: 11vh;
  height: 98vh;
  max-height: 1100px;
  aspect-ratio: 1000 / 860;
  pointer-events: none;
  opacity: 0.92;
}
.hero-map-canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .hero-map { height: auto; width: 150vw; right: -48vw; top: auto; bottom: 2vh; opacity: 0.55; }
}

/* fade the night sky into the white page below */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(70px, 10vh, 120px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 75%, #fff 100%);
  pointer-events: none;
  z-index: 3;
}
.hero-content::before {
  background: radial-gradient(ellipse 58% 52% at 34% 50%, rgba(5, 8, 24, 0.55) 0%, rgba(5, 8, 24, 0.24) 48%, transparent 76%);
}
.hero-tag span {
  color: rgba(225, 235, 255, 0.95);
  border-color: rgba(160, 180, 255, 0.45);
  background: rgba(10, 16, 46, 0.35);
  text-shadow: none;
}
.hero-line-outline span {
  color: #f4f7ff;
  text-shadow: 0 4px 22px rgba(4, 6, 20, 0.65), 0 1px 4px rgba(4, 6, 20, 0.45);
}
.hero-line-outline:hover span { color: #fff; text-shadow: 0 4px 26px rgba(4, 6, 20, 0.7), 0 0 40px rgba(120, 140, 255, 0.4); }
.hero-line-accent span {
  background: linear-gradient(100deg, #6ff2c6 0%, #6cc8ff 30%, #8f8bff 55%, #c784ff 76%, #ff8fcf 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(120, 140, 255, 0.35)) drop-shadow(0 4px 16px rgba(4, 6, 20, 0.6));
}
.hero-sub { color: rgba(226, 232, 255, 0.92); text-shadow: 0 2px 12px rgba(4, 6, 20, 0.6); }
.hero-cta-btn {
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 38px rgba(4, 6, 20, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6);
  position: relative;
}
.hero-cta-btn::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: var(--holo);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.7;
  transition: opacity 0.35s;
}
.hero-cta-btn:hover::before { opacity: 1; }
.hero-cta-btn:hover { box-shadow: 0 16px 52px rgba(4, 6, 20, 0.5); }
.hero-cta-ghost { text-shadow: 0 2px 10px rgba(4, 6, 20, 0.6); }
.hero-scroll { bottom: 120px; }
.hero-scroll-line { background: rgba(150, 170, 255, 0.3); }
.hero-scroll-line::after { background: linear-gradient(180deg, #6ff2c6, #8f8bff, #ff8fcf); }
.hero-marquee { background: none; z-index: 4; }
.hero-marquee .marquee-track span { color: rgba(14, 19, 40, 0.38); }

/* =============================================================
   HOME SECTIONS — white with holographic accents
   ============================================================= */
.home-section {
  background: #fff;
  color: var(--text);
}
.home-section + .home-section { border-top: 1px solid var(--border); }
.home-aurora {
  opacity: 0.45;
  filter: blur(60px) saturate(130%);
  background:
    radial-gradient(ellipse 46% 40% at 18% 14%, rgba(16, 196, 147, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 44% 38% at 58% 8%, rgba(79, 107, 255, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 40% 36% at 86% 22%, rgba(240, 80, 159, 0.14) 0%, transparent 62%);
}
.home-aurora--right {
  background:
    radial-gradient(ellipse 46% 40% at 84% 12%, rgba(154, 77, 255, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 44% 38% at 40% 8%, rgba(31, 169, 232, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 40% 34% at 14% 26%, rgba(16, 196, 147, 0.14) 0%, transparent 62%);
}
.home-aurora--center {
  background:
    radial-gradient(ellipse 54% 48% at 50% 18%, rgba(79, 107, 255, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 44% 40% at 24% 32%, rgba(16, 196, 147, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 44% 40% at 78% 28%, rgba(240, 80, 159, 0.16) 0%, transparent 60%);
}
.gl-aurora-on .home-aurora { display: block; }

.home-eyebrow,
.home-preview-num,
.home-cta-eyebrow {
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.home-lead-sub,
.home-preview-sub,
.home-cta-sub,
.founder-text,
.strength-card p,
.home-service-desc { color: var(--text-light); }
.home-stats { border-top-color: var(--border); }
.home-stat + .home-stat::before { background: linear-gradient(180deg, transparent, var(--border-strong), transparent); }
.home-stat-num, .home-stat-plus { background: var(--holo); -webkit-background-clip: text; background-clip: text; filter: none; }
.home-stat:hover .home-stat-num { filter: drop-shadow(0 6px 24px rgba(79, 107, 255, 0.25)); }
.home-stat-label { color: var(--text-muted); }
.home-more { color: var(--text); border-bottom-color: var(--border-strong); }
.home-more:hover { color: var(--aurora-ice); border-color: var(--aurora-ice); }

/* holographic card base used by services / strengths / trust */
.home-service,
.strength-card,
.trust-item {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(20, 30, 80, 0.04), 0 10px 30px -18px rgba(20, 30, 80, 0.18);
}
.home-service:hover,
.strength-card:hover,
.trust-item:hover {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--holo) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 40px -20px rgba(79, 107, 255, 0.35);
}
.home-service-num, .strength-num { color: var(--aurora-ice); }
.home-service-arrow { color: var(--aurora-ice); }
.home-service::before, .strength-card::before { background: var(--holo-soft) !important; opacity: 0.6; }
.trust-ico { background: var(--holo); color: #fff; }
.trust-body p { color: var(--text-light); }
.trust-strip { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .trust-strip { grid-template-columns: 1fr; } }

/* AI section (new) */
.home-ai {
  text-align: left;
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(154, 77, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(16, 196, 147, 0.08), transparent 60%),
    #fff;
}
.home-ai-title {
  font-size: clamp(30px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: keep-all;
}
.home-ai-title .aurora-text { background: var(--holo); -webkit-background-clip: text; background-clip: text; }
.home-ai-text {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 760px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 2.1;
  color: var(--text-light);
}

/* works preview */
.home-work { color: var(--text); }
.home-work-img { border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px -18px rgba(20, 30, 80, 0.3); }
.home-work-img img { filter: none; }
.home-work-img::after { background: linear-gradient(180deg, transparent 50%, rgba(14, 19, 40, 0.25)); }
.home-work-cat { color: var(--aurora-ice); }

/* voice */
.home-voice-card {
  background: var(--holo-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--aurora-ice);
}
.home-voice-mark { color: rgba(79, 107, 255, 0.22); }
.home-voice-text { color: var(--text); }
.home-voice-text strong { color: var(--aurora-ice); }
.home-voice-meta { border-top-color: var(--border-strong); }
.home-voice-result { color: var(--text-muted); }
.home-voice-result strong { color: var(--aurora-violet); }

/* founder */
.founder-photo img { box-shadow: 0 30px 60px -24px rgba(20, 30, 80, 0.35); }
.founder-photo::before { background: radial-gradient(circle at 70% 30%, rgba(79, 107, 255, 0.45), rgba(240, 80, 159, 0.2) 50%, transparent 70%); }
.founder-badge { background: rgba(255, 255, 255, 0.82); color: var(--text); border-color: rgba(255, 255, 255, 0.9); }
.founder-badge-role { background: var(--holo); color: #fff; }
.founder-creds li { border-color: var(--border-strong); background: #fff; color: var(--text); }
.founder-sign { color: var(--text-muted); }
.founder-sign strong { color: var(--text); }

/* primary buttons: dark pill with holographic glow */
.home-cta-btn,
.founder-cta,
.tab-callout-btn {
  background: var(--text);
  color: #fff;
  box-shadow: 0 12px 34px -12px rgba(79, 107, 255, 0.55);
  position: relative;
}
.home-cta-btn::after,
.founder-cta::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--holo);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.home-cta-btn:hover, .founder-cta:hover { box-shadow: 0 18px 46px -12px rgba(154, 77, 255, 0.6); }
.tab-callout-btn:hover { background: var(--aurora-ice); }

/* CTA */
.home-cta { background: var(--holo-soft); }
.home-cta-note { color: var(--text-muted); }

/* =============================================================
   LIGHT TABS — tokens do most of the work; tune the accents
   ============================================================= */
.sec-aurora { opacity: 0.55; }
.sec-aurora {
  background:
    radial-gradient(ellipse 58% 52% at 72% 16%, rgba(79, 107, 255, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 48% at 92% 4%, rgba(240, 80, 159, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 46% 44% at 50% 28%, rgba(16, 196, 147, 0.12) 0%, transparent 62%);
}
.sec-aurora--left {
  background:
    radial-gradient(ellipse 58% 52% at 24% 80%, rgba(31, 169, 232, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 48% at 8% 92%, rgba(154, 77, 255, 0.12) 0%, transparent 60%);
}
.section-num { background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wh-num { background: var(--holo); -webkit-background-clip: text; background-clip: text; }
.tab-callout { background: var(--holo-soft); border-left-color: var(--aurora-ice); }
.tab-pager-link:hover { border-color: rgba(79, 107, 255, 0.45); background: var(--holo-soft); }
.nav-links a::after { background: var(--holo); }
.nav-logo:hover span { background: var(--holo); -webkit-background-clip: text; background-clip: text; }
.faq-item.active { border-bottom-color: rgba(79, 107, 255, 0.5); }
.profile-table > div:hover { background: linear-gradient(90deg, rgba(79, 107, 255, 0.06), transparent 60%); }
.flow-assure-item { background: #fff; }
.flow-assure-item .fa-ico { background: var(--holo); color: #fff; }
.float-shape { opacity: 0.35; }

/* philosophy: was a night band, now a soft holographic field */
.philosophy {
  background: var(--holo-soft);
  color: var(--text);
  box-shadow: none;
}
.philosophy::after { display: none; }
.philosophy-bg { background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 255, 255, 0.7), transparent 70%); }
.philosophy-orb { opacity: 0.5; }
.philosophy-aurora, .philosophy-aurora-curtain { opacity: 0.25; }
.philosophy-deco-quote { background: var(--holo); -webkit-background-clip: text; background-clip: text; filter: none; opacity: 0.6; }
.philosophy-quote { text-shadow: none; color: var(--text); }
.philosophy-accent-line { background: var(--holo); box-shadow: none; }
.philosophy-attr { color: var(--text-muted); }
.philosophy-particles { opacity: 0.6; }

/* footer: white with a holographic top line */
.footer {
  background: #fff;
  color: var(--text);
  padding-top: clamp(70px, 9vw, 120px);
  border-top: 1px solid var(--border);
}
.footer::before { background: var(--holo); height: 2px; opacity: 0.8; }
.footer-top { border-bottom-color: var(--border) !important; }
.footer-logo {
  background: var(--holo) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: none !important;
}
.footer-tagline, .footer-info dd, .footer-links a, .footer-bottom p, .footer-totop { color: var(--text-light) !important; }
.footer-info dt { color: var(--text-muted) !important; }
.footer-links a:hover { color: var(--aurora-ice) !important; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--aurora-ice); }
.footer-totop { border-color: var(--border-strong) !important; }
.footer-totop:hover { border-color: var(--aurora-ice) !important; }

/* cursor on white */
.cursor { background: var(--text); }
.cursor-follower { border-color: rgba(79, 107, 255, 0.5); }

.footer, .footer * { text-shadow: none !important; }

/* about stats: number and unit on one baseline */
.stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 2px; }
.stat-label { grid-column: 1 / -1; }
.stat-num { background: var(--holo); -webkit-background-clip: text; background-clip: text; }
.stat-plus { color: var(--aurora-violet); }
.philosophy-content::before { display: none; }

/* =============================================================
   WORK MODAL — design preview (auto-scroll) + live site
   ============================================================= */
.work-modal-backdrop { background: rgba(10, 14, 36, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.work-modal-dialog {
  max-width: min(1280px, 95vw);
  width: 95vw;
  height: min(88vh, 900px);
  max-height: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 40px 100px -20px rgba(10, 14, 50, 0.5);
}
.work-modal-dialog::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--holo);
  z-index: 3;
}
.work-modal-close { background: #fff; border: 1px solid var(--border); z-index: 5; }
.work-modal-stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 0 16px 22px;
  background: var(--bg-dark);
}
.wm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.wm-tabs, .wm-devices {
  display: inline-flex;
  padding: 4px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--border);
}
.wm-tab, .wm-device {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-light);
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.wm-device { padding: 7px 16px; font-size: 12.5px; }
.wm-tab.is-on, .wm-device.is-on { background: var(--text); color: #fff; }
.wm-tab:not(.is-on):hover, .wm-device:not(.is-on):hover { color: var(--text); }
.wm-devices[hidden] { display: none; }
.wm-browser {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -24px rgba(20, 30, 80, 0.35);
}
.wm-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #f3f4f8;
  border-bottom: 1px solid var(--border);
}
.wm-dots { display: inline-flex; gap: 6px; }
.wm-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.wm-dots i:nth-child(2) { background: #ffbd2e; }
.wm-dots i:nth-child(3) { background: #28c941; }
.wm-url {
  flex: 1;
  min-width: 0;
  padding: 5px 14px;
  border-radius: 100px;
  background: #fff;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-view { position: relative; flex: 1; min-height: 0; }
.wm-design, .wm-live { position: absolute; inset: 0; }
.wm-design {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  outline: none;
}
.wm-design[hidden], .wm-live[hidden] { display: none; }
.wm-shot { width: 100%; height: auto; display: block; }
.wm-design.is-app { display: flex; align-items: center; justify-content: center; background: #f3f4f8; overflow: hidden; }
.wm-design.is-app .wm-shot { width: 100%; height: 100%; object-fit: contain; }
.wm-live { overflow: hidden; background: #f3f4f8; }
.wm-frame { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; }
.wm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.wm-live.is-sp .wm-frame {
  border-radius: 34px;
  box-shadow: 0 0 0 10px #0e1328, 0 30px 60px -20px rgba(10, 14, 50, 0.55);
  overflow: hidden;
}
.wm-hint { margin-top: 10px; font-size: 12px; color: var(--text-muted); padding-right: 22px; }
.work-modal-body { padding: clamp(28px, 3vw, 40px); padding-top: 64px; }
.work-modal-cat { color: var(--aurora-ice); }
.wm-open {
  margin-top: 26px;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.wm-open:hover { border-color: var(--aurora-ice); color: var(--aurora-ice); background: var(--holo-soft); }
@media (max-width: 900px) {
  .work-modal-dialog {
    display: block;
    height: 92vh;
    width: 96vw;
    overflow-y: auto;
  }
  .work-modal-stage { padding: 58px 12px 10px; height: 68vh; }
  .work-modal-body { padding: 22px 20px 30px; }
  .wm-tab { padding: 8px 14px; font-size: 12.5px; }
}
.work-modal { z-index: 3000; }
#header.scrolled .nav-links a.nav-cta { color: #fff; }
#header.scrolled.over-dark .nav-links a.nav-cta { color: rgba(255, 255, 255, 0.92); }
body.modal-open #header { opacity: 0; pointer-events: none; }
body.modal-open .totop, body.modal-open #totop { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .hero-title--jp .hero-line { font-size: 6.7vw; }
}

/* =============================================================
   HERO HEADLINE — 「北海道から、」 with the outline-draw intro
   ============================================================= */
.hero-title .cc-hk { position: relative; display: inline-block; font-style: normal; }
.hero-line-outline .cc-hk span { text-shadow: none; }
.hero-title .hkw {
  position: relative;
  z-index: 1;
  background: linear-gradient(100deg, #6ff2c6 0%, #6cc8ff 35%, #8f8bff 65%, #ff8fcf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(4, 6, 20, 0.6));
}
.hero-title .cc-grad {
  font-weight: inherit;
  background: linear-gradient(100deg, #9af8da, #9adbff 30%, #b6b0ff 55%, #e2a8ff 76%, #ffb3de);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(4, 6, 20, 0.7));
}
/* 「北海道」: a map pin drops onto 道, ripples spread, the word lights up */
.cc-pin {
  position: absolute;
  left: 83%; top: -0.42em;
  width: 0.34em; height: auto;
  margin-left: -0.17em;
  z-index: 3;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(4, 6, 20, 0.6));
}
.cc-ring {
  position: absolute;
  left: 83%; top: -0.02em;
  width: 1.4em; height: 0.42em;
  margin-left: -0.7em;
  border-radius: 50%;
  border: 0.03em solid #9af8da;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.cc-ring.r2 { border-color: #b6b0ff; }
.hero-title .hkw { filter: brightness(0.45) saturate(0.6) drop-shadow(0 4px 18px rgba(4, 6, 20, 0.6)); transition: filter 0.8s ease-out; }
.hero-title.hk-pin .hero-line { overflow: visible; }
.hero-title.hk-pin .cc-pin { animation: hkDrop 0.75s 0.25s cubic-bezier(0.3, 1.5, 0.55, 1) forwards; }
@keyframes hkDrop { 0% { opacity: 0; transform: translateY(-1.4em); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.hero-title.hk-pin .cc-ring { animation: hkRing 1s 1s ease-out forwards; }
.hero-title.hk-pin .cc-ring.r2 { animation-delay: 1.25s; }
@keyframes hkRing { 0% { opacity: 0.9; transform: scale(0.2); } 100% { opacity: 0; transform: scale(2.6); } }
.hero-title.hk-lit .hkw { filter: drop-shadow(0 4px 18px rgba(4, 6, 20, 0.6)) drop-shadow(0 0 22px rgba(130, 160, 255, 0.45)); }
.hero-title--jp .hero-line > span { white-space: nowrap; }
@media (min-width: 601px) {
  .hero-title--jp .hero-line { font-size: clamp(26px, 6.4vw, 88px); }
}
@media (max-width: 600px) {
  .hero-title--jp .hero-line { font-size: 6.7vw; }
  .hero-title--jp .hero-line:first-child { font-size: 9.5vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .cc-pin { opacity: 1; animation: none !important; }
  .hero-title .cc-ring { display: none; }
  .hero-title .hkw { filter: drop-shadow(0 4px 18px rgba(4, 6, 20, 0.6)); }
}
/* wider scrim so the headline stays crisp over the larger map */
.hero-content::before { right: -12%; background: radial-gradient(ellipse 62% 56% at 38% 50%, rgba(5, 8, 24, 0.5) 0%, rgba(5, 8, 24, 0.22) 50%, transparent 78%); }

/* works grid: brand-colour card for projects without a screenshot */
.work-photo--card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--ct);
  text-align: center;
}
.work-photo--card span { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: 0.02em; }
.work-photo--card small { font-size: 13px; opacity: 0.85; }

/* contact background guidance (assets/js/contact-bg.js) */
.contact.has-cbg { position: relative; }
.contact-bg { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; }
.contact.has-cbg .container { position: relative; z-index: 1; }

/* works background on scroll (assets/js/works-bg.js) */
.works.has-wbg { position: relative; }
.works-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.works-bg canvas { position: absolute; left: 0; top: 0; display: block; will-change: transform; }
.works.has-wbg .container { position: relative; z-index: 1; }

/* =============================================================
   SERVICES — photo band behind the heading only (above the 01/02 list).
   White wash on the left keeps the dark heading text readable; the
   laptop / SNS icons stay visible on the right.
   ============================================================= */
.services .section-header { position: relative; z-index: 0; }
.services .section-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--section-pad));
  bottom: calc(-1 * clamp(50px, 8vw, 100px) + 28px);
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 78%, #fff 100%),
    linear-gradient(110deg, rgba(16, 196, 147, 0.10) 0%, rgba(79, 107, 255, 0.12) 45%, rgba(154, 77, 255, 0.12) 75%, rgba(240, 80, 159, 0.10) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.72) 32%, rgba(255, 255, 255, 0.3) 52%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 100%),
    url('../images/services-hero.webp') right center / cover no-repeat;
}
@media (max-width: 760px) {
  .services .section-header::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.62) 30%, rgba(255, 255, 255, 0.85) 50%, #fff 64%),
      linear-gradient(110deg, rgba(16, 196, 147, 0.10), rgba(79, 107, 255, 0.12) 50%, rgba(240, 80, 159, 0.10)),
      url('../images/services-hero.webp') 72% top / auto 64% no-repeat;
  }
}
/* stronger photo band: a soft white halo keeps the heading readable */
.services .section-title, .services .section-sub, .services .section-lead { text-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 3px rgba(255, 255, 255, 0.9); }
.services .section-lead { color: var(--text); }

/* =============================================================
   FLOW — photo band behind the heading only (above the 01/02 steps).
   The steps photo sits on the right and fades out to the left/bottom,
   so the heading text stays on a light ground.
   ============================================================= */
.flow .section-header { position: relative; z-index: 0; }
.flow .section-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--section-pad));
  bottom: calc(-1 * clamp(50px, 8vw, 100px) + 28px);
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(16, 196, 147, 0.12) 0%, rgba(79, 107, 255, 0.14) 45%, rgba(154, 77, 255, 0.14) 75%, rgba(240, 80, 159, 0.12) 100%),
    url('../images/flow-hero.webp') right center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 26%, rgba(0, 0, 0, 0.55) 46%, #000 62%), linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 26%, rgba(0, 0, 0, 0.55) 46%, #000 62%), linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 760px) {
  .flow .section-header::before {
    background:
      linear-gradient(110deg, rgba(16, 196, 147, 0.12), rgba(79, 107, 255, 0.14) 50%, rgba(240, 80, 159, 0.12)),
      url('../images/flow-hero.webp') center 58px / 100% auto no-repeat;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.45) 34%, transparent 50%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.45) 34%, transparent 50%);
  }
}
.flow .section-title, .flow .section-sub, .flow .section-lead { text-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 3px rgba(255, 255, 255, 0.9); }
.flow .section-lead { color: var(--text); }


/* =============================================================
   FAQ — photo band behind the heading only (above the question list).
   The FAQ photo sits on the right and fades out to the left/bottom,
   so the heading text stays on a light ground.
   ============================================================= */
.faq .section-header { position: relative; z-index: 0; }
.faq .section-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--section-pad));
  bottom: calc(-1 * clamp(50px, 8vw, 100px) + 28px);
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(16, 196, 147, 0.12) 0%, rgba(79, 107, 255, 0.14) 45%, rgba(154, 77, 255, 0.14) 75%, rgba(240, 80, 159, 0.12) 100%),
    url('../images/faq-hero.webp') right center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 44%, rgba(0, 0, 0, 0.5) 54%, #000 66%), linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 44%, rgba(0, 0, 0, 0.5) 54%, #000 66%), linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 760px) {
  .faq .section-header::before {
    background:
      linear-gradient(110deg, rgba(16, 196, 147, 0.12), rgba(79, 107, 255, 0.14) 50%, rgba(240, 80, 159, 0.12)),
      url('../images/faq-hero.webp') center 58px / 100% auto no-repeat;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.45) 34%, transparent 50%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.45) 34%, transparent 50%);
  }
}
.faq .section-title, .faq .section-sub, .faq .section-lead { text-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 3px rgba(255, 255, 255, 0.9); }
.faq .section-lead { color: var(--text); }
.faq .section-header::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: calc(-1 * var(--section-pad)); bottom: calc(-1 * clamp(50px, 8vw, 100px) + 28px);
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: linear-gradient(110deg, rgba(16, 196, 147, 0.08), rgba(79, 107, 255, 0.10) 50%, rgba(240, 80, 159, 0.08));
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

/* =============================================================
   HEADING PHOTO ANIMATIONS
   Services: aurora colours drift across the photo
   Flow: a glow lights the four step panels in order (JS sets --imgw / --bh)
   FAQ: the glass sign floats gently
   ============================================================= */
.services .section-header::after,
.flow .section-header::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--section-pad));
  bottom: calc(-1 * clamp(50px, 8vw, 100px) + 28px);
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  pointer-events: none;
}

/* --- Services --- */
.services .section-header::after {
  background: linear-gradient(100deg, rgba(16, 196, 147, 0.22), rgba(31, 169, 232, 0.2), rgba(79, 107, 255, 0.22), rgba(154, 77, 255, 0.22), rgba(240, 80, 159, 0.2), rgba(16, 196, 147, 0.22)) 0 0 / 300% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 60%), linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 25%, #000 60%), linear-gradient(180deg, #000 70%, transparent);
  mask-composite: intersect;
  animation: hpHue 16s linear infinite;
}
@keyframes hpHue { to { background-position: 300% 0; } }

/* --- Flow --- */
/* F2: a glow hops across the four step panels (positions set by JS: --imgw / --bh) */
.flow .section-header::after {
  top: calc(-1 * var(--section-pad) + var(--bh, 470px) * 0.42 - 120px);
  bottom: auto; right: auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(170, 180, 255, 0.35) 35%, rgba(170, 180, 255, 0) 70%);
  --x0: calc(50% + 50vw - var(--imgw, 960px) * 0.806 - 120px);
  --x1: calc(50% + 50vw - var(--imgw, 960px) * 0.588 - 120px);
  --x2: calc(50% + 50vw - var(--imgw, 960px) * 0.366 - 120px);
  --x3: calc(50% + 50vw - var(--imgw, 960px) * 0.142 - 120px);
  animation: hpSteps 8s ease-in-out infinite;
}
@keyframes hpSteps {
  0%   { left: var(--x0); opacity: 0; }
  6%   { opacity: 1; }
  20%  { left: var(--x0); }
  27%  { left: var(--x1); }
  45%  { left: var(--x1); }
  52%  { left: var(--x2); }
  70%  { left: var(--x2); }
  77%  { left: var(--x3); opacity: 1; }
  94%  { left: var(--x3); opacity: 1; }
  100% { left: var(--x3); opacity: 0; }
}

/* --- FAQ --- */
.faq .section-header::before { animation: hpFloat 9s ease-in-out infinite; }
@keyframes hpFloat { 0%, 100% { transform: translateY(0) scale(1.02); } 50% { transform: translateY(-10px) scale(1.03); } }

@media (max-width: 760px) {
  .flow .section-header::after {
    width: 110px; height: 110px;
    top: calc(-1 * var(--section-pad) + 58px + 100vw * 0.4885 * 0.42 - 55px);
    --x0: calc(50% - 50vw + 100vw * 0.194 - 55px);
    --x1: calc(50% - 50vw + 100vw * 0.412 - 55px);
    --x2: calc(50% - 50vw + 100vw * 0.634 - 55px);
    --x3: calc(50% - 50vw + 100vw * 0.858 - 55px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .services .section-header::before, .services .section-header::after,
  .flow .section-header::before, .flow .section-header::after,
  .faq .section-header::before, .faq .section-header::after { animation: none !important; }
  .flow .section-header::after { display: none; }
}

/* =============================================================
   PERF: the four hero orbs used filter: blur(120px) on ~800px boxes
   while animating — the browser re-blurred them every frame, which was
   the main cause of janky scrolling out of the hero. The radial
   gradients below are already soft, so the blur filter is dropped.
   ============================================================= */
.hero-visual-orb, .hero-orb-4 { filter: none !important; }
.hero-orb-1 { background: radial-gradient(circle, rgba(60, 230, 180, 0.2) 0%, rgba(60, 230, 180, 0.1) 30%, rgba(60, 230, 180, 0.03) 55%, transparent 70%) !important; }
.hero-orb-2 { background: radial-gradient(circle, rgba(80, 150, 255, 0.2) 0%, rgba(80, 150, 255, 0.1) 30%, rgba(80, 150, 255, 0.03) 55%, transparent 70%) !important; }
.hero-orb-3 { background: radial-gradient(circle, rgba(160, 100, 255, 0.18) 0%, rgba(160, 100, 255, 0.08) 30%, rgba(160, 100, 255, 0.02) 55%, transparent 70%) !important; }
.hero-orb-4 { background: radial-gradient(circle, rgba(255, 110, 190, 0.15) 0%, rgba(255, 110, 190, 0.07) 30%, rgba(255, 110, 190, 0.02) 55%, transparent 70%) !important; }
