:root {
  --ink: #172033;
  --muted: #5d6679;
  --line: #dfe5ee;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --navy: #12335f;
  --blue: #1e6aa8;
  --crimson: #a51f3b;
  --teal: #1f8a84;
  --gold: #b98118;
  --shadow: 0 18px 44px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 229, 238, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner,
.section,
.footer-inner {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin-inline: auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 100%;
}

.global-nav a {
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: #fff;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #0f2038;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 27, 48, 0.9), rgba(18, 51, 95, 0.58) 46%, rgba(18, 51, 95, 0.12)),
    url("hero-campus-sample.png") center / cover;
}

.hero-content {
  position: relative;
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #f9df9f;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.24rem);
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: var(--crimson);
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button:hover {
  color: #fff;
  background: #86172f;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.55);
}

.button.secondary:hover {
  color: var(--ink);
  background: #fff;
}

.section {
  padding: 72px 0;
}

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

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--crimson);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-header p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.panel,
.course-card,
.news-list,
.contact-box,
.policy-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.panel {
  padding: 28px;
}

.panel h2,
.panel h3,
.contact-box h3 {
  margin-top: 0;
}

.highlight-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.highlight-list li {
  padding-left: 18px;
  border-left: 4px solid var(--teal);
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-item {
  padding: 22px;
  background: #fff;
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.info-item strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 1.22rem;
}

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

.audience-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.audience-card:nth-child(2) {
  border-top-color: var(--teal);
}

.audience-card:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.audience-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

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

.audience-card span {
  margin-top: auto;
  color: var(--crimson);
  font-weight: 900;
}

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

.news-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list time {
  color: var(--navy);
  font-weight: 900;
}

.page-title {
  padding: 66px 0 44px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 51, 95, 0.94), rgba(31, 138, 132, 0.74)),
    url("hero-campus-sample.png") center / cover;
}

.page-title-inner {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin-inline: auto;
}

.page-title p {
  max-width: 760px;
  margin: 18px 0 0;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.subnav a {
  padding: 8px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 4px;
  text-decoration: none;
}

.subnav a:hover {
  color: var(--ink);
  background: #fff;
}

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

.course-card {
  padding: 26px;
}

.course-card h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.course-meta div {
  padding: 12px 14px;
  background: #f7f9fc;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
}

.course-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.course-meta dd {
  margin: 2px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.course-card p {
  margin: 0 0 12px;
}

.course-card p:last-child {
  margin-bottom: 0;
}

.notice {
  padding: 18px 20px;
  background: #fff8ea;
  border: 1px solid #efd29b;
  border-radius: 8px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resource-link {
  display: block;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.resource-link strong {
  display: block;
  color: var(--navy);
}

.resource-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.resource-link:hover {
  color: var(--ink);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 22px;
}

.contact-box {
  padding: 26px;
}

.map-frame {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-frame img {
  display: block;
  width: 100%;
}

.policy-box {
  padding: 32px;
}

.policy-box h2 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-size: 1.25rem;
}

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

.policy-box ul {
  padding-left: 1.2em;
}

.site-footer {
  color: #d8e2ef;
  background: #10233d;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0;
}

.footer-inner a {
  color: #fff;
}

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

.back-to-top {
  display: inline-flex;
  margin-top: 24px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .global-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: 560px;
  }

  .section-header,
  .intro-grid,
  .contact-grid {
    display: block;
  }

  .section-header p {
    margin-top: 12px;
  }

  .panel + .panel,
  .contact-box + .map-frame {
    margin-top: 22px;
  }

  .info-strip,
  .card-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .course-meta {
    grid-template-columns: 1fr;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section,
  .footer-inner,
  .hero-content,
  .page-title-inner {
    width: calc(100% - 28px);
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .global-nav a {
    padding: 8px 9px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .section {
    padding: 52px 0;
  }

  .panel,
  .course-card,
  .policy-box,
  .contact-box {
    padding: 22px;
  }
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(23, 32, 51, 0.05);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Responsive Styles for Gallery */
@media (min-width: 861px) {
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    grid-column: span 4;
  }
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7) {
    grid-column: span 3;
  }
}

@media (max-width: 860px) and (min-width: 561px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .gallery-item {
    grid-column: span 3;
  }
  .gallery-item:nth-child(7) {
    grid-column: span 6;
  }
  .gallery-item img {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gallery-item {
    grid-column: auto;
  }
  .gallery-item img {
    height: 200px;
  }
}
