
.mode-select {
  margin: 0 auto 32px;
  max-width: 600px;
  text-align: center;
  padding: 18px 0 10px;
  border-radius: 16px;
  box-shadow: 0 2px 8px #2563eb11;
  background: var(--tile);
  border: 1px solid var(--tile-border);
}
.mode-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--primary);
  letter-spacing: 0.2px;
}
.mode-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 4px;
}
.mode-options label {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 6px 18px;
  border-radius: 10px;
  transition: background .15s, color .15s;
  border: 1px solid transparent;
}
.mode-options input[type="radio"] {
  margin-right: 8px;
}
.mode-options label:hover, .mode-options label:focus-within {
  background: #e0e7ef;
  color: var(--primary);
  border-color: #2563eb33;
}
.start-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

:root {
  --bg1: #f5f7fa;
  --bg2: #e3e8ee;
  --card: #fff;
  --card-border: #e0e7ef;
  --text: #22223b;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-ink: #fff;
  --success: #22c55e;
  --ring: #2563eb33;
  --shadow: 0 4px 24px rgba(37,99,235,0.08);
  --tile: #f3f6fa;
  --tile-border: #e0e7ef;
}


@media (prefers-color-scheme: dark) {
  :root {
    --bg1: #18181b;
    --bg2: #23232e;
    --card: #23232e;
    --card-border: #39395a;
    --text: #e5e7eb;
    --muted: #a1a1aa;
    --tile: #23232e;
    --tile-border: #39395a;
    --ring: #2563eb55;
    --shadow: 0 8px 32px rgba(37,99,235,0.18);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', 'Hiragino Kaku Gothic ProN', Meiryo, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  min-height: 100vh;
}


.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 32px 64px;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #2563eb 80%, #60a5fa 100%);
  color: #fff;
  z-index: 100;
  box-shadow: 0 2px 12px #2563eb22;
  padding: 0;
}
.fixed-header h1 {
  margin: 0;
  padding: 18px 0 14px;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px #2563eb44, 0 1px 0 #fff2;
}

.screen.hidden { display: none; }



.app-title {
  display: none;
}


.lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 1.1rem;
  text-align: center;
}


.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}


.card.subtle {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--tile);
  border: 1px solid var(--tile-border);
  box-shadow: none;
}


.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  background: none;
  box-shadow: none;
}


.progress-info {
  flex: 1;
  display: grid;
  gap: 8px;
}
.progress-text {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}
.progress {
  height: 10px;
  background: #e0e7ef;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
  transition: width .25s ease;
}


.question {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
  text-align: center;
  text-shadow: 0 1px 0 #2563eb22;
}


.likert {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0 auto 8px;
}


.likert-item {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px 8px;
  border-radius: 12px;
  border: 1.5px solid #e0e7ef;
  background: #f3f6fa;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: transform .08s, background .15s, border-color .15s;
  box-shadow: 0 1px 4px #2563eb11;
}
.likert-item:hover {
  transform: translateY(-2px);
  background: #e0e7ef;
}
.likert-item:active {
  transform: translateY(0);
}
.likert-item input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.likert-item.selected {
  background: linear-gradient(90deg, #2563eb22 60%, #60a5fa22 100%);
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 0 0 4px #2563eb33;
}
@media (prefers-color-scheme: dark) {
  .likert-item.selected {
    background: linear-gradient(90deg, #2563eb33 60%, #60a5fa33 100%);
    border-color: #60a5fa;
    color: #60a5fa;
  }
}


.likert-hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}


.validation {
  color: #ef4444;
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
}
.validation.hidden {
  display: none;
}



.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-bottom {
  margin-top: 24px;
  justify-content: space-between;
}
.question-area {
  margin-top: 18px;
  margin-bottom: 0;
}


.btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #2563eb 80%, #60a5fa 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .15s, transform .08s, background .15s, color .15s;
  box-shadow: 0 2px 8px #2563eb22;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px #2563eb33;
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
}
.btn:active {
  transform: translateY(0);
}
.btn.primary {
  background: linear-gradient(90deg, #2563eb 80%, #60a5fa 100%);
  color: #fff;
}
.btn.primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn.success {
  background: linear-gradient(90deg, #22c55e 80%, #4ade80 100%);
  color: #fff;
}
.btn.lg {
  padding: 14px 24px;
  font-size: 1.1rem;
}


.result {
  padding: 32px 24px;
}
.result-head {
  text-align: center;
  margin: 6px 0 18px;
}
.result-type {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
}
.result-tagline {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.8;
  font-size: 1.1rem;
}
.breakdown {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.axis {
  display: grid;
  gap: 6px;
}
.axis-label {
  font-size: 12px;
  color: var(--muted);
}
.axis-bar {
  position: relative;
  height: 12px;
  background: #e0e7ef;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
}
.axis-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
}
.axis-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.result-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
}