:root {
  --bg-page: #ffffff;
  --bg-soft: #f8f4ff;
  --bg-alt: #f3f6ff;
  --accent-pink: #ff2fb9;
  --accent-pink-soft: #ff7dd7;
  --accent-purple: #7b3cff;
  --accent-cyan: #00c9ff;
  --text-main: #1a1233;
  --text-muted: #66627c;
  --border-subtle: #e3e0f0;
  --shadow-soft: 0 10px 30px rgba(18, 12, 54, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.8;
}

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

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

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid #f0edf7;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 10px 0 0;
  font-size: 2.6rem;
  line-height: 1.3;
  font-weight: 700;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 54px;
  border-radius: 999px;
  font-size: 2.05rem;
  font-weight: 600;
  color: var(--accent-purple);
  background: linear-gradient(90deg, rgba(255, 47, 185, 0.1), rgba(0, 201, 255, 0.1));
}

.section-body p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ece8fb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.logo img {
  height: 72px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: #494268;
  font-family: "Poppins", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 500;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
  transition: width 0.18s ease-out;
}

.site-nav a:hover:not(.btn)::after {
  width: 100%;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: "Poppins", "Noto Sans JP", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(140, 43, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(140, 43, 199, 0.4);
}

.btn-small {
  padding-inline: 64px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

/* Nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d6d2f3;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 18px;
  background: #3f3863;
  border-radius: 999px;
  transition: transform 0.18s ease, opacity 0.18s ease, width 0.18s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid #f0edf7;
  background: radial-gradient(circle at top left, rgba(255, 125, 215, 0.13), transparent 55%), #ffffff;
}

.hero-inner {
  display: flex;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  width: min(1120px, 100%);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-logo {
  position: absolute;
  right: 5%;
  top: 10%;
  max-width: 380px;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card-grid.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-figure {
  margin: -4px -4px 12px;
  border-radius: 16px;
  overflow: hidden;
}

.card-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.info-card,
.feature-card,
.mentor-card {
  padding: 18px 20px 20px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.info-card h3,
.feature-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #362b63;
}

.info-card p,
.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

/* Program */

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.program-block {
  padding: 18px 20px 20px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.program-block h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #362b63;
}

.section-subblock {
  margin-top: 28px;
}

.section-subblock h3 {
  margin: 0 0 16px;
  font-size: 1.3rem;
  color: #362b63;
}

/* Schedule horizontal line */

.schedule-line {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding-top: 36px;
}

.schedule-line::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 47, 185, 0.35), rgba(0, 201, 255, 0.35));
}

.schedule-item {
  position: relative;
  flex: 1 1 220px;
  padding-top: 6px;
}

.schedule-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(123, 60, 255, 0.18);
}

.schedule-item h3 {
  margin: 16px 0 4px;
  font-size: 1.08rem;
  text-align: center;
}

.schedule-date {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: #8a80b4;
  text-align: center;
}

.schedule-text {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
}


/* Past programs */

.past-programs {
  margin-top: 32px;
  text-align: center;
}

.past-programs h3 {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 47, 185, 0.12), rgba(0, 201, 255, 0.12));
  font-size: 1.1rem;
  color: #241b4b;
}

.past-programs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.past-programs li {
  padding: 6px 20px;
  border-radius: 999px;
  border: 1px solid rgba(123, 60, 255, 0.35);
  background: #ffffff;
  color: #4a3f76;
  box-shadow: 0 6px 14px rgba(18, 12, 54, 0.12);
}
/* Mentors */

.mentors-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mentor-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.mentor-card .role {
  margin: 0;
  font-size: 0.9rem;
  color: #8a80b4;
}

/* Entry section */

.entry-section .section-header {
  text-align: center;
}

.entry-panel {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 26px 26px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(181, 168, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.definition-list {
  margin: 0;
}

.definition-list > div {
  margin-bottom: 18px;
}

.definition-list dt {
  font-weight: 700;
  margin-bottom: 4px;
  color: #362b63;
  font-size: 1.08rem;
}

.definition-list dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.definition-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 32px;
  margin-top: 8px;
  border-top: 1px dashed #e5e0fa;
  padding-top: 12px;
}

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-size: 0.96rem;
}

.faq-question span {
  flex: 1;
}

.faq-question .icon {
  flex: 0;
  font-size: 1.2rem;
  color: var(--accent-purple);
}

.faq-answer {
  max-height: 0;
  padding: 0 16px;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.2s ease-out, padding 0.2s ease-out, border-top-color 0.2s ease-out;
}

.faq-answer p {
  margin: 10px 0 12px;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 6px 16px 12px;
  border-top-color: #f0edf7;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

/* Footer */

.site-footer {
  background: #1b1630;
  color: #f3f0ff;
  padding: 26px 0 18px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.footer-logo {
  font-family: "Poppins", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-text {
  margin: 0;
  color: #cbc6f5;
}

.footer-org h3,
.footer-contact h3 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.footer-org p,
.footer-contact p {
  margin: 0;
  color: #d4cff8;
}

.footer-bottom {
  margin-top: 18px;
  text-align: center;
  color: #aaa4dc;
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-line {
    gap: 18px;
  }
}

@media (max-width: 780px) {
  .site-nav {
    position: fixed;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #ded8f4;
    box-shadow: 0 10px 30px rgba(35, 25, 95, 0.25);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    z-index: 30;
  }

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

  .site-nav a {
    width: 100%;
  }

  .site-nav .btn {
    width: 100%;
    justify-content: center;
  }

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

  .hero {
    padding-top: 52px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2.1rem;
  }

  .entry-panel {
    padding: 20px 18px 22px;
  }
}

@media (max-width: 520px) {
  .hero-logo {
    right: 6%;
    top: 8%;
    max-width: 150px;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  .info-card,
  .feature-card,
  .mentor-card,
  .program-block {
    border-radius: 16px;
  }
}

/* Header entry button image */
.nav-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-entry-btn img {
  display: block;
  height: 44px;
  width: auto;
}

@media (max-width: 780px) {
  .nav-entry-btn img {
    height: 40px;
  }
}
