:root {
  --bg: #fbfdfe;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #2f4550;
  --muted: #68808a;
  --line: rgba(124, 164, 178, 0.18);
  --accent: #118CCF;
  --accent-deep: #74bfe7;
  --accent-soft: #f3fbff;
  --support-green: #A9D06B;
  --support-red: #EB6161;
  --shadow: 0 22px 56px rgba(138, 175, 187, 0.12);
  --sidebar-width: 404px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-sans: "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(17, 140, 207, 0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(169, 208, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfeff 0%, #fffdfb 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

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

.site-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
}

.sidebar__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(171, 223, 247, 0.96), rgba(132, 201, 236, 0.92));
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 8px;
}

.brand strong {
  font-size: 1.36rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.brand__eyebrow,
.sidebar__title,
.hero__eyebrow,
.section-heading__eyebrow,
.panel__eyebrow,
.profile-card__role {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.sidebar__section {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar__section a,
.sidebar__section p {
  margin: 0;
  line-height: 1.7;
}

.sidebar__section a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px 6px 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sidebar__section a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--support-green), var(--support-red));
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.sidebar__section a:hover,
.sidebar__section a.is-current {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar__section a:hover::before,
.sidebar__section a.is-current::before {
  opacity: 1;
}

.sidebar__section--note {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.74);
}

.sidebar__mascot {
  width: 150px;
  margin-top: 12px;
  align-self: center;
  filter: drop-shadow(0 14px 28px rgba(77, 129, 151, 0.24));
  animation: mascotFloat 3.8s ease-in-out infinite;
}

.content {
  display: flex;
  flex-direction: column;
  padding: 24px 28px 40px 0;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 76vh;
  border-radius: 34px;
  background: #a8daf6;
  box-shadow: var(--shadow);
}

.page-hero {
  min-height: 36vh;
  background:
    linear-gradient(120deg, rgba(173, 225, 247, 0.88), rgba(169, 208, 107, 0.4)),
    url("../images/hero/hero-sub01.png") center/cover;
}

.page-hero__body,
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 72px 64px;
  color: white;
}

.hero__media,
.hero__overlay,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(92, 141, 164, 0.42) 0%, rgba(120, 177, 196, 0.18) 52%, rgba(152, 204, 217, 0.2) 100%),
    radial-gradient(circle at right center, rgba(255, 255, 255, 0.26), transparent 30%);
}

.hero-slide {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 6s ease;
  background-position: center;
  background-size: cover;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero h1,
.page-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1.12;
  text-wrap: balance;
}

.hero__headline-top,
.hero__headline-bottom {
  display: block;
  font-size: 1em;
}

.hero__headline-top {
  white-space: normal;
}

.hero__headline-bottom {
  margin-top: 6px;
}

.hero__lead {
  margin: 0;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.84);
  text-wrap: pretty;
}

.hero__lead span {
  display: block;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.news-filter:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: white;
  color: var(--accent-deep);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button--hero {
  background: white;
  color: var(--accent);
  min-height: 60px;
  padding: 0 36px;
  font-size: 1.14rem;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(47, 118, 168, 0.22);
}

.section {
  margin-top: 26px;
  padding: 38px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
  transform-origin: center top;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.section:hover,
.voice-card:hover,
.menu-feature__lead:hover,
.menu-feature__content:hover,
.panel:hover,
.faculty-card:hover,
.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(14, 31, 36, 0.16);
  border-color: rgba(17, 140, 207, 0.22);
}

.section--intro {
  margin-top: -72px;
  position: relative;
  z-index: 3;
}

#news { order: 2; }
#about { order: 3; }
#programs { order: 4; }
#career-paths { order: 5; }
#voices { order: 6; }
#links { order: 7; }
#admissions { order: 8; }

.lead-block {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(232, 245, 253, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(17, 140, 207, 0.14);
}

.lead-block--feature {
  margin-bottom: 0;
}

.about-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.about-highlight {
  padding: 26px 24px;
  border-radius: 24px;
  color: white;
  box-shadow: var(--shadow);
}

.about-highlight p {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.8;
}

.about-highlight--blue {
  background: linear-gradient(135deg, rgba(101, 189, 234, 0.96), rgba(85, 166, 217, 0.92));
}

.about-highlight--green {
  background: linear-gradient(135deg, rgba(169, 208, 107, 0.94), rgba(130, 197, 137, 0.92));
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.feature-panel {
  padding: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.98));
  border: 1px solid rgba(90, 174, 221, 0.18);
  box-shadow: var(--shadow);
}

.feature-panel__eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-deep);
}

.feature-panel h3 {
  margin: 10px 0 16px;
  font-size: 1.5rem;
  line-height: 1.3;
}

.feature-panel__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  line-height: 1.85;
  color: var(--muted);
}

.training-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.training-card {
  padding: 26px 26px 28px;
  border: 3px solid rgba(107, 151, 223, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
}

.training-card h3 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.9rem;
  line-height: 1.2;
  color: #303846;
}

.training-card p {
  margin: 0;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #3f4954;
}

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

.section-heading {
  margin-bottom: 22px;
}

.section-heading--row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.section-heading h2,
.panel h2,
.cta-card h2,
.profile-card h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  line-height: 1.24;
  text-wrap: balance;
}

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

.intro-grid,
.simple-grid,
.link-groups,
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.simple-card,
.link-group,
.news-card,
.faculty-card,
.panel,
.profile-card,
.cta-card {
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.feature-card,
.simple-card,
.link-group,
.news-card,
.faculty-card {
  padding: 24px;
}

.feature-card__number {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--accent);
}

.intro-grid .feature-card:nth-child(1) {
  border-top: 5px solid var(--accent);
}

.intro-grid .feature-card:nth-child(2) {
  border-top: 5px solid var(--support-green);
}

.intro-grid .feature-card:nth-child(3) {
  border-top: 5px solid var(--support-red);
}

.feature-card h3,
.simple-card h3,
.news-card h3,
.link-group h3,
.timeline__item h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.feature-card p,
.simple-card p,
.panel p,
.link-group li,
.news-card p,
.profile-card p,
.timeline__item p,
.cta-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 30px;
}

.panel--accent {
  background: linear-gradient(180deg, #f3fbff 0%, #ffffff 100%);
}

.check-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-deep);
  font-weight: 700;
}

.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.faculty-card__intro,
.practice-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.faculty-card__avatar,
.practice-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: contain;
  object-position: center top;
  background: #f4f7fa;
  border: 1px solid rgba(16, 33, 40, 0.08);
  padding: 8px;
}

.faculty-card__head {
  display: grid;
  gap: 8px;
}

.faculty-card__head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.faculty-card__role {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faculty-card__kana {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faculty-card__edb {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(17, 140, 207, 0.1);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: normal;
}

.faculty-card__edb-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.faculty-card__edb-icon::before,
.faculty-card__edb-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  border-top: 2px solid currentColor;
}

.faculty-card__edb-icon::before {
  top: 3px;
}

.faculty-card__edb-icon::after {
  bottom: 3px;
}

.faculty-card__specialty {
  color: var(--text);
}

.faculty-card__section h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.faculty-card__section p {
  margin: 0;
}

.faculty-card__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.practice-professor {
  display: block;
}

.practice-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.95), rgba(255, 255, 255, 1));
  border: 1px solid rgba(235, 97, 97, 0.2);
}

.practice-card__body {
  display: grid;
  gap: 14px;
}

.practice-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.news-card {
  display: grid;
  gap: 16px;
  padding: 30px;
  min-height: 250px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,249,255,0.98));
}

.news-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

.news-card__body {
  display: grid;
  gap: 14px;
}

.news-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
  text-wrap: pretty;
}

.menu-feature {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.menu-feature__lead,
.menu-feature__content,
.voice-card {
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.menu-feature__lead,
.menu-feature__content,
.voice-card,
.panel,
.faculty-card,
.practice-card {
  animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

.enter-from-left {
  animation-name: slideInLeft;
}

.enter-from-right {
  animation-name: slideInRight;
}

.menu-feature__lead {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(129, 206, 239, 0.96), rgba(90, 174, 221, 0.94));
  color: white;
}

.menu-feature__lead p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.menu-feature__content,
.menu-feature--career {
  padding: 26px;
}

.menu-bullets {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  line-height: 1.9;
}

.menu-bullets--large li {
  font-size: 1.08rem;
}

.menu-bullets--large li:last-child {
  white-space: normal;
  font-size: 0.95rem;
}

.sidebar__section a,
.sidebar__section p,
.hero h1,
.page-hero h1,
.hero__lead,
.section-heading h2,
.voice-card__header h3,
.training-card h3,
.archive-entry h2,
.faculty-card__head h3,
.faculty-card__specialty,
.feature-panel h3,
.cta-card h2 {
  overflow-wrap: anywhere;
}

.menu-feature__note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.voice-stack {
  display: grid;
  gap: 20px;
}

.voice-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(253,250,247,0.98));
}

.voice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--support-red));
}

.voice-card__header {
  margin-bottom: 18px;
}

.voice-card__eyebrow,
.voice-card__meta {
  margin: 0;
  color: var(--muted);
}

.voice-card__header h3 {
  margin: 8px 0;
  font-size: 1.35rem;
}

.voice-card__body {
  display: grid;
  gap: 14px;
}

.voice-card__body p {
  margin: 0;
  line-height: 1.95;
  color: var(--muted);
}

.archive-list {
  display: grid;
  gap: 18px;
}

.archive-entry {
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(90, 174, 221, 0.16);
  box-shadow: var(--shadow);
}

.archive-entry h2 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  color: var(--accent);
}

.archive-entry p {
  margin: 0 0 12px;
  line-height: 1.9;
  color: var(--muted);
}

.archive-entry p:last-child {
  margin-bottom: 0;
}

.link-group ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.link-group a {
  color: var(--accent-deep);
  font-weight: 700;
}

.section--cta {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.cta-card {
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(129, 206, 239, 0.96), rgba(169, 208, 107, 0.8)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 22%);
  color: white;
  box-shadow: var(--shadow);
}

.cta-card p,
.cta-card .section-heading__eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  padding: 30px;
}

.profile-card__kana {
  margin-bottom: 18px;
}

.profile-card__aside {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline__item {
  padding: 22px 24px;
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-strong);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline__year {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 18px 0;
  }

  .content {
    padding: 0 18px 28px;
  }

  .sidebar__inner {
    height: auto;
  }
}

@media (max-width: 900px) {
  .section--split,
  .intro-grid,
  .simple-grid,
  .news-list,
  .link-groups,
  .menu-feature,
  .about-highlight-grid,
  .about-story,
  .training-cards,
  .profile-card,
  .faculty-grid,
  .faculty-card__intro,
  .practice-card {
    grid-template-columns: 1fr;
  }

  .hero__content,
  .page-hero__body {
    padding: 52px 28px;
  }

  .section {
    padding: 28px 22px;
  }

  .section-heading--row {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero,
  .page-hero {
    border-radius: 24px;
  }

  .sidebar {
    padding: 12px 12px 0;
  }

  .content {
    padding: 0 12px 20px;
  }

  .sidebar__inner,
  .section,
  .cta-card,
  .profile-card {
    border-radius: 22px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .hero__content,
  .page-hero__body {
    padding: 40px 20px;
  }

  .button--hero {
    width: 100%;
    padding: 0 20px;
  }

  .faculty-card,
  .news-card,
  .voice-card,
  .archive-entry,
  .practice-card,
  .menu-feature__lead,
  .menu-feature__content,
  .training-card,
  .feature-panel,
  .lead-block {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-48px) translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(48px) translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
