:root {
  --navy: #112d78;
  --navy-2: #172b66;
  --gold: #e99a13;
  --gold-2: #f3b64c;
  --ivory: #fbf7ef;
  --mist: #eef3f8;
  --ink: #101827;
  --muted: #607089;
  --line: #dce4ef;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 45, 120, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 228, 239, 0.8);
}

.nav {
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 184px;
  height: auto;
  object-fit: contain;
}

.brand strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 700;
  color: #26334d;
}

.nav-links a {
  padding: 26px 0 22px;
  border-bottom: 3px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #d68506);
  box-shadow: 0 12px 26px rgba(233, 154, 19, 0.28);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  color: var(--navy);
  border-color: var(--line);
  background: #fff;
}

.hero {
  min-height: 680px;
  color: #fff;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(5, 18, 52, .9) 0%, rgba(10, 28, 72, .7) 42%, rgba(10, 28, 72, .18) 74%), url("tokyo-university-hero.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, rgba(17,45,120,.95), rgba(17,45,120,0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  margin-left: clamp(28px, 13vw, 240px);
  margin-right: auto;
  padding: 72px 0 120px;
}

@media (min-width: 1024px) {
  .hero-content {
    transform: none;
  }
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.24;
  font-weight: 850;
}

.hero p {
  margin: 0 0 34px;
  max-width: 570px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.proof-strip {
  position: relative;
  z-index: 3;
  margin-top: -82px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(135deg, #102a72, #173981);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-item {
  padding: 24px 22px;
  border-right: 1px solid rgba(255,255,255,.2);
}

.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: 34px; line-height: 1; color: #fff; }
.proof-item span { display: block; margin-top: 8px; color: rgba(255,255,255,.75); font-weight: 700; }

.section {
  padding: 92px 0;
}

.section.mist { background: var(--mist); }
.section.ivory { background: var(--ivory); }
.section.navy { background: linear-gradient(135deg, #0c1c49, #112d78); color: #fff; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: 0;
}

.section.navy .section-title { color: #fff; }

.section-desc {
  margin: 12px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.section.navy .section-desc { color: rgba(255,255,255,.72); }

.dao-grid,
.service-grid,
.case-grid,
.faculty-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.dao-grid { grid-template-columns: repeat(3, 1fr); }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.case-grid { grid-template-columns: repeat(4, 1fr); }
.faculty-grid { grid-template-columns: repeat(4, 1fr); }
.contact-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }

.panel,
.service-card,
.case-card,
.faculty-card,
.process-card,
.form-card,
.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(17,45,120,.07);
}

.panel {
  min-height: 260px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(233,154,19,.26);
  border-radius: 50%;
}

.panel h3,
.service-card h3,
.case-card h3,
.faculty-card h3,
.process-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.25;
}

.panel .code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

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

.service-card {
  padding: 28px;
}

.service-card.gold {
  background: linear-gradient(180deg, #fffdf8, #fff7e8);
  border-color: rgba(233,154,19,.45);
}

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

.list li {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  color: #33425d;
}

.list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
}

.comparison {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.comparison th,
.comparison td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.comparison th:first-child,
.comparison td:first-child {
  text-align: left;
  font-weight: 800;
  color: #33425d;
}

.comparison th {
  background: #f7f9fc;
  color: var(--navy);
}

.comparison th.vip,
.comparison td.vip {
  background: #fff8e9;
  color: #92550a;
}

.check { color: #0aa867; font-weight: 900; }
.gold-check { color: var(--gold); font-weight: 900; }

.case-card {
  padding: 22px;
}

.case-card .school {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--navy);
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.tag {
  padding: 4px 9px;
  border: 1px solid rgba(233,154,19,.35);
  border-radius: 999px;
  color: #8a560f;
  background: #fff8e9;
  font-size: 12px;
  font-weight: 800;
}

.faculty-card {
  padding: 24px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--navy);
  background: linear-gradient(135deg, #f4f7fb, #fff7e8);
  border: 1px solid var(--line);
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.process-card {
  padding: 20px;
  min-height: 176px;
}

.process-card .num {
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.cta {
  padding: 54px 0;
  background: linear-gradient(135deg, #0d1c47, #112d78);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 44px solid rgba(233,154,19,.16);
}

.cta .section-title {
  color: #fff;
}

.cta .section-desc {
  color: rgba(255,255,255,.76);
}

.form-card {
  padding: 28px;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.form-card textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.footer {
  padding: 44px 0 30px;
  background: #09152f;
  color: rgba(255,255,255,.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 30px;
}

.footer h4 {
  color: #fff;
  margin: 0 0 12px;
}

.footer a { display: block; margin: 7px 0; color: rgba(255,255,255,.7); }

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}

.copyright,
.copyright a,
.copyright span {
  color: rgba(255,255,255,.62);
}

.copyright a {
  display: inline;
  margin: 0;
  text-decoration: none;
}

.copyright a:hover {
  color: #fff;
}

.filing-domain {
  display: inline-block;
  margin-left: 12px;
}

.page-hero {
  padding: 92px 0 78px;
  background: linear-gradient(135deg, #0d1c47, #112d78 62%, #21418f);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 40px;
  width: 360px;
  height: 360px;
  border: 44px solid rgba(233,154,19,.16);
  border-radius: 50%;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.page-card {
  padding: 28px;
}

.page-card h2,
.page-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.notice {
  padding: 54px;
  border: 1px dashed rgba(233,154,19,.65);
  border-radius: var(--radius);
  background: #fffaf0;
  text-align: center;
}

.notice h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 36px;
}

.library-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
}

.library-panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.library-panel strong {
  display: block;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.library-panel span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.search-box {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: 0 10px 30px rgba(17,45,120,.05);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--gold);
  background: #fff8e9;
  color: #9b5b09;
}

.result-note {
  margin: -6px 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.case-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-library-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 14px 34px rgba(17,45,120,.07);
}

.case-library-card .case-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.case-library-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.25;
}

.case-summary {
  display: grid;
  gap: 11px;
  margin: 14px 0;
}

.case-summary p {
  margin: 0;
  color: #41516f;
  font-size: 14px;
}

.case-summary b {
  color: var(--ink);
}

.case-details {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.case-details summary {
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
}

.detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.detail-block {
  padding: 12px;
  border-radius: var(--radius);
  background: #f7f9fc;
}

.detail-block b {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
}

.detail-block p {
  margin: 0;
  color: #41516f;
  font-size: 14px;
  white-space: pre-line;
}

.faculty-library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mentor-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(17,45,120,.07);
}

.mentor-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  background: linear-gradient(135deg, #f8fbff, #fff7e8);
}

.mentor-art img {
  width: 188px;
  height: 188px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center center;
  border: 1px solid rgba(220, 228, 239, 0.9);
  box-shadow: 0 12px 26px rgba(17,45,120,.12);
}

.mentor-body {
  padding: 22px;
}

.mentor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mentor-group,
.mentor-index {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.mentor-group {
  color: #8a560f;
  background: #fff8e9;
  border: 1px solid rgba(233,154,19,.35);
}

.mentor-index {
  color: var(--navy);
  background: #f4f7fb;
  border: 1px solid var(--line);
}

.mentor-body h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 22px;
}

.mentor-role {
  color: #9b5b09;
  font-weight: 900;
  margin-bottom: 12px;
}

.mentor-meta {
  display: grid;
  gap: 9px;
  color: #41516f;
  font-size: 14px;
}

.mentor-meta b {
  color: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; }
  .menu-toggle { display: block; }
  .proof-grid,
  .dao-grid,
  .service-grid,
  .case-grid,
  .faculty-grid,
  .case-library-grid,
  .faculty-library-grid,
  .library-hero,
  .timeline,
  .contact-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero { min-height: 620px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand { min-width: 168px; }
  .brand img { width: 158px; }
  .nav { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: absolute;
    right: 0;
    top: 17px;
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: 0 8px 18px rgba(17, 45, 120, 0.2);
  }
  .nav-actions .btn { display: none; }
  .hero-content { padding: 54px 0 110px; }
  .hero h1 { font-size: 44px; }
  .hero h2 { font-size: 24px; }
  .hero p { font-size: 16px; }
  .proof-grid,
  .dao-grid,
  .service-grid,
  .case-grid,
  .faculty-grid,
  .timeline,
  .contact-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .proof-strip { margin-top: -58px; }
  .proof-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .section { padding: 68px 0; }
  .section-head { display: block; }
  .comparison { overflow-x: auto; }
  .comparison table { min-width: 760px; }
  .toolbar { grid-template-columns: 1fr; }
  .filter-row { justify-content: flex-start; }
  .case-library-grid,
  .faculty-library-grid,
  .library-hero {
    grid-template-columns: 1fr;
  }
}
