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

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.header {
  text-align: center;
  border: 3px solid #dc4013;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: #dc40131A;
}

.header h1 {
  color: #dc4013;
  font-size: 28px;
  margin-bottom: 15px;
}

.header p {
  font-size: 14px;
  line-height: 1.8;
  margin: 5px 0;
}

.section {
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.section h2 {
  color: #dc4013;
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid #dc4013;
  padding-bottom: 10px;
}

.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

button {
  background: linear-gradient(135deg, #dc4013 0%, #dc4013 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s;
  flex: 1;
  min-width: 150px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #dc401366;
}

button:active {
  transform: translateY(0);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.option-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid #555;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  font-size: 14px;
}

.option-btn:hover {
  border-color: #dc4013;
  background: #dc401333;
}

.option-btn.selected {
  border-color: #dc4013;
  background: #dc40134D;
}

.result {
  background: linear-gradient(135deg, #dc4013 0%, #dc4013 100%);
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  display: none;
}

.result.show {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none;
}

.level-selector {
  margin: 15px 0;
}

.level-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.level-btn {
  min-width: 100px;
  padding: 10px 15px;
  font-size: 14px;
}

.feature-toggle {
  background: rgba(255, 255, 255, 0.08);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.feature-toggle h3 {
  color: #dc4013;
  margin-bottom: 10px;
  font-size: 16px;
}

.toggle-container {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.toggle-label {
  font-size: 14px;
  color: #ccc;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: 0.4s;
  border-radius: 30px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
  background-color: #dc4013;
}

.toggle-switch input:checked+.toggle-slider:before {
  transform: translateX(30px);
}

.toggle-switch:hover .toggle-slider {
  box-shadow: 0 0 10px rgba(220, 64, 19, 0.5);
}

.reset-btn {
  background: linear-gradient(135deg, #555 0%, #777 100%);
  margin-top: 20px;
}

.reset-btn:hover {
  box-shadow: 0 5px 15px rgba(85, 85, 85, 0.4);
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .header h1 {
    font-size: 22px;
  }

  button {
    min-width: 120px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }
}