.trans-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 242, 0.96));
}

.trans-hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at 84% 18%, rgba(217, 56, 58, 0.08) 0 11%, transparent 11.5%),
    radial-gradient(circle at 92% 42%, rgba(29, 96, 168, 0.09) 0 8%, transparent 8.5%),
    radial-gradient(circle at 74% 78%, rgba(29, 96, 168, 0.05) 0 13%, transparent 13.5%);
}

.trans-kicker,
.section-eyebrow {
  color: var(--qm-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trans-kicker {
  padding: 0.4rem 0.7rem 0.4rem 0.45rem;
  border: 1px solid rgba(29, 96, 168, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.trans-kicker-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--qm-primary);
  box-shadow: 0 4px 10px rgba(29, 96, 168, 0.2);
}

.trans-hero h1 {
  max-width: 780px;
  letter-spacing: -0.035em;
}

.trans-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(29, 96, 168, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.trans-hero-stat-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--qm-primary), #4b8bcb);
  box-shadow: 0 8px 18px rgba(29, 96, 168, 0.18);
}

.concept-card {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--qm-radius-card);
  border: 1px solid var(--qm-border);
  box-shadow: var(--qm-shadow-card);
  overflow: hidden;
  background: #fff;
}

.concept-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}

.concept-card--intransitive {
  background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.concept-card--intransitive::before {
  background: #15803d;
}

.concept-card--transitive {
  background: linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
}

.concept-card--transitive::before {
  background: #d97706;
}

.concept-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.concept-card--intransitive .concept-icon {
  color: #15803d;
}

.concept-card--transitive .concept-icon {
  color: #b45309;
}

.concept-label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--qm-muted);
}

.level-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.45rem;
  border-radius: 18px;
  border: 1px solid var(--qm-border);
  background: #fff;
  box-shadow: var(--qm-shadow-card);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.level-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}

.level-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -72px;
  top: -76px;
  border-radius: 50%;
  opacity: 0.42;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(29, 96, 168, 0.1);
}

.level-card--basic::before {
  background: linear-gradient(90deg, #15803d, #4caf50);
}

.level-card--basic::after {
  background: rgba(21, 128, 61, 0.08);
}

.level-card--intermediate::before {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.level-card--intermediate::after {
  background: rgba(217, 119, 6, 0.08);
}

.level-card--high::before {
  background: linear-gradient(90deg, #0d6efd, #dc3545);
}

.level-card--high::after {
  background: rgba(220, 53, 69, 0.07);
}

.level-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.level-badge,
.level-range {
  font-size: 0.78rem;
  font-weight: 800;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.level-range {
  color: var(--qm-muted);
  white-space: nowrap;
}

.level-card--basic .level-badge {
  color: #166534;
  background: rgba(34, 197, 94, 0.1);
}

.level-card--intermediate .level-badge {
  color: #9a3412;
  background: rgba(245, 158, 11, 0.12);
}

.level-card--high .level-badge {
  color: #b91c1c;
  background: rgba(220, 53, 69, 0.1);
}

.level-number {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 0.45rem;
  opacity: 0.12;
}

.level-card h3 {
  letter-spacing: -0.02em;
}

.level-focus {
  padding: 0.9rem;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.focus-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.focus-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
}

.study-step-list {
  display: grid;
  gap: 0.75rem;
}

.study-step {
  display: flex;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.study-step-num {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  background: var(--qm-primary);
}

.roadmap-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--qm-radius-card);
  border: 1px solid var(--qm-border);
  background: #fff;
  box-shadow: var(--qm-shadow-card);
}

.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.roadmap-line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 26px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(21, 128, 61, 0.25),
    rgba(217, 119, 6, 0.25),
    rgba(220, 53, 69, 0.25)
  );
}

.roadmap-item {
  position: relative;
  z-index: 1;
  text-align: center;
}

.roadmap-dot {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.roadmap-dot--basic {
  background: #15803d;
}

.roadmap-dot--intermediate {
  background: #d97706;
}

.roadmap-dot--high {
  background: #dc3545;
}

.roadmap-copy {
  max-width: 320px;
  margin: 0 auto;
}

.trans-faq .accordion-item {
  border-bottom: 1px solid var(--qm-border);
}

.trans-faq .accordion-item:last-child {
  border-bottom: 0;
}

.trans-faq .accordion-button {
  padding: 1rem 0.25rem;
  background: transparent;
  box-shadow: none;
  color: var(--qm-text-strong);
}

.trans-faq .accordion-button:not(.collapsed) {
  color: var(--qm-primary);
}

.trans-faq .accordion-body {
  padding: 0 0.25rem 1rem;
  line-height: 1.85;
}

.trans-faq .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 96, 168, 0.1);
}

@media (max-width: 991.98px) {
  .roadmap {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .roadmap-line {
    left: 26px;
    right: auto;
    top: 26px;
    bottom: 26px;
    width: 2px;
    height: auto;
  }

  .roadmap-item {
    display: flex;
    text-align: left;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .roadmap-dot {
    margin: 0;
    flex: 0 0 52px;
  }

  .roadmap-copy {
    max-width: none;
    padding-top: 0.15rem;
  }

  .trans-hero h1 {
    font-size: 2.35rem;
  }
}

@media (max-width: 575.98px) {
  .trans-hero h1 {
    font-size: 2rem;
  }

  .trans-hero .lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .concept-card {
    padding: 1.1rem;
  }

  .level-card {
    padding: 1.2rem;
  }

  .level-number {
    font-size: 2.4rem;
  }

  .trans-kicker {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .level-card {
    transition: none;
  }
}
