@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  text-decoration: unset;
}
:root {
  --background: hsl(220, 25%, 8%);
  --foreground: hsl(210, 40%, 98%);
  --card: hsl(220, 20%, 12%);
  --card-foreground: hsl(210, 40%, 98%);
  --primary: hsl(210, 100%, 50%);
  --primary-light: hsl(210, 100%, 60%);
  --secondary: hsl(220, 15%, 20%);
  --muted: hsl(220, 15%, 25%);
  --muted-foreground: hsl(215, 20%, 65%);
  --accent: hsl(145, 60%, 45%);
  --accent-light: hsl(145, 60%, 55%);
  --gold: hsl(45, 90%, 55%);
  --border: hsl(220, 20%, 20%);
  --input: hsl(220, 20%, 15%);
  --cyan: hsl(180, 100%, 40%);
  --danger: hsl(0, 60%, 50%);
  --danger-light: hsl(0, 70%, 70%);
  
  --gradient-primary: linear-gradient(135deg, hsl(210, 100%, 50%) 0%, hsl(180, 100%, 40%) 50%, hsl(145, 60%, 45%) 100%);
  --gradient-border: linear-gradient(135deg, hsl(210, 100%, 50%) 0%, hsl(280, 100%, 60%) 50%, hsl(145, 60%, 45%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(220, 20%, 14%) 0%, hsl(220, 20%, 10%) 100%);
  
  --shadow-glow: 0 0 40px hsla(210, 100%, 50%, 0.3);
  --shadow-card: 0 4px 30px hsla(0, 0%, 0%, 0.5);
  
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
}

/* Canvas Background */
#animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Main Container */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
  background: linear-gradient(180deg, hsl(220, 25%, 8%) 0%, hsl(220, 30%, 5%) 100%);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Border Card */
.gradient-border {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-border);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* Card Tech */
.card-tech {
  background: var(--gradient-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* Input Search */
.input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.input-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

.input-search {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 1rem 1.5rem 1rem 3rem;
  color: var(--foreground);
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.input-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px hsla(210, 100%, 50%, 0.3);
}

.input-search::placeholder {
  color: var(--muted-foreground);
}

/* Buttons */
.btn-gradient {
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
  font-family: inherit;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px hsla(210, 100%, 50%, 0.5);
}

.btn-line {
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-line:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  margin-bottom: 2rem;
}

.hero-title {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

.hero-main {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-tagline {
  display: block;
  font-size: 1.125rem;
  margin-top: 0.5rem;
  color: hsl(210, 40%, 85%);
}

.hero-description {
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: hsl(210, 20%, 65%);
}

.user-count {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 1rem;
  color: var(--accent-light);
}

/* Robot Avatar */
.robot-container {
  display: flex;
  justify-content: center;
}

.robot-avatar {
  width: 96px;
  height: 96px;
  animation: float 3s ease-in-out infinite;
}

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

/* Section Titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

/* Feature Cards */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.02);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.feature-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(210, 20%, 70%);
}

/* Comparison Cards */
.comparison-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 480px) {
  .comparison-card {
    flex-direction: row;
  }
}

.problem-side {
  flex: 1;
  padding: 1.25rem;
  background: linear-gradient(135deg, hsl(0, 60%, 25%), hsl(0, 50%, 20%));
}

.solution-side {
  flex: 1;
  padding: 1.25rem;
  background: linear-gradient(135deg, hsl(210, 80%, 25%), hsl(210, 70%, 20%));
}

.comparison-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.comparison-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.problem-side .comparison-label {
  color: var(--danger-light);
}

.solution-side .comparison-label {
  color: hsl(210, 100%, 70%);
}

.comparison-text {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.problem-side .comparison-text {
  color: hsl(0, 20%, 90%);
}

.solution-side .comparison-text {
  color: hsl(210, 40%, 90%);
}

/* Analysis Cards */
.analysis-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.analysis-card {
  height: 100%;
}

.analysis-card .gradient-border {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.analysis-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(220, 20%, 15%);
}

.analysis-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.analysis-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  flex-grow: 1;
  color: hsl(210, 20%, 70%);
}

.analysis-note {
  font-size: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(220, 20%, 25%);
  color: var(--gold);
}

/* Trust Section */
.trust-section {
  margin-bottom: 2rem;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-item {
  display: flex;
  gap: 0.75rem;
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: hsl(220, 20%, 15%);
}

.trust-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.trust-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: hsl(210, 20%, 65%);
}

/* FAQ Section */
.faq-section {
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
}

.faq-question span:first-child {
  font-weight: 500;
  padding-right: 1rem;
}

.faq-toggle {
  font-size: 1.25rem;
  color: var(--primary-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  opacity: 1;
}

.faq-answer p {
  padding-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(210, 20%, 70%);
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(220, 20%, 15%);
}

.risk-notice {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  background: hsl(220, 25%, 10%);
}

.risk-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.risk-text {
  font-size: 0.75rem;
  line-height: 1.7;
  color: hsl(210, 20%, 55%);
}

.company-info {
  margin-bottom: 1.5rem;
}

.company-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.company-details {
  font-size: 0.75rem;
  color: hsl(210, 20%, 60%);
}

.company-details p {
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--primary-light);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .divider {
  color: hsl(220, 20%, 30%);
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: hsl(210, 20%, 40%);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(220, 25%, 8%, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 90%;
  width: 400px;
}

.modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-border);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: hsl(210, 20%, 50%);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--foreground);
}

/* Progress Modal */
.progress-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.progress-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.progress-label span:first-child {
  color: hsl(210, 40%, 80%);
}

.progress-label span:last-child {
  font-weight: 700;
}

.progress-bar {
  height: 8px;
  background: var(--secondary);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 9999px;
  transition: width 0.1s ease;
  width: 0%;
}

.loading-spinner {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Line Modal */
.line-modal .modal-content {
  text-align: center;
}

.line-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
}

.line-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.line-subtitle {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.line-benefits {
  text-align: left;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  background: hsl(220, 20%, 15%);
}

.line-benefits p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: hsl(210, 40%, 80%);
}

.line-benefits ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.line-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--accent-light);
}

/* Responsive */
@media (max-width: 480px) {
  .main-container {
    padding: 1rem 0.75rem;
  }
  
  .hero-main {
    font-size: 1.25rem;
  }
  
  .hero-subtitle, .hero-tagline {
    font-size: 1rem;
  }
}
