:root {
  --ink: #26313a;
  --muted: #66747d;
  --line: #dce4e2;
  --paper: #fbfcfb;
  --white: #ffffff;
  --teal: #1d6b68;
  --teal-dark: #114a47;
  --wine: #7b2f45;
  --gold: #b88a35;
  --mist: #eef5f3;
  --blue: #315d86;
  --shadow: 0 16px 42px rgba(25, 45, 50, 0.14);
  color-scheme: light;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 260px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  background: radial-gradient(circle at 35% 28%, #ffffff, #e8f1ef);
}

.brand-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  padding: 10px 9px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--teal-dark);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(12, 45, 47, 0.78) 0%, rgba(20, 58, 58, 0.62) 40%, rgba(15, 38, 42, 0.18) 100%),
    url("hero-academic-exchange.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(251, 252, 251, 0), var(--paper));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 98px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #d8eee8;
  font-weight: 700;
  font-size: 14px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 860px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", YuMincho, serif;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.14;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
}

.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  color: #eef8f5;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}

.button.primary {
  background: var(--gold);
  color: #1f241f;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.button.outline {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 62px 0;
}

.section.compact {
  padding: 40px 0;
}

.section-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-header h2,
.page-section h2 {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", YuMincho, serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.28;
}

.section-header p,
.page-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(23, 50, 55, 0.05);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

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

.band {
  margin: 20px calc(50% - 50vw);
  padding: 54px max(16px, calc(50vw - 590px));
  background: var(--mist);
}

.notice-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.notice-list time {
  color: var(--teal-dark);
  font-weight: 700;
}

.page-hero {
  background: linear-gradient(125deg, #0f4a47, #315d86);
  color: var(--white);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #e7f3f1;
  font-size: 18px;
}

.page-section {
  padding: 52px 0;
}

.page-section h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.page-section p {
  max-width: 920px;
}

.list {
  margin: 16px 0 0;
  padding-left: 1.25em;
}

.list li + li {
  margin-top: 8px;
}

.flow {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 18px 62px;
  position: relative;
}

.flow li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

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

.info-table th {
  width: 260px;
  background: var(--mist);
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-email {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.language-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.site-footer {
  margin-top: 56px;
  background: #1f2c31;
  color: #edf4f3;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: #c9d8d5;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #e7f2ed;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0;
  color: #bacbc7;
  font-size: 13px;
}

.footer-bottom-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    padding: 12px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    padding: 12px;
  }

  .grid.three,
  .grid.two,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 58px 0 80px;
  }

  .notice-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand-text span {
    display: none;
  }

  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions,
  .language-switch {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
