:root {
  --p5x-ink: #10243a;
  --p5x-muted: #5c6c7e;
  --p5x-line: #d9e3ec;
  --p5x-paper: #ffffff;
  --p5x-soft: #f3f7fa;
  --p5x-navy: #0c2945;
  --p5x-blue: #2b67e8;
  --p5x-blue-deep: #194cb5;
  --p5x-teal: #087f7c;
  --p5x-teal-bright: #15a5a0;
  --p5x-amber: #e3a124;
  --p5x-coral: #c94f52;
  --p5x-green: #187b55;
  --p5x-shadow: 0 22px 55px rgba(8, 32, 55, .1);
}

html.p5x-scroll-reset { scroll-behavior: auto !important; }

.p5x-page {
  overflow-anchor: none;
  color: var(--p5x-ink);
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
}

.p5x-page *, .p5x-page *::before, .p5x-page *::after { box-sizing: border-box; }
.p5x-page [hidden] { display: none !important; }
.p5x-page button, .p5x-page a, .p5x-page input { -webkit-tap-highlight-color: transparent; }
.p5x-page button { font: inherit; }
.p5x-page a { color: inherit; }
.p5x-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.p5x-label, .p5x-kicker, .p5x-eyebrow {
  margin: 0;
  color: var(--p5x-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.p5x-preview-bar {
  color: #dff9f5;
  background: #071c2f;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.p5x-preview-bar .p5x-shell {
  display: flex;
  min-height: 44px;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding-block: 8px;
  font-size: 12px;
  text-align: center;
}

.p5x-preview-bar strong {
  padding: 3px 9px;
  border: 1px solid rgba(110, 229, 215, .5);
  border-radius: 999px;
  color: #a5eee6;
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.p5x-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 2px 15px;
  color: #6b7887;
  font-size: 13px;
}

.p5x-crumbs a { text-decoration: none; }
.p5x-crumbs a:hover { color: var(--p5x-blue); text-decoration: underline; }

.p5x-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: 62px;
  align-items: center;
  min-height: 520px;
  padding: 68px 72px;
  overflow: hidden;
  border: 1px solid #d2dfeb;
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 12%, rgba(42, 128, 181, .18), transparent 31%),
    radial-gradient(circle at 69% 92%, rgba(18, 165, 158, .15), transparent 26%),
    linear-gradient(138deg, #f8fbff 0%, #eef6fb 54%, #f8f7ed 100%);
  box-shadow: 0 14px 42px rgba(20, 48, 77, .06);
}

.p5x-hero::before {
  position: absolute;
  right: -170px;
  bottom: -220px;
  width: 530px;
  height: 530px;
  border: 1px solid rgba(20, 103, 172, .13);
  border-radius: 50%;
  content: "";
}

.p5x-hero__copy, .p5x-hero__visual { position: relative; z-index: 1; min-width: 0; }
.p5x-hero h1 {
  margin: 14px 0 20px;
  max-width: 720px;
  color: #102942;
  font-size: clamp(35px, 4.25vw, 57px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.28;
}

.p5x-hero h1 em { color: var(--p5x-teal); font-style: normal; }
.p5x-hero__lead { max-width: 720px; margin: 0; color: #45596d; font-size: 16px; line-height: 1.95; }
.p5x-hero__actions, .p5x-dashboard__actions, .p5x-feedback__actions, .p5x-result__actions, .p5x-exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 27px;
}

.p5x-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.p5x-action:hover:not(:disabled) { transform: translateY(-2px); }
.p5x-action:disabled { opacity: .46; cursor: not-allowed; }
.p5x-action--primary { color: #fff; background: linear-gradient(135deg, var(--p5x-blue-deep), var(--p5x-blue)); box-shadow: 0 11px 24px rgba(36, 92, 206, .22); }
.p5x-action--accent { color: #fff; background: linear-gradient(135deg, #08736f, #12a29c); box-shadow: 0 11px 24px rgba(8, 127, 124, .2); }
.p5x-action--quiet { color: #143b61; border-color: #bcd0e1; background: rgba(255, 255, 255, .9); }

.p5x-page button:focus-visible, .p5x-page a:focus-visible, .p5x-page input:focus-visible + .p5x-choice__letter, .p5x-choice:focus-within {
  outline: 3px solid #f5b83b;
  outline-offset: 3px;
}

.p5x-hero__status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 650px;
  margin: 32px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d2dee8;
  border-radius: 15px;
  background: #d2dee8;
  list-style: none;
}

.p5x-hero__status li { padding: 12px 15px; background: rgba(255, 255, 255, .84); }
.p5x-hero__status span, .p5x-hero__status strong { display: block; }
.p5x-hero__status span { color: #7b8996; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.p5x-hero__status strong { margin-top: 2px; color: #1c3d5c; font-size: 12px; }

.p5x-hero__visual { min-height: 345px; }
.p5x-demo-card {
  position: absolute;
  top: 4px;
  left: 2px;
  width: min(100%, 390px);
  min-height: 250px;
  padding: 28px;
  border: 1px solid #c9d7e3;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(15, 45, 73, .17);
  transform: rotate(-2.2deg);
}

.p5x-demo-card__top { display: flex; align-items: center; justify-content: space-between; color: #6c7c8d; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.p5x-demo-card__top b { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #fff; background: var(--p5x-blue); font-size: 12px; }
.p5x-demo-card > p { margin: 27px 0 22px; color: #152c44; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700; line-height: 1.55; }
.p5x-demo-card mark { padding: 2px 5px; border-radius: 5px; color: #086b68; background: #dff5f1; }
.p5x-demo-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.p5x-demo-options i { display: grid; height: 44px; place-items: center; border: 1px solid #d7e1e9; border-radius: 11px; color: #627386; background: #f7fafc; font-style: normal; font-weight: 900; }
.p5x-demo-options i.is-active { color: #fff; border-color: var(--p5x-teal); background: var(--p5x-teal); box-shadow: 0 8px 18px rgba(8, 127, 124, .2); }
.p5x-demo-feedback {
  position: absolute;
  right: -10px;
  bottom: 3px;
  width: min(92%, 330px);
  padding: 19px 22px;
  border: 1px solid #b7d8d3;
  border-radius: 17px;
  color: #164b4c;
  background: #effaf7;
  box-shadow: 0 20px 40px rgba(20, 60, 70, .12);
  transform: rotate(2deg);
}
.p5x-demo-feedback span, .p5x-demo-feedback strong { display: block; }
.p5x-demo-feedback span { color: var(--p5x-teal); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.p5x-demo-feedback strong { margin-top: 3px; font-size: 13px; }
.p5x-demo-feedback div { display: grid; gap: 6px; margin-top: 13px; }
.p5x-demo-feedback i { display: block; height: 5px; border-radius: 10px; background: #c7e4df; }
.p5x-demo-feedback i:nth-child(2) { width: 81%; }
.p5x-demo-feedback i:nth-child(3) { width: 63%; }

.p5x-foundation { padding: 92px 0; }
.p5x-section-head { max-width: 780px; margin-bottom: 34px; }
.p5x-section-head h2 { margin: 8px 0 12px; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.025em; line-height: 1.4; }
.p5x-section-head > p:last-child { margin: 0; color: var(--p5x-muted); font-size: 16px; }
.p5x-foundation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p5x-foundation-grid article {
  position: relative;
  min-height: 220px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--p5x-line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 47, 74, .055);
}
.p5x-foundation-grid article::after { position: absolute; right: -12px; bottom: -35px; color: #f1f5f8; content: attr(data-step); font-size: 110px; font-weight: 900; line-height: 1; }
.p5x-foundation-grid span { color: var(--p5x-teal); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.p5x-foundation-grid h3 { margin: 12px 0 8px; font-size: 21px; }
.p5x-foundation-grid p { position: relative; z-index: 1; margin: 0; color: var(--p5x-muted); font-size: 14px; }

.p5x-practice {
  position: relative;
  padding: 92px 0 104px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(25, 110, 157, .25), transparent 25%),
    radial-gradient(circle at 92% 90%, rgba(11, 139, 128, .18), transparent 25%),
    #081f34;
}

.p5x-section-head--light .p5x-kicker { color: #79d9d1; }
.p5x-section-head--light h2 { color: #fff; }
.p5x-section-head--light > p:last-child { color: #c9d8e5; }
.p5x-app { position: relative; min-height: 320px; padding: 30px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 29px; background: #f7fafc; box-shadow: 0 34px 70px rgba(0, 0, 0, .24); }
.p5x-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.p5x-notice {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #c4d4e2;
  border-radius: 15px;
  background: #fff;
}
.p5x-notice strong, .p5x-notice span { display: block; }
.p5x-notice strong { font-size: 14px; }
.p5x-notice span { margin-top: 2px; color: #53677b; font-size: 12px; }
.p5x-notice--error { border-color: #e7b4b6; background: #fff5f5; }
.p5x-notice--warning { border-color: #ecd499; background: #fffaf0; }
.p5x-notice--info { border-color: #a9d8d3; background: #f0faf8; }

.p5x-dashboard { padding: 8px; }
.p5x-dashboard__lead {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px 24px 29px;
}
.p5x-progress-ring {
  position: relative;
  display: grid;
  width: 144px;
  height: 144px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--p5x-teal) calc(var(--p5-progress) * 1%), #dce7ee 0);
}
.p5x-progress-ring::before { position: absolute; width: 112px; height: 112px; border-radius: 50%; background: #fff; content: ""; }
.p5x-progress-ring > span { position: relative; z-index: 1; text-align: center; }
.p5x-progress-ring strong { display: block; color: var(--p5x-navy); font-size: 38px; line-height: 1; }
.p5x-progress-ring small { display: block; margin-top: 7px; color: #6a7c8c; font-size: 12px; }
.p5x-dashboard__lead h3 { margin: 6px 0 8px; font-size: clamp(23px, 2.5vw, 32px); line-height: 1.45; }
.p5x-dashboard__lead p:last-child { max-width: 720px; margin: 0; color: var(--p5x-muted); font-size: 14px; }
.p5x-dashboard__stats { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--p5x-line); border-radius: 17px; background: #fff; }
.p5x-dashboard__stats div { padding: 18px 22px; border-right: 1px solid var(--p5x-line); }
.p5x-dashboard__stats div:last-child { border-right: 0; }
.p5x-dashboard__stats span, .p5x-dashboard__stats strong { display: block; }
.p5x-dashboard__stats span { color: #708091; font-size: 11px; font-weight: 700; }
.p5x-dashboard__stats strong { margin-top: 3px; color: var(--p5x-navy); font-size: 21px; }

.p5x-mode-picker {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) repeat(2, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 24px;
}
.p5x-mode-picker__intro { padding: 17px 7px; }
.p5x-mode-picker__intro h3 { margin: 5px 0 0; font-size: 18px; }
.p5x-mode-picker button {
  position: relative;
  display: grid;
  min-height: 104px;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-content: center;
  padding: 18px;
  border: 1px solid #cad8e4;
  border-radius: 16px;
  color: var(--p5x-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.p5x-mode-picker button[aria-pressed="true"] { color: #fff; border-color: var(--p5x-navy); background: linear-gradient(140deg, #0b3456, #17547c); box-shadow: 0 13px 27px rgba(8, 44, 73, .18); }
.p5x-mode-picker__icon { display: grid; width: 40px; height: 40px; grid-row: 1 / 3; place-items: center; border: 1px solid #cbd9e5; border-radius: 12px; color: var(--p5x-blue); background: #f3f7fb; font-size: 11px; font-weight: 900; }
.p5x-mode-picker button[aria-pressed="true"] .p5x-mode-picker__icon { color: #a9eee7; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .09); }
.p5x-mode-picker button strong { align-self: end; font-size: 15px; }
.p5x-mode-picker button small { color: #68798b; font-size: 11px; line-height: 1.5; }
.p5x-mode-picker button[aria-pressed="true"] small { color: #d5e7f2; }
.p5x-dashboard__actions { padding-top: 2px; }
.p5x-contract-note { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 23px; padding: 14px 17px; border: 1px dashed #b8cad9; border-radius: 13px; color: #52677a; background: #edf3f7; font-size: 11px; }
.p5x-contract-note span { color: var(--p5x-blue); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.p5x-contract-note p { margin: 0; }
.p5x-contract-note b { color: #a54d4f; }
.p5x-reset { display: block; min-height: 44px; margin: 18px auto 0; padding: 8px 15px; border: 0; color: #6d7780; background: transparent; font-size: 12px; text-decoration: underline; cursor: pointer; }

.p5x-player { padding: 4px; }
.p5x-player__top { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 14px 16px 17px; }
.p5x-player__top > div:first-child { display: flex; gap: 12px; align-items: center; }
.p5x-player__top > div:first-child strong { color: var(--p5x-navy); font-size: 16px; }
.p5x-player__mode { padding: 7px 12px; border-radius: 999px; color: #126763; background: #e4f5f2; font-size: 11px; font-weight: 800; }
.p5x-player__exit { min-height: 44px; padding: 8px 13px; border: 1px solid #cad6e0; border-radius: 11px; color: #4a6175; background: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.p5x-meter { height: 6px; overflow: hidden; border-radius: 999px; background: #dce6ed; }
.p5x-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--p5x-blue), var(--p5x-teal-bright)); transition: width .22s ease; }

.p5x-question-card {
  margin-top: 20px;
  padding: clamp(25px, 4vw, 45px);
  overflow: visible;
  border: 1px solid #ccd9e4;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 45, 72, .07);
}
.p5x-question-meta { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-bottom: 4px; }
.p5x-question-meta span, .p5x-question-meta b { padding: 5px 9px; border-radius: 999px; font-size: 9px; letter-spacing: .09em; }
.p5x-question-meta span { color: #086d69; background: #e3f5f2; }
.p5x-question-meta b { color: #637485; background: #edf2f6; }
.p5x-question-card h3 { scroll-margin-top: 24px; margin: 12px 0 21px; color: #112c46; font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.7; overflow-wrap: anywhere; }
.p5x-hint-control { margin-bottom: 19px; }
.p5x-hint-control button { min-height: 44px; padding: 8px 12px; border: 1px solid #c5d6e3; border-radius: 10px; color: #315b7f; background: #f8fbfd; font-size: 12px; font-weight: 750; cursor: pointer; }
.p5x-hint-control p { margin: 10px 0 0; padding: 11px 14px; border-left: 3px solid var(--p5x-amber); border-radius: 0 9px 9px 0; color: #604e2d; background: #fff8e8; font-size: 13px; }
.p5x-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p5x-choice {
  position: relative;
  display: grid;
  min-height: 64px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #cbd8e3;
  border-radius: 14px;
  color: #17324d;
  background: #fbfcfd;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.p5x-choice:hover { border-color: #7eacd7; background: #f5faff; transform: translateY(-1px); }
.p5x-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.p5x-choice__letter { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #c7d5e1; border-radius: 11px; color: #345d7f; background: #fff; font-size: 12px; font-weight: 900; }
.p5x-choice > span:nth-of-type(2) { min-width: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.p5x-choice__mark { color: #637688; font-size: 10px; font-weight: 900; white-space: nowrap; }
.p5x-choice.is-selected { border-color: #4b7fdc; background: #eef4ff; box-shadow: inset 0 0 0 1px #4b7fdc; }
.p5x-choice.is-selected .p5x-choice__letter { color: #fff; border-color: var(--p5x-blue); background: var(--p5x-blue); }
.p5x-choice.is-correct { border-color: #55a283; background: #ecf8f2; box-shadow: inset 0 0 0 1px #55a283; }
.p5x-choice.is-correct .p5x-choice__letter { color: #fff; border-color: var(--p5x-green); background: var(--p5x-green); }
.p5x-choice.is-wrong { border-color: #d37b7c; background: #fff0f0; box-shadow: inset 0 0 0 1px #d37b7c; }
.p5x-choice.is-wrong .p5x-choice__letter { color: #fff; border-color: var(--p5x-coral); background: var(--p5x-coral); }
.p5x-choice:has(input:disabled) { cursor: default; }
.p5x-exam-actions { justify-content: space-between; padding-top: 6px; }

.p5x-feedback {
  scroll-margin-top: 24px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #b9d5d1;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(10, 54, 64, .08);
}
.p5x-feedback[data-outcome="correct"] { border-top: 6px solid var(--p5x-green); }
.p5x-feedback[data-outcome="wrong"] { border-top: 6px solid var(--p5x-coral); }
.p5x-feedback__head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.p5x-feedback__head h3 { scroll-margin-top: 24px; margin: 6px 0 0; color: #173d52; font-size: clamp(23px, 3vw, 32px); line-height: 1.35; }
.p5x-feedback__head h3 span, .p5x-feedback__head h3 small { display: block; }
.p5x-feedback__head h3 small { margin-top: 7px; color: #546a79; font-size: 13px; font-weight: 700; }
.p5x-feedback__skill { padding: 7px 10px; border-radius: 999px; color: #687989; background: #edf2f5; font-size: 9px; white-space: nowrap; }
.p5x-completed { margin-top: 26px; padding: 20px 22px; border-left: 4px solid var(--p5x-teal); border-radius: 0 13px 13px 0; background: #eef8f7; }
.p5x-completed span, .p5x-reason-grid article > span, .p5x-selected-reason > span, .p5x-translation > span, .p5x-trap > span { color: #588078; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.p5x-completed p { margin: 5px 0 0; color: #15384b; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.p5x-reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 17px; }
.p5x-reason-grid article, .p5x-selected-reason, .p5x-translation, .p5x-trap { padding: 18px; border: 1px solid #d8e2e9; border-radius: 14px; background: #fbfcfd; }
.p5x-reason-grid strong { display: block; margin: 6px 0 4px; color: #244b65; font-family: Georgia, "Times New Roman", serif; font-size: 17px; overflow-wrap: anywhere; }
.p5x-reason-grid p, .p5x-selected-reason p, .p5x-translation p, .p5x-trap p { margin: 5px 0 0; color: #526678; font-size: 13px; }
.p5x-selected-reason { margin-top: 13px; }
.p5x-choice-comparison { margin-top: 15px; border: 1px solid #d1dee7; border-radius: 15px; background: #fff; }
.p5x-choice-comparison summary { min-height: 48px; padding: 12px 17px; color: #254f6f; font-size: 13px; font-weight: 850; cursor: pointer; }
.p5x-choice-comparison > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 14px 14px; }
.p5x-choice-reason { padding: 14px; border: 1px solid #dce4ea; border-radius: 12px; background: #f9fbfc; }
.p5x-choice-reason.is-correct { border-color: #a8d1bf; background: #f0f9f5; }
.p5x-choice-reason.is-selected:not(.is-correct) { border-color: #e1b0b1; background: #fff5f5; }
.p5x-choice-reason h5 { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 0; color: #1f405a; font-family: Georgia, "Times New Roman", serif; font-size: 15px; overflow-wrap: anywhere; }
.p5x-choice-reason h5 span { padding: 3px 6px; border-radius: 999px; color: #486a7e; background: #e8eff3; font-family: "Noto Sans JP", "Yu Gothic", sans-serif; font-size: 8px; white-space: nowrap; }
.p5x-choice-reason p { margin: 4px 0 0; color: #566978; font-size: 11px; }
.p5x-choice-reason .p5x-choice-reason__ja { color: #1d6e69; font-size: 10px; font-weight: 750; }
.p5x-translation, .p5x-trap { margin-top: 13px; }
.p5x-trap { border-color: #ead8ac; background: #fffaf0; }
.p5x-feedback__actions { justify-content: space-between; }

.p5x-result { padding: clamp(26px, 5vw, 58px); text-align: center; }
.p5x-result h3 { display: flex; gap: 10px; align-items: baseline; justify-content: center; margin: 8px 0 2px; color: var(--p5x-navy); }
.p5x-result h3 strong { scroll-margin-top: 24px; font-size: clamp(54px, 8vw, 84px); line-height: 1; }
.p5x-result h3 span { color: #617487; font-size: 19px; }
.p5x-result__meta { display: flex; gap: 9px; justify-content: center; margin-top: 14px; }
.p5x-result__meta span { padding: 6px 11px; border-radius: 999px; color: #176d69; background: #e4f5f2; font-size: 11px; font-weight: 800; }
.p5x-result__copy { max-width: 680px; margin: 20px auto 0; color: #526779; font-size: 14px; }
.p5x-result__review { display: grid; gap: 9px; max-width: 740px; margin: 25px auto 0; text-align: left; }
.p5x-result__review > p, .p5x-result__review article { margin: 0; padding: 14px 17px; border: 1px solid #d7e1e8; border-radius: 12px; background: #fff; }
.p5x-result__review h4 { margin: 0; color: #244a66; font-size: 13px; }
.p5x-result__review p { margin: 3px 0 0; color: #667888; font-size: 11px; }
.p5x-result__actions { justify-content: center; }
.p5x-noscript { margin: 0; padding: 20px; border-radius: 12px; color: #7c401f; background: #fff2df; text-align: center; }

.p5x-boundary { padding: 90px 0; background: #f2f6f8; }
.p5x-boundary__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 70px; align-items: center; }
.p5x-boundary h2 { margin: 7px 0 11px; font-size: clamp(27px, 3vw, 39px); }
.p5x-boundary p { margin: 0; color: var(--p5x-muted); }
.p5x-boundary dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.p5x-boundary dl div { padding: 17px; border: 1px solid #d6e0e7; border-radius: 13px; background: #fff; }
.p5x-boundary dt { color: #71808e; font-size: 10px; font-weight: 750; }
.p5x-boundary dd { margin: 4px 0 0; color: #244761; font-size: 14px; font-weight: 850; }

@media (max-width: 960px) {
  .p5x-hero { grid-template-columns: 1fr; gap: 35px; padding: 54px; }
  .p5x-hero__visual { width: min(100%, 540px); min-height: 345px; margin-inline: auto; }
  .p5x-foundation-grid { grid-template-columns: 1fr; }
  .p5x-foundation-grid article { min-height: auto; }
  .p5x-mode-picker { grid-template-columns: repeat(2, 1fr); }
  .p5x-mode-picker__intro { grid-column: 1 / -1; padding-bottom: 2px; }
  .p5x-boundary__grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .p5x-shell { width: min(100% - 28px, 1180px); }
  .p5x-preview-bar .p5x-shell { flex-direction: column; gap: 4px; padding-block: 9px; }
  .p5x-hero { padding: 34px 28px; border-radius: 24px; }
  .p5x-hero__status { grid-template-columns: 1fr; }
  .p5x-hero__status li { display: flex; align-items: center; justify-content: space-between; }
  .p5x-foundation, .p5x-practice, .p5x-boundary { padding-block: 68px; }
  .p5x-app { padding: 15px; border-radius: 21px; }
  .p5x-dashboard { padding: 1px; }
  .p5x-dashboard__lead { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px 10px 23px; }
  .p5x-progress-ring { width: 104px; height: 104px; }
  .p5x-progress-ring::before { width: 80px; height: 80px; }
  .p5x-progress-ring strong { font-size: 28px; }
  .p5x-dashboard__stats { grid-template-columns: repeat(2, 1fr); }
  .p5x-dashboard__stats div { border-bottom: 1px solid var(--p5x-line); }
  .p5x-dashboard__stats div:nth-child(2n) { border-right: 0; }
  .p5x-dashboard__stats div:nth-last-child(-n + 2) { border-bottom: 0; }
  .p5x-mode-picker { grid-template-columns: 1fr; }
  .p5x-mode-picker__intro { grid-column: auto; }
  .p5x-dashboard__actions .p5x-action, .p5x-feedback__actions .p5x-action, .p5x-result__actions .p5x-action { width: 100%; }
  .p5x-contract-note { grid-template-columns: 1fr; gap: 4px; }
  .p5x-player__top { grid-template-columns: 1fr auto; gap: 10px; }
  .p5x-player__mode { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .p5x-player__exit { grid-column: 2; grid-row: 1; }
  .p5x-choices, .p5x-reason-grid, .p5x-choice-comparison > div { grid-template-columns: 1fr; }
  .p5x-feedback__head { display: block; }
  .p5x-feedback__skill { display: inline-block; margin-top: 12px; white-space: normal; }
  .p5x-feedback__actions { flex-direction: column-reverse; }
  .p5x-boundary dl { grid-template-columns: 1fr; }
  .p5x-notice { display: grid; }
}

@media (max-width: 420px) {
  .p5x-shell { width: min(100% - 20px, 1180px); }
  .p5x-crumbs { padding-top: 16px; }
  .p5x-hero { padding: 27px 20px; }
  .p5x-hero h1 { font-size: 31px; }
  .p5x-hero__lead { font-size: 14px; }
  .p5x-hero__actions .p5x-action { width: 100%; }
  .p5x-hero__visual { min-height: 305px; }
  .p5x-demo-card { padding: 20px; }
  .p5x-demo-card > p { font-size: 19px; }
  .p5x-demo-feedback { right: -3px; }
  .p5x-section-head h2 { font-size: 27px; }
  .p5x-foundation-grid article { padding: 24px; }
  .p5x-app { padding: 10px; }
  .p5x-dashboard__lead { grid-template-columns: 1fr; text-align: center; }
  .p5x-progress-ring { margin-inline: auto; }
  .p5x-dashboard__stats div { padding: 14px; }
  .p5x-question-card, .p5x-feedback { padding: 20px 16px; border-radius: 17px; }
  .p5x-question-meta { justify-content: space-between; }
  .p5x-question-card h3 { font-size: 21px; }
  .p5x-choice { min-height: 60px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; }
  .p5x-choice__letter { width: 36px; height: 36px; }
  .p5x-choice > span:nth-of-type(2) { font-size: 16px; }
  .p5x-exam-actions { display: grid; grid-template-columns: 1fr; }
  .p5x-exam-actions .p5x-action { width: 100%; }
  .p5x-result__meta { flex-direction: column; align-items: center; }
}

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