.story-english-page {
  --se-ink: #152033;
  --se-muted: #5d697a;
  --se-soft: #f6f8fb;
  --se-line: #d8e2ef;
  --se-blue: #0d6efd;
  --se-green: #16875d;
  --se-amber: #b26700;
  --se-cyan: #087990;
  --se-red: #b42352;
  color: var(--se-ink);
}

.story-english-page *,
.story-english-page *::before,
.story-english-page *::after {
  box-sizing: border-box;
}

.story-english-page p,
.story-english-page li,
.story-english-page a,
.story-english-page button,
.story-english-page label {
  overflow-wrap: anywhere;
}

.se-breadcrumb {
  margin: 0 0 1rem;
  color: var(--se-muted);
  font-size: 0.88rem;
}

.se-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.se-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.se-breadcrumb li + li::before {
  color: #8b98aa;
  content: "/";
}

.se-breadcrumb a {
  color: #305f9c;
  text-decoration: none;
}

.se-breadcrumb a:hover {
  text-decoration: underline;
}

.se-lesson-header {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
  margin-bottom: 1.5rem;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(21, 32, 51, 0.08);
  overflow: hidden;
}

.se-lesson-copy {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #f6fff9 100%);
}

.se-kicker,
.se-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--se-blue);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.se-kicker-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--se-blue);
}

.se-lesson-header h1 {
  margin: 0;
  color: var(--se-ink);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
}

.se-lead {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--se-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.se-lead strong {
  color: #1c3558;
}

.se-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.se-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--se-line);
  border-radius: 999px;
  background: #ffffff;
  color: #2c3d52;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

a.se-meta-chip:hover {
  border-color: #abcaf5;
  color: #0b5ed7;
  text-decoration: none;
}

.se-action-row,
.se-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.se-btn,
.se-icon-btn,
.se-choice {
  border-radius: 8px;
  font: inherit;
  letter-spacing: 0;
}

.se-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  max-width: 100%;
  padding: 0.68rem 0.95rem;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.se-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.se-btn-primary {
  background: var(--se-blue);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.16);
}

.se-btn-primary:hover,
.se-btn-primary:focus {
  background: #0b5ed7;
  color: #ffffff;
}

.se-btn-primary:disabled {
  background: #9eb8dc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.se-btn-quiet {
  border-color: var(--se-line);
  background: #ffffff;
  color: #1f334d;
}

.se-btn-quiet:hover,
.se-btn-quiet:focus {
  border-color: #b8d2f6;
  background: #f3f8ff;
  color: #0b5ed7;
}

.se-hero-visual {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  min-height: 100%;
  margin: 0;
  background: #111827;
  max-height: 560px;
}

.se-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center center;
}

.se-hero-visual figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(7, 18, 33, 0.82);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.se-hero-visual figcaption span {
  color: #9ed7ff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.se-hero-visual figcaption strong {
  font-size: clamp(0.95rem, 2vw, 1.18rem);
  line-height: 1.35;
}

.se-section {
  margin-top: 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(21, 32, 51, 0.06);
}

.se-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.se-section h2 {
  margin: 0;
  color: var(--se-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
}

.se-part-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.32rem 0.65rem;
  border: 1px solid #b8d2f6;
  border-radius: 999px;
  background: #f3f8ff;
  color: #0b5ed7;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.se-listening-layout {
  display: block;
  width: 100%;
}

.se-listening-card {
  background: #fbfcfe;
  width: 100%;
  max-width: none;
}

.se-listening-note {
  margin: 0;
  color: var(--se-muted);
  line-height: 1.7;
}

.se-situation-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d6e3f4;
  border-radius: 8px;
  background: #f8fbff;
}

.se-situation-strip span {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 28px;
  align-items: center;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0b5ed7;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.se-situation-strip p {
  margin: 0;
  color: #31445f;
  line-height: 1.65;
}

.se-audio-panel {
  display: grid;
  grid-template-columns: max-content max-content minmax(180px, 1fr);
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #d6e3f4;
  border-radius: 8px;
  background: #ffffff;
}

.se-dialogue-audio {
  margin-bottom: 1rem;
}

.se-speed-control {
  display: grid;
  gap: 0.35rem;
  min-width: 180px;
  color: #34465f;
  font-size: 0.86rem;
  font-weight: 850;
}

.se-speed-control input {
  width: 100%;
  accent-color: var(--se-blue);
}

.se-speed-control output {
  color: #0b5ed7;
  font-weight: 900;
}

.se-audio-progress {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 3rem;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  margin-top: 0.1rem;
}

.se-audio-progress-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf7;
}

.se-audio-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d6efd 0%, #18a058 100%);
  transition: width 0.16s linear;
}

.se-audio-progress-text {
  color: #40536d;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.se-number-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
}

.se-number-choice-grid.se-four-choices {
  grid-template-columns: repeat(4, 54px);
}

.se-number-choice {
  display: inline-grid;
  position: relative;
  width: 54px;
  min-height: 50px;
  padding: 0;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.se-number-choice.se-choice {
  width: 54px;
  min-height: 50px;
  padding: 0;
  text-align: center;
}

.se-number-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.se-number-choice:focus-within {
  border-color: #9fc1f3;
  background: #f3f8ff;
}

.se-radio-choice-list {
  display: grid;
  gap: 0.65rem;
}

.se-radio-choice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 62px;
  cursor: pointer;
}

.se-radio-choice:focus-within {
  border-color: #9fc1f3;
  background: #f3f8ff;
}

.se-radio-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.se-radio-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #9db0c9;
  border-radius: 999px;
  background: #ffffff;
}

.se-radio-mark::after {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.se-radio-choice.is-selected .se-radio-mark {
  border-color: var(--se-blue);
}

.se-radio-choice.is-selected .se-radio-mark::after {
  background: var(--se-blue);
}

.se-radio-copy {
  display: grid;
  gap: 0.2rem;
}

.se-radio-copy strong {
  color: #17263d;
  font-size: 1rem;
  line-height: 1.25;
}

.se-radio-copy span {
  color: var(--se-muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.se-transcript {
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
}

.se-transcript summary {
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  color: #1f334d;
  cursor: pointer;
  font-weight: 900;
}

.se-transcript div {
  padding: 0 0.85rem 0.85rem;
  color: var(--se-muted);
  line-height: 1.7;
}

.se-transcript p {
  margin: 0 0 0.5rem;
}

.se-transcript ol {
  margin: 0;
  padding-left: 1.35rem;
}

.se-exam-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
}

.se-exam-side {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(0.85rem, 2vw, 1.2rem);
  background: #f8fbff;
}

.se-exam-visual {
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d6e3f4;
  border-radius: 8px;
  background: #ffffff;
}

.se-exam-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.se-exam-summary {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: #f8fbff;
}

.se-exam-summary ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.25rem;
  color: #273a52;
  font-weight: 850;
  line-height: 1.55;
}

.se-exam-side .se-exam-summary {
  padding: 0;
  background: transparent;
}

.se-part2-card {
  gap: 1rem;
}

.se-part2-after-answer {
  display: none;
  gap: 0.85rem;
}

.se-quiz-card.is-answered .se-part2-after-answer {
  display: grid;
}

.se-answer-guide,
.se-listening-points {
  padding: 1rem;
  border: 1px solid #cbe4d8;
  border-radius: 8px;
  background: #f2fbf7;
}

.se-answer-guide h3,
.se-listening-points h3 {
  margin: 0 0 0.85rem;
  color: #103b2c;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.se-answer-guide-grid,
.se-point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.se-answer-guide-grid div,
.se-point-grid div {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 0.85rem;
  border: 1px solid #cbe4d8;
  border-radius: 8px;
  background: #ffffff;
}

.se-answer-guide-grid span,
.se-point-grid span {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #e5f7ee;
  color: #0f6846;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.se-answer-guide-grid strong,
.se-point-grid strong {
  color: #14233a;
  line-height: 1.45;
}

.se-answer-guide-grid p,
.se-point-grid p {
  margin: 0;
  color: #31445f;
  line-height: 1.65;
}

.se-script-panel {
  padding: 1rem;
  border: 1px solid #d7e4f3;
  border-radius: 8px;
  background: #ffffff;
}

.se-script-panel h3 {
  margin: 0 0 0.85rem;
  color: #14233a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.se-script-grid {
  display: grid;
  gap: 0.75rem;
}

.se-script-grid div {
  padding: 0.85rem;
  border: 1px solid #e2ebf5;
  border-radius: 8px;
  background: #fbfdff;
}

.se-script-grid span {
  display: block;
  margin-bottom: 0.45rem;
  color: #0b5ed7;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.se-script-grid p,
.se-script-grid ol {
  margin: 0;
  color: #31445f;
  line-height: 1.65;
}

.se-script-grid p + p {
  margin-top: 0.35rem;
}

.se-script-grid ol {
  padding-left: 1.35rem;
}

.se-advanced-story {
  background: #fbfcfe;
}

.se-advanced-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #d6e3f4;
  border-radius: 8px;
  background: #ffffff;
}

.se-advanced-lead > div:first-child > span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0b5ed7;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.se-advanced-lead p {
  margin: 0;
  color: #31445f;
  line-height: 1.7;
}

.se-after-mission {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #c9def8;
  border-left: 4px solid #0b5ed7;
  border-radius: 8px;
  background: #f8fbff;
}

.se-after-mission span {
  color: #0b5ed7;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.se-after-mission strong {
  color: #14233a;
  font-size: 1.05rem;
  line-height: 1.45;
}

.se-after-mission p {
  margin: 0;
  color: #536174;
  line-height: 1.65;
}

.se-advanced-audio {
  margin-top: 0;
  margin-bottom: 1rem;
}

.se-advanced-quiz {
  margin-bottom: 1rem;
}

.se-advanced-reveal {
  margin-top: 1rem;
  border: 1px solid #cddcf0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 32, 51, 0.05);
}

.se-advanced-reveal summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 84px;
  padding: 1.15rem 1.2rem;
  color: #1f334d;
  cursor: pointer;
  list-style: none;
}

.se-advanced-reveal summary::-webkit-details-marker {
  display: none;
}

.se-advanced-reveal summary::marker {
  content: "";
}

.se-advanced-reading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1rem 1rem;
}

.se-reading-column {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid #e1eaf5;
  border-radius: 8px;
  background: #fbfdff;
}

.se-reading-column h3 {
  margin: 0 0 0.15rem;
  color: #14233a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.se-reading-column p {
  margin: 0;
  color: #31445f;
  line-height: 1.75;
}

.se-reading-column em {
  color: #16304d;
  font-style: normal;
  font-weight: 900;
}

.se-advanced-points {
  margin: 0 1rem 1rem;
}

.se-advanced-chunks {
  margin-top: 1rem;
}

.se-dialogue-list {
  display: grid;
  gap: 0.85rem;
}

.se-dialogue-quiz {
  margin: 1.35rem 0 1.5rem;
  padding-top: 0.45rem;
}

.se-dialogue-level {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.se-dialogue-level span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.6rem;
  border: 1px solid #cfdced;
  border-radius: 999px;
  background: #ffffff;
  color: #31445f;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.se-dialogue-level span:first-child {
  border-color: #9bd2bc;
  background: #eefaf4;
  color: #0f6846;
}

.se-dialogue-reveal {
  margin: 1.75rem 0 0;
  border: 1px solid #cddcf0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 32, 51, 0.05);
}

.se-dialogue-reveal summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 88px;
  padding: 1.2rem 1.25rem;
  color: #1f334d;
  cursor: pointer;
  list-style: none;
}

.se-dialogue-reveal summary::-webkit-details-marker {
  display: none;
}

.se-dialogue-reveal summary::marker {
  content: "";
}

.se-reveal-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3ff;
  color: #0b5ed7;
  font-size: 1.1rem;
}

.se-reveal-copy {
  display: grid;
  gap: 0.15rem;
}

.se-reveal-copy strong {
  color: var(--se-ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
}

.se-reveal-copy small {
  color: var(--se-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.se-dialogue-reveal .se-dialogue-list {
  padding: 0 0.95rem 0.95rem;
}

.se-line {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 44px;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: var(--se-soft);
}

.se-line-right {
  border-left: 4px solid var(--se-cyan);
}

.se-line-left {
  border-left: 4px solid var(--se-amber);
}

.se-speaker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: #ffffff;
  color: #1b3552;
  font-weight: 900;
  text-align: center;
}

.se-english {
  margin: 0;
  color: var(--se-ink);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 850;
  line-height: 1.45;
}

.se-japanese {
  margin: 0.3rem 0 0;
  color: var(--se-muted);
  line-height: 1.65;
}

.se-icon-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #c9d7ee;
  background: #ffffff;
  color: #0b5ed7;
}

.se-icon-btn:hover,
.se-icon-btn:focus,
.se-icon-btn.is-playing,
.se-btn.is-playing {
  border-color: #9fc1f3;
  background: #eaf3ff;
  color: #084298;
}

.se-phrase-grid,
.se-quiz-list,
.se-word-grid {
  display: grid;
  gap: 1rem;
}

.se-phrase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.se-phrase-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #fbfcfe;
}

.se-phrase-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  background: #eaf8f1;
  color: #0f6846;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.se-phrase-en {
  margin: 0;
  color: #16304d;
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.45;
}

.se-phrase-ja,
.se-phrase-note {
  margin: 0;
  color: var(--se-muted);
  line-height: 1.7;
}

.se-phrase-examples {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.se-phrase-examples span {
  display: block;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d9e5f3;
  border-radius: 8px;
  background: #ffffff;
  color: #1f334d;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.se-quiz-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.se-quiz-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
}

.se-quiz-card.is-correct {
  border-color: #9bd2bc;
  background: #f6fffa;
}

.se-quiz-card.is-incorrect {
  border-color: #efb1c4;
  background: #fff7fa;
}

.se-quiz-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.se-quiz-badge,
.se-quiz-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.se-quiz-badge {
  background: #eaf8f1;
  color: #0f6846;
}

.se-quiz-type {
  background: #f3f6fa;
  color: #536174;
}

.se-quiz-card h3 {
  margin: 0;
  color: var(--se-ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.45;
}

.se-quiz-prompt {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid #cddcf0;
  border-radius: 8px;
  background: #f8fbff;
  color: #152033;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.6;
}

.se-choice-grid {
  display: grid;
  gap: 0.55rem;
}

.se-choice {
  width: 100%;
  min-height: 44px;
  padding: 0.66rem 0.75rem;
  border: 1px solid #cfd9e8;
  background: #ffffff;
  color: #26364a;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
}

.se-text-choice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.se-choice-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #eef4fb;
  color: #1d426f;
  font-weight: 900;
  line-height: 1;
}

.se-choice-copy {
  min-width: 0;
}

.se-choice-en {
  display: block;
}

.se-ja-after-check {
  display: none;
  margin: 0.35rem 0 0;
  color: #5d697a;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.55;
}

.se-quiz-card.is-answered .se-ja-after-check {
  display: block;
}

.se-choice:hover,
.se-choice:focus {
  border-color: #9fc1f3;
  background: #f3f8ff;
}

.se-choice.is-selected {
  border-color: var(--se-blue);
  background: #eaf3ff;
  color: #0b4fab;
}

.se-choice.is-correct {
  border-color: #75bf9e;
  background: #e8f8f0;
  color: #0c5c3c;
}

.se-choice.is-incorrect {
  border-color: #df8ca8;
  background: #fff0f5;
  color: #8b1d43;
}

.se-feedback {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--se-muted);
  display: flex;
  gap: 0.65rem;
  line-height: 1.6;
}

.se-feedback:empty {
  display: none;
}

.se-feedback strong {
  color: var(--se-ink);
}

.se-feedback small {
  display: block;
  margin-top: 0.25rem;
  color: var(--se-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.se-feedback-lines {
  display: grid;
  gap: 0.45rem;
}

.se-feedback-lines span {
  display: block;
}

.se-feedback-icon {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  font-size: 1.05rem;
}

.se-feedback.is-correct {
  border-color: #9bd2bc;
  background: #f0fbf6;
}

.se-feedback.is-correct .se-feedback-icon {
  color: #11734f;
}

.se-feedback.is-incorrect {
  border-color: #efb1c4;
  background: #fff6fa;
}

.se-feedback.is-incorrect .se-feedback-icon {
  color: #a51f4e;
}

.se-word-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.se-flow-section {
  background: #fbfcfe;
}

.se-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.se-flow-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
}

.se-flow-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--se-blue);
  font-weight: 900;
}

.se-flow-card strong {
  color: var(--se-ink);
  font-size: 1.02rem;
  line-height: 1.35;
}

.se-flow-card p {
  margin: 0;
  color: var(--se-muted);
  line-height: 1.65;
}

.se-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.se-entry-card {
  display: grid;
  gap: 0.45rem;
  min-height: 148px;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.se-entry-card:hover,
.se-entry-card:focus {
  border-color: #abcaf5;
  background: #f8fbff;
  text-decoration: none;
}

.se-entry-card i {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--se-blue);
  font-size: 1.1rem;
}

.se-entry-card span {
  color: var(--se-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.se-entry-card strong {
  color: var(--se-ink);
  font-size: 1.08rem;
  line-height: 1.45;
}

.se-entry-card p {
  margin: 0;
  color: var(--se-muted);
  line-height: 1.65;
}

.se-story-card-grid {
  display: grid;
  gap: 1rem;
}

.se-story-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.se-story-thumb {
  min-height: 260px;
  background: #111827;
}

.se-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.se-story-thumb-note {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #10223c 0%, #1f4f72 52%, #16705a 100%);
  color: #ffffff;
}

.se-story-thumb-note i {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.7rem;
}

.se-story-thumb-note span {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.se-story-card-body {
  display: grid;
  gap: 1rem;
  align-content: center;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.se-story-card h3 {
  margin: 0;
  color: var(--se-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
}

.se-story-card p {
  margin: 0;
  color: var(--se-muted);
  line-height: 1.75;
}

.se-story-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.se-story-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.32rem 0.6rem;
  border: 1px solid #d7e3f2;
  border-radius: 999px;
  background: #fbfcfe;
  color: #30445f;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
}

.se-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.se-word-card {
  display: grid;
  gap: 0.25rem;
  min-height: 94px;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #fbfcfe;
  color: inherit;
  text-decoration: none;
}

.se-word-card:hover,
.se-word-card:focus {
  border-color: #afd3c0;
  background: #f5fff9;
  text-decoration: none;
}

.se-word-en {
  color: #15304d;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.25;
}

.se-word-ja {
  color: var(--se-muted);
  line-height: 1.45;
}

.se-next-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--se-line);
  border-radius: 8px;
  background: #f8fbff;
}

.se-next-panel h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.se-next-panel p {
  margin: 0.35rem 0 0;
  color: var(--se-muted);
  line-height: 1.65;
}

.se-related-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

@media (max-width: 1100px) {
  .se-quiz-list {
    grid-template-columns: 1fr;
  }

  .se-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .se-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .se-index-grid {
    grid-template-columns: 1fr;
  }

  .se-answer-guide-grid,
  .se-point-grid,
  .se-advanced-reading {
    grid-template-columns: 1fr;
  }

  .se-advanced-lead {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .se-lesson-header,
  .se-exam-hero,
  .se-story-intro,
  .se-listening-layout,
  .se-story-card {
    grid-template-columns: 1fr;
  }

  .se-hero-visual img {
    min-height: 280px;
  }

  .se-audio-panel {
    grid-template-columns: 1fr;
  }

  .se-audio-panel .se-btn,
  .se-speed-control {
    width: 100%;
  }

  .se-story-thumb {
    min-height: 220px;
  }

  .se-scene-frame {
    max-width: 420px;
    min-height: 0;
  }

  .se-related-actions {
    justify-content: stretch;
  }

  .se-related-actions .se-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .story-english-page {
    margin-inline: -0.5rem;
  }

  .se-line {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .se-speaker {
    grid-column: 1 / -1;
    justify-content: start;
    width: fit-content;
  }

  .se-line-body {
    min-width: 0;
  }

  .se-phrase-grid,
  .se-flow-grid,
  .se-word-grid {
    grid-template-columns: 1fr;
  }

  .se-number-choice-grid {
    grid-template-columns: repeat(3, 54px);
  }

  .se-number-choice-grid.se-four-choices {
    grid-template-columns: repeat(4, 54px);
  }

  .se-situation-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .se-next-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .se-next-panel .se-btn {
    width: 100%;
  }
}
