/* ===================================================
   生成AIパスポートゼミ — Custom Styles
   Primary color: Teal (#0D9488)
=================================================== */

:root {
  --primary:        #0D9488;
  --primary-dark:   #0F766E;
  --primary-light:  #F0FDFA;
  --primary-subtle: #CCFBF1;
  --secondary:      #0284C7;
  --bg:             #F8FAFC;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --border:         #E2E8F0;
}

body {
  font-family: 'Noto Sans JP', 'Roboto', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

#mainNav {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#mainNav .navbar-nav .nav-link {
  border-radius: 6px;
  transition: background 0.15s;
}

#mainNav .navbar-nav .nav-link:hover {
  background: rgba(255,255,255,0.15);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-text {
  font-weight: 700;
  font-size: 1rem;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  color: white;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  padding: 0.3rem 1.1rem;
  font-size: 0.82rem;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.7;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  border: none;
  font-weight: 700;
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.section-title,
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.feature-icon {
  font-size: 2.4rem;
  color: var(--primary);
}

.genre-card {
  transition: transform 0.15s, box-shadow 0.15s;
  color: var(--text);
  cursor: pointer;
}
.genre-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  color: var(--primary);
}
.genre-card-all .genre-icon { color: var(--secondary); }

.genre-icon {
  font-size: 2rem;
  color: var(--primary);
}

.genre-name { font-size: 0.95rem; }

.question-card .card-header {
  background: var(--primary-light);
  border-bottom: 1px solid var(--primary-subtle);
}

.question-number {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.question-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}

.choice-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border-color: var(--border);
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text);
  transition: background 0.1s, border-color 0.1s;
}
.choice-label:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--text);
}
.btn-check:checked + .choice-label {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.choice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--border);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}
.btn-check:checked + .choice-label .choice-letter {
  background: var(--primary);
  color: white;
}

.bg-primary-custom { background-color: var(--primary) !important; }

.score-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 6px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring.score-great { border-color: #22C55E; }
.score-ring.score-ok    { border-color: #F59E0B; }
.score-ring.score-low   { border-color: #EF4444; }

.score-inner { text-align: center; line-height: 1; }
.score-num   { font-size: 2.4rem; font-weight: 700; }
.score-total { font-size: 1rem; color: var(--text-muted); }

.result-item.correct  { border-left: 4px solid #22C55E !important; }
.result-item.incorrect{ border-left: 4px solid #EF4444 !important; }

.result-item .card-header {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.result-badge { font-size: 0.78rem; padding: 0.3em 0.65em; }

.choice-review-row {
  font-size: 0.9rem;
  line-height: 1.5;
}
.row-correct { background: #F0FDF4; border: 1px solid #86EFAC; }
.row-wrong   { background: #FEF2F2; border: 1px solid #FCA5A5; }

.explanation-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  font-size: 0.9rem;
  line-height: 1.6;
}

.scope-card,
.answer-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.study-steps li {
  display: flex;
  gap: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.study-steps li span {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.term-card {
  transition: transform 0.15s, box-shadow 0.15s;
}
.term-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.brand-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.stat-icon  { font-size: 2rem;   color: var(--primary); }
.stat-number{ font-size: 2.2rem; font-weight: 700; color: var(--primary-dark); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

.admin-menu {
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}
.admin-menu:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
  color: var(--primary);
}

.bar-chart-col {
  background: linear-gradient(to top, var(--primary-dark), var(--primary));
  min-height: 4px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }

.bg-primary-subtle { background-color: var(--primary-subtle) !important; }

.footer {
  background: white;
  border-top: 1px solid var(--border);
}

@media (max-width: 576px) {
  .hero-section { padding: 2.5rem 0; }
  .choice-label { font-size: 0.87rem; padding: 0.55rem 0.8rem; }
  .score-num    { font-size: 2rem; }
  .study-steps li { align-items: flex-start; }
}
