.jes-app {
--jes-ink: #243447;
--jes-sub: #5b6b7f;
--jes-line: #dbe5ee;
--jes-bg: #f7fbff;
--jes-card: #fff;
--jes-blue: #2774b8;
--jes-teal: #1f8a7a;
--jes-purple: #7659ad;
--jes-gold: #a96f00;
--jes-gold-bg: #fff6d9;
box-sizing: border-box;
color: var(--jes-ink);
font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
line-height: 1.7;
margin: 1.5rem 0;
}
.jes-app *, .jes-app *::before, .jes-app *::after { box-sizing: inherit; }
.jes-app button, .jes-app input, .jes-app select { font: inherit; }
.jes-ui { background: var(--jes-bg); border: 1px solid var(--jes-line); border-radius: 18px; overflow: clip; }
.jes-header { background: linear-gradient(135deg, #eaf7ff, #fff5f9); padding: 22px 20px 16px; }
.jes-header h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); margin: 0 0 6px; }
.jes-header p { margin: 0; }
.jes-kicker { color: var(--jes-blue); font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.jes-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jes-stat { background: #fff; border: 1px solid var(--jes-line); border-radius: 999px; font-size: .82rem; padding: 4px 11px; }
.jes-searchbar { align-items: center; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--jes-line); display: flex; gap: 8px; padding: 12px 16px; position: sticky; top: 0; z-index: 5; }
.jes-query { border: 1px solid #b9c8d5; border-radius: 10px; flex: 1; min-width: 0; padding: 11px 12px; }
.jes-app button { border: 1px solid var(--jes-line); border-radius: 10px; cursor: pointer; min-height: 44px; padding: 9px 13px; }
.jes-filter-toggle, .jes-reset-button { background: #fff; color: var(--jes-ink); }
.jes-filter-panel { background: #fff; border-bottom: 1px solid var(--jes-line); padding: 16px; }
.jes-filter-group + .jes-filter-group { margin-top: 15px; }
.jes-filter-label { color: var(--jes-sub); font-size: .84rem; font-weight: 700; margin: 0 0 6px; }
.jes-prefecture { background: #fff; border: 1px solid #b9c8d5; border-radius: 10px; min-height: 44px; padding: 9px 10px; width: 100%; }
.jes-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.jes-pill { background: #fff; color: var(--jes-ink); min-height: 40px !important; padding: 7px 12px !important; }
.jes-pill.is-active { background: var(--jes-blue); border-color: var(--jes-blue); color: #fff; }
.jes-pill[data-category="得点保障"].is-active { background: var(--jes-teal); border-color: var(--jes-teal); }
.jes-pill[data-category="出願資格"].is-active { background: var(--jes-purple); border-color: var(--jes-purple); }
.jes-pill[data-category="特待・学費免除"].is-active { background: var(--jes-gold); border-color: var(--jes-gold); }
.jes-note { color: var(--jes-sub); font-size: .78rem; margin: 5px 0 0; }
.jes-filter-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.jes-scholarship-button { background: linear-gradient(#ffd96a, #f2b932); border-color: #d69b18 !important; color: #543800; font-weight: 700; }
.jes-scholarship-button.is-active { box-shadow: inset 0 0 0 2px #8f5c00; }
.jes-scholarship-list { background: var(--jes-gold-bg); border-bottom: 1px solid #ead69a; padding: 11px 16px; }
.jes-scholarship-list summary { color: #684800; cursor: pointer; font-weight: 700; }
.jes-school-jumps { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 10px; }
.jes-jump { background: #fff; color: var(--jes-blue); font-size: .84rem; min-height: 38px !important; padding: 6px 10px !important; text-decoration: underline; }
.jes-result-heading { background: #fff; border-bottom: 1px solid var(--jes-line); font-size: .95rem; padding: 12px 16px; scroll-margin-top: 70px; }
.jes-result-heading strong { color: var(--jes-blue); font-size: 1.15rem; margin-right: 4px; }
.jes-cards { display: grid; gap: 13px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); padding: 16px; }
.jes-card { background: var(--jes-card); border: 1px solid var(--jes-line); border-radius: 14px; padding: 16px; scroll-margin-top: 75px; }
.jes-card.is-highlighted { animation: jes-highlight 2.4s ease; outline: 4px solid #ffd34d; }
@keyframes jes-highlight { 0%, 100% { background: #fff; } 30% { background: #fff9d9; } }
.jes-card h4 { font-size: 1.1rem; margin: 0 0 2px; }
.jes-location { color: var(--jes-sub); font-size: .82rem; }
.jes-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.jes-badge, .jes-category { border-radius: 999px; font-size: .73rem; padding: 3px 8px; }
.jes-badge { background: #eef4f8; border: 1px solid #d0dbe4; }
.jes-badge.is-official { background: #e8f6ee; border-color: #b7dfc6; color: #166534; }
.jes-badge.is-unconfirmed { background: #fff4d8; border-color: #e6c66f; color: #805a00; }
.jes-badge.is-past { background: #fdf0e6; border-color: #edc89b; color: #874700; }
.jes-category { color: #fff; }
.jes-category.is-score { background: var(--jes-blue); }
.jes-category.is-guarantee { background: var(--jes-teal); }
.jes-category.is-eligibility { background: var(--jes-purple); }
.jes-category.is-scholarship { background: var(--jes-gold); }
.jes-card dl { font-size: .88rem; margin: 10px 0; }
.jes-card dt { color: var(--jes-sub); font-size: .78rem; font-weight: 700; margin-top: 10px; }
.jes-card dd { margin: 2px 0 0; }
.jes-grade-title { font-size: .82rem; font-weight: 700; margin: 8px 0 3px; }
.jes-grade-table-wrap { overflow-x: auto; }
.jes-grade-table { border-collapse: collapse; font-size: .84rem; margin: 3px 0 7px; min-width: 240px; width: 100%; }
.jes-grade-table th, .jes-grade-table td { border: 1px solid var(--jes-line); padding: 5px 8px; text-align: left; }
.jes-grade-table th { background: #f1f6f9; white-space: nowrap; }
.jes-warning { background: #fff7df; border: 1px solid #e7cf84; border-radius: 9px; font-size: .8rem; margin-top: 8px; padding: 7px 9px; }
.jes-source { border-top: 1px dashed var(--jes-line); color: var(--jes-sub); font-size: .76rem; margin-top: 11px; padding-top: 8px; }
.jes-source a { font-weight: 700; }
.jes-empty, .jes-error, .jes-loading { margin: 0; padding: 22px; text-align: center; }
.jes-sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
@media (max-width: 640px) {
.jes-header { padding: 18px 14px 14px; }
.jes-searchbar { align-items: stretch; flex-direction: column; padding: 10px 12px; }
.jes-filter-panel { padding: 14px 12px; }
.jes-filter-actions { grid-template-columns: 1fr; }
.jes-cards { grid-template-columns: 1fr; padding: 12px; }
.jes-card { padding: 14px; }
.jes-pill { flex: 1 1 auto; }
}