:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #d8dde7;
  --text: #1b1f2a;
  --muted: #6b7280;
  --blue2: #7a2cff; /* 応募ボタン右側の紫寄り */
  --grayBtn: #6b6f7a;
  --shadow: 0 18px 40px rgba(0,0,0,.18);
  --radius: 16px;
  --color-red-50: oklch(97.1% 0.013 17.38);
  --color-red-500: oklch(63.7% 0.237 25.331);
  --color-red-600: oklch(57.7% 0.245 27.325);
  --color-red-700: oklch(50.5% 0.213 27.518);
  --color-orange-50: oklch(98% 0.016 73.684);
  --color-orange-400: oklch(75% 0.183 55.934);
  --color-orange-500: oklch(70.5% 0.213 47.604);
  --color-orange-600: oklch(64.6% 0.222 41.116);
  --color-yellow-50: oklch(98.7% 0.026 102.212);
  --color-yellow-300: oklch(90.5% 0.182 98.111);
  --color-yellow-500: oklch(79.5% 0.184 86.047);
  --color-yellow-800: oklch(47.6% 0.114 61.907);
  --color-green-600: oklch(62.7% 0.194 149.214);
  --color-green-700: oklch(52.7% 0.154 150.069);
  --color-teal-600: oklch(60% 0.118 184.704);
  --color-teal-700: oklch(51.1% 0.096 186.391);
  --color-blue-50: oklch(97% 0.014 254.604);
  --color-blue-100: oklch(93.2% 0.032 255.585);
  --color-blue-400: oklch(70.7% 0.165 254.624);
  --color-blue-500: oklch(62.3% 0.214 259.815);
  --color-blue-600: oklch(54.6% 0.245 262.881);
  --color-blue-700: oklch(48.8% 0.243 264.376);
  --blue: var(--color-blue-600);
}

.lucide-trophy path{
  color:oklch(0.795 0.184 86.047);
}
.lucide-circle-check{
  color: var(--color-blue-600);
}
.lucide-star{
  color: var(--color-blue-500);
}

/*
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
}
*/

.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.card{
  /*width:min(760px, 92vw);*/
  width: 625px;
  max-width: 100%;
  margin: 20px auto;
  background: var(--card);
  border: 2px solid oklch(87.2% 0.01 258.338);;
  border-radius: 18px;
  padding: 32px;
  box-sizing: border-box;
}

.card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 8px;
}

.meta__text{
  font-weight: 700;
  color:#2b2f3a;
}

.progress{
  width: 220px;
  padding-top: 2px;
}
.progress__bars{
  display:flex;
  gap:8px;
  justify-content:flex-end;
}
.progress__bar{
  height: 4px;
  width: 32px;
  border-radius: 999px;
  background:#d6d9e2;
}
.progress__bar.is-active{
  background-color: var(--color-blue-600);
}

.badgeRow{
  margin-top: 8px;
  margin-bottom: 16px;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 16px;
  border-radius: 999px;
  background-color: var(--color-blue-600);
  color:#fff;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 14px;
}

.question{
  margin: 10px 0 24px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 900;
}

.choices{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-bottom: 18px;
}

.choice{
  display:flex;
  align-items:center;
  gap: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 16px;
  cursor:pointer;
  user-select:none;
  transition: border-color .15s ease, background .15s ease;
}

.choice:hover{
  border-color: var(--color-blue-400);
  background-color: var(--color-blue-100);
}

.choice.is-selected{
  border-color: var(--color-blue-600);
  background-color: var(--color-blue-50);
}

/* SVGラジオ（lucide） */
.choice__icon{
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* lucideの色をクラスで制御できるように */
.choice__icon svg{
  width: 24px;
  height: 24px;
  display:block;
}

.choice__label{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color:#202433;
}

.choice__letter{
  font-weight: 900;
  color:#111827;
  min-width: 22px;
}

.choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.card__footer{
  display:flex;
  justify-content:flex-end;
  margin-top: 0;
  padding-top: 8px;
}

.btn{
  border: none;
  border-radius: 10px;
  font-weight: 900;
  cursor:pointer;
}

.btn--next{
  background: #6d6f76;
  color: #fff;
  padding: 8px 12px;
  min-width: 84px;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  opacity: .9;
  font-size: 14px;
  font-weight: 500;
  background-color: #030213;
}
.btn--next.answer{
  padding: 8px 32px;
  background-color: var(--color-green-600);
  transition: all 0.3s;
}
.btn--next.answer:hover{
  background-color: var(--color-green-700);
}
.btn--next.answer .btn__arrow{
  display: none;
}
.btn--next:disabled{
  opacity: .45;
  cursor:not-allowed;
}
.btn__arrow{
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.modalRoot[hidden]{ display:none; }

.modalBackdrop{
  position:fixed;
  z-index: 9999;
  inset:0;
  background: rgba(0,0,0,.45);
}

.modal{
  position:fixed;
  left:50%;
  top:50%;
  z-index: 10000;
  transform: translate(-50%,-50%);
  width: min(448px, 92vw);
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 25px;
  box-sizing: border-box;
}

.modal__close{
  position:absolute;
  right: 14px;
  top: 10px;
  border:none;
  background:transparent;
  font-size: 22px;
  cursor:pointer;
  color:#222;
}

.modal__icon{
  display:flex;
  justify-content:center;
  margin-top: 6px;
  margin-bottom: 6px;
}

.modal__icon svg{
  width: 64px;
  height: 64px;
}

.modal__title{
  text-align:center;
  margin: 8px 0 6px !important;
  font-size: 24px !important;
  font-weight: 900;
}

.modal__sub{
  text-align:center;
  margin: 18px 0 12px;
  color: #717182;
}

.modal__score{
  text-align:center;
  padding: 10px 0;
}

.modal__percent{
  font-size: 56px;
  font-weight: 1000;
  color: var(--blue);
  letter-spacing: .02em;
}

.modal__count{
  font-size: 18px;
  color:#4A5565;
  margin-top: 6px;
}

.modal__actions{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 30px;
}

.btn--outline{
  border: 1px solid #b9bfcc;
  background:#fff;
  color:#0A0A0A;
  padding: 14px 12px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
}

.btn--white{
  border: 1px solid #d7dbe6;
  background:#fff;
  color:#0A0A0A;
  padding: 14px 12px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
}

.btn--cta{
  border: none;
  color: #fff;
  padding: 12px 2px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
  font-size: 18px;
}

.btn--cta2{
  border: none;
  background: #1e9b3b;
  color:#fff;
  font-weight: 900;
  text-align:center;
  padding: 12px 2px;
  border-radius: 6px;
  font-size: 18px;
}

@media (max-width: 520px){
  .card{
    padding: 20px;
  }
  .question{ font-size: 19px; }
  .progress{ width: 160px; }
  .progress__bar{ width: 24px; }
}
