/* ===== グローバルリセット追加 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== カーソルグロー ===== */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  will-change: transform;
}

/* ===== HERO ===== */
.hero-trust-section {
  background: #0d0720;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* Auroraオーブはindex.phpのinline styleで指定されているため、ここでは補助的なオーブのみ定義 */
.hero-aurora-2 { /* index.phpで指定されているものと重複しないように注意 */
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  width:500px; height:500px; background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, transparent 65%); bottom:-200px; right:-100px;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.04; /* 指示書通り0.04 */
  pointer-events: none;
}

/* Clamp for Hero H1 */
.text-clamp-hero-h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.85rem);
  line-height: 1.15;
}
/* Heroの2行目は自然折返しを許可（nowrapはモック重なりの原因になるため廃止） */
.text-clamp-hero-h1 .gradient-headline {
  display: inline-block;
}

/* ===== ヒーロー テキスト ===== */
.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a78bfa;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}
.credit-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7C3AED;
  animation: pulse-ring 2s ease-out infinite;
}
.gradient-headline {
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 45%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ヒーロー CTAボタン ===== */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #7C3AED;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 0 0 rgba(124,58,237,0);
}
.btn-hero-primary:hover {
  background: #6d28d9;
  box-shadow: 0 0 30px rgba(124,58,237,0.5);
  transform: translateY(-2px);
}
.btn-hero-primary .btn-arrow { transition: transform 0.2s; }
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(124,58,237,0.5);
}

/* Shimmerボタン */
.btn-shimmer {
  background: linear-gradient(90deg, #7C3AED 0%, #a78bfa 50%, #7C3AED 100%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* ===== ヒーロー スタット ===== */
.hero-stats { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.hero-stat { text-align: left; }
.hero-stat-num {
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}
.hero-stats .hero-stat-num {
  color: #ffffff;
}
.hero-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ===== ブラウザモックアップ ===== */
.browser-mockup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.browser-chrome {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.browser-dots { display: flex; gap: 5px; }
.browser-dot { width: 9px; height: 9px; border-radius: 50%; }
.browser-body { padding: 16px; min-height: 300px; }

/* ===== フローティング通知 ===== */
.notify-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}
.notify-float .notify-title { font-size: 12px; font-weight: 700; color: white; }
.notify-float .notify-sub   { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 1px; }

/* ===== マーキーテッカー ===== */
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker {
  display: inline-flex;
  gap: 0;
  animation: ticker 30s linear infinite;
}
.ticker-item { padding: 0 1.5rem; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
/* @keyframes ticker はグローバルキーフレームで定義済み */

/* ===== セクション ラベル ===== */
.section-label-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #7C3AED;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ===== ゴーストテキスト ===== */
.ghost-text {
  font-family: 'Anton', sans-serif;
  font-size: clamp(6rem, 12vw, 14rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  z-index: 0;
  opacity: 0.04;
  color: currentColor;
}

/* ===== 三者マッチング (Orbital Rebuild) ===== */
.three-way-section {
  background: linear-gradient(160deg, #f8f5ff 0%, #fafafe 60%, #f0eeff 100%);
  position: relative; overflow: hidden;
}
.orbital-container {
  position: relative; max-width: 700px; height: 380px;
  margin: 0 auto 64px;
}
#orbital-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orbital-node-html {
  position: absolute; text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.05s linear;
}
.orbital-avatar-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.3); overflow: hidden;
  background: white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 0 0 4px rgba(255,255,255,0.6);
}
.orbital-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.orbital-node-pill {
  margin-top: 10px;
  font-size: 10px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase;
  color: #7C3AED; background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 4px 12px; border-radius: 100px;
  white-space: nowrap;
}
/* Role cards grid */
.role-cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 920px; margin: 0 auto;
}
.role-card {
  background: white; border: 1.5px solid rgba(0,0,0,0.05);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative; overflow: hidden;
}
.role-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(124,58,237,0.13), 0 4px 16px rgba(0,0,0,0.08);
  border-color: rgba(124,58,237,0.15);
}
.role-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 20px 20px 0 0; }
.role-card-creator .role-card-accent { background: linear-gradient(90deg, #ea580c, #fb923c); }
.role-card-vtuber .role-card-accent  { background: linear-gradient(90deg, #7C3AED, #a78bfa); }
.role-card-company .role-card-accent { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.role-card-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  margin-bottom: 18px; overflow: hidden;
  border: 2.5px solid rgba(124,58,237,0.12); background: #f3f0ff;
}
.role-card-badge {
  display: inline-block; font-size: 9px; font-weight: 900;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px; margin-bottom: 14px;
}
.role-badge-creator { color: #ea580c; background: rgba(234,88,12,0.08); border: 1px solid rgba(234,88,12,0.2); }
.role-badge-vtuber  { color: #7C3AED; background: rgba(124,58,237,0.1);  border: 1px solid rgba(124,58,237,0.25); }
.role-badge-company { color: #1d4ed8; background: rgba(29,78,216,0.08);  border: 1px solid rgba(29,78,216,0.2); }
.role-card-title { font-family: 'Noto Sans JP','Plus Jakarta Sans',sans-serif; font-size: 1.15rem; font-weight: 800; color: #0f0a1e; margin-bottom: 8px; }
.role-card-desc { font-size: 0.8rem; color: #6b7280; line-height: 1.75; margin-bottom: 18px; }
.role-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.role-feature-list li { font-size: 11.5px; color: #374151; font-weight: 600; padding-left: 18px; position: relative; line-height: 1.4; }
.role-feature-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; border-radius: 50%; }
.role-card-creator .role-feature-list li::before { background: #ea580c; }
.role-card-vtuber  .role-feature-list li::before { background: #7C3AED; }
.role-card-company .role-feature-list li::before { background: #1d4ed8; }
.node-tag { font-size: 9px; font-weight: 700; background: rgba(124,58,237,0.12); color: #7C3AED; border-radius: 4px; padding: 2px 6px; }
.glass-card { background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 4px 24px rgba(0,0,0,0.05); }

/* ===== クレジットツリー (Rebuilt) ===== */
.credit-tree-section {
  background: linear-gradient(160deg, #0d0720 0%, #1a0d3a 45%, #0d0720 100%);
  position: relative; overflow: hidden;
}
.dark-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.tree-outer-wrap { max-width: 860px; margin: 0 auto; position: relative; }
.tree-svg-lines {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.tree-line { stroke: rgba(124,58,237,0.5); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-dasharray: 5 4; animation: tree-dash 2s linear infinite; }
.tree-line-glow { stroke: rgba(167,139,250,0.12); stroke-width: 6; fill: none; }
@keyframes tree-dash { from { stroke-dashoffset: 36; } to { stroke-dashoffset: 0; } }
.tree-row { display: flex; justify-content: center; }
.tree-row + .tree-row { margin-top: 72px; }
.tree-row-l1 { gap: 20px; }
.tree-row-l2 { justify-content: space-between; align-items: flex-start; }
.tree-row-l2-left, .tree-row-l2-right { display: flex; gap: 14px; }
.tree-node {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(167,139,250,0.22);
  border-radius: 16px; padding: 16px 18px; text-align: center; color: white;
  backdrop-filter: blur(8px); transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative; min-width: 140px;
}
.tree-node:hover { background: rgba(124,58,237,0.22); border-color: rgba(124,58,237,0.65); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(124,58,237,0.28); }
.tree-node-root {
  min-width: 200px; padding: 24px 32px;
  background: linear-gradient(135deg, rgba(124,58,237,0.38) 0%, rgba(76,29,149,0.5) 100%);
  border-color: rgba(124,58,237,0.75);
  box-shadow: 0 0 60px rgba(124,58,237,0.38), 0 0 120px rgba(124,58,237,0.15);
}
.tree-node-leaf { min-width: 108px; padding: 12px 14px; background: rgba(255,255,255,0.03); border-style: dashed; }
.tree-avatar { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 10px; border: 2px solid rgba(167,139,250,0.35); overflow: hidden; background: rgba(255,255,255,0.08); }
.tree-node-root .tree-avatar { width: 70px; height: 70px; border-color: rgba(124,58,237,0.9); box-shadow: 0 0 24px rgba(124,58,237,0.6); }
.tree-node-name { font-weight: 800; font-size: 0.88rem; line-height: 1.2; margin-bottom: 6px; }
.tree-node-root .tree-node-name { font-size: 1.05rem; }
.tree-node-sub { font-size: 9.5px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.tree-node-tag { display: inline-block; background: rgba(124,58,237,0.22); color: #c4b5fd; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin: 2px; }
.tree-badge-verified { display: inline-block; background: #22c55e; color: white; font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; margin-top: 8px; }
.tree-badge-hub { position: absolute; top: -10px; right: -10px; background: #7C3AED; color: white; font-size: 9px; font-weight: 900; letter-spacing: 0.12em; padding: 4px 10px; border-radius: 100px; box-shadow: 0 0 16px rgba(124,58,237,0.75); }
.tree-work-tag { display: inline-block; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); font-size: 9.5px; font-weight: 600; padding: 3px 9px; border-radius: 8px; margin: 2px; }

/* ===== CREDiT名前の由来 ===== */
.credit-origin-section { background: #0f0a1e; position: relative; overflow: hidden; }
.origin-letters { display: flex; gap: clamp(12px,2.5vw,32px); align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.origin-letter-block { text-align: center; }
.origin-letter-char { font-family: 'Anton',sans-serif; font-size: clamp(2.5rem,6vw,5.5rem); line-height: 1; color: white; transition: color 0.3s; }
.origin-letter-block:hover .origin-letter-char { color: #a78bfa; }
.origin-letter-meaning { font-size: 9px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-top: 6px; white-space: nowrap; }
.origin-letter-block.hl .origin-letter-char { color: #7C3AED; }

/* ===== 差別化比較 ===== */
.diff-section { background: #070312; position: relative; overflow: hidden; }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.diff-col { border-radius: 20px; overflow: hidden; }
.diff-col-credit { background: linear-gradient(160deg, rgba(124,58,237,0.18) 0%, rgba(76,29,149,0.12) 100%); border: 1px solid rgba(124,58,237,0.45); box-shadow: 0 0 60px rgba(124,58,237,0.15), 0 0 120px rgba(124,58,237,0.06); position: relative; }
.diff-col-credit::before { content:''; position:absolute; inset:0; border-radius:20px; background:linear-gradient(180deg, rgba(124,58,237,0.08) 0%, transparent 60%); pointer-events:none; }
.diff-col-other { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
.diff-col-head { padding: 24px 20px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.diff-col-credit .diff-col-head { border-bottom-color: rgba(124,58,237,0.25); }
.diff-col-name { font-size: 11px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; }
.diff-col-credit .diff-col-name { color: #a78bfa; }
.diff-col-other .diff-col-name { color: rgba(255,255,255,0.3); }
.diff-best-badge { display: inline-block; margin-bottom: 10px; font-size: 8px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: white; background: linear-gradient(90deg, #7C3AED, #a78bfa); padding: 3px 12px; border-radius: 100px; }
.diff-rows { padding: 8px 0; }
.diff-row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.diff-col-credit .diff-row { border-bottom-color: rgba(124,58,237,0.1); }
.diff-row:last-child { border-bottom: none; }
.diff-row-feat { flex: 1; font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500; line-height: 1.35; }
.diff-row-feat strong { color: white; font-weight: 700; display: block; font-size: 12px; }
.diff-row-feat span { font-size: 10px; color: rgba(255,255,255,0.35); }
.diff-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.diff-icon-yes { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); }
.diff-icon-no  { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.diff-icon-part { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.25); }

/* ===== マーケットバー（横向き）===== */
.market-chart-section { background: #f9f7ff; position: relative; overflow: hidden; }
.market-bar {
  position: absolute !important;
  top: 0 !important; bottom: 0 !important; left: 0 !important; right: auto !important;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #7C3AED, #a78bfa);
}
.market-bar.visible { width: var(--bar-w); }
.market-bar-forecast { background: repeating-linear-gradient(90deg, rgba(124,58,237,0.3) 0px, rgba(124,58,237,0.3) 8px, transparent 8px, transparent 16px); border: 1.5px dashed #7C3AED; }

/* ===== HOW IT WORKS ===== */
.how-steps-wrapper { position: relative; }
.how-step-num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.5);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif; font-size: 1rem; color: #a78bfa;
  position: relative; z-index: 1;
}
.how-section { background: #0d0720; position: relative; overflow: hidden; }
.beam-lines {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.beam-lines span {
  position: absolute; height: 100%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.15), transparent);
  animation: beam-pulse 4s ease-in-out infinite;
}
.beam-lines span:nth-child(1) { left: 10%; animation-delay: 0s; }
.beam-lines span:nth-child(2) { left: 25%; animation-delay: 0.8s; }
.beam-lines span:nth-child(3) { left: 40%; animation-delay: 1.6s; }
.beam-lines span:nth-child(4) { left: 60%; animation-delay: 0.4s; }
.beam-lines span:nth-child(5) { left: 75%; animation-delay: 1.2s; }
.beam-lines span:nth-child(6) { left: 90%; animation-delay: 2s; }
@keyframes beam-pulse { 0%,100%{opacity:0} 50%{opacity:1} }

.step-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.step-card.visible { opacity: 1; transform: translateY(0); }

/* ===== CTA ===== */
.cta-gradient-bg {
  background: linear-gradient(135deg, #0d0720 0%, #2d0f6e 40%, #1e1040 100%);
  position: relative;
  overflow: hidden;
}
/* ===== CTA カード（流入経路・最重要）===== */
.cta-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.cta-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(124,58,237,0.5);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.cta-card-featured {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 40px rgba(124,58,237,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
.cta-card-featured:hover {
  background: rgba(124,58,237,0.3);
  border-color: rgba(124,58,237,0.8);
}
.cta-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cta-role-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a78bfa;
}
.cta-entry-badge {
  font-size: 10px;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.35);
  padding: 3px 10px;
  border-radius: 100px;
}
.cta-entry-free {
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
.cta-card-title {
  font-family: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}
.cta-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
  margin-bottom: 20px;
}
.cta-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cta-features li {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.cta-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(124,58,237,0.8);
  font-weight: 700;
}
.cta-action {
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  transition: all 0.2s;
  display: block;
}
.cta-action-primary {
  background: white;
  color: #7C3AED;
}
.cta-card:hover .cta-action-primary { background: #f5f3ff; }
.cta-action-ghost {
  border: 1px solid rgba(167,139,250,0.3);
  color: rgba(255,255,255,0.7);
}
.cta-card:hover .cta-action-ghost { border-color: rgba(167,139,250,0.7); color: white; }

/* ===== スタット コンテキスト ===== */
.stat-context { font-size: 11px; color: #94a3b8; line-height: 1.5; margin-top: 4px; }

/* ===== WORKS カード ===== */
.work-card { position: relative; overflow: hidden; border-radius: 16px; }
.work-card::after { content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); pointer-events:none; }
.work-card img { transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.work-card:hover img { transform: scale(1.06); }
.work-overlay { position:absolute; inset:0; background:rgba(124,58,237,0.3); backdrop-filter:blur(4px); opacity:0; transition:opacity 0.3s; z-index:2; display:flex; align-items:center; justify-content:center; }
.work-card:hover .work-overlay { opacity: 1; }
.work-badge { position:absolute; top:12px; right:12px; background:rgba(255,255,255,0.9); color:#7C3AED; font-size:10px; font-weight:800; padding:4px 10px; border-radius:100px; z-index:3; }
.work-info { position:absolute; bottom:0; left:0; right:0; padding:20px; z-index:1; }

/* ===== スクロールアニメーション ===== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.slide-in { opacity: 0; transform: translateX(-20px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.slide-in.visible { opacity: 1; transform: translateX(0); }

/* ===== キーフレーム ===== */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes pulse-ring { 0%{transform:scale(0.85);opacity:0.8} 100%{transform:scale(1.6);opacity:0} }
@keyframes cube-rotate { from{transform:rotateX(20deg) rotateY(0deg)} to{transform:rotateX(20deg) rotateY(360deg)} }
@keyframes cube-rotate-alt { from{transform:rotateX(10deg) rotateY(0deg) rotateZ(30deg)} to{transform:rotateX(10deg) rotateY(360deg) rotateZ(30deg)} }
@keyframes cube-rotate-small { from{transform:rotateX(40deg) rotateY(0deg) rotateZ(-15deg)} to{transform:rotateX(40deg) rotateY(360deg) rotateZ(-15deg)} }
@keyframes shimmer { from{background-position:0 center} to{background-position:200% center} }
@keyframes aurora-drift {
  0%   { transform: translate(-10%, 5%) scale(1); }
  100% { transform: translate(15%, -10%) scale(1.2); }
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes aura-pulse-mid {
  0%,100% { box-shadow: 0 0 0 4px rgba(124,58,237,0.2), 0 0 20px rgba(124,58,237,0.25), 0 0 40px rgba(124,58,237,0.1); }
  50%     { box-shadow: 0 0 0 8px rgba(124,58,237,0.35), 0 0 35px rgba(124,58,237,0.45), 0 0 70px rgba(124,58,237,0.2); }
}
@keyframes aura-pulse-max {
  0%,100% { box-shadow: 0 0 0 5px rgba(124,58,237,0.35), 0 0 25px rgba(124,58,237,0.4), 0 0 55px rgba(124,58,237,0.25), 0 0 90px rgba(124,58,237,0.1); }
  50%     { box-shadow: 0 0 0 10px rgba(124,58,237,0.55), 0 0 50px rgba(124,58,237,0.65), 0 0 90px rgba(124,58,237,0.4), 0 0 140px rgba(124,58,237,0.2); }
}
@keyframes aura-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes card-3d-float {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-6px); }
}
@keyframes aura-outer-pulse {
  0%,100% { opacity: 0.18; transform: scale(1); }
  50%     { opacity: 0.45; transform: scale(1.1); }
}
@keyframes aura-conic-spin {
  from { transform: rotate(0deg); filter: blur(4px); }
  to   { transform: rotate(360deg); filter: blur(4px); }
}
@keyframes ring-3d-spin {
  from { transform: perspective(700px) rotateX(68deg) rotateZ(0deg); }
  to   { transform: perspective(700px) rotateX(68deg) rotateZ(360deg); }
}
@keyframes hub-pulse {
  0%,100% { box-shadow: 0 0 60px rgba(124,58,237,0.5), 0 0 120px rgba(124,58,237,0.18); }
  50%     { box-shadow: 0 0 90px rgba(124,58,237,0.75), 0 0 180px rgba(124,58,237,0.3); }
}
@keyframes beam-glow {
  0%,100% { opacity: 0.3; }
  50%     { opacity: 0.9; }
}
@keyframes ring-expand {
  0%   { opacity: 0.55; transform: scale(0.95); }
  100% { opacity: 0;    transform: scale(1.45); }
}
@keyframes particle-flow {
  0%   { transform: translateX(0) scale(1);   opacity: 0.8; }
  100% { transform: translateX(30px) scale(0); opacity: 0; }
}
@keyframes count-up-pop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== 3Dキューブ ===== */
.hero-3d-scene { position:absolute; right:-40px; top:50%; transform:translateY(-50%); perspective:800px; pointer-events:none; z-index:0; display:none; }
@media (min-width:1024px) { .hero-3d-scene { display:block; } }
.cube-3d { position:absolute; transform-style:preserve-3d; animation:cube-rotate 12s linear infinite; }
.cube-3d:nth-child(2) { top:120px; left:-80px; animation:cube-rotate-alt 15s linear infinite; }
.cube-3d:nth-child(3) { top:-80px; left:100px; animation:cube-rotate-small 10s linear infinite; }
.cube-face { position:absolute; border:1px solid rgba(124,58,237,0.2); background:rgba(124,58,237,0.03); }
.cube-3d:first-child  .cube-face:nth-child(1){transform:rotateX(90deg)  translateZ(40px);}
.cube-3d:first-child  .cube-face:nth-child(2){transform:rotateX(-90deg) translateZ(40px);}
.cube-3d:first-child  .cube-face:nth-child(3){transform:rotateY(0deg)   translateZ(40px);}
.cube-3d:first-child  .cube-face:nth-child(4){transform:rotateY(90deg)  translateZ(40px);}
.cube-3d:first-child  .cube-face:nth-child(5){transform:rotateY(180deg) translateZ(40px);}
.cube-3d:first-child  .cube-face:nth-child(6){transform:rotateY(-90deg) translateZ(40px);}
.cube-3d:nth-child(2) .cube-face:nth-child(1){transform:rotateX(90deg)  translateZ(25px);}
.cube-3d:nth-child(2) .cube-face:nth-child(2){transform:rotateX(-90deg) translateZ(25px);}
.cube-3d:nth-child(2) .cube-face:nth-child(3){transform:rotateY(0deg)   translateZ(25px);}
.cube-3d:nth-child(2) .cube-face:nth-child(4){transform:rotateY(90deg)  translateZ(25px);}
.cube-3d:nth-child(2) .cube-face:nth-child(5){transform:rotateY(180deg) translateZ(25px);}
.cube-3d:nth-child(2) .cube-face:nth-child(6){transform:rotateY(-90deg) translateZ(25px);}
.cube-3d:nth-child(3) .cube-face:nth-child(1){transform:rotateX(90deg)  translateZ(15px);}
.cube-3d:nth-child(3) .cube-face:nth-child(2){transform:rotateX(-90deg) translateZ(15px);}
.cube-3d:nth-child(3) .cube-face:nth-child(3){transform:rotateY(0deg)   translateZ(15px);}
.cube-3d:nth-child(3) .cube-face:nth-child(4){transform:rotateY(90deg)  translateZ(15px);}
.cube-3d:nth-child(3) .cube-face:nth-child(5){transform:rotateY(180deg) translateZ(15px);}
.cube-3d:nth-child(3) .cube-face:nth-child(6){transform:rotateY(-90deg) translateZ(15px);}

/* ===== ヘッダー スクロール ===== */
#main-header.scrolled {
  background: rgba(8,4,20,0.85);
  box-shadow: 0 1px 24px rgba(0,0,0,0.45);
  border-bottom: 1px solid rgba(124,58,237,0.18);
  backdrop-filter: blur(12px);
}
#main-header.scrolled .header-logo-text { color: #ffffff; }
#main-header.scrolled .header-logo-box { background: #7C3AED; }
#main-header.scrolled .nav-link { color: rgba(255,255,255,0.75); }
#main-header.scrolled .nav-link.active { color: #a78bfa; }
#main-header.scrolled .nav-link:hover { color: #a78bfa; }
#main-header.scrolled .hamburger-icon span { background: #ffffff; }

/* ===== グロースタット ===== */
.stat-pulse { position:relative; }

/* ===== ORBs ===== */
.bg-orbs { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.orb { position:absolute; border-radius:50%; filter:blur(80px); }
.orb-dark-1 { width:600px; height:600px; background:rgba(124,58,237,0.2); top:-200px; left:-100px; }
.orb-dark-2 { width:400px; height:400px; background:rgba(167,139,250,0.12); bottom:-100px; right:-100px; }
.orb-cta-1 { width:600px; height:600px; background:rgba(124,58,237,0.3); top:-200px; left:10%; }
.orb-cta-2 { width:400px; height:400px; background:rgba(76,29,149,0.4); bottom:-100px; right:10%; }

/* ===== レスポンシブ ===== */
@media (max-width: 767px) {
  /* General */
  .ghost-text { display: none; }
  .orbital-container { height: 220px; }
  .role-cards-grid { grid-template-columns: 1fr; }
  .hero-3d-scene { display: none; }
  .step-card { margin-bottom: 1rem; }
  .origin-letters { gap: 10px; }

  /* Hero — ensure content never touches screen edge */
  .hero-trust-section .container { padding-left: 1.75rem !important; padding-right: 1.75rem !important; }

  /* Stats bar */
  .hero-stats { flex-wrap: wrap; justify-content: center !important; gap: 12px !important; }
  .hero-stat-divider { display: none; }
  .hero-stat { width: 45%; }

  /* Buttons */
  .btn-hero-primary, .btn-hero-ghost { width: 100% !important; justify-content: center; }
  .cta-row { flex-direction: column; align-items: stretch !important; }

  /* Trees（スマホ: 接続線を消して縦積みのカード列に） */
  .tree-svg-lines { display: none; }
  .tree-row + .tree-row { margin-top: 28px !important; }
  .tree-row-l1 { flex-direction: column; align-items: center; gap: 14px; }
  .tree-row-l1 .tree-node { width: 100%; max-width: 320px; }
  .tree-node-sub { white-space: normal; overflow-wrap: anywhere; }
  .tree-row-l2 { flex-direction: column; gap: 12px; align-items: center; }
  .tree-row-l2-left, .tree-row-l2-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }
  .tree-row-l2 .tree-node-leaf { min-width: 0; width: 100%; }

  /* 3D装飾（回転リング・ビーム）はスマホでは非表示 */
  .orbital-ring-3d, .orbital-beam { display: none !important; }

  /* セクション見出し: スマホでの不自然な折り返しを防ぐ */
  h1.text-5xl, h2.text-5xl { font-size: 1.9rem !important; line-height: 1.3 !important; }

  /* Tables */
  .diff-table { font-size: 11px; }
  .diff-table th, .diff-table td { padding: 8px 6px !important; }

  /* CTA cards */
  .cta-cards-row { flex-direction: column !important; gap: 16px !important; }
  .cta-card { width: 100% !important; }

  /* Portal pages */
  .portal-layout { flex-direction: column !important; }
  .portal-sidebar {
    width: 100% !important;
    min-width: unset !important;
    height: auto !important;
    min-height: unset !important;
    position: static !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
  }
  .portal-sidebar .sidebar-logo,
  .portal-sidebar .sidebar-footer { display: none !important; }
  .portal-sidebar nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; width: 100%; }
  .portal-sidebar a { font-size: 12px !important; padding: 8px 12px !important; border-radius: 8px !important; border-left: none !important; white-space: nowrap; }
  .portal-main { padding: 16px !important; margin-left: 0 !important; }

  /* Section text sizes */
  .section-headline { font-size: clamp(1.8rem, 8vw, 2.5rem) !important; }
}

/* Tablet — dashboard sidebar */
@media (max-width: 1023px) {
  .dash-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .dash-sidebar.open { transform: translateX(0) !important; display: flex !important; }
  .dash-main { margin-left: 0 !important; }
  .dash-mobile-bar { display: flex !important; }
  .dash-overlay { display: block !important; }
}
@media (min-width: 1024px) {
  .dash-mobile-bar { display: none !important; }
  .dash-overlay { display: none !important; }
}

/* Mobile Menu Hamburger */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 50;
}
.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  transition: all 0.3s ease-in-out;
}
.hamburger-icon.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #03010d;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 88px 22px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
/* メニュー展開中もブランドロゴが見えるように（headerスタッキング内でメニューより前面へ） */
.mobile-nav-brand {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 45;
  font-family: 'Anton', sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: #fff;
  pointer-events: none;
}
.mobile-nav-brand i { font-style: normal; color: #a78bfa; }
.mobile-nav-menu.open {
  transform: translateX(0);
}
.mobile-nav-menu a {
  color: white;
  font-size: 1.5rem;
  padding: 1rem 0;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-menu a:hover {
  color: #7C3AED;
}
.mobile-nav-menu a.active {
  color: #7C3AED;
  font-weight: bold;
}

/* Register Page specific */
.register-card-hover:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.1);
}
.register-x-button {
  background: #000;
  color: white;
  border-radius: 10px;
  padding: 16px 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}
.register-x-button:hover {
  background: #333;
}
.register-x-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Offer Page specific */
.form-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.form-input, .form-textarea, .form-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: white;
  padding: 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}

/* ─── Custom Cursor ──────────────────────────── */
/* カスタムカーソルが初期化されたページ(body.custom-cursor)でのみネイティブカーソルを隠す。
   ポータル等カスタムカーソル未搭載ページではネイティブカーソルを表示する（カーソル消失バグ対策） */
body.custom-cursor, body.custom-cursor *, body.custom-cursor *::before, body.custom-cursor *::after { cursor: none !important; }
#custom-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px;
  height: 8px;
  background: #a78bfa;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s, opacity 0.2s;
  will-change: transform;
}
#custom-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(167,139,250,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16,1,0.3,1),
              height 0.25s cubic-bezier(0.16,1,0.3,1),
              border-color 0.2s,
              opacity 0.3s;
  will-change: transform;
}
body.cursor-hover #custom-cursor-dot {
  width: 12px;
  height: 12px;
  background: #7C3AED;
}
body.cursor-hover #custom-cursor-ring {
  width: 44px;
  height: 44px;
  border-color: rgba(124,58,237,0.5);
}
body.cursor-click #custom-cursor-dot {
  width: 6px;
  height: 6px;
  background: white;
}
body.cursor-click #custom-cursor-ring {
  width: 20px;
  height: 20px;
  border-color: rgba(255,255,255,0.8);
}

/* ─── Custom Select Styling ─────────────────── */
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255,255,255,0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a78bfa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: white;
  padding: 10px 36px 10px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select:focus {
  border-color: rgba(124,58,237,0.6);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
select option {
  background: #1a0d3d;
  color: white;
}

/* ─── Dashboard Mobile Bar ───────────────────── */
.dash-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #06020f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}
.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 45;
}

/* ─── Portal Layout ──────────────────────────── */
.portal-layout {
  display: flex;
  min-height: 100vh;
}
.portal-sidebar {
  display: flex;
  flex-direction: column;
}
.portal-main {
  flex: 1;
  min-width: 0;
}

/* ===== タッチ端末ではカスタムカーソル・追従グローを表示しない ===== */
@media (hover: none), (pointer: coarse) {
  #custom-cursor-dot, #custom-cursor-ring, #cursor-glow { display: none !important; }
  body { cursor: auto !important; }
}


/* ===== トップページ: 下層セクションはビューポート接近まで描画スキップ（Hero体感速度向上） ===== */
#credit-home > section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
