* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: linear-gradient(180deg, #0b1020 0%, #111831 100%);
  color: #f3f6ff;
}

a {
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at top right, rgba(83, 132, 255, 0.35), transparent 35%),
    radial-gradient(circle at left bottom, rgba(0, 214, 170, 0.25), transparent 30%);
}

.hero-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.mini {
  color: #8eb8ff;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero h1,
.sub-hero h1 {
  font-size: 42px;
  margin: 0 0 16px;
}

.lead {
  font-size: 18px;
  line-height: 1.8;
  color: #d8e2ff;
}

.hero-buttons,
.form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: bold;
  transition: 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #4d8dff, #6d5cff);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}

.btn-ghost {
  background: transparent;
  color: #b8cbff;
  border: 1px solid rgba(184,203,255,0.35);
}

.sub-hero {
  padding: 40px 0 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0 50px;
}

.card,
.form-card,
.result-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.card h2,
.form-card h2,
.result-card h2 {
  margin-top: 0;
  color: #ffffff;
}

.form-card {
  margin-bottom: 50px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #dce6ff;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  margin-bottom: 18px;
}

input::placeholder,
textarea::placeholder {
  color: #b7c4e5;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 120px 1fr 1.4fr;
  gap: 14px;
}

.hint {
  color: #b9c8ef;
}

.score-table {
  display: grid;
  grid-template-columns: 1.4fr 120px 120px 1.8fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
}

.score-head {
  font-weight: bold;
  color: #9fc0ff;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.score-label {
  font-weight: bold;
  color: #ffffff;
}

.table-wrap {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table th,
.result-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}

.result-table th {
  color: #9fc0ff;
}

.good {
  color: #57e389;
  font-weight: bold;
}

.bad {
  color: #ff7b7b;
  font-weight: bold;
}

.neutral {
  color: #ffd66b;
  font-weight: bold;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-box {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px;
}

.summary-box .num {
  font-size: 32px;
  font-weight: bold;
  margin-top: 10px;
}

.list-box {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
}

.list-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.small {
  font-size: 14px;
  color: #c6d3f2;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .score-table {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .sub-hero h1 {
    font-size: 30px;
  }
}
