:root {
  --color-bg: #fffdf8;
  --color-surface: #f3f9ff;
  --color-text: #24304a;
  --color-muted: #5c6b85;
  --color-border: #e3ecf5;

  --color-primary: #2f8fd6;
  --color-primary-dark: #1c5e94;
  --color-navy: #1f4e79;

  --color-accent-pink: #ff8fa8;
  --color-accent-pink-soft: #ffe3ea;
  --color-accent-cyan: #4fc3d9;
  --color-accent-cyan-soft: #e1f6fa;
  --color-accent-yellow: #ffcb3d;
  --color-accent-yellow-soft: #fff6da;
  --color-accent-green: #3cb878;
  --color-accent-green-soft: #e2f7ec;
  --color-accent-coral: #ff9466;
  --color-accent-coral-soft: #ffe9de;
  --color-accent-blue: #6c8dff;
  --color-accent-blue-soft: #e7ebff;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px -12px rgba(31, 78, 121, 0.25);
  --shadow-pop: 0 6px 0 0 rgba(28, 94, 148, 0.9);
  --max-width: 1040px;

  --font-heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text, .btn {
  font-family: var(--font-heading);
}

a {
  color: var(--color-primary-dark);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-accent-green);
  color: #fff;
  box-shadow: 0 5px 0 0 #2c8f5e;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 0 #2c8f5e;
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #2c8f5e;
}

.btn-outline {
  background: #fff;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-accent-cyan-soft);
}

.btn-light {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--color-accent-cyan-soft);
  color: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 22px;
  height: 2.5px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-surface) 0%, #ffffff 100%);
  padding: 4.5rem 0 4rem;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
}

.hero-blob-pink {
  width: 220px;
  height: 220px;
  background: var(--color-accent-pink-soft);
  top: -60px;
  left: -60px;
}

.hero-blob-yellow {
  width: 160px;
  height: 160px;
  background: var(--color-accent-yellow-soft);
  bottom: -40px;
  right: 8%;
}

.hero-blob-cyan {
  width: 260px;
  height: 260px;
  background: var(--color-accent-cyan-soft);
  top: 20%;
  right: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--color-accent-cyan);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.eyebrow-center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 1rem;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

.hero .lead {
  color: var(--color-muted);
  max-width: 40em;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  margin: 3rem auto 0;
  max-width: 780px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

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

/* ---------- Quick facts ---------- */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 3.5rem 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-primary);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-pink { border-top-color: var(--color-accent-pink); }
.card-yellow { border-top-color: var(--color-accent-yellow); }
.card-cyan { border-top-color: var(--color-accent-cyan); }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-accent-cyan-soft);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

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

@media (max-width: 760px) {
  .quick-facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Courses preview (home) ---------- */
.courses-preview {
  text-align: center;
  padding: 1rem 1.5rem 4rem;
}

.section-title {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
  color: var(--color-navy);
}

.section-lead {
  color: var(--color-muted);
  max-width: 36em;
  margin: 0 auto 1.5rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-surface);
  padding: 2.75rem 0 2.25rem;
  border-bottom: 4px dashed var(--color-border);
}

.page-hero h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--color-navy);
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.page-hero-inner .lead {
  color: var(--color-muted);
  margin: 0.75rem 0 0;
}

.page-hero-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.page-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .page-hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.25rem;
  }
}

/* ---------- Prose / page content ---------- */
.prose {
  padding: 3rem 1.5rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.75rem;
  color: var(--color-navy);
  display: inline-block;
  padding-bottom: 0.3rem;
  border-bottom: 4px solid var(--color-accent-yellow);
}

.prose table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose th {
  background: var(--color-surface);
  color: var(--color-navy);
}

/* ---------- Access page: store cards ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.store-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.store-card h2 {
  margin-top: 0;
}

.store-detail {
  margin: 0 0 1.25rem;
}

.store-detail > div {
  margin-bottom: 0.75rem;
}

.store-detail dt {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}

.store-detail dd {
  margin: 0;
  font-weight: 500;
  color: var(--color-text);
}

.map-embed {
  position: relative;
  width: 100%;
  padding-top: 66%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

.prose .btn {
  margin-top: 0.5rem;
}

/* ---------- Course list ---------- */
.course-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.course-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
}

.course-card-index {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-heading);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.course-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: var(--color-navy);
}

.course-card-summary {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.course-card-pink .course-card-index { background: var(--color-accent-pink); }
.course-card-cyan .course-card-index { background: var(--color-accent-cyan); }
.course-card-yellow .course-card-index { background: var(--color-accent-yellow); }
.course-card-green .course-card-index { background: var(--color-accent-green); }
.course-card-coral .course-card-index { background: var(--color-accent-coral); }
.course-card-blue .course-card-index { background: var(--color-accent-blue); }

@media (max-width: 760px) {
  .course-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Course detail ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-muted);
}

.course-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--color-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

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

.course-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--color-navy);
}

.course-cta {
  margin-top: 2.5rem;
}

.related-courses {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.related-courses a {
  display: inline-block;
  background: var(--color-surface);
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.related-courses a:hover {
  background: var(--color-accent-cyan-soft);
}

/* ---------- FAQ speech bubbles ---------- */
.faq-page .faq-q,
.faq-page .faq-a {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 0 0 0.75rem;
}

.faq-page .faq-q {
  background: var(--color-accent-cyan-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-top: 1.75rem;
}

.faq-page .faq-a {
  background: var(--color-accent-pink-soft);
  margin-left: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #eaf2fb;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
}

.footer-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: #b7cbe3;
}

.footer-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links {
  text-align: center;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.footer-links a {
  color: #cfe0f2;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #8fabc9;
  margin: 0;
}

@media (max-width: 700px) {
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header-inner {
    flex-wrap: wrap;
  }
}
