:root {
  --ink: #14213d;
  --ink-soft: #4a5568;
  --line: #dfe3ea;
  --paper: #ffffff;
  --paper-alt: #f5f6f9;
  --navy: #0f2a4a;
  --accent: #b8862f;
  --accent-dark: #96691c;
  --radius: 6px;
  --width: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-decoration: none;
}

.brand-main {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-sub {
  color: var(--ink-soft);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 600;
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch a {
  display: block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.lang-switch a.is-current {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.hero {
  padding: 72px 0 64px;
  background: var(--navy);
  color: #ffffff;
}

.hero-sub {
  color: #d9c08a;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.hero-title {
  margin-top: 12px;
  font-size: 40px;
  line-height: 1.4;
}

.hero-lead {
  max-width: 640px;
  margin-top: 16px;
  color: #d5dbe6;
}

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-top: 32px;
}

.hero-count {
  margin-top: 16px;
  color: #d5dbe6;
  font-size: 14px;
}

select,
button {
  font: inherit;
}

select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.hero-search button,
.filter button {
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search button:hover,
.filter button:hover {
  background: var(--accent-dark);
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--paper-alt);
}

.section-title {
  font-size: 24px;
  line-height: 1.5;
}

.section-note {
  margin-left: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 400;
}

.section-lead {
  max-width: 720px;
  margin-top: 12px;
  color: var(--ink-soft);
}

.pathway-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 24px;
  counter-reset: pathway;
}

.pathway-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.6;
  counter-increment: pathway;
}

.pathway-list li::before {
  display: block;
  color: var(--accent);
  font-size: 13px;
  content: counter(pathway, decimal-leading-zero);
}

.country-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.country-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
}

.country-name {
  font-weight: 600;
}

.country-count {
  color: var(--ink-soft);
  font-size: 13px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.value-item h3 {
  padding-top: 12px;
  border-top: 2px solid var(--accent);
  font-size: 17px;
}

.value-item p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

.page-head {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}

.breadcrumb {
  font-size: 13px;
}

.page-title {
  font-size: 30px;
  line-height: 1.45;
}

.page-original {
  color: var(--ink-soft);
  font-size: 15px;
}

.page-lead {
  max-width: 760px;
  margin-top: 10px;
  color: var(--ink-soft);
}

.verified {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 560px;
}

.filter label {
  font-size: 14px;
  font-weight: 600;
}

.result-count {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.empty {
  margin-top: 16px;
  color: var(--ink-soft);
}

.school-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.school-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.school-card-title {
  font-size: 19px;
  line-height: 1.5;
}

.school-card-title a {
  text-decoration: none;
}

.school-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.school-card-summary {
  margin-top: 10px;
  font-size: 15px;
}

.school-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  font-size: 14px;
}

.spec {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.spec > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  color: var(--ink-soft);
  font-size: 14px;
}

.prose {
  max-width: 760px;
  margin-top: 16px;
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

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

.fee-table thead th {
  border-bottom: 2px solid var(--navy);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.fee-table tbody th {
  font-weight: 600;
}

.fee-table .is-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.currency {
  color: var(--ink-soft);
  font-size: 12px;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
}

.source {
  margin-left: 8px;
  font-size: 13px;
}

.note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.back {
  margin-top: 32px;
  font-size: 14px;
}

.site-footer {
  padding: 32px 0;
  background: var(--navy);
  color: #d5dbe6;
  font-size: 14px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 16px;
}

.footer-nav a {
  color: #ffffff;
  font-size: 13px;
}

.footer-copy {
  margin-top: 16px;
  font-size: 12px;
}

.prose h2 {
  margin-top: 36px;
  font-size: 19px;
  line-height: 1.5;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  margin-top: 12px;
  padding-left: 1.5em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-top: 6px;
}

.prose .effective {
  margin-top: 36px;
  color: var(--ink-soft);
  font-size: 14px;
}

.info-table {
  width: 100%;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-collapse: collapse;
}

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

.info-table th {
  width: 180px;
  padding-right: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 400;
}

.info-table td {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-search {
    flex-direction: column;
  }

  .section {
    padding: 40px 0;
  }

  .page-title {
    font-size: 24px;
  }

  .spec > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
