/*
Theme Name: TriVerse Corporate Theme
Description: 株式会社TriVerse公式Webサイト用カスタムテーマ - 夢が全ての人の原動力になる社会を実現する
Author: TriVerse Corporation
Version: 1.0
*/

/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* カスタムフォント */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* カスタムCSS変数 */
:root {
  --primary-blue: #1e40af;
  --primary-purple: #7c3aed;
  --primary-orange: #f59e0b;
  --gradient-main: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #f59e0b 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #6d28d9 100%);
  --text-dark: #1f2937;
  --text-light: #6b7280;
}

/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* グラデーションボタン */
.btn-gradient {
  background: var(--gradient-main);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: white;
  text-decoration: none;
}

/* ヒーローセクション */
.hero-gradient {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* セクション共通 */
.section-padding {
  padding: 5rem 0;
}

/* カードデザイン */
.card-hover {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* テキストグラデーション */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 強化されたグラデーションテキスト */
.text-gradient-enhanced {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 70%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  animation: gradient-shift 4s ease-in-out infinite;
}

/* グラデーション動的変化 */
@keyframes gradient-shift {
  0%, 100% {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 70%, #f5576c 100%);
  }
  50% {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 30%, #764ba2 70%, #667eea 100%);
  }
}

/* 強化されたボタンスタイル */
.btn-gradient-enhanced {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gradient-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-gradient-enhanced:hover::before {
  left: 100%;
}

.btn-gradient-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.btn-outline-enhanced {
  border: 2px solid;
  border-image: linear-gradient(135deg, #667eea, #764ba2, #f093fb) 1;
  position: relative;
  overflow: hidden;
}

.btn-outline-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-outline-enhanced:hover::before {
  width: 100%;
}

/* 浮遊する装飾要素 */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(102, 126, 234, 0.6));
  animation: float-orb 6s ease-in-out infinite;
  pointer-events: none;
}

.floating-orb-1 {
  width: 60px;
  height: 60px;
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.floating-orb-2 {
  width: 40px;
  height: 40px;
  top: 60%;
  right: 30%;
  animation-delay: 2s;
}

.floating-orb-3 {
  width: 80px;
  height: 80px;
  top: 40%;
  right: 60%;
  animation-delay: 4s;
}

@keyframes float-orb {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.9;
  }
}

/* 粒子システムコンテナ */
.particles-container {
  background: radial-gradient(circle at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

/* ∞マークのアニメーション */
.infinity-symbol {
  position: relative;
  display: inline-block;
  animation: infinity-pulse 3s ease-in-out infinite, infinity-glow 4s ease-in-out infinite alternate;
  transform-origin: center;
}

.infinity-symbol::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: infinity-halo 2s ease-in-out infinite alternate;
  z-index: -1;
}

/* 脈動とスケール効果 */
@keyframes infinity-pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(2deg);
  }
  50% {
    transform: scale(1.15) rotate(0deg);
  }
  75% {
    transform: scale(1.1) rotate(-2deg);
  }
}

/* グロー効果 */
@keyframes infinity-glow {
  0% {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  }
  50% {
    color: #f093fb;
    text-shadow: 0 0 20px rgba(240, 147, 251, 0.8), 0 0 30px rgba(139, 92, 246, 0.6);
  }
  100% {
    color: #667eea;
    text-shadow: 0 0 15px rgba(102, 126, 234, 0.7);
  }
}

/* ハロー効果 */
@keyframes infinity-halo {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

/* ホバー時の特別効果 */
.stat-card:hover .infinity-symbol {
  animation-duration: 1.5s, 2s;
  animation-timing-function: ease-out, ease-in-out;
}

.stat-card:hover .infinity-symbol::before {
  animation-duration: 1s;
}

/* アニメーション開始時の効果 */
.infinity-symbol.animate-start {
  animation-duration: 2s, 3s;
}

.infinity-symbol.emphasize {
  transform: scale(1.2);
  animation-duration: 1.5s, 2s;
}

/* パーティクル効果 */
.infinity-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #f093fb, #667eea);
  border-radius: 50%;
  pointer-events: none;
  animation: infinity-particle-float 2s ease-out forwards;
  top: 50%;
  left: 50%;
  transform-origin: center;
  opacity: 0;
}

@keyframes infinity-particle-float {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0) rotate(var(--angle, 0deg)) translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1) rotate(var(--angle, 0deg)) translateY(-40px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(var(--angle, 0deg)) translateY(-80px);
  }
}

/* アクセシビリティ対応：アニメーション減衰設定 */
@media (prefers-reduced-motion: reduce) {
  .infinity-symbol {
    animation: none !important;
  }
  
  .infinity-symbol::before {
    animation: none !important;
  }
  
  .infinity-particle {
    display: none !important;
  }
  
  .infinity-symbol.animate-start,
  .infinity-symbol.emphasize {
    transform: none !important;
    animation: none !important;
  }
}

/* アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 数値カウンタ */
.counter {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-blue);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  /* モバイル専用のメニュー調整 */
  .mobile-menu-content {
    padding: 30px 16px;
  }
  
  .mobile-menu-item {
    font-size: 1.1rem;
    padding: 14px 0;
  }
  
  /* ハンバーガーメニューのサイズ調整 */
  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
  }
  
  .mobile-menu-toggle .hamburger-line {
    width: 24px;
    height: 2px;
    margin: 4px 0;
  }
  
  /* モバイル用FVアニメーション調整 */
  .fv-hero-initial .fv-background {
    transform: scale(2.2) !important;
    filter: brightness(0.4) !important;
  }
  
  .floating-orb {
    display: none;
  }
  
  .particles-container {
    height: 200px !important;
  }
  
  .hero-title-group {
    font-size: 2.5rem !important;
  }
}

/* タブレット用調整 */
@media (min-width: 769px) and (max-width: 1024px) {
  .floating-orb-1 {
    width: 50px;
    height: 50px;
  }
  
  .floating-orb-2 {
    width: 35px;
    height: 35px;
  }
  
  .floating-orb-3 {
    width: 65px;
    height: 65px;
  }
}

/* 大画面用調整 */
@media (min-width: 1536px) {
  .hero-title-group {
    font-size: 6rem !important;
  }
  
  .floating-orb-1 {
    width: 80px;
    height: 80px;
  }
  
  .floating-orb-2 {
    width: 60px;
    height: 60px;
  }
  
  .floating-orb-3 {
    width: 100px;
    height: 100px;
  }
}

/* タブレットサイズでの調整 */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
}

/* 大画面でのメニュー非表示 */
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ローディングアニメーション */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* スクロールインジケーター */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
  transform-origin: 0%;
  z-index: 60;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 64px;
  height: calc(100vh - 64px);
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-sizing: border-box;
  padding: 0;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  padding: 20px;
  text-align: right;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.mobile-menu-close:hover {
  color: #374151;
}

.mobile-menu-content {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.mobile-menu-list li {
  margin-bottom: 4px;
}

.mobile-menu-item {
  display: block;
  padding: 16px 0;
  color: #1f2937;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.2s ease;
}

.mobile-menu-item:hover {
  color: #2563eb;
  text-decoration: none;
}

.mobile-menu-cta {
  margin-top: 40px;
  border-top: 1px solid #e5e7eb;
  padding-top: 30px;
}

.mobile-cta-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
}

.mobile-cta-button:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ハンバーガーアイコンのアニメーション */
.mobile-menu-toggle {
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-toggle .hamburger-line {
  display: block;
  transform-origin: center;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* メニューオープン時のボディスタイル */
body.menu-open {
  overflow: hidden;
}

/* モバイルメニューのオーバーレイ効果 */
.mobile-menu::before {
  content: '';
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 49;
}

.mobile-menu.open::before {
  opacity: 1;
  visibility: visible;
  display: none;
}

/* パララックス効果 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ホバーエフェクト */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-main);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* ========================================
   宇宙テーマアニメーション
   ======================================== */

/* 宇宙ローディング画面 */
.cosmic-loader {
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

/* 星空パーティクルアニメーション */
.stars, .twinkling {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stars {
  background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxyYWRpYWxHcmFkaWVudCBpZD0ic3RhciI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSJ0cmFuc3BhcmVudCIvPgogICAgPC9yYWRpYWxHcmFkaWVudD4KICA8L2RlZnM+CiAgPGNpcmNsZSBjeD0iMTAwIiBjeT0iNTAiIHI9IjEiIGZpbGw9InVybCgjc3RhcikiLz4KICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjEwMCIgcj0iMSIgZmlsbD0idXJsKCNzdGFyKSIvPgogIDxjaXJjbGUgY3g9IjE1MCIgY3k9IjEyMCIgcj0iMSIgZmlsbD0idXJsKCNzdGFyKSIvPgogIDxjaXJjbGUgY3g9IjIwIiBjeT0iMTgwIiByPSIxIiBmaWxsPSJ1cmwoI3N0YXIpIi8+CiAgPGNpcmNsZSBjeD0iMTgwIiBjeT0iMzAiIHI9IjEiIGZpbGw9InVybCgjc3RhcikiLz4KPC9zdmc+') repeat;
  animation: move-stars 60s linear infinite;
  opacity: 0.8;
}

.twinkling {
  background: transparent url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcz4KICAgIDxyYWRpYWxHcmFkaWVudCBpZD0ic3RhciI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuOCIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9InRyYW5zcGFyZW50Ii8+CiAgICA8L3JhZGlhbEdyYWRpZW50PgogIDwvZGVmcz4KICA8Y2lyY2xlIGN4PSI3MCIgY3k9IjQwIiByPSIwLjUiIGZpbGw9InVybCgjc3RhcikiLz4KICA8Y2lyY2xlIGN4PSIxMzAiIGN5PSI4MCIgcj0iMC41IiBmaWxsPSJ1cmwoI3N0YXIpIi8+CiAgPGNpcmNsZSBjeD0iNDAiIGN5PSIxNDAiIHI9IjAuNSIgZmlsbD0idXJsKCNzdGFyKSIvPgogIDxjaXJjbGUgY3g9IjE2MCIgY3k9IjE2MCIgcj0iMC41IiBmaWxsPSJ1cmwoI3N0YXIpIi8+Cjwvc3ZnPg==') repeat;
  animation: move-twinkling 80s linear infinite, twinkle-stars 4s ease-in-out infinite;
  opacity: 0.6;
}

/* 星雲効果の追加 */
#cosmic-loader .cosmic-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%),
              radial-gradient(circle at 20% 30%, rgba(139,92,246,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(59,130,246,0.1) 0%, transparent 50%);
  animation: nebula-drift 30s ease-in-out infinite;
}

@keyframes move-stars {
  from { transform: translateY(0px); }
  to { transform: translateY(-2000px); }
}

@keyframes move-twinkling {
  from { transform: translateY(0px); }
  to { transform: translateY(-2000px); }
}

/* 惑星システムアニメーション */
.planet-system {
  animation: rotate-planet-system 12s linear infinite;
}

.planet {
  animation: rotate-planet 8s linear infinite reverse, planet-pulse 4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.5),
              0 0 40px rgba(79, 172, 254, 0.3),
              inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.orbit {
  animation: pulse-orbit 3s ease-in-out infinite alternate, orbit-rotate 20s linear infinite;
  box-shadow: 0 0 2px rgba(196, 181, 253, 0.6);
}

.satellite {
  animation: orbit-satellite 6s linear infinite, satellite-glow 2s ease-in-out infinite alternate;
  transform-origin: 64px 64px;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
}

@keyframes rotate-planet-system {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-planet {
  from { transform: rotate(0deg) translate(-50%, -50%); }
  to { transform: rotate(360deg) translate(-50%, -50%); }
}

@keyframes pulse-orbit {
  from { border-color: rgba(196, 181, 253, 0.3); }
  to { border-color: rgba(196, 181, 253, 0.7); }
}

@keyframes orbit-satellite {
  from { transform: rotate(0deg) translateY(-64px) rotate(0deg); }
  to { transform: rotate(360deg) translateY(-64px) rotate(-360deg); }
}

@keyframes planet-pulse {
  0%, 100% { 
    transform: scale(1) translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5), 0 0 40px rgba(79, 172, 254, 0.3);
  }
  50% { 
    transform: scale(1.1) translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.8), 0 0 60px rgba(79, 172, 254, 0.5);
  }
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes satellite-glow {
  from { 
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
    transform: scale(1);
  }
  to { 
    box-shadow: 0 0 20px rgba(255, 193, 7, 1), 0 0 30px rgba(255, 165, 0, 0.6);
    transform: scale(1.2);
  }
}

/* ロゴ文字アニメーション */
.logo-letter {
  display: inline-block;
  animation: float-letter 2s ease-in-out infinite;
}

.logo-letter:nth-child(1) { animation-delay: 0s; }
.logo-letter:nth-child(2) { animation-delay: 0.1s; }
.logo-letter:nth-child(3) { animation-delay: 0.2s; }
.logo-letter:nth-child(4) { animation-delay: 0.3s; }
.logo-letter:nth-child(5) { animation-delay: 0.4s; }
.logo-letter:nth-child(6) { animation-delay: 0.5s; }
.logo-letter:nth-child(7) { animation-delay: 0.6s; }
.logo-letter:nth-child(8) { animation-delay: 0.7s; }

@keyframes float-letter {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* プログレスバー：幅制御に切り替え */
#cosmic-loader .progress-fill,
#cosmic-loader .progress-glow {
  transform: none !important;
  width: 0;
  transition: width 0.15s ease-out !important;
}

/* 流れ星アニメーション */
.shooting-star {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
  border-radius: 1px;
  opacity: 0;
  animation: shooting 8s ease-out infinite;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 2px;
  width: 100px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 1px;
}

.shooting-star:nth-child(1) {
  top: 20%;
  left: 10%;
  width: 150px;
  animation-delay: 0s;
}

.shooting-star:nth-child(2) {
  top: 60%;
  left: 70%;
  width: 200px;
  animation-delay: 3s;
}

.shooting-star:nth-child(3) {
  top: 80%;
  left: 20%;
  width: 100px;
  animation-delay: 6s;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 3s; }
.delay-3 { animation-delay: 5s; }
.delay-4 { animation-delay: 7s; }

@keyframes shooting {
  0% {
    opacity: 0;
    transform: translateX(-100px) translateY(-100px) rotate(45deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(800px) translateY(800px) rotate(45deg);
  }
}

/* 浮遊惑星アニメーション */
.floating-planets .planet {
  animation: float-planet 15s ease-in-out infinite;
}

.planet-1 {
  top: 20%;
  left: 80%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.planet-2 {
  top: 70%;
  left: 10%;
  animation-duration: 22s;
  animation-delay: 3s;
}

.planet-3 {
  top: 10%;
  left: 20%;
  animation-duration: 26s;
  animation-delay: 6s;
}

.planet-4 {
  top: 80%;
  left: 70%;
  animation-duration: 30s;
  animation-delay: 9s;
}

@keyframes float-planet {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(0px) rotate(180deg);
  }
  75% {
    transform: translateY(20px) rotate(270deg);
  }
}

/* グロー効果 */
.glow-text {
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8),
               0 0 10px rgba(0, 0, 0, 0.6),
               0 0 15px rgba(255, 255, 255, 0.4),
               0 0 20px rgba(255, 255, 255, 0.3),
               0 0 25px rgba(139, 92, 246, 0.5),
               0 0 35px rgba(139, 92, 246, 0.3),
               0 2px 4px rgba(0, 0, 0, 0.9);
}

.glow-box {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3),
              0 0 40px rgba(139, 92, 246, 0.1);
}

/* コズミックボタン */
.cosmic-btn {
  position: relative;
  overflow: hidden;
}

.cosmic-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cosmic-btn:hover::before {
  left: 100%;
}

.cosmic-btn-text {
  position: relative;
  z-index: 1;
}

/* パーティクル効果 */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: particle-float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
  animation-duration: 6s;
}

.particle:nth-child(2) {
  top: 80%;
  left: 80%;
  animation-delay: 1s;
  animation-duration: 8s;
}

.particle:nth-child(3) {
  top: 60%;
  left: 30%;
  animation-delay: 2s;
  animation-duration: 7s;
}

.particle:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-delay: 3s;
  animation-duration: 9s;
}

.particle:nth-child(5) {
  top: 90%;
  left: 50%;
  animation-delay: 4s;
  animation-duration: 5s;
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-30px) translateX(20px);
    opacity: 1;
  }
  50% {
    transform: translateY(-60px) translateX(-20px);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-30px) translateX(30px);
    opacity: 1;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .cosmic-title {
    font-size: 2.5rem !important;
  }
  
  .planet-1, .planet-2, .planet-3, .planet-4 {
    display: none;
  }
  
  .shooting-star {
    width: 80px;
  }
  
  .particle {
    width: 2px;
    height: 2px;
  }
}

/* 追加アニメーション */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes twinkle-stars {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  25% { 
    opacity: 0.9;
    transform: scale(1.1);
  }
  50% { 
    opacity: 0.4;
    transform: scale(0.9);
  }
  75% { 
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes nebula-drift {
  0%, 100% {
    transform: translate(0px, 0px) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -20px) rotate(90deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(-20px, 30px) rotate(180deg);
    opacity: 0.2;
  }
  75% {
    transform: translate(-30px, -10px) rotate(270deg);
    opacity: 0.4;
  }
}

@keyframes dynamic-shooting {
  0% {
    opacity: 0;
    transform: translateX(-100px) translateY(-100px) rotate(45deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(600px) translateY(600px) rotate(45deg);
  }
}

@keyframes cosmic-drift {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-50px) translateX(30px) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(-100px) translateX(-30px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-50px) translateX(50px) scale(1.1);
    opacity: 0.8;
  }
}

/* ヒーロー入場エフェクト */
.cosmic-title {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.cosmic-title span {
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-shadow: 0 0 5px rgba(0, 0, 0, 1),
               0 0 10px rgba(0, 0, 0, 0.8),
               0 0 15px rgba(255, 255, 255, 0.6),
               0 0 25px rgba(139, 92, 246, 0.4),
               0 4px 8px rgba(0, 0, 0, 0.9);
}

.cosmic-title span.animate-in {
  opacity: 1;
  transform: translateY(0px) scale(1);
}

.cosmic-btn.ready {
  animation: pulse-glow 2s ease-in-out infinite;
}

.cosmic-btn.hover-glow {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
              0 0 60px rgba(139, 92, 246, 0.3);
  transform: scale(1.05);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6),
                0 0 80px rgba(139, 92, 246, 0.2);
  }
}

/* ローディング画面の最終フェード */
.cosmic-loader.opacity-0 {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ヒーロー読み込み完了状態 */
.cosmic-hero.hero-loaded {
  animation: hero-glow 3s ease-in-out;
}

@keyframes hero-glow {
  0% {
    filter: brightness(0.5);
  }
  50% {
    filter: brightness(1.2);
  }
  100% {
    filter: brightness(1);
  }
}

/* Motion減衰設定への対応 */
@media (prefers-reduced-motion: reduce) {
  .stars,
  .twinkling,
  .planet-system,
  .planet,
  .orbit,
  .satellite,
  .logo-letter,
  .progress-fill,
  .progress-glow,
  .shooting-star,
  .floating-planets .planet,
  .particle,
  .dynamic-star,
  .dynamic-shooting-star,
  .cosmic-particle,
  .text-gradient-enhanced,
  .floating-orb,
  .btn-gradient-enhanced,
  .btn-outline-enhanced {
    animation: none !important;
  }
  
  .glow-text,
  .glow-box,
  .cosmic-btn.hover-glow {
    text-shadow: none;
    box-shadow: none;
  }
  
  .cosmic-title span {
    opacity: 1;
    transform: none;
  }
  
  .cosmic-loader.reduced-motion,
  .cosmic-hero.reduced-motion {
    animation: none;
    filter: none;
  }
  
  /* パーティクルシステムの非表示 */
  #hero-particles {
    display: none !important;
  }
  
  /* 浮遊要素の非表示 */
  .floating-orb {
    display: none !important;
  }
  
  /* 背景アニメーションの簡略化 */
  .fv-hero-initial .fv-background {
    transform: scale(1.1) !important;
    filter: brightness(0.6) !important;
    transition: transform 0.3s ease !important;
  }
  
  .fv-hero-animate .fv-background {
    transform: scale(1) !important;
    filter: brightness(0.8) !important;
  }

  /* ローダー内アニメーションを再度有効化 */
  #cosmic-loader .stars {
    animation: move-stars 60s linear infinite !important;
  }
  #cosmic-loader .twinkling {
    animation: move-twinkling 80s linear infinite, twinkle-stars 4s ease-in-out infinite !important;
  }
  #cosmic-loader .dynamic-star {
    animation: twinkle 4s ease-in-out infinite !important;
  }
  #cosmic-loader .shooting-star {
    animation: shooting 8s ease-out infinite !important;
  }
  #cosmic-loader .dynamic-shooting-star {
    animation: dynamic-shooting 3s ease-out forwards !important;
  }
  #cosmic-loader .planet-system {
    animation: rotate-planet-system 12s linear infinite !important;
  }
  #cosmic-loader .planet {
    animation: rotate-planet 8s linear infinite reverse, planet-pulse 4s ease-in-out infinite !important;
  }
  #cosmic-loader .orbit {
    animation: pulse-orbit 3s ease-in-out infinite alternate, orbit-rotate 20s linear infinite !important;
  }
  #cosmic-loader .satellite {
    animation: orbit-satellite 6s linear infinite, satellite-glow 2s ease-in-out infinite alternate !important;
  }
}

/* ========================================
   FV背景画像設定
   ======================================== */

/* FV背景画像 */
.fv-hero {
  position: relative;
  overflow: hidden;
}

.fv-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .fv-background {
    background-attachment: scroll;
  }
}

/* ========================================
   ファーストビューアニメーション
   ======================================== */

/* -----------------------------
   Reduced Motion 無視: FV アニメーション強制有効化
   ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  /* 背景ズームを有効化 */
  .fv-hero-initial .fv-background {
    transform: scale(2.5) rotate(2deg) !important;
    filter: brightness(0.3) !important;
    transition: transform 2s cubic-bezier(0.25,0.46,0.45,0.94), filter 2s ease !important;
  }
  .fv-hero-animate .fv-background {
    transform: scale(1) rotate(0deg) !important;
    filter: brightness(0.7) !important;
  }

  /* コンテンツのフェード・スライド有効化 */
  .fv-hero-initial .hero-title-group,
  .fv-hero-initial .hero-subtitle-group,
  .fv-hero-initial .hero-buttons-group,
  .fv-hero-initial .hero-scroll-indicator,
  .fv-hero-initial .hero-decoration-group {
    opacity: 0 !important;
    transform: translateY(80px) !important;
  }
  
  .fv-hero-initial .hero-title-char {
    opacity: 0 !important;
    transform: translateY(100px) rotateX(90deg) !important;
  }
  
  .fv-hero-animate .hero-title-group {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 1s ease 0.8s, transform 1s ease 0.8s !important;
  }
  
  .fv-hero-animate .hero-title-char {
    opacity: 1 !important;
    transform: translateY(0) rotateX(0deg) !important;
    transition: opacity 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s !important;
  }
  
  .fv-hero-animate .hero-title-char:nth-child(1) {
    transition-delay: 0.8s !important;
  }
  
  .fv-hero-animate .hero-title-char:nth-child(2) {
    transition-delay: 1.0s !important;
  }
  
  .fv-hero-animate .hero-title-char:nth-child(3) {
    transition-delay: 1.2s !important;
  }
  
  .fv-hero-animate .hero-title-char:nth-child(4) {
    transition-delay: 1.4s !important;
  }
  
  .fv-hero-animate .hero-subtitle-group {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease 1.6s, transform 0.8s ease 1.6s !important;
  }
  
  .fv-hero-animate .hero-buttons-group {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease 1.8s, transform 0.6s ease 1.8s !important;
  }
  
  .fv-hero-animate .hero-decoration-group {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 1s ease 1.2s, transform 1s ease 1.2s !important;
  }
  
  .fv-hero-animate .hero-scroll-indicator {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.4s ease 2.2s, transform 0.4s ease 2.2s !important;
  }
}

/* パフォーマンス最適化 */
.fv-hero-animate .fv-background {
  backface-visibility: hidden;
  perspective: 1000px;
}

.fv-hero-animate .hero-title-group,
.fv-hero-animate .hero-subtitle-group,
.fv-hero-animate .hero-buttons-group,
.fv-hero-animate .hero-scroll-indicator,
.fv-hero-animate .hero-decoration-group {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 通常のアニメーション設定 */
.fv-hero-initial .fv-background {
  transform: scale(2.5) rotate(2deg);
  filter: brightness(0.3);
  transition: transform 2s cubic-bezier(0.25,0.46,0.45,0.94), filter 2s ease;
}

.fv-hero-animate .fv-background {
  transform: scale(1) rotate(0deg);
  filter: brightness(0.7);
}

.fv-hero-initial .hero-title-group,
.fv-hero-initial .hero-subtitle-group,
.fv-hero-initial .hero-buttons-group,
.fv-hero-initial .hero-scroll-indicator,
.fv-hero-initial .hero-decoration-group {
  opacity: 0;
  transform: translateY(80px);
}

.fv-hero-initial .hero-title-char {
  opacity: 0;
  transform: translateY(100px) rotateX(90deg);
}

.fv-hero-animate .hero-title-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
}

.fv-hero-animate .hero-title-char {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
  transition: opacity 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s;
}

.fv-hero-animate .hero-title-char:nth-child(1) {
  transition-delay: 0.8s;
}

.fv-hero-animate .hero-title-char:nth-child(2) {
  transition-delay: 1.0s;
}

.fv-hero-animate .hero-title-char:nth-child(3) {
  transition-delay: 1.2s;
}

.fv-hero-animate .hero-title-char:nth-child(4) {
  transition-delay: 1.4s;
}

.fv-hero-animate .hero-subtitle-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 1.6s, transform 0.8s ease 1.6s;
}

.fv-hero-animate .hero-buttons-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 1.8s, transform 0.6s ease 1.8s;
}

.fv-hero-animate .hero-decoration-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease 1.2s, transform 1s ease 1.2s;
}

.fv-hero-animate .hero-scroll-indicator {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease 2.2s, transform 0.4s ease 2.2s;
}

/* アニメーション完了後の状態 */
.fv-hero-complete {
  will-change: auto;
}

.fv-hero-complete .fv-background,
.fv-hero-complete .hero-title-group,
.fv-hero-complete .hero-subtitle-group,
.fv-hero-complete .hero-buttons-group,
.fv-hero-complete .hero-scroll-indicator {
  will-change: auto;
}

/* ヘッダーアニメーション（フロントページのみ） */
body.home .header {
  opacity: 0;
  transform: translateY(-20px);
}
body.home .header.header-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 下層ページでは常に表示 */
body:not(.home) .header {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Starfield background for footer CTA */
.footer-cta-space-background {
  position: relative;
  overflow: hidden;
}
#starfield-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.footer-cta-space-background > .container {
  position: relative;
  z-index: 2;
}
/* Shooting stars container */
.footer-cta-space-background .shooting-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
/* 以下を追加：フッターの静的流れ星を非表示、動的流れ星にアニメーションを適用 */
.footer-cta-space-background .shooting-star {
  display: none !important;
}
.footer-cta-space-background .dynamic-shooting-star {
  animation: dynamic-shooting 3s ease-out forwards !important;
}

/* Starfield background for page hero */
.page-hero-space-background {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%) !important;
}
.page-hero-space-background #starfield-canvas,
.page-hero-space-background .shooting-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.page-hero-space-background .shooting-star {
  display: none !important;
}
.page-hero-space-background .dynamic-shooting-star {
  animation: dynamic-shooting 3s ease-out forwards !important;
}

/* 下層ページ：ページヒーロー余白調整（背景をヘッダー下に被せつつ高さを維持、px指定） */
body:not(.home) .page-hero-space-background {
  /* モバイル: ヘッダー高さ64px */
  margin-top: -64px;
  /* 元の上下80px + 64px */
  padding-top: 144px;
  /* 元の下部80px */
  padding-bottom: 80px;
}
@media (min-width: 768px) {
  body:not(.home) .page-hero-space-background {
    /* デスクトップ: ヘッダー高さ80px */
    margin-top: 47px;
    /* 元の上下80px + 80px */
    padding-top: 85px;
    /* 元の下部80px */
    padding-bottom: 80px;
  }
}

/* 横スライドアニメーション用: オフスクリーン要素によるレイアウト崩れ防止 */
[data-aos^="fade-"] {
  position: relative;
  overflow-x: hidden;
}

/* 全体の横オーバーフローを禁止 */
html, body, .site-content {
  overflow-x: hidden !important;
}

/* 年商目標の推移 - 成長戦略セクション */
.growth-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.growth-item:hover {
    transform: translateX(5px);
}

.growth-item .year {
    min-width: 80px;
    text-align: center;
    font-weight: bold;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    margin-right: 1rem;
}

.growth-item .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

/* 補助金事業の成長実績グラフ */
.growth-chart {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 2rem;
}

.growth-chart .flex.items-end {
    height: 300px; /* h-40と同等の高さを確保 */
}

.growth-bar {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    flex: 1;
    height: 100%;
}

.growth-bar > div:first-child {
    width: 48px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    /* インラインスタイルの高さを優先させるため、backgroundのみ指定 */
}

.growth-bar > .w-12.bg-blue-400 {
    background-color: #60a5fa !important;
}

.growth-bar > .w-12.bg-blue-500 {
    background-color: #3b82f6 !important;
}

.growth-bar > .w-12.bg-blue-600 {
    background-color: #2563eb !important;
}

.growth-bar > .w-12.bg-green-500 {
    background-color: #10b981 !important;
}

.growth-bar:hover > div:first-child {
    transform: scale(1.05);
}

.growth-bar .text-xs {
    margin-top: 0.5rem;
    text-align: center;
}

.growth-bar .font-bold {
    font-weight: 700;
}

.growth-bar .text-gray-600 {
    color: #6b7280;
}

.growth-bar .text-green-600 {
    color: #059669;
}

/* サービスページの番号アイコン */
.service-icon,
.value-icon,
.icon-wrapper,
.culture-icon,
.category-icon,
.position-icon,
.event-icon,
.step-number,
.point-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 8px !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.service-icon svg,
.value-icon svg,
.icon-wrapper svg,
.culture-icon svg,
.category-icon svg,
.position-icon svg,
.event-icon svg {
    width: 32px !important;
    height: 32px !important;
    color: white !important;
}

/* 番号アイコン用のスタイル */
.step-number,
.point-number {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    color: white !important;
    margin-right: 1rem !important;
    margin-bottom: 0 !important;
}

/* 採用ページのアイコン - より具体的なセレクタで強制適用 */
.candidate-type .icon-wrapper,
.page-template-page-recruit .candidate-type .icon-wrapper,
body.page-template-page-recruit .candidate-type .icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    margin: 0 auto 1.5rem auto !important;
}

/* 4番目の項目（自分を大きく成長させたい人）の背景グラデーション */
.candidate-type:nth-child(4) .icon-wrapper,
.page-template-page-recruit .candidate-type:nth-child(4) .icon-wrapper,
body.page-template-page-recruit .candidate-type:nth-child(4) .icon-wrapper {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}

.candidate-type .icon-wrapper svg,
.page-template-page-recruit .candidate-type .icon-wrapper svg,
body.page-template-page-recruit .candidate-type .icon-wrapper svg {
    width: 40px !important;
    height: 40px !important;
    color: white !important;
    display: block !important;
}

/* 文化・カルチャーアイコン */
.culture-item .culture-icon {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    margin: 0 auto 1.5rem auto !important;
}

.culture-item .culture-icon svg {
    width: 40px !important;
    height: 40px !important;
}

/* 特別イベントアイコン */
.event-item .event-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    margin: 0 auto 1rem auto !important;
}

.event-item .event-icon svg {
    width: 32px !important;
    height: 32px !important;
}

/* 選考プロセスの番号 */
.process-step .step-number {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    font-size: 1.125rem !important;
    font-weight: bold !important;
    color: white !important;
    margin-right: 1.5rem !important;
    flex-shrink: 0 !important;
}

/* 成長のポイント番号 */
.growth-points .point-number {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 0.875rem !important;
    font-weight: bold !important;
    color: white !important;
    margin-right: 0.75rem !important;
    margin-bottom: 0 !important;
}

/* 背景色の確実な適用 */
.bg-blue-500 { background-color: #3b82f6 !important; }
.bg-purple-500 { background-color: #8b5cf6 !important; }
.bg-green-500 { background-color: #10b981 !important; }
.bg-orange-500 { background-color: #f59e0b !important; }
.bg-red-500 { background-color: #ef4444 !important; }
.bg-pink-500 { background-color: #ec4899 !important; }
.bg-indigo-500 { background-color: #6366f1 !important; }

/* グラデーション背景 */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
}

/* 逆張りのホバー色を修正 - オレンジから他の色に統一 */
.value-card:nth-child(4):hover {
    border-color: #8b5cf6 !important; /* 紫色に変更 */
}

/* ホバー効果 */
.card-hover:hover .service-icon,
.card-hover:hover .value-icon,
.card-hover:hover .category-icon,
.card-hover:hover .position-icon {
    transform: scale(1.05) !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .growth-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .growth-item .year {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .candidate-type .icon-wrapper,
    .culture-item .culture-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .candidate-type .icon-wrapper svg,
    .culture-item .culture-icon svg {
        width: 30px !important;
        height: 30px !important;
    }
}

/* グラフバーアニメーション */
.growth-bar-animate {
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

.growth-bar-animate.animate-in {
    animation-fill-mode: forwards;
}

.growth-bar-animate.animate-in[data-height="20"] {
    animation: growBar20 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.growth-bar-animate.animate-in[data-height="35"] {
    animation: growBar35 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.growth-bar-animate.animate-in[data-height="60"] {
    animation: growBar60 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.growth-bar-animate.animate-in[data-height="100"] {
    animation: growBar100 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes growBar20 {
    from {
        height: 0%;
    }
    to {
        height: 20%;
    }
}

@keyframes growBar35 {
    from {
        height: 0%;
    }
    to {
        height: 35%;
    }
}

@keyframes growBar60 {
    from {
        height: 0%;
    }
    to {
        height: 60%;
    }
}

@keyframes growBar100 {
    from {
        height: 0%;
    }
    to {
        height: 100%;
    }
}

