.p7-page {
  --p7-ink: #102a43;
  --p7-muted: #536779;
  --p7-line: #d8e3ea;
  --p7-paper: #ffffff;
  --p7-soft: #f4f8fa;
  --p7-navy: #123f5a;
  --p7-teal: #087f7a;
  --p7-teal-dark: #05645f;
  --p7-teal-soft: #e7f6f3;
  --p7-blue-soft: #eaf2f8;
  --p7-gold: #c98624;
  --p7-gold-soft: #fff5df;
  --p7-coral: #c34e42;
  --p7-coral-soft: #fff0ed;
  --p7-green: #237a57;
  --p7-green-soft: #e8f6ef;
  --p7-shadow: 0 18px 55px rgba(27, 61, 78, .09);
  color: var(--p7-ink);
  background:
    radial-gradient(circle at 10% 0, rgba(8, 127, 122, .06), transparent 26rem),
    #fff;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  overflow: visible;
}

.p7-page *,
.p7-page *::before,
.p7-page *::after { box-sizing: border-box; }
.p7-page [hidden] { display: none !important; }
.p7-page button,
.p7-page a { -webkit-tap-highlight-color: transparent; }
.p7-page button { font: inherit; }
.p7-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.p7-crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 2px 12px;
  color: #6b7e8d;
  font-size: 12px;
  font-weight: 700;
}
.p7-crumbs a { color: #446273; text-decoration: none; }
.p7-crumbs a:hover { color: var(--p7-teal); text-decoration: underline; }

.p7-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
  align-items: center;
  min-height: 430px;
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid #cfe0e7;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .98), rgba(241, 249, 249, .92)),
    #fff;
  box-shadow: var(--p7-shadow);
  isolation: isolate;
  overflow: hidden;
}
.p7-hero::before {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -125px;
  top: -150px;
  border-radius: 50%;
  background: rgba(8, 127, 122, .08);
  content: "";
}
.p7-hero::after {
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  right: 24%;
  bottom: -170px;
  border-radius: 50%;
  background: rgba(201, 134, 36, .09);
  content: "";
}
.p7-eyebrow,
.p7-kicker,
.p7-label {
  margin: 0;
  color: var(--p7-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.p7-hero h1 {
  margin: 14px 0 19px;
  max-width: 720px;
  color: var(--p7-navy);
  font-size: clamp(36px, 4.8vw, 61px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.18;
}
.p7-hero h1 em {
  position: relative;
  color: var(--p7-teal);
  font-style: normal;
}
.p7-hero h1 em::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 7px;
  border-radius: 999px;
  background: rgba(201, 134, 36, .28);
  content: "";
}
.p7-hero__lead {
  max-width: 680px;
  margin: 0;
  color: #425d6e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.95;
}
.p7-hero__actions,
.p7-dashboard__actions,
.p7-result__actions,
.p7-review-actions,
.p7-feedback__actions,
.p7-question-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.p7-hero__actions { margin-top: 28px; }
.p7-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.p7-action:hover:not(:disabled) { transform: translateY(-1px); }
.p7-action:focus-visible,
.p7-page button:focus-visible,
.p7-page a:focus-visible {
  outline: 3px solid rgba(201, 134, 36, .45);
  outline-offset: 3px;
}
.p7-action--primary {
  border-color: var(--p7-teal);
  color: #fff !important;
  background: var(--p7-teal);
  box-shadow: 0 9px 24px rgba(8, 127, 122, .2);
}
.p7-action--primary:hover:not(:disabled) { background: var(--p7-teal-dark); }
.p7-action--quiet {
  border-color: #bfd0da;
  color: var(--p7-navy) !important;
  background: #fff;
}
.p7-action--quiet:hover:not(:disabled) { border-color: #88a6b5; background: #f8fbfc; }
.p7-action--accent {
  border-color: #ecd4a6;
  color: #78500f !important;
  background: var(--p7-gold-soft);
}
.p7-action--text {
  color: var(--p7-navy) !important;
  background: transparent;
}
.p7-action--text::after { margin-left: 8px; content: "↓"; }
.p7-action:disabled { cursor: not-allowed; opacity: .46; }

.p7-hero__visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}
.p7-doc-stack { position: relative; width: min(310px, 82%); height: 245px; }
.p7-doc {
  position: absolute;
  width: 190px;
  height: 225px;
  padding: 22px;
  border: 1px solid #c6d8e1;
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 40px rgba(27, 61, 78, .13);
}
.p7-doc span { color: var(--p7-navy); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.p7-doc i {
  display: block;
  height: 7px;
  margin-top: 17px;
  border-radius: 99px;
  background: #dce8ed;
}
.p7-doc i:nth-of-type(2) { width: 78%; }
.p7-doc i:nth-of-type(3) { width: 90%; }
.p7-doc b { display: block; width: 70%; height: 25px; margin-top: 18px; border-radius: 6px; background: var(--p7-teal-soft); }
.p7-doc--back { left: 0; top: 14px; transform: rotate(-8deg); }
.p7-doc--mid { right: 0; top: 19px; transform: rotate(7deg); }
.p7-doc--front { left: 50%; top: 0; transform: translateX(-50%); border-color: #8abdb8; }
.p7-doc--front::after {
  position: absolute;
  width: 62px;
  height: 10px;
  left: 22px;
  bottom: 27px;
  border-radius: 99px;
  background: rgba(201, 134, 36, .42);
  content: "";
}
.p7-evidence-line {
  position: absolute;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border: 1px solid #d4e1e7;
  border-radius: 999px;
  color: #587080;
  background: rgba(255,255,255,.95);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.p7-evidence-line strong { color: var(--p7-gold); font-size: 18px; }

.p7-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0 0;
  border: 1px solid var(--p7-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 61, 78, .05);
}
.p7-facts > div {
  position: relative;
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  padding: 20px 26px;
}
.p7-facts > div + div::before {
  position: absolute;
  left: 0;
  top: 23px;
  bottom: 23px;
  width: 1px;
  background: var(--p7-line);
  content: "";
}
.p7-facts strong { color: var(--p7-navy); font-size: 20px; line-height: 1.3; }
.p7-facts span { color: var(--p7-muted); font-size: 12px; font-weight: 600; }

.p7-section { padding: clamp(68px, 8vw, 105px) 0; }
.p7-section--soft { background: var(--p7-soft); }
.p7-section__head { max-width: 790px; margin-bottom: 35px; }
.p7-section__head h2,
.p7-boundary h2,
.p7-next h2 {
  margin: 10px 0 14px;
  color: var(--p7-navy);
  font-size: clamp(26px, 3.1vw, 40px);
  letter-spacing: -.025em;
  line-height: 1.4;
}
.p7-section__head > p:last-child,
.p7-boundary p,
.p7-next p { margin: 0; color: var(--p7-muted); }
.p7-section__head--light .p7-kicker { color: #7dd8d1; }
.p7-section__head--light h2 { color: #fff; }
.p7-section__head--light > p:last-child { color: #d6e5ea; }
.p7-method-grid,
.p7-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.p7-method-grid article,
.p7-skill-grid article {
  min-height: 205px;
  padding: 27px;
  border: 1px solid var(--p7-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 30px rgba(27, 61, 78, .05);
}
.p7-method-grid article > span,
.p7-skill-grid article > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--p7-teal-dark);
  background: var(--p7-teal-soft);
  font-size: 11px;
  font-weight: 900;
}
.p7-method-grid h3,
.p7-skill-grid h3 { margin: 18px 0 9px; color: var(--p7-navy); font-size: 18px; }
.p7-method-grid p,
.p7-skill-grid p { margin: 0; color: var(--p7-muted); font-size: 13px; }

.p7-practice {
  padding: clamp(70px, 8vw, 105px) 0;
  background:
    radial-gradient(circle at 90% 0, rgba(8,127,122,.2), transparent 29rem),
    #0f354b;
}
.p7-app {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(0, 18, 28, .3);
  overflow: visible;
}
.p7-live {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.p7-app [hidden] { display: none !important; }
.p7-system-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 18px 0;
  padding: 15px 17px;
  border: 1px solid;
  border-radius: 14px;
  color: var(--p7-navy);
  background: #fff;
}
.p7-system-notice { line-height: 1.55; }
.p7-system-notice strong,
.p7-system-notice span { display: block; }
.p7-system-notice span { margin-top: 2px; color: var(--p7-muted); font-size: 12px; }
.p7-system-notice .p7-action { flex: 0 0 auto; }
.p7-system-notice--warning { border-color: #e8c777; background: #fff9e9; }
.p7-system-notice--error { border-color: #e7a49a; background: #fff2f0; }
.p7-system-notice--info { border-color: #9bc6d8; background: #f0f8fb; }
.p7-app[data-state-conflict="true"] .p7-dashboard,
.p7-app[data-state-conflict="true"] .p7-player,
.p7-app[data-state-conflict="true"] .p7-result {
  opacity: .55;
  filter: grayscale(.15);
}
.p7-session-dialog {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 31, 43, .64);
  backdrop-filter: blur(6px);
}
.p7-session-dialog__panel {
  width: min(100%, 590px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid #d4e3e9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 20, 31, .28);
}
.p7-session-dialog__panel h3 { margin: 6px 0 12px; color: var(--p7-navy); font-size: 24px; }
.p7-session-dialog__panel > p:not(.p7-label) { margin: 0; color: var(--p7-muted); }
.p7-session-dialog__actions { display: grid; gap: 9px; margin-top: 24px; }
.p7-dashboard { padding: clamp(25px, 5vw, 50px); }
.p7-migration-notice {
  margin: 0 0 22px;
  padding: 13px 16px;
  border: 1px solid #ecd4a6;
  border-radius: 12px;
  color: #78500f;
  background: var(--p7-gold-soft);
  font-size: 13px;
  font-weight: 700;
}
.p7-dashboard__lead {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 27px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--p7-line);
}
.p7-dashboard__lead h3 { margin: 5px 0 6px; color: var(--p7-navy); font-size: 24px; }
.p7-dashboard__lead p:last-child { margin: 0; color: var(--p7-muted); }
.p7-progress-ring {
  --progress: 0;
  position: relative;
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--p7-teal) calc(var(--progress) * 1%), #e5eef2 0);
}
.p7-progress-ring::before {
  position: absolute;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #fff;
  content: "";
}
.p7-progress-ring span { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.p7-progress-ring strong { color: var(--p7-navy); font-size: 29px; }
.p7-progress-ring small { margin-top: 4px; color: var(--p7-muted); font-size: 11px; font-weight: 700; }
.p7-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  padding: 24px 0;
}
.p7-dashboard__stats > div {
  display: flex;
  min-height: 79px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 17px;
  border-radius: 13px;
  background: var(--p7-soft);
}
.p7-dashboard__stats span { color: var(--p7-muted); font-size: 11px; font-weight: 700; }
.p7-dashboard__stats strong { color: var(--p7-navy); font-size: 19px; }
.p7-mode-picker {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 12px;
  align-items: stretch;
  margin: 3px 0 24px;
  padding: 18px;
  border: 1px solid var(--p7-line);
  border-radius: 17px;
  background: #fafcfd;
}
.p7-mode-picker > div { padding: 7px; }
.p7-mode-picker h3 { margin: 5px 0 0; color: var(--p7-navy); font-size: 17px; }
.p7-mode-picker button,
.p7-format-launch button {
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid #cbdbe3;
  border-radius: 13px;
  color: var(--p7-navy);
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.p7-mode-picker button[aria-pressed="true"] {
  border-color: var(--p7-teal);
  background: var(--p7-teal-soft);
  box-shadow: inset 0 0 0 1px var(--p7-teal);
}
.p7-mode-picker button strong,
.p7-format-launch button strong { display: block; font-size: 14px; }
.p7-mode-picker button span,
.p7-format-launch button span { display: block; margin-top: 3px; color: var(--p7-muted); font-size: 11px; font-weight: 600; }
.p7-dashboard__actions { margin-bottom: 25px; }
.p7-format-launch {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 2fr;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 17px;
  background: var(--p7-blue-soft);
}
.p7-format-launch h3 { margin: 0 0 4px; color: var(--p7-navy); font-size: 17px; }
.p7-format-launch p { margin: 0; color: var(--p7-muted); font-size: 12px; }
.p7-format-launch > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.p7-format-launch button:hover { border-color: #8caab8; transform: translateY(-1px); }
.p7-reset {
  display: block;
  min-height: 44px;
  margin: 22px auto 0;
  padding: 8px 12px;
  border: 0;
  color: #718493;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
}

.p7-player { background: #f4f7f9; }
.p7-player__top {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--p7-line);
  background: #fff;
}
.p7-player__top strong { color: var(--p7-navy); }
.p7-player-mode {
  display: inline-flex;
  margin-left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--p7-teal-dark);
  background: var(--p7-teal-soft);
  font-size: 10px;
  font-weight: 800;
}
.p7-player__meter { height: 7px; border-radius: 99px; background: #e5edf1; overflow: hidden; }
.p7-player__meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--p7-teal), #46aaa4); transition: width .2s ease; }
.p7-elapsed { display: flex; flex-direction: column; color: var(--p7-navy); font-size: 12px; font-weight: 800; }
.p7-elapsed small { max-width: 225px; color: #758795; font-size: 9px; font-weight: 600; line-height: 1.35; }
.p7-close {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ccd9df;
  border-radius: 10px;
  color: var(--p7-navy);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.p7-set-head {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 24px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--p7-line);
  background: #fff;
}
.p7-set-head > div:first-child { display: flex; gap: 7px; }
.p7-set-head p { margin: 0; }
.p7-format-badge,
.p7-level,
.p7-question-type {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}
.p7-format-badge { color: #fff; background: var(--p7-navy); }
.p7-level { color: #78500f; background: var(--p7-gold-soft); }
.p7-question-type { color: var(--p7-teal-dark); background: var(--p7-teal-soft); }
.p7-mobile-switch { display: none; }
.p7-workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
  align-items: start;
  gap: 18px;
  padding: 18px;
}
.p7-passage-panel,
.p7-question-panel {
  min-width: 0;
  border: 1px solid var(--p7-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27,61,78,.05);
}
.p7-passage-panel { padding: 22px; }
.p7-question-panel { position: sticky; top: 10px; padding: 22px; }
.p7-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.p7-panel-head h3 { margin: 4px 0 0; color: var(--p7-navy); font-size: 19px; }
.p7-panel-head > span { color: var(--p7-muted); font-size: 11px; font-weight: 800; }
.p7-document-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}
.p7-document-tabs button {
  min-width: 78px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #cbdbe3;
  border-radius: 10px;
  color: var(--p7-navy);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.p7-document-tabs button[aria-current="true"] { border-color: var(--p7-teal); color: var(--p7-teal-dark); background: var(--p7-teal-soft); }
.p7-document-card {
  scroll-margin-top: 22px;
  border: 1px solid #d5e1e7;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.p7-document-card + .p7-document-card { margin-top: 17px; }
.p7-document-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 18px;
  border-bottom: 1px solid #dce6eb;
  background: #f6fafb;
}
.p7-document-card__head div { min-width: 0; }
.p7-document-card__head span { color: var(--p7-teal-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.p7-document-card__head h4 { margin: 2px 0 0; color: var(--p7-navy); font-size: 16px; overflow-wrap: anywhere; }
.p7-document-card__head b {
  flex: 0 0 auto;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--p7-navy);
  font-size: 12px;
}
.p7-document-body { padding: clamp(18px, 3vw, 28px); color: #213b4b; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.75; }
.p7-block { position: relative; scroll-margin-top: 90px; transition: background .2s ease, box-shadow .2s ease; }
.p7-block + .p7-block { margin-top: 15px; }
.p7-block--evidence {
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 8px;
  background: var(--p7-gold-soft);
  box-shadow: inset 4px 0 0 var(--p7-gold);
}
.p7-block-heading { margin: 0; color: var(--p7-navy); font-size: 21px; line-height: 1.35; }
.p7-block-paragraph { margin: 0; white-space: pre-line; }
.p7-insert-anchor {
  display: inline-flex;
  min-width: 29px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  border: 1px solid #d6b36e;
  border-radius: 6px;
  color: #78500f;
  background: var(--p7-gold-soft);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 900;
}
.p7-email-header,
.p7-form-fields {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  gap: 3px 13px;
  margin: 0;
  padding: 13px 15px;
  border-radius: 10px;
  background: #f3f7f9;
  font-size: 13px;
}
.p7-email-header dt,
.p7-form-fields dt { color: #607584; font-weight: 700; }
.p7-email-header dd,
.p7-form-fields dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.p7-chat { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p7-chat li { max-width: 87%; padding: 11px 14px; border-radius: 14px 14px 14px 4px; background: #eef4f7; }
.p7-chat li:nth-child(even) { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--p7-teal-soft); }
.p7-chat strong { display: block; margin-bottom: 2px; color: var(--p7-navy); font-size: 11px; }
.p7-list { margin: 0; padding-left: 22px; }
.p7-list li + li { margin-top: 5px; }
.p7-table-wrap { width: 100%; overflow-x: auto; }
.p7-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 13px; }
.p7-table th,
.p7-table td { padding: 10px 11px; border: 1px solid #cedde4; text-align: left; vertical-align: top; }
.p7-table th { color: var(--p7-navy); background: #edf4f7; font-weight: 800; }
.p7-notice { padding: 15px 17px; border-left: 4px solid var(--p7-teal); background: var(--p7-teal-soft); }
.p7-signature { color: #3e5869; white-space: pre-line; }

.p7-question-panel h3 { margin: 11px 0 17px; color: var(--p7-navy); font-size: 18px; line-height: 1.65; }
.p7-hint-control { margin-bottom: 14px; }
.p7-hint-control button,
.p7-evidence button {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #c7d8e0;
  border-radius: 9px;
  color: var(--p7-navy);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.p7-question-hint {
  margin: 9px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  color: #725018;
  background: var(--p7-gold-soft);
  font-size: 12px;
  font-weight: 600;
}
.p7-insert-sentence { margin: 0 0 15px; padding: 13px 15px; border: 1px solid #e4c988; border-radius: 11px; background: var(--p7-gold-soft); }
.p7-insert-sentence p:last-child { margin: 5px 0 0; color: #263f4f; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.p7-choices { display: grid; gap: 9px; }
.p7-choice {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  min-height: 56px;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #cbd9e1;
  border-radius: 12px;
  color: #1b3545;
  background: #fff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.p7-choice:hover:not(:disabled) { border-color: #7da2b3; transform: translateX(2px); }
.p7-choice > b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--p7-navy); background: #edf3f6; font-family: "Noto Sans JP", sans-serif; font-size: 11px; }
.p7-choice[aria-checked="true"] { border-color: var(--p7-teal); background: var(--p7-teal-soft); box-shadow: inset 0 0 0 1px var(--p7-teal); }
.p7-choice--correct { border-color: var(--p7-green) !important; background: var(--p7-green-soft) !important; }
.p7-choice--wrong { border-color: var(--p7-coral) !important; background: var(--p7-coral-soft) !important; }
.p7-choice:disabled { cursor: default; opacity: 1; }
.p7-exam-note { margin: 14px 0 0; color: var(--p7-muted); font-size: 11px; }
.p7-question-nav { justify-content: space-between; margin-top: 16px; }
.p7-question-nav .p7-action { min-height: 44px; padding: 8px 13px; font-size: 11px; }
.p7-exam-controls { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--p7-line); }
.p7-exam-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.p7-exam-nav button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #c7d7df;
  border-radius: 9px;
  color: var(--p7-navy);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.p7-exam-nav button[data-answered="true"] { border-color: var(--p7-teal); background: var(--p7-teal-soft); }
.p7-exam-controls > p { color: var(--p7-muted); font-size: 11px; }

.p7-feedback,
.p7-set-review {
  margin: 0 18px 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--p7-line);
  border-radius: 18px;
  background: #fff;
}
.p7-feedback__result {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 23px;
}
.p7-feedback__result > span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--p7-green);
  font-size: 23px;
  font-weight: 900;
}
.p7-feedback[data-correct="false"] .p7-feedback__result > span { background: var(--p7-coral); }
.p7-feedback__result p,
.p7-feedback__result h3 { margin: 0; }
.p7-feedback__result p { color: var(--p7-green); font-size: 11px; font-weight: 900; }
.p7-feedback[data-correct="false"] .p7-feedback__result p { color: var(--p7-coral); }
.p7-feedback__result h3 { color: var(--p7-navy); font-size: 19px; }
.p7-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.p7-evidence > div { padding: 18px; border-radius: 14px; background: var(--p7-soft); }
.p7-evidence p { margin: 7px 0 0; color: #405b6c; font-size: 13px; }
.p7-evidence [lang="en"] { color: #203b4b; font-family: Arial, Helvetica, sans-serif; }
.p7-evidence-item + .p7-evidence-item { margin-top: 13px; padding-top: 13px; border-top: 1px solid #d9e4e9; }
.p7-evidence-item b { display: block; color: var(--p7-teal-dark); font-size: 10px; }
.p7-paraphrase { padding-left: 11px; border-left: 3px solid var(--p7-teal); }
.p7-trap { color: #8d4038 !important; }
.p7-choice-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}
.p7-choice-review > div { padding: 13px 15px; border: 1px solid var(--p7-line); border-radius: 11px; }
.p7-choice-review strong { display: block; color: var(--p7-navy); font-family: Arial, Helvetica, sans-serif; font-size: 13px; }
.p7-choice-review p { margin: 5px 0 0; color: var(--p7-muted); font-size: 11px; }
.p7-feedback__actions { justify-content: flex-end; margin-top: 20px; }

.p7-review-head,
.p7-result__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.p7-review-head h3 { margin: 4px 0 4px; color: var(--p7-navy); font-size: 23px; }
.p7-review-head p:last-child { margin: 0; color: var(--p7-muted); }
.p7-review-head > strong {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--p7-teal-dark);
  background: var(--p7-teal-soft);
  font-size: 20px;
}
.p7-review-documents { display: grid; gap: 14px; margin-top: 23px; }
.p7-review-document { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--p7-line); border-radius: 14px; overflow: hidden; }
.p7-review-document > div { min-width: 0; padding: 18px; }
.p7-review-document > div + div { border-left: 1px solid var(--p7-line); background: #f7fafb; }
.p7-review-document h4 { margin: 0 0 12px; color: var(--p7-navy); }
.p7-review-document .p7-review-en { color: #25404f; font-family: Arial, Helvetica, sans-serif; font-size: 13px; white-space: pre-line; }
.p7-review-document .p7-review-ja { color: #425d6d; font-size: 12px; white-space: pre-line; }
.p7-all-answers { display: grid; gap: 9px; margin-top: 20px; }
.p7-answer-row { padding: 15px; border: 1px solid var(--p7-line); border-radius: 12px; }
.p7-answer-row summary { cursor: pointer; color: var(--p7-navy); font-weight: 800; }
.p7-answer-row p { margin: 8px 0 0; color: var(--p7-muted); font-size: 12px; }
.p7-review-actions { justify-content: flex-end; margin-top: 21px; }

.p7-result { padding: clamp(28px, 5vw, 50px); }
.p7-result__hero { padding-bottom: 25px; border-bottom: 1px solid var(--p7-line); justify-content: flex-start; }
.p7-score {
  display: flex;
  min-width: 126px;
  min-height: 126px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--p7-navy);
  box-shadow: 0 13px 32px rgba(18,63,90,.2);
}
.p7-score strong { font-size: 40px; line-height: 1; }
.p7-score span { margin: 17px 0 0 5px; font-size: 12px; }
.p7-result__hero h3 { margin: 5px 0; color: var(--p7-navy); font-size: 26px; }
.p7-result__hero p:last-child { margin: 0; color: var(--p7-muted); }
.p7-result__skills {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin: 24px 0;
}
.p7-result__skills > div { padding: 15px; border-radius: 12px; background: var(--p7-soft); }
.p7-result__skills span { display: block; color: var(--p7-muted); font-size: 10px; font-weight: 800; }
.p7-result__skills strong { color: var(--p7-navy); font-size: 17px; }
.p7-result__weakness,
.p7-weakness { margin-bottom: 20px; padding: 17px; border: 1px solid #ecd4a6; border-radius: 13px; color: #725018; background: var(--p7-gold-soft); }
.p7-result__actions { margin-top: 20px; }
.p7-noscript { margin: 0; padding: 25px; color: var(--p7-coral); font-weight: 800; }

.p7-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 45px;
  align-items: center;
}
.p7-boundary__notes { display: grid; gap: 10px; }
.p7-boundary__notes p { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #fff; }
.p7-boundary__notes strong { color: var(--p7-navy); font-size: 12px; }
.p7-boundary__notes span,
.p7-boundary__notes a { color: var(--p7-muted); font-size: 11px; }
.p7-next {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 40px;
  align-items: center;
  margin: 70px 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--p7-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--p7-shadow);
}
.p7-next > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p7-next a {
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #cbdbe3;
  border-radius: 11px;
  color: var(--p7-navy);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.p7-next a::after { margin-left: auto; color: var(--p7-teal); content: "→"; }

@media (max-width: 900px) {
  .p7-hero { grid-template-columns: 1fr; min-height: auto; }
  .p7-hero__visual { min-height: 270px; margin-top: 20px; }
  .p7-facts { grid-template-columns: 1fr 1fr; }
  .p7-facts > div:nth-child(3)::before { display: none; }
  .p7-facts > div:nth-child(n+3) { border-top: 1px solid var(--p7-line); }
  .p7-method-grid,
  .p7-skill-grid { grid-template-columns: 1fr 1fr; }
  .p7-mode-picker { grid-template-columns: 1fr 1fr; }
  .p7-mode-picker > div { grid-column: 1 / -1; }
  .p7-format-launch { grid-template-columns: 1fr; }
  .p7-player__top { grid-template-columns: 1fr auto; }
  .p7-player__meter { grid-column: 1 / -1; grid-row: 2; }
  .p7-elapsed { display: none; }
  .p7-workspace { grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); }
}

@media (max-width: 700px) {
  .p7-shell { width: min(100% - 24px, 1180px); }
  .p7-hero { padding: 30px 22px; border-radius: 20px; }
  .p7-hero h1 { font-size: clamp(31px, 9vw, 43px); }
  .p7-hero__lead { font-size: 14px; }
  .p7-method-grid,
  .p7-skill-grid { grid-template-columns: 1fr; }
  .p7-method-grid article,
  .p7-skill-grid article { min-height: 0; }
  .p7-dashboard { padding: 23px 17px; }
  .p7-system-notice { align-items: stretch; flex-direction: column; margin: 12px 12px 0; }
  .p7-system-notice .p7-action { width: 100%; }
  .p7-session-dialog { padding: 12px; }
  .p7-session-dialog__panel { padding: 24px 18px; border-radius: 18px; }
  .p7-session-dialog__panel h3 { font-size: 21px; }
  .p7-dashboard__lead { grid-template-columns: 94px 1fr; gap: 17px; }
  .p7-progress-ring { width: 90px; height: 90px; }
  .p7-progress-ring::before { width: 68px; height: 68px; }
  .p7-progress-ring strong { font-size: 23px; }
  .p7-dashboard__stats { grid-template-columns: 1fr 1fr; }
  .p7-mode-picker { grid-template-columns: 1fr; padding: 13px; }
  .p7-mode-picker > div { grid-column: auto; }
  .p7-format-launch > div:last-child { grid-template-columns: 1fr; }
  .p7-dashboard__actions .p7-action { width: 100%; }
  .p7-player__top { padding: 14px 16px; }
  .p7-set-head { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .p7-mobile-switch {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 7px;
    border-block: 1px solid var(--p7-line);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
  }
  .p7-mobile-switch button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    color: var(--p7-muted);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
  }
  .p7-mobile-switch button[aria-pressed="true"] { color: #fff; background: var(--p7-navy); }
  .p7-workspace { display: block; padding: 10px; }
  .p7-workspace[data-mobile-view="passage"] .p7-question-panel { display: none; }
  .p7-workspace[data-mobile-view="question"] .p7-passage-panel { display: none; }
  .p7-passage-panel,
  .p7-question-panel { padding: 15px; border-radius: 14px; }
  .p7-question-panel { position: static; }
  .p7-document-body { padding: 17px 15px; font-size: 14px; }
  .p7-document-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .p7-document-tabs button { flex: 0 0 auto; }
  .p7-document-card[data-p7-document-active="false"] { display: none; }
  .p7-feedback,
  .p7-set-review { margin: 0 10px 10px; padding: 18px 15px; }
  .p7-evidence,
  .p7-choice-review,
  .p7-review-document { grid-template-columns: 1fr; }
  .p7-review-document > div + div { border-top: 1px solid var(--p7-line); border-left: 0; }
  .p7-review-head { align-items: flex-start; }
  .p7-review-head h3 { font-size: 19px; }
  .p7-review-actions .p7-action,
  .p7-feedback__actions .p7-action { width: 100%; }
  .p7-result { padding: 22px 16px; }
  .p7-result__hero { align-items: flex-start; }
  .p7-score { min-width: 88px; min-height: 88px; }
  .p7-score strong { font-size: 28px; }
  .p7-result__skills { grid-template-columns: 1fr 1fr; }
  .p7-result__actions .p7-action { width: 100%; }
  .p7-boundary,
  .p7-next { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 430px) {
  .p7-shell { width: calc(100% - 20px); }
  .p7-crumbs { padding-top: 12px; }
  .p7-hero { padding: 27px 19px; }
  .p7-hero h1 { font-size: 32px; }
  .p7-hero h1 br:nth-of-type(2) { display: none; }
  .p7-hero__visual { min-height: 220px; }
  .p7-doc-stack { height: 205px; }
  .p7-doc { width: 150px; height: 184px; padding: 16px; }
  .p7-evidence-line { bottom: -3px; }
  .p7-facts > div { min-height: 82px; padding: 14px; }
  .p7-facts strong { font-size: 17px; }
  .p7-facts span { font-size: 10px; }
  .p7-section { padding: 60px 0; }
  .p7-app { border-radius: 17px; }
  .p7-dashboard__lead { grid-template-columns: 1fr; text-align: center; }
  .p7-progress-ring { margin-inline: auto; }
  .p7-dashboard__lead h3 { font-size: 21px; }
  .p7-player__top { grid-template-columns: 1fr auto; gap: 9px; }
  .p7-player-mode { display: block; width: max-content; margin: 5px 0 0; }
  .p7-close { padding-inline: 9px; }
  .p7-panel-head h3 { font-size: 17px; }
  .p7-question-panel h3 { font-size: 16px; }
  .p7-choice { min-height: 58px; padding: 10px; font-size: 13px; }
  .p7-question-nav .p7-action { flex: 1 1 0; }
  .p7-feedback__result { align-items: flex-start; }
  .p7-review-head { display: grid; }
  .p7-review-head > strong { width: max-content; }
  .p7-result__hero { display: grid; }
  .p7-next { margin: 50px 0; padding: 24px 18px; }
  .p7-next > div:last-child { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .p7-page *,
  .p7-page *::before,
  .p7-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
