/* ===========================
   Base / Reset
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-dark: #2d5a27;
  --green: #4a8c3f;
  --green-light: #6ebe5a;
  --brown-dark: #5c3a1e;
  --brown: #8b6914;
  --brown-light: #c4a35a;
  --sand: #e8d8a0;
  --cream: #fdf6e3;
  --sky: #87ceeb;
  --sky-light: #d4f1ff;
  --white: #ffffff;
  --text: #3a2e1a;
  --text-light: #6b5d4a;
  --accent: #e06030;
  --accent-hover: #c84e20;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DotGothic16', sans-serif;
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* ===========================
   Section Title
   =========================== */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green-light);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 48px;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 16px 40px;
  font-family: 'DotGothic16', sans-serif;
  font-size: 1.1rem;
  border: 4px solid var(--brown-dark);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--brown-dark);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--brown-dark);
}

.btn-secondary {
  background: var(--green);
}

.btn-secondary:hover {
  background: var(--green-dark);
}

.btn-large {
  font-size: 1.3rem;
  padding: 20px 48px;
}

.mv-buttons,
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   Header
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(45, 90, 39, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 4px solid var(--brown-dark);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  font-size: 1.1rem;
  color: var(--sand);
  white-space: nowrap;
}

.header-logo span {
  display: block;
  font-size: 0.75rem;
  color: var(--green-light);
}

.header-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}

.header-nav a {
  color: var(--sand);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--white);
}

.btn-header {
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 4px;
  border: 2px solid var(--brown-dark);
  color: var(--white) !important;
}

.btn-header:hover {
  background: var(--accent-hover);
}

.btn-header-trial {
  background: #e8a030;
}

.btn-header-trial:hover {
  background: #d08c20;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--sand);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   MV (Main Visual)
   =========================== */
.mv {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/image01.png') center center / cover no-repeat;
  text-align: center;
}

.mv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(45, 90, 39, 0.7) 0%,
    rgba(45, 90, 39, 0.4) 50%,
    rgba(45, 90, 39, 0.8) 100%
  );
}

.mv-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.mv-badge {
  display: inline-block;
  background: var(--white);
  color: var(--accent);
  padding: 6px 28px;
  font-size: 1.1rem;
  border: 3px solid var(--brown-dark);
  margin-bottom: 16px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.mv-sub {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 6px 24px;
  font-size: 1rem;
  border: 3px solid var(--brown-dark);
  margin-bottom: 24px;
}

.mv-title {
  font-size: 3rem;
  color: var(--white);
  text-shadow: 4px 4px 0 var(--brown-dark);
  line-height: 1.4;
  margin-bottom: 20px;
}

.mv-title span {
  color: var(--sand);
  font-size: 2rem;
}

.mv-desc {
  font-size: 1.2rem;
  color: var(--sand);
  margin-bottom: 40px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.mv-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--sand);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mv-scroll-line {
  width: 2px;
  height: 40px;
  background: var(--sand);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* ===========================
   About
   =========================== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image img {
  border: 4px solid var(--brown-dark);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--sand);
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

/* ===========================
   Purpose
   =========================== */
.purpose {
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--cream) 100%);
}

.purpose-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.purpose-card {
  background: var(--white);
  padding: 40px 24px;
  text-align: center;
  border: 4px solid var(--brown-dark);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--sand);
  transition: transform 0.3s;
}

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

.purpose-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--green);
  border: 3px solid var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.purpose-card h3 {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.purpose-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ===========================
   Curriculum
   =========================== */
.curriculum {
  background: var(--white);
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.curriculum-image img {
  border: 4px solid var(--brown-dark);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--sand);
}

.curriculum-step {
  padding: 24px;
  margin-bottom: 20px;
  background: var(--cream);
  border: 3px solid var(--brown-dark);
  border-radius: 4px;
  position: relative;
}

.step-number {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 2px 14px;
  font-size: 0.85rem;
  border: 2px solid var(--brown-dark);
  margin-bottom: 8px;
}

.curriculum-step h3 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.curriculum-step p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===========================
   Course Tabs
   =========================== */
.course-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  margin-bottom: 0;
}

.course-tab {
  font-family: 'DotGothic16', sans-serif;
  font-size: 1.1rem;
  padding: 14px 40px;
  border: 4px solid var(--brown-dark);
  border-bottom: none;
  background: var(--sand);
  color: var(--text-light);
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: all 0.2s;
  position: relative;
  bottom: -4px;
}

.course-tab.active {
  background: var(--green-dark);
  color: var(--white);
  z-index: 1;
}

.course-tab:hover:not(.active) {
  background: var(--brown-light);
}

.course-panel {
  display: none;
}

.course-panel.active {
  display: block;
}

.curriculum-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--green-dark);
  padding: 32px;
  border: 4px solid var(--brown-dark);
  border-radius: 4px;
}

.info-item {
  text-align: center;
  color: var(--white);
}

.info-item h4 {
  font-size: 0.85rem;
  color: var(--green-light);
  margin-bottom: 8px;
}

.info-item p {
  font-size: 1.1rem;
}

/* ===========================
   Fee Table
   =========================== */
.fee-table {
  margin-top: 48px;
  background: var(--cream);
  border: 4px solid var(--brown-dark);
  border-radius: 4px;
  padding: 40px 32px;
}

.fee-title {
  text-align: center;
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 24px;
}

.fee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.fee-item {
  background: var(--white);
  border: 3px solid var(--brown-dark);
  border-radius: 4px;
  padding: 24px 16px;
  text-align: center;
}

.fee-item h4 {
  font-size: 0.9rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.fee-price {
  font-size: 2rem;
  color: var(--accent);
  line-height: 1.3;
}

.fee-price span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.fee-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.fee-caution {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===========================
   FAQ
   =========================== */
.faq {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}

.faq-list {
  max-width: 720px;
  margin: 32px auto 0;
}

.faq-item {
  margin-bottom: 12px;
  border: 3px solid var(--brown-dark);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  font-family: 'DotGothic16', sans-serif;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--cream);
}

.faq-toggle {
  font-size: 1.4rem;
  color: var(--green);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===========================
   CTA
   =========================== */
.cta {
  background: var(--green-dark);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0px,
    var(--green) 16px,
    var(--green-dark) 16px,
    var(--green-dark) 32px
  );
}

.cta-title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.6;
}

.cta-text {
  color: var(--sand);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* 体験会ボックス */
.trial-box {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--green-light);
  border-radius: 16px;
  padding: 40px 32px;
  margin: 32px auto 0;
  max-width: 700px;
}

.trial-title {
  color: var(--sand);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.trial-info {
  text-align: left;
  margin-bottom: 24px;
}

.trial-details {
  color: var(--white);
  margin-bottom: 20px;
}

.trial-details p {
  margin-bottom: 4px;
  font-size: 1rem;
}

.trial-address {
  font-size: 0.85rem !important;
  color: var(--sand);
  padding-left: 1em;
}

.trial-map {
  margin-bottom: 8px;
}

.btn-trial {
  background: #e8a030;
  display: inline-block;
  margin-top: 8px;
}

.btn-trial:hover {
  background: #d08c20;
}

.cta-divider {
  width: 80px;
  height: 2px;
  background: var(--sand);
  margin: 40px auto;
  opacity: 0.4;
}

.cta-subtitle {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.cta-tel {
  margin-top: 24px;
  color: var(--sand);
  font-size: 0.9rem;
}

.cta-tel a {
  color: var(--white);
  font-size: 1.1rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--brown-dark);
  color: var(--sand);
  text-align: center;
  padding: 32px 0;
}

.footer-logo {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--brown-light);
}

/* ===========================
   Scroll Animation
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.sp-only {
  display: none;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(45, 90, 39, 0.98);
    border-bottom: 4px solid var(--brown-dark);
  }

  .header-nav.active {
    display: block;
  }

  .header-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .header-nav a {
    font-size: 1rem;
  }

  .header-nav .btn-header,
  .header-nav .btn-header-trial {
    display: block;
    text-align: center;
    padding: 14px 20px;
    margin-top: 8px;
  }

  .sp-only {
    display: inline;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .mv-title {
    font-size: 2rem;
  }

  .mv-title span {
    font-size: 1.4rem;
  }

  .mv-desc {
    font-size: 1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-grid,
  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .purpose-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .curriculum-info {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
  }

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

  .fee-table {
    padding: 24px 16px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .btn-large {
    font-size: 1.1rem;
    padding: 16px 32px;
  }

  .trial-box {
    padding: 28px 20px;
  }

  .trial-title {
    font-size: 1.2rem;
  }
}