.toeic-entry {
  --te-ink: #10233f;
  --te-muted: #53657a;
  --te-blue: #1459c7;
  --te-blue-dark: #093a88;
  --te-teal: #087f79;
  --te-coral: #e7664b;
  --te-amber: #f3ad35;
  --te-sky: #eaf3ff;
  --te-mint: #e8f7f2;
  --te-line: #d8e4f0;
  --te-surface: #fff;
  --te-shadow: 0 18px 46px rgba(25, 64, 112, .1);
  color: var(--te-ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

.toeic-entry *,
.toeic-entry *::before,
.toeic-entry *::after {
  box-sizing: border-box;
}

.toeic-entry a {
  color: var(--te-blue-dark);
  text-underline-offset: .18em;
}

.toeic-entry a:hover {
  color: var(--te-blue);
}

.toeic-entry .te-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.toeic-entry .te-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid #ccdef3;
  border-radius: 28px;
  background: #eef6ff;
  box-shadow: var(--te-shadow);
  isolation: isolate;
}

.toeic-entry .te-hero__image,
.toeic-entry .te-hero__veil {
  position: absolute;
  inset: 0;
}

.toeic-entry .te-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.toeic-entry .te-hero__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 250, 255, .98) 0%, rgba(246, 250, 255, .96) 42%, rgba(246, 250, 255, .42) 68%, rgba(246, 250, 255, .06) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .12));
}

.toeic-entry .te-hero__content {
  width: min(620px, 60%);
  padding: clamp(52px, 7vw, 82px) clamp(28px, 5vw, 66px);
}

.toeic-entry .te-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--te-blue-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.toeic-entry .te-eyebrow::before {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--te-coral);
  content: "";
}

.toeic-entry .te-title {
  max-width: 15em;
  margin: 0;
  color: var(--te-ink);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 780;
  line-height: 1.24;
  letter-spacing: -.035em;
}

.toeic-entry .te-lead {
  max-width: 42em;
  margin: 22px 0 0;
  color: #40536a;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.9;
}

.toeic-entry .te-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.toeic-entry .te-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.toeic-entry .te-action::after {
  content: "→";
}

.toeic-entry .te-action--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--te-blue), var(--te-blue-dark));
  box-shadow: 0 9px 22px rgba(20, 89, 199, .22);
}

.toeic-entry .te-action--primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.toeic-entry .te-action--secondary {
  border-color: #b9cfe9;
  color: var(--te-blue-dark);
  background: rgba(255, 255, 255, .82);
}

.toeic-entry .te-action--quiet {
  border-color: var(--te-line);
  color: var(--te-ink);
  background: #fff;
}

.toeic-entry .te-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--te-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 16px 34px rgba(22, 60, 103, .11);
}

.toeic-entry .te-fact {
  min-width: 0;
  padding: 20px;
  text-align: center;
}

.toeic-entry .te-fact + .te-fact {
  border-left: 1px solid var(--te-line);
}

.toeic-entry .te-fact strong {
  display: block;
  color: var(--te-blue-dark);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.toeic-entry .te-fact span {
  display: block;
  margin-top: 5px;
  color: var(--te-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.toeic-entry .te-section {
  padding-top: clamp(66px, 8vw, 98px);
  scroll-margin-top: 80px;
}

.toeic-entry .te-section--soft {
  margin-top: clamp(66px, 8vw, 98px);
  padding-block: clamp(62px, 7vw, 86px);
  background: linear-gradient(180deg, #f4f8fd 0%, #fff 100%);
}

.toeic-entry .te-section__head {
  max-width: 760px;
  margin-bottom: 32px;
}

.toeic-entry .te-section__head--center {
  margin-inline: auto;
  text-align: center;
}

.toeic-entry .te-kicker {
  margin: 0 0 9px;
  color: var(--te-teal);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.toeic-entry .te-heading {
  margin: 0;
  color: var(--te-ink);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 780;
  line-height: 1.42;
  letter-spacing: -.025em;
}

.toeic-entry .te-section__lead {
  margin: 15px 0 0;
  color: var(--te-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.toeic-entry .te-choice-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #cbdcf0;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f2f7fd 100%);
  box-shadow: var(--te-shadow);
}

.toeic-entry .te-choices {
  display: grid;
  gap: 10px;
  align-content: start;
}

.toeic-entry .te-choice {
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #cbd9e8;
  border-radius: 14px;
  color: var(--te-ink);
  background: #fff;
  font: inherit;
  font-weight: 750;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.toeic-entry .te-choice:hover,
.toeic-entry .te-choice[aria-pressed="true"] {
  border-color: var(--te-blue);
  color: var(--te-blue-dark);
  background: var(--te-sky);
}

.toeic-entry .te-result {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #0c448f, #0b6d82);
}

.toeic-entry .te-result__label {
  margin: 0 0 10px;
  color: #bde8ee;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.toeic-entry .te-result__title {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.5;
}

.toeic-entry .te-result__text {
  margin: 10px 0 18px;
  color: #e8f6fa;
  line-height: 1.75;
}

.toeic-entry .te-result .te-action {
  align-self: flex-start;
  color: var(--te-blue-dark);
  background: #fff;
}

.toeic-entry .te-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.toeic-entry .te-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toeic-entry .te-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--te-line);
  border-radius: 18px;
  background: var(--te-surface);
  box-shadow: 0 10px 28px rgba(26, 64, 108, .07);
}

.toeic-entry .te-card--blue {
  border-top: 4px solid var(--te-blue);
}

.toeic-entry .te-card--teal {
  border-top: 4px solid var(--te-teal);
}

.toeic-entry .te-card--coral {
  border-top: 4px solid var(--te-coral);
}

.toeic-entry .te-card--amber {
  border-top: 4px solid var(--te-amber);
}

.toeic-entry .te-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--te-blue-dark);
  font-size: .76rem;
  font-weight: 850;
}

.toeic-entry .te-card__number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--te-blue);
}

.toeic-entry .te-card h3,
.toeic-entry .te-card h4 {
  margin: 0;
  color: var(--te-ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.55;
}

.toeic-entry .te-card p,
.toeic-entry .te-card li {
  color: var(--te-muted);
  line-height: 1.82;
}

.toeic-entry .te-card p {
  margin: 10px 0 0;
}

.toeic-entry .te-card ul {
  margin: 13px 0 0;
  padding-left: 1.2em;
}

.toeic-entry .te-card__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 16px;
  font-weight: 800;
}

.toeic-entry .te-card__link::after {
  margin-left: 7px;
  content: "→";
}

.toeic-entry .te-band {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #102e63, #075f72);
}

.toeic-entry .te-band__label {
  color: #b9e7eb;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.toeic-entry .te-band__score {
  display: block;
  margin-top: 6px;
  font-size: 2.5rem;
  font-weight: 800;
}

.toeic-entry .te-band p {
  margin: 0;
  color: #edf8fa;
  line-height: 1.85;
}

.toeic-entry .te-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  counter-reset: te-step;
}

.toeic-entry .te-step {
  position: relative;
  padding: 55px 18px 20px;
  border: 1px solid var(--te-line);
  border-radius: 17px;
  background: #fff;
  counter-increment: te-step;
}

.toeic-entry .te-step::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--te-teal);
  content: counter(te-step);
  font-weight: 800;
}

.toeic-entry .te-step h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.toeic-entry .te-step p {
  margin: 8px 0 0;
  color: var(--te-muted);
  font-size: .88rem;
  line-height: 1.7;
}

.toeic-entry .te-note {
  padding: 20px 22px;
  border-left: 5px solid var(--te-amber);
  border-radius: 0 16px 16px 0;
  background: #fff8e9;
}

.toeic-entry .te-note h3 {
  margin: 0;
  font-size: 1.04rem;
}

.toeic-entry .te-note p {
  margin: 8px 0 0;
  color: #61543d;
  line-height: 1.8;
}

.toeic-entry .te-timeline {
  display: grid;
  gap: 18px;
}

.toeic-entry .te-timeline__item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  padding: 25px;
  border: 1px solid var(--te-line);
  border-radius: 19px;
  background: #fff;
}

.toeic-entry .te-timeline__stage {
  color: var(--te-blue-dark);
  font-weight: 850;
}

.toeic-entry .te-timeline__body h3 {
  margin: 0;
  font-size: 1.12rem;
}

.toeic-entry .te-timeline__body p {
  margin: 8px 0 0;
  color: var(--te-muted);
  line-height: 1.82;
}

.toeic-entry .te-checklist {
  padding: clamp(23px, 4vw, 36px);
  border: 1px solid #cbdcf0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--te-shadow);
}

.toeic-entry .te-progress {
  height: 12px;
  overflow: hidden;
  margin: 14px 0 22px;
  border-radius: 999px;
  background: #e9eff5;
}

.toeic-entry .te-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--te-blue), var(--te-teal));
  transition: width .2s ease;
}

.toeic-entry .te-checklist__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.toeic-entry .te-check {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.toeic-entry .te-check:hover {
  background: #f4f8fd;
}

.toeic-entry .te-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--te-blue);
}

.toeic-entry .te-reset {
  min-height: 44px;
  margin-top: 18px;
  padding: 9px 15px;
  border: 1px solid #c8d5e3;
  border-radius: 12px;
  color: var(--te-muted);
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.toeic-entry .te-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toeic-entry .te-source-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
}

.toeic-entry .te-source-list a::after {
  margin-left: 7px;
  content: "↗";
}

.toeic-entry .te-faq {
  display: grid;
  gap: 12px;
}

.toeic-entry .te-faq details {
  border: 1px solid var(--te-line);
  border-radius: 15px;
  background: #fff;
}

.toeic-entry .te-faq summary {
  min-height: 54px;
  padding: 15px 48px 15px 18px;
  color: var(--te-ink);
  font-weight: 800;
  line-height: 1.55;
  cursor: pointer;
}

.toeic-entry .te-faq p {
  margin: 0;
  padding: 0 18px 19px;
  color: var(--te-muted);
  line-height: 1.82;
}

.toeic-entry .te-final {
  margin-top: clamp(68px, 8vw, 98px);
  padding: clamp(35px, 6vw, 60px);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #12376e, #08756f);
  text-align: center;
}

.toeic-entry .te-final h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.toeic-entry .te-final p {
  max-width: 650px;
  margin: 14px auto 0;
  color: #e5f3f4;
  line-height: 1.85;
}

.toeic-entry .te-final .te-actions {
  justify-content: center;
}

.toeic-entry .te-updated {
  margin: 16px 0 0;
  color: var(--te-muted);
  font-size: .82rem;
}

.toeic-entry .te-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.toeic-entry :is(a, button, input, summary):focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .toeic-entry .te-hero__content {
    width: 70%;
  }

  .toeic-entry .te-grid,
  .toeic-entry .te-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toeic-entry .te-choice-panel {
    grid-template-columns: 1fr;
  }

  .toeic-entry .te-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .toeic-entry .te-shell {
    width: min(100% - 20px, 1120px);
  }

  .toeic-entry .te-hero {
    min-height: 640px;
    border-radius: 20px;
  }

  .toeic-entry .te-hero__image {
    object-position: 70% bottom;
  }

  .toeic-entry .te-hero__veil {
    background: linear-gradient(180deg, rgba(246, 250, 255, .99) 0%, rgba(246, 250, 255, .96) 57%, rgba(246, 250, 255, .35) 78%, rgba(246, 250, 255, .05) 100%);
  }

  .toeic-entry .te-hero__content {
    width: 100%;
    padding: 34px 22px;
  }

  .toeic-entry .te-title {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .toeic-entry .te-actions,
  .toeic-entry .te-action {
    width: 100%;
  }

  .toeic-entry .te-facts {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -24px;
  }

  .toeic-entry .te-fact:nth-child(odd) + .te-fact {
    border-left: 1px solid var(--te-line);
  }

  .toeic-entry .te-fact:nth-child(3) {
    border-top: 1px solid var(--te-line);
    border-left: 0;
  }

  .toeic-entry .te-fact:nth-child(4) {
    border-top: 1px solid var(--te-line);
  }

  .toeic-entry .te-grid,
  .toeic-entry .te-grid--2,
  .toeic-entry .te-steps,
  .toeic-entry .te-checklist__grid,
  .toeic-entry .te-source-list {
    grid-template-columns: 1fr;
  }

  .toeic-entry .te-timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .toeic-entry .te-card,
  .toeic-entry .te-choice-panel,
  .toeic-entry .te-checklist {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toeic-entry *,
  .toeic-entry *::before,
  .toeic-entry *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
