/* ============================================
   動的デザイン専用CSS - TCD048風
   アイコン不使用・タイポグラフィ重視
============================================ */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.8;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

/* ============================================
   タイポグラフィ - 大胆な見出し
============================================ */

h1, h2, h3 {
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 0;
  height: 6px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.section-title.in-view::after {
  width: 100%;
}

/* ============================================
   ヒーローセクション - パララックス
============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  text-align: center;
  z-index: 10;
  color: white;
  padding: 2rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  opacity: 0;
  transform: translateY(30px);
}

.stat-item.animate {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.5s; }
.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.9s; }

.stat-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* ============================================
   CTAボタン - アニメーション強化
============================================ */

.cta-button {
  display: inline-block;
  padding: 1.5rem 4rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  background: var(--primary-gradient);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* ============================================
   データセクション - グラフアニメーション
============================================ */

.data-section {
  padding: 8rem 2rem;
  background: white;
}

.data-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.data-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition);
}

.data-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.data-card:nth-child(1).in-view { transition-delay: 0.1s; }
.data-card:nth-child(2).in-view { transition-delay: 0.2s; }
.data-card:nth-child(3).in-view { transition-delay: 0.3s; }

.data-card-number {
  font-size: 4rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: block;
}

.data-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.data-card-text {
  color: #666;
  line-height: 1.8;
}

.data-source {
  font-size: 0.85rem;
  color: #999;
  margin-top: 1rem;
  font-style: italic;
}

/* ============================================
   比較表 - スライドインアニメーション
============================================ */

/* ============================================
   グラフコンテナ
============================================ */

.chart-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition);
}

.chart-container.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   アニメーション定義
============================================ */

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   レスポンシブ
============================================ */

@media (max-width: 768px) {
  .hero-stats {
    gap: 2rem;
  }
  
  
  .comparison-row > div {
    border-bottom: 1px solid #eee;
  }
  
  .comparison-row > div:last-child {
    border-bottom: none;
  }
  
  .data-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   見出しマーク（アイコン代替）
============================================ */

.mark {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.problem-mark {
  background: var(--secondary-gradient);
}

.solution-mark {
  background: var(--accent-gradient);
}

/* セクション間の区切り */
.section-divider {
  height: 2px;
  max-width: 100px;
  margin: 4rem auto;
  background: var(--primary-gradient);
}

/* 3段階システムセクション - レスポンシブ対応 */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4) !important;
}

@media (max-width: 992px) {
  .step-card {
    padding: 2rem 1.5rem !important;
  }
  
  .step-card h3 {
    font-size: 1.5rem !important;
  }
  
  .step-card ul li {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 768px) {
  .step-card {
    padding: 2rem 1.5rem !important;
  }
  
  .step-card > div:first-child {
    width: 80px !important;
    height: 80px !important;
  }
  
  .step-card h3 {
    font-size: 1.4rem !important;
  }
  
  .step-card ul li {
    font-size: 0.9rem !important;
    line-height: 1.8 !important;
  }
}

