:root {
  --ink: #14213d;
  --muted: #697386;
  --paper: #f7faff;
  --white: #ffffff;
  --navy: #17236b;
  --blue: #2457d6;
  --gold: #75a0ff;
  --line: #dbe4f3;
  --good: #19735b;
  --bad: #b4473c;
  --shadow: 0 18px 50px rgba(15, 42, 67, .12);
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { height: 78px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px 14px 14px 4px; color: var(--white); background: linear-gradient(145deg,#183b9d 0%,#2f6bf0 62%,#79a7ff 100%); box-shadow: 0 8px 18px rgba(36,87,214,.25), inset 0 1px rgba(255,255,255,.3); transform: rotate(-2deg); }
.brand-mark svg { width: 31px; height: 31px; overflow: visible; fill: #fff; stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(12,35,103,.2)); }
.brand-mark svg circle { stroke-width: 0; }
.brand-title { min-width: 0; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: clamp(12px,1.35vw,15px); font-weight: 900; letter-spacing: .015em; }
.brand small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.exam-status { display: flex; gap: 14px; align-items: center; font-weight: 700; }
.timer { min-width: 94px; padding: 9px 13px; color: var(--white); background: var(--navy); border-radius: 3px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.timer.urgent { background: var(--bad); }
.screen { min-height: calc(100vh - 78px); }
.start-screen { max-width: none; margin: 0 auto; padding: 76px max(7vw, 24px) 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); gap: clamp(40px, 7vw, 110px); align-items: center; align-content: start; background-color: #fff; background-image: radial-gradient(#dce8ff 1.2px, transparent 1.2px); background-size: 22px 22px; }
.start-screen > * { min-width: 0; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy h1 { margin: 18px 0 24px; font-family: inherit; font-size: clamp(46px, 4.5vw, 64px); font-weight: 900; line-height: 1.18; letter-spacing: -.045em; color: #1b43ae; }
.hero-copy h1 em { color: var(--blue); font-style: normal; border-bottom: 5px solid #a9c2ff; }
.lead { max-width: 680px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; line-height: 1.4; text-align: center; text-decoration: none; transition: transform .15s, background .15s, color .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(36,87,214,.2); }
.button.ghost { background: transparent; color: var(--navy); border-color: #9eabb7; }
.button.review-mistakes { color: #8a4d0f; border-color: #d8a35c; background: #fff8e9; }
.button.review-mistakes:not(:disabled):hover { color: #fff; background: #a66318; box-shadow: 0 10px 24px rgba(166,99,24,.18); }
.button:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.button.submit { width: 100%; color: white; background: var(--blue); }
.button.text-button { background: transparent; color: var(--muted); text-decoration: underline; }
.exam-card { background: var(--navy); color: white; padding: 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card-number { position: absolute; right: 20px; top: -18px; color: rgba(255,255,255,.08); font: 120px Georgia, serif; }
.exam-card h2 { margin: 0 0 25px; font-family: Georgia, "Yu Mincho", serif; font-weight: 500; font-size: 28px; }
.exam-card dl { margin: 0; }
.exam-card dl div { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.18); }
.exam-card dt { color: #aebfd0; }
.exam-card dd { margin: 0; text-align: right; font-weight: 700; }
.save-note { margin: 22px 0 0; color: #b7c6d5; font-size: 12px; }
.scope-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #9bb9ff; border-radius: 16px 16px 0 0; background: var(--navy); color: white; overflow: hidden; margin-top: 18px; }
.scope-strip span { padding: 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.18); color: #cbd7ff; }
.scope-strip span:last-child { border: 0; }
.scope-strip b { display: block; color: white; font: 800 30px/1.2 Arial, sans-serif; font-variant-numeric: tabular-nums; transform-origin: center bottom; }
.scope-strip b.is-counting { animation: count-breathe .72s ease-in-out infinite alternate; }
.scope-strip b.is-counted { animation: count-settle .42s cubic-bezier(.2,.85,.35,1.35) both; }
@keyframes count-breathe { from { color: #fff; transform: translateY(1px) scale(.98); text-shadow: 0 0 0 rgba(117,160,255,0); } to { color: #dce8ff; transform: translateY(-2px) scale(1.05); text-shadow: 0 0 18px rgba(117,160,255,.55); } }
@keyframes count-settle { 0% { transform: scale(1.08); text-shadow: 0 0 20px rgba(117,160,255,.6); } 100% { transform: scale(1); text-shadow: none; } }
.official-samples { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px,.68fr) minmax(0,1.32fr); gap: 38px; padding: 46px; color: #fff; background: linear-gradient(135deg,#111d61 0%,#153787 100%); border-radius: 0 0 22px 22px; box-shadow: 0 24px 60px rgba(20,48,119,.18); }
.sample-intro { align-self: start; position: sticky; top: 110px; }
.sample-intro .eyebrow { color: #9fbbff; }
.sample-intro h2 { margin: 10px 0 20px; font-size: clamp(28px,3.4vw,44px); line-height: 1.35; letter-spacing: -.03em; }
.sample-intro > p:not(.eyebrow) { color: #d8e3ff; line-height: 1.9; }
.sample-intro strong { color: #fff; }
.sample-source { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); font-size: 11px; }
.sample-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.sample-grid figure { margin: 0; padding: 10px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.sample-grid a { display: block; overflow: hidden; border-radius: 8px; background: #fff; }
.sample-grid img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.sample-grid a:hover img { transform: scale(1.015); }
.sample-grid figcaption { padding: 11px 4px 2px; color: #dbe6ff; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.disclaimer { grid-column: 1 / -1; padding: 18px 22px; border-left: 4px solid #6d99ff; background: #edf3ff; font-size: 12px; line-height: 1.7; color: #53617b; }
.disclaimer strong { color: var(--ink); }
.disclaimer p { margin: 4px 0 0; }
.exam-builder { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; padding: 38px 42px; background: #fff; border: 1px solid #dbe6fb; box-shadow: 0 18px 45px rgba(31,76,174,.08); }
.builder-heading { grid-column: 1 / -1; }
.builder-heading h2 { margin: 8px 0 10px; color: var(--navy); font-size: clamp(24px,3vw,36px); }
.builder-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }
.builder-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.builder-controls label, .bank-toolbar label { display: grid; gap: 7px; color: #526079; font-size: 12px; font-weight: 800; }
.builder-controls select, .bank-toolbar select { min-height: 50px; padding: 0 15px; border: 1px solid #b9caeb; border-radius: 10px; color: var(--navy); background: #fff; font: inherit; }
.builder-controls .button { grid-column: 1 / -1; }
.compact-controls { grid-column: 1 / -1; grid-template-columns: minmax(180px, 280px) minmax(240px, 1fr); align-items: end; }
.compact-controls .button { grid-column: auto; min-height: 50px; }
.builder-note { grid-column: 1 / -1; margin: 0; color: var(--blue); font-size: 12px; font-weight: 800; text-align: right; }
.builder-quick-actions { grid-column: 1 / -1; display: flex; gap: 14px; margin: 0; padding-top: 24px; border-top: 1px solid #dce5f5; }
.builder-quick-actions .button { flex: 1 1 220px; width: 100%; }
.taxonomy-selector { grid-column: 1 / -1; border: 1px solid #c9d8f5; border-radius: 18px; background: #f8faff; overflow: hidden; }
.taxonomy-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 20px; background: linear-gradient(135deg,#0d1f58,#173b91); color: #fff; }
.taxonomy-toolbar > div:first-child { display: grid; gap: 4px; }
.taxonomy-toolbar strong { font-size: 17px; }
.taxonomy-toolbar span { color: #cbd8ff; font-size: 12px; font-weight: 700; }
.taxonomy-toolbar > div:last-child { display: flex; gap: 8px; }
.taxonomy-toolbar button { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 8px 13px; background: rgba(255,255,255,.08); color: #fff; font: 700 12px/1 inherit; cursor: pointer; }
.taxonomy-toolbar button:hover { background: #fff; color: var(--navy); }
.taxonomy-levels { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; padding: 10px 18px; border-bottom: 1px solid #dce5f7; background: #eef3ff; color: #637395; font-size: 10px; font-weight: 800; text-align: center; }
.taxonomy-master { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 14px; margin: 12px 12px 0; padding: 13px 15px; border: 1px solid #b9cdf7; border-radius: 11px; background: linear-gradient(135deg,#edf3ff,#f8faff); color: #14265d; cursor: pointer; }
.taxonomy-master input { width: 19px; height: 19px; margin: 0; accent-color: #2c5dda; cursor: pointer; }
.taxonomy-master span { font-size: 14px; font-weight: 850; }
.taxonomy-master strong { padding: 4px 9px; border-radius: 999px; background: #dfe9ff; color: #2452bd; font-size: 11px; }
.taxonomy-tree { max-height: 560px; overflow: auto; padding: 12px; scrollbar-color: #afc4ef transparent; }
.taxonomy-node { border-radius: 10px; }
.taxonomy-node + .taxonomy-node { margin-top: 4px; }
.taxonomy-node > summary { list-style: none; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 44px; padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; color: #152455; cursor: pointer; transition: .16s ease; }
.taxonomy-node > summary::-webkit-details-marker { display: none; }
.taxonomy-node > summary:hover { border-color: #c8d8fb; background: #f0f5ff; }
.taxonomy-node > summary::after { content: "＋"; grid-column: 4; color: #7f94bf; font-weight: 800; }
.taxonomy-node[open] > summary::after { content: "－"; }
.taxonomy-node:not(:has(.taxonomy-children)) > summary::after { content: ""; }
.taxonomy-check { width: 18px; height: 18px; margin: 0; accent-color: #2c5dda; cursor: pointer; }
.taxonomy-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 750; }
.taxonomy-count { min-width: 48px; padding: 4px 8px; border-radius: 999px; background: #e7eeff; color: #2452bd; font-size: 11px; font-weight: 850; text-align: center; }
.partially-selected .taxonomy-count { background: #fff1c7; color: #8a5a00; }
.taxonomy-children { margin-left: 20px; padding-left: 12px; border-left: 1px solid #d9e4fa; }
.taxonomy-node.level-1 > summary { background: #eef3ff; border-color: #d8e3fb; }
.taxonomy-node.level-1 > summary .taxonomy-name { font-size: 14px; font-weight: 850; }
.taxonomy-node.level-2 > summary { color: #1f3f87; }
.taxonomy-node.level-3 > summary { color: #334b78; }
.taxonomy-node.level-4 > summary, .taxonomy-node.level-5 > summary { min-height: 39px; }
.bank-screen { max-width: 1120px; margin: 0 auto; padding: 62px 24px 90px; }
.bank-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.bank-header h1 { margin: 8px 0 10px; color: #1b43ae; font-size: clamp(36px,5vw,60px); letter-spacing: -.04em; }
.bank-header p:not(.eyebrow) { color: var(--muted); line-height: 1.8; }
.bank-toolbar { position: sticky; top: 78px; z-index: 10; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 36px 0 24px; padding: 16px 20px; border: 1px solid #dbe6fb; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.bank-toolbar label { min-width: min(360px,70vw); }
.bank-toolbar strong { color: var(--blue); font-size: 20px; }
.bank-list { display: grid; gap: 18px; }
.bank-item { padding: 28px; border: 1px solid #dbe6fb; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(31,76,174,.05); }
.bank-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.bank-meta span { padding: 5px 9px; border-radius: 999px; background: #edf3ff; color: var(--blue); font-size: 11px; font-weight: 800; }
.bank-item h2 { margin: 16px 0 18px; font-size: 18px; line-height: 1.75; white-space: pre-line; }
.bank-meta .format-tag { color: #fff; background: var(--navy); }
.bank-item ol { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.bank-item li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #e2e8f2; border-radius: 8px; color: #526079; }
.bank-item li b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #edf1f7; color: #697386; }
.bank-item li.correct { border-color: #7fa5f4; background: #eef4ff; color: var(--navy); }
.bank-item li.correct b { color: #fff; background: var(--blue); }
.bank-item li em { color: var(--blue); font-size: 11px; font-style: normal; font-weight: 900; }
.bank-explanation { margin-top: 16px; padding: 15px 17px; border-left: 4px solid var(--blue); background: #f5f8ff; }
.bank-explanation p { margin: 6px 0 0; color: var(--muted); line-height: 1.75; }
.legal-basis { margin-top: 14px; padding: 16px 18px; border: 1px solid #c9d8f7; border-radius: 10px; background: #fff; }
.legal-basis > strong { color: var(--navy); font-size: 13px; }
.legal-basis ul { display: grid; gap: 9px; margin: 11px 0 10px; padding: 0; list-style: none; }
.legal-basis li { display: grid; grid-template-columns: minmax(180px,.8fr) 1.2fr; gap: 14px; padding: 0; border: 0; color: #53617b; font-size: 12px; line-height: 1.6; }
.legal-basis a { color: var(--blue); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-basis small { display: block; padding-top: 9px; border-top: 1px solid #e2e8f2; color: #7a8496; font-size: 10px; }
.glossary-screen { max-width: 1120px; margin: 0 auto; padding: 62px 24px 90px; }
.glossary-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: end; padding: 42px; border: 1px solid #ceddfb; border-radius: 24px; background: radial-gradient(circle at 88% 12%,#dbe7ff 0,transparent 32%),#f8faff; }
.glossary-hero h1 { margin: 8px 0 16px; color: var(--navy); font-size: clamp(40px,6vw,72px); line-height: 1.06; letter-spacing: -.055em; }
.glossary-hero h1 em { color: var(--blue); font-style: normal; }
.glossary-hero p:not(.eyebrow) { max-width: 720px; color: var(--muted); line-height: 1.9; }
.glossary-tools { position: sticky; top: 78px; z-index: 8; display: grid; grid-template-columns: minmax(240px,1fr) minmax(220px,.55fr) auto; gap: 14px; align-items: end; margin: 32px 0 20px; padding: 16px 20px; border: 1px solid #dbe6fb; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.glossary-tools label { display: grid; gap: 6px; color: var(--navy); font-size: 12px; font-weight: 800; }
.glossary-tools input,.glossary-tools select { min-height: 46px; padding: 0 13px; border: 1px solid #cdd9ef; border-radius: 6px; background: #fff; color: var(--navy); }
.glossary-tools strong { padding: 0 4px 12px; color: var(--blue); font-size: 20px; }
.glossary-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.glossary-index a { padding: 7px 10px; border: 1px solid #d9e4fa; border-radius: 999px; color: #3159b9; background: #f6f9ff; font-size: 11px; font-weight: 750; text-decoration: none; }
.glossary-list { display: grid; gap: 14px; }
.glossary-card { scroll-margin-top: 168px; display: grid; grid-template-columns: 54px minmax(0,1fr) 28px; gap: 18px; align-items: start; padding: 24px 26px; border: 1px solid #dbe6fb; border-radius: 14px; background: #fff; box-shadow: 0 10px 26px rgba(31,76,174,.045); }
.glossary-card:target { border-color: #4b75dd; box-shadow: 0 0 0 4px #e3ebff,0 12px 32px rgba(31,76,174,.1); }
.glossary-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--blue); font: 700 15px Georgia,serif; }
.glossary-card span { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .06em; }
.glossary-card h2 { margin: 5px 0 8px; color: var(--navy); font-size: 22px; }
.glossary-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.glossary-card > a { color: #7590c9; font-size: 18px; text-decoration: none; }
.glossary-empty { padding: 50px; text-align: center; color: var(--muted); }
.glossary-source { margin-top: 36px; padding: 24px 28px; border-left: 4px solid var(--blue); background: #f3f7ff; color: var(--muted); line-height: 1.8; }
.glossary-source strong { color: var(--navy); }
.glossary-source a { color: var(--blue); font-weight: 800; }
.exam-screen { display: grid; grid-template-columns: 310px minmax(0, 1fr); }
.question-panel { padding: 24px; background: var(--navy); color: white; min-height: calc(100vh - 78px); position: sticky; top: 78px; align-self: start; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.icon-button { display: none; border: 0; color: white; background: none; font-size: 26px; }
.legend { margin: 18px 0; color: #bcc9d6; font-size: 11px; }
.answered-dot, .flagged-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 10px; }
.answered-dot { background: #6fc5ae; }
.flagged-dot { background: var(--gold); }
.question-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 25px; }
.question-grid button { aspect-ratio: 1; border: 1px solid #49627a; background: transparent; color: #ced8e2; border-radius: 2px; font-size: 12px; }
.question-grid button.answered { background: #285f68; color: white; border-color: #4e908d; }
.question-grid button.flagged { box-shadow: inset 0 -3px var(--gold); }
.question-grid button.current { outline: 2px solid white; outline-offset: 2px; }
.question-stage { max-width: 900px; width: 100%; margin: 0 auto; padding: 54px clamp(22px, 6vw, 76px) 70px; }
.panel-open { display: none; }
.question-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.category-badge { color: var(--blue); font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.flag-button { border: 0; background: none; color: var(--muted); }
.flag-button.active { color: #8c671d; font-weight: 700; }
.question-number { margin: 36px 0 14px; color: #9aa5b1; font: 20px Georgia, serif; letter-spacing: .08em; }
.question-text { margin: 0 0 34px; font-size: clamp(18px, 2vw, 23px); line-height: 1.8; font-weight: 700; white-space: pre-line; }
.options { display: grid; gap: 13px; padding: 0; border: 0; }
.option { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; min-height: 64px; padding: 13px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; transition: border .15s, background .15s; }
.option:hover { border-color: var(--blue); }
.option.selected { background: #e4eef4; border-color: var(--blue); }
.option.correct-answer { border-color: #55a58c; background: #eaf7f2; }
.option.correct-answer .option-letter { color: #fff; border-color: var(--good); background: var(--good); }
.option.wrong-answer { border-color: #d78f87; background: #fff0ee; }
.option.wrong-answer .option-letter { color: #fff; border-color: var(--bad); background: var(--bad); }
.option:has(input:disabled) { cursor: default; }
.option:has(input:disabled):hover { border-color: var(--line); }
.option.correct-answer:has(input:disabled):hover { border-color: #55a58c; }
.option.wrong-answer:has(input:disabled):hover { border-color: #d78f87; }
.option input { position: absolute; opacity: 0; }
.option-letter { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #aab4be; border-radius: 50%; font: 15px Georgia, serif; }
.option.selected:not(.correct-answer):not(.wrong-answer) .option-letter { color: white; background: var(--blue); border-color: var(--blue); }
.option-text { line-height: 1.65; }
.instant-feedback { margin-top: 26px; padding: 22px; border: 1px solid #cbd9ee; border-left-width: 5px; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(31,76,174,.07); }
.instant-feedback.is-correct { border-left-color: var(--good); }
.instant-feedback.is-incorrect { border-left-color: var(--bad); }
.feedback-result { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.feedback-result > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 20px; font-weight: 900; }
.is-correct .feedback-result > span { background: var(--good); }
.is-incorrect .feedback-result > span { background: var(--bad); }
.feedback-result strong { color: var(--navy); font-size: 19px; }
.feedback-result p { margin: 7px 0 0; color: #53617b; font-size: 13px; line-height: 1.65; }
.feedback-explanation { margin-top: 18px; padding: 16px 18px; border-radius: 9px; background: #f4f7fd; }
.feedback-explanation strong { color: var(--navy); }
.feedback-explanation p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.feedback-review-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 9px; color: #745018; background: #fff8e9; font-size: 12px; font-weight: 700; }
.review-remove { min-height: 36px; padding: 0 15px; border: 1px solid #c98a35; border-radius: 999px; color: #8a4d0f; background: #fff; font-weight: 800; white-space: nowrap; }
.review-remove:hover { color: #fff; background: #a66318; }
.distractor-review { margin-top: 16px; border: 1px solid #d5dfef; border-radius: 10px; background: #fff; overflow: hidden; }
.distractor-heading { display: grid; gap: 4px; padding: 15px 17px; background: #f8faff; }
.distractor-heading strong { color: var(--navy); font-size: 13px; }
.distractor-heading small { color: #778398; font-size: 10px; line-height: 1.6; }
.distractor-list { display: grid; }
.distractor-item { border-top: 1px solid #e3e9f3; }
.distractor-item summary { display: grid; grid-template-columns: 28px 1fr auto 20px; gap: 9px; align-items: center; padding: 12px 15px; color: #53617b; cursor: pointer; list-style: none; }
.distractor-item summary::-webkit-details-marker { display: none; }
.distractor-item summary > span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #bac7dc; border-radius: 50%; color: #68758b; font: 12px Georgia,serif; }
.distractor-item summary b { font-size: 12px; line-height: 1.6; }
.distractor-item summary em { padding: 4px 7px; border-radius: 999px; color: #fff; background: var(--bad); font-size: 9px; font-style: normal; font-weight: 900; }
.distractor-item summary::after { content: "+"; grid-column: 4; color: var(--blue); font-size: 18px; font-weight: 400; }
.distractor-item[open] summary::after { content: "−"; }
.distractor-item[open] > div { padding: 0 16px 15px 52px; }
.distractor-item[open] > div p { margin: 0; color: #58667d; font-size: 12px; line-height: 1.75; }
.distractor-item[open] > div p + p { margin-top: 9px; }
.distractor-item[open] > div strong { display: block; margin-bottom: 3px; color: var(--navy); font-size: 11px; }
.distractor-item[open] > div .trap-point { padding: 10px 12px; border-radius: 7px; background: #fff8e8; }
.distractor-item.selected-distractor { background: #fff8f6; box-shadow: inset 4px 0 var(--bad); }
.distractor-item.selected-distractor summary > span { color: #fff; border-color: var(--bad); background: var(--bad); }
.question-actions { display: flex; justify-content: space-between; margin-top: 42px; }
.result-screen { max-width: 1050px; margin: 0 auto; padding: 58px 24px 80px; }
.result-hero { text-align: center; }
.result-hero h1 { margin: 8px 0 26px; font: 50px Georgia, "Yu Mincho", serif; }
.score-ring { width: 190px; height: 190px; margin: 0 auto; border-radius: 50%; border: 13px solid #d8e2e8; outline: 2px solid var(--blue); outline-offset: -9px; display: grid; place-content: center; }
.score-ring span { font: 48px Georgia, serif; color: var(--blue); }
.score-ring small { color: var(--muted); }
.result-message { color: var(--muted); margin: 22px auto 0; max-width: 560px; line-height: 1.7; }
.category-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 44px 0 28px; }
.category-result { padding: 20px; background: var(--white); border: 1px solid var(--line); }
.category-result h3 { margin: 0 0 14px; font-size: 14px; }
.category-result strong { font: 28px Georgia, serif; }
.category-result p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.review-list { margin-top: 44px; display: grid; gap: 18px; }
.review-item { padding: 25px; background: var(--white); border-left: 4px solid var(--line); }
.review-item.correct { border-color: var(--good); }
.review-item.incorrect { border-color: var(--bad); }
.review-item h3 { margin: 0 0 10px; font-size: 16px; }
.review-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.review-item .review-question { line-height: 1.7; font-weight: 700; }
.answer-line { margin: 10px 0; font-size: 14px; }
.answer-line .good { color: var(--good); font-weight: 700; }
.answer-line .bad { color: var(--bad); font-weight: 700; }
.explanation { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.8; }
.perfect-message { padding: 24px; background: var(--white); border-left: 4px solid var(--good); }
dialog { max-width: 480px; width: calc(100% - 40px); border: 0; padding: 30px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(13, 33, 50, .58); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* Hero M&A matching visual: both parties' needs converge into a confirmed match. */
.process-visual { --match-cycle: 6s; width: 100%; min-width: 0; align-self: stretch; min-height: 500px; padding: 22px 24px 18px; border: 1px solid #d9e5fb; border-radius: 30px; background: rgba(247,250,255,.94); box-shadow: 0 28px 70px rgba(28,69,162,.12); overflow: hidden; position: relative; }
.process-visual::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(72,119,231,.14), transparent 70%); }
.visual-kicker { position: relative; z-index: 5; color: var(--blue); text-align: center; font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.process-canvas { width: 100%; height: 315px; max-width: 440px; margin: 0 auto; position: relative; }
.matching-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.search-orbit { fill: rgba(226,235,255,.18); stroke: #bed0f8; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 12; animation: orbit-flow 8s linear infinite; }
.match-route { fill: none; stroke: #4779e8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 10; animation: route-flow 1.3s linear infinite; }
.match-route-right { animation-direction: reverse; }
.candidate { fill: #79a0f1; transform-box: fill-box; transform-origin: center; animation: candidate-float 3.4s ease-in-out infinite; }
.candidate-b { animation-delay: -.8s; }
.candidate-c { animation-delay: -1.6s; opacity: .7; }
.candidate-d { animation-delay: -2.4s; opacity: .7; }
.match-party { position: absolute; z-index: 4; top: 102px; width: 98px; display: grid; justify-items: center; gap: 4px; color: #33435f; text-align: center; }
.match-party strong { font-size: 12px; }
.match-party small { color: #7b879b; font-size: 9px; }
.match-party-seller { left: -2px; animation: seller-meet var(--match-cycle) ease-in-out infinite; }
.match-party-buyer { right: -2px; animation: buyer-meet var(--match-cycle) ease-in-out infinite; }
.company-symbol { width: 62px; height: 62px; margin-bottom: 4px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 14px 12px 12px; border: 8px solid #9ab7f5; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(137,169,239,.12); }
.company-symbol i { width: 7px; border-radius: 2px 2px 0 0; background: #6f99ee; }
.company-symbol i:nth-child(1) { height: 16px; }
.company-symbol i:nth-child(2) { height: 26px; }
.company-symbol i:nth-child(3) { height: 20px; }
.match-party-buyer .company-symbol { border-color: #6f99ee; }
.match-token { position: absolute; z-index: 3; top: 146px; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(36,87,214,.12); opacity: 0; }
.match-token-left { left: 19%; animation: token-from-left var(--match-cycle) ease-in-out infinite; }
.match-token-right { right: 19%; animation: token-from-right var(--match-cycle) ease-in-out infinite; }
.match-core { position: absolute; z-index: 5; left: 50%; top: 150px; width: 92px; height: 92px; display: grid; place-content: center; justify-items: center; gap: 1px; border: 1px solid #d5e1fb; border-radius: 50%; color: var(--blue); background: #fff; box-shadow: 0 10px 28px rgba(36,87,214,.13); transform: translate(-50%,-50%); animation: core-match var(--match-cycle) ease-in-out infinite; }
.match-core::before { content: ""; position: absolute; inset: 8px; border: 5px solid #dce7ff; border-radius: 50%; }
.match-halo { position: absolute; inset: -15px; border: 2px solid #7ca2f4; border-radius: 50%; opacity: 0; animation: match-halo var(--match-cycle) ease-out infinite; }
.link-symbol { z-index: 2; width: 52px; height: 29px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.match-core strong { z-index: 2; font: 900 10px/1 Arial,sans-serif; letter-spacing: .14em; }
.match-check { position: absolute; z-index: 3; right: -2px; top: -2px; width: 24px; height: 24px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--blue); font-size: 12px; font-weight: 900; opacity: 0; transform: scale(.3); animation: check-pop var(--match-cycle) ease-out infinite; }
.match-chip { position: absolute; z-index: 6; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #dbe5f8; border-radius: 999px; color: #71809a; background: rgba(255,255,255,.92); box-shadow: 0 5px 12px rgba(30,64,140,.05); font-size: 9px; font-weight: 800; }
.match-chip i { width: 6px; height: 6px; border-radius: 50%; background: #c4d2ef; }
.chip-business { left: 25%; top: 66px; animation: chip-one var(--match-cycle) ease-in-out infinite; }
.chip-terms { left: 50%; top: 224px; transform: translateX(-50%); animation: chip-two var(--match-cycle) ease-in-out infinite; }
.chip-future { right: 24%; top: 70px; animation: chip-three var(--match-cycle) ease-in-out infinite; }
.match-steps { position: absolute; z-index: 4; left: 50%; bottom: 26px; width: min(330px,90%); display: grid; grid-template-columns: repeat(3,1fr); align-items: center; color: #8b96a9; transform: translateX(-50%); font-size: 8px; font-weight: 800; text-align: center; }
.match-steps span { position: relative; padding-top: 12px; }
.match-steps span::before { content: ""; position: absolute; top: 3px; left: 0; width: 100%; height: 2px; background: #dce5f5; }
.match-steps span::after { content: ""; position: absolute; top: 0; left: 50%; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #a9bce5; transform: translateX(-50%); }
.match-step-final { color: var(--blue); animation: final-label var(--match-cycle) ease-in-out infinite; }
.match-step-final::after { background: var(--blue) !important; }
.visual-caption { text-align: center; display: grid; gap: 6px; margin-top: 0; }
.visual-caption strong { color: var(--blue); font-size: 15px; letter-spacing: .08em; }
.visual-caption span { color: var(--muted); font-size: 12px; }
.exam-summary { display: grid; grid-template-columns: repeat(3,1fr); margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #dce5f5; }
.exam-summary div { text-align: center; border-right: 1px solid #dce5f5; }
.exam-summary div:last-child { border: 0; }
.exam-summary dt { color: var(--muted); font-size: 10px; }
.exam-summary dd { margin: 3px 0 0; color: var(--navy); font-weight: 900; }
@keyframes route-flow { to { stroke-dashoffset: -52; } }
@keyframes orbit-flow { to { stroke-dashoffset: 60; } }
@keyframes candidate-float { 0%,100% { transform: translateY(4px) scale(.82); opacity: .45; } 50% { transform: translateY(-5px) scale(1.08); opacity: 1; } }
@keyframes seller-meet { 0%,42%,78%,100% { transform: translateX(0); } 55%,68% { transform: translateX(8px); } }
@keyframes buyer-meet { 0%,42%,78%,100% { transform: translateX(0); } 55%,68% { transform: translateX(-8px); } }
@keyframes token-from-left { 0%,20% { left: 19%; opacity: 0; } 27% { opacity: 1; } 55% { left: 48%; opacity: 1; } 60%,100% { left: 48%; opacity: 0; } }
@keyframes token-from-right { 0%,20% { right: 19%; opacity: 0; } 27% { opacity: 1; } 55% { right: 48%; opacity: 1; } 60%,100% { right: 48%; opacity: 0; } }
@keyframes core-match { 0%,45%,82%,100% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 10px 28px rgba(36,87,214,.13); } 58%,72% { transform: translate(-50%,-50%) scale(1.08); box-shadow: 0 13px 35px rgba(36,87,214,.28); } }
@keyframes match-halo { 0%,48% { opacity: 0; transform: scale(.72); } 60% { opacity: .8; } 78%,100% { opacity: 0; transform: scale(1.35); } }
@keyframes check-pop { 0%,52%,82%,100% { opacity: 0; transform: scale(.3); } 60%,75% { opacity: 1; transform: scale(1); } }
@keyframes chip-one { 0%,16%,34%,100% { color: #71809a; border-color: #dbe5f8; } 22%,28% { color: var(--blue); border-color: #86a8f5; box-shadow: 0 0 0 4px rgba(82,126,226,.1); } }
@keyframes chip-two { 0%,28%,46%,100% { color: #71809a; border-color: #dbe5f8; } 34%,40% { color: var(--blue); border-color: #86a8f5; box-shadow: 0 0 0 4px rgba(82,126,226,.1); } }
@keyframes chip-three { 0%,40%,58%,100% { color: #71809a; border-color: #dbe5f8; } 46%,52% { color: var(--blue); border-color: #86a8f5; box-shadow: 0 0 0 4px rgba(82,126,226,.1); } }
@keyframes final-label { 0%,52%,84%,100% { opacity: .58; } 60%,76% { opacity: 1; text-shadow: 0 0 12px rgba(36,87,214,.24); } }
@media (prefers-reduced-motion: reduce) {
  .search-orbit, .match-route, .candidate, .match-party, .match-token, .match-core, .match-halo, .match-check, .match-chip, .match-step-final { animation: none; }
  .match-token { display: none; }
  .match-check { opacity: 1; transform: scale(1); }
  .match-halo { opacity: .35; transform: scale(1.08); }
  .match-chip { color: var(--blue); border-color: #86a8f5; }
  * { scroll-behavior: auto !important; }
}
@media (max-width: 820px) {
  .start-screen { grid-template-columns: 1fr; padding-top: 48px; }
  .scope-strip { grid-template-columns: repeat(2, 1fr); }
  .scope-strip span:nth-child(2) { border-right: 0; }
  .exam-screen { display: block; }
  .question-panel { position: fixed; inset: 78px auto 0 0; width: min(88vw, 330px); z-index: 15; transform: translateX(-105%); transition: transform .2s; overflow: auto; }
  .question-panel.open { transform: translateX(0); }
  .icon-button, .panel-open { display: block; }
  .panel-open { margin-bottom: 25px; border: 1px solid #aab4be; background: transparent; padding: 8px 12px; }
  .category-results { grid-template-columns: repeat(2, 1fr); }
  .process-visual { min-height: 470px; }
  .exam-builder { grid-template-columns: 1fr; gap: 24px; padding: 30px 24px; }
  .official-samples { grid-template-columns: 1fr; padding: 34px 26px; }
  .sample-intro { position: static; }
  .bank-header { display: grid; }
}
@media (max-width: 520px) {
  .glossary-screen { padding: 38px 16px 70px; }
  .glossary-hero { grid-template-columns: 1fr; padding: 26px 22px; }
  .glossary-hero .button { width: 100%; }
  .glossary-tools { grid-template-columns: 1fr; top: 68px; }
  .glossary-tools strong { padding-bottom: 0; }
  .glossary-card { grid-template-columns: 42px minmax(0,1fr); padding: 20px 16px; gap: 12px; }
  .glossary-number { width: 38px; height: 38px; }
  .glossary-card > a { display: none; }
  .topbar { padding: 0 16px; }
  .brand small { display: none; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px 12px 12px 4px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .brand strong { font-size: 11px; line-height: 1.35; }
  .sample-intro h2 { font-size: clamp(20px,6.4vw,28px); }
  .feedback-review-actions, .review-item-heading { align-items: flex-start; flex-direction: column; }
  .start-screen { gap: 30px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .builder-quick-actions { padding-top: 20px; }
  .scope-strip { grid-template-columns: 1fr 1fr; }
  .question-stage { padding: 28px 18px 55px; }
  .question-meta { align-items: flex-start; }
  .question-actions .button { padding: 0 15px; }
  .category-results { grid-template-columns: 1fr; }
  .process-visual { padding: 20px 12px 16px; min-height: 445px; border-radius: 22px; }
  .process-canvas { height: 290px; transform: scale(.92); transform-origin: center top; margin: -6px 0 0; }
  .builder-controls { grid-template-columns: 1fr; }
  .builder-controls .button { grid-column: 1; }
  .builder-note { text-align: left; }
  .taxonomy-toolbar { align-items: flex-start; flex-direction: column; }
  .taxonomy-levels { display: none; }
  .taxonomy-tree { max-height: 480px; padding: 8px; }
  .taxonomy-children { margin-left: 10px; padding-left: 7px; }
  .sample-grid { grid-template-columns: 1fr; }
  .bank-screen { padding: 38px 16px 70px; }
  .bank-toolbar { top: 78px; padding: 12px; }
  .bank-toolbar label { min-width: 0; flex: 1; }
  .bank-item { padding: 20px 16px; }
  .bank-item li { grid-template-columns: 28px 1fr; }
  .bank-item li em { grid-column: 2; }
  .legal-basis li { grid-template-columns: 1fr; gap: 2px; }
  .distractor-item summary { grid-template-columns: 28px 1fr 20px; }
  .distractor-item summary em { grid-column: 2; justify-self: start; }
  .distractor-item summary::after { grid-column: 3; grid-row: 1; justify-self: end; }
  .distractor-item[open] > div { padding-left: 16px; }
}
