:root {
  --bg-color: #f5f5f0;
  --accent-olive: #a1ad85;
  --accent-beige: #e3dbc5;
  --text-color: #2b2b2b;
  --border-thick: 4px solid #2b2b2b;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* 共通 */
.main-title { font-size: 5rem; font-weight: 900; line-height: 1.1; margin: 0; letter-spacing: 2px; }
.japanese-title { font-size: 1.5rem; font-weight: 700; margin: 10px 0 0 0; letter-spacing: 5px; }
.hero-subtitle { font-size: 1.5rem; font-weight: 900; margin-top: 30px; }
.hero-desc { font-size: 1.2rem; font-weight: 700; margin-top: 15px; opacity: 0.9; }
.action-area { margin-top: 40px; }
.content-wrapper { max-width: 1000px; margin: 0 auto; }
.section-title { font-size: 3rem; font-weight: 900; margin: 0; letter-spacing: -1px; }
.section-subtitle { font-size: 1.2rem; font-weight: 700; margin: 5px 0 40px 0; color: var(--accent-olive); }
.hidden { display: none; }

/* Hamburger Menu */
.hamburger { position: fixed; top: 20px; right: 20px; width: 50px; height: 50px; background-color: #fff; border: var(--border-thick); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; z-index: 100; box-shadow: 4px 4px 0px var(--text-color); transition: transform 0.2s; }
.hamburger:hover { transform: scale(1.05); }
.hamburger span { display: block; width: 24px; height: 3px; background-color: var(--text-color); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background-color: var(--accent-olive); border-left: var(--border-thick); z-index: 90; transition: right 0.4s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: -10px 0 0px rgba(0,0,0,0.1); }
.mobile-nav.open { right: 0; }
.mobile-nav ul { list-style: none; padding: 0; text-align: center; }
.mobile-nav li { margin: 30px 0; }
.mobile-nav a { color: #fff; text-decoration: none; font-size: 2rem; font-weight: 900; text-shadow: 2px 2px 0px var(--text-color); transition: color 0.2s; }
.mobile-nav a:hover { color: var(--accent-beige); }

.nav-socials { display: flex; gap: 20px; margin-top: 20px; }
.social-icon { color: #fff; font-size: 1.5rem; transition: transform 0.2s, color 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.social-icon:hover { transform: scale(1.2) rotate(5deg); color: var(--accent-beige); }

/* 1. HERO (ポップなリデザイン版) */
.hero-section {
  padding: 140px 10% 100px 10%;
  background-color: var(--bg-color);
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-bottom: var(--border-thick);
  overflow: hidden;
}
.hero-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  width: 100%;
}
.hero-text-area {
  flex: 1;
}
.hero-logo {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 20px;
}
.sp-br {
  display: none;
}

.join-btn {
  background-color: var(--accent-olive);
  color: #fff;
  border: 3px solid #fff;
  padding: 20px 60px;
  font-size: 1.3rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  border-radius: 50px;
  box-shadow: 6px 6px 0px rgba(0,0,0,0.6);
  transition: all 0.2s ease;
}
.join-btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0px rgba(0,0,0,0.6); background-color: #8c996e; }
.message-box { margin-top: 20px; padding: 20px; background-color: rgba(255,255,255,0.9); color: var(--text-color); border: var(--border-thick); border-radius: 12px; font-weight: 700; text-align: center; }

/* 2. ABOUT */
.about-section { background-color: var(--accent-beige); padding: 80px 10%; border-bottom: var(--border-thick); }
.about-content { background-color: #fff; border: var(--border-thick); padding: 40px; border-radius: 12px; box-shadow: 8px 8px 0px var(--text-color); font-size: 1.1rem; line-height: 2; }
.about-subheading { font-size: 1.5rem; font-weight: 900; margin: 40px 0 15px 0; border-left: 5px solid var(--accent-olive); padding-left: 15px; }
.philosophy-text { font-size: 1.4rem; font-weight: 900; color: var(--accent-olive); text-align: center; margin: 30px 0; background: var(--bg-color); padding: 20px; border-radius: 8px; }
.recommend-list { list-style: none; margin: 0; padding: 0; font-size: 1.1rem; line-height: 1.8; }
.recommend-list li { margin-bottom: 10px; padding-left: 1.5em; position: relative; }
.recommend-list li::before { content: "☁️"; position: absolute; left: 0; }

/* 3. EVENT */
.event-section { padding: 80px 10%; background-color: #fff; }
.event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; margin-top: 40px; }
.event-card { background: var(--bg-color); border: var(--border-thick); border-radius: 12px; overflow: hidden; box-shadow: 6px 6px 0px var(--text-color); transition: all 0.3s; display: flex; flex-direction: row; align-items: center; padding: 20px; gap: 20px; }
.event-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0px var(--text-color); }
.event-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 3px solid var(--text-color); flex-shrink: 0; }
.event-info { padding: 0; flex-grow: 1; }
.event-name { font-size: 1.4rem; font-weight: 900; margin: 0 0 10px 0; border-bottom: 2px solid var(--accent-olive); display: inline-block; padding-bottom: 5px; }
.event-desc { font-size: 1.1rem; line-height: 1.8; margin-bottom: 15px; }
.event-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--accent-olive);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid var(--text-color);
  box-shadow: 2px 2px 0px var(--text-color);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
}
.event-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--text-color);
}
.event-details { list-style: none; padding: 0; margin: 0; font-size: 1.1rem; line-height: 1.8; }
.event-details li strong { color: var(--accent-olive); margin-right: 10px; }

/* 4. MEMBERS (Carousel) */
.members-section { background-color: var(--accent-beige); padding: 80px 10%; border-bottom: var(--border-thick); overflow: hidden; }
.carousel-container { width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
.carousel-container::-webkit-scrollbar { height: 20px; }
.carousel-container::-webkit-scrollbar-track { background: transparent; }
.carousel-container::-webkit-scrollbar-thumb { background-color: var(--text-color); border-radius: 10px; border: 4px solid var(--accent-beige); }
.carousel-track { display: flex; gap: 30px; width: max-content; padding-top: 10px; }
.member-card { width: 300px; scroll-snap-align: start; background-color: #fff; border: var(--border-thick); border-radius: 12px; box-shadow: 8px 8px 0px var(--text-color); display: flex; flex-direction: column; overflow: hidden; }
.member-photo { width: 100%; height: 350px; object-fit: cover; border-bottom: var(--border-thick); }
.member-info { padding: 20px; background-color: var(--accent-olive); color: #fff; display: flex; flex-direction: column; flex-grow: 1; }
.member-role { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; }
.member-name { font-size: 1.5rem; font-weight: 900; }

/* 5. GALLERY (Carousel) */
.gallery-section { padding: 80px 10%; background-color: var(--bg-color); border-bottom: var(--border-thick); overflow: hidden; }
.gallery-card { width: 300px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: var(--border-thick); box-shadow: 8px 8px 0px var(--text-color); }
.gallery-img { width: 100%; height: 350px; object-fit: cover; display: block; cursor: pointer; transition: transform 0.3s; }
.gallery-img:hover { transform: scale(1.03); }

/* 6. FAQ */
.faq-section { background-color: var(--accent-beige); padding: 80px 10%; border-bottom: var(--border-thick); }
.faq-list { display: flex; flex-direction: column; gap: 20px; }
.faq-item { background-color: #fff; border: var(--border-thick); border-radius: 8px; box-shadow: 6px 6px 0px var(--text-color); overflow: hidden; }
.faq-item summary { padding: 20px; font-size: 1.2rem; font-weight: 900; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--accent-olive); cursor: pointer; transition: background-color 0.2s; }
.faq-item[open] summary { background-color: var(--accent-beige); }
.faq-item[open] summary::after { content: '-'; }
.faq-answer { padding: 20px; font-size: 1.1rem; line-height: 1.8; border-top: var(--border-thick); color: #4a4a4a; }

/* BASE */
.base-section { padding: 80px 10%; background-color: var(--accent-beige); border-bottom: var(--border-thick); }
.base-list { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.base-card { display: flex; flex-direction: row; background: #fff; border: var(--border-thick); border-radius: 12px; overflow: hidden; box-shadow: 6px 6px 0px var(--text-color); }
.base-info { flex: 1; padding: 40px; }
.base-map { flex: 1; border-left: var(--border-thick); min-height: 300px; line-height: 0; }
.base-map iframe { width: 100%; height: 100%; display: block; border: none; }
.base-name { font-size: 1.6rem; font-weight: 900; margin: 0 0 15px 0; border-bottom: 3px solid var(--accent-olive); display: inline-block; padding-bottom: 5px; }
.base-address { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; line-height: 1.5; }
.base-access { font-size: 1.1rem; opacity: 0.8; line-height: 1.6; }

/* LINKS */
.links-section { padding: 80px 10%; background-color: #fff; border-bottom: var(--border-thick); }
.link-list { list-style: none; padding: 0; margin: 40px 0 0 0; display: flex; flex-direction: column; gap: 20px; }
.link-list li a { display: block; padding: 25px; background: var(--bg-color); border: var(--border-thick); border-radius: 8px; font-size: 1.3rem; font-weight: 900; color: var(--text-color); text-decoration: none; transition: all 0.2s; box-shadow: 4px 4px 0px var(--text-color); position: relative; }
.link-list li a::after { content: "→"; position: absolute; right: 25px; transition: right 0.2s; }
.link-list li a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px var(--text-color); background: var(--accent-beige); }
.link-list li a:hover::after { right: 15px; }

/* 7. APPLY */
.apply-section { background-color: var(--bg-color); padding: 80px 10%; border-bottom: var(--border-thick); }
.apply-container { background-color: #fff; border: var(--border-thick); padding: 40px; border-radius: 12px; box-shadow: 8px 8px 0px var(--text-color); }
.apply-desc { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px dashed var(--accent-beige); }
.apply-desc strong { color: var(--accent-olive); }
.join-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-weight: 700; font-size: 1.1rem; }
.required { background-color: #e67e22; color: #fff; font-size: 0.8rem; padding: 2px 8px; border-radius: 4px; margin-left: 10px; vertical-align: middle; }
.join-form input, .join-form textarea { width: 100%; padding: 15px; border: var(--border-thick); border-radius: 8px; font-size: 1rem; font-family: inherit; box-sizing: border-box; background-color: var(--bg-color); }
.join-form input:focus, .join-form textarea:focus { outline: none; border-color: var(--accent-olive); background-color: #fff; }
.submit-btn { background-color: var(--text-color); color: #fff; border: none; padding: 20px; font-size: 1.2rem; font-weight: 900; border-radius: 8px; cursor: pointer; transition: all 0.2s; box-shadow: 6px 6px 0px var(--accent-olive); margin-top: 10px; font-family: inherit; }
.submit-btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0px var(--accent-olive); background-color: #444; }
.submit-btn:disabled { background-color: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }
.form-message { margin-top: 20px; padding: 15px; border-radius: 8px; font-weight: 700; text-align: center; }
.form-message.success { background-color: #e8f5e9; color: #2e7d32; border: 2px solid #2e7d32; }
.form-message.error { background-color: #ffebee; color: #c62828; border: 2px solid #c62828; }

/* FOOTER */
.footer { background-color: var(--accent-olive); color: #fff; padding: 60px 10%; text-align: center; position: relative; }
.footer-logo { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin: 30px 0; }
.footer-socials .social-icon:hover { color: var(--accent-beige); }
.copyright { margin-top: 30px; font-size: 0.9rem; opacity: 0.8; }

/* Mascot */
.mascot-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 101;
  display: flex;
  align-items: flex-end;
}
.mascot-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}
.mascot-bg:hover {
  transform: scale(1.1) rotate(-5deg);
}
.mascot-img {
  width: 80px;
  height: auto;
}
.mascot-bubble {
  position: absolute;
  bottom: 100%;
  left: 20px;
  margin-bottom: 15px;
  background: #fff;
  z-index: 2;
  color: var(--text-color);
  padding: 10px 15px;
  border: 3px solid var(--text-color);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0px var(--text-color);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.mascot-bubble.show {
  opacity: 1;
  transform: translateY(0);
}
.mascot-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
.mascot-bubble::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 17px;
  border-width: 13px 13px 0;
  border-style: solid;
  border-color: var(--text-color) transparent transparent transparent;
  z-index: -1;
}

/* LIGHTBOX MODAL */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.3s;
}
@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--accent-olive);
}

/* Fixed X Button */
.fixed-x-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 100;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fixed-x-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .sp-br { display: block; }
  .section-title { font-size: 2.5rem; }
  .about-content { padding: 30px 20px; }
  .content-wrapper { padding: 0 10px; }
  
  .hero-section { padding: 120px 5% 60px 5%; }
  .hero-wrapper { flex-direction: column; text-align: center; gap: 40px; }
  .hero-text-area { padding: 0 10px; width: 100%; box-sizing: border-box; }
  .main-title { font-size: clamp(2.5rem, 10vw, 3.5rem); word-break: break-word; line-height: 1.1; }
  .hero-subtitle { font-size: 1.3rem; }
  
  .event-list { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; text-align: center; padding: 20px; margin-top: 10px; }
  .event-img { width: 100%; height: 200px; }
  
  .members-section, .gallery-section { padding: 60px 5%; }
  .gallery-img { height: 250px; }
  .member-card { width: 280px; }
  .member-photo { width: 100%; height: 280px; }
  
  .lightbox-content { max-width: 95%; max-height: 70vh; }
  
  .base-section, .links-section { padding: 60px 20px; }
  .base-card { flex-direction: column; }
  .base-map { border-left: none; border-top: var(--border-thick); min-height: 250px; }
  
  .fixed-x-btn { bottom: 20px; right: 20px; font-size: 0.9rem; padding: 10px 20px; }
}
