:root {
  --blue: #4a90d9;
  --blue-dark: #2c5a8a;
  --blue-light: #eaf3fc;
  --pink: #e88fae;
  --pink-light: #fdeef2;
  --yellow: #ffc93c;
  --yellow-light: #fff6e0;
  --text: #333;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-heading: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
  background: #fff;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); }

/* ---------- Hero / Brand ---------- */
.hero { position: relative; }
.brand-bar {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  padding: 28px 20px 22px;
  text-align: center;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-icon { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.brand-sub {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: #dceaf9;
  letter-spacing: 0.4em;
}
.brand-main {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.brand-wave { display: block; width: 100%; height: 34px; margin-top: -1px; }

.hero-image { position: relative; width: 100%; height: 340px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.hero-text {
  text-align: center;
  padding: 34px 20px;
  background: var(--blue-light);
}
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(44,90,138,0.3);
  margin-bottom: 18px;
}
.credential-icon { width: 20px; height: 20px; flex-shrink: 0; }
.hero-text h1 { font-size: 1.6rem; color: var(--blue-dark); line-height: 1.6; }
.hero-sub { margin-top: 12px; font-size: 1rem; color: #555; }

/* ---------- Summer campaign banner (index page) ---------- */
.summer-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  text-decoration: none;
  text-align: center;
  padding: 20px 20px;
  background: repeating-linear-gradient(135deg, var(--yellow), var(--yellow) 22px, #ffe6a0 22px, #ffe6a0 44px);
  border-top: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  transition: filter 0.15s ease;
}
.summer-banner:hover { filter: brightness(1.04); }
.summer-banner .banner-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue-dark);
}
.summer-banner .banner-period { font-size: 0.9rem; color: #6b5510; }
.summer-banner .banner-cta {
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: var(--blue-dark);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ---------- Section common ---------- */
.section { max-width: 900px; margin: 0 auto; padding: 70px 20px; text-align: center; }
.section p, .section li, .table-wrap { text-align: left; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 2rem;
  color: var(--blue-dark);
  width: fit-content;
  margin: 0 auto 40px;
  letter-spacing: 0.08em;
}
.section-title::before,
.section-title::after {
  content: "";
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}

.section-subtitle { color: var(--blue-dark); font-size: 1.2rem; margin-bottom: 15px; text-align: center; }
.lead { text-align: center; font-weight: bold; }

/* ---------- Concept ---------- */
.concept-highlight {
  background: linear-gradient(180deg, var(--blue-light), #fff);
  border: 2px solid var(--blue-light);
  box-shadow: 0 12px 30px rgba(74,144,217,0.12);
  border-radius: 20px;
  padding: 55px 30px;
}
.concept-highlight .section-title { font-size: 2.3rem; }
.concept-highlight .section-subtitle { font-size: 1.5rem; font-weight: bold; }
.concept-highlight .lead { font-size: 1.15rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.feature {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(44,90,138,0.08);
}
.feature img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; display: block; }
.feature h4 { margin: 14px 0 8px; color: var(--blue-dark); font-size: 1.05rem; }
.feature p { font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(44,90,138,0.1);
  background: #fff;
}
.gallery-item img { width: 100%; height: 190px; object-fit: cover; display: block; }
.gallery-wide { grid-column: span 2; }
.gallery-wide img { height: 220px; object-fit: contain; background: #fff; }
.gallery-item figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--blue-dark);
  font-weight: bold;
  text-align: center;
}

@media (max-width: 700px) {
  .gallery-wide { grid-column: span 1; }
}

/* ---------- Courses ---------- */
.courses { background: #fafcff; }
.table-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(44,90,138,0.1);
  margin-top: 24px;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid #eaf0f7; padding: 14px 12px; text-align: center; }
thead th { background: var(--blue); color: #fff; font-weight: 500; }
.small { font-size: 0.75rem; font-weight: normal; opacity: 0.85; }

.notes { margin-top: 22px; font-size: 0.85rem; color: #666; padding-left: 1.2em; }
.notes li { margin-bottom: 4px; }

/* ---------- Flow ---------- */
.flow-list { list-style: none; padding: 0; margin-top: 44px; counter-reset: step; text-align: left; }
.flow-list li {
  position: relative;
  padding: 18px 22px 18px 60px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(44,90,138,0.08);
  counter-increment: step;
}
.flow-list li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
  font-family: var(--font-heading);
}
.flow-list h4 { color: var(--blue-dark); margin-bottom: 6px; }
.flow-list p { margin: 0; font-size: 0.9rem; }

/* ---------- Campaign ---------- */
.campaign { background: linear-gradient(180deg, #fff, var(--pink-light) 200%); }
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.campaign-item {
  border: none;
  border-top: 4px solid var(--pink);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(201,89,138,0.1);
}
.campaign-item h4 { color: #c9598a; margin-bottom: 8px; font-size: 1rem; }
.campaign-item h4 span { display: block; font-size: 0.78rem; font-weight: normal; color: #999; margin-top: 4px; }
.campaign-item p { margin: 0; font-size: 0.9rem; }

/* ---------- Access ---------- */
.access-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
  align-items: start;
  text-align: left;
  background: var(--blue-light);
  border-radius: 18px;
  padding: 30px;
}
.access-info p { margin: 0 0 16px; }
.contact-title { font-weight: bold; color: var(--blue-dark); }
.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 20px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(74,144,217,0.3);
}
.access-map iframe { border-radius: 12px; width: 100%; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--blue);
  border-radius: 30px;
  padding: 8px 16px;
  background: #fff;
}
.social-icon { width: 20px; height: 20px; flex-shrink: 0; }

footer {
  text-align: center;
  padding: 34px;
  background: var(--blue-dark);
  font-size: 0.85rem;
  color: #dceaf9;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

@media (max-width: 700px) {
  .access-wrap { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.3rem; }
  .brand-main { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
}

/* ---------- Summer campaign page ---------- */
.summer-hero {
  background: repeating-linear-gradient(135deg, var(--yellow-light), var(--yellow-light) 22px, #fff 22px, #fff 44px);
  padding: 60px 20px 50px;
}
.summer-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: bold;
  color: #fff;
  background: var(--blue);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.summer-hero h1 {
  font-size: 2.4rem;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.summer-period {
  display: inline-block;
  font-weight: bold;
  color: var(--blue-dark);
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 10px;
  padding: 8px 20px;
  margin-bottom: 20px;
}
.summer-hero .lead { font-size: 1.05rem; color: #555; }

.back-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--blue);
}

.reasons-grid { counter-reset: reason; }
.reason { position: relative; text-align: left; padding-top: 34px; }
.reason-num {
  position: absolute;
  top: -16px; left: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(44,90,138,0.3);
}
.reason h4 { color: var(--blue-dark); margin-bottom: 8px; font-size: 1.05rem; }
.reason p { font-size: 0.9rem; }

.summer-schedule { background: #fafcff; }
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  margin-top: 30px;
  text-align: left;
}
.schedule-table, .schedule-price {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(44,90,138,0.08);
}
.schedule-table h4, .schedule-price h4 { color: var(--blue-dark); margin-bottom: 14px; }
.schedule-table ul { list-style: none; padding: 0; margin: 0; }
.schedule-table li {
  padding: 10px 0;
  border-bottom: 1px dashed #dde8f5;
  font-size: 0.95rem;
}
.schedule-table li:last-child { border-bottom: none; }
.price-main {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue);
  margin: 0 0 4px;
}
.price-main span { font-size: 1rem; font-weight: normal; color: #777; }
.price-note { font-size: 0.85rem; color: #888; margin-bottom: 10px; }
.schedule-price table { width: 100%; border-collapse: collapse; box-shadow: none; }
.schedule-price td { border: none; border-bottom: 1px solid #eef3fa; padding: 8px 4px; font-size: 0.88rem; text-align: left; }
.schedule-price td:last-child { text-align: right; font-weight: bold; color: var(--blue-dark); }

.science-note {
  margin-top: 26px;
  background: var(--blue-light);
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: bold;
  color: var(--blue-dark);
  text-align: center;
}

.summer-note {
  text-align: center;
  padding: 40px 20px;
}
.summer-note p { text-align: center; }
.summer-note .highlight {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--blue-dark);
  font-weight: bold;
  margin-bottom: 10px;
}
.teacher-credential { font-size: 0.85rem; color: #777; margin-top: 6px; }

.summer-cta {
  text-align: center;
  padding: 10px 20px 60px;
}
.summer-cta .btn { font-size: 1rem; padding: 14px 28px; margin: 8px; }

@media (max-width: 700px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .summer-hero h1 { font-size: 1.6rem; }
}
