:root {
    --primary: #1F5C4A;
    --secondary: #1E3557;
    --bg: #F7F8F7;
    --surface: #FFFFFF;
    --border: #D8E0DC;
    --text: #1F2933;
    --muted: #667085;
    --warning: #8A5A12;
    color-scheme: light;
    font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--secondary);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    background: #174739;
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.page-narrow {
    width: min(920px, calc(100% - 32px));
}

.page-high-school-detail {
    width: min(1040px, calc(100% - 40px));
}

.page-high-schools {
    width: min(1080px, calc(100% - 40px));
}

.page-events {
    width: min(1080px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: visible;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto 1fr minmax(260px, 360px);
    gap: 18px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    min-height: 80px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: flex-start;
    width: 176px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    max-width: none;
    height: 168px;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: translateY(-43px);
}

.global-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
}

.global-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 8px;
    color: var(--secondary);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.global-nav a:hover {
    color: var(--primary);
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 36px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: #98A2B3;
}

.breadcrumbs a {
    color: var(--muted);
}

h1,
h2,
h3,
h4 {
    letter-spacing: 0;
}

h1 {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: clamp(1.8rem, 4.4vw, 2.9rem);
    line-height: 1.25;
}

h2 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.3rem;
    line-height: 1.45;
}

h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.06rem;
    line-height: 1.5;
}

.lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-note {
    margin: 10px 0 16px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.hero-copy {
    display: grid;
    gap: 8px;
}

.hero-copy h1 {
    margin-bottom: 0;
}

.hero-copy h1 span {
    display: block;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-visual img {
    display: block;
    width: min(100%, 460px);
    height: auto;
}

.hero-speech {
    position: relative;
    display: inline-grid;
    justify-self: start;
    gap: 2px;
    max-width: min(100%, 340px);
    margin: 4px 0 2px;
    padding: 12px 16px;
    border: 1px solid #C9DDD5;
    border-radius: 8px;
    color: var(--primary);
    background: #F7FBF9;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.45;
}

.hero-speech::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 24px;
    width: 12px;
    height: 12px;
    border-right: 1px solid #C9DDD5;
    border-bottom: 1px solid #C9DDD5;
    background: #F7FBF9;
    transform: rotate(45deg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.primary-link:hover {
    background: #174739;
    color: #fff;
}

.home-search-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #FAFBFA;
}

.home-section,
.content-section {
    margin-top: 28px;
}

.section-header {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-header a {
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 700;
}

.search-panel,
.detail-panel,
.static-page,
.contact-panel,
.teacher-hero,
.latest-teacher-card,
.teacher-history-section,
.school-hero {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.search-panel {
    margin-bottom: 20px;
}

.search-panel h1,
.school-hero h1,
.teacher-hero h1,
.static-page h1,
.contact-panel h1 {
    overflow-wrap: anywhere;
}

.search-form,
.filter-form,
.school-filter-form {
    display: grid;
    gap: 14px;
    margin: 0;
}

.search-keyword {
    grid-column: 1 / -1;
}

.search-filters {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(140px, 1fr) minmax(120px, 0.8fr) auto;
    gap: 12px;
    align-items: end;
}

.filter-form {
    grid-template-columns: minmax(150px, 1fr) 130px minmax(150px, 1fr) minmax(150px, 1fr) auto;
    align-items: end;
}

.school-filter-form {
    grid-template-columns: minmax(120px, 160px) minmax(160px, 220px) auto;
    align-items: end;
}

.school-filter-form button {
    justify-self: start;
    min-width: 140px;
}

.high-school-search-form {
    grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(120px, 0.8fr)) auto;
}

.event-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.event-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.event-filter-actions a {
    color: var(--muted);
    font-weight: 700;
}

.high-school-check {
    align-self: end;
    min-height: 46px;
    display: flex !important;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
}

.high-school-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.high-school-check span {
    display: inline;
    min-width: 0;
}

.high-school-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.high-school-search-actions a {
    color: var(--muted);
    font-weight: 700;
}

.high-school-active-conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #C2D7D0;
    border-radius: 8px;
    background: #F7FBF9;
}

.high-school-active-conditions p {
    margin: 0;
    color: var(--secondary);
    font-weight: 800;
}

.high-school-active-conditions ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.high-school-active-conditions li {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #E7F1ED;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field,
.filter-form label,
.event-filter-form label,
.school-filter-form label,
.contact-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field span {
    display: block;
}

input[type="search"],
.search-form input,
.search-form select,
.filter-form input,
.filter-form select,
.event-filter-form select,
.school-filter-form select,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid #B9C5BF;
    border-radius: 6px;
    color: var(--text);
    background: var(--surface);
}

.search-keyword input {
    min-height: 56px;
    font-size: 1.06rem;
}

.search-button {
    align-self: end;
    min-height: 46px;
    padding: 0 26px;
    white-space: nowrap;
}

.area-links,
.filter-links,
.year-nav,
.help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.area-links a,
.filter-links a,
.year-nav a,
.help-links a,
.detail-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    text-decoration: none;
    font-weight: 700;
}

.area-links a:hover,
.filter-links a:hover,
.year-nav a:hover,
.help-links a:hover,
.detail-link:hover,
.secondary-link:hover {
    border-color: var(--primary);
}

.filter-links {
    margin-top: 14px;
    color: var(--muted);
}

.filter-links span,
.year-nav span {
    font-weight: 700;
}

.filter-links a[aria-current="page"],
.year-nav a[aria-current="page"] {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.year-nav {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.year-nav a {
    min-height: 34px;
    padding: 0 10px;
}

.area-seo-copy {
    display: grid;
    gap: 6px;
    margin: 14px 0 6px;
    padding: 12px 14px;
    border-left: 4px solid var(--primary);
    background: #F4F8F6;
}

.area-seo-copy p {
    margin: 0;
    color: var(--text);
    line-height: 1.75;
}

.compact-link-section {
    margin-top: 18px;
}

.area-note {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    background: #EDF3F0;
    font-weight: 700;
}

.coverage-grid,
.feature-grid,
.summary-grid,
.school-list-grid {
    display: grid;
    gap: 12px;
}

.coverage-grid,
.summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid,
.school-list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.high-school-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.feature-card,
.coverage-card,
.summary-card,
.school-list-card,
.result-card,
.movement-card,
.teacher-history-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.transfer-feature-card {
    border-color: #C2D7D0;
    background: #F7FAF8;
}

.home-transfer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
}

.home-transfer-grid .transfer-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 0;
    width: 100%;
}

.transfer-feature-card .detail-link {
    margin-top: 4px;
}

.feature-card p,
.school-list-card p,
.summary-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.high-school-list-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.high-school-list-card p {
    margin: 0;
}

.high-school-card-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.school-list-card .school-list-type {
    color: var(--muted);
    font-weight: 700;
}

.high-school-name {
    margin: 0;
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
}

.high-school-event-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 4px 11px;
    border: 1px solid #B7791F;
    border-radius: 999px;
    background: #FFF4D6;
    color: #7A4A00;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.3;
}

.high-school-deviation {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #E7F1ED;
    color: var(--primary);
    font-size: 1.02rem;
    font-weight: 800;
}

.high-school-meta {
    color: var(--text);
}

.high-school-departments {
    color: var(--secondary);
    font-weight: 800;
}

.high-school-feature-text {
    color: var(--text) !important;
    line-height: 1.7;
}

.high-school-subtle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.high-school-subtle-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #FAFBFA;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.high-school-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}

.high-school-card-actions a {
    justify-content: center;
    min-width: 132px;
    text-align: center;
}

.high-school-card-actions .detail-link {
    min-height: 42px;
    padding: 8px 14px;
}

.high-school-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.high-school-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 9px;
    border: 1px solid #C2D7D0;
    border-radius: 999px;
    background: #EFF7F4;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.high-school-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.high-school-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.high-school-action-link:hover {
    background: #174739;
    color: #fff;
}

.high-school-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #F6F8F7;
}

.high-school-checkpoint-box {
    padding: 22px;
    border: 1px solid #C2D7D0;
    border-radius: 8px;
    background: #F7FBF9;
}

.high-school-checkpoint-box ul {
    margin: 12px 0 18px;
    padding-left: 1.35em;
    line-height: 1.8;
}

.high-school-checkpoint-box li + li {
    margin-top: 4px;
}

.high-school-source-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #F6F8F7;
}

.high-school-source-box p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.high-school-source-box p + p {
    margin-top: 6px;
}

.event-card-list {
    display: grid;
    gap: 14px;
}

.event-month-list {
    display: grid;
    gap: 28px;
}

.event-month-section h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1.18rem;
}

.event-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.event-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.event-card-link:hover .event-title,
.event-card-link:focus-visible .event-title {
    color: var(--primary);
    text-decoration: underline;
}

.event-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.event-school-name {
    margin: 0 0 6px;
    font-size: 1.2rem;
    line-height: 1.35;
}

.event-school-name a {
    color: var(--text);
    text-decoration: none;
}

.event-school-name a:hover,
.event-school-name a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

.event-date {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 8px;
    background: #E7F1ED;
    color: var(--primary);
    font-weight: 800;
}

.event-title {
    color: var(--text);
    font-weight: 700;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 0;
}

.event-details div {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #F6F8F7;
}

.event-details dt {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.event-details dd {
    margin: 3px 0 0;
    color: var(--text);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.event-application-date {
    border: 1px solid #D8E8E0;
}

.event-application-deadline {
    border-color: #F0C8B8;
    background: #FFF4EF;
}

.event-application-deadline dt,
.event-application-deadline dd {
    color: #9A3F1E;
}

.event-details dd[class^="event-application-status--"] {
    display: inline-flex;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 800;
}

.event-application-status--open {
    border: 1px solid #A8D8C0;
    background: #ECF8F0;
    color: #126236;
}

.event-application-status--closed {
    border: 1px solid #F0C8B8;
    background: #FFF4EF;
    color: #9A3F1E;
}

.event-application-status--before-open,
.event-application-status--required {
    border: 1px solid #D9C9A8;
    background: #FFF8E8;
    color: #7A4A00;
}

.event-application-status--not-required {
    border: 1px solid #C2D7D0;
    background: #EFF7F4;
    color: var(--primary);
}

.event-application-status--official-check {
    border: 1px solid #D4DBE3;
    background: #F5F7FA;
    color: #475467;
}

.event-card-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.home-upcoming-event-groups {
    display: grid;
    gap: 24px;
}

.home-upcoming-event-group h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 1.12rem;
}

.home-upcoming-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.home-upcoming-event-card {
    min-height: 100%;
}

.home-upcoming-event-card a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
}

.home-upcoming-event-card a:hover,
.home-upcoming-event-card a:focus-visible {
    border-color: #C2D7D0;
    background: #F7FBF9;
}

.home-event-date-box {
    display: grid;
    place-items: center;
    min-width: 76px;
    min-height: 72px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #E7F1ED;
    color: var(--primary);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1;
}

.home-event-card-body {
    min-width: 0;
}

.home-event-card-body h4 {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.35;
}

.home-event-type,
.home-event-application {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin: 8px 6px 0 0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.3;
}

.home-event-type {
    border: 1px solid #C2D7D0;
    background: #EFF7F4;
    color: var(--primary);
}

.home-event-application {
    border: 1px solid #D9C9A8;
    background: #FFF8E8;
    color: #7A4A00;
}

.article-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.article-card h2,
.article-card h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.45;
}

.home-article-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.home-article-card {
    min-height: 160px;
}

.article-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.article-meta {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.article-actions {
    margin-top: auto !important;
}

.article-detail .lead {
    color: var(--secondary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.8;
}

.article-body {
    margin-top: 28px;
}

.article-body h2 {
    margin: 32px 0 10px;
    font-size: 1.32rem;
}

.article-body p {
    margin: 0 0 16px;
    line-height: 1.95;
}

.comparison-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    border: 1px solid var(--border);
    background: var(--surface);
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    line-height: 1.65;
}

.comparison-table thead th {
    background: #F6F8F7;
    color: var(--secondary);
    font-weight: 800;
}

.comparison-table tbody th {
    width: 22%;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.feature-card .high-school-note p {
    margin: 0;
}

.feature-card .high-school-note p + p {
    margin-top: 4px;
}

.feature-card .high-school-note {
    color: var(--text);
}

.feature-card .high-school-note strong {
    font-weight: 700;
}

.high-school-coming-soon {
    font-size: 0.88rem;
    color: var(--muted);
}

.high-school-detail-title {
    margin-bottom: 12px;
    font-size: 2rem;
    line-height: 1.25;
}

.high-school-detail-page {
    padding: 32px;
}

.high-school-detail-page > .section-note {
    max-width: 760px;
    margin: 0 0 28px;
}

.high-school-detail-page .static-subsection {
    margin-top: 38px;
    padding-top: 30px;
}

.high-school-detail-page .static-subsection h2 {
    margin: 0 0 16px;
}

.high-school-detail-page .static-subsection p {
    margin-top: 0;
}

.high-school-basic-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.high-school-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.high-school-detail-grid div {
    padding: 14px 16px;
    border-radius: 8px;
    background: #F6F8F7;
}

.high-school-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.high-school-detail-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 1rem;
}

.high-school-compare-card {
    padding: 24px;
    border: 1px solid #C2D7D0;
    border-radius: 8px;
    background: #F7FBF9;
}

.high-school-compare-card .section-note {
    margin-bottom: 18px;
}

.high-school-compare-card .high-school-link-actions {
    gap: 14px;
    margin-top: 0;
}

.high-school-compare-card .detail-link {
    min-height: 44px;
    padding: 0 16px;
    background: #fff;
}

.high-school-planned-list {
    margin: 10px 0 0;
    padding-left: 1.3em;
    color: var(--text);
    line-height: 1.8;
}

.area-school-movement-summary {
    overflow-wrap: anywhere;
}

.coverage-card h3,
.summary-card h3 {
    color: var(--muted);
    font-size: 0.95rem;
}

.coverage-card p,
.summary-card strong {
    display: block;
    margin: 8px 0 0;
    color: var(--secondary);
    font-size: 1.3rem;
    font-weight: 800;
}

.movement-summary-card {
    display: grid;
    gap: 14px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    background: var(--surface);
}

.movement-summary-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
}

.movement-summary-header span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 3px 10px;
    border: 1px solid #C2D7D0;
    border-radius: 999px;
    color: var(--primary);
    background: #EFF7F4;
    font-size: 0.88rem;
    font-weight: 700;
}

.movement-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.movement-summary-grid div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #FBFCFC;
}

.movement-summary-grid dt {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.movement-summary-grid dd {
    margin: 4px 0 0;
    color: var(--secondary);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
}

.movement-summary-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.75;
}

.movement-trend-card,
.area-ranking-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.movement-trend-card {
    margin: 18px 0;
}

.compact-section-header {
    margin-bottom: 12px;
}

.compact-section-header span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.movement-trend-list,
.area-ranking-card ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: area-ranking;
}

.movement-trend-list li {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) repeat(3, minmax(76px, auto));
    gap: 8px 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
}

.movement-trend-list li:first-child {
    border-top: 0;
}

.movement-trend-list span:not(:first-child) {
    color: var(--muted);
    font-size: 0.94rem;
}

.area-ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.area-ranking-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1rem;
}

.area-ranking-card li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: baseline;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    counter-increment: area-ranking;
}

.area-ranking-card li:first-child {
    border-top: 0;
}

.area-ranking-card li::before {
    content: counter(area-ranking) ".";
    color: var(--muted);
    font-weight: 800;
}

.area-ranking-card a {
    min-width: 0;
    color: var(--text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.area-ranking-card span {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.school-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.school-related-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.school-related-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1rem;
}

.school-related-list,
.school-related-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.school-related-list {
    list-style: none;
}

.school-related-list li {
    min-width: 0;
}

.school-related-card a {
    overflow-wrap: anywhere;
    font-weight: 800;
}

.school-related-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    width: fit-content;
    max-width: 100%;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #FBFCFC;
    text-decoration: none;
}

.school-related-links a:hover {
    border-color: var(--primary);
}

.home-updates {
    margin-top: 24px;
}

.home-updates h2 {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 1rem;
}

.update-card {
    max-width: 680px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.update-summary {
    display: grid;
    gap: 6px;
    margin: 0;
}

.update-summary div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.update-summary dt {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.65;
    white-space: nowrap;
}

.update-summary dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.notice,
.error,
.empty,
.success-message {
    margin: 20px 0;
    padding: 13px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.75;
}

.notice {
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    color: var(--muted);
    background: #FBFCFC;
}

.notice p,
.error p {
    margin: 0;
}

.notice p + p,
.error p + p {
    margin-top: 6px;
}

.search-portal-guide {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 20px;
    border: 1px solid #C9DDD5;
    border-radius: 8px;
    background: #F7FBF9;
}

.search-portal-guide h2 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 1.15rem;
}

.search-portal-guide p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.search-portal-guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-portal-guide-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    text-decoration: none;
    font-weight: 700;
}

.search-portal-guide-links a:hover {
    border-color: var(--primary);
}

.error {
    border: 1px solid #E6B8B0;
    background: #FFF4F2;
}

.empty {
    border: 1px solid var(--border);
    background: var(--surface);
}

.success-message {
    border: 1px solid #B9D9C8;
    background: #F0FAF4;
}

.result-count {
    margin: 20px 0 12px;
    color: var(--muted);
    font-weight: 700;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--secondary);
    background: #F0F4F2;
    font-weight: 800;
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table td {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.result-list,
.movement-list,
.history-list {
    display: grid;
    gap: 14px;
}

.history-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.card-head,
.latest-card-head,
.history-card-head,
.movement-card-head,
.year-heading {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-head h2,
.movement-card-head h4 {
    margin: 0;
    overflow-wrap: anywhere;
}

.year,
.history-year {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 700;
}

.match-reason,
.source-year-label,
.school-type-badge,
.movement-badge,
.caution-label {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.match-reason,
.school-type-badge,
.movement-badge {
    border: 1px solid #C2D7D0;
    color: var(--primary);
    background: #EFF7F4;
}

.source-year-label,
.caution-label {
    border: 1px solid #E4C88A;
    color: var(--warning);
    background: #FFF8E7;
}

.school-type-badge.is-empty {
    border-color: var(--border);
    color: var(--muted);
    background: #F4F6F5;
}

.result-fields,
.teacher-summary-fields,
.teacher-history-fields,
.movement-fields,
.detail-fields,
.data-summary {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 9px 14px;
    margin: 0 0 14px;
}

.result-fields dt,
.teacher-summary-fields dt,
.teacher-history-fields dt,
.movement-fields dt,
.detail-fields dt,
.data-summary dt {
    color: var(--muted);
    font-weight: 700;
}

.result-fields dd,
.teacher-summary-fields dd,
.teacher-history-fields dd,
.movement-fields dd,
.detail-fields dd,
.data-summary dd {
    margin: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.detail-link {
    border-color: var(--primary);
    color: var(--primary);
}

.detail-link:hover {
    color: #fff;
    background: var(--primary);
}

.latest-teacher-card {
    margin-top: 18px;
    border-left: 5px solid var(--primary);
}

.latest-school {
    margin: 0 0 16px;
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.teacher-history-section,
.school-history {
    margin-top: 20px;
}

.school-history {
    display: grid;
    gap: 24px;
}

.year-group {
    padding-top: 22px;
    border-top: 2px solid var(--border);
}

.movement-group {
    margin-top: 18px;
}

.movement-group h3 {
    margin: 0 0 12px;
}

.movement-card {
    border-left-width: 5px;
}

.incoming-card {
    border-left-color: var(--primary);
}

.outgoing-card {
    border-left-color: var(--warning);
}

.outgoing-card .movement-badge {
    border-color: #E4C88A;
    color: var(--warning);
    background: #FFF8E7;
}

.teacher-move-line {
    margin: 0 0 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.school-summary {
    margin: 0 0 14px;
    color: var(--secondary);
    font-weight: 700;
}

.static-page p,
.contact-panel p {
    line-height: 1.8;
}

.static-subsection {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.static-subsection h2 {
    margin-bottom: 12px;
}

.static-subsection h3 {
    margin: 18px 0 6px;
}

.data-summary {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #FAFBFA;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.contact-form .honeypot-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    min-width: 0;
    height: 1px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    pointer-events: none;
    white-space: nowrap;
}

.contact-target-page {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #FAFBFA;
    color: var(--muted);
    font-size: 0.94rem;
    overflow-wrap: anywhere;
}

.contact-target-page span:first-child {
    color: var(--text);
    font-weight: 700;
}

.contact-form textarea {
    resize: vertical;
    line-height: 1.7;
}

.required-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #fff;
    background: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 14px 0 18px;
}

.result-list + .pagination,
.table-scroll + .pagination {
    margin-top: 18px;
}

.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.pagination-link:hover {
    border-color: var(--primary);
}

.pagination-link.is-current {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.pagination-link.is-disabled {
    color: #98A2B3;
    background: #F1F4F2;
}

.pagination-ellipsis {
    min-width: 28px;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.ad-slot {
    display: grid;
    place-items: center;
    min-height: 112px;
    margin: 28px 0;
    border: 1px dashed #B8C6BF;
    border-radius: 8px;
    background: #FAFBFA;
}

.ad-slot::before {
    content: "広告枠";
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.muted {
    margin: 0;
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .site-header-inner {
        grid-template-columns: auto 1fr;
        gap: 10px 16px;
        padding: 10px 0;
    }

    .brand {
        width: 160px;
        height: 64px;
    }

    .brand img {
        height: 152px;
        transform: translateY(-40px);
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-visual img {
        width: min(100%, 380px);
    }

    .search-filters,
    .filter-form,
    .event-filter-form,
    .high-school-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-button,
    .filter-form button {
        width: 100%;
    }

    .feature-grid,
    .school-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-upcoming-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .area-ranking-grid,
    .school-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page {
        width: min(100% - 24px, 1120px);
        padding-top: 18px;
    }

    .page-high-school-detail {
        width: min(100% - 24px, 1120px);
    }

    .page-high-schools {
        width: min(100% - 24px, 1120px);
    }

    .page-events {
        width: min(100% - 24px, 1120px);
    }

    .site-header {
        position: static;
    }

    .site-header-inner {
        width: min(100% - 24px, 1180px);
        grid-template-columns: 1fr;
        align-items: start;
    }

    .brand {
        width: 140px;
        height: 56px;
    }

    .brand img {
        height: 132px;
        transform: translateY(-35px);
    }

    .global-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .global-nav a {
        min-height: 34px;
        padding: 0 6px;
        font-size: 0.9rem;
    }

    .home-hero,
    .search-panel,
    .detail-panel,
    .static-page,
    .contact-panel,
    .teacher-hero,
    .latest-teacher-card,
    .teacher-history-section,
    .school-hero,
    .home-search-card,
    .contact-form {
        padding: 16px;
    }

    .hero-visual img {
        width: min(100%, 320px);
    }

    .high-school-detail-page {
        padding: 16px;
    }

    .high-school-detail-page .static-subsection {
        margin-top: 30px;
        padding-top: 24px;
    }

    .high-school-compare-card {
        padding: 18px;
    }

    .high-school-compare-card .high-school-link-actions {
        gap: 10px;
    }

    .search-filters,
    .filter-form,
    .school-filter-form,
    .event-filter-form,
    .high-school-search-form,
    .coverage-grid,
    .summary-grid,
    .movement-summary-grid,
    .movement-trend-list li,
    .feature-grid,
    .high-school-list-grid,
    .school-list-grid,
    .area-ranking-grid,
    .school-related-grid,
    .result-fields,
    .teacher-summary-fields,
    .teacher-history-fields,
    .movement-fields,
    .detail-fields,
    .data-summary,
    .high-school-detail-grid {
        grid-template-columns: 1fr;
    }

    .update-summary div {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 10px;
    }

    .card-head,
    .high-school-card-head,
    .latest-card-head,
    .history-card-head,
    .movement-card-head,
    .year-heading,
    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-button,
    .school-filter-form button,
    .event-filter-actions button,
    .high-school-search-actions button,
    .contact-form button {
        width: 100%;
    }

    .event-filter-actions,
    .high-school-search-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .search-portal-guide-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .high-school-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .high-school-card-actions a {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }

    .high-school-card-actions .high-school-action-link,
    .high-school-card-actions .detail-link {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .home-transfer-grid .transfer-feature-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .home-upcoming-event-grid {
        grid-template-columns: 1fr;
    }

    .article-list-grid {
        grid-template-columns: 1fr;
    }

    .home-upcoming-event-card a {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .home-event-date-box {
        justify-items: start;
        min-height: 52px;
    }
}
