/* Custom Styles - External CSS File */

/* Tailwind CSS Configuration */
:root {
    --brand-blue: #2563EB;
    --brand-navy: #1E293B;
    --brand-light: #F8FAFC;
}

/* Hero Background */
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),  
                      url('https://digileave.jp/img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* または削除 */
}
@layer utilities {
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .fade-in { animation: fadeIn 700ms ease-out both; }
  }
  

/* Smooth scrolling */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Success page specific styles */
.success-container {
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.checkmark-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: checkmarkBounce 0.8s ease-out;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

@keyframes checkmarkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    color: white;
    font-size: 3rem;
    animation: checkmarkDraw 0.5s ease-out 0.3s both;
}

@keyframes checkmarkDraw {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-bg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Business infographic section backgrounds */
.infographic-bg-1 {
    background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://digileave.jp/img/nayami-1.jpg');
    background-size: cover;
    background-position: center;
}

.infographic-bg-2 {
    background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://digileave.jp/img/nayami-2.jpg');
    background-size: cover;
    background-position: center;
}

.infographic-bg-3 {
    background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://digileave.jp/img/nayami-3.jpg');
    background-size: cover;
    background-position: center;
}

.infographic-bg-4 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),  url('https://digileave.jp/img/nayami-4.jpg');
    background-size: cover;
    background-position: center;
}

.infographic-bg-5 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),  url('https://digileave.jp/img/nayami-5.jpg');
    background-size: cover;
    background-position: center;
}

.infographic-bg-6 {
    background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),  url('https://digileave.jp/img/nayami-6.jpg');
    background-size: cover;
    background-position: center;
}

/* Enhanced business imagery */
.business-chart-bg {
    background-image: url('https://images.pexels.com/photos/669610/pexels-photo-669610.jpeg?auto=compress&cs=tinysrgb&w=1200&h=800&fit=crop');
    background-size: cover;
    background-position: center;
}

.analytics-bg {
    background-image: url('https://images.pexels.com/photos/590022/pexels-photo-590022.jpeg?auto=compress&cs=tinysrgb&w=1200&h=800&fit=crop');
    background-size: cover;
    background-position: center;
}

/* Step indicators */
.step-indicator {
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, transparent);
    transform: translateY(-50%);
}

.step-indicator:last-child::after {
    display: none;
}

/* Floating elements animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 2px;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

#floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
  }
  
  .floating-link {
    display: inline-block;
    background-color: #ad0021; /* サイトカラー */
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;;
  }
  
  .floating-link:hover {
    background-color: #87001a;
    transform: translateY(-2px);
  }
  
  section#faq p {
    margin-top: 10px;
}

/* チャートセクション */
.data-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem; /* 角を丸く */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* 影を強調 */
    transition: transform 0.2s ease-in-out; /* ホバーエフェクト */
}
.data-card:hover {
    transform: translateY(-5px); /* ホバーで少し浮き上がる */
}
#chart-container {
    position: relative;
    height: 450px; /* チャートの高さを少し高く */
    width: 100%;
}
/* ヘッダーのグラデーション背景 */
.gradient-header {
    background: linear-gradient(to right, #4F46E5, #8B5CF6); /* 紫系のグラデーション */
}

/* スマホだけ表示（768px以下） */
.sp-only {
    display: none;
  }
  
  @media screen and (max-width: 768px) {
    .sp-only {
      display: block !important;
    }
  
    .pc-only {
      display: none !important;
    }
  }
  
  /* PCだけ表示（769px以上） */
  .pc-only {
    display: block;
  }
  
  h1 , h1 span {
    line-height: 1.2 !important;
}
