:root {
  --bg-color: #080808;
  --text-main: #f0f0f0;
  --text-muted: #aaaaaa;
  --accent-primary: #3B82F6;
  --accent-secondary: #8B5CF6;
  --accent-glow: rgba(59, 130, 246, 0.4);
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
  --max-width: 1200px;
  --easing: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-jp);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography (Japanese Optimized) */
h1,
h2,
h3,
h4 {
  font-family: var(--font-jp);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.display-hero {
  font-family: var(--font-en);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  border-left: 6px solid var(--accent-primary);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
}

.section-title span {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Structure */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glass Cards (High Readability for Dense Text) */
.glass-card {
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(40, 40, 40, 0.7) 100%);
}


/* GALLERY: Compact Grid with View More */
.gallery-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  max-height: 600px;
  /* Initially limit height */
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.gallery-compact.expanded {
  max-height: none;
  overflow: visible;
}

.gallery-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-color));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  pointer-events: none;
  /* Let clicks pass through if needed, but button handles interaction */
}

.gallery-compact.expanded .gallery-overlay-gradient {
  display: none;
}

.btn-view-more {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.btn-view-more:hover {
  background: #2563eb;
}


/* FOUNDER IMAGE LAYER */
.founder-layer-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.founder-bg-shape {
  position: absolute;
  width: 100%;
  height: 80%;
  bottom: 0;
  background: radial-gradient(circle at center, #333 0%, #111 100%);
  border-radius: 20px;
  z-index: 1;
}

.founder-img {
  position: relative;
  z-index: 2;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}


/* FINANCE TABLES (Detailed) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.data-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-primary);
  font-weight: 700;
}

.text-right {
  text-align: right;
}


/* GLOBAL EXAMPLES GRID */
.global-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.global-card {
  position: relative;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.global-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--easing);
  display: block;
}

/* Video Container (Responsive) */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* CARD & IMAGE ANIMATIONS */
.global-card:hover img {
  transform: scale(1.1);
}

.global-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* IMAGES & CONTAINER UPGRADES */
.img-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
  height: 100%;
  min-height: 300px;
  /* Ensure visibility */
}

.img-container:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
  border-color: var(--accent-primary);
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--easing);
}

.img-container:hover img {
  transform: scale(1.05);
}

/* Add a subtle overlay to images to blend with dark mode if needed, or keep clean */
.img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}


/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 95%;
  max-height: 95vh;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--accent-primary);
}

/* Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  /* Center items vertically */
}

@media(max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.text-gradient {
  background: linear-gradient(to right, #3B82F6, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}
/* Lightbox Navigation Buttons */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition: color 0.3s, transform 0.2s;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.lightbox-nav:hover {
  color: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
  background: rgba(0, 0, 0, 0.6);
}

.lightbox-nav.prev {
  left: 30px;
}

.lightbox-nav.next {
  right: 30px;
}
