:root {
  --bg: #070707;
  --bg-soft: #121212;
  --paper: #f0ebe3;
  --text: #f6f6f6;
  --text-soft: #cfcfcf;
  --red: #c20d14;
  --red-soft: #8e0a0f;
  --line: #2b2b2b;
  --radius: 16px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 0%, #1a1a1a, #070707 48%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 5px,
      rgba(255, 255, 255, 0.03) 5px,
      rgba(255, 255, 255, 0.03) 6px
    ),
    radial-gradient(circle at 70% 20%, rgba(194, 13, 20, 0.2), transparent 28%);
  z-index: -1;
}

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

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

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f06f74;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

p {
  margin-top: 0;
  color: var(--text-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(7px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-logo-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 17.5%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-mark {
  color: var(--red);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e9e9e9;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ff4a52;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  width: 44px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: white;
  margin: 5px 0;
}

.hero {
  min-height: 90vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  filter: grayscale(22%) contrast(1.1);
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(95deg, rgba(2, 2, 2, 0.9) 22%, rgba(2, 2, 2, 0.4) 75%),
    radial-gradient(circle at 85% 20%, rgba(194, 13, 20, 0.45), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content h1 {
  display: inline-block;
  padding: 0.35rem 0.9rem 0.45rem;
  border-radius: 12px;
  background: rgba(28, 28, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 100%;
  width: 100%;
  display: block;
  text-align: justify;
  margin-top: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--red), #e4131b);
  color: #fff;
  box-shadow: 0 10px 25px rgba(194, 13, 20, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(194, 13, 20, 0.5);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.about-stats article {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.programs {
  background: linear-gradient(180deg, rgba(194, 13, 20, 0.08), transparent 24%);
}

.section-head {
  margin-bottom: 1.5rem;
}

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

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #7a1417;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2e2e2e;
  min-height: 160px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: grayscale(5%);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-item.main {
  grid-column: 1 / -1;
  min-height: 420px;
}

.gallery-item.small {
  grid-column: span 3;
  min-height: 180px;
}

.gallery-item.wide-two {
  grid-column: span 6;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.advantage {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.advantage h3 {
  font-size: 1.2rem;
}

.portal-ready {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.portal-card {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(130deg, rgba(194, 13, 20, 0.12), rgba(255, 255, 255, 0.02));
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.contact-info,
.map-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  padding: 1.25rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.contact-info a {
  color: #ff8a8f;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1px solid #313131;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(194, 13, 20, 0.55);
  border-color: rgba(194, 13, 20, 0.6);
}

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: #f1c1c3;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 10px;
}

.footer {
  padding: 2.4rem 0 1.4rem;
  border-top: 1px solid var(--line);
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.footer a {
  color: #ff7e84;
}

.copyright {
  margin: 1rem auto 0;
  width: min(1140px, calc(100% - 2rem));
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: #b0b0b0;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .split,
  .contact-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.main {
    min-height: 320px;
  }

  .gallery-item.small {
    grid-column: span 6;
    min-height: 220px;
  }

  .gallery-item.wide-two {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: min(260px, 92vw);
    padding: 0.45rem;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid var(--line);
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    min-height: 82vh;
  }

  .brand-logo-wrap {
    width: 57px;
    height: 57px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .advantages-list {
    grid-template-columns: 1fr;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-item.main,
  .gallery-item.small {
    grid-column: span 2;
    min-height: 220px;
  }

  .gallery-item.wide-two {
    grid-column: span 2;
  }

  .btn {
    width: 100%;
  }
}
