/* ===== CSS Variables ===== */
:root {
  --mos-green: #97A38B;
  --mos-green-light: #B8C4AB;
  --mos-green-dark: #7A8570;
  --cream: #FDFBF7;
  --white: #FFFFFF;
  --text: #222222;
  --text-light: #666666;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Zen Maru Gothic', sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
}


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

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

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

/* ===== Section ===== */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
  color: #333333;
}

.section-desc {
  text-align: center;
  color: #222222;
  margin-bottom: 40px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #F5EFE6;
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mos-green-dark);
}

.logo img {
  height: 50px;
  width: auto;
}

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

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--mos-green);
}

.btn-nav {
  background: #225C2B;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 25px;
  transition: background 0.3s !important;
}

.btn-nav:hover {
  background: #0a3d25 !important;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  z-index: 2;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: auto 100%;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
}

.hero-content {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 20px;
  width: 100%;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 16px;
  opacity: 0.95;
  line-height: 1.8;
}

.hero-age {
  font-size: 1rem;
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 40px;
}

.btn-hero {
  display: inline-block;
  background: var(--white);
  color: #225C2B;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 35px;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px var(--shadow-lg);
}

/* ===== Course ===== */
.course {
  background: var(--white);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* ===== Instructor ===== */
.instructor {
  background: var(--cream);
  text-align: center;
  position: relative;
  z-index: 2;
}

.instructor a {
  position: relative;
  z-index: 3;
}

.instructor-photos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.instructor-photos img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
}

.instructor-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.instructor-bio {
  color: #222222;
  margin-top: 8px;
  line-height: 1.8;
}

.career-toggle {
  background: #225C2B;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 16px;
}

.career-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.career-content.open {
  max-height: 1000px;
}

/* ===== Gallery ===== */
.gallery {
  background: var(--white);
  position: relative;
  z-index: 2;
  padding: 10px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid img,
.gallery-grid video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
  background: #f0f0f0;
}

.gallery-video-wrap {
  position: relative;
}

.gallery-video-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(34, 92, 43, 0.85);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.gallery-video-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
  z-index: 2;
  pointer-events: none;
}

.gallery-video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
  background: #f0f0f0;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  pointer-events: auto;
  z-index: 10002;
}

.lightbox img,
.lightbox-video {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  pointer-events: auto;
}

.lightbox-video {
  display: none;
  pointer-events: none;
  max-width: 85%;
  max-height: 85%;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  padding: 20px 40px;
  font-size: 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10001;
}

.video-play-btn:hover {
  background: rgba(0,0,0,0.9);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: black;
  cursor: pointer;
}

/* ===== SNS Section ===== */
.sns-section {
  background: var(--cream);
  text-align: center;
}

.sns-desc {
  color: #222222;
  margin-bottom: 20px;
}

.sns-link-wrapper {
  display: flex;
  justify-content: center;
}

.sns-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #225C2B;
  padding: 12px 24px;
  border: 2px solid #225C2B;
  border-radius: 30px;
  transition: all 0.3s;
}

.sns-profile-link:hover {
  background: #225C2B;
  color: var(--white);
}

/* ===== Feature ===== */
.feature {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.feature-text h3 {
  font-size: 1.5rem;
  color: var(--mos-green-dark);
  margin-bottom: 20px;
}

.feature-text p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.feature-highlight {
  font-weight: 700;
  color: var(--mos-green-dark) !important;
}

.feature-producer {
  margin-top: 20px;
  font-weight: 700;
  color: var(--mos-green-dark);
}

.feature-genre {
  margin-top: 16px;
  font-weight: 500;
  color: var(--text);
}

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

  .feature-image {
    order: -1;
  }
}

/* ===== Event ===== */
.event {
  background: var(--cream);
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.event-text p {
  color: var(--text);
  line-height: 1.8;
}

.event-text a {
  color: #225C2B;
  text-decoration: underline;
}

.event-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

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

  .event-image {
    order: -1;
  }
}

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

.course-card {
  background: var(--cream);
  padding: 30px 24px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.course-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #333;
}

.course-age {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.course-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #225C2B;
  margin-top: 8px;
}

.course-genre {
  font-weight: 500;
  color: var(--mos-green);
  margin-bottom: 12px;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

.course-note {
  text-align: center;
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--text);
}

.course-note a {
  color: #225C2B;
  text-decoration: underline;
  display: inline-block;
  position: relative;
  z-index: 4;
}

/* ===== Price ===== */
.price {
  background: var(--cream);
}

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

.price-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px var(--shadow);
}

.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mos-green-dark);
  margin-bottom: 16px;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
}

.price-list {
  text-align: left;
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-light);
}

.price-list li {
  margin-bottom: 8px;
}

.price-list li::before {
  content: "・";
  color: var(--mos-green);
}

.price-popular {
  border: 3px solid var(--mos-green);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mos-green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
}

.price-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Access ===== */
.access {
  background: var(--white);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.access-info {
  width: 100%;
  padding-left: 20px;
}

.access-map {
  width: 100%;
}

.access-image img {
  width: 80%;
  height: 300px;
  object-fit: fill;
  border-radius: 12px;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.access-map iframe {
  width: 100%;
  height: 300px;
}

.access-item {
  margin-bottom: 24px;
}

.access-item h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 8px;
}

.access-item p {
  color: #333;
  font-size: 1rem;
}

.access-sns {
  margin-top: 24px;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mos-green-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.sns-link:hover {
  color: var(--mos-green);
}

.sns-link svg {
  flex-shrink: 0;
}

.access-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  max-width: 100%;
}

.access-map iframe {
  display: block;
  width: 100%;
}

/* ===== Contact ===== */
.contact {
  background: linear-gradient(135deg, var(--mos-green-light) 0%, var(--mos-green) 100%);
  text-align: center;
}

.contact .section-title,
.contact .section-desc {
  color: #333;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 24px 32px;
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-line {
  background: white;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-lg);
}

.contact-icon {
  font-size: 2rem;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #225C2B;
}

.contact-note {
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Page Top Button ===== */
.page-top-btn {
  position: fixed;
  bottom: 30px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: rgba(128, 128, 128, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  transition: opacity 0.3s, transform 0.3s;
}

.page-top-btn:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: auto !important;
  width: 500px !important;
}

.footer-sns {
  display: flex;
  gap: 20px;
}

.footer-sns-link {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-sns-link:hover {
  opacity: 1;
}

.footer-copy {
  color: var(--white);
  opacity: 0.6;
  font-size: 0.85rem;
}

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

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

/* ===== Mobile Menu ===== */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Responsive ===== */
@media (max-width: 950px) {
  .menu-toggle {
    display: flex;
  }

  .nav-inner {
    justify-content: center;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .menu-toggle {
    position: absolute;
    right: 10px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 500px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--cream);
  }

  .btn-nav {
    display: inline-block !important;
    background: #225C2B !important;
    border-radius: 25px;
    padding: 10px 40px !important;
    margin: 12px 0;
    width: auto;
    border-bottom: none;
  }

  .nav-links li:last-child {
    text-align: center;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .access-info,
  .access-map,
  .access-image {
    width: 100%;
  }

  .contact-methods {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 60px 0;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
  }

  .lightbox-video {
    width: 95%;
  }
}

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