:root {
  --bg: #0b1628;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2458ff;
  --primary-dark: #163fcc;
  --dark-card: #111c32;
  --soft: #f3f4f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #0b1628 0%, #101b30 100%);
  color: var(--text);

  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  color: #374151;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.nav-menu a:hover {
  color: #000;
}

.page-wrap {
  flex: 1;
  padding: 24px 24px 24px;
}

.main-panel {
  max-width: 980px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.top-line {
  height: 7px;
  width: 100%;
  background: linear-gradient(90deg, #10b981 0%, #10b981 24%, #e5e7eb 24%, #e5e7eb 100%);
}

.panel-body {
  padding: 54px 42px 46px;
}

.hero-title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.hero-subtitle {
  font-size: 18px;
  color: #4b5563;
  margin: 0 0 38px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.level-card {
  border: 1px solid #d8dbe2;
  border-radius: 18px;
  padding: 26px 26px 24px;
  background: #fff;
  transition: 0.2s ease;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.level-card:hover {
  transform: translateY(-2px);
  border-color: #bfc5d1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.level-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eeeeef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.level-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.level-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
  margin-bottom: 24px;
}

.start-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: #e5e5e5;
  color: #444;
  font-weight: 800;
  transition: 0.18s ease;
}

.level-card:hover .start-btn {
  background: var(--primary);
  color: #fff;
}

.start-btn span {
  margin-left: 8px;
}

.app-card {
  margin-top: 56px;
  background: linear-gradient(135deg, #111c32 0%, #17243d 100%);
  border-radius: 18px;
  padding: 32px;
  color: #fff;
  display: grid;
  grid-template-columns: 96px 1fr 132px;
  gap: 28px;
  align-items: center;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.app-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.app-subtitle {
  color: #b8c1d4;
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.store-btn.ios {
  background: #fff;
  color: #111827;
}

.app-qr-box {
  width: 132px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.app-qr-img {
  width: 108px;
  height: 108px;
  display: block;
  margin: 0 auto;
}

.app-qr-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #000
}

.site-footer {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 42px;
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  font-size: 14px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
}

.copyright {
  text-align: right;
}

@media (max-width: 768px) {
  .nav-inner {
	padding: 0 18px;
  }

  .logo {
	font-size: 23px;
  }

  .nav-menu {
	gap: 16px;
  }

  .nav-menu a {
	font-size: 14px;
  }

  .page-wrap {
	padding: 36px 14px;
  }

  .panel-body {
	padding: 36px 20px 28px;
  }

  .hero-title {
	font-size: 29px;
  }

  .hero-subtitle {
	font-size: 15px;
  }

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

  .app-card {
	grid-template-columns: 1fr;
	text-align: center;
	justify-items: center;
  }

  .download-buttons {
	justify-content: center;
  }

  .site-footer {
	grid-template-columns: 1fr;
	text-align: center;
  }

  .copyright {
	text-align: center;
  }
}

.exam-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.exam-progress-box {
  min-width: 180px;
  font-weight: 800;
  color: #374151;
}

.question-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.question-meta span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.exam-message {
  padding: 32px;
  border-radius: 16px;
  background: #f9fafb;
  color: #4b5563;
  font-weight: 700;
  text-align: center;
}

.reading-passage {
  padding: 24px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  line-height: 1.8;
  margin-bottom: 24px;
}

.question-stem {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 24px;
  min-height: 300px;
}

.audio-box {
  margin-bottom: 24px;
}

.audio-box audio {
  width: 100%;
}

.options-box {
  display: grid;
  gap: 14px;
}

.option-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d8dbe2;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.18s ease;
}

.option-item:hover {
  border-color: #2458ff;
  background: #f8faff;
}

.option-item input {
  transform: scale(1.2);
}

.option-key {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2458ff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.option-text {
  font-size: 17px;
}

.writing-box {
  margin-top: 18px;
}

.exam-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
}

.btn-main,
.btn-sub {
  min-width: 160px;
  height: 46px;
  border-radius: 10px;
  font-weight: 900;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-main {
  background: #2458ff;
  color: #fff;
}

.btn-main:hover {
  background: #163fcc;
}

.btn-sub {
  background: #e5e7eb;
  color: #111827;
}

.answer-result {
  margin-top: 28px;
  padding: 22px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.result-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.result-title.correct {
  color: #059669;
}

.result-title.wrong {
  color: #dc2626;
}

.result-row {
  font-weight: 800;
  margin-bottom: 12px;
}

.result-explanation {
  line-height: 1.8;
  color: #374151;
}

.finish-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 10px;
}

.finish-subtitle {
  color: #6b7280;
  margin-bottom: 28px;
}

.score-box {
  padding: 32px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.score-main {
  font-size: 56px;
  font-weight: 900;
  color: #2458ff;
}

.score-sub {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 24px;
}

.skill-score-list {
  display: grid;
  gap: 12px;
}

.skill-score-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
  font-weight: 800;
}

@media (max-width: 768px) {
  .exam-head {
    display: block;
  }

  .exam-progress-box {
    margin-top: 20px;
  }

  .question-stem {
    font-size: 18px;
	min-height: 300px;
  }

  .exam-actions {
    flex-direction: column;
  }

  .btn-main,
  .btn-sub {
    width: 100%;
  }
}

.comic {
  width: 200px;
  height: auto;
  display: block;
}

.option-item.is-selected {
  border-color: #2458ff;
  background: #f8faff;
}

.option-item.is-correct {
  border-color: #059669;
  background: #ecfdf5;
}

.option-item.is-wrong {
  border-color: #dc2626;
  background: #fef2f2;
}

.option-item input:disabled {
  cursor: not-allowed;
}
