@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Afacad+Flux:wght@700&display=swap');

:root {
  /* Colors */
  --color-teal: #71dddc;
  /* Adjust based on logo if needed, using a standard teal for now */
  --color-orange: #FF4500;
  /* Heat accent */
  --color-black: #111;
  --color-dark: #222;
  --color-gray: #f4f4f4;
  --color-white: #fff;
  --color-text: #333;

  /* Fonts */
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
  --font-en: 'Montserrat', sans-serif;

  /* Spacing */
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 8rem;

  /* Transitions */
  --trans-fast: 0.3s ease;
  --trans-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-white);
  width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--trans-fast);
}

a:hover {
  opacity: 0.7;
}

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.font-en {
  font-family: var(--font-en);
}

.text-teal {
  color: var(--color-teal);
}

.text-orange {
  color: var(--color-orange);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  clip-path: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  border-radius: 0 !important;
}

/* Subpage first section padding fix for fixed header */
body:not(.top-page) main section:first-of-type {
  padding-top: 180px; /* 80px header + 100px standard padding */
}

/* Header */
body.menu-open {
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform var(--trans-fast);
}

.header.hide {
  transform: translateY(-100%);
}

.logo {
  height: 40px;
}

.logo img {
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 15px; /* Spacing for mobile contact btn and hamburger */
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.mobile-contact-btn {
  display: none; /* PCでは非表示 */
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 2000;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-black);
  margin: 5px 0;
  transition: 0.3s;
}

/* Burger Animation */
.nav.is-open .menu-toggle span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 5px);
}
.nav.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .menu-toggle span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -5px);
}



.nav-item a {
  font-family: var(--font-en);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-black);
  transition: color 0.3s ease;
}

.nav-item a:hover {
  color: var(--color-teal);
}

/* CONTACT Button Highlight */
.nav-item:last-child a {
  background: var(--color-teal);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.nav-item:last-child a:hover {
  opacity: 0.8;
  color: var(--color-white);
}



/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--sp-xl) 0 var(--sp-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}

.footer-nav ul {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.copyright {
  text-align: center;
  margin-top: var(--sp-lg);
  font-size: 0.8rem;
  color: #888;
}

/* Unified Footer CTA */
.footer-cta {
  background-color: #86cac9;
  color: var(--color-white);
  padding: 100px 20px;
  text-align: center;
  clip-path: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.footer-cta h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.footer-cta p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta .cta-btn {
  display: inline-block;
  padding: 15px 50px;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 40px;
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.footer-cta .cta-btn:hover {
  background: var(--color-white);
  color: var(--color-teal);
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-cta {
    padding: 80px 20px;
  }
  .footer-cta h2 {
    font-size: clamp(1.4rem, 6.5vw, 2.2rem);
    white-space: nowrap;
  }
  .footer-cta p {
    font-size: 0.95rem;
  }
  .footer {
    padding: var(--sp-lg) 0 var(--sp-md);
  }
  .footer .container {
    padding: 0 1.2rem;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-md);
  }
  .footer-logo {
    margin-bottom: 0;
  }
  .footer-nav {
    width: 100%;
  }
  .footer-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  .footer-nav ul li a {
    font-size: 0.75rem;
    white-space: nowrap;
    letter-spacing: 0.05em;
  }
}

/* Intro Curtain */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  cursor: pointer;
}

.curtain-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #200;
  /* Fallback */
  background-image: url('../images/curtain.webp');
  background-size: cover;
  background-position: center;
  transform-origin: top;
  transition: transform 1.5s cubic-bezier(0.6, 0.05, 0.01, 0.99);
  /* Heavy then fast */
}

.intro-logo {
  position: relative;
  z-index: 2;
  width: 200px;
  filter: brightness(0) invert(1);
  /* Make logo white */
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.intro-active {
  overflow: hidden;
}

body.intro-done #intro {
  pointer-events: none;
}

body.intro-done .curtain-bg {
  transform: translateY(-100%);
}

body.intro-done .intro-logo {
  opacity: 0;
}

/* Reduced Motion */
/* --- PHILOSOPHY (MVC) --- */
.font-comfortaa { font-family: 'Comfortaa', cursive; }
.font-afacad { font-family: 'Afacad Flux', sans-serif; }

/* --- PHILOSOPHY (MVC) --- */
.font-comfortaa { font-family: 'Comfortaa', cursive; }
.font-afacad { font-family: 'Afacad Flux', sans-serif; }

/* --- DEFINITION SECTION (Final 3D Interaction) --- */
.definition-section {
  position: relative;
  background-color: #FFFFFF; /* Pure white background */
  padding: 120px 0;
  overflow: hidden;
  z-index: 10;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.definition-section .container {
  position: relative;
  z-index: 20;
  width: 100%;
}

/* 3D Interaction Container (Stacking Context for Z-index) */
.fire-interaction-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  /* Ensure children can stack properly */
  transform-style: preserve-3d;
}

/* Character Cards */
.fire-card {
  flex: 0 0 280px;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); /* Softer shadow for white bg */
  border: 1px solid #f0f0f0;
  position: relative;
  z-index: 10; /* Middle z-index */
  transition: transform 0.4s ease;
}

.fire-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Message */
.fire-message {
  flex: 1;
  text-align: center;
  z-index: 10;
  max-width: 500px;
}

.definition-line {
  font-family: 'Afacad Flux', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: #111; /* Dark text for white background */
  line-height: 1.3;
  margin: 15px 0;
  letter-spacing: 0.02em;
}

/* Heat Accent with Glow */
.heat-accent {
  color: #FF4500;
  position: relative;
  display: inline-block;
  font-weight: 900;
}

.heat-accent::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 69, 0, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: glowHeat 2s infinite alternate;
}

@keyframes glowHeat {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}



.fireball-seed {
  position: absolute;
  width: 45px;
  height: 45px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ffd000 20%, #ff4500 60%, #b32400 100%);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 15px #ff4500, 0 0 30px rgba(255, 69, 0, 0.5), 0 0 60px rgba(255, 69, 0, 0.3);
  /* Perfect 3D Loop Path */
  offset-path: path('M 150,300 C 150,50 450,50 600,300 C 750,550 1050,550 1050,300 C 1050,50 750,50 600,300 C 450,550 150,550 150,300');
  offset-distance: 0%;
  animation: moveFire3D_V2 8s linear infinite, flickerSeed 0.1s infinite alternate;
}

@keyframes moveFire3D_V2 {
  0%   { offset-distance: 0%;   z-index: 25; opacity: 1;   filter: blur(0px); transform: scale(1.2); }
  25%  { offset-distance: 25%;  z-index: 5;  opacity: 0.6; filter: blur(4px); transform: scale(0.7); } /* Back */
  50%  { offset-distance: 50%;  z-index: 25; opacity: 1;   filter: blur(0px); transform: scale(1.2); } /* Front */
  75%  { offset-distance: 75%;  z-index: 5;  opacity: 0.6; filter: blur(4px); transform: scale(0.7); } /* Back */
  100% { offset-distance: 100%; z-index: 25; opacity: 1;   filter: blur(0px); transform: scale(1.2); }
}

@keyframes flickerSeed {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(15deg); }
}

/* Responsive Overhaul */
@media (max-width: 992px) {
  .fire-interaction-container {
    gap: 30px;
  }
  .fire-card {
    flex: 0 0 220px;
  }
}

@media (max-width: 768px) {
  .fire-interaction-container {
    flex-direction: column;
    gap: 40px;
  }
  .fire-card.female { order: 1; }
  .fire-message { order: 2; }
  .fire-card.male { order: 3; }
  
  .fire-card {
    flex: 0 0 auto;
    max-width: 260px;
  }

  .fireball-seed {
    /* Vertical path for mobile */
    offset-path: path('M 250,150 C 50,150 50,450 250,450 C 450,450 450,750 250,750 C 50,750 50,450 250,450 C 450,450 450,150 250,150');
    width: 35px;
    height: 35px;
  }
}

@keyframes flickerFire {
  0% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  100% { transform: scale(1.1) rotate(10deg); opacity: 1; }
}



/* Responsive */
@media (max-width: 768px) {
  .philosophy-section {
    padding: 80px 20px;
  }
  
  .philosophy-item {
    margin-bottom: 60px;
  }
  
  .phil-content {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #intro {
    display: none !important;
  }

  .header {
    position: sticky;
  }

  .cta-btn {
    position: absolute;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
  padding-top: 80px;
  /* Header height */
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  /* For parallax */
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 6s ease-out;
  /* Fade and slow zoom */
  transform: scale(1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.05);
  /* Zoom effect on active */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1; /* Same as slider */
}

.hero {
  background: #000;
  position: relative;
  overflow: hidden;
  height: 100vh;
}

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

.hero.is-active .hero-slider {
  opacity: 1;
}

.hero-overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.mask-svg {
  width: 100%;
  height: 100%;
  display: block;
}

#heat-text {
  font-size: 45vw; /* Balanced size */
  transform-origin: center;
  transform: scaleX(1.4); /* Horizontal character feel */
}

.masked-rect {
  filter: url(#heat-haze);
}

.hero-sub-copy-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.sequential-copy-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sequential-copy {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.4em;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  /* Sharp look with shadow for legibility */
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
  animation: slideUpFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Sequential Delays */
.sequential-copy:nth-child(1) { animation-delay: 1.0s; }
.sequential-copy:nth-child(2) { animation-delay: 1.5s; }
.sequential-copy:nth-child(3) { animation-delay: 2.0s; }

@keyframes slideUpFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #heat-text {
    font-size: 80vw;
    transform: scaleX(1.1);
  }
  .sequential-copy {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    padding: 0 15px;
  }
  .sequential-copy-group {
    gap: 15px;
  }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-text {
  writing-mode: vertical-rl;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-white);
  font-weight: 700;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-orange);
  animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(200%);
  }
}

/* Concept Section */
.concept {
  text-align: center;
  background-image: url('../images/concept-bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}

/* About Summary Section */
.about-summary {
  background-image: url('../images/about-bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}

/* Co-creation Summary Section */
.co-creation-summary {
  background-image: url('../images/co-creation-bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}

/* Activity Summary Section */
.activity-summary {
  position: relative;
  /* color: var(--color-white); */ /* The bg is now light gray, maybe keep dark text? */
  overflow: hidden;
}

/* Member Summary Section */
.member-summary {
  /* Background handled by JS (body) or we can set it here for fallback/overlay */
  /* data-bg handles the main color, but we need text color white */
  color: var(--color-white);
}



.member-grid-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto var(--sp-md);
}

@media (max-width: 768px) {
  .member-grid-preview {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }
}

.member-preview-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.member-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.member-preview-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.member-preview-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  text-align: left;
}

.member-preview-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #fff;
}

.member-preview-info p {
  font-size: 0.85rem;
  opacity: 0.9;
  color: #fff;
}

/* Movie Poster Style Cards */
.poster-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  /* "Larger/Wider" as requested */
  /* height: 500px; - Img determines height */
  border-radius: 4px;
  /* Slight radius for sleekness, or user said "Square" (poster) */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.poster-card img {
  width: 100%;
  height: 500px;
  /* Fixed height as requested */
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.5s ease;
  display: block;
}

.poster-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.poster-card-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--color-white);
  opacity: 1; /* Always visible */
  transition: 0.4s ease;
  transform: translateY(0); /* No offset */
}

.poster-card:hover .poster-card-info {
  opacity: 1;
  transform: translateY(0);
}

.poster-card-info h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.poster-card-info p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: var(--color-white); /* Ensure pure white */
  opacity: 1; /* Maximum visibility */
}

/* Legacy Member Styles (potentially unused or for member.html if shared) */
.member-card-check {
  display: none;
}

/* just to mark end of block */

/* --- Dynamic Member Page Styles --- */

/* Filter */
.member-filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-xl);
}

.member-filter {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.member-filter li {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--color-teal);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-teal);
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.member-filter li:hover,
.member-filter li.active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #fff;
}

/* --- About Page Rebuild Styles --- */

/* 1. About Hero */
.about-hero {
  text-align: center;
  padding: 120px 0 60px;
  background: #000;
}

.about-hero-sub {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.scroll-down-arrow {
  font-size: 2rem;
  color: var(--color-teal);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* 2. Basic Facts */
.facts-grid {
  display: flex;
  justify-content: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.fact-card {
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-width: 200px;
  border-top: 4px solid var(--color-teal);
}

.fact-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: 5px;
}

.fact-unit {
  font-size: 1.2rem;
  margin-left: 5px;
  color: #333;
}

.fact-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.fact-sub {
  font-size: 0.8rem;
  color: #888;
}

/* 3. Member Composition */
.center-title {
  text-align: center;
  margin-bottom: 10px;
}

.center-text {
  text-align: center;
  margin-bottom: 40px;
}

.composition-grid {
  display: flex;
  justify-content: space-around;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.comp-col {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.comp-title {
  font-family: var(--font-en);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #444;
}

.chart-wrapper {
  position: relative;
  height: 350px; /* Increased to accommodate bottom legend */
  width: 100%;
}

.comp-number {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
}

.country-list {
  text-align: left;
  display: inline-block;
  margin: 0 auto;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.country-flag img {
  width: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 4. The Stage (Black Sections) */
.stage-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: var(--sp-xl) 0;
  position: relative;
}

.text-white {
  color: var(--color-white);
}

.mvc-block {
  text-align: center;
}

.mvc-label {
  font-size: 3rem;
  opacity: 0.2;
  margin-bottom: 10px;
  line-height: 1;
}

.mvc-main {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.5;
}

.heat-text {
  color: var(--color-orange);
  display: inline-block;
  animation: heatFlicker 3s infinite;
}

.heat-brush {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 0.1em;
}

.heat-brush::before {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -5%;
  width: 110%;
  height: 60%;
  background: rgba(255, 69, 0, 0.15); /* 薄いオレンジ */
  z-index: -1;
  transform: rotate(-1deg) skewX(-15deg);
  border-radius: 5px 10px 8px 12px;
  filter: blur(1px);
}

@keyframes heatFlicker {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 10px var(--color-orange);
  }

  50% {
    opacity: 0.8;
    text-shadow: 0 0 20px #FF6347;
  }
}

.concept-title {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 30px;
  letter-spacing: 0.2em;
}

.concept-desc {
  font-size: 1.5rem;
}

.sv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 60px auto 0;
}

.sv-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.sv-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-teal);
  opacity: 0.5;
  line-height: 1;
}

.sv-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--color-teal);
  display: inline-block;
  padding-bottom: 5px;
}

.sv-content p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* 5. History */
.history-section {
  background: #fff;
}

.history-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Line */
.history-timeline::before {
  content: '';
  position: absolute;
  left: 35px;
  /* Adjust based on year width */
  top: 0;
  bottom: 0;
  width: 2px;
  background: #eee;
}

.history-row {
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.history-row.active {
  opacity: 1;
}

.history-year {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-teal);
  min-width: 100px;
  text-align: right;
  line-height: 1;
}

.history-content {
  padding-top: 10px;
}

.history-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* 5. History */
.history-section {
  background: #fff;
}

.history-wrapper {
  display: flex;
  gap: 60px;
  max-width: 900px;
  margin: 60px auto 0;
  position: relative;
}

.history-left {
  flex: 0 0 150px;
  /* Width for the year */
  position: relative;
}

#history-fixed-year {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.history-right {
  flex: 1;
  border-left: 2px solid #eee;
  padding-left: 30px;
}

.history-row {
  margin-bottom: 100px;
  opacity: 0.3;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
}

.history-row.active,
.history-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bullet point */
.history-row::before {
  content: '';
  position: absolute;
  left: -69px;
  /* -60px pad - 2px border - 7px center */
  top: 10px;
  width: 16px;
  height: 16px;
  background: #eee;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.history-row.active::before {
  background: var(--color-teal);
}

.history-year-label {
  /* Visible on Mobile, hidden on PC? */
  display: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 10px;
}

.history-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  writing-mode: horizontal-tb;
}

.history-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .history-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .history-left {
    display: none;
    /* Hide sticky year on mobile */
  }

  .history-right {
    border-left: 2px solid #eee;
    padding-left: 30px;
  }

  .history-row::before {
    left: -39px;
  }

  .history-year-label {
    display: block;
    /* Show year inline on mobile */
  }
}

/* 6. CTA */
.about-cta {
  text-align: center;
  background: #fafafa;
  padding: 80px 0;
}

.cta-msg {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.cta-link-btn {
  display: inline-block;
  background: var(--color-teal);
  color: #fff;
  padding: 15px 50px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 128, 128, 0.3);
}

.cta-link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 128, 128, 0.4);
  opacity: 1;
}


.cta-msg {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.cta-link-btn {
  display: inline-block;
  background: var(--color-teal);
  color: #fff;
  padding: 15px 50px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 128, 128, 0.3);
}

.cta-link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 128, 128, 0.4);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .sv-grid {
    grid-template-columns: 1fr;
  }

  .history-row {
    flex-direction: column;
    gap: 10px;
  }

  .history-timeline::before {
    display: none;
  }

  .history-year {
    text-align: left;
    font-size: 2rem;
  }

  .mvc-label {
    font-size: 2rem;
  }

  .mvc-main {
    font-size: 1.5rem;
  }

  .concept-title {
    font-size: 3rem;
  }
}

/* Member Grid */
.member-grid-wrapper {
  margin-bottom: var(--sp-xl);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-container-relative {
  position: relative;
  width: 100%;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  padding: 20px 0;
}

.member-grid .poster-card {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

@media (max-width: 768px) {

  /* Hide buttons on mobile where swipe is natural? Or keep small? */
  /* User requested buttons, let's keep them but maybe smaller or relying on swipe is better. */
  /* Often buttons overlap content on mobile. Let's make sure they are visible. */
  .carousel-nav {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

/* Small Cards (Grid) */
.member-card-small {
  width: 180px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.3s ease;
}

.member-card-small:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.member-img-small {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.member-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info-small h4.member-name-small {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--color-white);
}

.member-info-small p.member-role-small {
  font-size: 0.8rem;
  opacity: 0.7;
  color: var(--color-white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .member-carousel .poster-card {
    width: 280px;
    /* Smaller cards on mobile */
  }

  .poster-card img {
    height: 400px;
    /* Adjust height */
  }

  .member-carousel {
    /* Mobile Card width: 280px -> Half: 140px */
    padding: 20px calc(50% - 140px);
  }
}

.role-title {
  text-align: center;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--sp-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  display: block;
}

.role-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-teal);
  margin: 10px auto 0;
}

/* Add overlay for readability */
.concept::before,
.about-summary::before,
.co-creation-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.concept .container,
.about-summary .container,
.co-creation-summary .container,
.activity-summary .container {
  position: relative;
  z-index: 2;
}

/* Scroll Snap & Stage Transitions - JS Controlled (TOP PAGE ONLY) */
html.top-page,
body.top-page {
  height: auto;
  overflow: visible;
  /* Back to normal scroll */
}

/* Default for other pages */
html,
body {
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

body.top-page main {
  height: auto;
  transition: none;
}

body.top-page main section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
  /* background-color handled via data-bg in script.js or specific classes */
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1); /* Overlay shadow */

  /* Section Transition (Opacity effect only, no transform to avoid sticky issues) */
  opacity: 1; 
  transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1);
}

.hero {
  position: sticky;
  top: 0;
  z-index: 1; /* Stay behind */
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  box-shadow: none; /* No shadow for the base layer */
}

/* Layer 5: Bottom-most Slideshow */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 1;
}

/* Layer 4: Black Shield */
.hero-black-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 1;
  opacity: 1;
  transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-black-bg.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Layer 3: Fire Video Layer */
.hero-video-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background: #000;
}

.hero-video-layer.is-active {
  opacity: 1;
}

.hero-video-layer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff0000;
  mix-blend-mode: color;
  opacity: 0.4;
  z-index: 3;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.5) contrast(1.1);
}

/* Content Container for Centering */
.hero-content-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

/* Layer 2: Title '熱' */
.hero-title-layer {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-title-layer.is-active {
  opacity: 1;
}

.heat-title-serif {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(6rem, 20vw, 15rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.2em;
  margin: 0;
  text-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 69, 0, 0.2);
  transition: color 1s ease, text-shadow 1s ease, filter 1s ease;
}

/* Layer 1: Typing Text */
.hero-typing-layer {
  width: 100%;
  max-width: 90vw;
}

.sequential-copy-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.typing-line {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #ffffff !important; /* Always white */
  letter-spacing: 0.3em;
  margin: 0;
  min-height: 1.5em;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.5);
  font-family: var(--font-jp);
  transition: opacity 1s ease;
}

/* Shared Burning State - ONLY for Title now */
.heat-title-serif.is-burning {
  color: transparent !important;
  background: linear-gradient(to bottom, #ffcc00, #ff4500);
  -webkit-background-clip: text;
  background-clip: text;
  filter: url(#heat-haze);
  text-shadow: 
    0 0 10px rgba(255, 204, 0, 0.8),
    0 0 30px rgba(255, 69, 0, 0.6),
    0 0 60px rgba(255, 0, 0, 0.4),
    0 0 100px rgba(255, 69, 0, 0.2);
}

/* --- Skip Opening Styles --- */
.skip-opening #intro {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {

  html,
  body {
    overflow: auto;
    /* Restore scroll */
    height: auto;
  }

  main {
    transform: none !important;
    height: auto;
  }

  main section,
  .fade-title,
  .fade-text,
  .fade-btn {
    height: auto;
    min-height: 100vh;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Hero is special, active by default or handled by JS, but should follow snap */
.hero {
  scroll-snap-align: start;
  opacity: 1;
  /* Hero starts visible usually, or handled by Intro */
  transform: none;
}

main section.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Previous section state (optional, handled by removing is-active returning to init state or custom class) */
/* The user asked: "Previous section ... opacity: 0; transform: translateY(-10px)"
   This implies when a section is SCROLLED PAST (becomes "previous"), it should behave this way.
   However, removing .is-active usually reverts to init state (translateY(10px)).
   To strictly follow "translateY(-10px)" for previous, we might need a .is-past class.
   For now, strictly following the request means when it loses active, if it's ABOVE, it should go -10px.
   If strictly "when is-active is removed", that applies to BOTH entering from bottom and leaving to top.
   Let's stick to the base request: "Previous section... active removed... -10px"
   Actually, usually you want 10px coming IN, and maybe -10px going OUT UP.
   Let's assume standard behavior: reverts to hidden. 
   BUT user said: "Previous section is active removed -> transform: translateY(-10px)"
   I will implement a .is-past class or just handle the revert state.
   Actually, if I just change the defaults, it applies to all non-active.
   Let's set default (non-active) to translateY(10px).
   If we want -10px specifically when it's "previous", we need JS to track direction.
   Let's approximate: simple fade out/in is robust.
   User request: "Previous section is active removed... translateY(-10px)" matches "Leaving up".
   I will add a specific rule if I can, but standard "not active" = "hidden" is safer for bi-directional scroll.
   Reflecting on user requirement: "Previous section...". I will stick to the generic "not active" state being `translateY(10px)` which implies "waiting to come up" or "just left down". 
   Wait, if I scroll DOWN, the Top section goes UP. So it should move to -10px?
   If I scroll UP, the Bottom section goes DOWN. So it should move to 10px?
   CSS transitions are state-based.
   Let's simple set non-active to translateY(10px) (coming from bottom). 
   The user specific request about "previous" might just be a mental model of "sliding out".
   I'll stick to one non-active state for simplicity unless they crave the specific directional exit.
   Actually, "Previous section" usually means the one ABOVE the current one.
   If I am at Section 2, Section 1 is "previous".
   If Section 1 is -10px, that fits.
*/

@media (prefers-reduced-motion: reduce) {
  main section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    scroll-snap-align: none;
    /* Optional, but maybe safer */
  }

  html {
    scroll-snap-type: none;
  }
}

.concept-head {
  font-size: 4rem;
  font-weight: 900;
  margin: var(--sp-md) 0;
  letter-spacing: 0.1em;
}

.concept-text {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: var(--sp-lg);
  font-weight: 500;
}

/* Generic Section Styles Override for title AFTER concept to keep flow */
.section-title {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: var(--sp-md);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-teal);
  margin-top: 1rem;
  margin-left: auto;
  /* Center alignment support if needed, but title is left aligned usually */
}

/* Centering specifically for Concept */
.concept .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--color-teal);
  color: var(--color-white);
  padding: 1rem 3rem;
  font-weight: 700;
  border-radius: 0;
  margin-top: var(--sp-md);
  font-family: var(--font-en);
  letter-spacing: 0.1em;
}

.btn-primary:hover {
  background: var(--color-black);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --sp-xl: 4rem;
  }

  .header {
    height: 70px;
    flex-wrap: nowrap;
    padding: 0 var(--sp-md);
  }





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

/* Contact Form Styles */
.contact-form-section {
  background: var(--color-white);
}

.contact-form {
  max-width: 1000px;
  /* Increased from 800px for wider fields on PC */
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--sp-md);
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-en);
  /* Or JP depending on preference, mixture here */
}

.required {
  color: var(--color-orange);
  margin-left: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-family: var(--font-jp);
  font-size: 1rem;
  transition: border-color var(--trans-fast), background-color var(--trans-fast);
  border-radius: 0;
  /* Sharp edges */
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  background: #fff;
}

button[type="submit"] {
  width: 100%;
  margin-top: var(--sp-md);
  cursor: pointer;
  border: none;
  background: var(--color-teal);
  color: var(--color-white);
  transition: background-color var(--trans-fast);
}

button[type="submit"]:hover {
  background: #006666;
  /* Darker Teal */
  opacity: 1;
}

button[type="submit"]:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#form-status {
  text-align: center;
  font-family: var(--font-jp);
}

.status-success {
  color: var(--color-teal);
}

.status-error {
  color: var(--color-orange);
  /* Using Orange as 'Red'/Error color in this theme */
}

/* --- Member Modal --- */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.8); 
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-content {
  background-color: var(--color-white);
  color: var(--color-text);
  margin: auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: translateY(50px);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
}

.modal-img-container {
  flex: 0 0 40%;
  background: #f0f0f0;
}

.modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1.2;
  padding: 40px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar */
.modal-info::-webkit-scrollbar {
  width: 6px;
}
.modal-info::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.modal-info::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.modal-info::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.modal-info h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.modal-info .font-en {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

.modal-info p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

body.modal-open {
  overflow: hidden;
}

/* --- ABOUT Page: Storytelling Styles --- */
.story-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.story-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Animations */
.story-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* SHARED VALUE (New Vertical Structure) */
.sv-main-section {
  position: relative;
  background-color: #000;
  color: #fff;
  padding: 5vh 0 15vh 0;
  overflow: visible;
}

.sv-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 15vh 0 5vh 0;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.sv-list-item {
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.15;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: left;
  display: flex;
  align-items: flex-start;
}

.sv-list-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sv-num {
  font-size: 1.2rem;
  margin-right: 20px;
  margin-top: 8px; /* テキストとの高さバランス調整 */
  color: var(--color-teal);
}

/* クライマックス演出 (Image Layering) */
.sv-climax {
  position: relative;
  height: auto;
  min-height: 70vh;
  margin-bottom: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible; /* 枠外への飛び出しを許可 */
  z-index: 5;
}

.climax-container {
  position: relative;
  width: 75%; /* 指定に基づき75% */
  max-width: 1000px; /* 舞台の基準幅 */
  margin: 0 auto;
  overflow: visible;
}

.stage-frame {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1; /* 最背面 */
}

.jumping-people {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) scale(1.4); /* 指定に基づきscale(1.4) */
  width: 100%; /* 基準幅を舞台に合わせる */
  max-width: none;
  z-index: 5; /* 中間層 */
  pointer-events: none;
} 

/* people-image (alias) */
.people-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) scale(1.4);
  width: 100%;
  max-width: none;
  z-index: 5;
  pointer-events: none;
}


.on-stage-text {
  position: absolute;
  bottom: 5%; /* 舞台境界線をまたぐように配置 */
  left: 50%;
  transform: translate(-50%, 0) rotate(-7deg); /* 躍動感のある傾き */
  font-size: clamp(4rem, 18vw, 15rem); /* レスポンシブな可変サイズ */
  font-weight: 900;
  line-height: 1.1; /* 下端の切れを防止するために調整 */
  padding-bottom: 0.1em; /* gのしっぽ部分のスペース確保 */
  letter-spacing: -0.02em;
  white-space: nowrap;
  z-index: 100; /* 最前面に固定 */
  
  /* エネルギッシュな多色グラデーション */
  background: linear-gradient(to right, #71dddc, #ffffff 50%, #FF4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  /* 強い光彩エフェクト */
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) 
          drop-shadow(0 0 30px rgba(0, 128, 128, 0.6));
  
  /* アニメーションの初期状態（story-climax-anim用） */
  opacity: 0;
  transition: all 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* エネルギーの渦（火花エフェクト） */
.on-stage-text::before,
.on-stage-text::after {
  content: '★';
  position: absolute;
  font-size: 1rem;
  -webkit-text-fill-color: #FFD700;
  opacity: 0;
  pointer-events: none;
}

.on-stage-text::before {
  top: -10%; left: 20%;
  animation: spark-1 2s infinite;
}

.on-stage-text::after {
  bottom: -10%; right: 20%;
  animation: spark-2 2.5s infinite;
}

@keyframes spark-1 {
  0% { transform: scale(0) rotate(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.5) rotate(180deg) translate(-50px, -50px); opacity: 0; }
}

@keyframes spark-2 {
  0% { transform: scale(0) rotate(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1.5) rotate(-180deg) translate(50px, 50px); opacity: 0; }
}

/* TOPページ（白背景）向けの調整 */
.sv-summary .on-stage-text {
  font-size: clamp(4rem, 15vw, 12rem);
}

@media (max-width: 768px) {
  .sv-summary .on-stage-text {
    font-size: clamp(3rem, 12vw, 6rem);
    transform: translate(-50%, 0) rotate(-5deg);
    bottom: 5%;
  }
}

/* Animations for Climax */
.story-climax-anim {
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.stage-frame.story-climax-anim {
  transform: translateY(40px);
}

.on-stage-text.story-climax-anim {
  transform: translate(-50%, 40px) rotate(-7deg);
}

.jumping-people.story-climax-anim {
  opacity: 0;
  transform: translate(-50%, -40%) scale(1.1); /* 初期値：小さめ・下め */
}

/* is-visible 付与時の順次発動 */
.sv-climax.is-visible .stage-frame,
.is-visible .sv-climax .stage-frame {
  opacity: 1;
  transform: translateY(0);
}

.sv-climax.is-visible .on-stage-text,
.is-visible .sv-climax .on-stage-text {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-7deg);
  transition-delay: 0.4s;
}

.sv-climax.is-visible .jumping-people,
.is-visible .sv-climax .jumping-people {
  opacity: 1;
  transform: translate(-50%, -60%) scale(1.4); /* 飛び出す最終位置 */
  transition-delay: 0.8s;
}

/* INFORMATION Section */
.information-section {
  background-color: #f4f4f4;
  padding: 120px 0;
}

.information-section .section-title {
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .sv-step { font-size: 1.5rem; margin-bottom: 30vh; }
  .climax-container { width: 95%; }
  .on-stage-text { font-size: 3.5rem; bottom: 10%; }
  .jumping-people { top: -10%; width: 140vw; }
  .information-section { padding: 80px 0; }
}

/* MISSION & VISION */
.story-label {
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}
.story-main {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .story-main { font-size: 1.8rem; }
}

/* CONCEPT Timeline */
.concept-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 2rem;
}
.concept-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6px;
  width: 4px;
  height: 100%;
  background: rgba(0, 0, 0, 0.15); /* 白背景に合わせて暗く */
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  top: 5px;
  left: -2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-teal);
  border: 4px solid #fff;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 128, 128, 0.6);
}
.timeline-content {
  font-size: 1.5rem;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .timeline-content { font-size: 1.2rem; }
}
/* ----- ACTIVITY PAGE STYLES ----- */
.activity-hero {
  text-align: center;
  background: #fff;
  padding: 80px 0;
}
.activity-hero .hero-title {
  font-size: 4rem;
  color: var(--color-teal);
  margin: 0;
}
.activity-hero .hero-underline {
  width: 120px;
  height: 3px;
  background: var(--color-teal);
  margin: 10px auto;
}
.activity-hero .hero-caption {
  font-size: 1.2rem;
  color: #555;
}

.poster-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.poster-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

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

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

.poster-card-info {
  padding: 20px;
  text-align: center;
}

.poster-title {
  font-size: 1.5rem;
  color: var(--color-teal);
  margin-bottom: 8px;
}

.poster-caption {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.click-info {
  font-size: 0.8rem;
  color: var(--color-teal);
  font-weight: bold;
  opacity: 0.7;
}

.hidden { display: none; }

/* --- TOP Page Redesign Components --- */

/* Activity Grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.activity-item {
  background: #ffffff;
  padding: 30px;
  border: 2px solid #e0e0e0; /* Thicker and darker border */
  border-radius: 12px; /* Slightly more rounded */
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Add subtle default shadow for better depth */
  text-decoration: none;
  color: inherit;
  display: block;
}

.activity-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.activity-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
}

.activity-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-item:hover .activity-img-wrapper img {
  transform: scale(1.05);
}

.activity-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-teal);
}

.activity-item p {
  font-size: 0.95rem;
  color: #666;
}

/* News List Alt */
.news-list-alt {
  max-width: 800px;
  margin: 0 auto;
}

.news-list-alt li {
  border-bottom: 1px solid #eee;
}

.news-list-alt li a {
  display: flex;
  flex-direction: column; /* 縦並びに変更 */
  align-items: flex-start;
  padding: 25px 0;
  gap: 12px; /* 行間の調整 */
}

.news-list-alt .date {
  font-family: var(--font-en);
  color: #999; /* NEWSページに合わせる */
  font-weight: 500;
  font-size: 0.9rem;
}

.news-list-alt .category-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--color-teal);
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 700;
}

.news-list-alt .title {
  font-weight: 500;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Shared Value Summary Overrides */
.sv-summary .sv-climax {
  min-height: 50vh;
  margin-bottom: 80px;
  overflow: visible !important; /* クリッピング防止 */
}

.sv-summary {
  padding-bottom: 100px; /* はみ出し防止用 */
}

.sv-summary .on-stage-text {
  font-size: 6rem; /* Slightly smaller for top page */
}

@media (max-width: 768px) {
  /* Header & Nav */
  .header {
    height: 70px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 0 var(--sp-md);
  }

  .logo {
    height: 32px;
    flex-shrink: 0;
  }

  .nav {
    margin-left: auto;
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.4s ease;
    z-index: 1500;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  .nav.is-open .nav-list {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-contact-btn {
    display: block; /* スマホで表示 */
    background: var(--color-teal);
    color: var(--color-white) !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
  }

  /* HERO */
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  /* Shared Value */
  .climax-container {
    width: 95%;
    margin: 0 auto;
    overflow: visible !important; /* 枠外への突き出しを許可 */
  }

  .stage-frame {
    width: 100%;
    height: auto;
    border-radius: 0;
    mask-image: none;
    -webkit-mask-image: none;
    clip-path: none;
  }

  .jumping-people {
    width: 120%;
    transform: translate(-50%, -50%) scale(1.0);
  }

  .is-visible .sv-climax .jumping-people {
    transform: translate(-50%, -60%) scale(1.3); /* 舞台から大胆に突き出させる */
    z-index: 10;
  }

  .on-stage-text {
    font-size: 4rem !important;
    bottom: 8%; /* 絨毯のスポットライト位置へ */
    z-index: 20;
  }

  /* Activity Grid (TOP Page) */
  .activity-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .activity-item {
    padding: 20px;
  }

  .activity-img-wrapper {
    height: 150px;
  }

  .activity-img-wrapper img {
    object-fit: cover;
  }

  /* Activity Page (Landscape Cards) */
  .poster-container {
    padding: 20px;
  }

  /* Activity Page Styles */
  .poster-container .poster-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 250px !important;
    height: auto !important;
    margin-bottom: 30px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
  }

  .poster-container .poster-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    object-fit: cover !important;
    filter: brightness(0.7) !important;
  }

  .poster-container .poster-card-info {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    padding: 60px 20px 20px 20px !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 250px !important;
    text-align: left !important;
  }

  /* Member Page Styles */
  .member-grid {
    grid-template-columns: 1fr !important; /* Single column */
    justify-items: center !important;
    gap: 30px !important;
  }

  .member-grid .poster-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 280px !important;
    min-height: 380px !important; /* Portrait poster style */
    height: auto !important;
    margin-bottom: 30px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
  }

  .member-grid img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    object-fit: cover !important;
    filter: brightness(0.8) !important;
  }

  .member-grid .poster-card-info {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    padding: 20px !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 380px !important;
    text-align: left !important;
  }

  .poster-container .poster-title {
    color: #fff !important;
    font-size: 1.6rem !important;
    margin-bottom: 8px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
  }

  .poster-container .poster-caption {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    display: block !important;
  }

  .member-grid .poster-title {
    color: #fff !important; /* White on mobile overlay */
    font-size: 1.4rem !important;
    margin-bottom: 5px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
  }

  .member-grid .poster-caption {
    color: rgba(255, 255, 255, 0.9) !important; /* White on mobile overlay */
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  .click-info {
    align-self: flex-end !important; /* Place at bottom right */
    color: #71dddc !important; /* Bright teal for contrast */
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
  }

  /* Member Section (Already defined above) */

  /* Contact Section */
  .contact-section h2 {
    white-space: nowrap;
    font-size: 1.8rem !important;
  }
}
/* Member Modal History */
.member-history {
    white-space: pre-wrap;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
    margin-top: 5px;
}

/* Mobile Modal Adjustments */
@media (max-width: 767px) {
  .modal-content {
    max-height: 90vh !important;
    width: 95% !important;
  }
  .modal-body {
    display: block !important;
    overflow-y: auto !important; /* Entire body scrolls */
    -webkit-overflow-scrolling: touch;
  }
  .modal-img-container {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important; /* Higher than info to keep on top */
    flex: none !important;
    height: 40vh !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .modal-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .modal-info {
    padding: 20px !important;
    overflow-y: visible !important;
    flex: none !important;
    background: #fff !important;
    position: relative !important;
    z-index: 1 !important; /* Lower than image container */
  }
  .modal-info-header {
    top: 0 !important; /* Adjust sticky header if present */
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-list-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 15px;
  align-items: center;
}

.skeleton-card {
  height: 300px;
  width: 100%;
  background: #eee;
  border-radius: 12px;
}

/* --- Categorized Activity Styles --- */
.activity-category-section {
    padding: 100px 0;
}

.category-title {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: #008080; /* Requested Teal */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.category-subtitle {
    font-family: var(--font-jp);
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 60px;
    font-weight: 500;
}

/* Grids */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Styles */
.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fcfcfc;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.project-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover .project-card-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-family: var(--font-jp);
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.project-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.8;
    font-family: var(--font-jp);
}

.project-card-link {
    margin-top: auto;
    padding-top: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #008080;
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 992px) {
    .projects-grid.current,
    .projects-grid.past {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .activity-category-section {
        padding: 80px 0;
    }
    .projects-grid.current,
    .projects-grid.past {
        grid-template-columns: 1fr;
    }
    .project-card-img {
        height: 200px;
    }
}
