:root {
  --cream: #fffaf2;
  --cream-dark: #fdf1e0;
  --coral: #f4845f;
  --coral-dark: #e2673f;
  --yellow: #ffc857;
  --green: #8fbf9f;
  --brown: #4a3f35;
  --brown-soft: #7a6d5f;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(74, 63, 53, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { font-weight: 800; margin: 0; line-height: 1.4; }

.sp-only { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(244, 132, 95, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(244, 132, 95, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--coral-dark);
  border: 2px solid var(--coral);
}
.btn-outline:hover { background: rgba(244, 132, 95, 0.08); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74, 63, 53, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--coral-dark);
  flex-shrink: 0;
}
.logo span { color: var(--brown); font-weight: 500; margin-left: 2px; }

.nav {
  display: flex;
  gap: 28px;
  margin: 0 24px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brown-soft);
  position: relative;
}
.nav a:hover { color: var(--coral-dark); }

.header-cta { font-size: 0.88rem; padding: 11px 24px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  margin: 0 auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(74,50,35,0.72) 0%, rgba(74,50,35,0.5) 45%, rgba(244,132,95,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 680px;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-lead {
  font-size: 1.05rem;
  margin-bottom: 32px;
  opacity: 0.95;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: var(--white); border-color: var(--white); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-dark); }
.section-eyebrow {
  color: var(--coral-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 48px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--brown-soft); margin: 0; }

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.course-card-featured {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-12px);
}
.course-card-featured p { color: rgba(255,255,255,0.9); }
.course-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--brown);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.course-card-featured .course-badge { background: rgba(255,255,255,0.25); color: var(--white); }
.course-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.course-meta {
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid rgba(74,63,53,0.1);
  font-size: 0.9rem;
  font-weight: 700;
}
.course-card-featured .course-meta { border-top-color: rgba(255,255,255,0.3); }
.course-meta li { margin-bottom: 4px; }
.course-note { margin-top: 28px; font-size: 0.85rem; color: var(--brown-soft); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 480px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item-tall { grid-row: 1 / 3; }

/* Teacher */
.teacher-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 32px;
  align-items: center;
}
.teacher-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  flex-shrink: 0;
}
.teacher-role { color: var(--coral-dark); font-weight: 700; margin: 6px 0 14px; }
.teacher-info h3 { font-size: 1.3rem; }
.teacher-info p:last-child { margin: 0; color: var(--brown-soft); }

/* Voice */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 0;
}
.voice-card p { font-size: 0.92rem; margin: 0 0 16px; }
.voice-card cite { font-size: 0.82rem; color: var(--brown-soft); font-style: normal; font-weight: 700; }

/* Access */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.access-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.access-table th, .access-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(74,63,53,0.08);
  font-size: 0.92rem;
}
.access-table th { color: var(--coral-dark); font-weight: 700; width: 120px; }
.access-table tr:last-child th, .access-table tr:last-child td { border-bottom: none; }
.access-map {
  border-radius: var(--radius);
  background: var(--cream-dark);
  border: 2px dashed rgba(74,63,53,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--brown-soft);
  font-size: 0.9rem;
  min-height: 220px;
}

/* Contact form */
.contact-lead { margin-bottom: 32px; color: var(--brown-soft); }
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: grid;
  gap: 20px;
  max-width: 640px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-weight: 700; font-size: 0.92rem; }
.req {
  background: var(--coral);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-row input, .form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(74,63,53,0.2);
  background: var(--cream);
  color: var(--brown);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--coral);
}
.form-submit { justify-self: start; border: none; cursor: pointer; font-size: 1rem; }

/* Footer */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.85);
  padding: 48px 0;
  text-align: center;
}
.footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand span { font-weight: 500; margin-left: 2px; }
.site-footer p { margin: 4px 0; font-size: 0.88rem; }
.copyright { opacity: 0.6; margin-top: 16px; }

/* Responsive */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: 1fr; }
  .course-card-featured { transform: none; }
  .voice-grid { grid-template-columns: 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .gallery-grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .gallery-item-tall { grid-row: auto; grid-column: 1 / 3; }
}

@media (max-width: 720px) {
  .sp-only { display: inline; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow);
    margin: 0;
  }
  .site-header.nav-open .header-cta {
    display: block;
    position: absolute;
    top: 240px;
    left: 24px;
    right: 24px;
    text-align: center;
  }
  .hero h1 { font-size: 1.9rem; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.6rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .teacher-card { flex-direction: column; text-align: center; }
  .contact-form { padding: 24px; }
}
