@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #fff7e6 0%, #ffd5b4 100%);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background: #ff7e5f;
  background: linear-gradient(45deg, #ff7e5f, #feb47b);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 126, 95, 0.5);
}

header h1 {
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

main {
  flex-grow: 1;
  max-width: 600px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
  width: 100%;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.question-card {
  background: white;
  border-radius: 12px;
  padding: 1.8rem 2rem;
  box-shadow: 0 6px 15px rgba(255, 126, 95, 0.15);
  transition: box-shadow 0.3s ease;
}

.question-card:hover {
  box-shadow: 0 10px 25px rgba(255, 126, 95, 0.3);
}

.question-card h2 {
  font-size: 1.3rem;
  color: #ff5a2d;
  margin-bottom: 1rem;
}

.question-card label {
  display: block;
  font-size: 1.05rem;
  padding: 0.4rem 0;
  cursor: pointer;
  user-select: none;
  color: #444;
  transition: color 0.3s ease;
}

.question-card input[type="radio"] {
  margin-right: 0.6rem;
  accent-color: #ff7e5f;
}

.question-card label:hover {
  color: #ff7e5f;
}

.submit-btn {
  background: #ff7e5f;
  border: none;
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  align-self: center;
  box-shadow: 0 6px 15px rgba(255, 126, 95, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  background: #ff5a2d;
  box-shadow: 0 8px 20px rgba(255, 90, 45, 0.6);
}

.result {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(255, 126, 95, 0.25);
  text-align: center;
  animation: fadeIn 0.6s ease forwards;
}

.result h2 {
  color: #ff5a2d;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.result p {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
}

.retry-btn {
  margin-top: 1.5rem;
  background: #feb47b;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(254, 180, 123, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.retry-btn:hover {
  background: #ff7e5f;
  box-shadow: 0 7px 16px rgba(255, 126, 95, 0.7);
}

.back-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #ff7e5f;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(225, 126, 95, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.1rem;
}

.back-link:hover {
  background-color: #ff7e5f;
  box-shadow: 0 6px 12px rgba(255, 126, 95, 0.6);
  text-decoration: underline;
}


@keyframes fadeIn {
  0% {opacity: 0; transform: translateY(10px);}
  100% {opacity: 1; transform: translateY(0);}
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }
  .question-card h2 {
    font-size: 1.1rem;
  }
  .submit-btn {
    width: 100%;
  }
}

