:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #3498db;
  --line-color: #06C755;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #333333;
  --error-color: #e74c3c;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', 'Roboto', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 600px;
  width: 100%;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width var(--transition-speed) ease;
}

.question-card, .form-container, .result-container {
  display: none;
  animation: fadeIn 0.5s ease;
}

.question-card.active, .form-container.active, .result-container.active {
  display: block;
}

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

.question-text {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.options-list {
  list-style: none;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  margin-bottom: 12px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.option-btn:hover {
  border-color: var(--accent-color);
  background: #f0f7ff;
}

.option-btn:active {
  transform: scale(0.98);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="text"], input[type="email"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #2980b9;
}

.chart-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 30px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: opacity 0.3s;
}

.btn-line {
  background-color: var(--line-color);
  color: white;
}

.btn-email {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
}

.btn-cta:hover {
  opacity: 0.9;
}

.advice-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #fcfcfc;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

.advice-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}
