:root{color-scheme:light;--navy:#15213b;--ink:#17233a;--muted:#546075;--cream:#f8f7f3;--paper:#fff;--line:#e4e5e7;--yellow:#ffce56;--ring:#2f6091;--blue:#e7eff9;--green:#e2eee5;--peach:#f7ead8;--lilac:#eeebf8;--radius:19px;font-family:system-ui,"Hiragino Sans","Yu Gothic UI",Meiryo,sans-serif;color:var(--ink);background:var(--cream)}
*,*::before,*::after{box-sizing:border-box}body{margin:0;min-width:280px}p{margin:0;line-height:1.65}h1,h2,h3{line-height:1.25;margin:0}a{color:#2d547f}img{display:block;max-width:100%}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}:focus-visible{outline:3px solid var(--ring);outline-offset:3px}[hidden]{display:none!important}svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;flex:none}.skip{position:absolute;top:-100px;left:10px;z-index:10;background:#fff;padding:10px}.skip:focus{top:7px}.container{width:min(1200px,calc(100% - 64px));margin:auto}
.header{background:#fff;border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:10px;align-items:center;color:var(--navy);text-decoration:none;font-size:1.45rem;font-weight:880;white-space:nowrap;letter-spacing:-.06em}.brand-latin{font-family:Georgia,serif;font-size:1.17em;letter-spacing:-.055em;margin-left:3px}.mark{background:var(--navy);color:var(--yellow);border-radius:12px;display:grid;place-items:center;width:43px;height:43px}.mark svg{width:25px;height:25px}nav{display:flex;align-self:stretch;gap:clamp(8px,3vw,34px)}nav a{display:inline-flex;align-items:center;position:relative;color:var(--muted);font-weight:720;text-decoration:none;font-size:.91rem;white-space:nowrap}nav a[aria-current]{color:var(--ink)}nav a[aria-current]::after{content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--yellow);border-radius:2px 2px 0 0}.saved-link{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 13px;white-space:nowrap;border:1px solid var(--line);border-radius:11px;color:var(--ink);text-decoration:none;font-weight:750;font-size:.88rem}.saved-link svg{width:17px;height:17px}
main{min-height:75vh}.main-inner{padding-block:27px 51px}.hero{height:324px;position:relative;border-radius:27px;background:var(--navy);color:#fff;isolation:isolate;overflow:hidden;display:flex;align-items:center}.hero-copy{position:relative;z-index:2;padding:0 clamp(23px,5.1vw,72px);max-width:690px}.hero-kicker{display:inline-flex;gap:8px;align-items:center;color:#fff5d8;font-size:.89rem;letter-spacing:.041em;margin-bottom:14px;font-weight:780}.hero-kicker::before{content:"";width:20px;height:4px;background:var(--yellow);border-radius:2px}.hero h1{font-size:clamp(2.45rem,6.45vw,5rem);font-weight:900;line-height:1.02;letter-spacing:-.085em}.hero h1 span{color:var(--yellow)}.hero p{margin-top:16px;color:#e3e8f7;font-weight:530}.hero img{width:56%;height:100%;object-fit:cover;position:absolute;inset:0 0 0 auto;z-index:-2;object-position:center}.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#15213b 0%,#15213b 34%,#15213bf2 40%,#15213b8c 60%,transparent 83%);z-index:-1;pointer-events:none}.search-panel{position:relative;z-index:2;background:white;border:1px solid var(--line);border-radius:17px;margin:-25px 26px 0;padding:14px 16px;box-shadow:0 10px 25px #18244210}.search-form{display:grid;grid-template-columns:1.45fr 1fr 1fr auto;align-items:end;gap:10px}.field{display:grid;gap:5px;min-width:0}.field span{font-size:.81rem;color:var(--muted);font-weight:810}.control{width:100%;min-width:0;min-height:44px;border:1px solid #d5dbe1;border-radius:10px;padding:8px 10px;background:white;color:var(--ink);font-size:.92rem}.control::placeholder{color:#657188}select.control{appearance:none;padding-right:29px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2343546a' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-size:16px;background-position:right 9px center;background-repeat:no-repeat}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;gap:8px;padding:8px 14px;border:1px solid transparent;border-radius:10px;background:var(--navy);color:white;font-size:.9rem;font-weight:790;text-decoration:none;line-height:1.2;text-align:center}.button svg{width:17px;height:17px}.button:hover{background:#294263}.button.yellow{background:var(--yellow);color:#1f2940}.button.yellow:hover{background:#f5be35}.button.outline{color:var(--ink);background:white;border-color:#d9dfe6}.button.outline:hover,.icon-button:hover{background:#eef2f8}.button.soft{background:#e9eff8;color:#253e64}.button.soft:hover{background:#dfe9fa}.button.small{font-size:.83rem;min-height:36px;padding:6px 10px}.button[aria-pressed=true]{background:#fff3cd;border-color:#edcf76;color:#423713}.link{font-weight:750;text-underline-offset:4px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.section{margin-top:33px}.section-title,.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-title h2,.panel-head h2{font-size:1.37rem;letter-spacing:-.04em}.category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.category{display:flex;align-items:center;min-height:68px;gap:10px;padding:11px;text-decoration:none;color:var(--ink);font-weight:780;font-size:.91rem;border:1px solid #00000009;border-radius:13px;transition:transform .13s}.category:hover,.exam-card:hover{transform:translateY(-2px);border-color:#abbad0}.icon-tile{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;color:var(--navy);background:#ffffffa6}.icon-tile svg{width:20px;height:20px}.t-blue{background:var(--blue)}.t-green{background:var(--green)}.t-peach{background:var(--peach)}.t-lilac{background:var(--lilac)}.t-yellow{background:#f8efcb}.t-grey{background:#eaf0f2}
.board{display:grid;grid-template-columns:minmax(0,2.06fr) minmax(260px,1fr);gap:14px;align-items:start}.cards{display:grid;gap:10px}.exam-card,.panel,.event-card,.question,.empty{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:16px;min-width:0}.exam-card{display:flex;gap:12px;align-items:center;transition:transform .13s,border-color .13s}.exam-card .card-main{flex:1;min-width:0}.card-main h3{font-size:1.08rem;overflow-wrap:anywhere}.card-main h3 a{color:var(--ink);text-decoration:none}.card-main h3 a:hover{text-decoration:underline}.card-main p{font-size:.84rem;color:var(--muted);margin-top:4px}.card-meta{margin-bottom:5px;display:flex;gap:6px;flex-wrap:wrap}.tag{display:inline-flex;width:fit-content;white-space:nowrap;align-items:center;padding:4px 8px;font-size:.73rem;line-height:1.32;font-weight:770;border-radius:6px;background:#edf1f6;color:#3d4e66}.tag.is-soon,.tag.is-open{background:#e3f1e8;color:#28583f}.tag.is-check{background:#f8eed6;color:#6a4c17}.tag.is-closed{background:#edeef0;color:#505d70}.icon-button{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:9px;background:white;color:#456182;border:1px solid var(--line)}.icon-button svg{width:18px;height:18px}.icon-button[aria-pressed=true]{color:#77551a;background:#fff3cd}.icon-button[aria-pressed=true] svg{fill:#ffce56}.compact-calendar{padding:17px}.compact-calendar .event-inline{border-top:1px solid var(--line)}.event-inline{display:flex;align-items:center;gap:11px;padding:11px 0;text-decoration:none;color:var(--ink)}.event-inline h3{font-size:.94rem}.event-inline p{font-size:.79rem;color:var(--muted);margin-top:4px}.calendar-stamp{width:58px;height:45px;flex:none;color:#28405d;background:#e9eff7;border-radius:10px;display:grid;place-items:center;font-size:.94rem;font-weight:840;font-variant-numeric:tabular-nums}.fine{color:var(--muted);font-size:.83rem}.empty{border-style:dashed;padding:25px;color:var(--muted);line-height:1.7}.empty h3{color:var(--ink);margin-bottom:8px}.empty .actions{margin-top:12px}.subhead{margin:8px 0 22px;display:flex;justify-content:space-between;align-items:flex-end;gap:15px;flex-wrap:wrap}.subhead h1{font-size:clamp(1.85rem,4vw,3rem);letter-spacing:-.055em}.subhead p{color:var(--muted);margin-top:8px}.subhead .category-label{font-size:.81rem;color:var(--muted);font-weight:750;margin-bottom:6px}.filters{margin:0;padding:13px}.results-note{margin:13px 0;color:var(--muted);font-size:.9rem}.detail-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,.95fr);gap:14px;align-items:start}.stack{display:grid;gap:12px}.detail-layout .panel h2{font-size:1.17rem;margin-bottom:9px}.detail-layout .panel p+p{margin-top:8px}.page-back{display:inline-flex;gap:6px;align-items:center;margin:0 0 12px;font-size:.86rem;font-weight:750}.page-back svg{width:16px;height:16px}.meta-table{margin:10px 0 0;display:grid;gap:0}.meta-table div{padding:10px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:9px}.meta-table dt{font-size:.85rem;color:var(--muted)}.meta-table dd{margin:0;color:var(--ink);font-size:.91rem;text-wrap:pretty}.detail-item{padding:12px 0;border-top:1px solid var(--line)}.detail-item:first-of-type{border:0}.detail-item h3{font-size:.96rem;margin:4px 0}.detail-item p{font-size:.87rem;color:var(--muted)}.notice{padding:12px 14px;background:#f6eed8;border-radius:11px;color:#594825;font-size:.84rem;margin-top:12px}.compact-note{margin:8px 0;color:var(--muted);font-size:.84rem}.inline-filter{max-width:310px}.timeline{display:grid;gap:10px}.event-card{display:flex;gap:13px;align-items:center}.event-card .card-main p{font-size:.86rem}.event-card .calendar-stamp{height:53px}.month-row{margin-bottom:12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.month-row .control{width:auto}.quiz-layout{max-width:790px;margin-inline:auto}.question h2{font-size:clamp(1.16rem,3vw,1.53rem);margin:9px 0 17px;line-height:1.55}.options{display:grid;gap:8px}.option{width:100%;text-align:left;background:white;color:var(--ink);border:1px solid #d4dce7;border-radius:11px;padding:11px 13px;min-height:47px;line-height:1.5}.option:hover,.option.chosen{background:#edf3fa}.option.correct{background:#e5f1e7;border-color:#65a47c}.option.wrong{background:#fae8e3;border-color:#c97669}.option:disabled{opacity:1;cursor:default}.feedback{margin-top:14px;padding:13px;border-radius:11px;background:#eff3f8}.quiz-controls{margin-top:13px;justify-content:space-between}.progress{width:100%;accent-color:#294d74;height:12px;margin-bottom:6px}.footnote{margin-top:17px;color:var(--muted);font-size:.82rem}.footer{border-top:1px solid var(--line);background:white}.footer-inner{min-height:71px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0}.footer p{font-size:.82rem;color:var(--muted)}#toast{position:fixed;right:15px;bottom:15px;background:var(--navy);color:white;padding:10px 14px;border-radius:10px;z-index:4}
@media(max-width:1020px){.category-grid{grid-template-columns:repeat(3,1fr)}.container{width:calc(100% - 42px)}.hero{height:300px}}
@media(max-width:690px){.container{width:calc(100% - 24px)}.header-inner{min-height:0;display:grid;grid-template-columns:1fr auto;gap:0 8px;padding-top:9px}.brand{font-size:1.18rem}.mark{width:35px;height:35px;border-radius:9px}.mark svg{width:20px;height:20px}.saved-link{font-size:.79rem;min-height:35px;padding:5px 8px}.header nav{grid-column:1/-1;grid-row:2;min-height:44px;justify-content:space-around;gap:8px}.header nav a{font-size:.84rem}.main-inner{padding-block:14px 34px}.hero{height:229px;border-radius:19px;align-items:start;padding-top:34px}.hero-copy{padding:0 15px}.hero h1{font-size:clamp(1.94rem,9vw,3.55rem)}.hero-kicker{font-size:.76rem;margin-bottom:10px}.hero p{font-size:.81rem;max-width:215px;margin-top:11px}.hero img{width:62%;object-position:63% center}.hero::after{background:linear-gradient(90deg,#15213b 0%,#15213b 29%,#15213bdc 46%,#15213b74 69%,transparent)}.search-panel{margin:-18px 5px 0;padding:10px;border-radius:12px}.search-form{grid-template-columns:1fr 1fr;gap:8px}.search-form .field:first-child,.search-form .button{grid-column:1/-1}.section{margin-top:23px}.section-title h2,.panel-head h2{font-size:1.17rem}.category-grid{gap:6px}.category{min-height:53px;gap:5px;padding:6px;font-size:.74rem}.icon-tile{width:29px;height:29px;border-radius:7px}.icon-tile svg{width:17px;height:17px}.board,.detail-layout{grid-template-columns:1fr}.exam-card,.event-card,.panel,.question{padding:12px}.event-card{flex-wrap:wrap}.exam-card{gap:8px}.exam-card .icon-tile{display:none}.card-main h3{font-size:.98rem}.meta-table div{grid-template-columns:6.5em 1fr}.footer-inner{align-items:start;flex-direction:column;gap:5px}.footer p{font-size:.79rem}.search-form select,.search-form input{font-size:1rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.discovery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.75rem}
.discovery-card h3{margin:.3rem 0 .45rem;font-size:1.11rem;line-height:1.4}
.discovery-card h3 a{color:inherit;text-decoration:underline;text-underline-offset:.2em}
.discovery-card>p:last-child{margin:0}
.paging{justify-content:center;margin-top:1.25rem}
.region-date{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:.2rem;text-align:left}
.region-date span{font-weight:400}
.detail-layout .region-date p+p{margin-top:0}
.region-date p{font-weight:400}
.fact-source {
  display: block;
  width: fit-content;
  margin-top: .25rem;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.exam-method-help { margin-top: .3rem; line-height: 1.5; }
.exam-badge {
  display: inline-grid;
  place-items: center;
  inline-size: 1.75em;
  block-size: 1.75em;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: max(.78em, .875rem);
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1;
  vertical-align: .08em;
}
.exam-badge-national { color: #174071; background: #edf4ff; }
.exam-badge-organization { color: #1d5c49; background: #eaf6ee; }
.exam-badge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin: 0 0 .85rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .875rem;
}
