.toeic-part1 {
  --p1-ink: #17233a;
  --p1-muted: #5e6a7e;
  --p1-paper: #fffdf9;
  --p1-soft: #f4f7f4;
  --p1-line: #dce4df;
  --p1-green: #176b5b;
  --p1-green-dark: #0f5145;
  --p1-lime: #d9f29c;
  --p1-coral: #f37e65;
  --p1-coral-soft: #fff0eb;
  --p1-blue: #dfeafe;
  --p1-shadow: 0 24px 70px rgba(23, 35, 58, 0.12);
  color: var(--p1-ink);
  background: var(--p1-paper);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
  overflow-x: clip;
}

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

.toeic-part1 button,
.toeic-part1 input {
  font: inherit;
}

.toeic-part1 button,
.toeic-part1 a {
  -webkit-tap-highlight-color: transparent;
}

.p1-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.p1-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0 10px;
  color: var(--p1-muted);
  font-size: 0.82rem;
}

.p1-crumbs a {
  color: var(--p1-green-dark);
}

.p1-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  min-height: 560px;
  padding: 64px 0 62px;
}

.p1-hero::before {
  position: absolute;
  inset: 8% auto auto -28%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 242, 156, 0.5), rgba(217, 242, 156, 0));
  content: "";
  pointer-events: none;
}

.p1-eyebrow,
.p1-kicker,
.p1-label {
  margin: 0;
  color: var(--p1-green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.p1-pilot-badge {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(243, 126, 101, 0.45);
  border-radius: 999px;
  color: #a53c28;
  background: var(--p1-coral-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.p1-hero h1 {
  max-width: 720px;
  margin: 18px 0 22px;
  font-size: clamp(2.35rem, 5.5vw, 4.65rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.p1-hero__lead {
  max-width: 660px;
  margin: 0;
  color: var(--p1-muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.p1-hero__actions,
.p1-dashboard__actions,
.p1-result__actions,
.p1-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.p1-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.p1-action:hover {
  transform: translateY(-2px);
}

.p1-action--primary {
  color: #fff;
  background: var(--p1-green);
  box-shadow: 0 12px 28px rgba(23, 107, 91, 0.24);
}

.p1-action--primary:hover {
  color: #fff;
  background: var(--p1-green-dark);
}

.p1-action--accent {
  color: #572317;
  background: var(--p1-coral);
}

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

.p1-action:disabled {
  opacity: 0.46;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.p1-hero__visual {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(23, 107, 91, 0.18);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(223, 234, 254, 0.76)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(23, 107, 91, 0.03) 29px);
  box-shadow: var(--p1-shadow);
  overflow: hidden;
}

.p1-photo-mark {
  position: absolute;
  inset: 68px 54px 86px;
  border: 3px solid var(--p1-ink);
  border-radius: 24px;
  background: linear-gradient(#dff2ff 0 58%, #d8e7cb 58%);
  overflow: hidden;
}

.p1-photo-mark__sun {
  position: absolute;
  top: 28px;
  right: 30px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--p1-ink);
  border-radius: 50%;
  background: var(--p1-lime);
}

.p1-photo-mark__ground {
  position: absolute;
  right: -20px;
  bottom: 20px;
  left: -20px;
  height: 82px;
  border-radius: 50% 50% 0 0;
  background: #8ec8ae;
  transform: rotate(-4deg);
}

.p1-photo-mark__person {
  position: absolute;
  bottom: 28px;
  left: 46%;
  width: 38px;
  height: 92px;
  border: 3px solid var(--p1-ink);
  border-radius: 20px 20px 10px 10px;
  background: var(--p1-coral);
}

.p1-photo-mark__person::before {
  position: absolute;
  top: -34px;
  left: 3px;
  width: 27px;
  height: 27px;
  border: 3px solid var(--p1-ink);
  border-radius: 50%;
  background: #ffe4c6;
  content: "";
}

.p1-frame-mark {
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: var(--p1-green);
  border-style: solid;
  z-index: 2;
}

.p1-frame-mark--one {
  top: 42px;
  left: 30px;
  border-width: 5px 0 0 5px;
  border-radius: 12px 0 0;
}

.p1-frame-mark--two {
  right: 30px;
  bottom: 40px;
  border-width: 0 5px 5px 0;
  border-radius: 0 0 12px;
}

.p1-wave {
  position: absolute;
  right: 36px;
  bottom: 34px;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 5px;
}

.p1-wave i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: var(--p1-green);
}

.p1-wave i:nth-child(1),
.p1-wave i:nth-child(5) { height: 18px; }
.p1-wave i:nth-child(2),
.p1-wave i:nth-child(4) { height: 32px; }
.p1-wave i:nth-child(3) { height: 46px; }

.p1-choice-chip {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--p1-ink);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(23, 35, 58, 0.2);
}

.p1-choice-chip--a { top: 26px; right: 38px; transform: rotate(7deg); }
.p1-choice-chip--d { bottom: 26px; left: 34px; transform: rotate(-8deg); background: var(--p1-coral); }

.p1-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 76px;
  border: 1px solid var(--p1-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23, 35, 58, 0.07);
}

.p1-facts > div {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
}

.p1-facts > div + div {
  border-left: 1px solid var(--p1-line);
}

.p1-facts strong {
  font-size: 1.32rem;
}

.p1-facts span {
  color: var(--p1-muted);
  font-size: 0.86rem;
}

.p1-section {
  padding: 84px 0;
}

.p1-section--soft {
  background: var(--p1-soft);
}

.p1-section__head {
  max-width: 760px;
  margin-bottom: 36px;
}

.p1-section__head--light,
.p1-section__head--light .p1-kicker {
  color: #fff;
}

.p1-section__head h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.p1-section__head p:last-child {
  margin: 0;
  color: var(--p1-muted);
}

.p1-section__head--light p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.p1-flow,
.p1-skill-grid,
.p1-strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.p1-flow article,
.p1-skill-grid article,
.p1-strategy-grid article {
  padding: 28px;
  border: 1px solid var(--p1-line);
  border-radius: 22px;
  background: #fff;
}

.p1-flow article > span,
.p1-skill-grid article > span {
  color: var(--p1-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.p1-flow h3,
.p1-skill-grid h3,
.p1-strategy-grid h3 {
  margin: 10px 0 8px;
  font-size: 1.12rem;
}

.p1-flow p,
.p1-skill-grid p,
.p1-strategy-grid p {
  margin: 0;
  color: var(--p1-muted);
  font-size: 0.92rem;
}

.p1-practice {
  padding: 86px 0 100px;
  background:
    radial-gradient(circle at 90% 4%, rgba(217, 242, 156, 0.18), transparent 25%),
    var(--p1-ink);
}

.p1-app {
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.p1-app__notice {
  margin: 0;
  padding: 10px 22px;
  color: #fff;
  background: var(--p1-green);
  font-size: 0.86rem;
  text-align: center;
}

.p1-dashboard,
.p1-player,
.p1-result {
  padding: clamp(24px, 5vw, 54px);
}

.p1-dashboard__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.p1-progress-ring {
  --progress: 0;
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--p1-green) calc(var(--progress) * 1%), #e8eee9 0);
}

.p1-progress-ring::before {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.p1-progress-ring span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.p1-progress-ring strong {
  font-size: 1.9rem;
}

.p1-progress-ring small {
  color: var(--p1-muted);
}

.p1-dashboard__summary h3 {
  margin: 8px 0 4px;
  font-size: 1.35rem;
}

.p1-dashboard__summary p:last-child {
  margin: 0;
  color: var(--p1-muted);
}

.p1-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.p1-dashboard__stats > div {
  padding: 18px;
  border-radius: 16px;
  background: var(--p1-soft);
}

.p1-dashboard__stats span {
  display: block;
  color: var(--p1-muted);
  font-size: 0.8rem;
}

.p1-dashboard__stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.p1-mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
}

.p1-mode-picker legend {
  width: 100%;
  margin-bottom: 10px;
  font-weight: 800;
}

.p1-mode-picker label {
  position: relative;
  cursor: pointer;
}

.p1-mode-picker input {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--p1-green);
}

.p1-mode-picker label > span {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px 16px 50px;
  border: 2px solid var(--p1-line);
  border-radius: 17px;
  background: #fff;
}

.p1-mode-picker input:checked + span {
  border-color: var(--p1-green);
  background: #eff9f5;
}

.p1-mode-picker small {
  margin-top: 3px;
  color: var(--p1-muted);
}

.p1-set-launch {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--p1-line);
  border-radius: 18px;
}

.p1-set-launch h3,
.p1-set-launch p {
  margin: 0;
}

.p1-set-launch p {
  color: var(--p1-muted);
  font-size: 0.88rem;
}

.p1-set-launch__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p1-set-launch__buttons button,
.p1-reset {
  min-height: 44px;
  border: 1px solid var(--p1-line);
  border-radius: 12px;
  color: var(--p1-ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.p1-set-launch__buttons button {
  padding: 8px 14px;
}

.p1-reset {
  margin-top: 22px;
  padding: 8px 14px;
  color: #8d3423;
}

.p1-player__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.p1-player__top p,
.p1-player__top strong {
  margin: 0;
}

.p1-player__meter {
  height: 8px;
  border-radius: 999px;
  background: #e8eee9;
  overflow: hidden;
}

.p1-player__meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--p1-green);
  transition: width 180ms ease;
}

.p1-close {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--p1-line);
  border-radius: 12px;
  color: var(--p1-ink);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.p1-question-card {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--p1-line);
  border-radius: 24px;
  background: var(--p1-soft);
}

.p1-question-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.p1-type-badge,
.p1-level {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.p1-type-badge {
  color: var(--p1-green-dark);
  background: #dff4ec;
}

.p1-level {
  color: #514018;
  background: #f5e8bd;
}

.p1-photo {
  position: relative;
  margin: 0;
}

.p1-photo picture {
  display: block;
  border-radius: 18px;
  background: #dfe5e1;
  overflow: hidden;
}

.p1-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #dfe5e1;
}

.p1-photo__caption {
  margin-top: 6px;
  color: var(--p1-muted);
  font-size: 0.76rem;
}

.p1-hotspots {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 3 / 2;
  pointer-events: none;
}

.p1-hotspot {
  position: absolute;
  border: 3px solid var(--p1-coral);
  border-radius: 12px;
  background: rgba(243, 126, 101, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.p1-audio-stage {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px 18px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--p1-ink);
}

.p1-audio-stage__prompt {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.p1-listen {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 13px;
  color: var(--p1-ink);
  background: var(--p1-lime);
  font-weight: 900;
  cursor: pointer;
}

.p1-listen.is-playing {
  color: #fff;
  background: var(--p1-coral);
}

.p1-speed {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.p1-speed button {
    min-width: 54px;
    min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.p1-speed button[aria-pressed="true"] {
  color: var(--p1-ink);
  background: #fff;
}

.p1-audio-status {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.p1-answer-area {
  margin-top: 20px;
}

.p1-answer-area fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.p1-answer-area legend {
  margin-bottom: 12px;
  font-weight: 800;
}

.p1-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.p1-choices label {
  position: relative;
  cursor: pointer;
}

.p1-choices input {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 20px;
  height: 20px;
  accent-color: var(--p1-green);
}

.p1-choices label > span {
  display: grid;
  min-height: 70px;
  place-items: center;
  border: 2px solid var(--p1-line);
  border-radius: 14px;
  background: #fff;
  font-size: 1.42rem;
  font-weight: 900;
}

.p1-choices input:checked + span {
  border-color: var(--p1-green);
  background: #eaf8f2;
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.1);
}

.p1-choices input:disabled + span {
  color: #8d97a4;
  background: #f0f2f1;
  cursor: not-allowed;
}

.p1-submit {
  width: 100%;
  margin-top: 12px;
}

.p1-support {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.p1-support button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  color: var(--p1-green-dark);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.p1-support-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e7c9bf;
  border-radius: 14px;
  background: var(--p1-coral-soft);
}

.p1-support-panel p,
.p1-support-panel ol {
  margin: 0;
}

.p1-support-panel ol {
  margin-top: 8px;
  padding-left: 26px;
}

.p1-feedback {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 36px);
  border: 2px solid #bfe2d4;
  border-radius: 24px;
  background: #f1faf6;
}

.p1-feedback.is-wrong {
  border-color: #f0c5ba;
  background: #fff6f3;
}

.p1-feedback__result {
  display: flex;
  gap: 14px;
  align-items: center;
}

.p1-feedback__result > span {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--p1-green);
  font-size: 1.5rem;
  font-weight: 900;
}

.p1-feedback.is-wrong .p1-feedback__result > span {
  background: var(--p1-coral);
}

.p1-feedback__result p,
.p1-feedback__result h3 {
  margin: 0;
}

.p1-feedback__result p {
  color: var(--p1-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.p1-evidence,
.p1-statement-breakdown,
.p1-transcript {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
}

.p1-evidence ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.p1-breakdown__en {
  margin: 4px 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.p1-breakdown__chunks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p1-breakdown__chunks span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--p1-green-dark);
  background: #e5f5ef;
  font-size: 0.8rem;
}

.p1-transcript-choice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--p1-line);
}

.p1-transcript-choice:first-child {
  border-top: 0;
}

.p1-transcript-choice__letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--p1-ink);
  font-weight: 900;
}

.p1-transcript-choice.is-correct .p1-transcript-choice__letter {
  background: var(--p1-green);
}

.p1-transcript-choice.is-selected:not(.is-correct) .p1-transcript-choice__letter {
  background: var(--p1-coral);
}

.p1-transcript-choice p {
  margin: 0;
}

.p1-transcript-choice__en {
  font-weight: 800;
}

.p1-transcript-choice__ja,
.p1-transcript-choice__why {
  color: var(--p1-muted);
  font-size: 0.86rem;
}

.p1-transcript-choice button {
  align-self: start;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--p1-line);
  border-radius: 10px;
  color: var(--p1-green-dark);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.p1-result__hero {
  display: flex;
  gap: 22px;
  align-items: center;
}

.p1-score {
  display: flex;
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: center;
  padding-top: 22px;
  border-radius: 30px;
  color: #fff;
  background: var(--p1-green);
}

.p1-score strong {
  font-size: 2.7rem;
  line-height: 1;
}

.p1-result__hero h3,
.p1-result__hero p {
  margin: 0;
}

.p1-result__skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.p1-result__skills > div {
  padding: 14px;
  border-radius: 13px;
  background: var(--p1-soft);
}

.p1-result__skills span {
  display: block;
  color: var(--p1-muted);
  font-size: 0.78rem;
}

.p1-result__skills strong {
  display: block;
  margin-top: 2px;
}

.p1-result__review {
  margin-top: 24px;
}

.p1-result-review-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--p1-line);
  border-radius: 15px;
}

.p1-result-review-card summary {
  cursor: pointer;
  font-weight: 800;
}

.p1-result-review-card p {
  margin: 8px 0 0;
}

.p1-skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p1-strategy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p1-boundary {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--p1-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--p1-shadow);
}

.p1-boundary h2 {
  margin: 8px 0 10px;
}

.p1-boundary p {
  color: var(--p1-muted);
}

.p1-boundary__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.p1-boundary__notes p {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--p1-soft);
}

.p1-boundary__notes strong,
.p1-boundary__notes span {
  display: block;
}

.p1-boundary__notes strong {
  color: var(--p1-ink);
}

.p1-next {
  padding-top: 40px;
}

.p1-next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.p1-next-grid a {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--p1-line);
  border-radius: 18px;
  color: var(--p1-ink);
  background: #fff;
  text-decoration: none;
}

.p1-next-grid a:hover {
  border-color: var(--p1-green);
}

.p1-next-grid span {
  margin-top: 4px;
  color: var(--p1-muted);
  font-size: 0.86rem;
}

.p1-trademark {
  padding: 24px 0 36px;
  color: var(--p1-muted);
  background: var(--p1-soft);
  font-size: 0.78rem;
}

.p1-trademark p {
  margin: 0;
}

.p1-noscript {
  margin: 0;
  padding: 20px;
  color: #8d3423;
  background: var(--p1-coral-soft);
}

.toeic-part1 [hidden] {
  display: none !important;
}

.toeic-part1 button:focus-visible,
.toeic-part1 a:focus-visible,
.toeic-part1 input:focus-visible,
.p1-feedback:focus-visible {
  outline: 3px solid #ffbd45;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .p1-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .p1-hero__visual {
    min-height: 330px;
  }

  .p1-flow,
  .p1-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p1-strategy-grid,
  .p1-next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p1-audio-stage {
    grid-template-columns: 1fr auto;
  }

  .p1-speed {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .p1-shell {
    width: min(100% - 24px, 1160px);
  }

  .p1-hero {
    padding: 42px 0;
  }

  .p1-hero h1 {
    font-size: clamp(2.05rem, 12vw, 3.2rem);
  }

  .p1-hero__visual {
    min-height: 280px;
    border-radius: 24px;
  }

  .p1-photo-mark {
    inset: 48px 36px 64px;
  }

  .p1-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p1-facts > div {
    min-height: 92px;
    padding: 16px;
  }

  .p1-facts > div + div {
    border-left: 0;
  }

  .p1-facts > div:nth-child(even) {
    border-left: 1px solid var(--p1-line);
  }

  .p1-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--p1-line);
  }

  .p1-section,
  .p1-practice {
    padding: 62px 0;
  }

  .p1-flow,
  .p1-skill-grid,
  .p1-strategy-grid,
  .p1-next-grid,
  .p1-dashboard__stats,
  .p1-result__skills,
  .p1-boundary__notes {
    grid-template-columns: 1fr;
  }

  .p1-dashboard__summary {
    grid-template-columns: 1fr;
  }

  .p1-mode-picker {
    grid-template-columns: 1fr;
  }

  .p1-set-launch {
    grid-template-columns: 1fr;
  }

  .p1-player__top {
    grid-template-columns: 1fr auto;
  }

  .p1-player__meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .p1-audio-stage {
    grid-template-columns: 1fr;
  }

  .p1-listen {
    width: 100%;
    justify-content: center;
  }

  .p1-speed {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .p1-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p1-transcript-choice {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .p1-transcript-choice button {
    grid-column: 2;
    justify-self: start;
  }

  .p1-result__hero {
    align-items: flex-start;
  }

  .p1-score {
    width: 90px;
    height: 90px;
    padding-top: 17px;
  }

  .p1-score strong {
    font-size: 2.1rem;
  }
}

@media (max-width: 360px) {
  .p1-shell {
    width: min(100% - 16px, 1160px);
  }

  .p1-dashboard,
  .p1-player,
  .p1-result {
    padding: 16px;
  }

  .p1-question-card {
    padding: 12px;
  }

  .p1-hero__actions,
  .p1-dashboard__actions,
  .p1-result__actions,
  .p1-feedback__actions {
    flex-direction: column;
  }

  .p1-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toeic-part1 *,
  .toeic-part1 *::before,
  .toeic-part1 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
