/**
 * S-CONNECT デザイン改善 v5.4
 * ユーザーフィードバック反映版
 */

/* ========== 1. ファーストビュー宇宙背景アニメーション ========== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 51, 102, 0.4), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(139, 92, 246, 0.4), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255, 51, 102, 0.3), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(139, 92, 246, 0.3), transparent),
    radial-gradient(2px 2px at 10% 50%, rgba(59, 130, 246, 0.2), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: cosmicDrift 60s ease-in-out infinite;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes cosmicDrift {
  0%, 100% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 50% 100%;
  }
  75% {
    background-position: 0% 50%;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ========== 2. CTA注釈スタイル ========== */
.cta-note {
  font-size: 13px;
  color: #6B7280;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cta-note i {
  color: #3B82F6;
  font-size: 14px;
}

/* ========== 3. CAUTIONランプ点滅 ========== */
.caution-lamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid #EF4444;
  border-radius: 8px;
  color: #EF4444;
  font-weight: 700;
  font-size: 16px;
  animation: cautionPulse 2s ease-in-out infinite;
  margin-right: 16px;
  vertical-align: middle;
}

.caution-lamp i {
  animation: lampBlink 1s ease-in-out infinite;
}

@keyframes cautionPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.9);
    transform: scale(1.05);
  }
}

@keyframes lampBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.flashing-text {
  color: #EF4444;
  font-weight: 700;
  animation: textFlash 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes textFlash {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  }
  50% {
    opacity: 0.6;
    text-shadow: 0 0 20px rgba(239, 68, 68, 1);
  }
}

/* ========== 4. 97%セクション2カラムレイアウト ========== */
.stat-97-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-97-left {
  text-align: left;
}

.stat-97-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 160px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF3366, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}

.stat-97-number span {
  font-size: 80px;
}

.stat-97-text {
  font-size: 24px;
  color: #374151;
  line-height: 1.6;
  font-weight: 500;
}

.stat-97-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-97-visual {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: 20px;
  border: 2px solid rgba(255, 51, 102, 0.2);
}

.stat-97-visual i {
  font-size: 80px;
  background: linear-gradient(135deg, #FF3366, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  display: block;
}

.stat-97-visual p {
  font-size: 18px;
  color: #6B7280;
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .stat-97-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stat-97-left {
    text-align: center;
  }
  
  .stat-97-number {
    font-size: 100px;
  }
  
  .stat-97-number span {
    font-size: 50px;
  }
}

/* ========== 5. AI対策比較セクション強化 ========== */
.comparison-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #FF3366, #8B5CF6, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 60px;
  position: relative;
  animation: titleSlideIn 1s ease-out;
  line-height: 1.2;
}

.comparison-title::after {
  content: '';
  display: block;
  width: 200px;
  height: 6px;
  background: linear-gradient(90deg, #FF3366, #8B5CF6, #3B82F6);
  margin: 30px auto 0;
  border-radius: 3px;
  animation: lineExpand 1.5s ease-out;
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineExpand {
  from {
    width: 0;
  }
  to {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .comparison-title {
    font-size: 42px;
  }
  
  .comparison-title::after {
    width: 120px;
  }
}

/* ========== 6. 地域NO.1セクション強化 ========== */
.region-no1-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 140px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF3366 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  line-height: 1;
  margin-bottom: 30px;
  position: relative;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
  animation: no1Appear 1.2s ease-out;
}

.region-no1-subtitle {
  font-size: 28px;
  color: #6B7280;
  text-align: center;
  font-weight: 600;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 20px;
}

.region-no1-subtitle strong {
  color: #FF3366;
  font-weight: 700;
}

@keyframes no1Appear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .region-no1-title {
    font-size: 72px;
  }
  
  .region-no1-subtitle {
    font-size: 20px;
  }
}

/* ========== 7. 3%プログレスバー強化 ========== */
.progress-container {
  max-width: 800px;
  margin: 40px auto;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: rgba(229, 231, 235, 0.5);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF3366, #EF4444);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
  animation: progressGlow 2s ease-in-out infinite;
  transition: width 2s ease-out;
}

.progress-label {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes progressGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 51, 102, 1);
  }
}

.progress-note {
  text-align: center;
  font-size: 18px;
  color: #6B7280;
  margin-top: 20px;
  font-weight: 600;
}

/* ========== 8. 2026年競争決着セクション ========== */
.deadline-section {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.03), rgba(239, 68, 68, 0.05));
  border-radius: 24px;
  margin: 80px 0;
}

.deadline-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 160px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF3366, #EF4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
  animation: yearPulse 3s ease-in-out infinite;
}

.deadline-text {
  font-size: 48px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 40px;
}

.countdown-bar {
  max-width: 600px;
  margin: 0 auto;
  height: 16px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.countdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF3366, #EF4444);
  width: 0%;
  animation: countdownProgress 8s ease-out forwards;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.8);
}

@keyframes yearPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

@keyframes countdownProgress {
  to {
    width: 100%;
  }
}

.deadline-note {
  font-size: 24px;
  color: #6B7280;
  font-weight: 600;
  margin-top: 30px;
}

.deadline-note strong {
  color: #EF4444;
}

@media (max-width: 768px) {
  .deadline-year {
    font-size: 80px;
  }
  
  .deadline-text {
    font-size: 28px;
  }
  
  .deadline-note {
    font-size: 18px;
  }
}

/* ========== 9. 新方程式デザイン ========== */
.formula-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 60px 0;
}

.formula-item {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: 16px;
  border: 2px solid rgba(255, 51, 102, 0.2);
  transition: all 0.3s ease;
}

.formula-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 51, 102, 0.2);
}

.formula-item i {
  font-size: 48px;
  background: linear-gradient(135deg, #FF3366, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  display: block;
}

.formula-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.formula-item p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

.formula-operator {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #FF3366;
  animation: operatorPulse 2s ease-in-out infinite;
}

@keyframes operatorPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.formula-result {
  flex-basis: 100%;
  text-align: center;
  margin-top: 30px;
}

.formula-result-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  font-weight: 700;
  background: linear-gradient(135deg, #FF3366, #8B5CF6, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: resultAppear 1.5s ease-out;
}

@keyframes resultAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .formula-container {
    gap: 20px;
  }
  
  .formula-item {
    min-width: 100%;
  }
  
  .formula-operator {
    transform: rotate(90deg);
    font-size: 36px;
  }
  
  .formula-result-text {
    font-size: 42px;
  }
}
