*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fbfaf5;color:#203a34;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;line-height:1.8}a{color:inherit;text-underline-offset:4px}a:focus-visible,summary:focus-visible,button:focus-visible{outline:3px solid #bd741b;outline-offset:4px}a:hover{text-decoration:underline}svg{vertical-align:middle}.wrap{width:min(1176px,91%);margin:auto}.head{background:#fffefa;border-bottom:1px solid #d5d7cc}.headin,.brand,.nav,.grades,.sectionhead,.meta,footer .wrap{display:flex;align-items:center}.headin{min-height:80px;gap:26px}.brand{text-decoration:none;font-weight:850;font-size:23px;gap:10px;white-space:nowrap;letter-spacing:-.06em}.brand svg{width:33px}.nav{gap:22px;margin-left:auto}.nav a,.grades a,.sectionhead a{text-decoration:none;font-size:.9rem;font-weight:650}.nav a:hover,.sectionhead a:hover{text-decoration:underline}.grades{gap:2px;border:1px solid #c8cfc0;background:#f5f5eb;border-radius:25px;padding:3px}.grades a{padding:3px 12px;border-radius:20px;white-space:nowrap}.grades [aria-current]{background:#284b40;color:white}.hero{margin-top:28px;border-radius:15px;overflow:hidden;background-color:#224a40;background-image:linear-gradient(90deg,#244b41 35%,transparent 75%),linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:auto,22px 22px,22px 22px;display:grid;grid-template-columns:1.04fr 1fr;align-items:center;padding:36px 32px 37px 46px;color:#fff9df;position:relative}.eyebrow{font:650 .79rem/1.6 ui-monospace,monospace;letter-spacing:.14em}.hero .eyebrow{color:#d4dda9;display:flex;align-items:center;gap:10px}.eyebrow i{height:1px;width:28px;background:currentColor}.hero h1{font-size:clamp(32px,4vw,57px);letter-spacing:.025em;line-height:1.35;margin:13px 0}.hero p{color:#edf0df;margin:0 0 23px}.btn{display:inline-flex;align-items:center;gap:8px;border-radius:7px;background:#f2ce75;color:#263c30;font-weight:750;padding:10px 19px;text-decoration:none}.hero img{width:100%;height:auto}.sectionhead{justify-content:space-between;gap:15px;margin:32px 0 13px}.sectionhead h2{margin:0;font-size:clamp(21px,2.3vw,29px);letter-spacing:.045em}.sectionhead small,.minor{font:600 .76rem/1.5 ui-monospace,monospace;color:#667c6a;letter-spacing:.1em}.secname{display:flex;align-items:baseline;gap:13px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.card,.paper,.row,.contents{background:#fffefa;border:1px solid #d2d8c9;border-radius:10px}.card{padding:19px 21px 17px;display:block;text-decoration:none;position:relative;box-shadow:0 3px 0 #233c3510}.card:hover{border-color:#779984;text-decoration:none;transform:translateY(-2px)}.tile{display:inline-grid;place-items:center;background:#e2ebdb;color:#2b5645;border-radius:11px;width:50px;height:50px}.card:nth-child(2) .tile{background:#f7e9c4;color:#785b31}.card:nth-child(3) .tile{background:#e0e9ed;color:#405d6f}.tile svg{width:31px;height:31px}.card h3{margin:12px 0 3px;font-size:20px}.card p{font-size:.94rem;color:#55675e;margin:0}.rows{display:grid;gap:8px}.row{display:flex;align-items:center;gap:18px;padding:13px 19px;text-decoration:none}.year{font:bold 1.13rem ui-monospace,monospace;color:#536f59}.subj{font-size:.83rem;padding:2px 9px;border-radius:5px;background:#eaf0e4;color:#3c5949}.row b{flex:1}.crumb{font-size:.88rem;color:#52685a;margin:23px 0}.intro{padding:24px 0}.intro h1,.paper h1{font-size:clamp(27px,4vw,43px);line-height:1.45;letter-spacing:.025em;margin:8px 0}.intro p{max-width:55em}.paper{padding:clamp(21px,4vw,51px);max-width:900px;margin:0 auto 20px}.paper p{line-height:1.95}.paper h2{font-size:1.4rem;border-left:4px solid #b6c685;padding-left:13px;margin:32px 0 12px}.paper h3{font-size:1.12rem}.flow{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;list-style:none;padding:17px;background:#edf2e7;border-radius:8px;counter-reset:flow}.flow li{background:#fffefa;padding:8px 11px;border:1px solid #d4ddca;border-radius:5px;flex:1 1 140px;line-height:1.6}.flow li:before{counter-increment:flow;content:counter(flow,decimal-leading-zero);display:block;font:600 .79rem monospace;color:#56765c;margin-bottom:5px}details{border:1px solid #c7d1bf;border-radius:7px;background:#fafcf6;margin:20px 0;padding:12px 16px}summary{cursor:pointer;font-weight:bold}li+li{margin-top:.35em}.flow li+li{margin-top:0}.answer{font-weight:700;background:#f7edcb;border-left:4px solid #cca95a;padding:15px;white-space:pre-line}.question{white-space:pre-line}.contents{padding:16px 24px;background:#f3f5ec}.contents ul{columns:2;list-style:none;padding:0}.contents a{font-size:.94rem}.meta{gap:10px;flex-wrap:wrap}.jump{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.jump a{padding:7px 14px;border:1px solid #b9c7b5;border-radius:6px;text-decoration:none}.jump a:hover{background:#e5eddd}.note{font-size:.94rem;color:#506257}.stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #cdd6c6;border-radius:8px;overflow:hidden;margin:24px 0}.stats>div{background:#f1f5ea;padding:12px}.stats dt{font-size:.84rem}.stats dd{font-weight:bold;margin:0}footer{border-top:1px solid #d5d9cb;margin-top:48px;padding:23px 0;color:#526759}footer .wrap{justify-content:space-between;gap:18px;flex-wrap:wrap}.skip{position:absolute;left:-999px}.skip:focus{position:relative;left:10px}button{font:inherit}.mark{display:inline-flex;align-items:center;gap:8px;font-weight:bold;cursor:pointer}.mark input{width:20px;height:20px;accent-color:#385d49}.readtag{font-size:.8rem;color:#48644c}.smallprint{font-size:.85rem} @media(max-width:880px){.headin{gap:12px;flex-wrap:wrap;padding:13px 0}.nav{order:3;width:100%;justify-content:center;border-top:1px solid #e0e4d9;padding-top:8px}.headin .grades{margin-left:auto}.hero{padding:28px;grid-template-columns:1fr .83fr}.hero h1{font-size:37px}.card{padding:16px}.nav a{font-size:.87rem}} @media(max-width:640px){.wrap{width:92%}.brand{font-size:19px}.brand svg{width:27px}.grades a{padding:2px 8px}.nav{gap:18px}.hero{margin-top:16px;padding:24px 22px 2px;grid-template-columns:1fr}.hero h1{font-size:35px}.hero p{margin-bottom:16px}.hero img{max-height:170px;margin:0 auto}.cards{grid-template-columns:1fr;gap:9px}.card{display:grid;grid-template-columns:52px 1fr;column-gap:14px}.tile{grid-row:span 2}.card h3{margin:0}.card p{font-size:.9rem}.secname small{display:none}.row{flex-wrap:wrap;gap:7px 11px;padding:12px}.row b{flex:1 0 100%}.stats{grid-template-columns:1fr}.contents ul{columns:1}.sectionhead{margin-top:25px}.paper{padding:18px}.nav{justify-content:space-between;gap:6px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card:hover{transform:none}}
.calc-launch{position:fixed;bottom:18px;right:18px;background:#244d41;color:white;border:1px solid #648675;border-radius:28px;padding:10px 17px;box-shadow:0 3px 14px #1234;cursor:pointer;font-weight:700;z-index:4}.calc-launch svg{width:19px;margin-right:5px}.calculator{position:fixed;bottom:76px;right:18px;width:min(315px,calc(100vw - 28px));max-height:calc(100dvh - 90px);overflow:auto;border:1px solid #99ad98;border-radius:14px;background:#f2f3e6;box-shadow:0 10px 35px #1234;padding:15px;z-index:5}.calchead{display:flex;justify-content:space-between;align-items:center}.closecalc{border:none;background:transparent;text-decoration:underline;cursor:pointer}.screen{background:#dce5cd;border:1px solid #a9b59c;border-radius:6px;padding:4px 10px;text-align:right;margin:9px 0;color:#233a2e}.screen output{font:600 1.65rem/1.4 ui-monospace,monospace;display:block}.calc-state{font: .8rem/1.4 monospace;min-height:1.4em}.keys{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.keys button{padding:3px;background:#fffefa;border:1px solid #bdc6b8;border-radius:5px;cursor:pointer}.keys .op{background:#f4d68f}.keys button:active{background:#c1cdb6}footer{padding-bottom:76px}
.drill label{display:block;font-weight:650}.drill input{width:10em;max-width:62%;font:inherit;padding:5px 9px;border:1px solid #879a88;border-radius:4px}.drill button{border:0;background:#2b5547;color:white;border-radius:5px;padding:6px 13px;cursor:pointer}.feedback{color:#385a44;font-weight:650}
.exam-table{border-collapse:collapse;width:100%;margin:24px 0;font-size:.95rem}.exam-table th,.exam-table td{text-align:left;padding:8px;border-bottom:1px solid #d2d8c9;vertical-align:top}.exam-table thead th{background:#eaf0e4}.exam-table tbody th,.exam-table time{white-space:nowrap}.exam-table tbody tr:target{background:#f7edcb}@media(max-width:500px){.exam-table{font-size:.81rem}.exam-table th,.exam-table td{padding:5px}.exam-table time{white-space:normal}}
.question-sheet{margin:2rem 0 3rem;scroll-margin-top:10px}.question-sheet img{display:block;width:100%;height:auto;background:white;border:1px solid #ccd4c5}.question-transcript{background:#fffefa}.question-transcript pre{white-space:pre-wrap;overflow-wrap:anywhere;font: .94rem/1.65 ui-monospace,monospace}
