:root {
  --primary-color: #0062ff;
  --secondary-color: #00e0ff;
  --accent-color: #ff3e7f;
  --dark-blue: #001638;
  --light-blue: #003366;
  --text-color: #ffffff;
  --text-secondary: #b0c4de;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  background-color: var(--dark-blue);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 20% 35%, rgba(0, 98, 255, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 75% 65%, rgba(0, 224, 255, 0.1) 0%, transparent 40%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 15px 0;
  position: relative;
  border-bottom: 1px solid rgba(0, 224, 255, 0.2);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary-color);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-icon:after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  20%,
  100% {
    transform: translateX(100%);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  position: relative;
}

.hero-flex {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 0.8;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 224, 255, 0.3);
  max-width: 350px;
  max-height: 250px;
}

.hero-image img {
  width: 100%;
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 22, 56, 0.5) 0%, rgba(0, 98, 255, 0.2) 100%);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--text-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  font-size: 15px;
  margin-bottom: 15px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.highlight {
  color: var(--secondary-color);
  font-weight: 500;
}

.accent {
  color: var(--accent-color);
  font-weight: 500;
}

.analysis-container {
  background-color: rgba(0, 22, 56, 0.6);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(0, 224, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  position: relative;
  overflow: visible;
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.stock-input {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: none;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(0, 224, 255, 0.2);
  outline: none;
  transition: all 0.3s ease;
}

.stock-input:focus {
  box-shadow: 0 4px 15px rgba(0, 98, 255, 0.3), inset 0 0 0 1px rgba(0, 224, 255, 0.5);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
}

.cta-button {
  display: inline-block;
  padding: 18px 32px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 98, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  width: 100%;
  text-align: center;
  margin: 20px 0;
  text-decoration: none;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.cta-button:hover {
  box-shadow: 0 6px 20px rgba(0, 98, 255, 0.6);
  transform: translateY(-2px);
}

.cta-button:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
}

.cta-button:hover:after {
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  60%,
  100% {
    transform: translateX(100%);
  }
}

.stats-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.features {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.feature {
  flex: 1;
  padding: 20px;
  background-color: rgba(0, 22, 56, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 224, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 98, 255, 0.2);
  border-color: rgba(0, 224, 255, 0.3);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 98, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  border: 1px solid rgba(0, 224, 255, 0.2);
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--light-blue);
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  border: 1px solid rgba(0, 224, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.progress-container {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 1.5s ease;
}

.analysis-items {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.analysis-item {
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.analysis-item.active {
  opacity: 1;
}

.complete-message {
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: white;
  font-weight: 700;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-button:hover {
  background-color: #ff5492;
  transform: translateY(-2px);
}

footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 224, 255, 0.1);
  font-size: 12px;
  color: var(--text-secondary);
}

.disclaimer {
  max-width: 800px;
  margin: 0 auto;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.6;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.dot-typing {
  position: relative;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
  animation: dotTyping 1.5s infinite linear;
}

@keyframes dotTyping {
  0% {
    box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
  }

  16.667% {
    box-shadow: 9984px -10px 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
  }

  33.333% {
    box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
  }

  50% {
    box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px -10px 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
  }

  66.667% {
    box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
  }

  83.333% {
    box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px -10px 0 0 var(--secondary-color);
  }

  100% {
    box-shadow: 9984px 0 0 0 var(--secondary-color), 9999px 0 0 0 var(--secondary-color), 10014px 0 0 0 var(--secondary-color);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 15px 0;
  }

  .hero-flex {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .hero-image {
    width: 100%;
    max-width: 100%;
    max-height: 200px;
  }

  .features {
    flex-direction: column;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 12px;
  }

  .analysis-container {
    padding: 20px;
    margin: 15px 0;
  }

  .cta-button {
    padding: 16px 24px;
    font-size: 18px;
    margin: 15px 0;
    min-height: 56px;
  }

  .stock-input {
    padding: 14px;
    font-size: 16px;
  }
}