:root {
  --bg: #0c1220;
  --panel: #0f1a2d;
  --card: #111f34;
  --accent: #7de1c3;
  --text: #e7ecf3;
  --muted: #9fb0c6;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(125, 225, 195, 0.12), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(104, 140, 255, 0.12), transparent 26%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 18px auto 0;
  background: rgba(12, 18, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: sticky;
  top: 12px;
  z-index: 10;
  backdrop-filter: blur(8px);
  max-width: 1100px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(125, 225, 195, 0.75);
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(125, 225, 195, 0.08);
}

.hero {
  margin: 36px 0 30px;
  padding: 32px 28px 40px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 26, 45, 0.95), rgba(17, 31, 52, 0.95));
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin: 10px 0 6px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: 0.01em;
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.01em;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.tagline {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 17px;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: url("Media/hero.jpg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content.split {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.hero-text {
  flex: 1;
}

.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 140px;
}

.hero-photo-block .hero-photo {
  margin-bottom: 0;
}

.hero-photo-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  max-width: 160px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.primary {
  background: var(--accent);
  color: #0a1321;
  box-shadow: 0 12px 24px rgba(125, 225, 195, 0.35);
  border: none;
}

.cta.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.cta.primary:hover {
  background: #9df1d8;
  box-shadow: 0 14px 30px rgba(125, 225, 195, 0.45);
}

.tagline-quote {
  margin: 6px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(125, 225, 195, 0.08);
  font-weight: 700;
  letter-spacing: 0.01em;
}

main {
  padding: 0 0 64px;
}

section {
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 26, 45, 0.85);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

section p {
  color: var(--muted);
  margin: 6px 0 0;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.card {
  padding: 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.card small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.list {
  padding-left: 18px;
  color: var(--muted);
}

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

.pill {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(125, 225, 195, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

footer {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-link {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  background: rgba(125, 225, 195, 0.08);
}

.legacy-frame {
  width: 100%;
  min-height: 30vh;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.hero-media-en {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background: url("Media/hero.jpg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  pointer-events: none;
}

.pub-list {
  color: var(--text);
  line-height: 1.6;
  padding-left: 18px;
}

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

.legacy-courses span,
.legacy-courses b,
.legacy-students span,
.legacy-students b {
  font-weight: 500 !important;
}

.hero-content.split .hero-photo {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .nav {
    position: static;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-content.split {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content.split .hero-photo {
    margin-top: 8px;
  }

  .hero {
    padding: 26px 20px 32px;
  }
}

/* Legacy layout helpers (from legacy.css) */
/* Global reset for legacy pages */
body {
  background: radial-gradient(circle at 20% 20%, rgba(125, 225, 195, 0.12), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(104, 140, 255, 0.12), transparent 26%),
    var(--bg);
  color: var(--text) !important;
  font-family: "Avenir Next", "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent) !important;
}

img {
  max-width: 100%;
  height: auto;
}

/* Center old fixed-width layouts and lighten background */
#body_content {
  width: min(1100px, 100% - 32px) !important;
  margin: 28px auto !important;
  padding: 24px !important;
  background: rgba(15, 26, 45, 0.85) !important;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.legacy-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 18, 32, 0.9);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.legacy-nav__inner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 700;
}

.legacy-nav__note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.paragraph_style,
.paragraph_style_1,
.paragraph_style_2,
.paragraph_style_3,
.paragraph_style_4,
.paragraph_style_5,
.paragraph_style_6,
.paragraph_style_7,
.paragraph_style_8,
.paragraph_style_9,
.paragraph_style_10,
.paragraph_style_11,
.paragraph_style_12,
.paragraph_style_13,
.paragraph_style_14,
.paragraph_style_15,
.paragraph_style_16 {
  color: var(--text) !important;
  line-height: 1.6 !important;
}

.Header,
.Title,
.Title1 {
  color: var(--text) !important;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  padding: 6px 8px;
  border: 1px solid var(--border);
}

ol,
ul {
  color: var(--text);
}
